Charging station power distribution method and system, electronic equipment and storage medium

By obtaining the real-time power sum of the charging and swapping areas, analyzing the number of branches and operating vehicle data, using network models to predict the arrival time, determining the importance and adjusting the power distribution strategy, the reasonable allocation problem at the limit of the total power of the charging and swapping station is solved, and efficiently meeting the charging and swapping needs is achieved.

CN120327331AActive Publication Date: 2025-07-18SHANXI KEDA NEW ENERGY TECH CO LTD

Patent Information

Application Number
CN202510829225.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-20
Publication Date
2025-07-18
Estimated Expiration
2045-06-20

AI Technical Summary

Technical Problem

How to reasonably and accurately distribute the charging area and the battery swap area when the charging and swap station reaches the total power limit to meet the needs of charging and swap at the same time.

Method used

By obtaining the real-time power sum of the charging area and the battery swap area, analyzing the number of branches, charging time and power change curves, combining the location and power data of the operating vehicle, predicting the station time using a network model, determining the importance of the charging and battery swap area, and adjusting the power distribution strategy based on the importance.

Benefits of technology

It realizes the reasonable and precise distribution of the power in the charging and swapping areas when the charging and swapping station is about to reach the total power limit, ensuring efficient meeting of charging and swapping needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120327331A_ABST
    Figure CN120327331A_ABST
Patent Text Reader

Abstract

The invention relates to a charging and battery swapping station power distribution method and system, electronic equipment and a storage medium, and the method comprises the steps: determining the power sum of the real-time power of a charging region and the real-time power of a battery swapping region, if the power sum is in a preset power interval, obtaining the number of first branches in a charging state in the charging region, and other related data, determining a first importance degree of the charging area based on the data, determining the arrival charging time of each operating vehicle based on the related data of the operating vehicles, and determining a second importance degree of the charging area based on the power change curve of the charging area, the electric quantity of the battery and the arrival charging time, and determining a power distribution strategy of the charging area and the power conversion area based on the first importance degree and the second importance degree. According to the invention, reasonable, accurate and intelligent distribution of the power of the charging area and the power conversion area is realized when the total power which can be borne by the charging and power conversion station is about to be reached.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of distribution network technology, and in particular, to a power distribution method, system, electronic device and storage medium for a charging and swapping station. Background Art

[0002] With the development of new energy vehicles, the related supporting requirements for new energy vehicles are also getting higher and higher. Charging and swapping are the two main energy replenishment methods for current new energy vehicles. In order to meet the two requirements of charging and swapping simultaneously, a charging and swapping station integrating the two functions of charging and swapping has emerged as the times require.

[0003] In order to improve the operation efficiency, some new energy vehicles used by operating companies such as bus companies and heavy truck companies have both energy replenishment methods of charging and swapping. Therefore, these operating companies usually build charging and swapping stations to meet the electricity demand. However, since the total power that a charging and swapping station can withstand is certain and the demands for charging and swapping change dynamically, how to reasonably and accurately allocate the power between the charging area and the swapping area when the total power that can be withstood is about to be reached becomes a problem. Summary of the Invention

[0004] In order to realize the reasonable and accurate intelligent allocation of the power between the charging area and the swapping area when the total power that a charging and swapping station can withstand is about to be reached, the present application provides a power distribution method, system, electronic device and storage medium for a charging and swapping station.

[0005] In a first aspect, the present application provides a power distribution method for a charging and swapping station, adopting the following technical solutions: A power distribution method for a charging and swapping station includes: Obtain the first real-time power of the charging area and the second real-time power of the swapping area, and determine the total power of the first real-time power and the second real-time power; If the total power is within a preset power range, obtain the number of the first branches in the charging area that are in the charging state, the charging duration of each first branch for the current charging, and the first power change curve; Determine the first importance degree of the charging area based on the number of the first branches, the charging duration, and the first power change curve; Obtain the second power change curve on each second branch in the swapping area that is in the charging state, the battery power on each second branch, the position information of each operating vehicle, the historical schedule of charging or swapping, the driving mileage after the last charging or swapping, and the power change curve; Determine the arrival charging or swapping time of each operating vehicle based on the position information, the historical schedule of charging or swapping, the driving mileage after the last charging or swapping, and the power change curve; Determine the second importance level of the battery swapping area based on the second power change curve, the battery charge level, and the arrival charging and swapping time; Determine the power distribution strategy for the charging area and the battery swapping area based on the first importance level and the second importance level, and adjust the power upper limits of the charging area and the battery swapping area according to the power distribution strategy.

[0006] By adopting the above technical solution, obtaining the first real-time power of the charging area and the second real-time power of the battery swapping area facilitates calculating the total power of the current entire charging and swapping station. If the total power is within the preset power range, it indicates that the overall power of the charging and swapping station is about to reach the maximum power that the charging and swapping station can bear. At this time, it is necessary to reasonably distribute the power of the charging area and the battery swapping area. Therefore, obtain the number of the first branches in the charging area that are in the charging state, the charging duration of each first branch in the current charging, and the first power change curve. The more the first branches and the shorter the charging duration, the busier the charging area and most branches are in the initial stage of charging, and the battery energy needs to be replenished with electric energy, which correspondingly indicates a higher importance level of the charging area. Similarly, the first power change curve of each first branch records the power change situation of each first branch and can also indicate the importance level of the charging area to a certain extent. Therefore, comprehensively determine the more accurate first importance level of the charging area according to the number of the first branches, the charging duration, and the first power change curve. Obtain the relevant data of each second branch in the battery swapping area that are in the charging state and the relevant data of each operating vehicle. The arrival charging and swapping time point of each operating vehicle can be predicted based on the relevant data of each operating vehicle. The closer the arrival charging and swapping time is, the more the battery swapping area needs to charge the replaced battery, indicating a higher importance level of the battery swapping area. The second power change curve on the second branch and the battery charge level also characterize the importance level of the battery swapping area. Therefore, the more accurate second importance level of the battery swapping area can be comprehensively determined according to the second power change curve, the battery charge level, and the arrival charging and swapping time point. Finally, a more reasonable power distribution strategy for the charging area and the battery swapping area can be determined based on the first importance level and the second importance level, and the power upper limits of the charging area and the battery swapping area can be adjusted according to the power distribution strategy, thus finally realizing the reasonable and precise intelligent distribution of the power of the charging area and the battery swapping area when the total power that the charging and swapping station can bear is about to be reached.

[0007] In another possible implementation manner, determining the first importance level of the charging area based on the number of the first branches, the charging duration, and the first power change curve includes: Determine the first ratio of the number of the first branches to the total number of all branches in the charging area; Determine the first power value at the current moment from the first power change curve, and determine the power average value of all the first branches based on the first power value at the current moment and the number of the first branches; Obtain the historical charging data of each first branch, where the historical charging data includes the charging duration of each charge in history; Calculate the historical average charging duration of all first branches based on the charging duration of each charge in history; Calculate the current average charging duration based on the charging duration of each first branch, and determine the second ratio of the charging duration to the historical average charging duration; Intercept the power values of a preset time period including the current moment from the first power change curve of each first branch, and determine the power value variance of each first branch based on the power values of the preset time period; Determine the first eigenvalue representing the importance degree of each first branch based on the power value variance, the first power value at the current moment, and the charging duration; Determine the first importance degree of the charging area based on the first ratio, the power average value, the second ratio, and the first eigenvalue.

[0008] In another possible implementation manner, determining the first eigenvalue representing the importance degree of each first branch based on the power value variance, the first power value at the current moment, and the charging duration includes: Calculate the first product of the power value variance and the first power value; Calculate the third ratio of the charging duration to the historical average charging duration; Divide the first product by the third ratio to obtain the first eigenvalue.

[0009] In another possible implementation manner, determining the second importance degree of the battery swapping area based on the second power change curve, the battery power, and the arrival charging and swapping time includes: Determine the second power value at the current moment from the second power change curve; Determine the second eigenvalue representing the importance degree of each second branch based on the second power value and the battery power; Determine the concentrated arrival time period based on the arrival charging and swapping time of each operating vehicle; Determine the time difference between the start moment of the concentrated arrival time period and the current moment; Determine the target second branches with the battery power reaching the preset power threshold from all second branches, and calculate the number ratio of the target second branches to the operating vehicles in the concentrated arrival time period; Determine the second importance degree of the battery swapping area based on the number ratio, the time difference, and the second eigenvalue representing the importance degree of each second branch.

[0010] In another possible implementation manner, the power distribution strategy includes the power upper limit of the charging area and the power upper limit of the battery swapping area. Determining the power distribution strategy of the charging area and the battery swapping area based on the first importance degree and the second importance degree includes: Determine the second product of the first importance and the first real-time power, and determine the third product of the second importance and the second real-time power; Calculate the product sum of the second product and the third product, and determine the fourth ratio of the second product to the product sum and the fifth ratio of the third product to the product sum; Multiply the preset power threshold by the fourth ratio to obtain the power upper limit of the charging area, and multiply the preset power threshold by the fifth ratio to obtain the power upper limit of the battery swapping area. The preset power threshold is the total power that the charging and battery swapping station can withstand.

[0011] In another possible implementation manner, determine the arrival charging and battery swapping time of each operating vehicle based on the location information, the historical schedule of charging or battery swapping, the driving mileage after the last charging or battery swapping, and the power change curve, including: Input the location information, the historical schedule of charging or battery swapping, the driving mileage after the last charging or battery swapping, and the power change curve into the trained network model for arrival time prediction to obtain the arrival charging and battery swapping time of each operating vehicle.

[0012] In another possible implementation manner, determine the concentrated arrival time period based on the arrival charging and battery swapping time of each operating vehicle, including: Mark the arrival charging and battery swapping time of each operating vehicle on the time axis to obtain the marked time axis; Translate the marked time axis by a preset time span according to a preset step size to obtain the initial position and the corresponding time period after each translation; Determine the time period in which the number of arrival charging and battery swapping times reaches the preset number threshold and is closest to the current moment as the concentrated arrival time period.

[0013] In a second aspect, the present application provides a power distribution system for a charging and battery swapping station, adopting the following technical solution: A power distribution system for a charging and battery swapping station, including: A first acquisition module, configured to acquire the first real-time power of the charging area and the second real-time power of the battery swapping area, and determine the power sum of the first real-time power and the second real-time power; A second acquisition module, configured to acquire the number of first branches in the charging area in the charging state, the charging duration of each first branch in the current charging, and the first power change curve when the power sum is within a preset power range; A first determination module, configured to determine the first importance of the charging area based on the number of first branches, the charging duration, and the first power change curve; A third acquisition module, configured to acquire a second power change curve on each second branch in a charged state in a battery swapping area, the power of the battery on each second branch, the position information of each operating vehicle, the historical schedule of charging or battery swapping, the driving mileage after the last charging or battery swapping, and the power change curve; A second determination module, configured to determine the arrival charging or battery swapping time of each operating vehicle based on the position information, the historical schedule of charging or battery swapping, the driving mileage after the last charging or battery swapping, and the power change curve; A third determination module, configured to determine the second importance level of the battery swapping area based on the second power change curve, the power of the battery, and the arrival charging or battery swapping time; A fourth determination module, configured to determine a power distribution strategy for the charging area and the battery swapping area based on the first importance level and the second importance level, and adjust the power upper limits of the charging area and the battery swapping area according to the power distribution strategy.

[0014] By adopting the above technical solution, the first acquisition module acquires the first real-time power of the charging area and the second real-time power of the battery swapping area, which is convenient for calculating the total power of the current entire charging and battery swapping station. If the total power is within the preset power range, it indicates that the overall power of the charging and battery swapping station is about to reach the maximum power that the charging and battery swapping station can withstand. At this time, it is necessary to reasonably allocate the power of the charging area and the battery swapping area. Therefore, the second acquisition module acquires the number of the first branches in the charging area that are in the charging state, the charging duration of each first branch in the current charging, and the first power change curve. The more the first branches and the shorter the charging duration, it indicates that the charging area is busier and most branches are in the initial stage of charging, and electric energy is needed to supplement the battery energy, which correspondingly indicates a higher importance of the charging area. Similarly, the first power change curve of each first branch records the power change situation of each first branch, and can also indicate the importance degree of the charging area to a certain extent. Therefore, the first determination module comprehensively determines the first importance degree of the charging area more accurately according to the number of the first branches, the charging duration, and the first power change curve. The third acquisition module acquires the relevant data of each second branch in the battery swapping area that is in the charging state and the relevant data of each operating vehicle. The second determination module can predict the arrival time of each operating vehicle for charging and battery swapping according to the relevant data of each operating vehicle. The closer the arrival time for charging and battery swapping, the more the battery swapping area needs to charge the replaced batteries, indicating a higher importance degree of the battery swapping area. The second power change curve on the second branch and the battery power also characterize the importance degree of the battery swapping area. Therefore, the third determination module can comprehensively determine the second importance degree of the battery swapping area more accurately according to the second power change curve, the battery power, and the arrival time for charging and battery swapping. Finally, the fourth determination module can determine a more reasonable power allocation strategy for the charging area and the battery swapping area according to the first importance degree and the second importance degree, and adjust the power upper limits of the charging area and the battery swapping area according to the power allocation strategy, thus finally realizing the reasonable and accurate intelligent allocation of the power of the charging area and the battery swapping area when the total power that the charging and battery swapping station can withstand is about to be reached.

[0015] In another possible implementation manner, when the first determination module determines the first importance degree of the charging area based on the number of the first branches, the charging duration, and the first power change curve, it specifically is used for: Determine the first ratio of the number of the first branches to the total number of all branches in the charging area; Determine the first power value at the current moment from the first power change curve, and determine the power average value of all the first branches based on the first power value at the current moment and the number of the first branches; Acquire the historical charging data of each first branch, and the historical charging data includes the charging duration of each charging in the history; Calculate the historical average charging duration of all the first branches based on the charging duration of each charging in the history; Calculate the current average charging duration based on the charging duration of each first branch, and determine the second ratio of the charging duration to the historical average charging duration; Intercept the power values of a preset time period including the current moment from the first power change curve of each first branch, and determine the power value variance of each first branch based on the power values of the preset time period; Determine the first eigenvalue characterizing the importance of each first branch based on the power value variance, the first power value at the current moment, and the charging duration; Determine the first importance of the charging area based on the first ratio, the power average value, the second ratio, and the first eigenvalue.

[0016] In another possible implementation manner, when the first determination module determines the first eigenvalue characterizing the importance of each first branch based on the power value variance, the first power value at the current moment, and the charging duration, it specifically is used for: Calculate the first product of the power value variance and the first power value; Calculate the third ratio of the charging duration to the historical average charging duration; Divide the first product by the third ratio to obtain the first eigenvalue.

[0017] In another possible implementation manner, when the third determination module determines the second importance of the swapping area based on the second power change curve, the battery power, and the arrival charging and swapping time, it specifically is used for: Determine the second power value at the current moment from the second power change curve; Determine the second eigenvalue characterizing the importance of each second branch based on the second power value and the battery power; Determine the concentrated arrival time period based on the arrival charging and swapping time of each operating vehicle; Determine the time difference between the start moment of the concentrated arrival time period and the current moment; Determine the target second branch with the battery power reaching the preset power threshold from all the second branches, and calculate the number ratio of the target second branch to the operating vehicles in the concentrated arrival time period; Determine the second importance of the swapping area based on the number ratio, the time difference, and the second eigenvalue of the importance of each second branch.

[0018] In another possible implementation manner, the power distribution strategy includes the power upper limit of the charging area and the power upper limit of the swapping area. When the fourth determination module determines the power distribution strategy of the charging area and the swapping area based on the first importance and the second importance, it specifically is used for: Determine the second product of the first importance and the first real-time power, and determine the third product of the second importance and the second real-time power; Calculate the product sum of the second product and the third product, and determine the fourth ratio of the second product to the product sum and the fifth ratio of the third product to the product sum; Multiply the preset power threshold by the fourth ratio to obtain the power upper limit of the charging area, and multiply the preset power threshold by the fifth ratio to obtain the power upper limit of the battery swapping area. The preset power threshold is the total power that the charging and battery swapping station can withstand.

[0019] In another possible implementation, when the second determination module determines the arrival charging and battery swapping time of each operating vehicle based on the location information, the historical schedule of charging or battery swapping, the driving mileage after the last charging or battery swapping, and the power change curve, it is specifically used for: Input the location information, the historical schedule of charging or battery swapping, the driving mileage after the last charging or battery swapping, and the power change curve into the trained network model for arrival time prediction to obtain the arrival charging and battery swapping time of each operating vehicle.

[0020] In another possible implementation, when the third determination module determines the concentrated arrival time period based on the arrival charging and battery swapping time of each operating vehicle, it is specifically used for: Mark the arrival charging and battery swapping time of each operating vehicle on the time axis to obtain the marked time axis; Translate the marked time axis by a preset time span according to a preset step size to obtain the initial position and the corresponding time period after each translation; Determine the time period with the number of arrival charging and battery swapping times reaching the preset number threshold and the closest to the current time as the concentrated arrival time period.

[0021] In a third aspect, the present application provides an electronic device, adopting the following technical solution: An electronic device, the electronic device includes: At least one processor; A memory; At least one application program, where at least one application program is stored in the memory and is configured to be executed by at least one processor. At least one configuration is used for: executing a charging and battery swapping station power distribution method shown in any possible implementation manner of the first aspect.

[0022] In a fourth aspect, the present application provides a computer-readable storage medium, adopting the following technical solution: A computer-readable storage medium, when a computer program is executed in a computer, causes the computer to execute a charging and battery swapping station power distribution method in any item of the first aspect.

[0023] In summary, the present application includes at least one of the following beneficial technical effects: Obtaining the first real-time power of the charging area and the second real-time power of the battery swapping area facilitates calculating the total power of the current entire charging and battery swapping station. If the total power is within the preset power range, it indicates that the overall power of the charging and battery swapping station is about to reach the maximum power that the charging and battery swapping station can bear. At this time, it is necessary to reasonably allocate the power of the charging area and the battery swapping area. Therefore, obtain the number of the first branches in the charging area that are in the charging state, the charging duration of each first branch for the current charging, and the first power change curve. The more first branches and the shorter the charging duration indicate that the charging area is busier and most branches are in the initial stage of charging, and electric energy is needed to supplement the battery energy, correspondingly indicating a higher importance of the charging area. Similarly, the first power change curve of each first branch records the power change situation of each first branch and can also indicate the importance degree of the charging area to a certain extent. Therefore, comprehensively determine the more accurate first importance degree of the charging area according to the number of the first branches, the charging duration, and the first power change curve. Obtain the relevant data of each second branch in the battery swapping area that is in the charging state and the relevant data of each operating vehicle. It is possible to predict the arrival charging and battery swapping time points of each operating vehicle according to the relevant data of each operating vehicle. The closer the arrival charging and battery swapping time is, the more the battery swapping area needs to charge the replaced batteries, indicating a higher importance degree of the battery swapping area. The second power change curve on the second branch and the battery power also characterize the importance degree of the battery swapping area. Therefore, comprehensively determine the more accurate second importance degree of the battery swapping area according to the second power change curve, the battery power, and the arrival charging and battery swapping time points. Finally, according to the first importance degree and the second importance degree, a more reasonable power allocation strategy for the charging area and the battery swapping area can be determined, and the power upper limits of the charging area and the battery swapping area can be regulated according to the power allocation strategy, and finally, when the total power that the charging and battery swapping station can bear is about to be reached, the power of the charging area and the battery swapping area is reasonably and accurately intelligently allocated. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 is a schematic flowchart of a method for power allocation of a charging and battery swapping station according to an embodiment of the present application.

[0025] Figure 2 is a schematic structural diagram of a power allocation system of a charging and battery swapping station according to an embodiment of the present application.

[0026] Figure 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0027] The present application will be further described in detail below with reference to the accompanying drawings.

[0028] After reading this specification, those skilled in the art may make modifications to this embodiment that do not contribute creatively, but as long as they are within the scope of the claims of this application, they are protected by the patent law.

[0029] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the following will clearly and completely describe the technical solutions in the embodiments of this application with reference to the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are some, but not all, of the embodiments of this application. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without making creative efforts fall within the scope of protection of this application.

[0030] In addition, the term "and / or" in this document is merely a description of the association relationship between associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this document generally represents an "or" relationship between the associated objects before and after, unless otherwise specified.

[0031] The following further describes the embodiments of this application in detail with reference to the accompanying drawings of the specification.

[0032] The embodiments of this application provide a method for power distribution in a charging and battery swapping station, which is executed by an electronic device. The electronic device can be a server or a terminal device. Among them, the server can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services. The terminal device can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited thereto. The terminal device and the server can be directly or indirectly connected through wired or wireless communication methods, which are not limited in the embodiments of this application. As Figure 1 shown, the method includes steps S101, S102, S103, S104, S105, S106, and S107, where S101, obtain the first real-time power of the charging area and the second real-time power of the battery swapping area, and determine the total power of the first real-time power and the second real-time power.

[0033] For the embodiments of the present application, the charging and swapping station integrates a charging area capable of charging vehicles and a swapping area for charging batteries and swapping batteries for vehicles. Each of the charging area and the swapping area includes multiple branches. Each branch of the charging area corresponds to a charging pile facility, and each branch of the swapping area corresponds to a facility for charging batteries. The electronic device is connected to the power monitoring device in the charging and swapping station through a wire or wirelessly, so that the electronic device can obtain the first real-time power of the charging area and the second real-time power of the swapping area. The power monitoring device can be a power sensor, and power sensors are respectively connected to the power supply lines of the charging area and the swapping area for real-time monitoring of the power of the charging area and the swapping area. After the electronic device obtains the first real-time power and the second real-time power, the sum is calculated to obtain the total real-time power of the entire charging and swapping station.

[0034] S102. If the total power is within the preset power range, obtain the number of the first branches in the charging area that are in the charging state, the charging duration of each first branch for the current charging, and the first power change curve.

[0035] For the embodiments of the present application, the preset power range serves as the demarcation point for whether the total power of the charging and swapping station is too high. The preset power range can be a power range including the maximum power that the charging and swapping station can withstand, that is, a power range close to the maximum power. If the total power is within the preset power range, it indicates that the charging and swapping station is about to reach the maximum power it can withstand. Therefore, it is necessary to allocate the power of the charging area and the swapping area more reasonably. Each charging pile device in the charging area is connected to the electronic device through a wire, so the electronic device can obtain the charging piles in the charging area that are in the charging state, and then know the number of the first branches in the charging state. Similarly, the electronic device can know the charging duration of each first branch after the current charging starts and the first power change curve.

[0036] S103. Determine the first importance degree of the charging area based on the number of the first branches, the charging duration, and the first power change curve.

[0037] For the embodiments of the present application, the larger the number of the first branches in the charging state, the busier the charging area, which correspondingly indicates that the charging area is more important. The longer the charging duration of a certain first branch, the more stable the charging area and the more sufficient the battery power of the vehicle, indicating that the importance degree of this first branch is relatively low. The first power change curve of the first branch records the power change situation of the first branch, and the data in the first power change curve can also reflect the importance degree of the first branch. Therefore, it is more accurate for the electronic device to comprehensively determine the first importance degree of the charging area by combining the number of the first branches, the charging duration, and the first power change curve. The higher the first importance degree, the more important the charging area, and the higher the corresponding allocated power quota should be.

[0038] S104. Obtain the second power change curve on each second branch in the charging state in the battery swapping area, the power of the battery on each second branch, the position information of each operating vehicle, the historical schedule of charging or battery swapping, the driving mileage after the last charging or battery swapping, and the power change curve.

[0039] For the embodiments of the present application, the charging devices on each branch in the battery swapping area can also send data such as the second power change curve in the branch and the power of the battery to the electronic device. There are also multiple branches in the battery swapping area for charging the battery. The data in the second power change curve of each second branch in the battery swapping area can also reflect the importance of the second branch. The more power the battery on the second branch has, the closer it is to the completion of charging and the more available it is, which correspondingly indicates that the importance of the second branch is relatively low. After the power of the operating vehicle is exhausted, it needs to return to the charging and swapping station for battery swapping operations. The electronic device is wirelessly connected to each operating vehicle, so as to obtain the position information of each operating vehicle, the historical schedule of charging or battery swapping, the driving mileage after the last charging or battery swapping, and the power change curve.

[0040] S105. Determine the arrival charging and swapping time of each operating vehicle based on the position information, the historical schedule of charging or battery swapping, the driving mileage after the last charging or battery swapping, and the power change curve.

[0041] Specifically, the electronic device inputs the position information of each operating vehicle, the historical schedule of charging or battery swapping, the driving mileage after the last charging or battery swapping, and the power change curve into the trained network model for arrival time prediction, and obtains the arrival charging and swapping time of each operating vehicle.

[0042] For the embodiments of the present application, the network model can be a convolutional neural network model, a recurrent neural network model, or other types of network models, which are not limited herein. Taking the convolutional neural network model as an example, relevant personnel design an initial convolutional neural network model for predicting the arrival charging and swapping time. The relevant personnel can establish a training sample set according to the existing position information of the operating vehicle, the historical schedule of charging and swapping, the driving mileage after each charging and swapping, and the power change curve, with the time of each charging and swapping as the label. Then, the electronic device inputs the training sample set into the initial arrival charging and swapping time prediction model for supervised training, so as to obtain the trained charging and swapping time prediction model.

[0043] S106. Determine the second importance of the battery swapping area based on the second power change curve, the power of the battery, and the arrival charging and swapping time.

[0044] For the embodiments of the present application, the closer the arrival charging / discharging time of the operating vehicle is, the more urgent the charging / discharging demand is, and the battery replaced needs to be charged as soon as possible, and the importance level of the battery swapping area is relatively higher. Therefore, it is more accurate for the electronic device to comprehensively determine the second importance level of the battery swapping area based on the second power change curve of the battery swapping area, the power of the battery, and the predicted arrival charging / discharging time.

[0045] S107. Determine the power distribution strategy for the charging area and the battery swapping area based on the first importance level and the second importance level, and adjust the power upper limits of the charging area and the battery swapping area according to the power distribution strategy.

[0046] For the embodiments of the present application, after the electronic device determines the first importance level of the charging area and the second importance level of the battery swapping area, it can analyze a suitable power distribution strategy based on the first importance level and the second importance level, that is, the power upper limit of the charging area that meets the first importance level and the demand, and the power upper limit of the battery swapping area that meets the second importance level and the demand. Finally, when the total power of the charging / discharging station is about to be reached, the power of the charging area and the battery swapping area can be reasonably and accurately intelligently distributed.

[0047] In a possible implementation manner of the embodiments of the present application, in step S103, the first importance level of the charging area is determined based on the number of the first branches, the charging duration, and the first power change curve, which specifically includes step S1031 (not shown in the figure), step S1032 (not shown in the figure), step S1033 (not shown in the figure), step S1034 (not shown in the figure), step S1035 (not shown in the figure), step S1036 (not shown in the figure), step S1037 (not shown in the figure), and step S1038 (not shown in the figure), where S1031. Determine the first ratio of the number of the first branches to the total number of all branches in the charging area.

[0048] For the embodiments of the present application, the electronic device stores the total number of all branches in the charging area. The electronic device divides the number of the first branches in the charging state by the total number of branches to obtain the first ratio. The larger the first ratio is, the busier the charging area is, and correspondingly, the more important the charging area is.

[0049] S1032. Determine the first power value at the current moment from the first power change curve, and determine the average power of all the first branches based on the first power value at the current moment and the number of the first branches.

[0050] For the embodiment of the present application, the first power value represents the current power size of each first branch. The larger the first power value, the greater the charging power. Battery charging usually includes three stages, namely the constant current stage, the constant voltage stage and the trickle stage. The charging power is different in each stage. Generally, the charging power decreases as the charging time increases. Therefore, the larger the first power value, the shorter the charging time, the higher the power demand, and the higher the corresponding importance. The smaller the first power, the longer the charging time, the closer the battery is to being fully charged, and the lower the corresponding importance. The electronic device sums the first power values at the current moment, and then uses the average value calculation formula to calculate the power average value of all first branches. The power average value reflects the power demand of the charging area as a whole. The larger the power average value, the higher the corresponding importance.

[0051] S1033, obtaining historical charging data of each first branch.

[0052] The historical charging data includes the duration of each charging in history.

[0053] For the embodiment of the present application, the electronic device or the cloud server stores historical charging data of each first branch, and the historical charging data at least includes the duration of each charging of each first branch in history.

[0054] S1034: Calculate the historical average charging duration of all first branches based on the duration of each charging in history.

[0055] For the embodiment of the present application, the electronic device averages the duration of each charge of all first branches in the historical charging data to obtain the historical average charging duration. The historical average charging duration represents the approximate duration level of each charge of these first branches.

[0056] S1035: Calculate the current average charging time based on the charging time of each first branch, and determine a second ratio of the current charging time to the historical average charging time.

[0057] For the embodiment of the present application, the electronic device sums up the current charging time of each first branch and then calculates the average value to obtain the average charging time, and then divides the average charging time by the historical average charging time to obtain a second ratio. The larger the second ratio is and the closer it is to 1, the closer all the first branches are to charging completion as a whole, which corresponds to a lower importance of the charging area.

[0058] S1036, intercepting a power value of a preset time period including the current moment from the first power change curve of each first branch, and determining a power value variance of each first branch based on the power value of the preset time period.

[0059] For the embodiments of the present application, assume that the current time is 8:00, and the preset time period can be from 7:50 to 8:00, that is, the interval of the preset time period is 10 minutes. The power values of the preset time period intercepted by the electronic device characterize the power change of each first branch in the time period closest to the current time, which is more referenceable. The electronic device calculates the variance of the power values of each first branch in the preset time period through the variance calculation formula. The larger the variance of the power values of a certain first branch, the more unstable the power is, which correspondingly indicates that the first branch is still in the earlier stage of charging, and correspondingly indicates that the first branch is more important.

[0060] S1037. Determine a first eigenvalue characterizing the importance of each first branch based on the power value variance, the first power value at the current time, and the charging duration.

[0061] For the embodiments of the present application, the power value variance, the first power value at the current time, and the charging duration of each first branch are all key factors characterizing the importance of the first branch. Therefore, the electronic device can accurately determine the first eigenvalue characterizing the importance of each first branch according to the power value variance, the first power value, and the charging duration. Quantifying the importance of each first branch with the first eigenvalue is convenient for subsequent analysis.

[0062] S1038. Determine the first importance degree of the charging area based on the first ratio, the power average value, the second ratio, and the first eigenvalue.

[0063] For the embodiments of the present application, in summary, the first ratio, the power average value, the second ratio, and the first eigenvalue are all key factors characterizing the importance of the charging area, and their influence degrees on the importance are different. Therefore, relevant personnel can set their respective corresponding coefficients for the above four characteristics and store them in the electronic device. After the electronic device determines the first ratio, the power average value, the second ratio, and the first eigenvalue of each first branch, it can first calculate the average value of all the first eigenvalues, and use the average value of the first eigenvalues to characterize the importance of the first branch as a whole. The larger the average value of the first eigenvalues, the more important the charging area is. As can be seen from step S1035, the larger the second ratio, the lower the importance degree, that is, the second ratio is inversely proportional to the importance degree. Therefore, the electronic device can use the reciprocal of the second ratio for weighted calculation. The electronic device calls their respective corresponding coefficients for weighted calculation of the first ratio, the power average value, the reciprocal of the second ratio, and the average value of the first eigenvalues to obtain a score, and this score is the first importance degree of the charging area. The electronic device uses the first ratio and the power average value, etc. to comprehensively analyze the first importance degree of the charging area more accurately.

[0064] In a possible implementation manner of the embodiment of the present application, in step S1037, a first eigenvalue representing the importance degree of each first branch is determined based on the power value variance, the first power value at the current moment, and the charging duration, which specifically includes step one, step two, and step three, where Step one, calculate the first product of the power value variance and the first power value.

[0065] Step two, calculate the third ratio of the charging duration to the historical average charging duration.

[0066] Step three, divide the first product by the third ratio to obtain the first eigenvalue.

[0067] For the embodiment of the present application, the electronic device multiplies the power value variance by the first power value to obtain the first product. The larger the first product, the more important the first branch is, and the first product is directly proportional to the importance degree of the first branch. The electronic device divides the charging duration of each first branch by the historical average charging duration of all first branches to obtain the third ratio. The larger the third ratio, the higher the possibility that the first branch is close to being fully charged, indicating that the first branch is less important, that is, the third ratio is inversely proportional to the importance degree of the first branch. The electronic device divides the first product by the third ratio to obtain the first eigenvalue of the first branch. With the first product as the numerator remaining unchanged, the larger the third ratio as the denominator, the smaller the first eigenvalue, indicating that the importance degree of the first branch is lower. On the contrary, the smaller the third ratio, the larger the first eigenvalue, indicating that the importance degree of the first branch is higher. The first eigenvalue determined by the electronic device through the relevant power data of each first branch itself and its own charging duration can more accurately reflect the importance degree of the first branch.

[0068] In a possible implementation manner of the embodiment of the present application, in step S106, the second importance degree of the battery swapping area is determined based on the second power change curve, the battery power, and the arrival charging and swapping time, which specifically includes step S1061 (not shown in the figure), step S1062 (not shown in the figure), step S1063 (not shown in the figure), step S1064 (not shown in the figure), step S1065 (not shown in the figure), and step S1066 (not shown in the figure), where S1061, determine the second power value at the current moment from the second power change curve.

[0069] For the embodiment of the present application, the second power value represents the power level of each second branch in the battery swapping area at the current moment. The larger the second power value, the greater the possibility that the battery charging is in the initial stage and the early stage.

[0070] S1062, determine a second eigenvalue representing the importance degree of each second branch based on the second power value and the battery power.

[0071] For the embodiments of the present application, the greater the battery power, the closer it is to the fully charged state and the more ready it is for use. Therefore, the lower the importance of the second branch, and the greater the second power value, the more important the second branch. Thus, the electronic device divides the second power value by the battery power to obtain a second eigenvalue characterizing the importance of each second branch. With the second power value of the numerator remaining unchanged, the larger the denominator, the lower the importance of the second branch, that is, the smaller the second eigenvalue, the lower the importance of the second branch, and vice versa, the higher the importance of the second branch. Using the second eigenvalue to characterize the importance of each second branch itself is more accurate.

[0072] S1063. Determine the concentrated arrival time period based on the arrival charging and swapping time of each operating vehicle.

[0073] For the embodiments of the present application, after the electronic device predicts the arrival charging and swapping time of each operating vehicle, it can determine the concentrated arrival time period of the operating vehicle according to the arrival charging and swapping time.

[0074] S1064. Determine the time difference between the starting moment of the concentrated arrival time period and the current moment.

[0075] For the embodiments of the present application, after the operating vehicle arrives at the arrival charging and swapping time, it needs to replace the battery in the swapping area, and the swapping area needs to charge the replaced battery in a timely manner. The electronic device subtracts the current moment from the starting moment to obtain the time difference. The larger the time difference, the farther the concentrated arrival time period is from the current moment, and the smaller the demand for the swapping area. The greater the demand for the swapping area, the closer it is to the current moment, and the higher the importance of the swapping area.

[0076] S1065. Determine the target second branch whose battery power reaches the preset power threshold from all the second branches, and calculate the quantity ratio of the target second branch to the number of operating vehicles in the concentrated arrival time period.

[0077] For the embodiments of the present application, the preset power threshold is used as the demarcation point for whether the power is large. For example, the preset power threshold is 80%. The electronic device compares the battery power of all the second branches with the preset power threshold respectively to determine the target second branch, that is, the battery power on the target second branch is relatively large and can provide sufficient electric energy for the operating vehicle to use. The electronic device divides the number of the target second branches by the number of operating vehicles in the concentrated arrival time period to obtain the quantity ratio. The larger the quantity ratio, the more operating vehicles need to replace the battery, the higher the demand for the swapping area, and the more important the swapping area is.

[0078] S1066. Determine the second importance of the swapping area based on the quantity ratio, the time difference, and the second eigenvalue characterizing the importance of each second branch.

[0079] For the embodiments of the present application, in summary, the quantity ratio, the time difference, and the second eigenvalue are all key factors affecting the importance degree of the battery swapping area, and the influencing degrees are different. Therefore, relevant personnel can set their respective corresponding coefficients for the quantity ratio, the time difference, and the second eigenvalue and store them in the storage medium in the electronic device. Since the greater the time difference, the lower the corresponding importance degree, showing an inverse ratio, for the convenience of calculation, the electronic device can use the reciprocal of the time difference for subsequent calculations. The electronic device performs an averaging process on the second eigenvalues of all the second branches to obtain the average value of the second eigenvalues. The average value of the second eigenvalues represents the importance degree of all the second branches as a whole. The electronic device calls their respective corresponding coefficients for the quantity ratio, the reciprocal of the time difference, and the average value of the second eigenvalues to perform a weighted calculation to obtain the second importance degree of the battery swapping area. Calculating the second importance degree through data such as the quantity ratio and the time difference of the battery swapping area is more accurate.

[0080] A possible implementation manner of the embodiments of the present application, the power distribution strategy includes the power upper limit of the charging area and the power upper limit of the battery swapping area. In step S107, determining the power distribution strategy of the charging area and the battery swapping area based on the first importance degree and the second importance degree specifically includes step S1071 (not shown in the figure), step S1072 (not shown in the figure), and step S1073 (not shown in the figure), where S1071, determining the second product of the first importance degree and the first real-time power, and determining the third product of the second importance degree and the second real-time power.

[0081] S1072, calculating the product sum of the second product and the third product, and determining the fourth ratio of the second product to the product sum and the fifth ratio of the third product to the product sum.

[0082] S1073, obtaining the power upper limit of the charging area by multiplying the preset power threshold by the fourth ratio, and obtaining the power upper limit of the battery swapping area by multiplying the preset power threshold by the fifth ratio.

[0083] Among them, the preset power threshold is the total power that the charging and swapping station can withstand.

[0084] For the embodiments of the present application, the electronic device multiplies the first importance by the first real-time power to obtain a second product, and the second product is a score representing how much power the charging area can obtain through a fusion calculation from both the first importance and the current first real-time power of the charging area. The electronic device multiplies the second importance by the second real-time power to obtain a third product, and the third product is a score representing how much power the battery swapping area can obtain through a fusion calculation from both the second importance and the current second real-time power of the battery swapping area. Then the electronic device sums the second product and the third product to obtain a product sum, and then divides the second product by the product sum to obtain the ratio of the score of the charging area to the product sum, that is, the fourth ratio. The electronic device divides the third product by the product sum to obtain the ratio of the score of the battery swapping area to the product sum, that is, the fifth ratio. Finally, the electronic device multiplies the preset power threshold by the fourth ratio and the fifth ratio respectively to obtain the power upper limit of the charging area and the power upper limit of the battery swapping area, thereby realizing the reasonable distribution of the power of the charging and battery swapping station.

[0085] In a possible implementation manner of the embodiments of the present application, in step S1063, determining the concentrated arrival time period based on the arrival charging and battery swapping time of each operating vehicle specifically includes step Sa (not shown in the figure), step Sb (not shown in the figure), and step Sc (not shown in the figure), where Sa, mark the arrival charging and battery swapping time of each operating vehicle on the time axis to obtain a marked time axis.

[0086] For the embodiments of the present application, the electronic device stores a time axis, and the electronic device marks the predicted arrival charging and battery swapping time of each operating vehicle on the time axis to obtain a marked time axis. It is convenient to analyze the concentrated arrival time period based on the marked time axis.

[0087] Sb, translate on the marked time axis according to a preset time span at a preset step size to obtain the initial position and the corresponding time period after each translation.

[0088] For the embodiments of the present application, the preset time span can be ten minutes, twenty minutes, or half an hour, etc. The preset step size can be one minute, five minutes, etc., and the preset step size is less than the preset time span. The electronic device aligns the starting point of the preset time span with the current moment on the time axis to obtain the time period of the initial position. Taking one minute as an example for the preset step size, the electronic device slides to the right of the time axis at a step size of one minute to obtain the time period after each translation.

[0089] Sc, determine the time period with the number of arrival charging and battery swapping times reaching the preset quantity threshold and the closest to the current moment as the concentrated arrival time period.

[0090] For the embodiments of the present application, the electronic device counts the number of operating vehicles in the time period of the starting position and the time periods after each translation. The preset quantity threshold is used as the demarcation point for whether the number of arriving stations is large. If the number of operating vehicles in a certain time period reaches the preset quantity threshold, it indicates that there are many operating vehicles arriving at the charging and swapping station for charging and swapping within this time period. If there are multiple time periods that reach the preset quantity threshold and this time period is the closest to the current moment, then this time period is determined as the concentrated arrival time period. The swapping area needs to preferentially swap the batteries of the operating vehicles within this time period and charge the swapped batteries. By marking the predicted arrival time points of the operating vehicles for charging and swapping on the time axis and determining multiple time periods according to the preset time span and preset step size, it is more convenient and accurate to determine the concentrated arrival time period from these time periods.

[0091] The above embodiments introduce a power distribution method for a charging and swapping station from the perspective of the method flow. The following embodiments introduce a power distribution system 20 for a charging and swapping station from the perspective of virtual modules or virtual units. For details, see the following embodiments.

[0092] Embodiments of the present application provide a power distribution system 20 for a charging and swapping station, as Figure 2 shown. A power distribution system 20 for a charging and swapping station may specifically include: A first acquisition module 201, configured to acquire the first real-time power of the charging area and the second real-time power of the swapping area, and determine the total power of the first real-time power and the second real-time power; A second acquisition module 202, configured to, when the total power is within a preset power range, acquire the number of first branches in the charging area that are in the charging state, the charging duration of each first branch for the current charging, and the first power change curve; A first determination module 203, configured to determine the first importance level of the charging area based on the number of first branches, the charging duration, and the first power change curve; A third acquisition module 204, configured to acquire the second power change curve on each second branch in the swapping area that is in the charging state, the battery power on each second branch, the position information of each operating vehicle, the historical schedule of charging or swapping, the driving mileage after the last charging or swapping, and the power change curve; A second determination module 205, configured to determine the arrival time of each operating vehicle for charging and swapping based on the position information, the historical schedule of charging or swapping, the driving mileage after the last charging or swapping, and the power change curve; A third determination module 206, configured to determine the second importance level of the swapping area based on the second power change curve, the battery power, and the arrival time of charging and swapping; The fourth determination module 207 is configured to determine a power allocation strategy for the charging area and the battery swapping area based on the first importance and the second importance, and adjust the power upper limits of the charging area and the battery swapping area according to the power allocation strategy.

[0093] An embodiment of the present application discloses a power distribution system 20 for a charging and battery swapping station. Among them, the first acquisition module 201 acquires the first real-time power of the charging area and the second real-time power of the battery swapping area to facilitate calculating the total power of the entire charging and battery swapping station at present. If the total power is within a preset power range, it indicates that the overall power of the charging and battery swapping station is about to reach the maximum power that the charging and battery swapping station can withstand. At this time, it is necessary to reasonably allocate the power of the charging area and the battery swapping area. Therefore, the second acquisition module 202 acquires the number of the first branches in the charging area that are in the charging state, the charging duration of each first branch for the current charging, and the first power change curve. The more the first branches and the shorter the charging duration, it indicates that the charging area is busier and most branches are in the initial stage of charging, and electric energy is needed to supplement the battery energy, correspondingly indicating a higher importance of the charging area. Similarly, the first power change curve of each first branch records the power change situation of each first branch and can also indicate the importance degree of the charging area to a certain extent. Therefore, the first determination module 203 comprehensively determines the more accurate first importance of the charging area according to the number of the first branches, the charging duration, and the first power change curve. The third acquisition module 204 acquires the relevant data of each second branch in the battery swapping area that is in the charging state and the relevant data of each operating vehicle. The second determination module 205 can predict the arrival charging and battery swapping time points of each operating vehicle according to the relevant data of each operating vehicle. The closer the arrival charging and battery swapping time is, it indicates that the battery swapping area needs to charge the replaced batteries more, indicating a higher importance of the battery swapping area. The second power change curve on the second branch and the battery power also characterize the importance degree of the battery swapping area. Therefore, the third determination module 206 can comprehensively determine the more accurate second importance of the battery swapping area according to the second power change curve, the battery power, and the arrival charging and battery swapping time points. Finally, the fourth determination module 207 can determine a more reasonable power allocation strategy for the charging area and the battery swapping area according to the first importance and the second importance, and adjust the power upper limits of the charging area and the battery swapping area according to the power allocation strategy, thereby finally realizing the reasonable and accurate intelligent allocation of the power of the charging area and the battery swapping area when the total power that the charging and battery swapping station can withstand is about to be reached.

[0094] In a possible implementation manner of the embodiment of the present application, when the first determination module 203 determines the first importance of the charging area based on the number of the first branches, the charging duration, and the first power change curve, it is specifically configured to: Determine a first ratio of the number of the first branches to the total number of all branches in the charging area; Determine the first power value at the current moment from the first power change curve, and determine the average power value of all the first branches based on the first power value at the current moment and the number of the first branches; Obtain the historical charging data of each first branch, where the historical charging data includes the charging duration for each charge in history; Calculate the historical average charging duration of all the first branches based on the charging duration for each charge in history; Calculate the current average charging duration based on the charging duration of each first branch, and determine the second ratio of the current charging duration to the historical average charging duration; Intercept the power values within a preset time period including the current moment from the first power change curve of each first branch, and determine the power value variance of each first branch based on the power values within the preset time period; Determine the first eigenvalue characterizing the importance degree of each first branch based on the power value variance, the first power value at the current moment, and the charging duration; Determine the first importance degree of the charging area based on the first ratio, the average power value, the second ratio, and the first eigenvalue.

[0095] In a possible implementation manner of the embodiment of the present application, when the first determination module 203 determines the first eigenvalue characterizing the importance degree of each first branch based on the power value variance, the first power value at the current moment, and the charging duration, it is specifically configured to: Calculate the first product of the power value variance and the first power value; Calculate the third ratio of the charging duration to the historical average charging duration; Obtain the first eigenvalue by dividing the first product by the third ratio.

[0096] In a possible implementation manner of the embodiment of the present application, when the third determination module 206 determines the second importance degree of the swapping area based on the second power change curve, the battery power, and the arrival charging and swapping time, it is specifically configured to: Determine the second power value at the current moment from the second power change curve; Determine the second eigenvalue characterizing the importance degree of each second branch based on the second power value and the battery power; Determine the concentrated arrival time period based on the arrival charging and swapping time of each operating vehicle; Determine the time difference between the start moment of the concentrated arrival time period and the current moment; Determine the target second branches with the battery power reaching the preset power threshold from all the second branches, and calculate the number ratio of the target second branches to the operating vehicles in the concentrated arrival time period; Determine the second importance degree of the swapping area based on the number ratio, the time difference, and the second eigenvalue of the importance degree of each second branch.

[0097] In a possible implementation manner of the embodiment of the present application, the power distribution strategy includes the power upper limit of the charging area and the power upper limit of the battery swapping area. When the fourth determination module 207 determines the power distribution strategy of the charging area and the battery swapping area based on the first importance and the second importance, it specifically is used for: Determine the second product of the first importance and the first real-time power, and determine the third product of the second importance and the second real-time power; Calculate the product sum of the second product and the third product, and determine the fourth ratio of the second product to the product sum and the fifth ratio of the third product to the product sum; Obtain the power upper limit of the charging area by multiplying the preset power threshold by the fourth ratio, and obtain the power upper limit of the battery swapping area by multiplying the preset power threshold by the fifth ratio. The preset power threshold is the total power that the charging and battery swapping station can withstand.

[0098] In a possible implementation manner of the embodiment of the present application, when the second determination module 205 determines the arrival charging and battery swapping time of each operating vehicle based on the location information, the historical schedule of charging or battery swapping, the driving mileage after the last charging or battery swapping, and the power change curve, it specifically is used for: Input the location information, the historical schedule of charging or battery swapping, the driving mileage after the last charging or battery swapping, and the power change curve into the trained network model for arrival time prediction to obtain the arrival charging and battery swapping time of each operating vehicle.

[0099] In a possible implementation manner of the embodiment of the present application, when the third determination module 206 determines the concentrated arrival time period based on the arrival charging and battery swapping time of each operating vehicle, it specifically is used for: Mark the arrival charging and battery swapping time of each operating vehicle on the time axis to obtain the marked time axis; Translate the marked time axis by a preset time span according to a preset step length to obtain the initial position and the corresponding time periods after each translation; Determine the time period with the number of arrival charging and battery swapping times reaching the preset number threshold and the closest to the current moment as the concentrated arrival time period.

[0100] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of a charging and battery swapping station power distribution system 20 described above can refer to the corresponding process in the foregoing method embodiment, and will not be elaborated here.

[0101] An electronic device is provided in the embodiment of the present application, as Figure 3 shown Figure 3The electronic device 30 shown includes: a processor 301 and a memory 303. Among them, the processor 301 and the memory 303 are connected, such as through a bus 302. Optionally, the electronic device 30 may further include a transceiver 304. It should be noted that in practical applications, the transceiver 304 is not limited to one, and the structure of the electronic device 30 does not constitute a limitation on the embodiments of the present application.

[0102] The processor 301 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute various exemplary logic blocks, modules, and circuits described in connection with the disclosure of the present application. The processor 301 may also be a combination that implements a computing function, such as a combination including one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0103] The bus 302 may include a path for transmitting information between the above components. The bus 302 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus 302 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 only a thick line is used to represent it in the figure, but it does not mean that there is only one bus or one type of bus.

[0104] The memory 303 can be a ROM (Read Only Memory), or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory), or other types of dynamic storage devices that can store information and instructions. It can also be an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory), or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media, or other magnetic storage devices, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0105] The memory 303 is used to store the application program code for executing the solution of this application, and is controlled by the processor 301 for execution. The processor 301 is used to execute the application program code stored in the memory 303 to implement the content shown in the foregoing method embodiments.

[0106] Among them, the electronic device includes but is not limited to: mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablet Computers), PMPs (Portable Multimedia Players), in-vehicle terminals (such as in-vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. It can also be a server, etc. Figure 3 The illustrated electronic device is only an example and should not impose any restrictions on the functions and usage scope of the embodiments of this application.

[0107] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When it runs on a computer, the computer can execute the corresponding content in the foregoing method embodiment. Compared with the related art, obtaining the first real-time power of the charging area and the second real-time power of the battery swapping area in the embodiment of the present application facilitates calculating the total power of the current entire charging and battery swapping station. If the total power is within a preset power range, it indicates that the overall power of the charging and battery swapping station is about to reach the maximum power that the charging and battery swapping station can withstand. At this time, it is necessary to reasonably allocate the power of the charging area and the battery swapping area. Therefore, obtaining the number of the first branches in the charging area that are in the charging state, the charging duration of each first branch for the current charging, and the first power change curve. The more the first branches and the shorter the charging duration indicate that the charging area is relatively busy and most branches are in the initial stage of charging, and electric energy is needed to supplement the battery energy, which correspondingly indicates a higher importance of the charging area. Similarly, the first power change curve of each first branch records the power change situation of each first branch and can also indicate the importance of the charging area to a certain extent. Therefore, the first importance of the charging area is more accurately determined based on the number of the first branches, the charging duration, and the first power change curve. Obtaining the relevant data of each second branch in the battery swapping area that is in the charging state and the relevant data of each operating vehicle can predict the arrival charging and battery swapping time point of each operating vehicle based on the relevant data of each operating vehicle. The closer the arrival charging and battery swapping time is, the more the battery swapping area needs to charge the replaced battery, indicating a higher importance of the battery swapping area. The second power change curve on the second branch and the battery power also characterize the importance of the battery swapping area. Therefore, the second importance of the battery swapping area is more accurately determined based on the second power change curve, the battery power, and the arrival charging and battery swapping time point. Finally, based on the first importance and the second importance, a more reasonable power allocation strategy for the charging area and the battery swapping area can be determined, and the power upper limits of the charging area and the battery swapping area can be regulated according to the power allocation strategy, thus finally realizing the reasonable and accurate intelligent allocation of the power of the charging area and the battery swapping area when the total power that the charging and battery swapping station can withstand is about to be reached.

[0108] It should be understood that although the steps in the flowchart of the accompanying drawings are shown in sequence according to the indication of the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, the execution of these steps has no strict order limit and can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.

[0109] The above are only some embodiments of the present application. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present application.

Claims

1. A power distribution method for a charging and swapping station, characterized in that, Including: Obtain the first real-time power of the charging area and the second real-time power of the battery swapping area, and determine the total power of the first real-time power and the second real-time power; If the total power is within a preset power range, obtain the number of the first branches in the charging area that are in the charging state, the charging duration of each first branch for the current charging, and the first power change curve; Determine the first importance of the charging area based on the number of the first branches, the charging duration, and the first power change curve; Obtain the second power change curve on each second branch in the battery swapping area that is in the charging state, the battery power on each second branch, the position information of each operating vehicle, the historical schedule of charging or battery swapping, the driving mileage after the last charging or battery swapping, and the power change curve; Determine the arrival charging or battery swapping time of each operating vehicle based on the position information, the historical schedule of charging or battery swapping, the driving mileage after the last charging or battery swapping, and the power change curve; Determine the second importance of the battery swapping area based on the second power change curve, the battery power, and the arrival charging or battery swapping time; Determine the power distribution strategy for the charging area and the battery swapping area based on the first importance and the second importance, and adjust the power upper limits of the charging area and the battery swapping area according to the power distribution strategy.

2. The power distribution method of a charging and swapping station according to claim 1, wherein The determining the first importance of the charging area based on the number of the first branches, the charging duration, and the first power change curve includes: Determine the first ratio of the number of the first branches to the total number of all branches in the charging area; Determine the first power value at the current moment from the first power change curve, and determine the average power of all the first branches based on the first power value at the current moment and the number of the first branches; Obtain the historical charging data of each first branch, where the historical charging data includes the duration of each charging in history; Calculate the historical average charging duration of all the first branches based on the duration of each charging in history; Calculate the current average charging duration based on the charging duration of each first branch, and determine the second ratio of the charging duration to the historical average charging duration; Intercept the power values in a preset time period including the current moment from the first power change curve of each first branch, and determine the power value variance of each first branch based on the power values in the preset time period; Determine the first eigenvalue representing the importance degree of each first branch based on the power value variance, the first power value at the current moment, and the charging duration; Determine the first importance of the charging area based on the first ratio, the average power, the second ratio, and the first eigenvalue.

3. The power distribution method of a charging and swapping station according to claim 2, wherein The determining the first eigenvalue representing the importance degree of each first branch based on the power value variance, the first power value at the current moment, and the charging duration includes: Calculate the first product of the power value variance and the first power value; Calculate the third ratio of the charging duration to the historical average charging duration; Obtain the first eigenvalue by dividing the first product by the third ratio.

4. A power distribution method for a charging and swapping station according to claim 1, characterized in that, Determining the second importance degree of the battery swapping area based on the second power change curve, the battery power, and the arrival charging or swapping time includes: Determining a second power value at the current moment from the second power change curve; Determining a second eigenvalue characterizing the importance degree of each second branch based on the second power value and the battery power; Determining a concentrated arrival time period based on the arrival charging or swapping time of each operating vehicle; Determining the time difference between the start moment of the concentrated arrival time period and the current moment; Determining target second branches with battery power reaching a preset power threshold from all the second branches, and calculating the ratio of the number of target second branches to the number of operating vehicles in the concentrated arrival time period; Determining the second importance degree of the battery swapping area based on the quantity ratio, the time difference, and the second eigenvalue of the importance degree of each second branch.

5. A power distribution method for a charging and swapping station according to claim 1, characterized in that, The power distribution strategy includes the power upper limit of the charging area and the power upper limit of the battery swapping area. Determining the power distribution strategy of the charging area and the battery swapping area based on the first importance degree and the second importance degree includes: Determining a second product of the first importance degree and the first real-time power, and determining a third product of the second importance degree and the second real-time power; Calculating the sum of products of the second product and the third product, and determining a fourth ratio of the second product to the sum of products and a fifth ratio of the third product to the sum of products; Obtaining the power upper limit of the charging area by multiplying the preset power threshold by the fourth ratio, and obtaining the power upper limit of the battery swapping area by multiplying the preset power threshold by the fifth ratio, where the preset power threshold is the total power that the charging and swapping station can bear.

6. The power distribution method of a charging and swapping station according to claim 1, wherein Determining the arrival charging or swapping time of each operating vehicle based on the position information, the historical schedule of charging or swapping, the driving mileage after the last charging or swapping, and the power change curve includes: Inputting the position information, the historical schedule of charging or swapping, the driving mileage after the last charging or swapping, and the power change curve into a trained network model for arrival time prediction to obtain the arrival charging or swapping time of each operating vehicle.

7. A power distribution method for a charging and swapping station according to claim 4, characterized in that, Determining the concentrated arrival time period based on the arrival charging or swapping time of each operating vehicle includes: Marking the arrival charging or swapping time of each operating vehicle on the time axis to obtain a marked time axis; Translating the marked time axis by a preset time span at a preset step length to obtain an initial position and the corresponding time period after each translation; Determining the time period with the number of arrival charging or swapping times reaching a preset number threshold and closest to the current moment as the concentrated arrival time period.

8. A power distribution system for a charging and battery swapping station, characterized in that, Including: A first acquisition module, configured to acquire the first real-time power of the charging area and the second real-time power of the battery swapping area, and determine the total power of the first real-time power and the second real-time power; A second acquisition module, configured to, when the total power is within a preset power range, acquire the number of first branches in the charging area in the charging state, the charging duration of each first branch in the current charging, and the first power change curve; A first determination module, configured to determine a first importance level of the charging area based on the number of the first branches, the charging duration, and the first power change curve; A third acquisition module, configured to acquire a second power change curve on each second branch in the swapping area that is in a charging state, the power of the battery on each second branch, the position information of each operating vehicle, the historical schedule of charging or swapping, the driving mileage after the last charging or swapping, and the power change curve; A second determination module, configured to determine the arrival charging or swapping time of each operating vehicle based on the position information, the historical schedule of charging or swapping, the driving mileage after the last charging or swapping, and the power change curve; A third determination module, configured to determine a second importance level of the swapping area based on the second power change curve, the power of the battery, and the arrival charging or swapping time; A fourth determination module, configured to determine a power allocation strategy for the charging area and the swapping area based on the first importance level and the second importance level, and adjust the power upper limits of the charging area and the swapping area according to the power allocation strategy.

9. An electronic device, characterized in that, It includes: At least one processor; A memory; At least one application program, wherein the at least one application program is stored in the memory and configured to be executed by the at least one processor, and the at least one application program: is used to execute a power allocation method for a charging and swapping station according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed in a computer, the computer is made to execute a power allocation method for a charging and swapping station according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Charging Control Apparatus

    CN103052529A

  • Power control method, system, medium and device of charging and battery replacement station and charging and battery replacement station

    CN114056179A

  • Charging power distribution method, system, medium and device for battery swap station and battery swap station

    CN116373670A

Cited By

  • Power distribution method and system of electric bicycle battery swap station

    CN122434220A

  • A power distribution method and system for electric bicycle battery swapping stations

    CN122434220B