A battery current calculation method and device, electronic equipment and vehicle

CN120722192BActive Publication Date: 2026-09-18BEIJING CHEHEJIA AUTOMOBILE TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410371360.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-28
Publication Date
2026-09-18
Estimated Expiration
2044-03-28

AI Technical Summary

Technical Problem

[0003]有鉴于此,本申请提供了一种电池电流的计算方法、装置、电子设备及车辆,主要目的在于解决电池在输出的电流值较小的情况下,无法准确获取电池准确的输出电流的技术问题

Benefits of technology

[0039]In summary, according to the technical solution disclosed in this application, in addressing the technical problem that when the power of the battery-supported electrical equipment is relatively low, the battery output current value is small, and direct measurement by the current sensor may result in a large error, this application first controls a voltage converter to convert the first voltage value output by the battery to generate a second voltage value, which is lower than the first voltage value; then measures the second current value at the output terminal of the voltage converter; then uses the second voltage value and the second current value to obtain the output power of the voltage converter; finally, referring to the conversion efficiency of the voltage converter, the first current value is calculated using the output power value and the first voltage value, and the first current value is used to represent the output current value of the battery. To ensure that the battery output can power the electrical equipment, a voltage converter is installed at the battery output. This converter transforms the high voltage output from the battery into a low voltage usable by the equipment. Furthermore, the converter further calculates the battery's output power based on the power consumption of the equipment. If the second current value at the voltage output is greater than the first current value at the battery output, the first current value is calculated by measuring the second current value. Because the second current value is relatively large, the error in measuring the second current is relatively small. This results in a smaller error in the final calculated first current value compared to direct measurement, allowing for a more accurate identification of the battery's current output and a more precise assessment of the battery's operating status.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120722192B_ABST
    Figure CN120722192B_ABST
Patent Text Reader

Abstract

The application provides a battery current calculation method and device, electronic equipment and vehicle, and relates to the technical field of battery management. In order to enable the battery output to support the work of the power consumption device, a voltage converter is arranged at the output end of the battery, which can convert the high voltage output by the battery into low voltage available for the power consumption device. Further, the converters of the voltage converters are collected, the output power of the battery is calculated according to the use power of the power consumption device, in the case that the second current value at the voltage output end is greater than the first current value at the battery output end, the first current value is further calculated by measuring the second current value, and on the basis that the second current value is relatively large, the error value when the second current is measured is relatively small, so that the error value of the finally calculated first current value is relatively small compared with direct measurement, the current output condition of the battery can be more accurately identified, and the working condition of the battery can be more accurately identified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of battery management technology, and in particular to a method, apparatus, electronic device, and vehicle for calculating battery current. Background Technology

[0002] When a battery is used to power multiple devices simultaneously, its output power can adapt to the combined power consumption of these devices. To ensure battery safety, a current sensor is installed at the battery's output terminal to monitor the output current and determine the battery's operational status based on the current reading. When the battery's rated output voltage is high and the power demand of the connected devices is low, the rated output voltage remains constant, resulting in a lower output current. In this case, the current sensor in existing technology measures the battery's output current with a large error, making it difficult to accurately determine the battery's operating status and promptly detect and respond to battery malfunctions. Summary of the Invention

[0003] In view of this, this application provides a method, apparatus, electronic device and vehicle for calculating battery current, the main purpose of which is to solve the technical problem that the accurate output current of the battery cannot be obtained when the output current value of the battery is small.

[0004] To achieve the above objectives, the first aspect of this application discloses a method for calculating battery current, the method comprising:

[0005] The control voltage converter converts the first voltage value output by the battery to generate a second voltage value, which is less than the first voltage value;

[0006] Measure the second current value at the output terminal of the voltage converter;

[0007] The output power value of the voltage converter is obtained using the second voltage value and the second current value;

[0008] Referring to the conversion efficiency of the voltage converter, a first current value is calculated using the output power value and the first voltage value. The first current value is used to represent the output current value of the battery.

[0009] Optionally, measuring the second current value at the output of the voltage converter includes:

[0010] Determine the activation status of the electrical equipment, which is connected to the output terminal of the voltage converter;

[0011] Identify the total rated power value of the target electrical equipment, wherein the target electrical equipment is the electrical equipment that is in the active state;

[0012] Based on the total rated power value and the second voltage value, the second current value at the output of the voltage converter is calculated.

[0013] Optionally, the calculation of the first current value using the output power value and the first voltage value, based on the conversion efficiency of the voltage converter, includes:

[0014] Extract the conversion efficiency of the voltage converter;

[0015] Using the conversion efficiency, the input power value of the voltage converter is calculated from the output power value, where the input power value represents the power transferred from the battery to the voltage converter;

[0016] Calculate the first current value based on the input power value and the first voltage value.

[0017] Optionally, after calculating the first current value using the output power value and the first voltage value by referring to the conversion efficiency of the voltage converter, the method further includes:

[0018] Extract the verification interval value of the first current value;

[0019] The first current value is verified using the verification interval value;

[0020] If the first current value falls within the verification interval, output the first current value.

[0021] Optionally, extracting the verification interval value of the first current value includes:

[0022] Identify the measurement error range of the current sensor, determine the first error range, and the current sensor is used to measure the second current value;

[0023] The second error range value is determined based on the conversion error value of the conversion efficiency of the voltage converter;

[0024] Obtain the product of the first error interval value, the second voltage value, and the second error interval value;

[0025] Calculate the ratio of the product value to the first voltage value to generate a verification interval value for the first current value.

[0026] Optionally, after calculating the first current value using the output power value and the first voltage value, the method further includes:

[0027] The current value displayed when the current sensor measures the output of the battery is obtained as a current comparison value;

[0028] Calculate the difference between the first current value and the current comparison value;

[0029] If the difference exceeds the threshold, the current comparison value is replaced with the first current value.

[0030] A second aspect of this application provides a battery current calculation device, the device comprising:

[0031] The conversion module is used to control the voltage converter to convert the first voltage value output by the battery to generate a second voltage value, wherein the second voltage value is less than the first voltage value;

[0032] The measurement module is used to measure the second current value at the output terminal of the voltage converter;

[0033] The acquisition module is used to acquire the output power value of the voltage converter using the second voltage value and the second current value;

[0034] The calculation module is used to calculate a first current value by referring to the conversion efficiency of the voltage converter, using the output power value and the first voltage value, and the first current value is used to represent the output current value of the battery.

[0035] A third aspect of this application provides an electronic device, comprising:

[0036] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any of the methods disclosed in the first aspect.

[0037] A fourth aspect of this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect.

[0038] A fifth aspect of this application provides a vehicle in which the device as described in the second aspect or the electronic device as described in the third aspect is mounted.

[0039] In summary, according to the technical solution disclosed in this application, in addressing the technical problem that when the power of the battery-supported electrical equipment is relatively low, the battery output current value is small, and direct measurement by the current sensor may result in a large error, this application first controls a voltage converter to convert the first voltage value output by the battery to generate a second voltage value, which is lower than the first voltage value; then measures the second current value at the output terminal of the voltage converter; then uses the second voltage value and the second current value to obtain the output power of the voltage converter; finally, referring to the conversion efficiency of the voltage converter, the first current value is calculated using the output power value and the first voltage value, and the first current value is used to represent the output current value of the battery. To ensure that the battery output can power the electrical equipment, a voltage converter is installed at the battery output. This converter transforms the high voltage output from the battery into a low voltage usable by the equipment. Furthermore, the converter further calculates the battery's output power based on the power consumption of the equipment. If the second current value at the voltage output is greater than the first current value at the battery output, the first current value is calculated by measuring the second current value. Because the second current value is relatively large, the error in measuring the second current is relatively small. This results in a smaller error in the final calculated first current value compared to direct measurement, allowing for a more accurate identification of the battery's current output and a more precise assessment of the battery's operating status.

[0040] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description

[0041] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0042] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0043] Figure 1 A flowchart illustrating a method for calculating battery current according to an embodiment of this application is shown;

[0044] Figure 2 A structural diagram of a battery current calculation method device provided in an embodiment of this application is shown. Detailed Implementation

[0045] To better understand the above-mentioned objectives, features, and advantages of this application, the solution of this application will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.

[0046] To address the technical problem of accurately obtaining the battery's output current when the output current value is relatively low, this application provides the following embodiments to solve the above problem:

[0047] This embodiment provides a method for calculating battery current, such as... Figure 1 The diagram shown is a flowchart of the method in this embodiment. The method in this embodiment may specifically include the following steps:

[0048] Step 101: Control the voltage converter to convert the first voltage value output by the battery to generate a second voltage value, which is less than the first voltage value.

[0049] Batteries are primarily used to power various electrical devices, and a single battery pack can power multiple devices. When there are many devices with varying rated voltages and a limited number of batteries, the batteries are often designed with a large output current range. In this case, the high current output from the battery can support the normal operation of the devices when their power demand is high. However, when not all devices are in use, and the power demand of the active devices is low, the battery's output current, despite its large range, will be relatively low. When the battery's output current is too low, the current sensor installed at the battery's output terminal will, due to measurement errors, show a significantly larger error ratio compared to the actual battery output. This error is almost equal to or nearly equal to the actual battery output. In this situation, the current value directly obtained by the current sensor is unreliable and cannot be used as a basis for determining the battery's output current. For example, a car has a battery that needs to power multiple electrical devices in the car. Therefore, the maximum current output by the battery is relatively large. However, when the car is not in motion, or when the car is parked and the driver is away, only a few electronic devices with low power demand are kept active, such as dashcams, communication devices, or speakers. At this time, the car's power consumption is relatively small, and the current sensor directly measures the battery's output current, so the measurement result is not accurate enough.

[0050] To adapt the battery's output power to the needs of electrical devices, the battery's output voltage needs to be adjusted. For example, if the battery outputs 760V while the device requires 48V, the battery cannot be directly connected to the device. In this embodiment, a voltage converter connects the battery and the device. The main function of the voltage converter is to convert the battery's output voltage to a voltage that matches the device's power. For example, the voltage converter can be a DC-DC converter, which can convert DC voltage to other DC voltage values. In this embodiment, the voltage converter converts a high-voltage value to a low-voltage value.

[0051] Step 102: Measure the second current value at the output of the voltage converter.

[0052] After performing its conversion function, the voltage converter transforms the electrical energy output from the battery into electrical energy suitable for the needs of the electrical equipment. While converting the voltage value from high to low, the second current value corresponding to the second voltage value is greater than the first current value corresponding to the first voltage value. When the second current value is larger, the measurement result of the second current value using a current sensor has a smaller percentage of error, making the measurement result of the second current value relatively more accurate and reliable. For example, when the measurement error of the current sensor is 0.5A, the measured result of the first current value at the battery output terminal is 0.3A, while the measured result of the second current value is 5A. Even with the existence of measurement error, the error percentage of the second current value is lower than that of the first current value, making the second current value more reliable.

[0053] Step 103: Obtain the output power value of the voltage converter using the second voltage value and the second current value.

[0054] In power electronics and energy management systems, to calculate the output power of any electrical system, including voltage converters, it is typically necessary to know the voltage and current values ​​of the system at a given moment. The second voltage value refers to the instantaneous voltage at the converter's output terminal at that moment, while the second current value corresponds to the magnitude of the current output through the voltage converter's load circuit at the same moment. The specific calculation steps are as follows: When a voltage converter is operating, its output second voltage value (denoted as V) represents the effective voltage value actually acting on the load, while the second current value (denoted as I) is the effective current value flowing through the load. According to the basic definition of electric power, electric power equals the product of voltage and current; therefore, we can use these two real-time measured data to calculate the instantaneous output power of the converter. When both voltage and current are direct current (DC) quantities, the above formula is directly applicable. For alternating current (AC) systems, since voltage and current are usually sinusoidal waveforms, their phase relationship needs to be considered when calculating average power. If it is a purely resistive load and the voltage and current are in phase, then regardless of whether it is AC or not, the above product form can be used to calculate active power. In summary, in practical applications, by continuously monitoring and acquiring the second voltage value and the second current value, and constantly calculating their product, the output power status of the voltage converter under different operating conditions can be understood in real time.

[0055] After the battery output voltage is converted using a voltage converter, the converted voltage is adapted to the needs of the electrical equipment. Therefore, the output voltage of the voltage converter should be the rated voltage of the electrical equipment. For example, if the second voltage value is the rated voltage of 220V, then the second current value at the output of the voltage converter is measured. The second voltage and second current values ​​work together to adapt the power consumption of the electrical equipment. Specifically, the second voltage and second current values ​​are used to adapt the power consumption of the electrical equipment. The specific output power of the voltage converter can be obtained from the product of the voltage and current values, which also reflects the power consumption of the electrical equipment.

[0056] Step 104: Referencing the conversion efficiency of the voltage converter, calculate the first current value using the output power value and the first voltage value. The first current value is used to represent the output current value of the battery.

[0057] The voltage converter outputs a second voltage value and a second current value to meet the power demand of the devices connected to the battery. More precisely, the product of the second voltage value and the second current value is taken as the output power value of the voltage converter. Since the output power of the voltage converter is provided by the battery, it can be considered that the output power value of the voltage converter is equal to the power value of the battery connected to the voltage converter. Therefore, the first voltage value represents the output voltage value of the battery. The first voltage value can be represented as a fixed voltage output value, and the product of the first voltage value and the first current value can be considered equal to the output power value. Given that the output power value and the first voltage value are determined, the first current value used to represent the battery output can be calculated.

[0058] To ensure that the battery's output power can support the operation of electrical devices, a voltage converter is installed at the battery's output terminal. This voltage converter converts the high voltage output by the battery into a low voltage usable by the electrical devices. Furthermore, assuming the battery's output power matches the power consumption of the electrical device, the second current value at the voltage output terminal is greater than the first current value at the battery's output terminal. By measuring the second current value, the first current value is further calculated. Because the second current value is larger, the error in measuring the second current is relatively smaller. This results in a smaller error in the final calculated first current value compared to direct measurement, allowing for a more accurate identification of the battery's current output and a more precise assessment of the battery's operating status.

[0059] Meanwhile, considering that the voltage converter may experience some power loss during voltage conversion in actual operation, resulting in an imbalance of power values ​​at both ends of the voltage converter, the battery's output power can be further calculated based on the converter's conversion efficiency, given the current output power value of the voltage converter. Specifically, the battery's output power is calculated based on the ratio of the output power value to the conversion efficiency, and this output power is used as the product of the first voltage value and the first current value.

[0060] For example, the current sensor has a measurement range of -30 to 30A and a measurement error of 300mA. In this case, when the actual current value of the first current is 0.42A, the possible error is 0.3A, which may account for 71%. After conversion by the voltage converter, the measured second voltage value is 5A, and the error is reduced to 6%. Since the second voltage value has higher reliability, the calculation of the output power value by combining the second voltage value and the second current value, and further combining the first voltage value to calculate the first current value, has higher reliability than directly measuring the first current value.

[0061] In one possible embodiment, measuring the second current value at the output of the voltage converter includes:

[0062] Determine the activation status of the electrical equipment and connect the electrical equipment to the output terminal of the voltage converter; identify the total rated power value of the target electrical equipment, which is an electrical equipment in the activation state; combine the total rated power value and the second voltage value to calculate the second current value at the output terminal of the voltage converter.

[0063] In power system management and operation, monitoring and control methods can be used to understand and record whether various electrical devices are operating and their operating status. This is typically done by checking the device's operating signals, reading meter data, or obtaining real-time online status through intelligent management systems. When an electrical device is activated, it is connected to the power grid. Generally, electrical devices are not directly connected to the grid's fixed voltage level, but rather their output voltage is adjusted to a suitable rated voltage by a voltage converter (such as a transformer or switching power adapter). This ensures that the electrical device can operate stably under appropriate voltage conditions, avoiding damage or performance degradation due to excessively high or low voltage. Locate and confirm the maximum continuous operating power specified in the device's design and manufacturing; this value is usually expressed in watts (W) and is indicated on the device's nameplate or technical manual. The rated power reflects the maximum electrical power that the device can safely consume during normal operation. Once the target electrical device is activated and connected to the output of the voltage converter, to ensure the safe and efficient operation of the system, it is necessary to calculate the second current value at the voltage converter's output by combining the device's rated power with the second voltage value provided by the converter (i.e., the actual operating voltage of the device). According to Ohm's law (in the ideal case of a purely resistive load), the current I can be calculated using the formula P = V × I, where P is the rated power and V is the second voltage value. Therefore, in practical applications, the second current value can be obtained by appropriately considering the actual power factor of the equipment and other nonlinear factors.

[0064] This embodiment further provides a method for obtaining a second current value. Since the battery needs to be compatible with the electrical device and meet its power requirements, this embodiment further proposes to calculate the second current by calculating the rated power of the electrical device during the process of obtaining the second current value.

[0065] Specifically, the activation status of electrical equipment is first identified. Activation status indicates whether the equipment is in a startup or operational state. Furthermore, activation status can be quickly identified directly based on the operating mode. For example, when the battery is a vehicle battery and the electrical equipment is designated as vehicle-mounted electrical equipment, the activation status can be determined directly based on the vehicle's operating model. For instance, when the occupants are not in the vehicle and the engine is off, the car may be in alert mode. In this mode, the vehicle monitors people or objects approaching the vehicle using individual sensors and issues an alarm via communication devices or speakers in case of abnormalities. The activated sensors, communication devices, or speakers in this mode are considered activated electrical equipment. After identifying the activated electrical equipment, its power value is read, and the total rated power value of the activated electrical equipment is determined by summing these power values. Based on this total rated power value, and since the voltage converter's output voltage is adapted to the rated voltage of the electrical equipment, the second current value can be determined directly based on the quotient between the total rated power value and the second voltage value.

[0066] In this embodiment, another feasible embodiment is listed for the method of obtaining the second current value. In this embodiment, the second current value is obtained by calculating the total rated power value of the electrical equipment. The second current value obtained by this embodiment can match the actual power consumption needs of the electrical equipment. At the same time, the calculated second current value can be used as a reference with the directly measured second current value to ensure the reliability of the final obtained current value.

[0067] In one possible embodiment, a first current value is calculated using the output power value and a first voltage value, characterized in that it includes:

[0068] Extract the conversion efficiency of the voltage converter; use the conversion efficiency to calculate the input power value of the voltage converter from the output power value, where the input power value represents the power transferred from the battery to the voltage converter; calculate the first current value based on the input power value and the first voltage value.

[0069] Conversion efficiency is a key indicator of a voltage converter's energy conversion effectiveness. It represents the converter's ability to convert energy acquired from the input (input power) into usable energy at the output (output power). Conversion efficiency is usually expressed as a percentage. Given the converter's conversion efficiency and output power, the input power can be derived by working backwards. Here, input power refers to the electrical power supplied by the battery to the converter, while output power is the power supplied to the load under stable operating conditions. Next, according to Ohm's law, knowing the input voltage (first voltage value) from the battery to the converter, we can further calculate the first current value (i.e., the current between the battery and the converter's input terminals). Therefore, with the conversion efficiency and output power, we can first calculate the input power, and then, combining this with the input voltage (first voltage), finally calculate the input current (first current).

[0070] This embodiment further considers the conversion efficiency of the voltage converter. Conversion efficiency refers to the ratio of the usable energy (output power) output by a voltage conversion device to its input energy (input power). Considering conversion efficiency means taking into account the energy loss during the power conversion process. In other words, during the operation of the voltage converter, the power values ​​at its input and output terminals are not exactly equal due to energy loss, and there is a certain conversion efficiency relationship between the two power values.

[0071] Given the existence of energy loss, this embodiment further considers adjusting the calculation method of the first current based on the conversion efficiency related to energy loss. Since the voltage is fixed before and after the voltage converter, the influencing factors of conversion efficiency are reflected in the calculation process of the first current value. Using the method of this embodiment to further calculate the first current value ensures the accuracy of the final calculated first current value, guaranteeing accurate monitoring of the battery.

[0072] In one possible embodiment, after calculating the first current value using the output power value and the first voltage value, the method further includes:

[0073] Extract the verification interval value of the first current value; verify the first current value using the verification interval value; if the first current value is within the verification interval value, output the first current value.

[0074] In electrical engineering or industrial automation control systems, extracting verification interval values ​​involves data acquisition and comparison with preset standards. First, the first current value is the theoretically calculated current value transmitted from the battery to the voltage converter, obtained using the method described in this embodiment. The verification interval value is a reasonable range set based on equipment specifications, safety standards, or past data analysis, used to determine whether the currently measured first current value meets expected or specified conditions. Next, the real-time acquired first current value is compared with the pre-set upper and lower thresholds of the verification interval value. This process may include, but is not limited to, considerations of current stability, current fluctuation amplitude, and long-term trends to assess the rationality and safety of the first current value. If, after rigorous comparison, the first current value falls within the verification interval value, it indicates that the current value is within the allowable operating range. Given that the battery output current supports the current electrical equipment, the calculated first current value is reasonable. At this point, the system or operator can confidently "output the first current value." This means that the current value is recognized as valid data and can be used for subsequent analysis, control decisions, or as the basis for calculating other electrical parameters, ensuring the efficient and stable operation of the battery control system.

[0075] This embodiment further includes a step of verifying the calculated first current value. During the data verification process, the first current value is verified using a verification interval corresponding to it. This verification interval serves as a reasonable range for the first current value. If the first current value is within the verification interval, it indicates that the result of the first current value is within a reasonable range, and the calculation result of the first current value is relatively accurate.

[0076] This embodiment further proposes that after calculating and obtaining the first current value, the first current value is further verified to determine the reliability of the first current value.

[0077] In one possible embodiment, extracting the verification interval value of the first current value includes:

[0078] Identify the measurement error range of the current sensor and determine the first error range. The current sensor is used to measure the second current value. Determine the second error range based on the conversion error value of the voltage converter's conversion efficiency. Obtain the product of the first error range, the second voltage value, and the second error range. Calculate the ratio of the product to the first voltage value to generate the verification range of the first current value.

[0079] When evaluating the accuracy of a current sensor, it is first necessary to identify its measurement error range. This range represents the maximum deviation of the measurement result from the true value under normal operating conditions. For example, if the measurement error range of a current sensor is ±3%, it means that any current value it measures may deviate from the actual value by ±3%. Based on this, a specific "second current value" is selected as the object of measurement, and this current value will be measured by the current sensor. Because the current sensor has the aforementioned measurement error range, the measured second current value will also fall within an error range. Simultaneously, the voltage converter also incurs a certain conversion error during the conversion of the current signal into a voltage signal, manifested as an error in the conversion efficiency, which constitutes the "second error range." This error range reflects the possible deviation of the voltage converter's output voltage value from the theoretical value. Next, the first error range (i.e., the measurement error range of the current sensor), the converted second voltage value, and the second error range (the conversion error of the voltage converter) are multiplied to obtain a new product value. This product value comprehensively considers all potential error effects throughout the entire process from current measurement to voltage conversion. Finally, by calculating the ratio between this product value and the actual measured voltage value, a verification interval for the original first current value can be generated. This verification interval comprehensively reflects the uncertainties throughout the entire process from current measurement to voltage conversion, providing an effective verification range for the authenticity of the first current value.

[0080] In this embodiment, the component process for verifying the interval value is further explained. The verification interval value is designed primarily to account for potential measurement errors in the data used in the calculation of the first current value. First, a first error interval value for the second current value is determined. When the second current value is directly measured at the output of the voltage converter, the reading result of the current sensor used to measure the second current value may have a certain error. In this case, the measurement error interval corresponding to the current sensor is used as the first error interval value.

[0081] Meanwhile, when calculating the input power of the voltage converter, there is a certain error value in the conversion efficiency of the voltage converter. The conversion error value of the conversion efficiency is used as the second error range. For example, if the theoretical conversion efficiency of the voltage converter is 80%, but the actual conversion efficiency is between 78% and 82%, then the value of the second error range is -2% to 2%.

[0082] The first and second error interval values ​​are combined and substituted into the calculation process of the first current value. A verification interval is then calculated using these two error intervals. Any first current value within this verification interval can be considered a result obtained due to normal error, and the result of this first current value is accurate and reliable. This embodiment provides a reliable verification reference for performing the verification process of the first current value.

[0083] In one possible embodiment, after calculating the first current value using the output power value and the first voltage value, the method further includes:

[0084] The current value displayed when the current sensor measures the battery output is obtained as the current comparison value; the difference between the first current value and the current comparison value is calculated; if the difference exceeds the threshold, the first current value is used to replace the current comparison value.

[0085] In monitoring battery system performance or calibrating current sensing, the current sensor plays a crucial role. First, the current sensor measures the actual current value of the battery during operation and records it as a current comparison value. This comparison value serves as the baseline data for subsequent analysis and verification. Then, this comparison value is compared with a pre-calculated first current value. The difference is calculated to assess the usability or reliability of the pre-calculated first current value. If the calculated difference exceeds a preset threshold, it indicates a significant deviation between the current comparison value measured by the current sensor and the first current value. In this case, the actual current value measured by the current sensor is much smaller than its measurement accuracy. To ensure data validity and accuracy, the more reliable first current value is used to replace the original comparison value for subsequent data analysis or system adjustments. This process serves both as a verification of the current sensor's measurement results and as a vital means of monitoring the quality of the battery's output current.

[0086] This embodiment also includes a step of comparing the calculated first current value with a directly measured current comparison value. The calculation of the first current value is performed when the battery output current is small and the ammeter measurement error is large. This embodiment further includes a step of using a current comparison value directly measured by a current sensor as a reference. When the difference between the two is greater than a threshold, the calculated battery output current can be considered more accurate than the directly measured comparison current value. In this case, the calculated first current value can directly replace the reference current value.

[0087] In addition, based on the comparison of the current value and the first current value in this embodiment, it is possible to further identify whether the difference between the first current value and the current comparison value is less than the second threshold. If it is less than the second threshold, it can be considered that the difference between the first current value and the current comparison value is not large. It can be considered that the power demand of the electrical equipment is high at this time, and the current output by the battery returns to the reliable range of the current sensor. At this time, the relevant steps of calculating the first current can be directly cancelled, or the measurement result of the current sensor can be directly used to replace the first current value.

[0088] This embodiment includes a process of further measurement and comparison using a current sensor. Furthermore, a favorable current value can be selected as the first current value based on the comparison result. Moreover, this embodiment also includes a scheme to replace the current comparison value with the first current value, or vice versa, thereby improving the flexibility of the method in this embodiment.

[0089] This embodiment provides a device for calculating battery current, such as... Figure 2 The diagram shown is a structural diagram of the device in this embodiment, including: a conversion module 21, a measurement module 22, an acquisition module 23, and a calculation module 24;

[0090] Conversion module 21 is used to control the voltage converter to convert the first voltage value output by the battery to generate a second voltage value, wherein the second voltage value is less than the first voltage value;

[0091] Measurement module 22 is used to measure the second current value at the output terminal of the voltage converter;

[0092] The acquisition module 23 is used to acquire the output power value of the voltage converter using the second voltage value and the second current value;

[0093] Calculation module 24 is used to calculate a first current value by referring to the conversion efficiency of the voltage converter, using the output power value and the first voltage value, wherein the first current value represents the output current value of the battery.

[0094] In one possible embodiment, the measurement module 22 is configured to:

[0095] Determine the activation status of the electrical equipment, which is connected to the output terminal of the voltage converter;

[0096] Identify the total rated power value of the target electrical equipment, wherein the target electrical equipment is the electrical equipment that is in the active state;

[0097] Based on the total rated power value and the second voltage value, the second current value at the output of the voltage converter is calculated.

[0098] In one possible embodiment, the computing module 24 is configured to:

[0099] Extract the conversion efficiency of the voltage converter;

[0100] Using the conversion efficiency, the input power value of the voltage converter is calculated from the output power value, where the input power value represents the power transferred from the battery to the voltage converter;

[0101] Calculate the first current value based on the input power value and the first voltage value.

[0102] In one possible embodiment, the computing module 24 is further configured to:

[0103] Extract the verification interval value of the first current value;

[0104] The first current value is verified using the verification interval value;

[0105] If the first current value falls within the verification interval, output the first current value.

[0106] In one possible embodiment, the computing module 24 is configured to:

[0107] Identify the measurement error range of the current sensor, determine the first error range, and the current sensor is used to measure the second current value;

[0108] The second error range value is determined based on the conversion error value of the conversion efficiency of the voltage converter;

[0109] Obtain the product of the first error interval value, the second voltage value, and the second error interval value;

[0110] Calculate the ratio of the product value to the voltage value to generate a verification interval value for the first current value.

[0111] In one possible embodiment, the computing module 24 is further configured to:

[0112] The current value displayed when the current sensor measures the output of the battery is obtained as a current comparison value;

[0113] Calculate the difference between the first current value and the current comparison value;

[0114] If the difference exceeds the threshold, the current comparison value is replaced with the first current value.

[0115] Based on this understanding, the technical solution of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as CD-ROM, USB flash drive, mobile hard drive, etc.) and includes several instructions to cause a computer device (such as personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of this application.

[0116] Based on the above, Figure 1 The method shown, and Figure 2 To achieve the above objectives, this application also provides an electronic device, which can be configured on the end side of a vehicle (such as a new energy vehicle). This device includes at least one processor and a memory communicatively connected to the at least one processor. The memory stores instructions executable by the at least one processor. The processor executes a computer program to implement the above-described virtual device embodiments. Figure 1 The method shown.

[0117] Optionally, the aforementioned physical devices may also include a user interface, a network interface, a camera, radio frequency (RF) circuitry, sensors, audio circuitry, a Wi-Fi module, etc. The user interface may include a display screen, input units such as a keyboard, etc., and optional user interfaces may also include USB interfaces, card reader interfaces, etc. The network interface may optionally include standard wired interfaces, wireless interfaces (such as Wi-Fi interfaces), etc.

[0118] Those skilled in the art will understand that the physical device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or combine certain components, or have different component arrangements.

[0119] Based on the above, Figure 1 The method illustrated in this application also provides a computer-readable storage medium storing a computer program thereon. When the computer program is executed by a processor, it implements the method corresponding to any embodiment. The storage medium may further include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the aforementioned physical device and supports the operation of the information processing program and other software and / or programs. The network communication module is used to realize communication between the components within the storage medium, as well as communication with other hardware and software in the information processing physical device.

[0120] Based on the aforementioned electronic device, this application embodiment also provides a vehicle, which may specifically include: such as Figure 2 The device shown or the electronic equipment described above. The vehicle may specifically be a new energy vehicle or a traditional vehicle, etc.

[0121] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware platform, or it can be implemented by hardware. By applying the solution of this embodiment, compared with the prior art, this embodiment first controls the voltage converter to convert the first voltage value output by the battery to generate a second voltage value, the second voltage value being less than the first voltage value; then measures the second current value at the output terminal of the voltage converter; then uses the second voltage value and the second current value to obtain the output power of the voltage converter; finally, referring to the conversion efficiency of the voltage converter, the first current value is calculated using the output power value and the first voltage value, and the first current value is used to represent the output current value of the battery. To ensure that the battery output can power the electrical equipment, a voltage converter is installed at the battery output. This converter transforms the high voltage output from the battery into a low voltage usable by the equipment. Furthermore, the converter further calculates the battery's output power based on the power consumption of the equipment. If the second current value at the voltage output is greater than the first current value at the battery output, the first current value is calculated by measuring the second current value. Because the second current value is relatively large, the error in measuring the second current is relatively small. This results in a smaller error in the final calculated first current value compared to direct measurement, allowing for a more accurate identification of the battery's current output and a more precise assessment of the battery's operating status.

[0122] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the term "comprising" or any other variations thereof is intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0123] The above description is merely a specific embodiment of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for calculating battery current, characterized in that, include: The control voltage converter converts the first voltage value output by the battery to generate a second voltage value, which is less than the first voltage value; Measure the second current value at the output terminal of the voltage converter; The output power value of the voltage converter is obtained using the second voltage value and the second current value; Referring to the conversion efficiency of the voltage converter, a first current value is calculated using the output power value and the first voltage value. The first current value is used to represent the output current value of the battery. If the difference between the first current value and the current comparison value exceeds a threshold, the first current value replaces the current comparison value. The current comparison value is the current value displayed when the current sensor measures the battery output. The accuracy of the first current value is higher than that of the current comparison value.

2. The method according to claim 1, characterized in that, The measurement of the second current value at the output of the voltage converter includes: Determine the activation status of the electrical equipment, which is connected to the output terminal of the voltage converter; Identify the total rated power value of the target electrical equipment, wherein the target electrical equipment is the electrical equipment that is in the active state; Based on the total rated power value and the second voltage value, the second current value at the output of the voltage converter is calculated.

3. The method according to claim 1, characterized in that, The calculation of the first current value, using the output power value and the first voltage value, based on the conversion efficiency of the voltage converter, includes: Extract the conversion efficiency of the voltage converter; Using the conversion efficiency, the input power value of the voltage converter is calculated from the output power value, where the input power value represents the power transferred from the battery to the voltage converter; Calculate the first current value based on the input power value and the first voltage value.

4. The method according to claim 3, characterized in that, After calculating the first current value using the output power value and the first voltage value, with reference to the conversion efficiency of the voltage converter, the method further includes: Extract the verification interval value of the first current value; The first current value is verified using the verification interval value; If the first current value falls within the verification interval, output the first current value.

5. The method according to claim 4, characterized in that, The extraction of the verification interval value of the first current value includes: Identify the measurement error range of the current sensor, determine the first error range, and the current sensor is used to measure the second current value; The second error range value is determined based on the conversion error value of the conversion efficiency of the voltage converter; Obtain the product of the first error interval value, the second voltage value, and the second error interval value; Calculate the ratio of the product value to the first voltage value to generate a verification interval value for the first current value.

6. The method according to claim 1, characterized in that, After calculating the first current value using the output power value and the first voltage value, the method further includes: The current value displayed when the current sensor measures the output of the battery is obtained as a current comparison value; Calculate the difference between the first current value and the current comparison value; If the difference exceeds the threshold, the current comparison value is replaced with the first current value.

7. A device for calculating battery current, characterized in that, include: The conversion module is used to control the voltage converter to convert the first voltage value output by the battery to generate a second voltage value, wherein the second voltage value is less than the first voltage value; The measurement module is used to measure the second current value at the output terminal of the voltage converter; The acquisition module is used to acquire the output power value of the voltage converter using the second voltage value and the second current value; The calculation module is used to calculate a first current value by referring to the conversion efficiency of the voltage converter, using the output power value and the first voltage value, and the first current value is used to represent the output current value of the battery; The calculation module is also used to obtain the current value displayed by the current sensor when measuring the battery output, as a current comparison value; and to calculate the difference between the first current value and the current comparison value. If the difference exceeds the threshold, the current comparison value is replaced with the first current value.

8. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1-6.

10. A vehicle, characterized in that, The vehicle is equipped with the device as described in claim 7, or the electronic device as described in claim 8.

Citation Information

Patent Citations

  • Power source device and programmable controller

    CN102782512A