A method, device, equipment and medium for measuring true resistance
By measuring the temperature at both ends of the resistor and using the resistor array for filtering processing, the accuracy problem of resistance measurement is solved, the true measurement of the resistance value is achieved, the accuracy of current monitoring and SOC calculation is improved, and it is suitable for various environmental changes.
Patent Information
- Application Number
- CN202411008714.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-25
AI Technical Summary
It is difficult to accurately measure the true value of resistance with existing technology, which affects the accuracy of current detection and SOC calculation. Moreover, conventional methods require independent resistive components and manual adjustment, ignoring the impact of environmental changes on resistance characteristics.
By obtaining the temperature at both ends of the resistor to be measured, the temperature difference electromotive force is determined, and the resistor array is used for current measurement and filtering processing, and the predicted and measured values are gradually converged to obtain the true resistance value. The resistor array is composed of resistors with stable temperature coefficient characteristics, which can Adjust under different control ratios to improve measurement accuracy.
It achieves accurate measurement of resistance value, reduces the impact of NTC component failure, improves the reliability of temperature sampling, ensures that resistance characteristics meet current temperature requirements, improves data convergence speed and accuracy, and can monitor resistance status in real time to improve improve the accuracy of SOC estimation.
Smart Images

Figure CN118549710B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic circuits, and in particular to a method, device, equipment and medium for measuring a real resistance value. Background Art
[0002] At present, current detection, system on chip (SOC) calculation, etc. are implemented based on resistance values. It can be seen that how to obtain a more realistic resistance value is quite critical.
[0003] However, the measurement of resistance is subject to various factors. Either the measured resistance is not accurate enough, or a specific circuit is required for measurement and there are certain requirements for the resistance element to be measured. These differences are often ignored or ignored in circuit design. If there is a resistance measurement method that is infinitely close to the true value in the running state, then a current measurement method that relies on a more realistic resistance value and is not affected by environmental changes will be possible. This will also be able to more accurately predict the state of SOC and better monitor and manage the battery.
[0004] Therefore, how to accurately obtain the true resistance value of a resistor is an important issue that needs to be urgently solved in the industry. Summary of the invention
[0005] In view of this, the embodiments of the present invention provide a method, device, equipment and medium for measuring a real resistance value, so as to solve the problem that it is difficult to obtain the real resistance value of a resistor in the prior art.
[0006] According to a first aspect, an embodiment of the present invention provides a method for measuring a real resistance value, the method comprising:
[0007] Obtain the temperature of the pads at both ends of the resistor to be measured, and determine the temperature difference electromotive force at both ends of the pads of the resistor to be measured according to the temperature of the pads at both ends;
[0008] Obtaining an initial sampling signal of the resistor to be measured, converting the initial sampling signal into a voltage value flowing through the resistor to be measured, and determining an initial current value of the resistor to be measured using the voltage value and a nominal value of the resistor to be measured;
[0009] Determine the resistance value selection of the resistor array and the access mode of the resistor array according to the initial current value; the resistor array is composed of a plurality of identical resistors, the resistor array is connected in parallel to the two ends of the resistor to be measured, and is connected to the pads at the two ends of the resistor to be measured and is distributed in a star shape around the pads;
[0010] Adjusting the control ratio of the connected resistor array, and determining the measured values of the resistor array and the resistor to be measured under different control ratios according to the connection mode;
[0011] Determine the predicted value of the resistor array according to the temperature and the resistor selection, determine the actual current value flowing through the resistor to be measured under different control ratios, and determine the predicted value of the resistor to be measured according to the actual current value;
[0012] The access sampling signal flowing through the resistor to be measured when the resistor array is accessed is obtained, and filtering is performed according to the access sampling signal, the predicted value, the measured value and the preset noise covariance, and the predicted value and the measured value are continuously converged to determine the true resistance value of the resistor to be measured.
[0013] In combination with the first aspect, in the first embodiment of the first aspect, the resistor array is composed of resistors having preset resistance temperature coefficient characteristics, and the resistance temperature coefficient characteristic stability intervals of each resistor in the resistor array overlap with each other until the entire temperature domain is covered, and the preset resistance temperature coefficient characteristic is not more than 5ppm / K.
[0014] In combination with the first embodiment of the first aspect, in the second embodiment of the first aspect, the resistor array includes at least two resistors, and the pads at both ends of the resistor to be measured are respectively connected to at least one of the resistors.
[0015] In combination with the first aspect, in a third implementation of the first aspect, the access mode includes: a first access mode and a second access mode;
[0016] When the resistor array is only used for periodically updating the resistance to be measured, the access mode of the resistor array is the second access mode; when the resistor array is not only used for periodically updating the resistance to be measured, the access mode of the resistor array is the first access mode.
[0017] In combination with the first aspect, in a fourth implementation of the first aspect, the resistance value selection of the resistor array specifically includes:
[0018] If the improvement exceeds the preset current value accuracy, the resistance value of each resistor in the resistor array exceeds the resistance value of the resistor to be measured, and the difference between the resistance value of the connected resistor and the resistance value of the resistor to be measured exceeds the first preset value;
[0019] If the improvement does not exceed the preset current value accuracy, the difference between the resistance value of each resistor in the resistor array and the resistance value of the resistor to be measured does not exceed the second preset value.
[0020] In combination with the first aspect, in a fifth implementation of the first aspect, the preset noise covariance includes a first noise covariance of the measurement system and a second noise covariance of the prediction system, and the noise covariance is used to make the data reach an expected fluctuation range and timeliness.
[0021] In combination with the fifth implementation of the first aspect, in the sixth implementation of the first aspect, obtaining the access sampling signal flowing through the resistor to be measured when accessing the resistor array, filtering the access sampling signal, the predicted value, the measured value, and the preset noise covariance to determine the true resistance value of the resistor to be measured, specifically includes:
[0022] Obtaining a first partial confidence factor for a last predicted value according to the first noise covariance and the second noise covariance;
[0023] Determine the difference between the access sampling signal flowing through the resistor to be measured and the last measured value, and correct the measured value by the first bias factor to obtain the currently measured and corrected value;
[0024] Determine a biased confidence factor for the predicted value, i.e., a second biased confidence factor, according to the first biased confidence factor, and correct the predicted value by the second biased confidence factor to obtain a currently predicted and corrected value;
[0025] If the difference between the currently measured and corrected value and the currently predicted and corrected value is within a preset range, the currently measured and corrected value is taken as the actual resistance value of the resistor to be measured;
[0026] If the difference between the current measured and corrected value and the current predicted and corrected value exceeds the preset range, the current measured and corrected value is used as the last measured value and the current predicted and corrected value is used as the last predicted value, and the measured value is updated based on the first bias factor and the predicted value is updated based on the second bias factor until the difference between the current measured and corrected value and the current predicted and corrected value is within the preset range.
[0027] According to a second aspect, an embodiment of the present invention further provides a device for measuring a real resistance value, the device comprising:
[0028] The first measurement module is used to obtain the temperature of the pads at both ends of the resistor to be measured, and determine the temperature difference electromotive force at both ends of the pads of the resistor to be measured according to the temperature of the pads at both ends;
[0029] The second measurement module is used to obtain an initial sampling signal of the resistor to be measured, convert the initial sampling signal into a voltage value flowing through the resistor to be measured, and determine an initial current value of the resistor to be measured using the voltage value and a nominal value of the resistor to be measured;
[0030] The third measurement module is used to determine the resistance value selection of the resistor array and the access mode of the resistor array according to the initial current value; the resistor array is composed of a plurality of identical resistors, the resistor array is connected in parallel to the two ends of the resistor to be measured, and is connected to the pads at both ends of the resistor to be measured;
[0031] A fourth measurement module, used to adjust the control ratio of the connected resistor array, and determine the measurement values of the resistor array and the resistor to be measured under different control ratios according to the connection mode;
[0032] A fifth measurement module is used to determine the predicted value of the resistor array according to the temperature and the resistor selection, determine the actual current value flowing through the resistor to be measured under different control ratios, and determine the predicted value of the resistor to be measured according to the actual current value;
[0033] The sixth measurement module is used to obtain the access sampling signal flowing through the resistor to be measured when the resistor array is accessed, filter the access sampling signal, the predicted value, the measured value and the preset noise covariance, continuously converge the predicted value and the measured value, and determine the true resistance value of the resistor to be measured.
[0034] According to a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-described methods for measuring a real resistance are implemented.
[0035] According to a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-described methods for measuring a real resistance are implemented.
[0036] According to a fourth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above-described methods for measuring a real resistance value.
[0037] The real resistance measurement method, device, equipment and medium of the present invention improve the reliability of NTC element temperature sampling, can avoid the influence of individual NTC element failure as much as possible, realize the most accurate possible response to the temperature of the resistance to be measured, ensure that the TCR characteristics of the reference resistance meet the current temperature requirements, obtain relatively reliable temperature difference electromotive force, and adopt a method of continuous convergence between the predicted value and the calculated value to realize signal processing, ensure the stability and effectiveness of system operation data, and improve the speed of data convergence through more accurate predicted values. At the same time, the reference resistor array access method can be adjusted and changed, different resistor arrays are selected according to different currents, and resistors with corresponding characteristics are selected according to different temperatures. In the process, the access resistance and the access ratio are determined to make the convergence of the reference resistance exist a certain term. The resistance values of the resistor array and the resistor to be measured can be updated and converged in real time, and are corrected in different access modes of the resistor array. The calculated values of the resistor array and the resistor to be measured are obtained one by one, and combined with their predicted values, the corresponding true values can be obtained. At the same time, the influence of the change of the reference resistor and the resistor to be measured is solved, and the true state of the resistor can be predicted in real time and accurately, so as to achieve more accurate current monitoring, and ultimately achieve more accurate SOC estimation. By eliminating the influence of TCR characteristics and resistance change characteristics, and eliminating the influence of temperature difference electromotive force, truly convergent signal processing is achieved, which greatly improves the authenticity and accuracy of the obtained resistance value. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The features and advantages of the present invention will be more clearly understood by referring to the accompanying drawings, which are schematic and should not be construed as limiting the present invention in any way. In the accompanying drawings:
[0039] Figure 1 The schematic diagram shows the process of the method for measuring the real resistance value provided by the present invention. Figure 1 ;
[0040] Figure 2 A schematic diagram showing the connection of a resistor array in the method for measuring the real resistance value provided by the present invention is shown;
[0041] Figure 3 A schematic diagram showing the structure of a device for measuring a real resistance value provided by the present invention is shown;
[0042] Figure 4 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0044] At present, the more accurate resistance measurement methods include Huygens bridge and Darwin bridge. Huygens bridge is mainly suitable for measuring resistance above 10Ω, while Darwin bridge is mainly suitable for measuring resistance below 10Ω. However, both methods use manual measurement, and the resistance element to be measured must be an independent element in order to carry out relevant tests.
[0045] Based on thermistors, compensation is performed according to the temperature coefficient curve to obtain the current compensation value. However, due to production differences of components, it is not possible to cover all of them, and the resistance characteristics will also change during use, which will eventually lead to a gradual increase in deviations in current detection and SOC calculation based on resistance values.
[0046] All resistors have a temperature coefficient of resistance (TCR) characteristic, which is used to indicate the relative change in resistance for every 1°C deviation from the reference temperature (usually expressed in ppm / K or ppm / °C). All resistors also have a resistance change characteristic, which means that the resistance will change over a certain period of time under certain conditions or normal use conditions. Especially for small resistance resistors, differences in welding process and assembly environment will also cause a temperature difference between the two pads of the resistor, especially for devices composed of multiple materials, thus forming a temperature difference electromotive force and affecting the measurement results.
[0047] At the same time, there will always be interference from the sampling signal during the use of the equipment. These interferences cannot be completely eliminated and will affect the processing of the final resistance value, especially for resistors with smaller resistance values. For example, when using a small resistor connected in series to measure a small current in a circuit, there will still be large fluctuations even when the current is zero. Even if a low-pass filter is used to process the signal, the processing effect is still not ideal. The indirect impact of the failure of the sampling signal to converge is the calibration of the current. If the peak or valley value is used during calibration, it will eventually lead to measurement deviation and reduce accuracy.
[0048] It can be seen that the method of accurately measuring resistance is to use a bridge to measure, but the bridge requires the components to be independent and not assembled into the circuit, and the resistance needs to be manually adjusted to observe the current to reach a steady state before calculation. The method of using devices such as negative temperature coefficient (NTC) to detect temperature and directly use the typical value of TCR corresponding to the temperature for compensation cannot cover all standby components, nor can it eliminate the impact of resistance changes after use. However, these differences are often ignored or not taken seriously in circuit design.
[0049] If there is a resistance measurement method that continuously converges and approaches the true value in the running state, then a current measurement method that relies on a more realistic resistance value and is not affected by environmental changes will be possible. This will also be able to more accurately predict the SOC state and better monitor and manage the battery.
[0050] Therefore, how to accurately obtain the true resistance value of a resistor is an important issue that needs to be urgently solved in the industry.
[0051] In order to solve the above problems, a method for measuring the real resistance is provided in this specification, aiming to obtain a more real and accurate real resistance value of the resistor. The method for measuring the real resistance provided in this specification can be applied to electronic devices with resistance value processing functions. The electronic devices may include notebooks, desktop computers, smart phones, smart wearable devices (virtual reality glasses, smart watches, etc.), tablet computers, etc. Of course, the method for measuring the real resistance provided in this specification can also be applied to applications running in the above-mentioned electronic devices. For example, the method for measuring the real resistance can be applied to a browser with a resistance value processing function, and can also be applied to image processing software. Figure 1 FIG. 1 is a flow chart of a method for measuring a real resistance value according to an embodiment of the present invention. Figure 1 As shown, the method may include the following steps:
[0052] S10, obtaining the temperatures of the pads at both ends of the resistor to be measured, and determining the temperature difference electromotive force at both ends of the pads of the resistor to be measured according to the temperatures of the pads at both ends.
[0053] S20, obtaining an initial sampling signal of the resistor to be measured, converting the initial sampling signal into a voltage value flowing through the resistor to be measured, and determining an initial current value of the resistor to be measured using the voltage value and a nominal value of the resistor to be measured.
[0054] The voltage value flowing through the resistor to be measured can be obtained by converting the voltage flowing through the resistor to be measured using an ADC.
[0055] S30, determining the resistance selection of the resistor array and the access method of the resistor array according to the initial current value determined in step S20, wherein the resistor array is connected in parallel to the two ends of the resistor to be measured and connected to the pads at both ends of the resistor to be measured, and the resistor array is distributed in a star shape around the pad ends.
[0056] In this embodiment, a precise resistor array of a reference object is provided according to the temperature characteristics. In fact, the resistor array is not only used as a reference, but also performs secondary calculations for subsequent numerical convergence, and finally obtains a resistor array that is closer to the real one.
[0057] Preferably, the resistor array can be composed of a number of resistors with the same high-precision TCR characteristics (≤5ppm / K), and the selected resistors are NTC elements, and the TCR stability ranges of the resistors in the resistor array have overlapping parts until the entire temperature range is covered.
[0058] The resistor array can control the two ends of the resistor to be measured individually or multiple times. The control method of the resistor array can be discontinuous, such as pulse width modulation (PWM). More specifically, when improving the accuracy of large current (>10A), the resistance of the connected resistor must be much larger than the resistor to be measured. When improving the accuracy of small current (≤10A), the resistance of the connected resistor must be close to the resistor to be measured.
[0059] In this embodiment, a resistor array, i.e., an optimal resistor, is connected to both ends of the resistor to be measured, and the change in the current ADC before and after the connection is recorded. The current current of the resistor to be measured is calculated using the relatively standard resistor array currently connected. Since the resistance value of the resistor array is much larger than the resistor to be measured when the accuracy of large current (>10A) is improved, its current is also smaller. Therefore, it is considered that the resistor array has no temperature-sensitive electromotive force. The ADC of the sampled current in the process is known, the voltage environment is almost the same, and the connected resistor is known. The only uncertain value of the resistor to be measured can be estimated, and then the predicted value of the resistor to be measured is obtained.
[0060]
[0061] in, represents the temperature difference electromotive force; Indicates the temperature coefficient difference between the resistive material and the pad material; represents the temperature of the first pad; Indicates the temperature of the second pad.
[0062] See also Figure 2 , the dotted line part in the figure is each resistor in the resistor array. It can be understood that for a resistor to be measured, its two ends have a first pad set at one end and a second pad set at the other end, that is, at least two resistors are required to be used as the measurement of the temperature at both ends of the resistor to be measured ( Figure 2 The resistors R1 and R2 in the figure are placed as close as possible to the two ends of the resistor to be measured, thereby forming the above-mentioned resistor array.
[0063] The direct influence of the resistance to be measured is temperature, so the accuracy of temperature measurement directly leads to the error of precision. Conventional single or insufficiently typical NTC components are not sufficient to support the demand for more realistic resistance value calculation. The array-distributed resistor array is mainly distributed in a star shape at the pad end and can be reduced to at least two according to the needs. A comprehensive calculation is performed based on the difference in sampling of each layer, and compensation is made in temperature based on the difference relationship due to the slow temperature change.
[0064] In this embodiment, the resistor array can restore the temperature difference across the resistor to be measured, which is used for the calculation of the thermoelectric potential to eliminate the influence of the thermoelectric potential. The result of the thermoelectric potential is obtained by multiplying the temperature coefficient difference of the conductor material by the temperature difference, and the current caused by the temperature difference is obtained by dividing it by the resistance value of the resistor to be measured (this value defaults to the theoretical value of the resistor to be measured, and can be updated during the continuous convergence of the resistance value of the resistor to be measured) to eliminate the corresponding influence. Because the ADC signal obtained is a reflection of the voltage value, the method adopts a more direct, effective and fast way to directly eliminate the thermoelectric potential.
[0065] In some other possible embodiments, the resistor array can also be set to a multi-position layout, that is, the above-mentioned NTC resistor elements with high-precision TCR characteristics (≤5ppm / K) can also be arranged at both ends of the resistor array to synchronously obtain the thermoelectric potential as a reference. The purpose of this is to more accurately monitor the actual temperature of the NTC and the temperature changes at both ends of the resistor to be measured, so as to perform comprehensive processing.
[0066] The comprehensive processing will consider the average of similar positions, the integral of the proportion of different positions, the difference change of different positions to judge the speed of temperature change, etc. The multi-position layout method will also judge the failure of NTC components to avoid the negative impact of the resistance measurement process caused by the failure of a single NTC component or inaccurate monitoring, thereby improving the safety level of detection and products.
[0067] S40, adjusting the control ratio of the connected resistor array, and determining the measured values of the resistor array and the resistor to be measured under different control ratios according to the connection mode.
[0068] S50, according to the temperature and the resistor selection, determine the predicted value of the resistor array, determine the actual current value flowing through the resistor to be measured under different control ratios, and determine the predicted value of the resistor to be measured according to the actual current value. It can be understood that the predicted value of the resistor array needs to be obtained in combination with the temperature and the TCR characteristics of each resistor in the resistor array.
[0069] S60, obtaining an access sampling signal flowing through the resistor to be measured when the resistor array is accessed, performing filtering processing according to the access sampling signal, the predicted value, the measured value and the preset noise covariance, continuously converging the predicted value and the measured value, and determining the true resistance value of the resistor to be measured.
[0070] The real convergence of the ADC signal of the resistance value under the current characteristic is based on the difference between the value of the current sampling and the measurement (calculation) result of the previous sampling. Through the given noise covariance calculation, the real convergence calculation result is quickly obtained, and the calculated value is continuously iterated to converge to the actual value.
[0071] In particular, since there is no calculation result from the last time when sampling for the first time, the value of the first sampling is replaced by 0. Similarly, since there is no prediction result from the last time when predicting for the first time, the value of the first prediction is also replaced by 0.
[0072] When performing filtering, you first need to debug and determine two values, namely the first noise covariance of the measurement system and the second noise covariance of the prediction system The purpose of setting these two values is to obtain the expected fluctuation range and timeliness of the data. Before filtering, the previous value is inherited to obtain the iterative effect, that is:
[0073]
[0074]
[0075] in, Indicates the starting value obtained by measurement; Indicates that the last measured value is the value obtained by the last measurement; Represents the starting value obtained by prediction; Indicates the last predicted value, that is, the value obtained after the last prediction.
[0076] In this embodiment, the noise covariance of the measurement system is confirmed based on actual samples under conditions simulating normal use. and the noise covariance of the prediction system , so as to achieve appropriate numerical convergence characteristics and timeliness, while still maintaining the ability to discriminate smaller actual changes, so as to achieve the ability to identify milliampere currents.
[0077] Afterwards, the first noise covariance preset above and the second noise covariance Get the last forecast value The partial confidence factor is the first partial confidence factor, which is also the filter coefficient in this method. ,Right now:
[0078]
[0079] The purpose of this is to determine the deviation between the current input data and the last calculated result, and to use the filter coefficient Determine how the deviation should be increased or decreased, and correct the previous measurement value accordingly, that is:
[0080]
[0081] in, Indicates the currently measured and corrected value; Indicates the current access sampling signal (value), that is, the original data of the acquired signal.
[0082] In this embodiment, according to the last prediction result and the second noise covariance of the prediction system The sum of the filter factor is used as the filter factor, and then the filter factor, the filter factor and the first noise covariance of the measurement system are combined. The ratio of the sum is used as the filter coefficient , filter coefficient It reflects the confidence in the result, whether it is closer to the calculated result or the sampled result. Multiply the filter factor by the filter coefficient The complementary number of the current prediction result is used to calculate the next filter factor. After that, the current sampled value and the last measurement result are multiplied by the filter coefficient. The current measured and corrected value is then added to the measurement result obtained the next time, which is the current measurement result, that is, the true value at this time. This method can achieve the true value obtained by gradually converging between the measured value and the predicted value, and adjust the noise covariance to achieve the required real-time performance.
[0083] Among them, the first noise covariance and the second noise covariance Different specific values will affect the speed at which the data is corrected to the correct value and the size of the fluctuation.
[0084] Correspondingly, It represents the predicted value The partial trust factor is the second partial trust factor, namely:
[0085]
[0086] in, Indicates the current predicted and revised value.
[0087] If the difference between the currently measured and corrected value, ie, the measured value, and the currently predicted and corrected value, ie, the predicted value, is within a preset range, the currently measured and corrected value, ie, the measured value, is taken as the actual resistance value of the resistor to be measured.
[0088] If the difference between the currently measured and corrected value and the currently predicted and corrected value exceeds the preset range, the currently measured and corrected value is used as the last measured value and the currently predicted and corrected value is used as the last predicted value, and the measured value is updated based on the first bias factor and the predicted value is updated based on the second bias factor until the difference between the currently measured and corrected value and the currently predicted and corrected value is within the preset range, that is, the measured value and the predicted value are continuously updated and calculated to converge until the true resistance value of the resistor to be measured is obtained.
[0089] It should be noted that after the entire filtering process is completed, the last filter As the next filtering process Use, at the same time, the last filtering process obtained As the next filtering process use.
[0090] If the difference between the currently measured and corrected value and the currently predicted and corrected value is within a preset range, the currently measured and corrected value is used as the actual resistance value of the resistor to be measured.
[0091] The fluctuation of data or signals will have a great impact on the calculation, especially when the data taken for calculation or calibration is at the peak or trough of the fluctuation, it will cause a large error. This method uses the two results of measurement (calculation) and prediction, and then determines the bias of the signal based on the pre-set noise covariance to converge the actual result, and finally converge to a relatively stable and accurate value.
[0092] It is understandable that a necessary condition for the stable operation of the system is to rely on a resistor array as a reference, that is, a relatively accurate and known resistor array. However, the resistor array providing the reference will still have certain changes. In this embodiment, a compensation method is used to reduce or eliminate this effect to a certain extent.
[0093] After connecting to a suitable resistor array, the proportion of the resistor array connection is adjusted through PWM control. Accordingly, certain hardware RC filtering, T-type filtering or Π-type filtering circuits can be set in the resistance monitoring loop to be measured to convert the PWM state of the resistor array connection into an effective state with small fluctuations. According to multiple PWM connections or multiple different PWM connections, if the reference resistor has a certain impact on the system, it is necessary to adopt multiple PWM controls with small duty cycles, calculate a set of binary linear equations for the changing current, convert the equations formed by different duty cycle controls into matrices, and obtain the calculated reference resistance value and the resistance to be measured calculated value through Gaussian elimination method and the like, and obtain its predicted value based on the TCR characteristics of the resistor selected for the resistor array.
[0094] That is, according to the predicted value and the measured value obtained above, the real resistance value to be measured is obtained;
[0095] In other embodiments, the TCR precision resistor array can be replaced by two TCR relatively stable full-temperature range resistors. When measuring large current (>10A), a reference resistor with a resistance much larger than the resistor to be measured is used. When measuring small current (≤10A), a reference resistor close to the resistor to be measured is used. The predicted value of the reference resistor at the current temperature is calculated using the typical value of TCR. Other calculation methods are consistent with those used in the resistor array and will not be repeated here.
[0096] Disconnect the reference resistor and convert the ADC into a relatively accurate current value using the updated real resistance value to be measured, or do not disconnect the reference resistor and convert the ADC into a relatively accurate current value using the real resistance value to be measured and the real reference resistor value.
[0097] The real resistance value measurement method of the present invention improves the reliability of NTC element temperature sampling, can avoid the influence of individual NTC element failure as much as possible, realizes the most accurate possible response to the temperature of the resistance to be measured, ensures that the TCR characteristics of the reference resistance meet the current temperature requirements, obtains a relatively reliable temperature difference electromotive force, and adopts a method of continuous convergence between the predicted value and the calculated value to realize signal processing, ensure the stability and effectiveness of the system operation data, and improve the speed of data convergence through more accurate predicted values. At the same time, the resistor array access method used as a reference can be adjusted and changed, different resistor arrays are selected according to different currents, and resistors with corresponding characteristics are selected according to different temperatures. In the access process, the connection method is used to connect the resistor array to the resistor array. The determination of the input resistance and the access ratio makes the convergence of the reference resistance exist a definite term. The resistance values of the resistor array and the resistor to be measured can be updated and converged in real time, and are corrected in different access modes of the resistor array. The calculated values of the resistor array and the resistor to be measured are obtained one by one, and combined with their predicted values, the corresponding true values can be obtained. At the same time, the influence of the change of the reference resistor and the resistor to be measured is solved, and the true state of the resistor can be predicted in real time and accurately, so as to achieve more accurate current monitoring, and ultimately achieve more accurate SOC estimation. By eliminating the influence of TCR characteristics and resistance change characteristics, and eliminating the influence of temperature difference electromotive force, signal processing that can be truly converged is achieved, which greatly improves the authenticity and accuracy of the obtained resistance value.
[0098] Step S30 specifically includes:
[0099] S31. Determine the resistance value selection of each resistor in the resistor array according to the determined current value. When improving the accuracy of large current (>10A), the resistance value of the connected resistor needs to be much larger than the resistance to be measured. When improving the accuracy of small current (≤10A), the resistance value of the connected resistor needs to be close to the resistance to be measured. That is, the resistance value selection of each resistor in the resistor array is specifically:
[0100] If the improvement exceeds the preset current value accuracy (>10A), the resistance value of each resistor in the resistor array exceeds the resistance value of the resistor to be measured, and the difference between the resistance value of the connected resistor and the resistance value of the resistor to be measured exceeds the first preset value;
[0101] If the improvement does not exceed the preset current value accuracy (≤10A), the difference between the resistance value of each resistor in the resistor array and the resistance value of the resistor to be measured does not exceed the second preset value.
[0102] S32, determining an access mode of the resistor array according to the determined current value, wherein the access mode includes: a first access mode and a second access mode. When the resistor array is only used to periodically update the resistance to be measured, the access mode of the resistor array is the second access mode, and correspondingly, when the resistor array is not only used to periodically update the resistance to be measured, the access mode of the resistor array is the first access mode.
[0103] By adopting multiple access resistor arrays with different control ratios, the variation of the resistor array used as a reference can be simplified, and the calculated values of the resistor array and the resistor to be measured can be obtained, and a method is provided for the convergence of the calculated value and the predicted value, and finally the real resistance value of the resistor to be measured is obtained, and a more accurate metering current is obtained accordingly. Accordingly, step S40 specifically includes:
[0104] S41, adjust the control ratio of the connected resistor array, and obtain the connected sampling signal of the resistor to be tested under different control ratios. It should be noted that when the current is large, it is necessary to avoid long-term connection, that is, only connect with a small duty cycle control ratio, but when connecting the resistor array, several different duty cycle control ratios are required.
[0105] S42, obtaining the equivalent resistance value of the resistor array under different control ratios and the sampled current flowing through the resistor to be measured when the resistor array is connected.
[0106] S43. Determine the measured values of the resistor array and the resistor to be measured under different access modes and control ratios according to the access sampling signal of the resistor to be measured under different control ratios, the sampling current flowing through the resistor to be measured when it is connected to the resistor array, the temperature difference electromotive force across the pads of the resistor to be measured, and the equivalent resistance value of the resistor array. It can be understood that the measured value is the measured resistance value.
[0107] If the resistor array is connected in the first connection mode, the value of the equivalent resistance of the resistor array and the resistor to be measured in parallel is used as the current sampling resistance value and acts on the voltage value of the resistor to be measured to obtain the actual current value;
[0108] If the resistor array adopts the control mode of the second access mode, the actual current value is obtained according to the voltage value of the resistor to be measured and the equivalent resistance effect of the resistor to be measured after the temperature difference electromotive force is eliminated.
[0109] Take the control ratio of the connected resistor array set to twice as an example:
[0110] Set the control ratio of the connected resistor array to the first control ratio (PWM1), and obtain the first connected sampling signal of the resistor to be measured under the first control ratio And the first sampling current flowing through the resistor to be measured when connected to the resistor array , and obtain the first equivalent resistance value of the resistor array under the first control ratio , and then based on these obtained values we get:
[0111]
[0112] in, Indicates the voltage value across the resistor to be measured; , The reference voltage inside the sampling chip (e.g. 1.2V), gain factor or op amp factor (e.g. 512 times) and the value of the ADC full scale (e.g. 220) Commonly determined constants, when calculated in the same is a known and definite value, so it is also considered a constant; It represents the equivalent resistance of the resistor to be measured, which is the subsequent measurement value. Because the load is relatively constant when only the resistor to be measured is connected, it is equivalent to the current source power supply mode. Approximately , It indicates the initial current value flowing through the resistor to be measured when the resistor array is not connected, that is, only the resistor to be measured is connected.
[0113] After simplification, we get:
[0114] Afterwards, the control ratio of the connected resistor array is adjusted to the second control ratio (PWM2), and the second connected sampling signal of the resistor to be measured under the second control ratio is obtained. And the second sampling current flowing through the resistor to be measured when connected to the resistor array , and obtain the second equivalent resistance value of the resistor array under the second control ratio , similarly, we can get:
[0115]
[0116] Since the control time of the second control ratio is very close to that of the first control ratio, the resistance arrays at the two moments are almost equal. The same is the reference voltage inside the sampling chip , gain factor or op amp factor And the value of ADC full scale Commonly determined constants.
[0117] By performing Gaussian elimination based on the above formula, we can obtain And different control ratios The value of Indicates the equivalent resistance of the resistor array.
[0118] In the above process, the changes in the sampling current ADC flowing through the resistor to be measured under different control ratios are recorded, and the current actual current value of the resistor to be measured is calculated based on the relatively standard resistor array currently connected. In the process, the ADC of the sampling current is known, the voltage environment is almost the same, and the connected resistance is known. The only uncertain value of the resistor to be measured can be estimated, and then the predicted value of the resistor to be measured is obtained.
[0119] The following is a description of a device for measuring a real resistance value provided by an embodiment of the present invention. The device for measuring a real resistance value described below and the method for measuring a real resistance value described above can be referred to each other.
[0120] In order to solve the above problems, a device for measuring the real resistance is provided in this specification, which is intended to obtain a more real and accurate real resistance value of the resistor. The device for measuring the real resistance provided in this specification can be applied to electronic devices with resistance value processing functions. The electronic devices may include notebooks, desktop computers, smart phones, smart wearable devices (virtual reality glasses, smart watches, etc.), tablet computers, etc. Of course, the device for measuring the real resistance provided in this specification can also be applied to applications running in the above-mentioned electronic devices. For example, the device for measuring the real resistance can be applied to a browser with a resistance value processing function, and can also be applied to image processing software. Figure 3 is a schematic diagram of a flow chart of a device for measuring a real resistance value according to an embodiment of the present invention. Figure 3 As shown, the device may include:
[0121] The first measuring module 10 is used to obtain the temperature of the pads at both ends of the resistor to be measured, and determine the temperature difference electromotive force at both ends of the pads of the resistor to be measured according to the temperature of the pads at both ends.
[0122] The second measurement module 20 is used to obtain an initial sampling signal of the resistor to be measured, convert the initial sampling signal into a voltage value flowing through the resistor to be measured, and determine an initial current value of the resistor to be measured using the voltage value and the nominal value of the resistor to be measured.
[0123] The voltage value flowing through the resistor to be measured can be obtained by converting the voltage flowing through the resistor to be measured using an ADC.
[0124] The third measurement module 30 is used to determine the resistance selection of the resistor array and the access mode of the resistor array according to the determined current value, wherein the resistor array is connected in parallel to both ends of the resistor to be measured and connected to the pads at both ends of the resistor to be measured.
[0125] In this embodiment, a precise resistor array of a reference object is provided according to the temperature characteristics. In fact, the resistor array is not only used as a reference, but also performs secondary calculations for subsequent numerical convergence, and finally obtains a resistor array that is closer to the real one.
[0126] Preferably, the resistor array can be composed of a number of resistors with the same high-precision TCR characteristics (≤5ppm / K), and the selected resistors are NTC elements, and the TCR stability ranges of the resistors in the resistor array have overlapping parts until the entire temperature range is covered.
[0127] The resistor array can control the two ends of the resistor to be measured individually or multiple times. The control method of the resistor array can be discontinuous, such as PWM. More specifically, when improving the accuracy of large current (>10A), the resistance of the connected resistor needs to be much larger than the resistor to be measured. When improving the accuracy of small current (≤10A), the resistance of the connected resistor needs to be close to the resistor to be measured.
[0128] In this embodiment, a resistor array, i.e., an optimal resistor, is connected to both ends of the resistor to be measured, and the change in the current ADC before and after the connection is recorded. The current current of the resistor to be measured is calculated using the relatively standard resistor array currently connected. Since the resistance value of the resistor array is much larger than the resistor to be measured when the accuracy of large current (>10A) is improved, its current is also smaller. Therefore, it is considered that the resistor array has no temperature-sensitive electromotive force. The ADC of the sampled current in the process is known, the voltage environment is almost the same, and the connected resistor is known. The only uncertain value of the resistor to be measured can be estimated, and then the predicted value of the resistor to be measured is obtained.
[0129] The direct influence of the resistance to be measured is temperature, so the accuracy of temperature measurement directly leads to the error of precision. Conventional single or insufficiently typical NTC components are not sufficient to support the demand for more realistic resistance value calculation. The array-distributed resistor array is mainly distributed in a star shape at the pad end and can be reduced to at least two according to the needs. A comprehensive calculation is performed based on the difference in sampling of each layer, and compensation is made in temperature based on the difference relationship due to the slow temperature change.
[0130] In this embodiment, the resistor array can restore the temperature difference between the two ends of the resistor to be measured, which is used for the calculation of the thermoelectric potential to eliminate the influence of the thermoelectric potential. The result of the thermoelectric potential is obtained by multiplying the temperature coefficient difference of the conductor material by the temperature difference, and the current caused by the temperature difference is obtained by dividing it by the resistance value of the resistor to be measured (this value defaults to the theoretical value of the resistor to be measured and is updated during the continuous convergence of the resistor to be measured) to eliminate the corresponding influence. Because the ADC signal obtained is a reflection of the voltage value, directly eliminating the thermoelectric potential should be a more direct, effective and fast method.
[0131] In some other possible embodiments, the resistor array can also be set to a multi-position layout, that is, the above-mentioned NTC resistor elements with high-precision TCR characteristics (≤5ppm / K) can also be arranged at both ends of the resistor array to synchronously obtain the thermoelectric potential as a reference. The purpose of this is to more accurately monitor the actual temperature of the NTC and the temperature changes at both ends of the resistor to be measured, so as to perform comprehensive processing.
[0132] The comprehensive processing will consider the average of similar positions, the integral of the proportion of different positions, the difference change of different positions to judge the speed of temperature change, etc. The multi-position layout method will also judge the failure of NTC components to avoid the negative impact of the resistance measurement process caused by the failure of a single NTC component or inaccurate monitoring, thereby improving the safety level of detection and products.
[0133] The fourth measurement module 40 is used to adjust the control ratio of the connected resistor array and determine the measurement values of the resistor array and the resistor to be measured under different control ratios according to the connection mode.
[0134] The fifth measurement module 50 is used to obtain the predicted value of the resistor array and the resistor to be measured according to the temperature. It can be understood that the predicted value of the resistor array can also be obtained according to the TCR characteristics of the resistor.
[0135] The sixth measurement module 60 is used to obtain the access sampling signal flowing through the resistor to be measured when the resistor array is accessed, and to perform filtering processing according to the access sampling signal, the predicted value, the measured value and the preset noise covariance to determine the real resistance value of the resistor to be measured.
[0136] The real convergence of the ADC signal of the resistance value under the current characteristic is based on the difference between the value of the current sampling and the measurement (calculation) result of the previous sampling. Through the given noise covariance calculation, the real convergence calculation result is quickly obtained, and the calculated value is continuously iterated to converge to the actual value.
[0137] In particular, since there is no calculation result from the last time when sampling for the first time, the value of the first sampling is replaced by 0. Similarly, since there is no prediction result from the last time when predicting for the first time, the value of the first prediction is also replaced by 0.
[0138] If the difference between the currently measured and corrected value and the currently predicted and corrected value is within a preset range, the currently measured and corrected value is used as the actual resistance value of the resistor to be measured.
[0139] The fluctuation of data or signals will have a great impact on the calculation, especially when the data taken for calculation or calibration is at the peak or trough of the fluctuation, it will cause a large error. This method uses the two results of measurement (calculation) and prediction, and then determines the bias of the signal based on the pre-set noise covariance to converge the actual result, and finally converge to a relatively stable and accurate value.
[0140] It is understandable that a necessary condition for the stable operation of the system is to rely on a resistor array as a reference, that is, a relatively accurate and known resistor array. However, the resistor array providing the reference will still have certain changes. In this embodiment, a compensation method is used to reduce or eliminate this effect to a certain extent.
[0141] After connecting to a suitable resistor array, the proportion of the resistor array connection is adjusted through PWM control. Accordingly, certain hardware RC filtering, T-type filtering or Π-type filtering circuits can be set in the resistance monitoring loop to be measured to convert the PWM state of the resistor array connection into an effective state with small fluctuations. According to multiple PWM connections or multiple different PWM connections, if the reference resistor has a certain impact on the system, it is necessary to adopt multiple PWM controls with small duty cycles, calculate a set of binary linear equations for the changing current, convert the equations formed by different duty cycle controls into matrices, and obtain the calculated reference resistance value and the resistance to be measured calculated value through Gaussian elimination method and the like, and obtain its predicted value based on the TCR characteristics of the resistor selected for the resistor array.
[0142] That is, according to the predicted value and the measured value obtained above, the real resistance value to be measured is obtained;
[0143] In other embodiments, the TCR precision resistor array can be replaced by two TCR relatively stable full-temperature range resistors. When measuring large current (>10A), a reference resistor with a resistance much larger than the resistor to be measured is used. When measuring small current (≤10A), a reference resistor close to the resistor to be measured is used. The predicted value of the reference resistor at the current temperature is calculated using the typical value of TCR. Other calculation methods are consistent with those used in the resistor array and will not be repeated here.
[0144] Disconnect the reference resistor and convert the ADC into a relatively accurate current value using the updated real resistance value to be measured, or do not disconnect the reference resistor and convert the ADC into a relatively accurate current value using the real resistance value to be measured and the real reference resistor value.
[0145] The device for measuring the real resistance of the present invention improves the reliability of temperature sampling of NTC elements, can avoid the influence of failure of individual NTC elements as much as possible, realizes the most accurate possible response to the temperature of the resistance to be measured, ensures that the TCR characteristics of the reference resistance meet the current temperature requirements, obtains a relatively reliable temperature difference electromotive force, and adopts a method of continuous convergence between the predicted value and the calculated value to realize signal processing, ensure the stability and effectiveness of system operation data, and improve the speed of data convergence through more accurate predicted values. At the same time, the access method of the resistor array used as a reference can be adjusted and changed, different resistor arrays are selected according to different currents, and resistors with corresponding characteristics are selected according to different temperatures. In the access process, The determination of the access resistance and the access ratio makes the convergence of the reference resistance exist a definite term. The resistance values of the resistor array and the resistor to be measured can be updated and converged in real time, and are corrected in different access modes of the resistor array. The calculated values of the resistor array and the resistor to be measured are obtained one by one, and combined with their predicted values, the corresponding true values can be obtained. At the same time, the influence of the change of the reference resistor and the resistor to be measured is solved, and the true state of the resistor can be predicted in real time and accurately, so as to realize more accurate current monitoring, and ultimately realize more accurate SOC estimation. By eliminating the influence of TCR characteristics and resistance change characteristics, and eliminating the influence of temperature difference electromotive force, truly convergent signal processing is realized, which greatly improves the authenticity and accuracy of the obtained resistance value.
[0146] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the electronic device may include: a processor 510 (processor), a communication interface 520 (Communications Interface), a memory 530 (memory) and a communication bus 540, wherein the processor 510, the communication interface 520, and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic command in the memory 530 to execute the real resistance measurement method, which includes:
[0147] Obtain the temperature of the pads at both ends of the resistor to be measured, and determine the temperature difference electromotive force at both ends of the pads of the resistor to be measured according to the temperature of the pads at both ends;
[0148] Obtaining an initial sampling signal of the resistor to be measured, converting the initial sampling signal into a voltage value flowing through the resistor to be measured, and determining an initial current value of the resistor to be measured using the voltage value and a nominal value of the resistor to be measured;
[0149] Determine the resistance value selection of the resistor array and the access method of the resistor array according to the current value; the resistor array is composed of a plurality of identical resistors, the resistor array is connected in parallel to the two ends of the resistor to be measured, and is connected to the pads at the two ends of the resistor to be measured;
[0150] Adjusting the control ratio of the connected resistor array, and determining the measured values of the resistor array and the resistor to be measured under different control ratios according to the connection mode;
[0151] Determine the predicted value of the resistor array according to the temperature and the resistor selection, determine the actual current value flowing through the resistor to be measured under different control ratios, and determine the predicted value of the resistor to be measured according to the actual current value;
[0152] The access sampling signal flowing through the resistor to be measured when the resistor array is accessed is obtained, and filtering is performed according to the access sampling signal, the predicted value, the measured value and the preset noise covariance, and the predicted value and the measured value are continuously converged to determine the true resistance value of the resistor to be measured.
[0153] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention is essentially 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, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memor), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0154] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, the computer can execute the real resistance value measurement method provided by the above methods, the method comprising:
[0155] Obtain the temperature of the pads at both ends of the resistor to be measured, and determine the temperature difference electromotive force at both ends of the pads of the resistor to be measured according to the temperature of the pads at both ends;
[0156] Obtaining an initial sampling signal of the resistor to be measured, converting the initial sampling signal into a voltage value flowing through the resistor to be measured, and determining an initial current value of the resistor to be measured using the voltage value and a nominal value of the resistor to be measured;
[0157] Determine the resistance value selection of the resistor array and the access method of the resistor array according to the current value; the resistor array is composed of a plurality of identical resistors, the resistor array is connected in parallel to the two ends of the resistor to be measured, and is connected to the pads at the two ends of the resistor to be measured;
[0158] Adjusting the control ratio of the connected resistor array, and determining the measured values of the resistor array and the resistor to be measured under different control ratios according to the connection mode;
[0159] Determine the predicted value of the resistor array according to the temperature and the resistor selection, determine the actual current value flowing through the resistor to be measured under different control ratios, and determine the predicted value of the resistor to be measured according to the actual current value;
[0160] The access sampling signal flowing through the resistor to be measured when the resistor array is accessed is obtained, and filtering is performed according to the access sampling signal, the predicted value, the measured value and the preset noise covariance, and the predicted value and the measured value are continuously converged to determine the true resistance value of the resistor to be measured.
[0161] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the computer program is implemented to perform the above-mentioned method for measuring the real resistance value, the method comprising:
[0162] Obtain the temperature of the pads at both ends of the resistor to be measured, and determine the temperature difference electromotive force at both ends of the pads of the resistor to be measured according to the temperature of the pads at both ends;
[0163] Obtaining an initial sampling signal of the resistor to be measured, converting the initial sampling signal into a voltage value flowing through the resistor to be measured, and determining an initial current value of the resistor to be measured using the voltage value and a nominal value of the resistor to be measured;
[0164] Determine the resistance value selection of the resistor array and the access method of the resistor array according to the current value; the resistor array is composed of a plurality of identical resistors, the resistor array is connected in parallel to the two ends of the resistor to be measured, and is connected to the pads at the two ends of the resistor to be measured;
[0165] Adjusting the control ratio of the connected resistor array, and determining the measured values of the resistor array and the resistor to be measured under different control ratios according to the connection mode;
[0166] Determine the predicted value of the resistor array according to the temperature and the resistor selection, determine the actual current value flowing through the resistor to be measured under different control ratios, and determine the predicted value of the resistor to be measured according to the actual current value;
[0167] The access sampling signal flowing through the resistor to be measured when the resistor array is accessed is obtained, and filtering is performed according to the access sampling signal, the predicted value, the measured value and the preset noise covariance, and the predicted value and the measured value are continuously converged to determine the true resistance value of the resistor to be measured.
[0168] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0169] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0170] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for measuring true resistance, characterized in that: The method comprises: S10, obtaining the temperatures of the pads at both ends of the resistor to be measured, and determining the temperature difference electromotive force at both ends of the pads of the resistor to be measured according to the temperatures of the pads at both ends; S20, obtaining an initial sampling signal of the resistor to be measured, converting the initial sampling signal into a voltage value flowing through the resistor to be measured, and determining an initial current value of the resistor to be measured using the voltage value and a nominal value of the resistor to be measured; S30, determining the resistance value selection of the resistor array and the access mode of the resistor array according to the initial current value; the resistor array is composed of a plurality of identical resistors, the resistor array is connected in parallel to the two ends of the resistor to be measured, and is connected to the pads at the two ends of the resistor to be measured and is distributed in a star shape around the pads; S40, adjusting the control ratio of the connected resistor array, and determining the measured values of the resistor array and the resistor to be measured under different control ratios according to the connection mode; S50, determining the predicted value of the resistor array according to the temperature and the resistor selection, determining the actual current value flowing through the resistor to be measured under different control ratios, and determining the predicted value of the resistor to be measured according to the actual current value; S60, obtaining an access sampling signal flowing through the resistor to be measured when the resistor array is accessed, performing filtering processing according to the access sampling signal, the predicted value, the measured value and the preset noise covariance, continuously converging the predicted value and the measured value, and determining the true resistance value of the resistor to be measured; the preset noise covariance includes a first noise covariance of the measurement system and a second noise covariance of the prediction system, and the noise covariance is used to ensure that the data reaches an expected fluctuation range and timeliness; Step S40 specifically includes: S41, adjusting the control ratio of the connected resistor array, and obtaining the connected sampling signal of the resistor to be measured under different control ratios; S42, obtaining the equivalent resistance value of the resistor array under different control ratios and the sampled current flowing through the resistor to be measured when the resistor array is connected; S43, determining the measurement values of the resistor array and the resistor to be measured under different access modes and control ratios according to the access sampling signal of the resistor to be measured under different control ratios, the sampling current flowing through the resistor to be measured when the resistor is accessed to the resistor array, the temperature difference electromotive force at both ends of the pad of the resistor to be measured, and the equivalent resistance value of the resistor array; Step S60 specifically includes: S61, obtaining a first partial confidence factor for a previous prediction value according to the first noise covariance and the second noise covariance; S62, determining the difference between the access sampling signal flowing through the resistor to be measured and the last measured value, and correcting the measured value by a first bias factor to obtain a currently measured and corrected value; S63, determining a second biased confidence factor for the predicted value according to the first biased confidence factor, and correcting the predicted value by the second biased confidence factor to obtain a currently predicted and corrected value; S64, if the difference between the currently measured and corrected value and the currently predicted and corrected value is within a preset range, the currently measured and corrected value is used as the actual resistance value of the resistor to be measured; S65. If the difference between the current measured and corrected value and the current predicted and corrected value exceeds the preset range, the current measured and corrected value is used as the last measured value and the current predicted and corrected value is used as the last predicted value, and the measured value is updated based on the first bias factor and the predicted value is updated based on the second bias factor until the difference between the current measured and corrected value and the current predicted and corrected value is within the preset range.
2. The method for measuring the true resistance value according to claim 1, characterized in that: The resistor array is composed of resistors with preset resistance temperature coefficient characteristics, and the resistance temperature coefficient characteristic stability intervals of each resistor in the resistor array overlap each other until the entire temperature domain is covered, and the preset resistance temperature coefficient characteristic does not exceed 5ppm / K.
3. The method for measuring the true resistance value according to claim 2, characterized in that: The resistor array includes at least two resistors, and the pads at both ends of the resistor to be measured are respectively connected to at least one of the resistors.
4. The method for measuring the true resistance value according to claim 1, characterized in that: The access mode includes: a first access mode and a second access mode; When the resistor array is only used for periodically updating the resistance to be measured, the access mode of the resistor array is the second access mode; when the resistor array is not only used for periodically updating the resistance to be measured, the access mode of the resistor array is the first access mode.
5. The method for measuring the true resistance value according to claim 1, characterized in that: The resistance value selection of the resistor array specifically includes: If the improvement exceeds the preset current value accuracy, the resistance value of each resistor in the resistor array exceeds the resistance value of the resistor to be measured, and the difference between the resistance value of the connected resistor and the resistance value of the resistor to be measured exceeds the first preset value; If the improvement does not exceed the preset current value accuracy, the difference between the resistance value of each resistor in the resistor array and the resistance value of the resistor to be measured does not exceed the second preset value.
6. A device for measuring true resistance, characterized in that: The device comprises: The first measurement module is used to obtain the temperature of the pads at both ends of the resistor to be measured, and determine the temperature difference electromotive force at both ends of the pads of the resistor to be measured according to the temperature of the pads at both ends; The second measurement module is used to obtain an initial sampling signal of the resistor to be measured, convert the initial sampling signal into a voltage value flowing through the resistor to be measured, and determine an initial current value of the resistor to be measured using the voltage value and a nominal value of the resistor to be measured; The third measurement module is used to determine the resistance value selection of the resistor array and the access mode of the resistor array according to the initial current value; the resistor array is composed of a plurality of identical resistors, the resistor array is connected in parallel to the two ends of the resistor to be measured, and is connected to the pads at both ends of the resistor to be measured; A fourth measurement module, used to adjust the control ratio of the connected resistor array, and determine the measurement values of the resistor array and the resistor to be measured under different control ratios according to the connection mode; A fifth measurement module is used to determine the predicted value of the resistor array according to the temperature and the resistor selection, determine the actual current value flowing through the resistor to be measured under different control ratios, and determine the predicted value of the resistor to be measured according to the actual current value; The sixth measurement module is used to obtain the access sampling signal flowing through the resistor to be measured when the resistor array is accessed, and filter the access sampling signal, the predicted value, the measured value and the preset noise covariance, and continuously converge the predicted value and the measured value to determine the true resistance value of the resistor to be measured; the preset noise covariance includes the first noise covariance of the measurement system and the second noise covariance of the prediction system, and the noise covariance is used to make the data reach the expected fluctuation range and timeliness; The fourth measurement module specifically includes: Adjusting the control ratio of the connected resistor array and obtaining the connected sampling signal of the resistor to be measured under different control ratios; Obtaining the equivalent resistance value of the resistor array under different control ratios and the sampled current flowing through the resistor to be measured when the resistor array is connected; Determine the measurement values of the resistor array and the resistor to be measured under different access modes and control ratios according to the access sampling signal of the resistor to be measured under different control ratios, the sampling current flowing through the resistor to be measured when accessed to the resistor array, the temperature difference electromotive force at both ends of the pad of the resistor to be measured, and the equivalent resistance value of the resistor array; The sixth measurement module specifically includes: Obtaining a first partial confidence factor for a last predicted value according to the first noise covariance and the second noise covariance; Determine the difference between the access sampling signal flowing through the resistor to be measured and the last measured value, and correct the measured value by the first bias factor to obtain the currently measured and corrected value; Determine a second bias factor for the predicted value according to the first bias factor, and correct the predicted value by the second bias factor to obtain a current predicted and corrected value; If the difference between the currently measured and corrected value and the currently predicted and corrected value is within a preset range, the currently measured and corrected value is taken as the actual resistance value of the resistor to be measured; If the difference between the current measured and corrected value and the current predicted and corrected value exceeds the preset range, the current measured and corrected value is used as the last measured value and the current predicted and corrected value is used as the last predicted value, and the measured value is updated based on the first bias factor and the predicted value is updated based on the second bias factor until the difference between the current measured and corrected value and the current predicted and corrected value is within the preset range.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method for measuring the real resistance value as claimed in any one of claims 1 to 5 are implemented.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for measuring the real resistance value as claimed in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Error correction resistance measuring method and device
CN108445292A
Calibration circuit, method and device for resistor to be measured
CN114545086A
