Battery current calculation method and device, electronic equipment and vehicle
Through the voltage converter and current calculation method, the problem of large measurement error when the battery output current value is small is solved, and accurate calculation of the current value and accurate identification of the battery working status are achieved.
Patent Information
- Application Number
- CN202410371360.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-28
- Publication Date
- 2025-09-30
AI Technical Summary
When the battery output current value is small, the existing current sensor has a large measurement error and cannot accurately obtain the battery output current value, resulting in the inability to timely identify the battery's working status.
By controlling the voltage converter to convert the voltage value output by the battery into a lower voltage value, measuring the current value of the voltage converter, and combining the conversion efficiency of the voltage converter to calculate the output current value of the battery, the output power of the battery is calculated by multiplying the voltage and current values, and then the output current value of the battery is calculated.
The accuracy of current measurement is improved, measurement errors are reduced, and the current output of the battery can be identified more accurately, ensuring accurate identification of the battery's working status.
Smart Images

Figure CN120722192A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of battery management technology, and in particular to a method, device, electronic device, and vehicle for calculating battery current. Background Art
[0002] When a battery is used to adapt to multiple electrical devices at the same time, the power output by the battery can adapt to the combined power consumption of multiple electrical devices. In order to maintain the safety of the battery during use, a current sensor is provided at the output end of the battery to monitor the output current of the battery and promptly determine whether the working state of the current is normal based on the magnitude of the output current value. When the rated output voltage of the battery is high and the power demand of the electrical device connected to the battery is low, the rated output voltage of the battery is constant. At this time, the output current of the battery is small. The error value of the output current of the battery measured by the current sensor in the prior art is large, making it difficult to accurately obtain the output current value of the battery, and it is impossible to accurately determine the working condition of the battery. When an abnormality occurs in the battery, it is impossible to detect and respond in time. Summary of the Invention
[0003] In view of this, the present application provides a battery current calculation method, device, electronic device and vehicle, the main purpose of which is to solve the technical problem that the battery's output current cannot be accurately obtained when the battery outputs a small current value.
[0004] To achieve the above objectives, the present application discloses, in a first aspect, a method for calculating battery current, the method comprising:
[0005] Controlling a voltage converter to convert a first voltage value output by the battery to generate a second voltage value, wherein the second voltage value is smaller than the first voltage value;
[0006] measuring a second current value at an output end of the voltage converter;
[0007] Obtaining an output power value of the voltage converter 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, where 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 end of the voltage converter includes:
[0010] determining an activation status of an electric device connected to an output terminal of the voltage converter;
[0011] Identifying a total rated power value of a target electrical device, wherein the target electrical device is an electrical device in an enabled state;
[0012] A second current value at the output of the voltage converter is calculated in combination with the total rated power value and the second voltage value.
[0013] Optionally, referring to the conversion efficiency of the voltage converter and calculating the first current value using the output power value and the first voltage value includes:
[0014] extracting a conversion efficiency of the voltage converter;
[0015] Calculating an input power value of the voltage converter using the conversion efficiency and the output power value, wherein the input power value represents a power value transmitted from the battery to the voltage converter;
[0016] A first current value is calculated according to the input power value and the first voltage value.
[0017] Optionally, after calculating the first current value by referring to the conversion efficiency of the voltage converter and using the output power value and the first voltage value, the method further includes:
[0018] extracting a verification interval value of the first current value;
[0019] Verifying the first current value using the verification interval value;
[0020] If the first current value is between the verification interval values, the first current value is output.
[0021] Optionally, extracting a verification interval value of the first current value includes:
[0022] Identifying a measurement error interval value of a current sensor and determining a first error interval value, wherein the current sensor is used to measure the second current value;
[0023] determining a second error interval value according to a conversion error value of the conversion efficiency of the voltage converter;
[0024] Obtaining a product value of the first error interval value, the second voltage value, and the second error interval value;
[0025] A ratio of the product value to the first voltage value is calculated to generate a verification interval value of 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] obtaining a current value displayed when a current sensor measures the battery output as a current comparison value;
[0028] calculating a difference between the first current value and the current comparison value;
[0029] If the difference exceeds a threshold, the current comparison value is replaced by the first current value.
[0030] In a second aspect of the present application, an embodiment provides a device for calculating battery current, the device comprising:
[0031] a conversion module, configured to control a voltage converter to convert a first voltage value output by the battery to generate a second voltage value, wherein the second voltage value is smaller than the first voltage value;
[0032] a measuring module, configured to measure a second current value at an output end of the voltage converter;
[0033] an acquisition module, configured to acquire an output power value of the voltage converter using the second voltage value and the second current value;
[0034] The calculation module is configured to calculate a first current value by referring to the conversion efficiency of the voltage converter and using the output power value and the first voltage value, where the first current value is used to represent the output current value of the battery.
[0035] In a third aspect of the present application, an embodiment provides an electronic device, including:
[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, and the instructions are executed by the at least one processor to enable the at least one processor to execute any one of the methods disclosed in the first aspect.
[0037] In a fourth aspect of the present application, an embodiment provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method described in the first aspect is implemented.
[0038] In a fifth aspect embodiment of the present application, a vehicle is provided, 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 the present application, in solving the technical problem that when the power of the electrical equipment supported by the battery is small, the current value output by the battery is small, and direct measurement by the current sensor may result in large errors, the present application first controls the voltage converter to convert the first voltage value output by the battery to generate a second voltage value, and the second voltage value is smaller than the first voltage value; then measures the second current value at the output end 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, uses the output power value and the first voltage value to calculate the first current value, and the first current value is used to represent the output current value of the battery. In order to enable the electric energy output by the battery to support the operation of electrical equipment, a voltage converter is provided at the output end of the battery. The voltage converter can convert the high voltage output by the battery into a low voltage that can be used by the electrical equipment. At the same time, the converter of the voltage converter is further integrated to restore and calculate the output power of the battery according to the power used by the electrical equipment. When the second current value at the voltage output end is greater than the first current at the battery output end, the first current value is further calculated by measuring the second current value. On the basis of the larger second current value, the error value when measuring the second current is relatively small, so that the first current value finally calculated has a smaller error value than direct measurement, which can more accurately identify the current output of the battery and further more accurately identify the working condition of the battery.
[0040] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0042] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0043] Figure 1 A flow chart of a method for calculating battery current provided in an embodiment of the present application is shown;
[0044] Figure 2 A structural diagram of a device for calculating battery current provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0045] In order to more clearly understand the above-mentioned objectives, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that, in the absence of conflict, the embodiments of the present application and the features therein can be combined with each other.
[0046] In order to solve the technical problem that the battery cannot accurately obtain the output current when the output current value is small, the present application provides the following embodiments to solve the above problem:
[0047] This embodiment provides a method for calculating battery current, such as Figure 1 FIG. 1 is a flow chart of the method of this embodiment, which may include the following steps:
[0048] Step 101 : Control a voltage converter to convert a first voltage value output by a battery to generate a second voltage value, where the second voltage value is smaller than the first voltage value.
[0049] Batteries are primarily used to support the normal operation of various electrical devices. A single battery pack can power multiple devices. When there are a large number of electrical devices with varying rated voltages, and a small number of batteries, batteries are often designed with a wide output current range. In this case, when the power demands of the electrical devices are high, the high current output of the battery can support normal operation. However, when not all electrical devices are active, and the power requirements of the active power supply devices are low, the battery's output current range is relatively low, even with a wide output current range. When the battery output current is too low, the current sensor installed at the battery output terminal may experience measurement errors, resulting in a significant difference between the measured battery output and the actual battery output, with the error being almost equal to or greater than the actual battery output. In this case, the current value directly obtained by the current sensor is unreliable and difficult to use as a basis for determining the battery output current. For example, a battery is installed in a car, and the battery needs to power multiple electrical devices in the car. Therefore, the maximum current output by the battery is large. When the car is not in driving state, or the car is only parked, the driver leaves. At this time, the car only keeps individual electronic devices with low power demand enabled, using electronic devices such as driving recorders, communication equipment or speakers. At this time, the car's power consumption is relatively small. The current sensor directly measures the output current of the battery, and its measurement results are not accurate enough.
[0050] In order to adapt the electric energy output by the battery to the usage requirements of the electrical equipment, the voltage value of the electric energy output by the battery needs to be adjusted. For example, the voltage value of the electric energy output by the battery is 760V, while the voltage value of the electric equipment is 48V. The electric energy output by the battery cannot be directly connected to the electrical equipment. In this embodiment, a voltage converter is connected between the battery and the electrical equipment. The main function of the voltage converter is to convert the voltage of the electric energy output by the battery to a voltage that matches the electric energy of the electrical equipment. Exemplarily, the type of voltage converter can be a direct current-to-direct current (DC-DC) converter, which can convert a DC voltage into a DC voltage value of another voltage value. In this embodiment, the function of the voltage converter is to convert a high voltage value into a low voltage converter.
[0051] Step 102: Measure a second current value at the output end of the voltage converter.
[0052] After performing the conversion function, the voltage converter converts the electrical energy output by the battery into electrical energy that can adapt to the needs of 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 large, the measurement result of the second current value measured by the current sensor has a small error ratio in the measurement result, and the measurement result of the second current value is relatively accurate and reliable. For example, when the measurement error of the current sensor is 0.5A, the measurement result of the first current value at the battery output end is 0.3A, and the measurement result of the second current value is 5A. Even if there is a measurement error in the test, the error ratio of the second current value is lower than that of the first current value. Compared with the first current value, the second current value has higher reliability.
[0053] Step 103: Obtain an 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, calculating the output power of any electrical system, including voltage converters, typically requires knowing the system's voltage and current at a specific moment. The second voltage value refers to the instantaneous voltage at the converter's output terminal, while the second current value represents the current flowing through the converter's load circuit at the same moment. The specific calculation steps are as follows: When a voltage converter is operating, the second voltage value (denoted as V) at its output terminal represents the effective value of the voltage acting on the load, while the second current value (denoted as I) represents the effective value of the current flowing through the load. According to the basic definition of electrical power, electrical power is equal to the product of voltage and current. Therefore, these two real-time measurements can be used to calculate the converter's instantaneous output power. When both voltage and current are direct current (DC), the above formula applies directly. For alternating current (AC) systems, since voltage and current are typically sinusoidal, their phase relationship must be considered when calculating average power. If the load is purely resistive and the voltage and current are in phase, the above product form can be used to calculate active power, regardless of whether the load is AC or not. In summary, in practical applications, by continuously monitoring and collecting the second voltage value and the second current value and continuously calculating their product, the output power state of the voltage converter under different working conditions can be understood in real time.
[0055] After the voltage output of the battery is converted using a voltage converter, the voltage of the converted electrical energy is adapted to the requirements of the electrical device. Therefore, the voltage value at the output of the voltage converter should be the rated voltage value of the electrical device. For example, if the second voltage value is the rated voltage of 220V, the second current value at the output of the voltage converter is measured. The second voltage value and the second current value are used together to adapt the power consumption of the electrical device. Specifically, the product of the voltage value and the current value can be used to obtain the specific power output of the voltage converter. This power situation can also reflect the power consumption of the electrical device.
[0056] Step 104 : Referring to the conversion efficiency of the voltage converter, using the output power value and the first voltage value, a first current value is calculated. The first current value is used to represent the output current value of the battery.
[0057] The output terminal of the voltage converter outputs a second voltage value and a second current value, which are used to meet the power needs of the electrical device connected to the battery. More precisely, the product of the second voltage value and the second current value is used as the output power value of the voltage converter. Since the output power value of the voltage converter is provided by the battery, the output power value of the voltage converter can be considered to be 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, and the first voltage value can be represented as a fixed voltage output value. It can be considered that the product of the first voltage value and the first current value is equal to the output power value. Under the premise that the output power value and the first voltage value can be determined, the first current value representing the battery output can be calculated.
[0058] In order to enable the electric energy output by the battery to support the operation of electrical equipment, a voltage converter is provided at the output end of the battery. The voltage converter can convert the high voltage output by the battery into a low voltage that can be used by the electrical equipment. At the same time, under the premise that the output power of the battery is the same as the power used by the electrical appliance, the second current value at the voltage output end is greater than the first current at the battery output end. The first current value is further calculated by measuring the second current value. On the basis of the larger second current value, the error value when measuring the second current is relatively small, so that the first current value finally calculated has a smaller error value than direct measurement, which can more accurately identify the current output condition of the battery and further more accurately identify the working condition of the battery.
[0059] Furthermore, considering that, in actual operation, the voltage converter may incur certain power losses during voltage conversion, resulting in unequal power values across the voltage converter, when determining the output power value of the voltage converter, the output power of the battery can be further calculated based on the conversion efficiency of the voltage converter. Specifically, the output power of the battery can be calculated based on the ratio of the output power value to the conversion efficiency. The output power of the battery is calculated 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. At this time, when the actual current value of the first current is 0.42A, the possible error is 0.3A, and the error may account for 71%. After conversion by the voltage converter, the measured second voltage value is 5A, and the error is reduced to 6%. Because the second voltage value has higher reliability, the output power value is calculated by combining the second voltage and second current values, and further calculating the first current value by combining the first voltage value. This calculation result has higher reliability than directly measuring the first current value.
[0061] In a possible embodiment, measuring a second current value at an output terminal of the voltage converter includes:
[0062] Determine the activation status of the electrical device, the electrical device is connected to the output end of the voltage converter; identify the total rated power value of the target electrical device, the target electrical device is an electrical device in an activated state; combine the total rated power value and the second voltage value to calculate the second current value at the output end of the voltage converter.
[0063] During power system management and operation, monitoring or control measures can be used to monitor and record the operation and status of each electrical device. This is typically achieved by checking the device's operating signals, reading meter data, or obtaining real-time online status through an intelligent management system. When an electrical device is activated, it is connected to the power grid. Generally, the device is not directly connected to the grid's fixed voltage level. Instead, it uses a voltage converter (such as a transformer or switching power supply adapter) to adjust the output voltage to the rated voltage suitable for the device's operation. This ensures that the device can operate stably under appropriate voltage conditions and avoids damage or performance degradation caused by excessively high or low voltages. Find and confirm the maximum continuous operating power specified for the device during its design and manufacturing. This value is usually measured in watts (W) and is indicated on the device nameplate or technical manual. The rated power reflects the maximum amount of power 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 safe and efficient system operation, the secondary current value at the voltage converter's output must be calculated based on the device's rated power and the secondary voltage value provided by the converter (i.e., the device's actual operating voltage). 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 situations, the second current value can be obtained by appropriately considering the actual power factor of the device and other nonlinear factors.
[0064] This embodiment further provides a method for obtaining a second current value. Because the battery must adapt to the electrical device and meet the device's power requirements, this embodiment further proposes calculating the rated power of the electrical device to further calculate the second current value.
[0065] Specifically, the activation status of the electrical device is first identified. The activation status indicates that the electrical device is in the startup state or the working state. In addition, the activation status can be quickly identified directly based on the working mode. For example, when the battery is an on-board battery and the electrical device is represented as an on-board electrical device, the activation status of the electrical device can be directly determined based on the vehicle's execution model. For example, when the occupants are not in the vehicle and the vehicle engine is turned off, the vehicle can be in an alert mode, that is, the vehicle monitors people or objects approaching the vehicle through individual sensors and issues an alarm through a communication device or speaker when an abnormal situation occurs. At this time, the enabled sensor, communication device or speaker is regarded as the enabled electrical device. After determining the enabled electrical device, the power value of the enabled electrical device is further read, and the total rated power value of the enabled electrical device is determined based on the sum of the power values. Based on the determination of the total rated power value, since the output voltage of the voltage converter is adapted to the rated voltage value of the electrical device, the second current value can be directly determined based on the quotient between the total rated power value and the second voltage value.
[0066] In the content of 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 in this embodiment can fit the actual power demand of the electrical equipment. At the same time, the calculated second current value can be used as a reference with the second current value obtained by direct measurement to ensure the reliability of the final current value.
[0067] In a possible embodiment, the first current value is calculated using the output power value and the first voltage value, and is characterized by including:
[0068] Extracting the conversion efficiency of the voltage converter; using the conversion efficiency, calculating the input power value of the voltage converter through the output power value, where the input power value represents the power value transmitted by the battery to the voltage converter; and calculating the first current value based on the input power value and the first voltage value.
[0069] Conversion efficiency is a key metric for measuring the energy conversion performance of a voltage converter. It indicates the converter's ability to convert energy drawn from the input (i.e., input power) into usable energy at the output (i.e., output power). Conversion efficiency is typically expressed as a percentage. If the conversion efficiency and output power of a voltage converter are known, the input power can be calculated by reverse engineering. Here, input power refers to the power supplied by the battery to the voltage converter, while output power refers to the power supplied to the load during steady-state operation. Next, according to Ohm's law, given the input voltage (first voltage) supplied by the battery to the voltage converter, the first current (i.e., the current flowing between the battery and the voltage converter's input) can be calculated. Therefore, with the conversion efficiency and output power known, the input power can be calculated first. Then, combined with the input voltage (first voltage), the input current (first current) can be calculated.
[0070] This embodiment further considers the conversion efficiency of the voltage converter. Conversion efficiency refers to the ratio of the usable energy output (output power) of a voltage conversion device to its input energy (input power). Considering conversion efficiency involves accounting for energy loss during the power conversion process. Specifically, during operation, the power at the input and output ends of the voltage converter is not completely equal due to energy loss. Therefore, the power relationship between the two ends is also affected by conversion efficiency.
[0071] Given the existence of energy loss, this embodiment further adjusts the method for calculating the first current based on the conversion efficiency associated with energy loss. Since the voltage is fixed before and after the voltage converter, the conversion efficiency factor is reflected in the calculation process of the first current value. Using this embodiment's method to further calculate the first current value ensures the accuracy of the final calculated first current value, ensuring accurate battery monitoring.
[0072] In a possible embodiment, after calculating the first current value using the output power value and the first voltage value, the method further includes:
[0073] Extracting a verification interval value of the first current value; verifying the first current value using the verification interval value; and outputting the first current value if the first current value is between the verification interval values.
[0074] In the field of electrical engineering or industrial automation control systems, extracting verification interval values involves a process involving data collection and comparison with preset standards. First, the first current value is the theoretical calculated current value transmitted by the battery to the voltage converter, calculated using the method of this embodiment. The verification interval value is a reasonable range set based on equipment specifications, safety standards, or historical data analysis, and is used to determine whether the currently measured first current value meets expected or specified conditions. Next, the real-time 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 multiple dimensions such as current stability, current fluctuation amplitude, and long-term trends to assess the rationality and safety of the first current value. If, after a rigorous comparison, the first current value falls within the verification interval value, it indicates that the current value is within the allowable operating range and that the calculated first current value is reasonable, given that the battery output current is sufficient to support the current consumption of the current device. 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 a 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 the first current value. 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 the first current value is calculated and obtained, the first current value is further verified to determine the reliability of the first current value.
[0077] In a possible embodiment, extracting the verification interval value of the first current value includes:
[0078] Identify the measurement error interval value of the current sensor and determine the first error interval value, where the current sensor is used to measure the second current value; determine the second error interval value based on the conversion error value of the conversion efficiency of the voltage converter; obtain the product value 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.
[0079] When evaluating the accuracy of a current sensor, the first step is to identify its measurement error range. This range represents the maximum range within which the sensor's measurement results may deviate from the true value under normal operating conditions. For example, if the current sensor's measurement error range is ±3%, this means that any current value measured by the sensor may deviate by plus or minus 3% from the actual value. Based on this, a specific "second current value" is selected as the measured object, which will be measured by the current sensor. Because the current sensor has this measurement error range, the measured second current value will also fall within this error range. Furthermore, the voltage converter also generates certain conversion errors during the conversion of the current signal into a voltage signal, manifesting as errors in conversion efficiency. This error range represents the potential deviation of the voltage converter's output voltage from the theoretical value. Next, the first error range (i.e., the current sensor's measurement error range), the converted second voltage value, and the second error range (the voltage converter's conversion error) are multiplied together to produce a new product value. This product value comprehensively accounts for all potential errors in the entire process from current measurement to voltage conversion. Finally, by calculating the ratio of this product to the actual measured voltage, a verification interval for the original first current value is generated. This verification interval fully reflects the uncertainty in the entire process from current measurement to voltage conversion, providing an effective verification range for the authenticity of the first current value.
[0080] This embodiment further describes the component process for verifying the interval value. The verification interval value is designed primarily to account for potential measurement errors in the data used during 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 readings of the current sensor used to measure the second current value may contain certain errors. In this case, the measurement error interval corresponding to the current sensor serves as the first error interval value.
[0081] At the same time, when calculating the input power of the voltage converter, there is still a certain error value in the conversion efficiency of the voltage converter, where the conversion error value of the conversion efficiency serves as the second error interval. For example, if the theoretical conversion efficiency of the voltage converter is 80%, but the actual conversion efficiency is between 78% and 82%, the second error interval value is -2% to 2%.
[0082] The first error interval value and the second error interval value are substituted into the calculation process of the first current value, and the verification interval is further calculated by combining the above two error interval values. The first current value within the verification interval value can be considered to be the result obtained due to normal error, and the result of the first current value is accurate and reliable. The content of this embodiment provides a reliable verification reference for executing the verification process of the first current value.
[0083] In a 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 by the current sensor when measuring the battery output is obtained as a current comparison value; the difference between the first current value and the current comparison value is calculated; if the difference exceeds a threshold, the current comparison value is replaced by the first current value.
[0085] Current sensors play a crucial role in monitoring battery system performance or performing current measurement calibration. First, the current sensor measures the actual current value of the battery during operation and records it as a current comparison value. This current comparison value serves as the baseline for subsequent analysis and verification. This current comparison value is then compared with the calculated first current value. The difference between the two is calculated to assess the reliability or usefulness of the calculated first current value. If the calculated difference exceeds a preset threshold, this indicates a significant deviation between the current comparison value measured by the current sensor and the first current value. In this case, the current value measured by the current sensor is actually far below its measurement accuracy. To ensure data validity and accuracy, the more reliable first current value is used to replace the original current comparison value for subsequent data analysis or system adjustments. This process not only verifies the current sensor's measurement results but also serves as an important monitoring method for the quality of the battery's output current.
[0086] This embodiment also includes steps for 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 value is small and the current meter measurement error is large. This embodiment further includes steps for comparing the current comparison value directly measured by the current sensor with the reference current. When the difference between the two is greater than a threshold, it can be considered that the calculated battery output current is 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 comparison current value with 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 a second threshold value. If it is less than the second threshold value, 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 canceled, or the first current value can be directly replaced by the measurement result of the current sensor.
[0088] This embodiment includes a process of further measuring and comparing with a current sensor. Furthermore, a favorable current value can be selected as the first current value based on the comparison result. Furthermore, this embodiment also includes a solution for replacing the current comparison value with the first current value, or replacing the first current value with the current comparison value, thereby increasing the flexibility of executing the method of this embodiment.
[0089] This embodiment provides a battery current calculation device, such as Figure 2 As shown, it is a structural diagram of the device of this embodiment, which includes: a conversion module 21, a measurement module 22, an acquisition module 23 and a calculation module 24;
[0090] a conversion module 21, configured to control a voltage converter to convert a first voltage value output by the battery to generate a second voltage value, wherein the second voltage value is smaller than the first voltage value;
[0091] a measuring module 22, configured to measure a second current value at an output end of the voltage converter;
[0092] an acquisition module 23, configured to acquire an output power value of the voltage converter using the second voltage value and the second current value;
[0093] The calculation module 24 is used to refer to the conversion efficiency of the voltage converter and use the output power value and the first voltage value to calculate a first current value, wherein the first current value is used to represent the output current value of the battery.
[0094] In a possible embodiment, the measurement module 22 is configured to:
[0095] determining an activation status of an electric device connected to an output terminal of the voltage converter;
[0096] Identifying a total rated power value of a target electrical device, wherein the target electrical device is an electrical device in an enabled state;
[0097] A second current value at the output of the voltage converter is calculated in combination with the total rated power value and the second voltage value.
[0098] In a possible embodiment, the calculation module 24 is configured to:
[0099] extracting a conversion efficiency of the voltage converter;
[0100] Calculating an input power value of the voltage converter using the conversion efficiency and the output power value, wherein the input power value represents a power value transmitted from the battery to the voltage converter;
[0101] A first current value is calculated according to the input power value and the first voltage value.
[0102] In a possible embodiment, the calculation module 24 is further configured to:
[0103] extracting a verification interval value of the first current value;
[0104] Verifying the first current value using the verification interval value;
[0105] If the first current value is between the verification interval values, the first current value is output.
[0106] In a possible embodiment, the calculation module 24 is configured to:
[0107] Identifying a measurement error interval value of a current sensor and determining a first error interval value, wherein the current sensor is used to measure the second current value;
[0108] determining a second error interval value according to a conversion error value of the conversion efficiency of the voltage converter;
[0109] Obtaining a product value of the first error interval value, the second voltage value, and the second error interval value;
[0110] A ratio of the product value to the voltage value is calculated to generate a verification interval value of the first current value.
[0111] In a possible embodiment, the calculation module 24 is further configured to:
[0112] obtaining a current value displayed when a current sensor measures the battery output as a current comparison value;
[0113] calculating a difference between the first current value and the current comparison value;
[0114] If the difference exceeds a threshold, the current comparison value is replaced by the first current value.
[0115] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.), and includes a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of the present application.
[0116] Based on the above Figure 1 The method shown, and Figure 2 In order to achieve the above-mentioned purpose, the embodiment of the virtual device shown in the embodiment of the present application further provides an electronic device that can be configured on the vehicle (such as a new energy vehicle) side, the device includes at least one processor, and a memory connected to the at least one processor in communication; the memory is used to store instructions that can be executed by at least one processor, the instructions are executed by at least one processor, and the processor is used to execute a computer program to achieve the above-mentioned Figure 1 The method shown.
[0117] Optionally, the physical device may further include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a Wi-Fi module, and the like. The user interface may include a display, an input unit such as a keyboard, and the like. The optional user interface may also include a USB interface, a card reader interface, and the like. The network interface may optionally include a standard wired interface, a wireless interface (such as a Wi-Fi interface), and the like.
[0118] Those skilled in the art will understand that the above-mentioned physical device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different component arrangements.
[0119] Based on the above Figure 1 The method shown, the embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the method corresponding to any embodiment is implemented. The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the above-mentioned physical device and supports the operation of information processing programs and other software and / or programs. The network communication module is used to realize communication between the components inside the storage medium, and communication with other hardware and software in the information processing physical device.
[0120] Based on the above electronic device, the embodiment of the present application further provides a vehicle, which may specifically include: Figure 2 The device shown or the electronic device as described above. The vehicle can be a new energy vehicle or a traditional vehicle.
[0121] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform, or by means of hardware. By applying the solution of this embodiment, compared with the current existing technology, 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 end 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, with reference to the conversion efficiency of the voltage converter, uses the output power value and the first voltage value to calculate the first current value, the first current value being used to represent the output current value of the battery. In order to enable the electric energy output by the battery to support the operation of electrical equipment, a voltage converter is provided at the output end of the battery. The voltage converter can convert the high voltage output by the battery into a low voltage that can be used by the electrical equipment. At the same time, the converter of the voltage converter is further integrated to restore and calculate the output power of the battery according to the power used by the electrical equipment. When the second current value at the voltage output end is greater than the first current at the battery output end, the first current value is further calculated by measuring the second current value. On the basis of the larger second current value, the error value when measuring the second current is relatively small, so that the first current value finally calculated has a smaller error value than direct measurement, which can more accurately identify the current output of the battery and further more accurately identify the working condition of the battery.
[0122] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprises" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device that includes 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, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a..." do not exclude the presence of other identical elements in the process, method, article or device that includes the elements.
[0123] The foregoing is merely a list of specific embodiments of the present application, intended to enable those skilled in the art to understand and implement the present 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 the present application. Therefore, the present application is not limited to the embodiments described herein, but is intended to conform to the broadest scope consistent with the principles and novel features of the present application.
Claims
1. A method for calculating battery current, characterized in that: include: Controlling a voltage converter to convert a first voltage value output by the battery to generate a second voltage value, wherein the second voltage value is smaller than the first voltage value; measuring a second current value at an output end of the voltage converter; Obtaining an output power value of the voltage converter 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, where the first current value is used to represent the output current value of the battery.
2. The method according to claim 1, characterized in that Measuring a second current value at an output end of the voltage converter includes: determining an activation status of an electric device connected to an output terminal of the voltage converter; Identifying a total rated power value of a target electrical device, wherein the target electrical device is an electrical device in an enabled state; A second current value at the output of the voltage converter is calculated in combination with the total rated power value and the second voltage value.
3. The method according to claim 1, characterized in that The calculating the first current value by using the output power value and the first voltage value with reference to the conversion efficiency of the voltage converter includes: extracting a conversion efficiency of the voltage converter; Calculating an input power value of the voltage converter using the conversion efficiency and the output power value, wherein the input power value represents a power value transmitted from the battery to the voltage converter; A first current value is calculated according to 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 by referring to the conversion efficiency of the voltage converter and using the output power value and the first voltage value, the method further includes: extracting a verification interval value of the first current value; Verifying the first current value using the verification interval value; If the first current value is between the verification interval values, the first current value is output.
5. The method according to claim 4, characterized in that The extracting the verification interval value of the first current value includes: Identifying a measurement error interval value of a current sensor and determining a first error interval value, wherein the current sensor is used to measure the second current value; determining a second error interval value according to a conversion error value of the conversion efficiency of the voltage converter; Obtaining a product value of the first error interval value, the second voltage value, and the second error interval value; A ratio of the product value to the first voltage value is calculated to generate a verification interval value of 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: obtaining a current value displayed when a current sensor measures the battery output as a current comparison value; calculating a difference between the first current value and the current comparison value; If the difference exceeds a threshold, the current comparison value is replaced by the first current value.
7. A battery current calculation device, characterized in that: include: a conversion module, configured to control a voltage converter to convert a first voltage value output by the battery to generate a second voltage value, wherein the second voltage value is smaller than the first voltage value; a measuring module, configured to measure a second current value at an output end of the voltage converter; an acquisition module, configured to acquire an output power value of the voltage converter using the second voltage value and the second current value; The calculation module is configured to calculate a first current value by referring to the conversion efficiency of the voltage converter and using the output power value and the first voltage value, where the first current value is used to represent the output current value of the battery.
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, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 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, the method according to any one of claims 1 to 6 is implemented.
10. A vehicle, characterized in that: The vehicle is equipped with the device according to claim 7 or the electronic device according to claim 8.
Citation Information
Patent Citations
Power source device and programmable controller
CN102782512A
System and method for estimating current in DC-DC converter
CN104215813A
Current detecting method and device for power battery and electric car
CN107515375A
Direct current voltage converter, maximum power tracking method, device and facility, and medium
CN108923647A
Fuel cell DC-DC converter operation control method, computer readable storage medium and fuel cell
CN111682759A