A battery management system shunt calibration method and device
By curve fitting the gain and offset of the battery management system shunt and determining its calibration status, the problem of lack of effective calibration methods in the prior art is solved, and the accuracy of accurate calibration of the battery management system shunt and current data acquisition accuracy is improved.
Patent Information
- Application Number
- CN202211612300.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-15
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2042-12-15
AI Technical Summary
There is a lack of effective calibration methods in the prior art to ensure the accuracy of the shunt in a battery management system.
By obtaining the current gain and offset of the shunt, input multiple reference voltages to the shunt, calculate the calibration value corresponding to the sampled value, and build a corresponding curve between the reference voltage and the calibration value, and perform curve fitting to determine whether the shunt is calibrated successfully.
Accurate calibration of the current shunt of the battery management system is achieved, the accuracy of current data acquisition is improved, and thus the key performance indicators of the battery management system are improved.
Smart Images

Figure CN116430288B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of shunt calibration, and in particular to a shunt calibration method and device for a battery management system. Background Art
[0002] The battery management system (BMS) is a core component of electric vehicles. Current data acquisition is the key data of the battery management system. The accuracy of current acquisition data directly affects the key performance indicators of the battery management system, such as the calculation of the state of charge (SOC) and the state of power (SOP). However, there is currently no good calibration method for the battery management system in the prior art. Summary of the invention
[0003] The purpose of the embodiment of the present invention is to provide a device, a battery management system shunt calibration method and device, which can accurately calibrate the shunt of the battery management system.
[0004] In order to achieve the above object, an embodiment of the present invention provides a battery management system shunt calibration method and device, including:
[0005] Get the current gain and current offset of the shunt calibration parameters;
[0006] Inputting a plurality of reference voltages into the current divider to obtain sampling values corresponding to the current divider;
[0007] Calculate a calibration value corresponding to the sampled value according to the sampled value, the current gain and the current offset;
[0008] Constructing a corresponding curve between the reference voltage and the calibration value according to the calibration value and the reference voltage;
[0009] The actual gain and current gain of the corresponding curve, and the actual offset and current offset of the corresponding curve are subjected to a curve fitting operation to determine whether the current diverter is successfully calibrated.
[0010] Optionally, calculating a calibration value corresponding to the sampling value according to the sampling value, the current gain, and the current offset includes:
[0011] The calibration value corresponding to the sampling value is calculated according to formula (1),
[0012]
[0013] Among them, Cailb i is the sample value corresponding to the input i-th reference voltage, Rawi is the sampling value Cailb i The corresponding calibration value, Offset_Current is the current offset, and Gain_Current is the actual offset.
[0014] Optionally, constructing a corresponding curve between the reference voltage and the calibration value according to the calibration value and the reference voltage comprises:
[0015] According to formula (2), a corresponding curve between the reference voltage and the calibration value is constructed.
[0016] V_Real i =Raw i ×Gain+Offset,(2)
[0017] Among them, V_Real i is the ith reference voltage, Gain is the actual gain, and Offset is the actual offset.
[0018] Optionally, performing a curve fitting operation on the actual gain and current gain of the corresponding curve, and the actual offset and current offset of the corresponding curve to determine whether the current diverter is successfully calibrated includes:
[0019] The number of sampling points is calculated according to formula (3):
[0020]
[0021] Where n is the number of sampling points, V_Real max is the maximum value of the reference voltage, V_Real min is the minimum value of the reference voltage, and ΔV is the unit voltage.
[0022] Optionally, performing a curve fitting operation on the actual gain and current gain of the corresponding curve, and the actual offset and current offset of the corresponding curve to determine whether the current diverter is successfully calibrated includes:
[0023] The measurement accuracy is calculated according to formula (4):
[0024]
[0025] Among them, s is the test accuracy, n is the number of sampling points, Gain i is the ith actual gain, Gain_Current i is the i-th current gain, Offset i is the ith actual offset, Offset_Current i is the i-th current offset.
[0026] On the other hand, the present invention also provides a battery management system shunt calibration device, the calibration device includes a standard voltage output device, a voltage acquisition device and a controller, wherein the standard voltage output device is used to provide a reference voltage to the voltage divider, the voltage acquisition device is used to collect the sampled value of the voltage divider, and the controller is used to:
[0027] Get the current gain and current offset of the shunt calibration parameters;
[0028] Controlling the standard voltage output device to input a plurality of reference voltages into the shunt, and acquiring sampling values corresponding to the shunt through the voltage acquisition device;
[0029] Calculate a calibration value corresponding to the sampled value according to the sampled value, the current gain and the current offset;
[0030] Constructing a corresponding curve between the reference voltage and the calibration value according to the calibration value and the reference voltage;
[0031] The actual gain and current gain of the corresponding curve, and the actual offset and current offset of the corresponding curve are subjected to a curve fitting operation to determine whether the current diverter is successfully calibrated.
[0032] Optionally, calculating a calibration value corresponding to the sampling value according to the sampling value, the current gain, and the current offset includes:
[0033] The calibration value corresponding to the sampling value is calculated according to formula (1),
[0034]
[0035] Among them, Cailb i is the sample value corresponding to the input i-th reference voltage, Raw i is the sampling value Cailb i The corresponding calibration value, Offset_Current is the current offset, and Gain_Current is the actual offset.
[0036] Optionally, constructing a corresponding curve between the reference voltage and the calibration value according to the calibration value and the reference voltage comprises:
[0037] According to formula (2), a corresponding curve between the reference voltage and the calibration value is constructed.
[0038] V_Real i =Raw i ×Gain+Offset, (2)
[0039] Among them, V_Real iis the ith reference voltage, Gain is the actual gain, and Offset is the actual offset.
[0040] Optionally, performing a curve fitting operation on the actual gain and current gain of the corresponding curve, and the actual offset and current offset of the corresponding curve to determine whether the current diverter is successfully calibrated includes:
[0041] The number of sampling points is calculated according to formula (3):
[0042]
[0043] Where n is the number of sampling points, V_Real max is the maximum value of the reference voltage, V_Real min is the minimum value of the reference voltage, and ΔV is the unit voltage.
[0044] Optionally, performing a curve fitting operation on the actual gain and current gain of the corresponding curve, and the actual offset and current offset of the corresponding curve to determine whether the current diverter is successfully calibrated includes:
[0045] The measurement accuracy is calculated according to formula (4):
[0046]
[0047] Among them, s is the test accuracy, n is the number of sampling points, Gain i is the ith actual gain, Gain_Current i is the i-th current gain, Offset i is the ith actual offset, Offset_Current i is the i-th current offset.
[0048] Through the above technical scheme, the battery management system shunt calibration method and device provided by the present invention achieves accurate calibration of the battery management system's shunt by performing curve fitting on the gain and offset of the shunt and determining whether the current shunt is accurate based on the fitting result.
[0049] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:
[0051] Figure 1is a flow chart of a battery management system shunt calibration method according to one embodiment of the present invention. DETAILED DESCRIPTION
[0052] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.
[0053] like Figure 1 FIG. 1 is a flow chart of a method for calibrating a shunt in a battery management system according to an embodiment of the present invention. Figure 1 In, the calibration method may include:
[0054] In step S10, the current gain and current offset of the splitter calibration parameters are obtained;
[0055] In step S11, a plurality of reference voltages are input into the current divider to obtain sampling values corresponding to the current divider;
[0056] In step S12, a calibration value corresponding to the sampled value is calculated according to the sampled value, the current gain and the current offset;
[0057] In step S13, a corresponding curve between the reference voltage and the calibration value is constructed according to the calibration value and the reference voltage;
[0058] In step S14, a curve fitting operation is performed on the actual gain and current gain of the corresponding curve, and the actual offset and current offset of the corresponding curve to determine whether the current shunt is calibrated successfully.
[0059] In this Figure 1 In the calibration method shown, step S10 can be used to obtain the current gain and current offset of the shunt calibration parameters, wherein the current gain and current offset can be read by accessing the battery management system.
[0060] Step S11 can be used to input multiple reference voltages into the shunt, so as to obtain the sampled values of the corresponding output of the shunt. In this embodiment, since the shunt is to be calibrated, the sampled values need to be directly collected at the output end of the shunt, rather than obtained through the current gain and the current offset. In the actual implementation process, step S11 can be directly measured at the output end of the shunt.
[0061] Step S12 may be used to calculate a calibration value corresponding to the sampled value according to the sampled value, the current gain, and the current offset. In this embodiment, the calibration value may be calculated in various ways known to those skilled in the art. However, in a preferred embodiment of the present invention, the calibration value may be calculated using formula (1):
[0062]
[0063] Among them, Cailb i is the sample value corresponding to the input i-th reference voltage, Raw i is the sampling value Cailb i The corresponding calibration value, Offset_Current is the current offset, and Gain_Current is the actual offset.
[0064] Step S13 can be used to construct a corresponding curve between the reference voltage and the calibration value according to the calibration value and the reference voltage. In this embodiment, the corresponding curve can be constructed in various forms known to those skilled in the art. However, in a preferred example of the present invention, the corresponding curve can be constructed using formula (2):
[0065] V_Real i =Raw i ×Gain+Offset, (2)
[0066] Among them, V_Real i is the ith reference voltage, Gain is the actual gain, and Offset is the actual offset.
[0067] Step S14 can be used to perform a curve fitting operation on the actual gain and current gain of the corresponding curve, and the actual offset and current offset of the corresponding curve, to determine whether the current shunt is successfully calibrated. The specific process of the curve fitting operation can be a conventional curve fitting calculation method known to those skilled in the art. However, in a preferred example of the present invention, the curve fitting operation can also be calculated according to formula (3) and formula (4). Specifically, the curve fitting operation can be firstly calculating the number of sampling points according to formula (3),
[0068]
[0069] Where n is the number of sampling points, V_Real max is the maximum value of the reference voltage, V_Real min is the minimum value of the reference voltage, and ΔV is the unit voltage.
[0070] Then calculate the measurement accuracy according to formula (4):
[0071]
[0072] Among them, s is the test accuracy, n is the number of sampling points, Gain i is the ith actual gain, Gain_Current i is the i-th current gain, Offseti is the ith actual offset, Offset_Current i is the i-th current offset.
[0073] On the other hand, the present invention also provides a battery management system shunt calibration device, the calibration device includes a standard voltage output device, a voltage acquisition device and a controller. The standard voltage output device can be used to provide a reference voltage to the voltage divider, the voltage acquisition device can be used to collect the sampled value of the voltage divider, and the controller can be used to perform the following steps: Figure 1 Specifically, in this Figure 1 In the calibration method, the calibration method may include the following steps:
[0074] In step S10, the current gain and current offset of the splitter calibration parameters are obtained;
[0075] In step S11, a plurality of reference voltages are input into the current divider to obtain sampling values corresponding to the current divider;
[0076] In step S12, a calibration value corresponding to the sampled value is calculated according to the sampled value, the current gain and the current offset;
[0077] In step S13, a corresponding curve between the reference voltage and the calibration value is constructed according to the calibration value and the reference voltage;
[0078] In step S14, a curve fitting operation is performed on the actual gain and current gain of the corresponding curve, and the actual offset and current offset of the corresponding curve to determine whether the current shunt is calibrated successfully.
[0079] In this Figure 1 In the calibration method shown, step S10 can be used to obtain the current gain and current offset of the shunt calibration parameters, wherein the current gain and current offset can be read by accessing the battery management system.
[0080] Step S11 can be used to input multiple reference voltages into the shunt, so as to obtain the sampled values of the corresponding output of the shunt. In this embodiment, since the shunt is to be calibrated, the sampled values need to be directly collected at the output end of the shunt, rather than obtained through the current gain and the current offset. In the actual implementation process, step S11 can be directly measured at the output end of the shunt.
[0081] Step S12 may be used to calculate a calibration value corresponding to the sampled value according to the sampled value, the current gain, and the current offset. In this embodiment, the calibration value may be calculated in various ways known to those skilled in the art. However, in a preferred embodiment of the present invention, the calibration value may be calculated using formula (1):
[0082]
[0083] Among them, Cailb i is the sample value corresponding to the input i-th reference voltage, Raw i is the sampling value Cailb i The corresponding calibration value, Offset-Current is the current offset, and Gain_Current is the actual offset.
[0084] Step S13 can be used to construct a corresponding curve between the reference voltage and the calibration value according to the calibration value and the reference voltage. In this embodiment, the corresponding curve can be constructed in various forms known to those skilled in the art. However, in a preferred example of the present invention, the corresponding curve can be constructed using formula (2):
[0085] V_Real i =Raw i ×Gain+Offset, (2)
[0086] Among them, V_Real i is the ith reference voltage, Gain is the actual gain, and Offset is the actual offset.
[0087] Step S14 can be used to perform a curve fitting operation on the actual gain and current gain of the corresponding curve, and the actual offset and current offset of the corresponding curve, to determine whether the current shunt is successfully calibrated. The specific process of the curve fitting operation can be a conventional curve fitting calculation method known to those skilled in the art. However, in a preferred example of the present invention, the curve fitting operation can also be calculated according to formula (3) and formula (4). Specifically, the curve fitting operation can be firstly calculating the number of sampling points according to formula (3),
[0088]
[0089] Where n is the number of sampling points, V_Real max is the maximum value of the reference voltage, V_Real min is the minimum value of the reference voltage, and ΔV is the unit voltage.
[0090] Then calculate the measurement accuracy according to formula (4):
[0091]
[0092] Among them, s is the test accuracy, n is the number of sampling points, Gain i is the ith actual gain, Gain_Current i is the i-th current gain, Offseti is the ith actual offset, Offset_Current i is the i-th current offset.
[0093] Through the above technical scheme, the battery management system shunt calibration method and device provided by the present invention achieves accurate calibration of the battery management system's shunt by performing curve fitting on the gain and offset of the shunt and determining whether the current shunt is accurate based on the fitting result.
[0094] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0095] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0096] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0097] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0098] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0099] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0100] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0101] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0102] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A battery management system shunt calibration method, characterized in that: The calibration method comprises: Get the current gain and current offset of the shunt calibration parameters; Inputting a plurality of reference voltages into the current divider to obtain sampling values corresponding to the current divider; Calculate a calibration value corresponding to the sampled value according to the sampled value, the current gain and the current offset; Constructing a corresponding curve between the reference voltage and the calibration value according to the calibration value and the reference voltage; Performing a curve fitting operation on the actual gain and current gain of the corresponding curve, and the actual offset and current offset of the corresponding curve to determine whether the current splitter is calibrated successfully; Performing a curve fitting operation on the actual gain and current gain of the corresponding curve and the actual offset and current offset of the corresponding curve to determine whether the current splitter is calibrated successfully comprises: The number of sampling points is calculated according to formula (3): ,(3) in, is the number of sampling points, is the maximum value of the reference voltage, is the minimum value of the reference voltage, is the unit voltage; Performing a curve fitting operation on the actual gain and current gain of the corresponding curve and the actual offset and current offset of the corresponding curve to determine whether the current splitter is calibrated successfully comprises: The measurement accuracy is calculated according to formula (4): ,(4) in, For the test accuracy, is the number of sampling points, For the The actual gain, For the Current gain, For the The actual offset, For the The current offset.
2. The calibration method according to claim 1, characterized in that: Calculating a calibration value corresponding to the sampled value according to the sampled value, the current gain, and the current offset includes: The calibration value corresponding to the sampling value is calculated according to formula (1): ,(1) in, For the input The sampled value corresponding to the reference voltage is is the sampling value The corresponding calibration value, is the current offset, is the current gain.
3. The calibration method according to claim 2, characterized in that: Constructing a corresponding curve between the reference voltage and the calibration value according to the calibration value and the reference voltage comprises: According to formula (2), a corresponding curve between the reference voltage and the calibration value is constructed. ,(2) in, For the A reference voltage, is the actual gain, is the actual offset.
4. A battery management system shunt calibration device, characterized in that: The calibration device includes a standard voltage output device, a voltage acquisition device and a controller, wherein the standard voltage output device is used to provide a reference voltage to the voltage divider, the voltage acquisition device is used to acquire a sampled value of the voltage divider, and the controller is used to: Get the current gain and current offset of the shunt calibration parameters; Controlling the standard voltage output device to input a plurality of reference voltages into the shunt, and acquiring sampling values corresponding to the shunt through the voltage acquisition device; Calculate a calibration value corresponding to the sampled value according to the sampled value, the current gain and the current offset; Constructing a corresponding curve between the reference voltage and the calibration value according to the calibration value and the reference voltage; Performing a curve fitting operation on the actual gain and current gain of the corresponding curve, and the actual offset and current offset of the corresponding curve to determine whether the current splitter is calibrated successfully; Performing a curve fitting operation on the actual gain and current gain of the corresponding curve and the actual offset and current offset of the corresponding curve to determine whether the current splitter is calibrated successfully comprises: The number of sampling points is calculated according to formula (3): ,(3) in, is the number of sampling points, is the maximum value of the reference voltage, is the minimum value of the reference voltage, is the unit voltage; Performing a curve fitting operation on the actual gain and current gain of the corresponding curve and the actual offset and current offset of the corresponding curve to determine whether the current splitter is calibrated successfully comprises: The measurement accuracy is calculated according to formula (4), ,(4) in, For the test accuracy, is the number of sampling points, For the The actual gain, For the Current gain, For the The actual offset, For the The current offset.
5. The calibration device according to claim 4, characterized in that: Calculating a calibration value corresponding to the sampled value according to the sampled value, the current gain, and the current offset includes: The calibration value corresponding to the sampling value is calculated according to formula (1): ,(1) in, For the input The sampled value corresponding to the reference voltage is is the sampling value The corresponding calibration value, is the current offset, is the current gain.
6. The calibration device according to claim 5, characterized in that: Constructing a corresponding curve between the reference voltage and the calibration value according to the calibration value and the reference voltage comprises: According to formula (2), a corresponding curve between the reference voltage and the calibration value is constructed. ,(2) in, For the A reference voltage, is the actual gain, is the actual offset.
Citation Information
Patent Citations
Attenuation calibration test method and system of wireless router
CN108282235A
Calibration system for voltage measurement devices
CN109425845A