Battery pack charging method and device, computer equipment and readable storage medium

By calculating the current and historical capacity differences of the battery pack and adjusting the power purchase information to adapt to energy storage demand, the problem of inefficiency of traditional energy storage systems under peak and valley electricity price fluctuations is solved, and the utilization efficiency of the battery pack and the energy storage system are improved. flexibility.

CN119030068APending Publication Date: 2024-11-26GUANGZHOU RIMSEA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410950363.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

Traditional energy storage systems are less efficient when facing peak and valley electricity price fluctuations and cannot respond flexibly, resulting in low energy storage utilization efficiency.

Method used

By obtaining the current and target battery capacity differences of the battery pack, combining historical capacity differences, calculating the difference adjustment coefficient, determining the power purchase information, triggering power purchases on the power grid to accurately regulate the charging of the battery pack, adapting to energy storage needs at different times, and improving the battery pack Utilization efficiency.

Benefits of technology

It realizes precise regulation of battery pack charging, improves the flexibility of interaction between energy storage resources and the power grid, and improves the utilization efficiency of battery packs and the overall efficiency of energy storage systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119030068A_ABST
    Figure CN119030068A_ABST
Patent Text Reader

Abstract

The invention relates to a battery pack charging method and device, computer equipment, a computer readable storage medium and a computer program product. The method comprises the following steps: acquiring a current battery capacity and a target battery capacity of a battery pack at a current moment; according to the current battery capacity and the target battery capacity, determining the corresponding current capacity difference of the battery pack at the current moment; determining a current difference adjustment coefficient corresponding to the current moment based on the current capacity difference; determining a historical capacity difference corresponding to at least one historical moment of the battery pack; and on the basis of the current difference adjustment coefficient, the current capacity difference and the historical capacity difference, determining corresponding electricity purchasing information of the battery pack at the current moment, the electricity purchasing information being used for triggering a mode of purchasing electricity through a power grid to charge the battery pack. Therefore, when to purchase electricity for charging is accurately determined, the electricity is ensured to be charged when the electricity price is lowest or close to the lowest, and the electricity purchase cost of the energy storage system is directly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a battery pack charging method, device, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0002] With the continuous expansion of the installed capacity of renewable energy power generation and energy storage, the effective use of renewable energy and the improvement of its absorption rate have become important challenges facing the power system today. The rational use of peak-valley electricity price difference is an effective means of absorbing renewable energy. In reality, energy storage systems are often used to achieve peak-valley electricity price difference arbitrage.

[0003] Energy storage systems can store electricity during low-consumption periods and release it during peak periods to meet electricity demand. However, traditional power systems are inefficient and unable to respond flexibly to fluctuations in peak and valley electricity prices. Therefore, how to improve the utilization efficiency of energy storage systems is an important issue facing today's power systems. Summary of the invention

[0004] Based on this, it is necessary to provide a battery pack charging method, device, computer equipment, computer-readable storage medium and computer program product that can improve the utilization rate in order to solve the above technical problems.

[0005] In a first aspect, the present application provides a battery pack charging method, comprising:

[0006] Get the current battery capacity and target battery capacity of the battery pack at the current moment;

[0007] Determining a current capacity difference of the battery pack corresponding to the current moment according to the current battery capacity and the target battery capacity;

[0008] Determining a current difference adjustment coefficient corresponding to the current moment based on the current capacity difference;

[0009] Determine a historical capacity difference of the battery pack corresponding to at least one historical moment;

[0010] Based on the current difference adjustment coefficient, the current capacity difference and the historical capacity difference, the power purchase information corresponding to the battery pack at the current moment is determined, and the power purchase information is used to trigger charging of the battery pack by purchasing power from the power grid.

[0011] In a second aspect, the present application also provides a battery pack charging device, comprising:

[0012] An acquisition module, used to acquire the current battery capacity and target battery capacity of the battery pack at the current moment;

[0013] A first determination module, configured to determine a current capacity difference of the battery pack corresponding to the current moment according to the current battery capacity and the target battery capacity;

[0014] A second determination module, configured to determine a current difference adjustment coefficient corresponding to the current moment based on the current capacity difference;

[0015] A third determination module, configured to determine a historical capacity difference of the battery pack corresponding to at least one historical moment;

[0016] The fourth determination module is used to determine the power purchase information corresponding to the battery pack at the current moment based on the current difference adjustment coefficient, the current capacity difference and the historical capacity difference, and the power purchase information is used to trigger charging of the battery pack by purchasing electricity from the power grid.

[0017] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0018] Get the current battery capacity and target battery capacity of the battery pack at the current moment;

[0019] Determining a current capacity difference of the battery pack corresponding to the current moment according to the current battery capacity and the target battery capacity;

[0020] Determining a current difference adjustment coefficient corresponding to the current moment based on the current capacity difference;

[0021] Determine a historical capacity difference of the battery pack corresponding to at least one historical moment;

[0022] Based on the current difference adjustment coefficient, the current capacity difference and the historical capacity difference, the power purchase information corresponding to the battery pack at the current moment is determined, and the power purchase information is used to trigger charging of the battery pack by purchasing power from the power grid.

[0023] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0024] Get the current battery capacity and target battery capacity of the battery pack at the current moment;

[0025] Determining a current capacity difference of the battery pack corresponding to the current moment according to the current battery capacity and the target battery capacity;

[0026] Determining a current difference adjustment coefficient corresponding to the current moment based on the current capacity difference;

[0027] Determine a historical capacity difference of the battery pack corresponding to at least one historical moment;

[0028] Based on the current difference adjustment coefficient, the current capacity difference and the historical capacity difference, the power purchase information corresponding to the battery pack at the current moment is determined, and the power purchase information is used to trigger charging of the battery pack by purchasing power from the power grid.

[0029] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0030] Get the current battery capacity and target battery capacity of the battery pack at the current moment;

[0031] Determining a current capacity difference of the battery pack corresponding to the current moment according to the current battery capacity and the target battery capacity;

[0032] Determining a current difference adjustment coefficient corresponding to the current moment based on the current capacity difference;

[0033] Determine a historical capacity difference of the battery pack corresponding to at least one historical moment;

[0034] Based on the current difference adjustment coefficient, the current capacity difference and the historical capacity difference, the power purchase information corresponding to the battery pack at the current moment is determined, and the power purchase information is used to trigger charging of the battery pack by purchasing power from the power grid.

[0035] The above-mentioned battery pack charging method, device, computer equipment, computer-readable storage medium and computer program product obtain the current battery capacity and target battery capacity of the battery pack at the current moment to determine the current remaining battery capacity and the expected battery capacity of the battery pack. According to the current battery capacity and the target battery capacity, the current capacity difference corresponding to the battery pack at the current moment is determined, and the current difference adjustment coefficient corresponding to the current moment is determined based on the current capacity difference. The historical capacity difference corresponding to the battery pack at at least one historical moment is determined, and the power purchase information corresponding to the battery pack at the current moment is determined based on the current difference adjustment coefficient, the current capacity difference and the historical capacity difference. The power purchase information is used to trigger the charging of the battery pack by purchasing electricity from the power grid, so as to realize the precise control of the charging of the battery pack based on the battery capacity difference at the current moment and the historical moment, so as to accurately adapt the energy storage demand of the battery pack at different times and improve the utilization efficiency of the battery pack. At the same time, by accurately matching the supply and demand status of the power grid and the energy storage demand of the battery pack, the flexibility of the interaction between the energy storage resources and the power grid can be improved, and the utilization efficiency of the battery pack can be further improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0037] FIG1 is a diagram showing an application environment of a battery pack charging method according to an embodiment;

[0038] FIG2 is a schematic diagram of a flow chart of a battery pack charging method in one embodiment;

[0039] FIG3 is a schematic diagram of a scenario application of a battery pack charging method in one embodiment;

[0040] FIG4 is a flow chart of training a battery capacity prediction model in one embodiment;

[0041] FIG5 is a schematic flow chart of a battery pack charging method in another embodiment;

[0042] FIG6 is a structural block diagram of a battery pack charging method and apparatus according to an embodiment;

[0043] FIG7 is a structural block diagram of a battery pack charging method and device in another embodiment;

[0044] FIG. 8 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0046] The battery pack charging method provided in the embodiment of the present application can be applied to the application environment shown in FIG. 1. The terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The terminal 102 generates a battery pack charging request, and then sends the battery pack charging request to the server 104, so that the server 104 determines the power purchase information corresponding to the battery pack at the current moment based on the difference adjustment coefficient, the current capacity difference and the historical capacity difference. The terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, etc. The head-mounted device can be a virtual reality (VR) device, an augmented reality (AR) device, smart glasses, etc. The server 104 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.

[0047] In an exemplary embodiment, as shown in FIG. 2 , a battery pack charging method is provided. The method is described by taking the application of the method to the server 104 in FIG. 1 as an example, and includes the following steps 202 to 210 .

[0048] Step 202, obtaining the current battery capacity and target battery capacity of the battery pack at the current moment.

[0049] Among them, the present application is an energy storage energy intelligent integration system based on peak-valley electricity prices. The system uses dynamic peak-valley electricity price data as a link to connect and link the energy storage system and the renewable energy system, thereby realizing the intelligent integration of the energy storage system and the renewable energy system. The system includes an energy storage system, a renewable energy system, a peak-valley electricity price data interface, an intelligent controller, and an ARIMA (autoregressive integral moving average model) prediction model. The energy storage system is used to store electric energy, the renewable energy system is used to generate electricity, the peak-valley electricity price data interface is used to obtain dynamic peak-valley electricity price data, and the intelligent controller is used to intelligently control the energy storage system and the renewable energy system according to the peak-valley electricity price data and the renewable energy prediction data. The ARIMA prediction model uses time series analysis to predict the power generation of renewable energy, and the prediction data is used to optimize the control strategy of the intelligent controller. In this system, the intelligent controller determines the operation strategy of the energy storage system and the renewable energy system based on the peak-valley electricity price data and the renewable energy prediction data.

[0050] The battery pack in this application is located in the energy storage system and is used to store electrical energy. The target battery capacity is a threshold value pre-set by the user and used as a reference point for battery charging and discharging operations. It can be understood that in some cases, setting the target battery capacity to full charge (100%) may be a reasonable choice, especially when it is necessary to maximize energy storage and utilization. However, it should be noted that charging to full charge may increase the stress of the battery and reduce its life. Because the value design is determined by the user to weigh different considerations, the default full charge is 80%, which makes the battery life longer.

[0051] The current battery capacity refers to the ratio or absolute value of the actual amount of electrical energy currently stored in the battery pack relative to its maximum design capacity. In energy storage systems, the current capacity of the battery is a key indicator that reflects the current ability of the battery pack to provide or accept electrical energy. This value can help the system understand the instantaneous state of the battery and thus guide the charging and discharging strategy.

[0052] Specifically, the user first sets the "target battery capacity" according to specific needs during system initialization or through the user interface. This is a preset threshold used as a decision basis for the battery charging and discharging strategy. As before, although fully charging the battery (100%) seems ideal in some scenarios, considering battery health and life, the system defaults to a target battery capacity of 80%, which the user can adjust according to actual conditions. The intelligent controller stores this user-set value and reads it continuously during operation as part of the control logic. Then, the ARIMA (autoregressive integrated moving average model) prediction model is used to predict the working status of the battery pack in real time, including the current charge level of the battery. This data is continuously recorded and transmitted to the intelligent controller. This step ensures that the system can accurately grasp the "current battery capacity", that is, the proportion or absolute value of the actual amount of electrical energy currently stored in the battery to its maximum design capacity. For example, if the maximum capacity of a battery is 100kWh and 60kWh of electrical energy has been stored, the current battery capacity is 60% or 60kWh.

[0053] Step 204 : determining the current capacity difference of the battery pack at the current moment according to the current battery capacity and the target battery capacity.

[0054] The current capacity difference refers to the difference between the target battery capacity and the current battery capacity. For example, if the target battery capacity is 60 kWh and the current battery capacity is 50 kWh, then the current capacity difference is (60-50) = 10 kWh.

[0055] Specifically, the current battery capacity of the battery pack is first predicted and obtained in real time through the ARIMA (Autoregressive Integrated Moving Average) prediction model. For example, by measuring parameters such as battery voltage, current and temperature, the actual amount of electrical energy currently stored is calculated in combination with the characteristic curve of the battery. Then the stored user setting value is accessed or the latest target battery capacity information is received through the communication interface. The target capacity is a desired energy storage level set in advance by the user or system according to the energy management strategy, such as 60kWh. Next, a simple mathematical operation is performed, that is, the target battery capacity minus the current battery capacity, to calculate the difference between the two. Continuing with the above example, if the current battery capacity is 50kWh and the target battery capacity is 60kWh, the current capacity difference = target battery capacity - current battery capacity = 60 kWh -50 kWh = 10 kWh. It can be understood that the current capacity difference is a key indicator that directly guides the subsequent energy storage system operation. If the difference is positive, it means that the battery has not yet reached the predetermined energy storage level, and the intelligent controller may start the charging process, especially when the prediction model shows that the future electricity price is low, to replenish energy in a cost-effective manner. On the contrary, if the difference is negative, the battery capacity has exceeded the target or is close to the upper limit, and it may be considered to discharge at an appropriate time to avoid overcharging and make full use of low-cost electricity.

[0056] Step 206: Determine a current difference adjustment coefficient corresponding to the current moment based on the current capacity difference.

[0057] Among them, the current difference adjustment coefficient refers to the proportional gain, which is used to adjust the weight of the current error. Increasing the current difference adjustment coefficient will enhance the response to the current error. For example, when the current battery capacity of the battery pack predicted by the ARIMA forecasting model at the current moment is less than the target battery capacity, the current difference adjustment coefficient is increased when the dynamic electricity price is at the bottom. When the current battery capacity of the battery pack predicted by the ARIMA forecasting model at the current moment is less than the target battery capacity, the current difference adjustment coefficient is 0, and the mains input is not started at this time.

[0058] Specifically, first, calculate the difference between the target battery capacity and the current battery capacity. As mentioned earlier, if the target capacity is 60kWh and the current capacity is 50kWh, the difference is 10kWh. This difference intuitively shows how far the energy storage system is from its ideal state. Understandably, the current difference adjustment coefficient is a proportional gain parameter that is used to adjust the intensity of the system's response to this difference. If the difference is large, that is, the battery capacity is significantly lower than the target value, increasing the current difference adjustment coefficient can speed up the charging rate and replenish energy quickly; conversely, if the difference is small or zero, it indicates that the energy storage system is close to or has reached the target state, and additional charging may not be required at this time. The current difference adjustment coefficient can be set to a low value or zero to avoid excessive charging and discharging.

[0059] Step 208 , determining a historical capacity difference of the battery pack corresponding to at least one historical moment.

[0060] Among them, the historical capacity difference refers to the difference between the actual energy storage state of the battery pack at one or some points in the past and the target battery capacity set at that time, which is used to extract valuable information for optimizing existing control strategies or predicting future behavior patterns. Optionally, the historical capacity difference can represent the accumulation of errors over time, that is, the accumulation of historical errors. This helps to deal with the static errors of the system and ensure that the system can adapt to long-term changes. It can also represent the rate of change of the error over time, that is, the derivative of the error. This helps to deal with the dynamic errors of the system and ensure that the system can adapt to changes quickly.

[0061] Specifically, first select a specific moment or a series of moments from the historical records. These moments may be previously experienced peak and valley electricity price periods, peak or valley periods of renewable energy generation, or key nodes of system operation. Then for each selected historical moment, the historical capacity difference can be a representation of the accumulation of errors over time, that is, the accumulation of historical errors. This helps to deal with the static errors of the system and ensure that the system can adapt to long-term trends. It can also be a representation of the rate of change of the error over time, that is, the derivative of the error. This helps to deal with the dynamic errors of the system and ensure that the system can adapt to changes quickly. Finally, by analyzing the capacity differences at multiple historical moments, combined with forecasting models such as ARIMA, historical difference data can be used to calibrate model parameters and improve the accuracy of forecasts of future battery status and market demand, so as to more finely adjust energy storage and charging and discharging strategies.

[0062] Step 210, based on the current difference adjustment coefficient, the current capacity difference and the historical capacity difference, determine the power purchase information corresponding to the battery pack at the current moment, the power purchase information is used to trigger charging of the battery pack by purchasing power from the power grid.

[0063] Specifically, first collect historical data from the database or log of the energy storage system. This data should include the actual capacity (current capacity) of the battery pack at each analysis moment and the target battery capacity set at the corresponding moment. Determine the range of historical moments to be analyzed. These moments can be specific event points (such as sharp fluctuations in electricity prices, drastic changes in renewable energy production caused by extreme weather, etc.), or regular time intervals (such as fixed time points every day or every week), which can be set according to actual needs.

[0064] Then, for each selected historical moment, the following calculation is performed: Historical capacity difference = target battery capacity - actual battery capacity at that time. The difference value at each moment is recorded to form a historical capacity difference sequence, which reflects the deviation between the past battery energy storage state and the target state.

[0065] Next, the historical capacity differences are accumulated to form a cumulative error to evaluate whether the system has a static error, that is, a long-term, stable trend of deviation from the target value. This method helps to identify and correct factors in the system that may affect long-term performance and ensure that the system can adapt to long-term trends. And calculate the rate of change of historical capacity differences at each moment, that is, the derivative of the error, and analyze the dynamic changes of the error over time. This helps to identify short-term fluctuations or rapidly changing dynamic errors, ensure that the system can respond quickly to changes in external conditions, and adjust the control strategy in time. Analyze the cumulative error and change rate to extract the key factors that affect the performance of the energy storage system, such as improper control strategy in a specific time period, sensitivity to changes in the external environment, etc. Identify patterns or regularities, such as seasonal changes, the impact of specific events on energy storage utilization, etc. This information is crucial for optimizing control strategies.

[0066] Finally, based on the analysis results of historical capacity differences, the existing control strategy is adjusted, such as adjusting the current difference adjustment coefficient, optimizing the charging and discharging timing, etc., to reduce possible errors in the future. By using the trends and patterns in historical data and combining forecasting models such as ARIMA, the prediction accuracy of future battery capacity differences can be improved, and the charging and discharging strategy of the energy storage system can be planned in advance to ensure that the system operates more efficiently and flexibly.

[0067] In one of the embodiments, an initial difference adjustment coefficient of the battery pack is obtained; when the current capacity difference is greater than the preset capacity difference, the initial difference adjustment coefficient of the battery pack is increased to obtain a current difference adjustment coefficient corresponding to the battery pack at the current moment.

[0068] The initial difference adjustment coefficient refers to a basic adjustment level pre-set for the battery pack before considering the current specific capacity difference and external conditions (such as electricity price, time, etc.). This coefficient reflects the basic tendency or default setting of the battery pack charging strategy, which is used to balance the battery charging demand with other system goals, such as extending battery life and reducing costs.

[0069] Specifically, a basic initial difference adjustment coefficient is first set according to the characteristics of the battery pack, the expected usage mode, the maintenance cost, and the overall system goals (such as cost-effectiveness, maximizing battery life, etc.). This coefficient represents the basic response strength of the battery pack charging strategy without the influence of special external conditions.

[0070] Then the actual capacity of the battery pack is monitored and recorded in real time, compared with the target battery capacity set by the user, and the current capacity difference is calculated. This step can understand whether the current energy storage state of the battery pack meets or deviates from the target level. Then compare the calculated current capacity difference with the preset capacity difference value. This preset value is a threshold used to distinguish between capacity differences within the normal range and large differences that require measures. Next, if the current capacity difference is greater than the preset capacity difference, it indicates that the energy storage state of the battery pack has a large deviation from the target, and a more active charging strategy is needed to quickly correct it. At this time, the initial difference adjustment coefficient will be moderately increased according to the degree of deviation. Increasing the coefficient means giving a greater weight to the current capacity difference in decision-making, prompting the system to take more active measures, such as increasing the amount of electricity purchased, accelerating charging, etc., to reach the target battery capacity as soon as possible. Finally, after the above adjustment, the coefficient obtained is the current difference adjustment coefficient corresponding to the current moment. This coefficient comprehensively considers the actual state of the battery pack and the preset strategy, and provides a basis for dynamic adjustment for the next step of power purchase and charging decisions.

[0071] Dynamically increasing the initial difference adjustment coefficient means that the battery capacity can be quickly replenished when needed, ensuring that the energy storage system always maintains an efficient operating state, meeting peak power consumption or unexpected needs, and improving overall energy utilization efficiency.

[0072] In one of the embodiments, when the current capacity difference is less than or equal to the preset capacity difference, the initial difference adjustment coefficient is reduced until the current difference adjustment coefficient corresponding to the battery pack at the current moment is obtained.

[0073] Specifically, the current capacity of the battery pack is first monitored in real time, and the difference between the current capacity and the target capacity, i.e., the current capacity difference, is calculated. This difference is then compared with the preset capacity difference value, which is used as a benchmark for determining whether the battery capacity state is close to the ideal. When it is determined that the current capacity difference is not greater than (less than or equal to) the preset capacity difference, it indicates that the battery energy storage state is relatively close to or has reached the target level, and there is no need for an overly aggressive charging strategy. Finally, in this case, the system will appropriately reduce the initial difference adjustment coefficient. The magnitude of the reduction may be based on a variety of factors, such as the degree of closeness of the current capacity difference to the preset difference, electricity price trends, renewable energy generation forecasts, etc., to ensure that the adjustment is neither excessive nor insufficient. Through the process of gradual reduction, a current difference adjustment coefficient suitable for the current situation is finally determined. This coefficient reflects a more cautious and energy-saving charging strategy when the current battery energy storage state is relatively ideal or close to the target.

[0074] Optionally, when the current capacity difference is less than or equal to the preset capacity difference, the initial difference adjustment coefficient is reduced (the initial difference adjustment coefficient is adjusted to 0 (preset adjustment coefficient)) to obtain the difference adjustment coefficient corresponding to the battery pack at the current moment.

[0075] Since the specific operations of electricity purchase and charging are adjusted according to the determined current difference adjustment coefficient, such as reducing the amount of electricity purchased, lowering the charging power or delaying the charging time, unnecessary cost expenditure can be avoided while protecting the battery and extending its service life.

[0076] In one embodiment, a current battery capacity of a battery pack corresponding to each historical moment among a plurality of historical moments is determined; and a historical capacity difference of the battery pack corresponding to each historical moment is determined based on a target battery capacity and the current battery capacity corresponding to each historical moment.

[0077] Specifically, first, detailed data about the battery pack at multiple selected historical moments is collected from the database or historical records of the energy storage system, including the actual capacity of the battery at each moment (i.e., the "current battery capacity"). These historical moments can cover different electricity price periods, seasons, weather conditions, or other specific scenarios that affect the performance of the energy storage system. Then confirm or set a constant target battery capacity value, which represents the energy storage level that the system hopes the battery pack should maintain under ideal conditions. The target battery capacity is used as a comparison benchmark throughout the analysis process. For each historical moment collected, the following operations are performed: Take out the actual capacity of the battery recorded at that moment. Compare the actual capacity with the target battery capacity. Next, for each historical moment, calculate the "historical capacity difference", that is, the target battery capacity minus the actual battery capacity at that moment. If the actual capacity is higher than the target, the difference is negative, otherwise it is positive. This step aims to quantify the deviation between the battery energy storage state and the ideal state at each historical moment.

[0078] Through the above steps, not only can the specific performance differences of the battery pack relative to the target capacity at each historical moment be obtained, but also the reasons behind these differences can be deeply analyzed, laying the foundation for further optimizing the energy storage system management strategy and improving energy utilization efficiency and economy.

[0079] In one of the embodiments, based on each historical moment and the historical capacity difference corresponding to each historical moment, the cumulative difference in historical capacity corresponding to the battery pack at multiple historical moments is determined; based on the current difference adjustment coefficient, the current capacity difference and the cumulative difference in historical capacity, the power purchase information corresponding to the battery pack at the current moment is determined.

[0080] Among them, dynamic peak and valley electricity price data provides a more intelligent basis for charging decisions. By combining this data, the system can more flexibly choose when to use solar charging and when to purchase electricity from the grid to minimize electricity costs. Power purchase information refers to control input signals that are specifically used to adjust the operating strategies of energy storage systems and renewable energy systems to achieve intelligent energy management. Historical capacity cumulative differences refer to the accumulation of errors over time, that is, the accumulation of historical errors. This helps to deal with static errors in the system and ensure that the system can adapt to long-term changing trends.

[0081] Specifically, first, based on the historical capacity difference at each historical moment, the historical capacity cumulative difference is calculated. This usually involves accumulating the difference values ​​at each moment to evaluate the total deviation of the battery energy storage state from the target over a period of time. The cumulative difference helps to analyze long-term trends and the stability of system performance. Then the current battery capacity is obtained, and the current capacity difference with the target capacity is calculated. At the same time, the current difference adjustment coefficient is determined, which is a dynamic adjustment value based on the current capacity difference and the historical capacity difference to strengthen or weaken the response to the current capacity difference. Finally, the actual demand and past performance of the current energy storage system are analyzed by combining the current difference adjustment coefficient, the current capacity difference and the historical capacity cumulative difference. Generate specific power purchase information as a control signal to guide the energy storage system and renewable energy system. The power purchase information includes when to purchase electricity (select the optimal time to purchase electricity based on dynamic peak and valley electricity price data), the amount of electricity purchased (determined according to the capacity difference and the adjustment coefficient), and how to balance the strategy of solar charging and power purchase from the grid to ensure economy and energy efficiency.

[0082] Through the above solution, not only can historical data be used intelligently to optimize current electricity purchasing decisions, but also charging strategies can be flexibly adjusted according to real-time dynamic peak and valley electricity price information and energy storage status to achieve optimization of cost-effectiveness and energy management.

[0083] In one of the embodiments, the charging power corresponding to the battery pack at the current moment is determined, and a cumulative difference adjustment coefficient corresponding to the historical capacity cumulative difference is determined based on the charging power; based on the current difference adjustment coefficient, the current capacity difference, the historical capacity cumulative difference and the cumulative difference adjustment coefficient, the power purchase information corresponding to the battery pack at the current moment is determined.

[0084] Among them, the cumulative adjustment coefficient refers to the cumulative gain, which is used to consider the accumulation of historical errors to overcome the system static error. The charging power refers to the charging photovoltaic power predicted by the ARIMA prediction model. The change of the cumulative adjustment coefficient is proportional to the charging photovoltaic power predicted by the ARIMA prediction model. For example, the cumulative adjustment coefficient = 1×charging photovoltaic power.

[0085] Specifically, the ARIMA (Autoregressive Integrated Moving Average) forecasting model is first used to predict the charging power that the solar photovoltaic panel is expected to provide in a certain period of time in the future. The ARIMA model predicts a relatively accurate charging power value based on the time series pattern in the historical data, taking into account factors such as trends and seasonality. Then, based on the predicted charging photovoltaic power, the cumulative difference adjustment coefficient is calculated. By definition, the cumulative adjustment coefficient is proportional to the charging photovoltaic power, which means that when the predicted charging power is higher, the cumulative adjustment coefficient will also increase accordingly. The cumulative adjustment coefficient reflects the cumulative effect of historical errors and aims to help the system adjust its strategy to overcome static errors and improve overall control accuracy by considering past system performance. Then the determination of the cumulative difference adjustment coefficient also needs to be combined with the historical capacity cumulative difference, that is, the cumulative deviation between the actual capacity and the target capacity of the battery pack at various moments in the past. Through this combination, the system can adjust its control strategy more intelligently to ensure that the charging of the battery pack not only meets the needs of short-term forecasts, but also corrects the long-term accumulated offsets. Finally, based on the current difference adjustment coefficient (reflecting the degree of match between immediate demand and capacity), the current capacity difference (the gap between the immediate battery capacity and the target), the historical capacity cumulative difference, and the newly calculated cumulative difference adjustment coefficient, all these factors are combined to determine the size of the control input signal. The control input signal is specifically used to adjust the operating strategy of the energy storage system and the renewable energy system to achieve intelligent energy management.

[0086] Optionally, control input signal (power purchase information) = Kp×e(t)+Ki×∫e(t)dt

[0087] Among them, e(t) = SOCtarget-SOCcurrent, e(t) is the current capacity difference, which means the difference between the target battery capacity and the current battery capacity. ∫e(t)dt (historical capacity cumulative difference) means the accumulation of error over time, that is, the accumulation of historical errors. This helps to deal with the static errors of the system and ensure that the system can adapt to long-term changing trends. t can be the current moment or a certain historical moment, SOCtarget is the target battery capacity, SOCcurrent is the battery capacity at a certain moment, Kp is the current difference adjustment coefficient, which is used to adjust the weight of the current error, and Ki is the cumulative difference adjustment coefficient, which belongs to the integral gain and is used to adjust the weight of the historical error. Increasing Ki will increase the sensitivity to historical errors.

[0088] By combining the prediction model with historical data analysis, the accumulation of historical errors is focused on. The battery pack charging management can not only respond to the current energy supply and demand conditions in real time, but also effectively utilize historical data to overcome the inherent static errors of the system, thereby achieving a more intelligent and efficient energy management goal.

[0089] In one of the embodiments, based on each historical moment and the historical capacity difference corresponding to each historical moment, the capacity difference change rate corresponding to the battery pack at multiple historical moments is determined; based on the current difference adjustment coefficient, the current capacity difference and the capacity difference change rate, the power purchase information corresponding to the battery pack at the current moment is determined.

[0090] Among them, dynamic peak and valley electricity price data provides a more intelligent basis for charging decisions. By combining this data, the system can more flexibly choose when to use solar charging and when to purchase electricity from the grid to minimize electricity costs. Power purchase information refers to the control input signal, which is specifically used to adjust the operating strategy of the energy storage system and renewable energy system to achieve intelligent energy management. The capacity difference change rate refers to the rate of change of the error over time, that is, the derivative of the error, which helps to deal with the dynamic errors of the system and ensure that the system can adapt to changes quickly.

[0091] Specifically, the ARIMA (Autoregressive Integrated Moving Average) forecasting model is first used to predict the charging power that the solar photovoltaic panel is expected to provide in a certain period of time in the future. The ARIMA model predicts a relatively accurate charging power value based on the time series pattern in the historical data, taking into account factors such as trends and seasonality. This step provides basic data for the subsequent charging strategy. Then the cumulative difference adjustment coefficient is calculated based on the predicted charging. By definition, the cumulative adjustment coefficient is proportional to the charging photovoltaic power, which means that when the predicted charging power is higher, the cumulative adjustment coefficient will also increase accordingly. The cumulative adjustment coefficient reflects the cumulative effect of historical errors and aims to help the system adjust its strategy to overcome static errors and improve overall control accuracy by considering past system performance. Next, the determination of the cumulative difference adjustment coefficient also needs to be combined with the historical capacity cumulative difference, that is, the cumulative deviation between the actual capacity and the target capacity of the battery pack at various moments in the past. Through this combination, the system can adjust its control strategy more intelligently to ensure that the charging of the battery pack not only meets the needs of short-term forecasts, but also corrects the long-term accumulated offset. Finally, based on the current difference adjustment coefficient (reflecting the degree of matching between immediate demand and capacity), the current capacity difference (the gap between the immediate battery capacity and the target), the historical capacity cumulative difference, and the newly calculated cumulative difference adjustment coefficient, the system combines all these factors to determine the best power purchase strategy. The power purchase information specifically includes whether it is necessary to purchase power from the grid, how much power to purchase, and the best time to purchase power, with the goal of minimizing costs, maximizing the use of renewable energy, and maintaining the health of the battery pack.

[0092] By combining the prediction model with historical data analysis, focusing on the rate of change of errors over time helps to deal with the dynamic errors of the system and ensure that the system can quickly adapt to changes. This allows the battery pack charging management to not only respond to the current energy supply and demand conditions in real time, but also effectively utilize historical data to overcome the static errors inherent in the system.

[0093] In one of the embodiments, the charging power corresponding to the battery pack at the current moment is determined, and the change rate difference adjustment coefficient corresponding to the historical capacity cumulative difference is determined based on the charging power; according to the change rate difference adjustment coefficient, the current difference adjustment coefficient, the current capacity difference and the capacity difference change rate, the power purchase information corresponding to the battery pack at the current moment is determined.

[0094] Among them, the rate of change difference adjustment coefficient refers to the differential gain, which is used to adjust the weight of the error change speed. Increasing Kd will increase the sensitivity to the error change speed. Charging power refers to the charging photovoltaic power predicted by the ARIMA prediction model. The change in the rate of change difference adjustment coefficient is inversely proportional to the charging photovoltaic power predicted by the ARIMA prediction model. For example, the rate of change difference adjustment coefficient = 1 / charging photovoltaic power.

[0095] Specifically, the ARIMA forecasting model is first used to predict the power that the battery pack can charge with solar energy at the current moment based on historical data and current conditions. This predicted charging power is an important basis for determining subsequent charging strategies, which aims to maximize the use of renewable energy, reduce dependence on the power grid, and reduce electricity costs.

[0096] Then, based on the predicted charging power, the rate of change difference adjustment coefficient is determined. By definition, the rate of change difference adjustment coefficient is inversely proportional to the charging power, that is, the higher the charging power, the smaller the rate of change difference adjustment coefficient (for example, 1 / charging power). The purpose of this coefficient is to adjust the system's response sensitivity to the speed of battery capacity changes, to ensure that when the solar charging power is sufficient, the system will not over-react to short-term capacity changes, and to maintain the stability of the control strategy.

[0097] Next, the change rate difference adjustment coefficient, the current difference adjustment coefficient (used to adjust the weight of the current error), the current capacity difference (the difference between the actual capacity and the target capacity), and the capacity difference change rate (indicating the speed of error change over time) are considered to determine the power purchase information of the battery pack at the current moment. It should be noted that the change rate difference adjustment coefficient is used to increase or decrease the response speed to the capacity change trend. The current difference adjustment coefficient is used to adjust the direct response intensity to the current error. The current capacity difference is used to reflect the immediate energy storage demand. The capacity difference change rate is used to indicate the error change trend and help the system adapt to changes quickly.

[0098] Finally, according to the confirmed power purchase information, the power purchase instruction is automatically triggered to charge the battery pack through the power grid. This process is carried out based on the consideration of dynamic peak and valley electricity prices, solar charging potential, battery status, and dynamic changes in prediction errors, ensuring highly intelligent and efficient energy management.

[0099] Optionally, control input signal (power purchase information) = u(t)=Kp×e(t)+ Kd×dtde(t)

[0100] Among them, e(t) = SOCtarget-SOCcurrent, e(t) is the current capacity difference, which means the difference between the target battery capacity and the current battery capacity. dtde(t) represents the rate of change of the error over time, that is, the derivative of the error, which helps to deal with the dynamic error of the system and ensure that the system can adapt to changes quickly. t can be the current moment or a certain historical moment, SOCtarget is the target battery capacity, SOCcurrent is the battery capacity at a certain moment, Kp is the current difference adjustment coefficient, which is used to adjust the weight of the current error, and Kd is the differential gain, which is used to adjust the weight of the error change speed. Increasing Kd will increase the sensitivity to the error change speed.

[0101] The above solution enables refined management of the energy storage system, which not only takes into account real-time conditions, but also incorporates predictions of historical trends and future changes to achieve optimal energy allocation and cost control while maintaining the long-term performance of the battery pack.

[0102] In one embodiment, both the historical capacity accumulation difference and the capacity difference change rate can be considered. In this case, the control input signal (power purchase information) = u(t) = Kp×e(t)+Ki×∫e(t)dt+Kd×dtde(t)

[0103] Among them, e(t) = SOCtarget-SOCcurrent, e(t) is the current capacity difference, which means the difference between the target battery capacity and the current battery capacity. dtde(t) represents the rate of change of the error over time, that is, the derivative of the error, which helps to deal with the dynamic error of the system and ensure that the system can adapt to changes quickly. t can be the current moment or a certain historical moment, SOCtarget is the target battery capacity, SOCcurrent is the battery capacity at a certain moment, Kp is the current difference adjustment coefficient, which is used to adjust the weight of the current error, and Kd is the differential gain, which is used to adjust the weight of the error change speed. Increasing Kd will increase the sensitivity to the error change speed. ∫e(t)dt (historical capacity cumulative difference) represents the accumulation of error over time, that is, the accumulation of historical errors. This helps to deal with the static error of the system and ensure that the system can adapt to long-term changing trends. Ki is the cumulative difference adjustment coefficient, which belongs to the integral gain and is used to adjust the weight of historical errors. Increasing Ki will increase the sensitivity to historical errors.

[0104] Specifically, u(t), i.e., the electricity purchase information, is the output of the controller and represents the final control signal. It is the weighted sum of e(t), ∫e(t)dt, and dtde(t). This signal will be used to adjust the operation strategies of the energy storage system and the renewable energy system to achieve intelligent energy management. By reasonably adjusting the values ​​of Ki, Kd, ​​and Kp, the performance of the controller can be optimized to ensure stable operation of the system under different working conditions. This control input signal will help the intelligent controller decide the best charging behavior based on the peak and valley electricity price data and renewable energy forecast data to minimize electricity costs and improve system efficiency.

[0105] Through the above embodiments, the present application can respond in real time, respond to the current error in real time through the current capacity difference, and can quickly adjust the charging strategy to ensure that the system can quickly adapt to changing solar energy production and electricity price conditions. This helps to maximize the use of photovoltaic energy. And combined with dynamic peak and valley electricity price data, the system can intelligently charge during the period with the lowest electricity price, thereby reducing the cost of purchasing electricity. This provides an opportunity for cost optimization, making the system more economical and efficient.

[0106] In one embodiment, referring to FIG3, FIG3 is a schematic diagram of a scenario application of a battery pack charging method in an embodiment, a storage energy intelligent integration system based on peak-valley electricity prices. The system realizes the intelligent integration of energy storage system and renewable energy system by connecting and disconnecting grid battery packs, dynamic peak-valley electricity price input, PID intelligent controller, ARIMA prediction model and photovoltaic equipment.

[0107] Among them, dynamic peak-valley electricity price input: the system first obtains dynamic peak-valley electricity price data, which is the basis for the operation of the entire system. These data will be used to guide the system on how to most effectively use energy storage systems and renewable energy systems.

[0108] Off-grid battery pack: The battery pack is responsible for storing electrical energy and releasing it when needed. It can work independently or in conjunction with other power sources.

[0109] PID Intelligent Controller: This is a key component that receives data from dynamic peak and valley electricity price inputs and develops an optimal charging strategy based on this data and information from the ARIMA forecasting model. The PID controller achieves this by adjusting the proportional, integral and derivative terms.

[0110] ARIMA prediction model: This model is used to predict the power generation of renewable energy, and its prediction results will be fed into the PID controller so that the controller can make better decisions.

[0111] Photovoltaic equipment: This is one of the main energy sources of the system, converting solar energy into electricity, which is then fed into the battery bank or directly into the grid.

[0112] The PID controller plays a central role in the entire process. It receives data from dynamic peak and valley electricity price inputs and develops an optimal charging strategy based on this data and information from the ARIMA forecasting model. The PID controller achieves this by adjusting the proportional, integral, and derivative terms. For example, if insufficient solar energy is predicted for a period of time in the future, the controller may increase the charging rate of the battery pack to ensure sufficient reserve power. Conversely, if sufficient solar energy is predicted for a period of time in the future, the controller may reduce the charging rate of the battery pack to avoid overcharging.

[0113] In one embodiment, the ARIMA model predicts a relatively accurate charging power value based on the time series pattern in the historical data, taking into account factors such as trends and seasonality. This step provides basic data for subsequent charging strategies. The training process of the ARIMA model is as follows, referring to Figure 4:

[0114] Step 1: Observe the original time series chart: determine whether there are trends, seasonality, and other characteristics.

[0115] Step 2: Perform a difference operation: If the original data is not stationary, perform a difference operation until it reaches stationarity.

[0116] Step 3: Draw ACF (i.e. ACF in the figure below) and PACF (i.e. PACF in the figure below): Use the time series data after difference to draw ACF and PACF graphs. Observe the truncation points of the graphs and estimate the appropriate values ​​of p and q.

[0117] Step 4: Determine the value of d: Determine the appropriate value of d by observing the number of differences.

[0118] Step 5: Build ARIMA model: Apply the determined p, d, q values ​​to the ARIMA model.

[0119] Step 6: Model testing: Perform residual analysis on the established ARIMA model to ensure the model fitting effect.

[0120] Step 7: Model prediction: Use the trained ARIMA model to predict future data.

[0121] These steps combine the observation of the original data, the difference operation, and the analysis of the ACF and PACF plots to determine the parameters p, d, q of the ARIMA model and build a time series model that fits the data.

[0122] The parameters (p, d, q) of the ARIMA model are explained as follows: p (order of the AR part) is used to represent the order of the autoregressive part, that is, how many observations at past moments are considered to predict the value at the current moment. This can be estimated by observing the autocorrelation function (ACF) graph. If the ACF is truncated at a certain lag order, then that order may be a suitable value for p.

[0123] d (order of difference) is used to indicate how many times the difference operation is performed to make the time series stationary. The purpose of difference is to remove trend and seasonality. The appropriate value of d can be estimated by observing the original time series and the time series with different orders of difference.

[0124] q (order of the MA part) is used to represent the order of the moving average part, that is, how many past prediction errors are considered to predict the current value. This can be estimated by observing the partial autocorrelation function (PACF) plot. If the PACF is truncated at a certain lag order, then this order may be a suitable value for q.

[0125] The explanation of ACF and PACF plots is as follows: ACF plot (autocorrelation function plot): The ACF plot shows the autocorrelation relationship between the time series and its lagged version. By observing the ACF plot, the order p of the autoregressive (AR) part can be identified. If the ACF is truncated at a certain lag order, then the truncation point may correspond to a suitable value of p.

[0126] PACF plot (partial autocorrelation function plot): The PACF plot shows the partial autocorrelation relationship between a time point in the time series and its past points. By observing the PACF plot, the order q of the moving average (MA) part can be identified. If the PACF is truncated at a certain lag order, then the truncation point may correspond to a suitable value of q.

[0127] In an exemplary embodiment, as shown in FIG5 , steps 502 to 510 are included. Among them:

[0128] Step 502, obtaining the current battery capacity and target battery capacity of the battery pack at the current moment;

[0129] Step 504, determining the current capacity difference of the battery pack at the current moment according to the current battery capacity and the target battery capacity;

[0130] Step 506, obtaining an initial difference adjustment coefficient of the battery pack; when the current capacity difference is greater than the preset capacity difference, increasing the initial difference adjustment coefficient of the battery pack to obtain the current difference adjustment coefficient corresponding to the battery pack at the current moment; when the current capacity difference is less than or equal to the preset capacity difference, reducing the initial difference adjustment coefficient until obtaining the current difference adjustment coefficient corresponding to the battery pack at the current moment;

[0131] Step 508, determining the current battery capacity of the battery pack at each historical moment among the multiple historical moments; determining the historical capacity difference of the battery pack at each historical moment according to the target battery capacity and the current battery capacity at each historical moment;

[0132] Step 510, based on each historical moment and the historical capacity difference corresponding to each historical moment, determine the historical capacity cumulative difference corresponding to the battery pack at multiple historical moments; determine the charging power corresponding to the battery pack at the current moment, and determine the cumulative difference adjustment coefficient corresponding to the historical capacity cumulative difference based on the charging power; determine the power purchase information corresponding to the battery pack at the current moment based on the current difference adjustment coefficient, the current capacity difference, the historical capacity cumulative difference and the cumulative difference adjustment coefficient;

[0133] or

[0134] Based on each historical moment and the historical capacity difference corresponding to each historical moment, determine the capacity difference change rate corresponding to the battery pack at multiple historical moments; determine the charging power corresponding to the battery pack at the current moment, and determine the change rate difference adjustment coefficient corresponding to the historical capacity cumulative difference based on the charging power; determine the power purchase information corresponding to the battery pack at the current moment based on the change rate difference adjustment coefficient, the current difference adjustment coefficient, the current capacity difference and the capacity difference change rate.

[0135] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0136] Based on the same inventive concept, the embodiment of the present application also provides a battery pack charging device for implementing the battery pack charging method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more battery pack charging device embodiments provided below can refer to the limitations of the battery pack charging method above, and will not be repeated here.

[0137] In an exemplary embodiment, as shown in FIG6 , a battery pack charging device 600 is provided, including: an acquisition module 602, a first determination module 604, a second determination module 606, a third determination module 608, and a fourth determination module 610, wherein:

[0138] An acquisition module 602 is used to acquire the current battery capacity and target battery capacity of the battery pack at the current moment;

[0139] A first determination module 604, configured to determine a current capacity difference of the battery pack at a current moment according to the current battery capacity and the target battery capacity;

[0140] A second determination module 606, configured to determine a current difference adjustment coefficient corresponding to a current moment based on the current capacity difference;

[0141] A third determination module 608, configured to determine a historical capacity difference of the battery pack corresponding to at least one historical moment;

[0142] The fourth determination module 610 is used to determine the power purchase information corresponding to the battery pack at the current moment based on the current difference adjustment coefficient, the current capacity difference and the historical capacity difference, and the power purchase information is used to trigger charging of the battery pack by purchasing electricity from the power grid.

[0143] In one embodiment, the second determination module 606 is used to obtain an initial difference adjustment coefficient of the battery pack; when the current capacity difference is greater than the preset capacity difference, the initial difference adjustment coefficient of the battery pack is increased to obtain the current difference adjustment coefficient corresponding to the battery pack at the current moment.

[0144] In one embodiment, the battery pack charging device further includes a reduction adjustment module 612, which is used to reduce the initial difference adjustment coefficient when the current capacity difference is less than or equal to the preset capacity difference, until the current difference adjustment coefficient corresponding to the battery pack at the current moment is obtained.

[0145] In one embodiment, the third determination module 608 is used to determine the current battery capacity of the battery pack corresponding to each historical moment among multiple historical moments; based on the target battery capacity and the current battery capacity corresponding to each historical moment, determine the historical capacity difference of the battery pack corresponding to each historical moment.

[0146] In one embodiment, the fourth determination module 610 is used to determine the cumulative difference in historical capacity corresponding to the battery pack at multiple historical moments based on each historical moment and the historical capacity difference corresponding to each historical moment; and determine the power purchase information corresponding to the battery pack at the current moment based on the current difference adjustment coefficient, the current capacity difference and the historical capacity cumulative difference.

[0147] In one embodiment, the fourth determination module 610 is used to determine the charging power corresponding to the battery pack at the current moment, and determine the cumulative difference adjustment coefficient corresponding to the historical capacity cumulative difference based on the charging power; based on the current difference adjustment coefficient, the current capacity difference, the historical capacity cumulative difference and the cumulative difference adjustment coefficient, determine the power purchase information corresponding to the battery pack at the current moment.

[0148] In one embodiment, the fourth determination module 610 is used to determine the capacity difference change rate corresponding to the battery pack at multiple historical moments based on each historical moment and the historical capacity difference corresponding to each historical moment; based on the current difference adjustment coefficient, the current capacity difference and the capacity difference change rate, determine the power purchase information corresponding to the battery pack at the current moment.

[0149] In one embodiment, the fourth determination module 610 is used to determine the charging power corresponding to the battery pack at the current moment, and determine the change rate difference adjustment coefficient corresponding to the historical capacity cumulative difference based on the charging power; determine the power purchase information corresponding to the battery pack at the current moment according to the change rate difference adjustment coefficient, the current difference adjustment coefficient, the current capacity difference and the capacity difference change rate.

[0150] Each module in the above-mentioned battery pack charging device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0151] In one embodiment, as shown in FIG7 , FIG7 is a structural block diagram of a battery pack charging method device in another embodiment. Specifically, it includes: an acquisition module 602, a first determination module 604, a second determination module 606, a third determination module 608, a fourth determination module 610, and a reduction adjustment module 612. Among them, the reduction adjustment module 612 is used to reduce the initial difference adjustment coefficient when the current capacity difference is less than or equal to the preset capacity difference, until the current difference adjustment coefficient corresponding to the battery pack at the current moment is obtained.

[0152] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG8. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data related to battery pack charging. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a battery pack charging method is implemented.

[0153] It can be understood that the structure shown in Figure 8 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0154] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0155] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0156] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0157] 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, stored data, displayed data, 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 relevant data must comply with relevant regulations.

[0158] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile memory 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. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0159] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, 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 application.

[0160] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A battery pack charging method, characterized in that: The method comprises: Get the current battery capacity and target battery capacity of the battery pack at the current moment; Determining a current capacity difference of the battery pack corresponding to the current moment according to the current battery capacity and the target battery capacity; Determining a current difference adjustment coefficient corresponding to the current moment based on the current capacity difference; Determine a historical capacity difference of the battery pack corresponding to at least one historical moment; Based on the current difference adjustment coefficient, the current capacity difference and the historical capacity difference, the power purchase information corresponding to the battery pack at the current moment is determined, and the power purchase information is used to trigger charging of the battery pack by purchasing power from the power grid.

2. The method according to claim 1, characterized in that The determining the current difference adjustment coefficient corresponding to the current moment based on the current capacity difference includes: Obtaining an initial difference adjustment coefficient of the battery pack; When the current capacity difference is greater than the preset capacity difference, the initial difference adjustment coefficient of the battery pack is increased to obtain the current difference adjustment coefficient of the battery pack corresponding to the current moment.

3. The method according to claim 2, characterized in that The method further comprises: When the current capacity difference is less than or equal to the preset capacity difference, the initial difference adjustment coefficient is reduced until a current difference adjustment coefficient corresponding to the battery pack at the current moment is obtained.

4. The method according to claim 1, characterized in that: The determining of the historical capacity difference of the battery pack corresponding to at least one historical moment includes: Determine a current battery capacity of the battery pack corresponding to each historical moment in a plurality of historical moments; The historical capacity difference of the battery pack corresponding to each historical moment is determined according to the target battery capacity and the current battery capacity corresponding to each historical moment.

5. The method according to claim 4, characterized in that The determining, based on the current difference adjustment coefficient, the current capacity difference and the historical capacity difference, the power purchase information corresponding to the battery pack at the current moment includes: Determine, based on each historical moment and the historical capacity difference corresponding to each historical moment, a cumulative historical capacity difference of the battery pack corresponding to the multiple historical moments; Based on the current difference adjustment coefficient, the current capacity difference and the historical capacity cumulative difference, the power purchase information corresponding to the battery pack at the current moment is determined.

6. The method according to claim 5, characterized in that The determining, based on the current difference adjustment coefficient, the current capacity difference and the historical capacity cumulative difference, the power purchase information corresponding to the battery pack at the current moment includes: Determine a charging power corresponding to the battery pack at the current moment, and determine a cumulative difference adjustment coefficient corresponding to the historical capacity cumulative difference based on the charging power; Based on the current difference adjustment coefficient, the current capacity difference, the historical capacity cumulative difference and the cumulative difference adjustment coefficient, the power purchase information corresponding to the battery pack at the current moment is determined.

7. The method according to claim 4, characterized in that The determining, based on the current difference adjustment coefficient, the current capacity difference and the historical capacity difference, the power purchase information corresponding to the battery pack at the current moment includes: Determine, based on each historical moment and the historical capacity difference corresponding to each historical moment, a capacity difference change rate of the battery pack corresponding to the multiple historical moments; Based on the current difference adjustment coefficient, the current capacity difference and the capacity difference change rate, the power purchase information corresponding to the battery pack at the current moment is determined.

8. The method according to claim 7, characterized in that The determining, based on the current difference adjustment coefficient, the current capacity difference and the capacity difference change rate, the power purchase information corresponding to the battery pack at the current moment includes: Determine the charging power corresponding to the battery pack at the current moment, and determine the change rate difference adjustment coefficient corresponding to the historical capacity cumulative difference based on the charging power; The power purchase information corresponding to the battery pack at the current moment is determined according to the change rate difference adjustment coefficient, the current difference adjustment coefficient, the current capacity difference and the capacity difference change rate.

9. A battery pack charging device, characterized in that: The device comprises: An acquisition module, used to acquire the current battery capacity and target battery capacity of the battery pack at the current moment; A first determination module, configured to determine a current capacity difference of the battery pack corresponding to the current moment according to the current battery capacity and the target battery capacity; A second determination module, configured to determine a current difference adjustment coefficient corresponding to the current moment based on the current capacity difference; A third determination module, configured to determine a historical capacity difference of the battery pack corresponding to at least one historical moment; The fourth determination module is used to determine the power purchase information corresponding to the battery pack at the current moment based on the current difference adjustment coefficient, the current capacity difference and the historical capacity difference, and the power purchase information is used to trigger charging of the battery pack by purchasing electricity from the power grid.

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

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.