Charging power control method and equipment for cabinet-entering battery of battery changing cabinet and storage medium

By obtaining the state of charge (SOC) of the battery in the battery swap cabinet in real time and adjusting the charging power distribution dynamically, the problem of low charging efficiency in the battery swap cabinet is solved, and more efficient battery charging and grid load management is achieved.

CN120454263APending Publication Date: 2025-08-08铁塔能源有限公司 +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510674347.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-23
Publication Date
2025-08-08

AI Technical Summary

Technical Problem

The existing battery swap cabinet uses the method of distributing charging power evenly when charging, resulting in low charging and swapping efficiency, unable to meet user needs, and may lead to abnormal power distribution at the upstream end.

Method used

By obtaining the state of charge (SOC) of the incoming batteries in real time, calculate the power allocation ratio of each battery, and dynamically adjust the charging power allocation based on the total distributable power and the maximum allowable charging power, giving more power to batteries with higher SOCs first and avoid overload.

Benefits of technology

The overall charging and swapping efficiency of the battery swap cabinet is improved, ensuring that more swappable batteries are provided within the same time, reducing the load pressure of the power grid, and achieving efficient utilization and precise management of energy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120454263A_ABST
    Figure CN120454263A_ABST
Patent Text Reader

Abstract

The invention relates to the field of battery replacement cabinets, and discloses a charging power control method and device for batteries entering a battery replacement cabinet and a storage medium. The method comprises the following steps: acquiring the current SOC of each in-cabinet battery in real time, and determining the in-cabinet battery of which the current SOC is less than an exchangeable battery SOC threshold as a battery to be charged; calculating the power distribution ratio of each battery to be charged, namely the ratio of # imgabs0 #; calculating pre-distribution power of each battery to be charged according to the power distribution proportion of each battery to be charged and the distributable total power of the battery changing cabinet; and comparing the pre-distributed power of any to-be-charged battery with the maximum allowable charging power, determining the smaller value as the target charging power, and distributing the part of the pre-distributed power of the to-be-charged battery, which exceeds the target charging power, to other to-be-charged batteries. The overall battery charging and replacing efficiency of the battery replacing cabinet is improved, and efficient utilization and accurate management of energy are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of charging technology, and in particular to a charging power control method, device and storage medium for batteries in a battery swap cabinet. Background Art

[0002] To meet the demand for electric vehicle battery charging and swapping, operators are accelerating the construction of charging and swapping facilities, such as battery swap cabinets, in areas with high user concentrations. During peak charging and swapping periods, if the battery swap cabinets lack sufficient slots to charge newly added empty batteries, they will struggle to meet user demand, resulting in a poor user experience. Furthermore, battery swap cabinets with a large number of slots experience volatile loads during peak charging and swapping periods, and excessive power consumption across the entire cabinet can lead to abnormal upstream power distribution.

[0003] When charging the batteries in the cabinet, the battery swap cabinet generally adopts the method of evenly distributing the charging power, that is, allocating the same charging power to each battery in the cabinet. Since the initial charge of the batteries in the cabinet may be different, this charging method makes the overall charging efficiency of the battery swap cabinet low, and it is unable to provide users with more replaceable batteries in a timely manner. Summary of the Invention

[0004] The purpose of the present invention is to provide a charging power control method, device and storage medium for batteries in a battery swap cabinet, thereby improving the overall charging and swapping efficiency of the battery swap cabinet.

[0005] To achieve the above object, the present invention provides the following technical solutions: A method for controlling the charging power of a battery in a battery swap cabinet, comprising: Obtain the current state of charge (SOC) of each battery in the cabinet in real time, and identify the batteries in the cabinet whose current SOC is less than the SOC threshold for battery replacement as batteries to be charged; Calculate the power allocation ratio of each battery to be charged, the power allocation ratio of each battery to be charged is The ratio of Calculate the pre-allocated power of each battery to be charged according to the power allocation ratio of each battery to be charged and the total allocable power of the battery swap cabinet; The pre-allocated power of any battery to be charged and the maximum allowed charging power are compared to determine the smaller value as the target charging power, and the portion of the pre-allocated power of the battery to be charged that exceeds the target charging power is allocated to other batteries to be charged.

[0006] Furthermore, the method further comprises: Control the in-cabinet batteries whose current SOC is greater than or equal to the replaceable SOC threshold to stop charging.

[0007] Furthermore, the total distributable power of the power exchange cabinet is the difference between the input power and the loss power of the entire cabinet; The whole cabinet input power is the load power set according to the power distribution capacity of the upstream power distribution terminal; The non-charging power is calculated based on the operating power of conventional components in the battery exchange cabinet, including the main control module, fan, heater, and display screen, and the non-charging power is used as the loss power.

[0008] Furthermore, determining the maximum allowable charging power of the battery to be charged includes: Obtaining a charging cut-off voltage and a charging demand current of the battery to be charged; The product of the charging cut-off voltage and the charging demand current is used as the maximum allowable charging power of the battery to be charged.

[0009] Furthermore, the comparing the pre-allocated power of any battery to be charged and the maximum allowed charging power to determine the smaller value as the target charging power includes: a battery to be charged whose pre-allocated power does not exceed the maximum allowable charging power as a first battery to be charged, and allocating the pre-allocated power to the first battery to be charged as a target charging power; The battery to be charged whose pre-allocated power exceeds the maximum allowed charging power is used as the second battery to be charged, and the maximum allowed charging power is allocated to the second battery to be charged as the target charging power. Furthermore, allocating the portion of the pre-allocated power of the battery to be charged that exceeds the target charging power to other batteries to be charged includes: subtracting the maximum allowable charging power corresponding to the second battery to be charged from the pre-allocated power of the second battery to be charged to obtain the transfer power; The transferred power is distributed to the first battery to be charged.

[0010] Furthermore, allocating the transferred power to the first battery to be charged includes: Prioritize each of the first batteries to be charged according to their current SOC; The transferred power is distributed according to the priority order of the first batteries to be charged.

[0011] Furthermore, allocating the transferred power according to the priority order of the first batteries to be charged includes: Determining each of the first batteries to be charged as a target transfer battery in descending order of priority; If the sum of the pre-allocated power of the target transfer battery with a high priority and the transfer power does not exceed the corresponding maximum allowable charging power, the transfer power is allocated to the target transfer battery with a high priority; If the sum of the pre-allocated power of the target transfer battery with a high priority and the transfer power exceeds the corresponding maximum allowable charging power, the excess power will be allocated to the target transfer battery with a low priority.

[0012] Based on the same inventive concept, the present invention also provides an electronic device, including: a memory and a processor; the processor is used to read and execute the computer program stored in the memory to implement the aforementioned charging power control method for the battery in the battery swap cabinet.

[0013] Based on the same inventive concept, the present invention also provides a computer storage medium, in which computer executable instructions are stored. When the computer executable instructions are executed, the aforementioned charging power control method for the battery in the battery swap cabinet is implemented.

[0014] Technical effects and advantages of the present invention: (1) By automatically and meticulously controlling the charging power of each battery to be charged in the battery swap cabinet, the overall charging and swapping efficiency of the battery swap cabinet can be improved, and more swappable batteries can be provided to users in the same time; (2) As a controllable load in the energy system, the battery swap cabinet can autonomously adjust the input power of the entire cabinet according to the power distribution capacity of the upstream distribution end, avoiding the occurrence of power overload at the upstream distribution end due to excessive changes in input power, supporting the demand side of the power grid and reducing the load pressure on the power grid; (3) Realize intelligent energy management and control of grid loads to ensure efficient utilization and precise management of energy.

[0015] Other features and advantages of the present invention will be described in the following description, and in part will become apparent from the description, or will be understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0017] Figure 1 This is a flow chart of a method for controlling the charging power of batteries in a battery swap cabinet according to an embodiment of the present invention; Figure 2 This is a schematic diagram of the charging power control principle of the battery in the battery swap cabinet in an embodiment of the present invention. DETAILED DESCRIPTION

[0018] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0019] The embodiment of the present invention provides a method for controlling the charging power of batteries in a battery swap cabinet. Figure 1 As shown, the method includes: S1. Obtain the current state of charge (SOC) of each battery in the cabinet in real time, and identify the batteries in the cabinet whose current SOC is less than the SOC threshold for battery replacement as batteries to be charged; In an embodiment of the present invention, a battery swap cabinet generally includes a main control board and several battery management units, each of which is used to manage a charging bay. Specifically, the battery management unit can detect the battery presence status of each charging bay, which indicates whether a battery is inserted into the charging bay. When a battery is inserted into the charging bay, the battery management unit can obtain the current state of charge (SOC) of the battery in the cabinet, that is, the available state (percentage) of the remaining charge in the battery, and upload the current SOC of the battery in the cabinet to the main control board.

[0020] After receiving the current SOC of the incoming battery from the battery management unit, the main control board determines whether the battery's current SOC is less than the swappable SOC threshold. The swappable SOC threshold is the minimum SOC allowed for a battery to be loaned out. If the battery's current SOC does not reach the swappable SOC threshold, it indicates that the battery's charge level is below the minimum allowable charge level and is a battery waiting to be charged. The swappable SOC threshold can be set based on the actual charging and swapping needs of the scenario, generally within the range of 80-100%.

[0021] S2. Calculate the power distribution ratio of each battery to be charged; The power distribution ratio of each battery to be charged is The ratio of S3. Calculate the pre-allocated power of each battery to be charged according to the power allocation ratio of each battery to be charged and the total allocable power of the battery swap cabinet; In the above steps, the power allocation ratio of each battery to be charged is calculated based on the battery swap SOC threshold and the current SOC of the battery to be charged. The product of the total allocable power of the battery swap cabinet and the power allocation ratio is used as the pre-allocated power of the charging battery. The larger the current SOC of the battery to be charged, the higher its power allocation ratio, and the larger the calculated pre-allocated power of the battery to be charged. In this embodiment, a larger charging power is allocated to the battery to be charged whose current SOC is closer to the battery swap SOC threshold.

[0022] The allocable total power of the battery swap cabinet is the total power that the entire cabinet can allocate to the batteries in the cabinet for charging. The operation and maintenance personnel of the battery swap cabinet can input the input power of the entire cabinet and the battery swap SOC threshold in the human-computer interaction interface of the battery swap cabinet, which will be received and set by the main control board. It should be noted that the design total power of the battery swap cabinet has been determined during the design phase of the battery swap cabinet, but considering that the power equipment of some cabinet locations or cabinet merchants cannot support the design total power, the cabinet merchants or operation and maintenance personnel are allowed to set the load power supported by the current power equipment through the human-computer interaction interface, that is, the input power of the entire cabinet. Among them, the input power of the entire cabinet will not be greater than the design total power.

[0023] S4. Compare the pre-allocated power of any battery to be charged with the maximum allowed charging power, determine the smaller value as the target charging power, and allocate the portion of the pre-allocated power of the battery to be charged that exceeds the target charging power to other batteries to be charged.

[0024] In this step, for each battery to be charged, its pre-allocated power is compared with its maximum allowable charging power. The smaller of the two is used as the target charging power. This target charging power will not exceed the maximum allowable charging power of the battery to be charged to avoid damage to the battery. If the pre-allocated power of the battery to be charged exceeds the target charging power, the excess power is allocated to other batteries to be charged.

[0025] In an embodiment of the present invention, the charging power of each battery to be charged in the battery swap cabinet is automatically and finely controlled to improve the overall charging and swapping efficiency of the battery swap cabinet, and more swappable batteries can be provided to users in the same time; the battery swap cabinet, as an adjustable load in the energy system, can autonomously adjust the input power of the entire cabinet according to the distribution capacity of the upstream distribution end, to avoid the occurrence of distribution overload at the upstream distribution end due to excessive changes in input power, support the response of the power grid demand side, and reduce the load pressure on the power grid; realize the intelligent energy management and control of the power grid load, and ensure the efficient use and precise management of energy.

[0026] like Figure 2As shown, the AC power provided by the upstream power distribution terminal is converted to DC current or DC voltage by the rectifier power module and then connected to the 48V DC busbar inside the battery swap cabinet. This DC busbar uses a bidirectional DC / DC charging module to charge each battery in the cabinet. Each battery in the cabinet is electrically connected to the DC busbar through its corresponding bidirectional DC / DC charging module.

[0027] According to a preferred embodiment, the battery in the cabinet whose current SOC is greater than or equal to the replaceable SOC threshold is a replaceable battery, which can be taken out and the battery in the cabinet whose current SOC is greater than or equal to the replaceable SOC threshold is controlled to stop charging.

[0028] According to an embodiment of the present invention, the main control board of the battery swap cabinet obtains the current SOC of the battery in the cabinet in real time, and roughly calculates the time required for each battery to be charged to charge to the battery swap SOC threshold according to the pre-set battery swap SOC threshold and the total allocable power of the battery swap cabinet, and divides the batteries in the cabinet into three states: the current SOC has reached the battery swap SOC threshold, the current SOC has not reached the battery swap SOC threshold but the battery level is high, and the current SOC has not reached the battery swap SOC threshold but the battery level is low. The control logic of the main control board in the battery swap cabinet is: to control the bidirectional DC / DC charging module 1 to actively stop charging the battery swap whose current SOC has reached the battery swap SOC threshold, to control the bidirectional DC / DC charging module 2 to provide a larger charging power to the battery to be charged whose current SOC has not reached the battery swap SOC threshold but the battery level is high, and to control the bidirectional DC / DC charging module 3 to provide a lower charging power to the battery to be charged whose current SOC has not reached the battery swap SOC threshold but the battery level is low.

[0029] For example, set the battery swap SOC threshold to 80%, and there are four groups of batteries in the battery swap cabinet, with initial SOCs of 90%, 60%, 40%, and 20%, respectively. The total power that can be allocated to the battery swap cabinet is 1000W. If the charging power is evenly distributed, the charging power of each group of batteries in the cabinet is 250W. According to the solution provided in this embodiment, the first group of batteries in the cabinet (current SOC is 90%) stops charging, and the remaining three groups of batteries in the cabinet are all batteries to be charged. The power allocation ratio is 1 / 20%: 1 / 40%: 1 / 60%, that is, 15:7.5:5. Therefore, the pre-allocated power of the battery with a current SOC of 60% is 545W, the pre-allocated power of the battery with a current SOC of 40% is 272W, and the pre-allocated power of the battery with a current SOC of 20% is 181W. For batteries to be charged whose current SOC does not reach the battery swap SOC threshold, the pre-allocated power of the battery with a higher charge is higher than the pre-allocated power of the battery with a lower charge.

[0030] In this embodiment of the present invention, the total allocable power of the power-swapping cabinet is the difference between the cabinet's input power and its power loss, where the cabinet's input power is the load power set according to the power distribution capacity of the upstream power distribution terminal. At the same time, the non-charging power is calculated based on the operating power of conventional components within the cabinet, including the main control module, fans, heaters, and display screens, and is used as the power loss.

[0031] It should be noted that at sites with high battery swapping frequency and poor load capacity of the upstream distribution end, the battery swapping cabinet is usually unable to charge all batteries in the cabinet at full power. Under this premise, in order to adjust the load distribution, the main control board of the battery swapping cabinet can set the maximum input power of the entire cabinet by remotely receiving instructions, and provide power to conventional devices through the cabinet-controlled power supply, track and collect the working status of the devices in the entire cabinet in real time, remove power losses unrelated to charging from the input power of the entire cabinet, and obtain the total distributable power of the battery swapping cabinet.

[0032] According to a preferred embodiment, determining the maximum allowable charging power of the battery to be charged includes: obtaining a charging cutoff voltage and a charging demand current of the battery to be charged; and taking the product of the charging cutoff voltage and the charging demand current as the maximum allowable charging power of the battery to be charged.

[0033] In this embodiment of the present invention, the battery management unit (BMU) can obtain the charge cutoff voltage and required charging current of each battery to be charged and upload these values to the main control board. The charge cutoff voltage is the maximum voltage that triggers charging to be cut off, and the required charging current is the current required for charging the battery to be charged. After receiving the charge cutoff voltage and required charging current values uploaded by the BMU, the main control board calculates the product of the charge cutoff voltage and the required charging current and uses this product as the maximum allowable charging power for the battery to be charged.

[0034] In an embodiment of the present invention, comparing the pre-allocated power and the maximum allowable charging power of any battery to be charged and determining the smaller value as the target charging power includes: treating a battery to be charged whose pre-allocated power does not exceed the maximum allowable charging power as a first battery to be charged, and allocating the pre-allocated power to the first battery to be charged as the target charging power; treating a battery to be charged whose pre-allocated power exceeds the maximum allowable charging power as a second battery to be charged, and allocating the maximum allowable charging power to the second battery to be charged as the target charging power. For the second battery to be charged whose pre-allocated power exceeds the maximum allowable charging power, charging is performed using the maximum allowable charging power as the target charging power, and the portion of the pre-allocated power that exceeds the target charging power is allocated to other batteries to be charged, specifically including: subtracting the corresponding maximum allowable charging power from the pre-allocated power of the second battery to be charged to obtain the transferred power; and allocating the transferred power to the first battery to be charged.

[0035] According to a preferred embodiment, allocating the transfer power to the first batteries to be charged includes: prioritizing each of the first batteries to be charged according to the size of the current SOC, where the larger the current SOC, the higher the priority; and allocating the transfer power according to the priority order of the first batteries to be charged.

[0036] Specifically, the transfer power is allocated according to the priority order of the first batteries to be charged, including: determining each of the first batteries to be charged as a target transfer battery in order from high to low priority; if the sum of the pre-allocated power and the transfer power of a high-priority target transfer battery does not exceed its corresponding maximum allowable charging power, the transfer power is allocated to the high-priority target transfer battery; if the sum of the pre-allocated power and the transfer power of a high-priority target transfer battery exceeds its corresponding maximum allowable charging power, the excess part is allocated to a low-priority target transfer battery.

[0037] For example, the pre-allocated powers of the three groups of batteries to be charged in the battery swap cabinet are 600W, 420W, and 200W, respectively. Assuming the maximum allowable charging power is 500W for each group, according to the solution of this embodiment, the target charging power of the first group of batteries to be charged is 500W, and the transfer power is 100W. The second group of batteries to be charged is the first-priority target transfer battery, and after the transfer, its charging power is 500W. The third group of batteries to be charged is the second-priority target transfer battery, and after the transfer, its charging power is 220W. Both the first and second groups of batteries to be charged are charged at full load, which improves the overall charging efficiency of the battery swap cabinet.

[0038] The embodiment of the present invention adopts a strategy of dynamically allocating the total allocable power of the battery swap cabinet to increase the charging power of the battery to be charged whose current SOC has not reached the SOC threshold for battery swap but has a high power, thereby improving the overall charging and swapping efficiency of the battery swap cabinet and providing users with more swappable batteries in the same time. At the same time, as an adjustable load in the energy system, the battery swap cabinet can autonomously adjust the input power of the entire cabinet according to the distribution capacity of the upstream distribution end, avoiding the occurrence of distribution overload at the upstream distribution end due to excessive changes in input power, supporting the response on the demand side of the power grid, reducing the load pressure on the power grid, realizing intelligent energy management and control of the power grid load, and ensuring efficient utilization and precise management of energy.

[0039] Based on the same inventive concept, an embodiment of the present invention also provides an electronic device, including: a memory and a processor, wherein the processor is used to read and execute the computer program stored in the memory to implement the aforementioned charging power control method for the battery in the battery swap cabinet.

[0040] Based on the same inventive concept, an embodiment of the present invention also provides a computer storage medium, in which computer executable instructions are stored. When the computer executable instructions are executed, the aforementioned charging power control method for the battery in the battery swap cabinet is implemented.

[0041] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0042] The modules described as separate components may or may not be physically separate, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. In addition, the functional modules in the various embodiments of the present invention may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The integrated modules may be implemented in the form of hardware or software functional modules.

[0043] If the integrated module is implemented as a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the portion that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0044] It should be noted that for the aforementioned method embodiments, for ease of description, they are all expressed as a series of action combinations. However, those skilled in the art should be aware that the present invention is not limited by the order of the actions described, because according to the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0045] In the above embodiments, the description of each embodiment has its own emphasis. For parts not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the above embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the above embodiments or to replace some of the technical features therein with equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present invention shall be included in the scope of protection of the present invention.

Claims

1. A method for controlling the charging power of batteries in a battery swap cabinet, characterized in that: The method comprises: Obtain the current state of charge (SOC) of each battery in the cabinet in real time, and identify the batteries in the cabinet whose current SOC is less than the SOC threshold for battery replacement as batteries to be charged; Calculate the power allocation ratio of each battery to be charged, the power allocation ratio of each battery to be charged is The ratio of Calculate the pre-allocated power of each battery to be charged according to the power allocation ratio of each battery to be charged and the total allocable power of the battery swap cabinet; The pre-allocated power of any battery to be charged and the maximum allowed charging power are compared to determine the smaller value as the target charging power, and the portion of the pre-allocated power of the battery to be charged that exceeds the target charging power is allocated to other batteries to be charged.

2. The method according to claim 1, characterized in that The method further comprises: Control the in-cabinet batteries whose current SOC is greater than or equal to the replaceable SOC threshold to stop charging.

3. The method according to claim 1, characterized in that The total distributable power of the power exchange cabinet is the difference between the input power and the loss power of the entire cabinet; The whole cabinet input power is the load power set according to the power distribution capacity of the upstream power distribution terminal; The non-charging power is calculated based on the operating power of conventional components in the battery exchange cabinet, including the main control module, fan, heater, and display screen, and the non-charging power is used as the loss power.

4. The method according to claim 1, wherein Determine the maximum allowable charging power of the battery to be charged, including: Obtaining a charging cut-off voltage and a charging demand current of the battery to be charged; The product of the charging cut-off voltage and the charging demand current is used as the maximum allowable charging power of the battery to be charged.

5. The method according to claim 1 or 4, characterized in that The comparing the pre-allocated power of any battery to be charged with the maximum allowed charging power and determining the smaller value as the target charging power includes: a battery to be charged whose pre-allocated power does not exceed the maximum allowable charging power as a first battery to be charged, and allocating the pre-allocated power to the first battery to be charged as a target charging power; The battery to be charged whose pre-allocated power exceeds the maximum allowed charging power is used as the second battery to be charged, and the maximum allowed charging power is allocated to the second battery to be charged as the target charging power.

6. The method according to claim 5, characterized in that The step of allocating the portion of the pre-allocated power of the battery to be charged that exceeds the target charging power to other batteries to be charged includes: subtracting the maximum allowable charging power corresponding to the second battery to be charged from the pre-allocated power of the second battery to be charged to obtain the transfer power; The transferred power is distributed to the first battery to be charged.

7. The method according to claim 6, characterized in that The allocating the transferred power to the first battery to be charged comprises: Prioritize each of the first batteries to be charged according to their current SOC; The transferred power is distributed according to the priority order of the first batteries to be charged.

8. The method according to claim 7, characterized in that The allocating the transferred power according to the priority order of the first batteries to be charged includes: Determining each of the first batteries to be charged as a target transfer battery in descending order of priority; If the sum of the pre-allocated power of the target transfer battery with a high priority and the transfer power does not exceed the corresponding maximum allowable charging power, the transfer power is allocated to the target transfer battery with a high priority; If the sum of the pre-allocated power of the target transfer battery with a high priority and the transfer power exceeds the corresponding maximum allowable charging power, the excess power will be allocated to the target transfer battery with a low priority.

9. An electronic device, characterized in that: include: Memory, processor; The processor is configured to read and execute the computer program stored in the memory to implement the method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which, when executed, implement the method according to any one of claims 1 to 8.