Battery charging and discharging control method and device, computer device, and storage medium

By acquiring the sampled and corrected values ​​of the battery cell temperature, determining the deviation and correction accuracy information, and selecting the target cell temperature value for battery charge and discharge control, the problem of low accuracy in battery charge and discharge control in the prior art is solved, achieving higher control accuracy and stability.

CN122267338APending Publication Date: 2026-06-23CHONGQING JINKANG NEW ENERGY VEHICLE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
CHONGQING JINKANG NEW ENERGY VEHICLE CO LTD
Filing Date
2026-03-24
Publication Date
2026-06-23

AI Technical Summary

Technical Problem

Existing battery charge and discharge control schemes do not accurately assess or correct for temperature values, resulting in low accuracy in charge and discharge control.

Method used

By acquiring the battery cell temperature sampling value and the corresponding cell temperature correction value, the cell temperature deviation value and target correction accuracy information are determined, and the target cell temperature value of the battery is selected for charge and discharge control.

Benefits of technology

It improves the accuracy of battery charge and discharge control, ensures that charge and discharge parameters match the actual temperature state of the battery cell, reduces temperature deviation caused by correction anomalies, and improves the stability and safety of the battery management system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122267338A_ABST
    Figure CN122267338A_ABST
Patent Text Reader

Abstract

The application relates to a battery charging and discharging control method and device, computer equipment, a computer readable storage medium and a computer program product, which can be used in the technical field of batteries. The method comprises the following steps: obtaining a battery cell temperature sampling value and a battery cell temperature correction value corresponding to the battery cell temperature sampling value; determining a battery cell temperature deviation value according to the battery cell temperature sampling value and the battery cell temperature correction value; determining target correction accuracy information corresponding to the battery cell temperature correction value according to a target battery cell temperature deviation range in which the battery cell temperature deviation value is located; selecting a target battery cell temperature value of the battery from the battery cell temperature sampling value and the battery cell temperature correction value according to the target correction accuracy information; and performing charging and discharging control on the battery according to the target battery cell temperature value. The method can improve the accuracy of battery charging and discharging control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of battery technology, and in particular to a method, apparatus, computer device, computer-readable storage medium, and computer program product for controlling the charging and discharging of a battery. Background Technology

[0002] In the field of battery management technology, cell temperature is a key parameter affecting battery charge and discharge control, and accurate temperature information is the foundation for ensuring safe battery operation.

[0003] In existing battery charging and discharging control schemes, the temperature value sampled by the temperature sensor is usually used directly for control decisions without the accuracy assessment or correction of the temperature value, resulting in low accuracy of battery charging and discharging control. Summary of the Invention

[0004] Therefore, it is necessary to provide a battery charging and discharging control method, device, computer equipment, computer-readable storage medium, and computer program product that can improve the accuracy of battery charging and discharging control in response to the above-mentioned technical problems.

[0005] Firstly, this application provides a method for controlling the charging and discharging of a battery. The method includes:

[0006] Obtain the sampled value of the battery cell temperature, and the cell temperature correction value corresponding to the sampled value;

[0007] The cell temperature deviation value is determined based on the sampled cell temperature value and the corrected cell temperature value.

[0008] Based on the target cell temperature deviation range in which the cell temperature deviation value falls, determine the target correction accuracy information corresponding to the cell temperature correction value;

[0009] Based on the target correction accuracy information, the target cell temperature value of the battery is selected from the sampled cell temperature value and the corrected cell temperature value.

[0010] The battery is charged and discharged based on the target cell temperature value.

[0011] In one embodiment, determining the target correction accuracy information corresponding to the cell temperature correction value based on the target cell temperature deviation range in which the cell temperature deviation value falls includes:

[0012] Based on the cell temperature deviation value and the preset temperature difference threshold, the target cell temperature deviation range is determined from the preset cell temperature deviation range; the preset cell temperature deviation range is obtained by dividing it using the preset temperature difference threshold.

[0013] The target correction accuracy information is determined based on the correspondence between the target cell temperature deviation range and the preset correction accuracy information.

[0014] In one embodiment, the preset temperature difference threshold includes a first temperature difference threshold and a second temperature difference threshold; the preset cell temperature deviation range includes a first cell temperature deviation range, a second cell temperature deviation range and a third cell temperature deviation range;

[0015] The step of determining the target cell temperature deviation range from a preset cell temperature deviation range based on the cell temperature deviation value and a preset temperature difference threshold includes:

[0016] If the cell temperature deviation value is less than or equal to the first temperature difference threshold, the first cell temperature deviation range is selected from the preset cell temperature deviation range as the target cell temperature deviation range.

[0017] If the cell temperature deviation value is greater than the first temperature difference threshold and less than or equal to the second temperature difference threshold, the second cell temperature deviation range is selected from the preset cell temperature deviation range as the target cell temperature deviation range.

[0018] If the cell temperature deviation value is greater than the second temperature difference threshold, the third cell temperature deviation range is selected from the preset cell temperature deviation range as the target cell temperature deviation range.

[0019] In one embodiment, the preset correction accuracy information includes a first correction accuracy level, a second correction accuracy level, and a third correction accuracy level, wherein the correction accuracy levels of the first correction accuracy level, the second correction accuracy level, and the third correction accuracy level decrease sequentially.

[0020] The step of determining the target correction accuracy information based on the correspondence between the target cell temperature deviation range and the preset correction accuracy information includes:

[0021] When the target cell temperature deviation range is the first cell temperature deviation range, the target correction accuracy information is determined to be the first correction accuracy level according to the correspondence.

[0022] When the target cell temperature deviation range is the second cell temperature deviation range, the target correction accuracy information is determined to be the second correction accuracy level according to the correspondence.

[0023] When the target cell temperature deviation range is within the third cell temperature deviation range, the target correction accuracy information is determined to be the third correction accuracy level according to the corresponding relationship.

[0024] In one embodiment, selecting the target cell temperature value of the battery from the sampled cell temperature value and the corrected cell temperature value based on the target correction accuracy information includes:

[0025] When the target correction accuracy information is at the first correction accuracy level, the target cell temperature value is selected from the cell temperature sampling value and the cell temperature correction value according to the historical temperature selection method; the historical temperature selection method includes selecting the historical cell temperature sampling value or the historical cell temperature correction value of the battery.

[0026] In one embodiment, selecting the target cell temperature value of the battery from the sampled cell temperature value and the corrected cell temperature value based on the target correction accuracy information includes:

[0027] When the target correction accuracy information is at the second correction accuracy level, the target temperature scene information of the battery is obtained;

[0028] Based on the target temperature scenario information, the target cell temperature value is selected from the sampled cell temperature value and the corrected cell temperature value.

[0029] In one embodiment, obtaining the target temperature scenario information of the battery includes:

[0030] The target temperature scene information is selected from the preset temperature scene information; the preset temperature scene information includes first temperature scene information and second temperature scene information, wherein the temperature range represented by the first temperature scene information is greater than the temperature range represented by the second temperature scene information.

[0031] The step of selecting the target cell temperature value from the sampled cell temperature value and the corrected cell temperature value based on the target temperature scenario information includes:

[0032] When the target temperature scenario information is the first temperature scenario information, the maximum value between the sampled cell temperature value and the corrected cell temperature value is determined as the target cell temperature value.

[0033] When the target temperature scenario information is the second temperature scenario information, the minimum value between the sampled cell temperature value and the corrected cell temperature value is determined as the target cell temperature value.

[0034] In one embodiment, selecting the target cell temperature value of the battery from the sampled cell temperature value and the corrected cell temperature value based on the target correction accuracy information includes:

[0035] When the target correction accuracy information is at the third correction accuracy level, the minimum value between the sampled cell temperature value and the corrected cell temperature value is determined as the target cell temperature value.

[0036] Secondly, this application also provides a battery charging and discharging control device. The device includes:

[0037] A temperature acquisition module is used to acquire the sampled value of the battery cell temperature and the cell temperature correction value corresponding to the sampled value of the battery cell temperature.

[0038] The deviation determination module is used to determine the cell temperature deviation value based on the sampled cell temperature value and the cell temperature correction value.

[0039] The information determination module is used to determine the target correction accuracy information corresponding to the cell temperature correction value based on the target cell temperature deviation range in which the cell temperature deviation value is located;

[0040] The temperature selection module is used to select the target cell temperature value of the battery from the sampled cell temperature value and the corrected cell temperature value based on the target correction accuracy information.

[0041] The battery control module is used to control the charging and discharging of the battery based on the target cell temperature value.

[0042] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:

[0043] Obtain the sampled value of the battery cell temperature, and the cell temperature correction value corresponding to the sampled value;

[0044] The cell temperature deviation value is determined based on the sampled cell temperature value and the corrected cell temperature value.

[0045] Based on the target cell temperature deviation range in which the cell temperature deviation value falls, determine the target correction accuracy information corresponding to the cell temperature correction value;

[0046] Based on the target correction accuracy information, the target cell temperature value of the battery is selected from the sampled cell temperature value and the corrected cell temperature value.

[0047] The battery is charged and discharged based on the target cell temperature value.

[0048] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:

[0049] Obtain the sampled value of the battery cell temperature, and the cell temperature correction value corresponding to the sampled value;

[0050] The cell temperature deviation value is determined based on the sampled cell temperature value and the corrected cell temperature value.

[0051] Based on the target cell temperature deviation range in which the cell temperature deviation value falls, determine the target correction accuracy information corresponding to the cell temperature correction value;

[0052] Based on the target correction accuracy information, the target cell temperature value of the battery is selected from the sampled cell temperature value and the corrected cell temperature value.

[0053] The battery is charged and discharged based on the target cell temperature value.

[0054] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:

[0055] Obtain the sampled value of the battery cell temperature, and the cell temperature correction value corresponding to the sampled value;

[0056] The cell temperature deviation value is determined based on the sampled cell temperature value and the corrected cell temperature value.

[0057] Based on the target cell temperature deviation range in which the cell temperature deviation value falls, determine the target correction accuracy information corresponding to the cell temperature correction value;

[0058] Based on the target correction accuracy information, the target cell temperature value of the battery is selected from the sampled cell temperature value and the corrected cell temperature value.

[0059] The battery is charged and discharged based on the target cell temperature value.

[0060] The aforementioned battery charging and discharging control method, apparatus, computer equipment, computer-readable storage medium, and computer program product, by acquiring the battery cell temperature sampling value and the corresponding cell temperature correction value, and determining the cell temperature deviation value based on both, facilitates the quantitative evaluation of the accuracy of the current temperature correction; by determining the target correction accuracy information corresponding to the cell temperature correction value based on the target cell temperature deviation range in which the cell temperature deviation value falls, it is beneficial to judge the correction accuracy, thereby adopting differentiated temperature selection strategies for different accuracies; by selecting the target cell temperature value from the cell temperature sampling value and the cell temperature correction value based on the target correction accuracy information, it is beneficial to fully utilize the advantages of correction when the correction accuracy is high, and to avoid temperature deviations caused by correction anomalies when the correction accuracy is low, thereby facilitating the acquisition of temperature values ​​that better reflect the actual state of the cell; by controlling the battery charging and discharging based on the target cell temperature value, it is beneficial to match the charging and discharging parameters with the actual temperature state of the cell, thereby improving the accuracy of battery charging and discharging control. Attached Figure Description

[0061] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0062] Figure 1 This is a schematic flowchart of a battery charging and discharging control method in one embodiment;

[0063] Figure 2 This is a first schematic diagram of a battery charging temperature profile in one embodiment;

[0064] Figure 3 This is a second schematic diagram of the battery charging temperature curve in one embodiment;

[0065] Figure 4 This is a structural block diagram of a battery charge / discharge control device in one embodiment;

[0066] Figure 5 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0067] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0068] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0069] In one exemplary embodiment, such as Figure 1 As shown, a method for controlling the charging and discharging of a battery is provided. This embodiment illustrates the application of this method to a battery management system (e.g., a vehicle's battery management system). It is understood that this method can also be applied to a terminal or server, and further to a system including both a terminal and a server, implemented through interaction between the terminal and the server. The terminal can be, but is not limited to, various personal computers, laptops, smartphones, tablets, etc.; the server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. In this embodiment, the method includes the following steps:

[0070] Step S101: Obtain the battery cell temperature sampling value and the cell temperature correction value corresponding to the cell temperature sampling value;

[0071] Step S102: Determine the cell temperature deviation value based on the sampled cell temperature value and the cell temperature correction value;

[0072] Step S103: Determine the target correction accuracy information corresponding to the cell temperature correction value based on the target cell temperature deviation range in which the cell temperature deviation value is located.

[0073] Step S104: Based on the target correction accuracy information, select the target cell temperature value of the battery from the sampled cell temperature value and the corrected cell temperature value.

[0074] Step S105: Control the charging and discharging of the battery according to the target cell temperature value.

[0075] The battery can be a lithium-ion power battery, used to provide power for electric vehicles and other equipment.

[0076] The cell temperature sampling value can be the temperature value directly collected by a temperature sensor on the battery, which can be installed on the battery (battery module) casing.

[0077] The cell temperature correction value can be a corrected temperature value calculated based on the cell temperature sampling value and the temperature relationship model, used to characterize the actual temperature of the electrodes inside the cell. The temperature relationship model can refer to a temperature relationship model / correction algorithm established in the battery management system to compensate for the objective deviation between the cell temperature sampling value and the actual cell temperature value; it can also be called the NTC correction model, used to map or correct the NTC actual sampling temperature (cell temperature sampling value) to an NTC corrected temperature (cell temperature correction value) that can characterize the actual cell temperature value.

[0078] Among them, the cell temperature deviation value can be the absolute value of the difference between the cell temperature sampling value and the cell temperature correction value.

[0079] The target cell temperature deviation range can be a pre-set temperature deviation interval, used to classify the correction accuracy level of the cell temperature correction value.

[0080] Among them, the target correction accuracy information can be the correction accuracy level determined based on the target cell temperature deviation range in which the cell temperature deviation value is located.

[0081] The target cell temperature value can be a temperature value selected from the cell temperature sampling value and the cell temperature correction value. It is used as the basis for querying (such as looking up a table) when controlling the battery charge and discharge. The table lookup refers to the battery management system indexing a pre-calibrated mapping table / characteristic table based on the target cell temperature value to determine the corresponding control parameters such as charging rate, discharging rate and / or dischargeable power, and then performing charge and discharge control accordingly.

[0082] Among them, charge and discharge control can be a process of determining the corresponding charging rate or discharging power based on the target cell temperature value, and controlling the battery to charge or discharge according to the charging rate or discharging power.

[0083] Optionally, the battery management system acquires sampled cell temperatures and corresponding correction values ​​for those temperatures. The sampled cell temperatures are obtained through temperature sensors mounted on the battery module, and the correction values ​​are derived by adjusting the sampled cell temperatures based on a preset temperature relationship model. The absolute value of the difference between the sampled and correction values ​​is calculated to obtain the cell temperature deviation. This deviation is compared to multiple preset temperature deviation ranges to determine the target cell temperature deviation range within which the deviation falls. Based on this range, the target correction accuracy information for the correction values ​​is determined. The target cell temperature is selected from the sampled and correction values ​​based on this accuracy information. Finally, the corresponding charging rate or discharging power is acquired based on the target cell temperature, and the battery is charged and discharged accordingly.

[0084] For example, the battery management system collects cell temperature samples using temperature sensors mounted on the battery module casing and calculates a cell temperature correction value based on a preset temperature relationship model. The absolute value of the difference between the sampled cell temperature value and the correction value is calculated to obtain the cell temperature deviation value. It is then determined whether the cell temperature deviation value is less than or equal to a first temperature difference threshold. If it is, the target correction accuracy is set to high precision, and the target cell temperature value is selected from the sampled and correction values ​​according to the previous value selection method. If the cell temperature deviation value is greater than the first temperature difference threshold but less than or equal to a second temperature difference threshold, the target correction accuracy is set to medium precision. In this case, the target cell temperature value is selected based on the current temperature scenario: in normal or high-temperature scenarios, the sampled cell temperature value is selected as the target cell temperature value; in low-temperature scenarios, the correction value is selected as the target cell temperature value. If the cell temperature deviation exceeds the second temperature difference threshold, the target correction accuracy is determined to be low. In this case, the smaller value between the sampled cell temperature and the corrected cell temperature is selected as the target cell temperature. The charging / discharging parameter table is then consulted based on the target cell temperature to obtain the corresponding charging rate or discharging power, and the battery is charged and discharged according to this charging rate or discharging power.

[0085] In the aforementioned battery charge / discharge control method, acquiring the battery cell temperature sampling value and the corresponding cell temperature correction value, and determining the cell temperature deviation value based on both, facilitates the quantitative evaluation of the accuracy of the current temperature correction. Determining the target correction accuracy information corresponding to the cell temperature correction value based on the target cell temperature deviation range within which the cell temperature deviation value falls facilitates the judgment of correction accuracy, thereby enabling differentiated temperature selection strategies for different levels of accuracy. Selecting the target cell temperature value from the cell temperature sampling value and the cell temperature correction value based on the target correction accuracy information allows for full utilization of the correction advantage when the correction accuracy is high, while avoiding temperature deviations caused by correction anomalies when the correction accuracy is low, thus facilitating the acquisition of temperature values ​​that better reflect the actual state of the cell. Controlling the battery charge / discharge based on the target cell temperature value helps match the charge / discharge parameters with the actual temperature state of the cell, thereby improving the accuracy of battery charge / discharge control.

[0086] In an exemplary embodiment, the target correction accuracy information corresponding to the cell temperature correction value is determined based on the target cell temperature deviation range in which the cell temperature deviation value is located. Specifically, this includes: determining the target cell temperature deviation range from the preset cell temperature deviation range based on the cell temperature deviation value and the preset temperature difference threshold; the preset cell temperature deviation range is obtained by dividing it through the preset temperature difference threshold; and determining the target correction accuracy information based on the correspondence between the target cell temperature deviation range and the preset correction accuracy information.

[0087] The preset temperature difference threshold can be a pre-defined temperature difference boundary used to divide the cell temperature deviation range, which is used to divide the cell temperature deviation value into different temperature deviation ranges.

[0088] The preset cell temperature deviation range can be multiple temperature deviation intervals divided according to a preset temperature difference threshold, with each temperature deviation interval corresponding to a different correction accuracy level.

[0089] The correspondence can be a mapping relationship between a preset cell temperature deviation range and preset correction accuracy information, which is used to determine the corresponding correction accuracy level based on the target cell temperature deviation range in which the cell temperature deviation value is located.

[0090] The preset correction accuracy information can be a pre-set accuracy level information used to characterize the accuracy of the cell temperature correction value, which can include multiple levels such as high accuracy, medium accuracy, and low accuracy.

[0091] Optionally, after the battery management system obtains the cell temperature deviation value, it compares the cell temperature deviation value with a preset temperature difference threshold, wherein the preset cell temperature deviation range is obtained by dividing the preset temperature difference threshold; based on the comparison result, it determines the target cell temperature deviation range in which the cell temperature deviation value is located from the preset cell temperature deviation range; and based on the correspondence between the target cell temperature deviation range and the preset correction accuracy information, it determines the target correction accuracy information corresponding to the cell temperature correction value.

[0092] The technical solution provided in this embodiment determines the target cell temperature deviation range from the preset cell temperature deviation range based on the cell temperature deviation value and the preset temperature difference threshold, which is beneficial for classifying the cell temperature deviation value. By determining the target correction accuracy information based on the correspondence between the target cell temperature deviation range and the preset correction accuracy information, it is beneficial for accurately evaluating the correction accuracy of the cell temperature correction value, thereby providing an accurate basis for subsequent temperature value selection.

[0093] In an exemplary embodiment, the preset temperature difference threshold includes a first temperature difference threshold and a second temperature difference threshold; the preset cell temperature deviation range includes a first cell temperature deviation range, a second cell temperature deviation range, and a third cell temperature deviation range; based on the cell temperature deviation value and the preset temperature difference threshold, a target cell temperature deviation range is determined from the preset cell temperature deviation range, specifically including the following: when the cell temperature deviation value is less than or equal to the first temperature difference threshold, the first cell temperature deviation range is selected from the preset cell temperature deviation range as the target cell temperature deviation range; when the cell temperature deviation value is greater than the first temperature difference threshold and less than or equal to the second temperature difference threshold, the second cell temperature deviation range is selected from the preset cell temperature deviation range as the target cell temperature deviation range; when the cell temperature deviation value is greater than the second temperature difference threshold, the third cell temperature deviation range is selected from the preset cell temperature deviation range as the target cell temperature deviation range.

[0094] The first temperature difference threshold can be a smaller value among the preset temperature difference thresholds, used to delineate the boundary between the temperature deviation range of the first battery cell and the temperature deviation range of the second battery cell.

[0095] The second temperature difference threshold can be a larger value among the preset temperature difference thresholds, used to divide the boundary between the temperature deviation range of the second cell and the temperature deviation range of the third cell. The second temperature difference threshold is greater than the first temperature difference threshold.

[0096] The first cell temperature deviation range can be the temperature deviation interval corresponding to when the cell temperature deviation value is less than or equal to the first temperature difference threshold.

[0097] The second cell temperature deviation range can be the temperature deviation interval corresponding to when the cell temperature deviation value is greater than the first temperature difference threshold and less than or equal to the second temperature difference threshold.

[0098] The third cell temperature deviation range can be the temperature deviation interval corresponding to when the cell temperature deviation value is greater than the second temperature difference threshold.

[0099] Optionally, after obtaining the cell temperature deviation value, the battery management system compares the cell temperature deviation value with a first temperature difference threshold and a second temperature difference threshold. If the cell temperature deviation value is less than or equal to the first temperature difference threshold, then the first cell temperature deviation range is selected as the target cell temperature deviation range from the preset cell temperature deviation ranges. If the cell temperature deviation value is greater than the first temperature difference threshold and less than or equal to the second temperature difference threshold, then the second cell temperature deviation range is selected as the target cell temperature deviation range from the preset cell temperature deviation ranges. If the cell temperature deviation value is greater than the second temperature difference threshold, then the third cell temperature deviation range is selected as the target cell temperature deviation range from the preset cell temperature deviation ranges.

[0100] The technical solution provided in this embodiment divides the preset cell temperature deviation range into three intervals by setting a first temperature difference threshold and a second temperature difference threshold, which is beneficial for classifying the cell temperature deviation value; by determining the target cell temperature deviation range based on the comparison results between the cell temperature deviation value and each temperature difference threshold, it is beneficial for accurately locating the deviation level to which the cell temperature deviation value belongs.

[0101] In an exemplary embodiment, the preset correction accuracy information includes a first correction accuracy level, a second correction accuracy level, and a third correction accuracy level, with the correction accuracy levels decreasing sequentially from first to third. The target correction accuracy information is determined based on the correspondence between the target cell temperature deviation range and the preset correction accuracy information, specifically including the following: when the target cell temperature deviation range is the first cell temperature deviation range, the target correction accuracy information is determined to be the first correction accuracy level based on the correspondence; when the target cell temperature deviation range is the second cell temperature deviation range, the target correction accuracy information is determined to be the second correction accuracy level based on the correspondence; and when the target cell temperature deviation range is the third cell temperature deviation range, the target correction accuracy information is determined to be the third correction accuracy level based on the correspondence.

[0102] Among them, the first correction accuracy level can be the highest correction accuracy level, which means that the deviation between the cell temperature correction value and the cell temperature sampling value is small and the correction accuracy of the cell temperature correction value is high.

[0103] The second correction accuracy level can be a medium level, which means that the deviation between the cell temperature correction value and the cell temperature sampling value is medium, and the correction accuracy of the cell temperature correction value is at a medium level.

[0104] Among them, the third correction accuracy level can be the lowest correction accuracy level, indicating that the deviation between the cell temperature correction value and the cell temperature sampling value is large, and the correction accuracy of the cell temperature correction value is poor.

[0105] Optionally, after determining the target cell temperature deviation range, the battery management system determines the target correction accuracy information based on the correspondence between the target cell temperature deviation range and the preset correction accuracy information; if the target cell temperature deviation range is a first cell temperature deviation range, the target correction accuracy information is determined to be a first correction accuracy level; if the target cell temperature deviation range is a second cell temperature deviation range, the target correction accuracy information is determined to be a second correction accuracy level; if the target cell temperature deviation range is a third cell temperature deviation range, the target correction accuracy information is determined to be a third correction accuracy level.

[0106] For example, when the battery management system determines that the target cell temperature deviation range is the first cell temperature deviation range, it means that the cell temperature deviation value is small. According to the corresponding relationship, the target correction accuracy information is determined to be the first correction accuracy level, i.e., the high accuracy level. When the target cell temperature deviation range is determined to be the second cell temperature deviation range, it means that the cell temperature deviation value is medium. According to the corresponding relationship, the target correction accuracy information is determined to be the second correction accuracy level, i.e., the medium accuracy level. When the target cell temperature deviation range is determined to be the third cell temperature deviation range, it means that the cell temperature deviation value is large. According to the corresponding relationship, the target correction accuracy information is determined to be the third correction accuracy level, i.e., the low accuracy level.

[0107] The technical solution provided in this embodiment, by setting a first correction accuracy level, a second correction accuracy level, and a third correction accuracy level that decrease sequentially, facilitates the hierarchical characterization of the correction accuracy of the cell temperature correction value. By determining the target correction accuracy information based on the correspondence between the target cell temperature deviation range and the preset correction accuracy information, it is beneficial to accurately assess the reliability of the current cell temperature correction value, thereby providing an accurate basis for the selection of subsequent temperature values.

[0108] In an exemplary embodiment, the target cell temperature value of the battery is selected from the cell temperature sample value and the cell temperature correction value according to the target correction accuracy information. Specifically, this includes the following: when the target correction accuracy information is at the first correction accuracy level, the target cell temperature value is selected from the cell temperature sample value and the cell temperature correction value according to the historical temperature selection method; the historical temperature selection method includes selecting the historical cell temperature sample value or the historical cell temperature correction value of the battery.

[0109] The historical temperature selection method can be the selection method used to select the target cell temperature value at the previous moment, which is used to characterize whether the historical cell temperature sample value or the historical cell temperature correction value was selected as the target cell temperature value at the previous moment.

[0110] Among them, the historical cell temperature sampling value can be the cell temperature sampling value obtained by the temperature sensor at the previous moment.

[0111] Among them, the historical cell temperature correction value can be the cell temperature correction value obtained by correcting the historical cell temperature sampling value based on the temperature relationship model at the previous moment.

[0112] Optionally, when the target correction accuracy information is at the first correction accuracy level, the battery management system obtains the historical temperature selection method. The historical temperature selection method is used to characterize the method of selecting the target cell temperature value at the previous moment. According to the historical temperature selection method, the target cell temperature value is selected from the cell temperature sample value and the cell temperature correction value. For example, if the historical temperature selection method is to select the historical cell temperature sample value, then the current cell temperature sample value is selected as the target cell temperature value. If the historical temperature selection method is to select the historical cell temperature correction value, then the current cell temperature correction value is selected as the target cell temperature value. By maintaining the same temperature selection method as the previous moment, it is beneficial to reduce the jitter of the temperature selection strategy.

[0113] The technical solution provided in this embodiment selects the target cell temperature value according to the historical temperature selection method when the target correction accuracy information is at the first correction accuracy level. This helps to maintain the consistency of the temperature selection strategy when the correction accuracy of the cell temperature correction value is high, thereby reducing the jitter of the temperature selection strategy and improving the stability of battery charge and discharge control.

[0114] In an exemplary embodiment, the target cell temperature value of the battery is selected from the cell temperature sampling value and the cell temperature correction value according to the target correction accuracy information. Specifically, this includes: when the target correction accuracy information is at the second correction accuracy level, obtaining the target temperature scenario information of the battery; and selecting the target cell temperature value from the cell temperature sampling value and the cell temperature correction value according to the target temperature scenario information.

[0115] Among them, the target temperature scene information can be temperature information used to characterize the current environment of the battery.

[0116] Optionally, when the target correction accuracy information is at the second correction accuracy level, the battery management system obtains the target temperature scenario information of the battery. The target temperature scenario information is used to characterize the temperature information of the current environment of the battery. Based on the target temperature scenario information, the target cell temperature value is selected from the cell temperature sampling value and the cell temperature correction value. Different target temperature scenario information corresponds to different temperature value selection strategies.

[0117] The technical solution provided in this embodiment obtains the target temperature scenario information of the battery when the target correction accuracy information is at the second correction accuracy level, and selects the target cell temperature value according to the target temperature scenario information. This is beneficial for selecting differentiated temperature values ​​in combination with the temperature scenario when the correction accuracy is medium, thereby improving the accuracy of temperature value selection.

[0118] In an exemplary embodiment, obtaining the target temperature scenario information of the battery specifically includes the following: selecting target temperature scenario information from preset temperature scenario information; the preset temperature scenario information includes first temperature scenario information and second temperature scenario information, wherein the temperature range represented by the first temperature scenario information is greater than the temperature range represented by the second temperature scenario information; and selecting a target cell temperature value from the cell temperature sampling value and the cell temperature correction value based on the target temperature scenario information, specifically including the following: when the target temperature scenario information is the first temperature scenario information, determining the maximum value between the cell temperature sampling value and the cell temperature correction value as the target cell temperature value; and when the target temperature scenario information is the second temperature scenario information, determining the minimum value between the cell temperature sampling value and the cell temperature correction value as the target cell temperature value.

[0119] The preset temperature scenario information can be a set of scenario information pre-defined to divide the battery operating temperature environment, including first temperature scenario information and second temperature scenario information.

[0120] The first temperature scenario information can be temperature scenario information representing a normal temperature or high temperature environment. The temperature range represented by the first temperature scenario information is higher than the temperature range represented by the second temperature scenario information. For example, the first temperature scenario information can be temperature scenario information representing a temperature greater than or equal to a preset temperature threshold.

[0121] The second temperature scenario information can be temperature scenario information representing a low-temperature environment. The temperature range represented by the second temperature scenario information is lower than the temperature range represented by the first temperature scenario information. For example, the second temperature scenario information can be temperature scenario information representing a temperature below a preset temperature threshold.

[0122] Optionally, the battery management system selects target temperature scenario information from preset temperature scenario information. The preset temperature scenario information includes first temperature scenario information and second temperature scenario information. The temperature range represented by the first temperature scenario information is greater than the temperature range represented by the second temperature scenario information. If the target temperature scenario information is the first temperature scenario information, the maximum value between the sampled cell temperature value and the corrected cell temperature value is determined as the target cell temperature value. If the target temperature scenario information is the second temperature scenario information, the minimum value between the sampled cell temperature value and the corrected cell temperature value is determined as the target cell temperature value.

[0123] For example, when the target temperature scenario is determined to be the first temperature scenario, it indicates that the battery is in a normal or high-temperature environment. The battery management system compares the sampled cell temperature value and the corrected cell temperature value, and determines the maximum value between the two as the target cell temperature value. Selecting a higher temperature value in a normal or high-temperature environment is beneficial for charging at the corresponding charging rate, thereby shortening the charging time. When the target temperature scenario is determined to be the second temperature scenario, it indicates that the battery is in a low-temperature environment. The battery management system compares the sampled cell temperature value and the corrected cell temperature value, and determines the minimum value between the two as the target cell temperature value. Selecting a lower temperature value in a low-temperature environment is beneficial for charging at the corresponding charging rate, thereby reducing the risk of lithium plating.

[0124] The technical solution provided in this embodiment, by selecting the maximum value between the sampled cell temperature value and the corrected cell temperature value as the target cell temperature value under the first temperature scenario information, is beneficial to improving charging and discharging efficiency in normal or high temperature environments; by selecting the minimum value between the sampled cell temperature value and the corrected cell temperature value as the target cell temperature value under the second temperature scenario information, it is beneficial to reduce the risk of lithium plating in low temperature environments, thereby balancing charging and discharging efficiency and battery safety.

[0125] In an exemplary embodiment, the target cell temperature value of the battery is selected from the cell temperature sample value and the cell temperature correction value according to the target correction accuracy information. Specifically, the following is included: when the target correction accuracy information is at the third correction accuracy level, the minimum value between the cell temperature sample value and the cell temperature correction value is determined as the target cell temperature value.

[0126] Optionally, when the target correction accuracy information is at the third correction accuracy level, the battery management system compares the sampled cell temperature value and the corrected cell temperature value, and determines the minimum value between the sampled cell temperature value and the corrected cell temperature value as the target cell temperature value. Since the third correction accuracy level indicates that the correction accuracy of the cell temperature correction value is poor, selecting the minimum value is beneficial to adopting a more conservative charging and discharging strategy to ensure battery safety.

[0127] The technical solution provided in this embodiment determines the target cell temperature value by setting the minimum value between the sampled cell temperature value and the corrected cell temperature value when the target correction accuracy information is at the third correction accuracy level. This is beneficial for using a more conservative temperature reference value when the correction accuracy is poor, thereby helping to ensure battery safety and avoid the risk of battery failure due to abnormal temperature.

[0128] The following embodiment illustrates the battery charging and discharging control method provided in this application. This embodiment uses the method applied to a battery management system as an example.

[0129] The optimal operating temperature for a battery is between 25-35℃. Temperatures below or above this range require thermal management. The main parameters for battery thermal management strategies are battery temperature (maximum battery temperature T_maxbat, minimum battery temperature Tminbat), coolant temperature (target coolant temperature T_targwater, actual coolant temperature T_inletwater), and coolant flow rate (Q_water). The battery temperatures T_maxbat / T_minbat are collected from the cell temperatures on the battery module, typically referring to the NTC (Negative Temperature Coefficient) temperature, i.e., the actual NTC temperature T_ntccell. The battery thermal management system (BMS) then controls the temperature. T_ntccell is usually used to represent the cell temperature.

[0130] The temperature of the battery cell is the temperature of the cell's electrodes, T_actcell, which cannot be directly collected in engineering. Therefore, it is necessary to establish a relationship model between T_ntccell and T_actcell, requiring |T_ntccell - T_actcell| ≤ At time T, the NTC correction temperature T_ntccellrp is considered effective. T_ntccellrp represents the NTC correction temperature, which is equivalent to T_actcell. Under normal conditions, during high / room temperature charging, the internal temperature of the battery cell rises rapidly, and due to the cooling effect of the cold plate, the aluminum casing with NTC sampling results in T_ntccellrp > T_ntccell. Conversely, during low-temperature charging, the internal temperature of the battery cell rises slowly, and due to the heating effect of the cold plate, the aluminum casing with NTC sampling results in T_ntccellrp < _ntccell. (See reference for further details.) Figure 2 , Figure 2 It represents the battery charging temperature curve, including indicators such as cell [°C], charging rate [C], and SOC (state of charge) [%].

[0131] However, the NTC correction model has the following problems: The model considers that the absolute value of the difference between the two values ​​is less than a certain threshold, but it does not consider the influence of factors such as cell adapters. For example, during high-temperature cooling, due to the cooling effect of the cold plate, T_ntccell is usually < T_actcell, and the NTC correction value T_ntccellrp is adjusted upwards, i.e., T_ntccellrp > T_ntccell. During low-temperature cooling, due to the heating effect of the cold plate, T_ntccell is usually > T_actcell, and the NTC correction value T_ntccellrp is adjusted downwards, i.e., T_ntccellrp < T_ntccell. Due to changes in thermal management flow rate and cell internal resistance, there may be abnormal cell correction issues, i.e., at high / room temperatures, some regions may have T_ntccellrp < T_ntccell, and at low temperatures, some regions may have T_ntccellrp > T_ntccell. (See reference...) Figure 3 , Figure 3 The figure shows the battery charging temperature curve, including indicators such as cell [°C], charging rate [C] and SOC (state of charge) [%]. Different curves are marked in the figure, including (1) no thermal management request, the curve of the actual temperature collected by NTC, (2) low temperature scenario, requesting heating thermal management, NTC corrects the expected curve, (3) low temperature scenario, requesting heating thermal management, NTC corrects the actual curve, (4) normal / high temperature scenario, requesting cooling thermal management, NTC corrects the expected curve, (5) normal / high temperature scenario, requesting cooling thermal management, NTC corrects the actual curve.

[0132] When the above abnormalities occur, the following problems may arise when using the NTC correction value T_ntccellrp for lookup charging and discharging: During normal / high temperature charging, using a lower T_ntccellrp (corresponding to a lower rate) will result in longer charging time; during discharging, the battery's discharge power will be lower (corresponding to lower discharge power); during low temperature charging, using a higher T_ntccellrp (corresponding to a higher charging rate) may shorten the charging time, but the cumulative effect may exacerbate the risk of lithium plating during low-temperature charging, shortening battery performance; during low-temperature discharging, using a higher T_ntccellrp (corresponding to greater discharge power) may easily cause battery undervoltage and other malfunctions.

[0133] As can be seen, the defects / problems are:

[0134] When charging at room temperature / high temperature, the charging time will be longer if the lower T_ntccellrp (corresponding to a lower rate) is used according to the table; when discharging, the battery exhibits a lower discharge power (corresponding to a lower discharge power).

[0135] When charging at low temperatures, the table is consulted to use a higher T_ntccellrp (corresponding to a higher charging rate). Although the charging time is shorter, it increases the risk of lithium plating during cell charging and shortens the battery's performance. When discharging at low temperatures, the table is consulted to use a higher T_ntccellrp (corresponding to a higher discharge power), which can easily cause battery undervoltage and other faults.

[0136] The reason for this is that the model only considers that the absolute value of the difference between the two is less than a certain threshold, but does not consider the actual size of T_NTC (actual NTC temperature) and T_JR (cell JR temperature, cell reference temperature used to look up the table to determine the charging and discharging parameters) and the influence of the cell adapter.

[0137] Based on this, this embodiment proposes a handling strategy when the NTC correction value is abnormal. The NTC correction strategy is based on the idea that there is a certain deviation between the top cover NTC temperature T_ntccell and the actual cell temperature T_actcell, that is, T_ntccell = T_actcell ± Tm, this deviation Tm is a boundary given based on battery safety.

[0138] To improve the accuracy of NTC correction and more accurately reflect the battery's own temperature T_actcell, the technical solution will set: when T1≤ T2≤ Tm, and set T is the difference between the real-time NTC sample value T_ntccell and the NTC correction value T_ntccellrp. And... Tm is divided into several parts. Ti=i× Tm / n, where n represents the level and i represents the level variation, such as 1, 2, 3. Equal division is the preferred method, but unequal division is also possible. When dividing equally... T1= Tm / 2, T2 equals Tm, when divided into three equal parts T1= Tm / 3, T2=2 Tm / 3, T3=3 Tm / 3= In this embodiment, Tm is configured with n=2 as follows:

[0139] A) T≤ At time T1, the difference between the NTC sampled value T_ntccell and the NTC corrected value T_ntccellrp is small;

[0140] B) T1≤ T≤ T2, the difference between the NTC sample value T_ntccell and the NTC correction value T_ntccellrp is moderate;

[0141] C) T> At time T2, the difference between the NTC sampled value T_ntccell and the NTC corrected value T_ntccellrp is large.

[0142] When A) occurs, the cell JR temperature can be determined according to either the NTC sampling value T_ntccell or the correction value T_ntccellrp. To reduce strategy jitter, the NTC value of the previous moment is used (i.e., if the previous moment was determined by looking up the sampled value, the current moment will also be determined by looking up the sampled value; if the previous moment was determined by looking up the correction value, the current moment will also be determined by looking up the correction value).

[0143] When B) occurs, the cell JR temperature, whether based on the NTC sampling value T_ntccell or the correction value T_ntccellrp, needs to be determined based on the scenario: During normal / high temperature charging, the table lookup temperature is based on the NTC sampling value T_ntccell; during low temperature charging, the NTC correction value T_ntccellrp is used. This strategy addresses the following issues: During normal / high temperature charging, the table lookup uses the higher temperature value (corresponding to a higher charging rate), resulting in shorter charging time. During discharging, the table lookup uses the higher temperature value (corresponding to higher discharge power), leading to better vehicle performance. During low temperature charging, the table lookup uses the lower temperature value (corresponding to a lower charging rate), slightly increasing charging time. However, this significantly reduces the risk of lithium plating, extending the battery's low-temperature lifespan. Discharging directly uses the discharge power corresponding to the lower temperature, matching the battery's actual capacity and resolving the low-temperature undervoltage problem.

[0144] When C) occurs, the temperature of cell JR has exceeded the safety boundary. Tm poses a challenge to the safety of the battery cell. It is necessary to immediately discharge at a smaller charging rate or a lower discharging rate corresponding to min(T_ntccell, T_ntccellrp).

[0145] To achieve the above performance, the BMS sets up a three-level NTC correction accuracy judgment strategy.

[0146] when When T is in A), it indicates that the correction value T_ntccellrp has high correction accuracy;

[0147] when When T is in B), it indicates that the correction value T_ntccellrp is within the correction precision range;

[0148] when When T is in C), it indicates that the correction accuracy of the correction value T_ntccellrp is poor;

[0149] When the NTC correction accuracy is high, the accuracy correction is normal, and the BMS executes according to the normal NTC correction model; when the NTC correction accuracy is medium, the BMS executes according to the normal NTC correction model, but records a first-level correction model fault; when the NTC correction accuracy is poor, the BMS exits the NTC correction model execution, issues a battery NTC correction fault, and urgently reduces the high voltage.

[0150] Based on the above, a handling strategy is established for when the NTC sampling value T_ntccell or the correction value T_ntccellrp is abnormal.

[0151] The technical solution provided in this embodiment achieves the following: filling the gap in the strategy handling when NTC correction values ​​and sampled values ​​are abnormal in the NTC correction model; reducing the risk of battery power degradation at normal / high temperatures or lithium plating at low temperatures; and improving battery performance.

[0152] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0153] Based on the same inventive concept, this application also provides a battery charge-discharge control device for implementing the battery charge-discharge control method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations of one or more battery charge-discharge control device embodiments provided below can be found in the limitations of the battery charge-discharge control method described above, and will not be repeated here.

[0154] In one exemplary embodiment, such as Figure 4 As shown, a battery charge / discharge control device 400 is provided, which may include:

[0155] Temperature acquisition module 401 is used to acquire the cell temperature sampling value of the battery and the cell temperature correction value corresponding to the cell temperature sampling value;

[0156] The deviation determination module 402 is used to determine the cell temperature deviation value based on the cell temperature sampling value and the cell temperature correction value;

[0157] The information determination module 403 is used to determine the target correction accuracy information corresponding to the cell temperature correction value based on the target cell temperature deviation range in which the cell temperature deviation value is located.

[0158] The temperature selection module 404 is used to select the target cell temperature value of the battery from the sampled cell temperature value and the corrected cell temperature value based on the target correction accuracy information.

[0159] The battery control module 405 is used to control the charging and discharging of the battery based on the target cell temperature value.

[0160] In an exemplary embodiment, the information determination module 403 is further configured to determine a target cell temperature deviation range from a preset cell temperature deviation range based on the cell temperature deviation value and a preset temperature difference threshold; the preset cell temperature deviation range is obtained by dividing the preset temperature difference threshold; and the target correction accuracy information is determined based on the correspondence between the target cell temperature deviation range and the preset correction accuracy information.

[0161] In an exemplary embodiment, the preset temperature difference threshold includes a first temperature difference threshold and a second temperature difference threshold; the preset cell temperature deviation range includes a first cell temperature deviation range, a second cell temperature deviation range, and a third cell temperature deviation range; the information determination module 403 is further configured to: when the cell temperature deviation value is less than or equal to the first temperature difference threshold, select the first cell temperature deviation range from the preset cell temperature deviation range as the target cell temperature deviation range; when the cell temperature deviation value is greater than the first temperature difference threshold and less than or equal to the second temperature difference threshold, select the second cell temperature deviation range from the preset cell temperature deviation range as the target cell temperature deviation range; and when the cell temperature deviation value is greater than the second temperature difference threshold, select the third cell temperature deviation range from the preset cell temperature deviation range as the target cell temperature deviation range.

[0162] In an exemplary embodiment, the preset correction accuracy information includes a first correction accuracy level, a second correction accuracy level, and a third correction accuracy level, wherein the correction accuracy levels of the first correction accuracy level, the second correction accuracy level, and the third correction accuracy level decrease sequentially. The information determination module 403 is further configured to determine the target correction accuracy information as the first correction accuracy level according to the correspondence when the target cell temperature deviation range is within the first cell temperature deviation range; determine the target correction accuracy information as the second correction accuracy level according to the correspondence when the target cell temperature deviation range is within the second cell temperature deviation range; and determine the target correction accuracy information as the third correction accuracy level according to the correspondence when the target cell temperature deviation range is within the third cell temperature deviation range.

[0163] In an exemplary embodiment, the temperature selection module 404 is further configured to select a target cell temperature value from the cell temperature sampling value and the cell temperature correction value according to the historical temperature selection method when the target correction accuracy information is at the first correction accuracy level; the historical temperature selection method includes selecting the historical cell temperature sampling value or the historical cell temperature correction value of the battery.

[0164] In an exemplary embodiment, the temperature selection module 404 is further configured to acquire target temperature scenario information of the battery when the target correction accuracy information is at the second correction accuracy level; and select a target cell temperature value from the cell temperature sampling value and the cell temperature correction value according to the target temperature scenario information.

[0165] In an exemplary embodiment, the temperature selection module 404 is further configured to select target temperature scene information from preset temperature scene information; the preset temperature scene information includes first temperature scene information and second temperature scene information, wherein the temperature range represented by the first temperature scene information is greater than the temperature range represented by the second temperature scene information; when the target temperature scene information is the first temperature scene information, the maximum value between the sampled cell temperature value and the corrected cell temperature value is determined as the target cell temperature value; when the target temperature scene information is the second temperature scene information, the minimum value between the sampled cell temperature value and the corrected cell temperature value is determined as the target cell temperature value.

[0166] In an exemplary embodiment, the temperature selection module 404 is further configured to determine the minimum value between the sampled cell temperature value and the corrected cell temperature value as the target cell temperature value when the target correction accuracy information is at the third correction accuracy level.

[0167] Each module in the aforementioned battery charge / discharge control device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the computer device's memory as software, so that the processor can call and execute the corresponding operations of each module.

[0168] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 5 As shown, the computer device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When executed by the processor, the computer program implements a battery charging and discharging control method. The display unit is used to form a visually visible image and can be a display screen, projection device, or virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0169] Those skilled in the art will understand that Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0170] In one exemplary embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.

[0171] In one exemplary embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above-described method embodiments.

[0172] In one exemplary embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.

[0173] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0174] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0175] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for controlling the charging and discharging of a battery, characterized in that, The method includes: Obtain the sampled value of the battery cell temperature, and the cell temperature correction value corresponding to the sampled value; The cell temperature deviation value is determined based on the sampled cell temperature value and the corrected cell temperature value. Based on the target cell temperature deviation range in which the cell temperature deviation value falls, determine the target correction accuracy information corresponding to the cell temperature correction value; Based on the target correction accuracy information, the target cell temperature value of the battery is selected from the sampled cell temperature value and the corrected cell temperature value. The battery is charged and discharged based on the target cell temperature value.

2. The method according to claim 1, characterized in that, The step of determining the target correction accuracy information corresponding to the cell temperature correction value based on the target cell temperature deviation range in which the cell temperature deviation value falls includes: Based on the cell temperature deviation value and the preset temperature difference threshold, the target cell temperature deviation range is determined from the preset cell temperature deviation range; the preset cell temperature deviation range is obtained by dividing it using the preset temperature difference threshold. The target correction accuracy information is determined based on the correspondence between the target cell temperature deviation range and the preset correction accuracy information.

3. The method according to claim 2, characterized in that, The preset temperature difference threshold includes a first temperature difference threshold and a second temperature difference threshold; the preset cell temperature deviation range includes a first cell temperature deviation range, a second cell temperature deviation range, and a third cell temperature deviation range. The step of determining the target cell temperature deviation range from a preset cell temperature deviation range based on the cell temperature deviation value and a preset temperature difference threshold includes: If the cell temperature deviation value is less than or equal to the first temperature difference threshold, the first cell temperature deviation range is selected from the preset cell temperature deviation range as the target cell temperature deviation range. If the cell temperature deviation value is greater than the first temperature difference threshold and less than or equal to the second temperature difference threshold, the second cell temperature deviation range is selected from the preset cell temperature deviation range as the target cell temperature deviation range. If the cell temperature deviation value is greater than the second temperature difference threshold, the third cell temperature deviation range is selected from the preset cell temperature deviation range as the target cell temperature deviation range.

4. The method according to claim 3, characterized in that, The preset correction accuracy information includes a first correction accuracy level, a second correction accuracy level, and a third correction accuracy level, wherein the correction accuracy levels of the first correction accuracy level, the second correction accuracy level, and the third correction accuracy level decrease sequentially. The step of determining the target correction accuracy information based on the correspondence between the target cell temperature deviation range and the preset correction accuracy information includes: When the target cell temperature deviation range is the first cell temperature deviation range, the target correction accuracy information is determined to be the first correction accuracy level according to the correspondence. When the target cell temperature deviation range is the second cell temperature deviation range, the target correction accuracy information is determined to be the second correction accuracy level according to the correspondence. When the target cell temperature deviation range is within the third cell temperature deviation range, the target correction accuracy information is determined to be the third correction accuracy level according to the corresponding relationship.

5. The method according to claim 1, characterized in that, The step of selecting the target cell temperature value of the battery from the sampled cell temperature value and the corrected cell temperature value based on the target correction accuracy information includes: When the target correction accuracy information is at the first correction accuracy level, the target cell temperature value is selected from the cell temperature sampling value and the cell temperature correction value according to the historical temperature selection method; the historical temperature selection method includes selecting the historical cell temperature sampling value or the historical cell temperature correction value of the battery.

6. The method according to claim 1, characterized in that, The step of selecting the target cell temperature value of the battery from the sampled cell temperature value and the corrected cell temperature value based on the target correction accuracy information includes: When the target correction accuracy information is at the second correction accuracy level, the target temperature scene information of the battery is obtained; Based on the target temperature scenario information, the target cell temperature value is selected from the sampled cell temperature value and the corrected cell temperature value.

7. The method according to claim 6, characterized in that, The process of obtaining the target temperature scenario information of the battery includes: The target temperature scene information is selected from the preset temperature scene information; the preset temperature scene information includes first temperature scene information and second temperature scene information, wherein the temperature range represented by the first temperature scene information is greater than the temperature range represented by the second temperature scene information. The step of selecting the target cell temperature value from the sampled cell temperature value and the corrected cell temperature value based on the target temperature scenario information includes: When the target temperature scenario information is the first temperature scenario information, the maximum value between the sampled cell temperature value and the corrected cell temperature value is determined as the target cell temperature value. When the target temperature scenario information is the second temperature scenario information, the minimum value between the sampled cell temperature value and the corrected cell temperature value is determined as the target cell temperature value.

8. The method according to claim 1, characterized in that, The step of selecting the target cell temperature value of the battery from the sampled cell temperature value and the corrected cell temperature value based on the target correction accuracy information includes: When the target correction accuracy information is at the third correction accuracy level, the minimum value between the sampled cell temperature value and the corrected cell temperature value is determined as the target cell temperature value.

9. A battery charging and discharging control device, characterized in that, The device includes: A temperature acquisition module is used to acquire the sampled value of the battery cell temperature and the cell temperature correction value corresponding to the sampled value of the battery cell temperature. The deviation determination module is used to determine the cell temperature deviation value based on the sampled cell temperature value and the cell temperature correction value. The information determination module is used to determine the target correction accuracy information corresponding to the cell temperature correction value based on the target cell temperature deviation range in which the cell temperature deviation value is located; The temperature selection module is used to select the target cell temperature value of the battery from the sampled cell temperature value and the corrected cell temperature value based on the target correction accuracy information. The battery control module is used to control the charging and discharging of the battery based on the target cell temperature value.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 8.

11. 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 steps of the method according to any one of claims 1 to 8.