Battery charging and discharging power control method and device, automobile and storage medium

By determining the continuous cycle and maximum difference of overcharge and overdischarge in the battery management system, and dynamically adjusting the allowable charging and discharging power of the battery, the problem of poor adaptability of the battery overcharge and overdischarge control strategy in the prior art is solved, and more flexible and adaptable battery management is achieved.

CN120080769APending Publication Date: 2025-06-03DONGFENG MOTOR GRP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510404262.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-01
Publication Date
2025-06-03

AI Technical Summary

Technical Problem

In the prior art, the battery overcharge and overdischarge control strategy has a relatively single function and poor adaptability, and there are differences in calibration coverage for different vehicles and operating conditions.

Method used

By determining the duration of overcharge and overdischarge when the car is in the overcharge and overdischarge state, the maximum difference between the charge and discharge power and the battery's allowable power is calculated, based on this, the correction coefficient is determined, and the allowable charge and discharge power of the battery is adjusted.

Benefits of technology

It realizes dynamic adjustment of the allowable power according to the real-time state of the battery, prevents overcharging and overdischarge, and enhances the flexibility and adaptability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120080769A_ABST
    Figure CN120080769A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of battery charging and discharging, in particular to a battery charging and discharging power control method and device, an automobile and a storage medium. According to the method, when an automobile is in an over-charging and over-discharging state, the duration period of over-charging and over-discharging of the automobile is determined; determining the maximum difference value between the charging and discharging power of the automobile and the allowable charging and discharging power of the battery in the over-charging and over-discharging duration period of the automobile; determining a correction coefficient of charge and discharge power allowed by the battery based on the maximum difference value and the duration period of over-charge and over-discharge; adjusting the allowable charging and discharging power of the battery based on the correction coefficient; the adjusted allowable charging and discharging power of the battery is used as new allowable charging and discharging power of the battery, and if overcharging and overdischarging occur, the allowable charging and discharging power of the battery is corrected based on the occurrence time and magnitude of overcharging and overdischarging, so that the actual charging and discharging power of the battery is changed, overcharging and overdischarging are prevented, and the service life of the battery is prolonged. The allowable power is adjusted according to the real-time state of the battery rather than simply depending on a static or single control strategy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of battery charging and discharging, and particularly to a method and device for controlling the charging and discharging power of a battery, an automobile, and a storage medium. Background Art

[0002] With the strengthening of environmental protection awareness and the transformation of the global energy structure, electric vehicles (EVs) and hybrid electric vehicles (HEVs) have gradually become an important development direction in the automotive industry. These two types of vehicles generally use lithium-ion batteries as energy storage units, which have become one of the core technologies driving the development of electric vehicles due to their superior energy density and cycle life. However, the technical challenges of the battery management system (BMS) have also increased accordingly, especially in terms of overcharge and over-discharge control strategies, which are crucial for improving the safety of battery use and extending the battery life.

[0003] Currently, the commonly used overcharge and over-discharge control methods in electric vehicles or hybrid vehicles are mainly based on the proportional-integral (PI) controller strategy. This method monitors key parameters such as the current, voltage, and electric power of the battery. When these parameters approach their limit values, the appropriate correction power is calculated through PI control to adjust the target output or input electric power, thereby effectively avoiding the occurrence of overcharging or over-discharging of the battery. Although this method can achieve basic control of overcharging and over-discharging to a certain extent, due to its relatively single control strategy and lack of adaptability to different vehicle types and working conditions, its calibration coverage and flexibility are usually poor.

[0004] The above content is only used to assist in understanding the technical solution of the present invention and does not represent an admission that the above content is prior art. Summary of the Invention

[0005] The main object of the present invention is to provide a method and device for controlling the charging and discharging power of a battery, an automobile, and a storage medium, aiming to solve the technical problems in the prior art that the control function of the overcharge and over-discharge control strategy of the battery is relatively single, the adaptability is poor, and there are differences in the calibration coverage for different vehicles and different working conditions.

[0006] To achieve the above object, the present invention provides a method for controlling the charging and discharging power of a battery, the method for controlling the charging and discharging power of the battery comprising the following steps:

[0007] When the vehicle is in an overcharge or over-discharge state, determine the continuous period of the vehicle's overcharge or over-discharge;

[0008] Determine the maximum difference between the charging and discharging power of the vehicle and the allowable charging and discharging power of the battery during the continuous period of the vehicle's overcharge or over-discharge;

[0009] Determine a correction factor for the charge-discharge power allowed by the battery based on the maximum difference and the duration of overcharge and over-discharge;

[0010] Adjust the charge-discharge power allowed by the battery based on the correction factor;

[0011] Use the adjusted charge-discharge power allowed by the battery as the new charge-discharge power allowed by the battery.

[0012] Optionally, before the vehicle is in the overcharge and over-discharge state, it further includes:

[0013] When the vehicle is in the ready state, obtain the charge-discharge power of the vehicle and the charge-discharge power allowed by the battery;

[0014] Based on the comparison result between the actual charge-discharge power of the vehicle and the charge-discharge power allowed by the battery, determine whether the vehicle is in the overcharge and over-discharge state; wherein, if the actual discharge power is greater than the allowed discharge power, it is determined to be in the over-discharge state; if the actual discharge power is less than the allowed charge power, it is determined to be in the overcharge state.

[0015] Optionally, after obtaining the charge-discharge power of the vehicle and the charge-discharge power allowed by the battery when the vehicle is in the ready state, it further includes:

[0016] When the difference between the charge-discharge power of the vehicle and the charge-discharge power allowed by the battery is less than or equal to zero within a preset time, adjust the charge-discharge power allowed by the battery based on a preset reference value;

[0017] Use the adjusted charge-discharge power allowed by the battery as the new charge-discharge power allowed by the battery.

[0018] Optionally, when the vehicle is in the overcharge and over-discharge state, determining the duration of overcharge and over-discharge of the vehicle includes:

[0019] When the vehicle is in the overcharge and over-discharge state, start timing;

[0020] When the vehicle stops being in the overcharge and over-discharge state, obtain the timing duration;

[0021] Determine the duration of overcharge and over-discharge of the vehicle based on the timing duration.

[0022] Optionally, determining the maximum difference between the charge-discharge power of the vehicle and the charge-discharge power allowed by the battery during the duration of overcharge and over-discharge of the vehicle includes:

[0023] Determine a first difference between the charge-discharge power of the vehicle and the charge-discharge power allowed by the battery at the current moment, and determine a second difference between the charge-discharge power of the vehicle and the charge-discharge power allowed by the battery at the next moment;

[0024] When the first difference is greater than the second difference, use the first difference as the maximum difference between the charging and discharging power of the vehicle and the charging and discharging power allowed by the battery.

[0025] When the first difference is less than the second difference, use the second difference as the maximum difference between the charging and discharging power of the vehicle and the charging and discharging power allowed by the battery.

[0026] Execute the step of determining the first difference between the charging and discharging power of the vehicle at the current moment and the charging and discharging power allowed by the battery until the continuous period of overcharging and over-discharging of the vehicle ends.

[0027] Optionally, after using the adjusted charging and discharging power allowed by the battery as the new charging and discharging power allowed by the battery, it further includes:

[0028] Control the charging and discharging power allowed by the battery not to be greater than the preset charging and discharging power allowed by the battery.

[0029] Optionally, after determining the maximum difference between the charging and discharging power of the vehicle and the charging and discharging power allowed by the battery during the continuous period of overcharging and over-discharging of the vehicle, it further includes:

[0030] Record the continuous period and the maximum difference between the charging and discharging power of the vehicle and the charging and discharging power allowed by the battery.

[0031] After the continuous period of overcharging and over-discharging of the vehicle ends, delete the recorded continuous period and the maximum difference.

[0032] In addition, to achieve the above object, the present invention also provides a vehicle, which includes a memory, a processor, and a battery charging and discharging power control program stored on the memory and executable on the processor. The battery charging and discharging power control program is configured to implement the steps of the battery charging and discharging power control method as described above.

[0033] In addition, to achieve the above object, the present invention also provides a storage medium, on which a battery charging and discharging power control program is stored. When the battery charging and discharging power control program is executed by a processor, it implements the steps of the battery charging and discharging power control method as described above.

[0034] In addition, to achieve the above object, the present invention also provides a battery charging and discharging power control device, which includes:

[0035] A period determination module, configured to determine the continuous period of overcharging and over-discharging of the vehicle when the vehicle is in an overcharging and over-discharging state;

[0036] A difference determination module, configured to determine the maximum difference between the charge-discharge power of the vehicle and the charge-discharge power allowed by the battery during the continuous cycle of overcharging and over-discharging of the vehicle;

[0037] A coefficient determination module, configured to determine a correction coefficient of the charge-discharge power allowed by the battery based on the maximum difference and the continuous cycle of overcharging and over-discharging;

[0038] A power adjustment module, configured to adjust the charge-discharge power allowed by the battery based on the correction coefficient;

[0039] A power determination module, configured to use the adjusted charge-discharge power allowed by the battery as the new charge-discharge power allowed by the battery.

[0040] In the present invention, when the vehicle is in an overcharging and over-discharging state, the continuous cycle of overcharging and over-discharging of the vehicle is determined; the maximum difference between the charge-discharge power of the vehicle and the charge-discharge power allowed by the battery during the continuous cycle of overcharging and over-discharging of the vehicle is determined; a correction coefficient of the charge-discharge power allowed by the battery is determined based on the maximum difference and the continuous cycle of overcharging and over-discharging; the charge-discharge power allowed by the battery is adjusted based on the correction coefficient; the adjusted charge-discharge power allowed by the battery is used as the new charge-discharge power allowed by the battery. If overcharging and over-discharging occur, the charge-discharge power allowed by the battery is corrected based on the occurrence time and magnitude of overcharging and over-discharging, so as to change the actual charge-discharge power of the battery, prevent overcharging and over-discharging, and thus be able to dynamically adjust the allowed power according to the real-time state of the battery, rather than simply relying on static or single control strategies. This can adapt the battery management control strategy according to the conditions of the battery and the actual usage of the vehicle, enhancing the flexibility and adaptability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 is a schematic diagram of the vehicle structure of the hardware operating environment involved in the embodiment solution of the present invention;

[0042] Figure 2 is a schematic flowchart of the first embodiment of the battery charge-discharge power control method of the present invention;

[0043] Figure 3 is a schematic flowchart of the second embodiment of the battery charge-discharge power control method of the present invention;

[0044] Figure 4 is a schematic flowchart of the third embodiment of the battery charge-discharge power control method of the present invention;

[0045] Figure 5 is a schematic flowchart of the fourth embodiment of the battery charge-discharge power control method of the present invention;

[0046] Figure 6Schematic diagram of the PI regulation process of the battery charge and discharge power control method in the prior art;

[0047] Figure 7 Schematic diagram of the process of adding an adaptive module to the battery charge and discharge power control method of the present invention;

[0048] Figure 8 Schematic diagram of the forward self - learning and reverse self - learning processes of the adaptive module in the battery charge and discharge power control method of the present invention;

[0049] Figure 9 Logic diagram for determining overcharge and over - discharge states in the battery charge and discharge power control method of the present invention;

[0050] Figure 10 Logic diagram for determining the maximum difference between the charge and discharge power of the vehicle and the allowable charge and discharge power of the battery in the battery charge and discharge power control method of the present invention;

[0051] Figure 11 Logic diagram for determining the continuous cycle of overcharge and over - discharge in the battery charge and discharge power control method of the present invention;

[0052] Figure 12 Schematic diagram of the process for resetting the records of the continuous cycle of overcharge and over - discharge and the maximum difference between the charge and discharge power and the allowable charge and discharge power of the battery in the battery charge and discharge power control method of the present invention;

[0053] Figure 13 Table of the relationship between the maximum difference between the charge and discharge power and the allowable charge and discharge power of the battery and the first correction coefficient in the battery charge and discharge power control method of the present invention;

[0054] Figure 14 Table of the relationship between the continuous cycle of overcharge and over - discharge and the second correction coefficient in the battery charge and discharge power control method of the present invention;

[0055] Figure 15 Table of the relationship between the allowable charge and discharge power of the battery and the correction coefficient in the battery charge and discharge power control method of the present invention;

[0056] Figure 16 Schematic diagram of the negative learning process during overcharge and over - discharge in the battery charge and discharge power control method of the present invention;

[0057] Figure 17 Structural block diagram of the first embodiment of the battery charge and discharge power control device of the present invention.

[0058] The realization, functional characteristics, and advantages of the object of the present invention will be further described with reference to the embodiments and the accompanying drawings. Detailed implementation manners

[0059] It should be understood that the specific embodiments described herein are merely for explaining the present invention and are not intended to limit the present invention.

[0060] Referring to Figure 6 , Figure 6 is a schematic flow chart of PI regulation for the battery charge and discharge power control method in the prior art; in Figure 6 , the use of PI regulation is likely to cause overprotection of overcharging and over-discharging of the battery, which will in turn lead to a decrease in the allowable input and output electric power of the battery and reduce the performance of the battery; loose protection against overcharging and over-discharging will seriously affect the service life of the battery. Moreover, the existing overcharging and over-discharging control strategies have relatively single control functions and poor adaptability, and there are differences in the calibration coverage for different vehicles and different working conditions.

[0061] Referring to Figure 7 , Figure 7 is a schematic flow chart of adding an adaptive module to the battery charge and discharge power control method of the present invention; in Figure 7 , an adaptive module is newly added on the basis of the original overcharging and over-discharging control logic. Referring to Figure 8 , Figure 8 is a schematic flow chart of the forward self-learning and reverse self-learning of the adaptive module in the battery charge and discharge power control method of the present invention; it is used to continuously correct the final control target according to the actual situation, taking into account the best performance and protection functions. Figure 7 In

[0062] Referring to Figure 1 , Figure 1 is a schematic diagram of the vehicle structure of the hardware operating environment involved in the embodiment solution of the present invention.

[0063] Such as Figure 1As shown in the figure, the vehicle may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display). Optionally, the user interface 1003 may further include a standard wired interface and a wireless interface. For the wired interface of the user interface 1003, it may be a USB interface in the present invention. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a Wireless-Fidelity (WI-FI) interface). The memory 1005 may be a high-speed Random Access Memory (RAM) or a stable memory (Non-volatile Memory, NVM), such as a disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0064] Those skilled in the art can understand that Figure 1 the structure shown in the figure does not constitute a limitation on the vehicle, and it may include more or fewer components than shown in the figure, or combine some components, or have different component arrangements.

[0065] As Figure 1 shown, the memory 1005, as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a battery charge and discharge power control program.

[0066] In Figure 1 the vehicle shown in the figure, the network interface 1004 is mainly used to connect to the background server and communicate with the background server; the user interface 1003 is mainly used to connect to peripherals; the vehicle calls the battery charge and discharge power control program stored in the memory 1005 through the processor 1001 and executes the battery charge and discharge power control method provided by the embodiments of the present invention.

[0067] Based on the above hardware structure, an embodiment of the battery charge and discharge power control method of the present invention is proposed.

[0068] Referring to Figure 2 , Figure 2 which is a schematic flowchart of the first embodiment of the battery charge and discharge power control method of the present invention, the first embodiment of the battery charge and discharge power control method of the present invention is proposed.

[0069] In the first embodiment, the battery charge and discharge power control method includes the following steps:

[0070] Step S10: When the vehicle is in an overcharge or overdischarge state, determine the continuous cycle of the vehicle's overcharge or overdischarge.

[0071] It should be noted that the execution subject of this embodiment can be a battery management system integrating advanced algorithms and sensing technologies in the vehicle, or other electronic devices capable of implementing the above functions, such as personal computers, smartphones, or tablet computers. This embodiment does not limit this.

[0072] It should be understood that in this embodiment, the overcharge or overdischarge state refers to the state where the battery voltage or power exceeds its safe operating range, and the continuous cycle refers to the total time the battery remains in the overcharge or overdischarge state.

[0073] In a specific implementation, first, the battery management system (BMS) collects data through relevant sensors installed on the battery or battery pack. These data include key parameters such as the battery voltage, current, and temperature. These parameters are crucial for analyzing the battery state. By analyzing the collected data, the BMS can identify whether the battery is in an overcharge or overdischarge state. The overcharge state usually means that the battery voltage exceeds the safety threshold, and the overdischarge state means that the battery voltage is lower than the safety lower limit. Once the battery enters the overcharge or overdischarge state, the BMS will record the start time of this state. By continuously monitoring the change of battery parameters, the BMS can determine when the battery exits this state. The continuous cycle refers to the total time the battery remains in the overcharge or overdischarge state. The BMS calculates this cycle by comparing the start time and end time (or the current time if the state has not ended) of the overcharge or overdischarge state. Specifically, the continuous cycle = end time (or current time) - start time.

[0074] Step S20: Determine the maximum difference between the charge and discharge power of the vehicle and the charge and discharge power allowed by the battery during the continuous cycle of the vehicle's overcharge or overdischarge.

[0075] It should be noted that the charge and discharge power allowed by the battery refers to the maximum charge and discharge power that the battery can withstand without damaging its performance and safety.

[0076] In a specific implementation, the maximum charging power and maximum discharging power allowed by the battery are determined. These values are typically provided by the battery manufacturer based on the battery's chemical composition and structure, indicating the power limits that do not damage the battery's health. The battery management system (BMS) is used to monitor the charging and discharging power of the battery in real time. The BMS is an advanced monitoring system that can provide instant data of the battery, including power, voltage, temperature, etc. During overcharging or over-discharging, the actual charging and discharging power of the battery at each time point is recorded. This requires the BMS to be able to continuously track and store data for subsequent analysis. The collected data is analyzed to identify the specific time periods during which overcharging or over-discharging occurred. Overcharging and over-discharging can be determined by comparing the real-time power with the battery's allowed power threshold. For each overcharging or over-discharging cycle, the difference between the actual charging and discharging power and the battery's allowed power is calculated. The largest one of these differences is found, and this value represents the maximum extent to which the battery's charging and discharging power exceeds its safe range during the studied cycle.

[0077] Further, after determining the maximum difference between the charging and discharging power of the vehicle and the charging and discharging power allowed by the battery during the continuous cycle of overcharging and over-discharging of the vehicle, it further includes:

[0078] Recording the continuous cycle and the maximum difference between the charging and discharging power of the vehicle and the charging and discharging power allowed by the battery;

[0079] When the difference between the charging and discharging power of the vehicle and the charging and discharging power allowed by the battery is less than or equal to zero within a preset time, the recorded continuous cycle and the maximum difference are deleted.

[0080] In a specific implementation, referring to Figure 12 , Figure 12This is a schematic flowchart for resetting the recording of the continuous cycle of overcharge and over-discharge and the maximum difference between the charge-discharge power and the allowable charge-discharge power of the battery in the battery charge-discharge power control method of the present invention. Here, Error max is the maximum difference between the allowable charge-discharge power of the battery, and Error time is the continuous cycle of overcharge and over-discharge. First, the system calculates the maximum difference between the charging or discharging power of the vehicle and the allowable overcharge or over-discharge power of the battery during the continuous cycle of overcharge or over-discharge state. Subsequently, the system records this maximum difference and the corresponding continuous cycle. These data can be used for analysis and diagnosis to help understand the operating performance of the battery in overcharge or over-discharge states and can provide practical data support for maintenance or future designs. When the difference between the monitored charge-discharge power and the allowable charge-discharge power of the battery drops to zero or becomes negative within a preset time range, the system considers that the vehicle is no longer in an overcharge or over-discharge state. Once the vehicle leaves the overcharge and over-discharge state, the previously recorded continuous cycle and maximum difference data will be deleted. This step is to prevent data accumulation from causing confusion and ensure that only the current or most recent important state is tracked and recorded. The purpose of this system is to ensure that the battery operates under safe conditions and provide data support for analyzing abnormal situations. Recording the continuous cycle and maximum difference data can help analyze the performance of the battery under extreme working conditions, while deleting these records can avoid information overload and ensure the immediacy and relevance of the data.

[0081] Step S30: Determine a correction factor for the allowable charge-discharge power of the battery based on the maximum difference and the continuous cycle of overcharge and over-discharge.

[0082] Step S40: Adjust the allowable charge-discharge power of the battery based on the correction factor.

[0083] Step S50: Use the adjusted allowable charge-discharge power of the battery as the new allowable charge-discharge power of the battery.

[0084] It should be noted that the maximum difference data between the charge-discharge power recorded during overcharge or over-discharge states and the charge-discharge power allowed by the battery is analyzed. The duration of the recorded overcharge or over-discharge is evaluated to determine the length and frequency of the period. Based on the magnitude of the maximum difference and the duration of the overcharge or over-discharge state, a correction factor is initially estimated. This correction factor is intended to adjust the preset threshold of the charge-discharge power allowed by the battery in the battery management system. This step can be completed using empirical formulas or models based on battery performance data, and the choice of formula or model will depend on the battery type and manufacturer's recommendations. Using simulation or historical data, the potential safety risks and performance impacts after applying the correction factor are evaluated. The possible impacts on battery life, stability, and safety are particularly evaluated. If the initial correction factor results in potential risks exceeding the acceptable range, adjustments are needed to ensure that safety and battery performance are not adversely affected. In a controlled environment, experimental verification of the correction factor is carried out by simulating overcharge and over-discharge states and monitoring the battery's response and performance. The verification data includes, but is not limited to, battery temperature, voltage, capacity loss, and charge-discharge cycle performance. Based on the results of the experimental verification, if necessary, further adjustment and optimization of the correction factor are performed to find the best balance point that ensures battery safety while minimizing performance loss. The optimization process can involve multiple rounds of experiments and adjustments until the predetermined safety and performance indicators are achieved. The optimized correction factor is applied to the battery management system to update the threshold of the charge-discharge power allowed by the battery. After implementation, the battery performance and safety status are continuously monitored to ensure that the changes do not introduce new problems and to collect data for possible future adjustments.

[0085] In a specific implementation, the positive self-learning value in this case is determined by the Positive Value Base and the correction factor. The Positive Value Base is a calibratable value, and the correction factor is obtained by looking up a table based on the stored Error max and Error time mentioned above. Refer to Figure 13 , Figure 13 This is a relationship comparison table between the maximum difference between the charge-discharge power and the charge-discharge power allowed by the battery in the battery charge-discharge power control method of the present invention and the first correction factor; refer to Figure 14 , Figure 14It is a comparison table of the relationship between the continuous cycle of overcharge and overdischarge and the second correction coefficient in the battery charge and discharge power control method of the present invention; the final positive self-learning value is calculated as Positive Value Base * adapt_r1 * adapt_r2 and recorded in the self-learning table (see the following table, the learned coordinate points in the table are the BMS-allowed charge and discharge power corresponding to the recorded error max) as the positive learning value for this change. If overcharge or overdischarge occurs again next time, the value of PositiveValue Base * adapt_r1 * adapt_r2 for the next time will change again based on the value in the self-learning table. Where adapt_r1 is the first correction coefficient and adapt_r2 is the second correction coefficient. Refer to Figure 15 , Figure 15 It is a comparison table of the relationship between the charge and discharge power allowed by the battery and the correction coefficient in the battery charge and discharge power control method of the present invention.

[0086] In the first embodiment, when the vehicle is in the overcharge or overdischarge state, the continuous cycle of the vehicle's overcharge or overdischarge is determined; the maximum difference between the charge and discharge power of the vehicle and the charge and discharge power allowed by the battery during the continuous cycle of the vehicle's overcharge or overdischarge is determined; the correction coefficient of the charge and discharge power allowed by the battery is determined based on the maximum difference and the continuous cycle of the overcharge or overdischarge; the charge and discharge power allowed by the battery is adjusted based on the correction coefficient; and the adjusted charge and discharge power allowed by the battery is used as the new charge and discharge power allowed by the battery, so that the allowed power can be dynamically adjusted according to the real-time state of the battery, rather than simply relying on static or single control strategies. This can adapt the battery management control strategy according to the conditions of the battery and the actual usage of the vehicle, enhancing the flexibility and adaptability of the system.

[0087] Refer to Figure 3 , Figure 3 It is a schematic flowchart of the second embodiment of the battery charge and discharge power control method of the present invention. Based on the first embodiment shown above Figure 2 a second embodiment of the battery charge and discharge power control method of the present invention is proposed.

[0088] In the second embodiment, before the step S10, the method further includes:

[0089] Step S01: When the vehicle is in the ready state, obtain the charge and discharge power of the vehicle and the charge and discharge power allowed by the battery.

[0090] Step S02: Determine whether the vehicle is in an overcharge or over-discharge state based on the comparison result between the actual charge-discharge power of the vehicle and the charge-discharge power allowed by the battery. Specifically, if the actual discharge power is greater than the allowed discharge power, it is determined that the vehicle is in an over-discharge state; if the actual discharge power is less than the allowed charge power, it is determined that the vehicle is in an overcharge state.

[0091] It should be noted that electric vehicles and hybrid vehicles can use the Ready state to indicate whether the vehicle can be driven normally. Ready means that the vehicle is already in a high-voltage state and can provide driving power. Therefore, the Ready state is represented by 0-1 at the start of this driving cycle, the Ready state is continuously set to 1 to indicate that this driving cycle is ongoing, and the Ready state changes from 1-0 to indicate the end of this driving cycle. When the vehicle is in the Ready state, that is, when the vehicle has been started and is ready to drive or perform other operations, the system starts to obtain key charge-discharge data. This includes real-time monitoring of the vehicle's charging and discharging power, as well as recording the charge-discharge power thresholds allowed by the battery. Through the Battery Management System (BMS) or a relevant battery parameter database, the overcharge and over-discharge power thresholds set by the battery manufacturer are obtained. These thresholds are key parameters for protecting battery safety and maintaining the battery's healthy state. The system calculates the difference between the current charging or discharging power and the charge-discharge power thresholds allowed by the battery in real time. This difference reflects the deviation of the battery's current working state from its safe operating conditions. If, within a preset time range, the difference between the monitored charge-discharge power and the charge-discharge power thresholds allowed by the battery continuously remains greater than zero, the system will determine that the vehicle is in an overcharge or over-discharge state.

[0092] In a specific implementation, reference can be made to Figure 9 , Figure 9 which is a logic schematic diagram for determining the overcharge and over-discharge state in the battery charge-discharge power control method of the present invention. In the figure, error represents the difference between the actual charge-discharge power of the entire vehicle and the charge-discharge power allowed by the battery. A value greater than 0 indicates exceeding the allowed value, and a value less than 0 indicates not exceeding the allowed value. When error is greater than 0, and at the same time the entire vehicle is in a certain driving cycle and this state persists for a period of time (which can be calibrated), it is considered that overcharge and over-discharge (positive active) have occurred. It should be understood that Figure 9 the method for judging the overcharge and over-discharge state in

[0093] is only used to understand this step and does not limit the implementation method of this step.

[0094] When the difference between the charge-discharge power of the vehicle and the charge-discharge power allowed by the battery is less than or equal to zero within a preset time, adjust the charge-discharge power allowed by the battery based on a preset reference value;

[0095] Take the adjusted charge and discharge power allowed by the battery as the new charge and discharge power allowed by the battery.

[0096] It should be noted that with reference to Figure 16 , Figure 16 is a schematic diagram of the negative learning process during overcharge and over-discharge in the battery charge and discharge power control method of the present invention; the negative learning activation conditions during overcharge and over-discharge are as Figure 16 shown: Only within the calibratable number of driving cycles ( Figure 16 cycle time), when 0 overcharge and over-discharge are recognized, the negative learning of overcharge and over-discharge is activated; when the driving cycle with overcharge and over-discharge or without overcharge and over-discharge has reached the calibrated cycle time, the currently recorded number of driving cycles will be reset to 0 and start to be recognized and recorded again. The negative self-learning value is only determined by NegativeValue Base. When the negative learning activation condition is met, all values in the self-learning record table change by the amount of Negative Value Base in the opposite direction of the positive learning value. Finally, the original power allowed to be used by the BMS is converted into the actual power allowed to be used by the BMS after PI regulation and self-learning correction and sent to the vehicle controller as the final output.

[0097] Further, after taking the adjusted charge and discharge power allowed by the battery as the new charge and discharge power allowed by the battery, it further includes:

[0098] Control the charge and discharge power allowed by the battery not to exceed the preset charge and discharge power allowed by the battery.

[0099] It should be noted that in order to prevent the learning value from having too large a deviation, the final charge and discharge power allowed by the battery cannot exceed the preset charge and discharge power allowed by the battery, where the preset charge and discharge power allowed by the battery can be the power allowed to be used by the original battery management system.

[0100] Further, with reference to Figure 4 , Figure 4 is a schematic diagram of the process of the third embodiment of the battery charge and discharge power control method of the present invention. Based on the first embodiment shown in the above Figure 2 , the third embodiment of the battery charge and discharge power control method of the present invention is proposed.

[0101] The step S10 includes:

[0102] Step S101: Start timing when the vehicle is in the overcharge and over-discharge state.

[0103] Step S102: Obtain the timing duration when the vehicle stops being in the overcharge and over-discharge state.

[0104] Step S103: Determine the continuous cycle of overcharging and over-discharging of the vehicle based on the timing duration.

[0105] It should be noted that when the system detects that the vehicle enters the overcharging or over-discharging state, a timer or timing function will be started to record the duration of the state. This can be achieved through software algorithms. When the detected power difference exceeds the set threshold, the timing starts. When the system monitors that the difference between the charging and discharging power of the vehicle and the allowable charging and discharging power of the battery drops to zero or a negative value within the preset time, it means that the vehicle has stopped the overcharging or over-discharging state. At this time, the reading of the timer will be recorded, and this reading is the duration of the vehicle in this state. Based on the duration obtained from the timer, the system determines the continuous cycle of the vehicle in the overcharging or over-discharging state. This continuous cycle can be used to evaluate the stress conditions of the battery, which in turn affects the battery management strategy and maintenance requirements.

[0106] In the specific implementation, reference can be made to Figure 11 , Figure 11 which is the logical schematic diagram for determining the continuous cycle of overcharging and over-discharging in the battery charging and discharging power control method of the present invention. In Figure 11 when it is detected that the vehicle enters the overcharging or over-discharging state, a timer or timing function will be started to record the duration of the state, incrementing by 1 each time until the vehicle is not in the overcharging or over-discharging state and 0 is input to else, that is, the timing stops. Figure 11 The timing method of the overcharging and over-discharging state in

[0107] is only used to understand this step and does not limit the implementation manner of this step.

[0108] Step S201: Determine the first difference between the charging and discharging power of the vehicle and the allowable charging and discharging power of the battery at the current moment, and determine the second difference between the charging and discharging power of the vehicle and the allowable charging and discharging power of the battery at the next moment.

[0109] Step S202: When the first difference is greater than the second difference, use the first difference as the maximum difference between the charging and discharging power of the vehicle and the allowable charging and discharging power of the battery.

[0110] Step S203: When the first difference is less than the second difference, use the second difference as the maximum difference between the charging and discharging power of the vehicle and the allowable charging and discharging power of the battery.

[0111] Step S204: Execute the step of determining the first difference between the charging and discharging power of the vehicle and the allowable charging and discharging power of the battery at the current moment until the continuous cycle of the vehicle's overcharging and over-discharging ends.

[0112] It should be noted that during the continuous cycle of overcharging and over-discharging of the vehicle, the system continuously detects and calculates the difference between the charging and discharging power of the vehicle at the current moment and the charging and discharging power allowed by the battery. This difference is called the first difference. Subsequently, the system calculates the difference between the charging and discharging power of the vehicle at the next moment (i.e., after a very short time interval) and the charging and discharging power allowed by the battery. This difference is called the second difference. If the first difference is greater than the second difference, the system records the first difference as the current maximum difference. Since we are looking for the maximum value throughout the continuous cycle, each new difference is compared with the current maximum difference. If the first difference is less than the second difference, the system records the second difference as the new maximum difference. This means that at this moment, the charging and discharging behavior of the vehicle has a greater gap from the allowed limit. This process continues until the vehicle exits the overcharging and over-discharging state. The system continuously updates the maximum difference until the maximum power difference throughout the continuous cycle is determined.

[0113] In the specific implementation, reference can be made to Figure 10 , Figure 10 which is a logical schematic diagram for determining the maximum difference between the charging and discharging power of the vehicle and the charging and discharging power allowed by the battery in the battery charging and discharging power control method of the present invention. In Figure 10 , when it is detected that the vehicle enters the overcharging or over-discharging state, the first difference between the charging and discharging power of the vehicle at the current moment and the charging and discharging power allowed by the battery and the second difference between the charging and discharging power of the vehicle at the next moment and the charging and discharging power allowed by the battery are compared within the continuous cycle of the vehicle's overcharging and over-discharging, so as to determine the maximum power difference throughout the continuous cycle until the vehicle is not in the overcharging or over-discharging state and 0 is input to else, that is, the loop exits. Figure 10 The determination of the maximum difference in

[0114] is only used to understand this step and does not limit the implementation manner of this step.

[0115] In addition, an embodiment of the present invention also proposes a storage medium, on which a battery charging and discharging power control program is stored. When the battery charging and discharging power control program is executed by a processor, the steps of the battery charging and discharging power control method as described above are implemented.

[0115] In addition, referring to Figure 17 , an embodiment of the present invention also proposes a battery charging and discharging power control device, which includes:

[0116] A cycle determination module 10, configured to determine the continuous cycle of the vehicle's overcharging and over-discharging when the vehicle is in the overcharging and over-discharging state;

[0117] A difference determination module 20, configured to determine the maximum difference between the charging and discharging power of the vehicle and the charging and discharging power allowed by the battery within the continuous cycle of the vehicle's overcharging and over-discharging;

[0118] A coefficient determination module 30, configured to determine a correction coefficient of the charge-discharge power allowed by the battery based on the maximum difference and the continuous period of overcharge and over-discharge;

[0119] A power adjustment module 40, configured to adjust the charge-discharge power allowed by the battery based on the correction coefficient;

[0120] A power determination module 50, configured to use the adjusted charge-discharge power allowed by the battery as the new charge-discharge power allowed by the battery.

[0121] For other embodiments or specific implementation manners of the battery charge-discharge power control device of the present invention, reference may be made to the above method embodiments, which will not be elaborated herein.

[0122] It should be noted that in this article, the terms "including", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or system. Without further limitations, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or system including that element.

[0123] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments. Among the several unit claims listing several devices, several of these devices may be specifically embodied by the same hardware item. The use of the words first, second, and third does not indicate any order, and these words may be interpreted as names.

[0124] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation manner. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as a Read Only Memory image (ROM) / Random Access Memory (RAM), magnetic disk, optical disk), and includes several instructions for causing a terminal user device (which may be a mobile phone, a computer, a server, an air conditioner, or a network user device, etc.) to execute the methods described in the various embodiments of the present invention.

[0125] The above are only the preferred embodiments of the present invention, and do not limit the patent scope of the present invention accordingly. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present invention, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present invention.

Claims

1. A battery charging and discharging power control method, characterized in that: The method comprises: When the vehicle is in an overcharge or overdischarge state, determine the duration of the overcharge or overdischarge of the vehicle; Determine the maximum difference between the charge and discharge power of the vehicle and the charge and discharge power allowed by the battery during the continuous period of overcharge and overdischarge of the vehicle; Determining a correction coefficient of the charge and discharge power allowed by the battery based on the maximum difference and the duration period of the overcharge and overdischarge; Adjusting the charge and discharge power allowed by the battery based on the correction coefficient; The adjusted allowable charge and discharge power of the battery is used as the new allowable charge and discharge power of the battery.

2. The battery charging and discharging power control method according to claim 1, characterized in that: Before the automobile is in an overcharge or overdischarge state, the method further includes: When the car is in the ready state, obtain the actual charging and discharging power of the car and the charging and discharging power allowed by the battery; Based on the comparison result of the actual charge and discharge power of the vehicle and the allowable charge and discharge power of the battery, it is determined whether the vehicle is in an overcharge or over-discharge state; if the actual discharge power is greater than the allowable discharge power, it is determined to be in an over-discharge state; if the actual discharge power is less than the allowable charge power, it is determined to be in an overcharge state.

3. The battery charging and discharging power control method according to claim 2, characterized in that: When the vehicle is in the ready state, after obtaining the actual charge and discharge power of the vehicle and the charge and discharge power allowed by the battery, the method further includes: When the difference between the charge and discharge power of the vehicle and the charge and discharge power allowed by the battery is less than or equal to zero within a preset time, adjusting the charge and discharge power allowed by the battery based on a preset reference value; The adjusted allowable charge and discharge power of the battery is used as the new allowable charge and discharge power of the battery.

4. The battery charging and discharging power control method according to claim 1, characterized in that: When the vehicle is in an overcharge or overdischarge state, determining the duration of the overcharge or overdischarge of the vehicle includes: When the car is in overcharge or overdischarge state, start timing; When the automobile stops being in an overcharge or overdischarge state, obtaining a timing duration; The duration of overcharging and overdischarging of the vehicle is determined based on the timing duration.

5. The battery charging and discharging power control method according to claim 1, characterized in that: The determining of the maximum difference between the charge and discharge power of the vehicle and the charge and discharge power allowed by the battery during the continuous period of overcharge and overdischarge of the vehicle includes: Determine a first difference between the charge and discharge power of the vehicle at a current moment and the charge and discharge power allowed by the battery, and determine a second difference between the charge and discharge power of the vehicle at a next moment and the charge and discharge power allowed by the battery; When the first difference is greater than the second difference, the first difference is used as the maximum difference between the charge and discharge power of the vehicle and the charge and discharge power allowed by the battery; When the first difference is smaller than the second difference, the second difference is used as the maximum difference between the charge and discharge power of the vehicle and the charge and discharge power allowed by the battery; The step of determining a first difference between the current charging and discharging power of the vehicle and the allowed charging and discharging power of the battery is performed until the continuous cycle of overcharging and overdischarging of the vehicle ends.

6. The battery charging and discharging power control method according to claim 3, characterized in that: After the adjusted allowable charge and discharge power of the battery is used as the new allowable charge and discharge power of the battery, the method further includes: The charge and discharge power allowed by the battery is controlled to be no greater than the charge and discharge power allowed by the preset battery.

7. The battery charging and discharging power control method according to claim 1, characterized in that: After determining the maximum difference between the charge and discharge power of the vehicle and the charge and discharge power allowed by the battery during the continuous period of overcharge and overdischarge of the vehicle, the method further includes: Recording the duration period and the maximum difference between the charge and discharge power of the vehicle and the charge and discharge power allowed by the battery; After the duration period of overcharging and overdischarging of the vehicle ends, the recorded duration period and the maximum difference are deleted.

8. A car, characterized in that: The car includes: a memory, a processor, and a battery charge and discharge power control program stored in the memory and executable on the processor. When the battery charge and discharge power control program is executed by the processor, the steps of the battery charge and discharge power control method as described in any one of claims 1 to 7 are implemented.

9. A storage medium, characterized in that: The storage medium stores a battery charge and discharge power control program, and when the battery charge and discharge power control program is executed by the processor, the steps of the battery charge and discharge power control method according to any one of claims 1 to 7 are implemented.

10. A battery charging and discharging power control device, characterized in that: The battery charging and discharging power control device comprises: A cycle determination module, used to determine the duration of overcharging or overdischarging of the vehicle when the vehicle is in an overcharging or overdischarging state; A difference determination module, used to determine the maximum difference between the charge and discharge power of the vehicle and the charge and discharge power allowed by the battery during the continuous period of overcharge and overdischarge of the vehicle; A coefficient determination module, used to determine a correction coefficient of the charge and discharge power allowed by the battery based on the maximum difference and the duration period of the overcharge and overdischarge; A power adjustment module, used for adjusting the charge and discharge power allowed by the battery based on the correction coefficient; The power determination module is used to use the adjusted allowable charge and discharge power of the battery as the new allowable charge and discharge power of the battery.