Storage battery charge state initialization method and device and readable storage medium
By reading and comparing the voltage value multiple times after the battery sensor is powered on, the problem of inaccurate initialization of the state of charge caused by loose calipers is solved, ensuring the accuracy of the battery capacity and improving the vehicle test pass rate.
Patent Information
- Application Number
- CN202410014179.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-04
- Publication Date
- 2025-07-04
AI Technical Summary
During the installation of the battery sensor, the voltage reading is inaccurate due to the loose caliper, resulting in inaccurate initialization value of the battery state of charge, which in turn leads to the problem of failure of vehicle tests on the production line.
After the battery sensor is powered on, the battery voltage is read multiple times and compared. The comparison mechanism ensures the accuracy of the voltage value. If certain conditions are met, the state of charge will be initialized, otherwise an alarm signal will be sent to check the installation status.
The accuracy of the initialization value of the state of charge is ensured, and the large difference between the actual battery power and the initialization value on the production line is avoided, and the vehicle test pass rate is improved.
Smart Images

Figure CN120254622A_ABST
Abstract
Description
Technical Field
[0001] This application relates to a method, apparatus, and readable storage medium for initializing the state of charge of a storage battery. Background Art
[0002] The battery management system (BMS) is an important link connecting vehicle power, batteries, and electric vehicles. Its main functions include: real-time monitoring of battery physical parameters, battery state estimation, online diagnosis and warning, charge / discharge and pre-charge control, equalization management, and thermal management. The core of the battery management system is the monitoring of the battery state, and among them, the calculation of the state of charge (SOC) of the power battery pack is the most important.
[0003] The intelligent battery sensor (IBS) is an important component of the power management system in the vehicle communication system, which is used to monitor the battery state and send the battery state to the BMS. The battery sensor is fixed to the negative caliper of the battery by bolts. If the caliper is loose during the installation process, the battery voltage read by the battery sensor will be inaccurate, resulting in an inaccurate initial value of the battery SOC, and further resulting in a large difference between the actual battery power and the initial value of the battery on the production line, making the vehicle test fail during the vehicle offline process in the vehicle factory. Summary of the Invention
[0004] The present invention provides a method, apparatus, and readable storage medium for initializing the state of charge of a storage battery, which can improve the accuracy of the initial value of the battery SOC.
[0005] In a first aspect, this application provides a method for initializing the state of charge of a storage battery. The method includes: when the battery sensor starts to power on, performing a power-on detection on the battery sensor, where the battery sensor is used to read the voltage of the storage battery; when the power-on of the battery sensor is completed, reading the voltage of the storage battery multiple times to obtain multiple voltage values; comparing the multiple voltage values, and if the multiple voltage values meet a first comparison result, performing an initialization operation on the state of charge to obtain the current battery power of the storage battery.
[0006] In a possible implementation of the above first aspect, the first comparison result indicates that the multiple voltage values are all the same and not zero.
[0007] In a possible implementation of the above first aspect, if the multiple voltage values meet a second comparison result, sending an alarm signal; where the second comparison result indicates that at least two of the multiple voltage values are different, or there is at least one voltage value that is zero; the alarm signal is used to warn that the voltage value reading is inaccurate and it is necessary to check the installation state of the battery sensor.
[0008] In a possible implementation of the first aspect above, comparing multiple voltage values includes: comparing the multiple voltage values based on the difference between any two of the multiple voltage values; the method further includes: when the multiple voltage values are all non-zero and the difference between any two of the multiple voltage values is less than or equal to a first difference, determining that the multiple voltage values satisfy a first comparison result.
[0009] In a possible implementation of the first aspect above, when there is a difference greater than a second difference between any two of the multiple voltage values, or when there is at least one voltage value equal to zero, determining that the multiple voltage values satisfy a second comparison result.
[0010] In a possible implementation of the first aspect above, performing an initialization operation on the state of charge to obtain the current battery charge of the storage battery includes: obtaining a relationship curve between the open-circuit voltage of the battery and the state of charge; determining, from the relationship curve, the battery charge corresponding to any one of the multiple voltage values; and determining the battery charge as the current battery charge of the storage battery.
[0011] In a possible implementation of the first aspect above, when the storage battery sensor starts to power on, performing a power-on detection on the storage battery sensor includes: if it is detected that the power-on of the storage battery sensor is completed, the storage battery sensor starts to read the voltage of the storage battery; if it is detected that the power-on of the storage battery sensor is not completed, waiting for the storage battery sensor to power on.
[0012] In a second aspect, the present application provides a device for initializing the state of charge of a storage battery, including: a power-on detection module for performing a power-on detection on the storage battery sensor when the storage battery sensor starts to power on, the storage battery sensor being used to read the voltage of the storage battery; a voltage reading module for repeatedly reading the voltage of the storage battery when the power-on of the storage battery sensor is completed to obtain multiple voltage values; a comparison module for comparing the multiple voltage values; and an initialization module for, if the multiple voltage values satisfy a first comparison result, performing an initialization operation on the state of charge to obtain the current battery charge of the storage battery.
[0013] In a third aspect, the present application provides a readable storage medium having instructions stored thereon that, when executed on a computer, cause the computer to execute the method for initializing the state of charge of a storage battery in any one of the possible implementations of the first aspect above.
[0014] In a fourth aspect, the present application provides a computer program product including computer programs / instructions that, when executed by a processor, implement the method for initializing the state of charge of a storage battery in any one of the possible implementations of the first aspect above.
[0015] The technical solution provided by the embodiments of the present application at least brings the following beneficial effects:
[0016] For the initialization method of the state of charge of the battery provided by the embodiments of the present application, after the battery sensor is powered on, the voltage of the battery is read multiple times to obtain multiple voltage values; the multiple voltage values are compared. If the multiple voltage values meet the first comparison result, an initialization operation is performed on the state of charge to obtain the current battery power of the battery. By adding a comparison mechanism when the battery sensor reads the battery voltage, it is ensured that the read battery voltage is an accurate value, so that the initialized value of the state of charge of the battery is accurate, avoiding a large difference between the actual power of the battery on the production line and the initialized value, and making the vehicle test fail during the offline process of the vehicle in the vehicle factory. Description of the Drawings
[0017] Figure 1 is a schematic diagram of the connection between a battery and a battery sensor;
[0018] Figure 2 is a flowchart of an initialization method for the state of charge of a battery;
[0019] Figure 3 is an example diagram of the corresponding curve between the open-circuit voltage and the state of charge;
[0020] Figure 4 is a flowchart of an initialization method for the state of charge of a battery provided by the embodiments of the present application;
[0021] Figure 5 is a schematic diagram of an application scenario of an initialization method for the state of charge of a battery provided by the embodiments of the present application;
[0022] Figure 6 is a block diagram of an initialization device for the state of charge of a battery provided by the embodiments of the present application. Detailed Embodiments
[0023] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application.
[0024] The illustrative embodiments of the present application include, but are not limited to, an initialization method, device, and readable storage medium for the state of charge of a battery.
[0025] Referring to Figure 1 , the battery sensor is fixed to the negative caliper of the battery by bolts. If the caliper is loose during the installation process, it will cause inaccurate voltage reading. Since the initialized value of the battery SOC is determined according to the read voltage value, there will be a large difference between the obtained battery power and the actual power of the battery.
[0026] In some alternative embodiments, the initialization method of the battery SOC is as Figure 2 shown, and includes the following steps:
[0027] S101: Power-on detection,
[0028] Perform a power-on detection on the battery sensor. After the battery sensor completes power-on, start reading the voltage of the battery.
[0029] It can be understood that data cannot be read when the battery sensor has not completed power-on. Because the battery sensor needs to be normally powered to work and measure data such as the voltage, internal resistance, and temperature of the battery.
[0030] S102: Read voltage,
[0031] After the battery sensor completes power-on, read the voltage of the battery to obtain a voltage value.
[0032] S103: Perform an initialization operation on the battery SOC to obtain the battery charge of the battery,
[0033] Perform an initialization operation on the battery SOC according to the obtained voltage value to obtain the battery charge of the battery.
[0034] Specifically, performing an initialization operation on the battery SOC includes: obtaining the relationship curve (OCV-SOC curve) between the open circuit voltage (OCV) and SOC of the battery; determining the battery charge corresponding to the voltage value from the OCV-SOC curve; and determining this battery charge as the current battery charge of the battery.
[0035] Exemplarily, the OCV-SOC curve can refer to Figure 3 , such as Figure 3 shown, the OCV of the battery corresponds one-to-one with the SOC. According to the measured voltage value, the corresponding SOC value, that is, the current battery charge of the battery, can be obtained through this curve. The OCV-SOC curve is usually stored in the BMS or battery monitoring device, and the battery sensor can directly obtain this curve.
[0036] It can be understood that if the caliper is loose during the installation process, the voltage value measured by the battery sensor will be inaccurate, resulting in an inaccurate SOC corresponding to this voltage value, that is, the current battery charge of the battery is inaccurate.
[0037] To solve the above problems, the embodiments of the present application provide an initialization method for the battery SOC. The following will describe the initialization method for the battery SOC provided by the present application in combination with Figure 4 for illustration.
[0038] As Figure 4 shown, the initialization method of the battery SOC includes the following steps:
[0039] S201: Power-on detection
[0040] In the embodiment of the present application, the battery sensor is first powered on for detection. After the battery sensor is powered on, the voltage of the battery is read.
[0041] S202: Read the voltage multiple times and compare the voltage values
[0042] In the embodiment of the present application, after the battery sensor is powered on, the battery voltage is read multiple times to obtain multiple voltage values, and the obtained multiple voltage values are compared. Among them, reading multiple times can be continuously reading N times to obtain N voltage values, or continuously reading N times to obtain N / n voltage values, that is, every time n voltage values are continuously read, the average value of the n voltage values is taken as the final voltage value. Exemplarily, 9 voltage values are continuously read, and every time 3 voltage values are continuously read, the average value of the 3 voltage values is calculated. Finally, 3 voltage average values can be obtained, and then the 3 voltage average values can be compared. In this way, for a battery sensor with a high reading frequency, the voltage values read in a short time may be relatively close. By increasing the number of readings but not increasing the comparison frequency, the possibility of missed detection is reduced.
[0043] It can be understood that the main purpose of comparing multiple voltage values is to determine whether the multiple voltage values are the same. The comparison method can be directly judging whether the multiple voltage values are the same, or based on the difference between any two voltage values among the multiple voltage values to determine whether the any two voltage values are the same. The latter allows a certain floating space for the voltage values read multiple times, that is, in the case where the difference is relatively small, the any two voltage values can also be regarded as the same.
[0044] S203: Judge whether the voltage value meets the first comparison result
[0045] In the embodiment of the present application, after obtaining multiple voltage values, based on the comparison of the multiple voltage values, it is judged whether the multiple voltage values meet the first comparison result. If the first comparison result is met, it means that the multiple voltage values are all the same and not zero, and step S204 is executed; otherwise, it means that at least two of the multiple voltage values are different, or there is at least one voltage value of zero, and step S205 is executed.
[0046] In some embodiments, it is possible to directly judge manually whether multiple read voltage values are the same and whether each voltage value is 0. Thus, in practical applications, it is possible to quickly and simply identify a battery sensor with an abnormal installation, avoiding subsequent initialization of the SOC based on incorrect voltage values. If it is manually determined that the multiple voltage values are the same and not 0, it means that the first comparison result is satisfied.
[0047] In some embodiments, it is also possible to compare multiple voltage values by using the difference between any two of the multiple voltage values to determine whether the two voltage values are the same. For example, when all of the multiple voltage values are not 0 and the difference between any two of the multiple voltage values is less than or equal to a first difference, it is determined that the obtained multiple voltage values satisfy the first comparison result, that is, the multiple voltage values are all the same and not 0. It can be understood that when the difference between any two of the multiple voltage values is greater than the first difference, or when at least one of the voltage values is 0, it means that the first comparison result is not satisfied. The first difference can be 0 or a value infinitely close to 0.
[0048] In some embodiments, when the difference between any two of the multiple voltage values is greater than a second difference, or when at least one of the voltage values is 0, it is determined that the obtained multiple voltage values satisfy the second comparison result, that is, among the multiple voltage values, at least two voltage values are different, or at least one voltage value is 0. The second difference can be 0 or a value infinitely close to 0.
[0049] It can be understood that the above first difference and second difference can be the same or different. When the first difference and the second difference are the same, the result of comparing the multiple voltage values is either the first comparison result or the second comparison result.
[0050] S204: Perform an initialization operation on the battery SOC to obtain the battery power of the battery.
[0051] When the voltage value satisfies the first comparison result, it means that any one of the multiple voltages measured by the battery sensor can be used as the basis for initializing the SOC. At this time, an initialization operation is performed on the battery SOC to obtain the current battery power of the battery.
[0052] Specifically, performing an initialization operation on the battery SOC includes: obtaining an OCV-SOC curve; determining, from the OCV-SOC curve, the battery power corresponding to any one of the multiple voltage values; and determining the battery power as the current battery power of the battery.
[0053] S205: Send an alarm signal.
[0054] In some embodiments, when the voltage value does not satisfy the first comparison result, that is, when it satisfies the second comparison result, it indicates that the voltage value measured by the battery sensor is inaccurate, which means that the caliper at the connection between the battery sensor and the battery may be loose. At this time, an alarm signal needs to be sent to the main node, where the alarm signal is used to warn that the voltage value reading is inaccurate and the installation status of the battery sensor needs to be checked.
[0055] Specifically, the battery sensor sends an alarm signal to the main node through a local interconnect network (LIN) bus. After receiving the alarm signal, the main node stops the battery SOC initialization process and issues a prompt to check the caliper at the negative terminal of the battery.
[0056] It can be understood that according to different actual application scenarios, the main node can be an energy management system or an electronic control unit (ECU) of an automobile.
[0057] The application scenario of an initialization method for the state of charge of a battery provided in this application can refer to Figure 5 , such as Figure 5 shown, the vehicle architecture may include a battery 501, a battery sensor 502, a LIN bus 503, a start-stop control 504, an ECU 505, an energy management 506, a steering system 507, an electronic brake 508, a lamp 509, a starter 510, an engine 511, an alternator 512, a chassis 513, etc.
[0058] It should be understood that Figure 5 only some vehicle components are shown. In actual application scenarios, a vehicle may include more or fewer components, or some components may be combined or split, which is not limited here.
[0059] The battery sensor 502 is fixed on the negative caliper of the battery 501. The battery sensor 502 can detect information such as the SOC, state of health (SOH), and state of function (SOF) of the battery, and send it to the ECU 505 through the LIN bus 503 via the start-stop control 504.
[0060] The LIN bus 503 can provide signal configuration, processing, identification, and diagnosis functions, realize the control of distributed electronic systems in the vehicle, and provide auxiliary functions for existing vehicle networks.
[0061] The start-stop control 504 is used to automatically turn off the engine when the vehicle temporarily stops during driving (such as waiting at a red light), and automatically restart the engine when it is necessary to move forward, saving the vehicle's fuel consumption.
[0062] The ECU 505 is used to control the driving state of the vehicle and implement various functions by collecting and exchanging data from various sensors and buses.
[0063] The energy management 506 is used to manage the power of the vehicle's battery, preventing overcharging and over-discharging.
[0064] The steering system 507 is used to control the driving direction of the vehicle.
[0065] The electronic brake 508 realizes parking braking through electronic control.
[0066] The lamp 509 is used to provide lighting function for the vehicle, indicate the driving state of the vehicle, etc.
[0067] The starter 510 is used to start the engine 511 when the vehicle starts.
[0068] The engine 511 is used to provide power for the vehicle.
[0069] The alternator 512 is used to supply power to all electrical devices except the starter when the engine is running normally, and can also charge the battery.
[0070] The chassis 513 is the support of the vehicle, which can support and install the vehicle body, engine and other components, form the overall shape of the vehicle, and bear the engine power to ensure the normal driving of the vehicle, etc.
[0071] The method for initializing the state of charge of the battery provided in this application ensures that the battery voltage read is an accurate value by adding a comparison mechanism before initializing the battery SOC (when the battery sensor reads the battery voltage), reading the battery voltage of the battery multiple times and comparing the voltage values, so as to ensure that the battery power obtained by initializing the battery SOC does not have a large difference from the actual battery power of the battery, avoiding the problem that the actual power of the battery on the production line has a large difference from the initialized value, and making the vehicle test fail during the offline process of the vehicle in the vehicle factory.
[0072] As Figure 6 shown, this application also provides a device for initializing the battery SOC, including a power-on detection module 601, a voltage reading module 602, a comparison module 603 and an initialization module 604.
[0073] The power-on detection module 601 is used to perform a power-on detection on the battery sensor when the battery sensor starts to power on; if it is detected that the power-on of the battery sensor is completed, the battery sensor starts to read the battery voltage; if it is detected that the power-on of the battery sensor is not completed, wait for the battery sensor to power on.
[0074] The voltage reading module 602 is used to read the voltage of the battery multiple times when the power-on of the battery sensor is completed, and obtain multiple voltage values;
[0075] The comparison module 603 is used to compare multiple voltage values;
[0076] The initialization module 604 is used to perform an initialization operation on the battery SOC if multiple voltage values meet the first comparison result, and obtain the current battery charge of the battery.
[0077] In some embodiments, the first comparison result indicates that multiple voltage values are all the same and not zero.
[0078] In some embodiments, an alarm module is further included; the alarm module is used to send an alarm signal if multiple voltage values meet the second comparison result; wherein, the second comparison result indicates that at least two of the multiple voltage values are different, or there is at least one voltage value equal to zero; the alarm signal is used to warn that the voltage value reading is inaccurate and the installation status of the battery sensor needs to be checked.
[0079] In some embodiments, the comparison module 603 is further used to compare multiple voltage values based on the difference between any two of the multiple voltage values; in the case where all of the multiple voltage values are not zero and the difference between any two of the multiple voltage values is less than or equal to the first difference, it is determined that the multiple voltage values meet the first comparison result.
[0080] In some embodiments, the comparison module 603 is further used to determine that the multiple voltage values meet the second comparison result in the case where the difference between any two of the multiple voltage values is greater than the second difference, or there is at least one voltage value equal to zero.
[0081] In some embodiments, the initialization module 604 is further used to obtain the OCV-SOC curve of the battery; determine the battery charge corresponding to any one of the multiple voltage values from the OCV-SOC curve; and determine the battery charge as the current battery charge of the battery.
[0082] In some alternative embodiments, the present application further provides a readable storage medium, on which instructions are stored, and when the instructions are executed on a computer, the computer executes the initialization method of the state of charge of the battery involved in the above embodiments.
[0083] In some alternative embodiments, the present application further provides a computer program product, including computer programs / instructions which, when executed by a processor, implement the method for initializing the state of charge of a storage battery involved in the above embodiments.
[0084] It should be noted that in the examples and the description of the present application, relational terms such as first and second are only used 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 "comprising", "including" or any other variation thereof is intended to cover a non-exclusive inclusion, such that a process, method, article or device including a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the phrase "including one" does not exclude the presence of additional identical elements in the process, method, article or device including the element.
[0085] Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, those of ordinary skill in the art should understand that various changes may be made thereto in form and detail without departing from the scope of the present application.
Claims
1. A method for initializing the state of charge of a storage battery, characterized in that, Including: When the battery sensor starts to be powered on, perform a power-on detection on the battery sensor, where the battery sensor is used to read the voltage of the battery; When the power-on of the battery sensor is completed, read the voltage of the battery multiple times to obtain multiple voltage values; Compare the multiple voltage values; If the multiple voltage values satisfy a first comparison result, perform an initialization operation on the state of charge to obtain the current battery charge of the battery.
2. The method according to claim 1, wherein The first comparison result indicates that the multiple voltage values are all the same and not zero.
3. The method according to claim 1, characterized in that, Also including: If the multiple voltage values satisfy a second comparison result, send an alarm signal; Wherein, the second comparison result indicates that at least two of the multiple voltage values are different, or there is at least one voltage value that is zero; the alarm signal is used to warn that the voltage value reading is inaccurate and the installation state of the battery sensor needs to be checked.
4. The method according to claim 3, wherein The comparing the multiple voltage values includes: Based on the difference between any two of the multiple voltage values, compare the multiple voltage values; The method also includes: In the case where the multiple voltage values are all not zero and the difference between any two of the multiple voltage values is less than or equal to a first difference, determine that the multiple voltage values satisfy the first comparison result.
5. The method according to claim 4, wherein Also including: In the case where the difference between any two of the multiple voltage values is greater than a second difference, or there is at least one voltage value that is zero, determine that the multiple voltage values satisfy the second comparison result.
6. The method according to claim 2, wherein The performing an initialization operation on the state of charge to obtain the current battery charge of the battery includes: Obtain the relationship curve between the open-circuit voltage of the battery and the state of charge; From the relationship curve, determine the battery charge corresponding to any one of the multiple voltage values; Determine the battery charge as the current battery charge of the battery.
7. The method according to claim 1, characterized in that The when the battery sensor starts to be powered on, perform a power-on detection on the battery sensor includes: If it is detected that the power-on of the battery sensor is completed, the battery sensor starts to read the voltage of the battery; If it is detected that the power-on of the battery sensor is not completed, wait for the battery sensor to be powered on.
8. An initializing device for the state of charge of a storage battery, characterized in that, Including: A power-on detection module, configured to perform a power-on detection on the battery sensor when the battery sensor starts to be powered on, where the battery sensor is used to read the voltage of the battery; A voltage reading module, configured to read the voltage of the battery multiple times when the power-on of the battery sensor is completed to obtain multiple voltage values; A comparison module, configured to compare the multiple voltage values; An initialization module, configured to perform an initialization operation on the state of charge to obtain the current battery charge of the battery if the multiple voltage values satisfy a first comparison result.
9. A readable storage medium, characterized in that, Instructions are stored on the readable storage medium, and when the instructions are executed on a computer, the computer executes the method for initializing the state of charge of the battery according to any one of claims 1 to 7.
10. A computer program product, characterized in that, Comprising a computer program / instructions, when the computer program / instructions are executed by a processor, implementing the method for initializing the state of charge of a storage battery according to any one of claims 1 to 7.