A power distribution method, system, electronic device and storage medium for charging and swapping stations
By obtaining real-time data and operating vehicle information of charging and battery swapping areas, using network models to predict arrival times, determining importance and adjusting power limits, the power allocation problem at the total power limit of charging and battery swapping stations is solved, the rational allocation of charging and battery swapping areas is achieved, and operational efficiency is improved.
Patent Information
- Application Number
- CN202510829225.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-20
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2045-06-20
AI Technical Summary
In a charging and battery swapping station, how to reasonably and accurately allocate power to the charging area and the battery swapping area when the total power limit is about to be reached to meet the dynamic changes of new energy vehicles that have both charging and battery swapping needs.
By obtaining real-time data on the charging and battery swapping areas, including power, number of branches, charging time, power change curve, battery charge, and operating vehicle information, the network model is used to predict the arrival time for charging and battery swapping, determine the importance of the charging and battery swapping areas, and adjust the power limit based on the importance for reasonable allocation.
It realizes reasonable and accurate intelligent allocation of power to the charging and battery swapping areas when the charging and battery swapping station is about to reach the total power limit, ensuring that the power demand of the charging and battery swapping areas is reasonably regulated, and improving the operating efficiency of the charging and battery swapping station.
Smart Images

Figure CN120327331B_ABST
Abstract
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 equipment and storage medium for a charging and swapping station. Background Art
[0002] With the development of new energy vehicles, the demand and requirements for related supporting equipment for new energy vehicles are also increasing. Charging and battery swapping are currently the most important ways to supplement energy for new energy vehicles. In order to meet the needs of both charging and battery swapping, charging and battery swapping stations that integrate charging and battery swapping functions have come into being.
[0003] To improve operational efficiency, some operating companies, such as bus companies and heavy-duty truck companies, use new energy vehicles that can be recharged through both charging and battery swapping. Therefore, these companies often build charging and battery swapping stations to meet electricity demand. However, since the total power a charging and battery swapping station can handle is fixed, and the demand for charging and battery swapping changes dynamically, when the total power capacity is about to be reached, how to reasonably and accurately allocate power between charging and battery swapping areas becomes a challenge. Summary of the Invention
[0004] In order to achieve reasonable and accurate intelligent distribution of power between 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, the present application provides a power distribution method, system, electronic device and storage medium for a charging and battery swapping station.
[0005] In a first aspect, the present application provides a method for distributing power in a charging and swapping station, which adopts the following technical solution:
[0006] A power distribution method for a charging and swapping station, comprising:
[0007] Obtain a first real-time power of the charging area and a second real-time power of the battery swapping area, and determine the sum of the first real-time power and the second real-time power;
[0008] If the total power is within the preset power range, the number of first branches in the charging state in the charging area, the current charging time of each first branch, and the first power change curve are obtained;
[0009] determining a first importance of the charging area based on the number of first branches, the charging duration, and the first power variation curve;
[0010] Obtain the second power change curve on each second branch in the charging state in the battery swap area, the battery power on each second branch, the location information of each operating vehicle, the historical timetable for charging or battery swapping, the mileage after the last charging or battery swapping, and the power change curve;
[0011] Determine the arrival charging or battery swapping time for each operating vehicle based on location information, historical charging or battery swapping schedule, mileage since the last charging or battery swapping, and battery charge change curve;
[0012] Determine the second importance of the battery swap area based on the second power change curve, the battery power, and the arrival charging and swapping time;
[0013] The power allocation strategy for the charging area and the battery swapping area is determined based on the first importance and the second importance, and the power upper limit of the charging area and the battery swapping area is adjusted according to the power allocation strategy.
[0014] By adopting the above technical solution, the first real-time power of the charging area and the second real-time power of the battery swapping area are obtained, which facilitates the calculation of the total power of the entire charging and swapping station. If the total power is in the preset power range, it means that the overall power of the charging and swapping station is about to reach the maximum power that the charging and 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 number of first branches in the charging state in the charging area, the charging time of each first branch for the current charge, and the first power change curve are obtained. The more first branches and the shorter the charging time, the busier the charging area is and most branches are in the early stage of charging. Electric energy is needed to supplement the battery energy, which corresponds to the higher importance of the charging area. Similarly, the first power change curve of each first branch records the power change of each first branch, which can also explain the importance of the charging area to a certain extent. Therefore, a more accurate charging area is determined based on the number of first branches, the charging time and the first power change curve. The first importance of the battery swap area is obtained, and the relevant data of each second branch in the charging state and the relevant data of each operating vehicle are obtained. The arrival time of charging and swapping of each operating vehicle can be predicted based on the relevant data of each operating vehicle. The closer the arrival time of charging and swapping, the more the battery swapping area needs to charge the replaced battery, which means that the importance of the battery swapping area is higher. The second power change curve on the second branch and the battery power also represent the importance of the battery swapping area. Therefore, according to the second power change curve, the battery power and the arrival time of charging and swapping, a more accurate second importance of the battery swapping area can be comprehensively determined. Finally, according to 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 limit of the charging area and the battery swapping area can be adjusted according to the power allocation strategy. Finally, when the total power that the charging and swapping station can withstand is about to be reached, the reasonable and accurate intelligent allocation of power to the charging area and the battery swapping area is realized.
[0015] In another possible implementation, determining the first importance of the charging area based on the number of first branches, the charging duration, and the first power variation curve includes:
[0016] determining a first ratio of the number of the first branch to the number of all branches in the charging area;
[0017] Determining a first power value at a current moment from the first power change curve, and determining a power average value of all first branches based on the first power value at the current moment and the number of first branches;
[0018] Obtain historical charging data for each first branch, where the historical charging data includes the duration of each charging session in history;
[0019] Calculate the historical average charging time of all first branches based on the duration of each charging in history;
[0020] Calculating a current average charging time based on the charging time of each first branch, and determining a second ratio of the charging time to the historical average charging time;
[0021] 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;
[0022] Determine a first characteristic value representing the importance of each first branch based on the power value variance, the first power value at the current moment, and the charging duration;
[0023] A first importance of the charging area is determined based on the first ratio, the power average value, the second ratio, and the first characteristic value.
[0024] In another possible implementation, determining a first characteristic value representing the importance of each first branch based on the power value variance, the first power value at the current moment, and the charging duration includes:
[0025] Calculating a first product of the power value variance and the first power value;
[0026] Calculate the third ratio of the charging time to the historical average charging time;
[0027] Dividing the first product by the third ratio yields the first eigenvalue.
[0028] In another possible implementation, determining the second importance of the battery swap area based on the second power change curve, the battery power, and the arrival charging / swapping time includes:
[0029] determining a second power value at a current moment from the second power variation curve;
[0030] Determine a second characteristic value representing the importance of each second branch based on the second power value and the power level of the battery;
[0031] Determine the concentrated arrival time period based on the arrival charging and battery replacement time of each operating vehicle;
[0032] Determine the time difference between the start time of the concentrated arrival time period and the current time;
[0033] Determine a target second branch whose power reaches a preset power threshold from all second branches, and calculate the ratio of the target second branch to the number of operating vehicles in the concentrated arrival time period;
[0034] The second importance of the battery swap area is determined based on the quantity ratio, time difference, and the second characteristic value of the importance of each second branch.
[0035] In another possible implementation, the power allocation strategy includes a power upper limit for the charging area and a power upper limit for the battery swapping area. The power allocation strategy for the charging area and the battery swapping area is determined based on the first importance and the second importance, including:
[0036] determining a second product of the first importance and the first real-time power, and determining a third product of the second importance and the second real-time power;
[0037] calculating a 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;
[0038] The power upper limit of the charging area is obtained by multiplying the preset power threshold by the fourth ratio, and the power upper limit of the battery swapping area is obtained by multiplying the preset power threshold by the fifth ratio. The preset power threshold is the total power that the charging and swapping station can withstand.
[0039] In another possible implementation, the arrival charging or battery swapping time of each operating vehicle is determined based on location information, a historical charging or battery swapping schedule, mileage since the last charging or battery swapping, and a battery charge change curve, including:
[0040] The location information, historical charging or battery replacement schedule, mileage after the last charging or battery replacement, and battery change curve are input into the trained network model to predict the arrival time, and the arrival charging or battery replacement time of each operating vehicle is obtained.
[0041] In another possible implementation, the concentrated arrival time period is determined based on the arrival charging and battery swapping time of each operating vehicle, including:
[0042] Mark the arrival charging and battery swapping time of each operating vehicle on the timeline to obtain a marked timeline;
[0043] By using the preset time span and the preset step size, the marked time axis is translated to obtain the initial position and the corresponding time period after each translation;
[0044] The time period when the number of arrival times for charging and battery swapping reaches the preset threshold and is closest to the current moment is determined as the concentrated arrival time period.
[0045] In a second aspect, the present application provides a power distribution system for a charging and swapping station, which adopts the following technical solution:
[0046] A power distribution system for a charging and swapping station, comprising:
[0047] A first acquisition module is used to obtain a first real-time power of the charging area and a second real-time power of the battery swap area, and determine the sum of the first real-time power and the second real-time power;
[0048] a second acquisition module, configured to acquire, when the total power is within a preset power range, the number of first branches in a charging state in the charging area, the current charging duration of each first branch, and a first power variation curve;
[0049] a first determining module, configured to determine a first importance of the charging area based on the number of first branches, the charging duration, and the first power variation curve;
[0050] The third acquisition module is used to obtain the second power change curve of each second branch in the charging state in the battery swap area, the power of the battery on each second branch, the location information of each operating vehicle, the historical timetable of charging or battery swapping, the mileage after the last charging or battery swapping, and the power change curve;
[0051] The second determination module is used to determine the arrival charging or battery replacement time of each operating vehicle based on the location information, the historical charging or battery replacement schedule, the mileage after the last charging or battery replacement, and the power change curve;
[0052] A third determination module is used to determine the second importance of the battery swap area based on the second power change curve, the battery power and the arrival charging and swapping time;
[0053] The fourth determination module is used to determine the power allocation strategy of the charging area and the battery swapping area based on the first importance and the second importance, and adjust the power upper limit of the charging area and the battery swapping area according to the power allocation strategy.
[0054] By adopting the above technical solution, the first acquisition module obtains 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 entire charging and swapping station. If the total power is in the preset power range, it means that the overall power of the charging and swapping station is about to reach the maximum power that the charging and 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 obtains the number of first branches in the charging state in the charging area, the charging time of each first branch for the current charge, and the first power change curve. The more first branches and the shorter the charging time, the busier the charging area is and most branches are in the early stage of charging. Electric energy is needed to supplement the battery energy, which corresponds to the higher importance of the charging area. Similarly, the first power change curve of each first branch records the power change of each first branch, which can also explain the importance of the charging area to a certain extent. Therefore, the first determination module comprehensively determines a more accurate first power change curve of the charging area based on the number of first branches, the charging time and the first power change curve. Importance, the third acquisition module obtains the relevant data of each second branch in the charging state of the battery swap area and the relevant data of each operating vehicle. The second determination module can predict the arrival time of each operating vehicle for charging and swapping based on the relevant data of each operating vehicle. The closer the arrival time for charging and swapping, the more the battery swapping area needs to charge the replaced battery, which means that the importance of the battery swapping area is higher. The second power change curve on the second branch and the battery power also represent the importance of the battery swapping area. Therefore, the third determination module can comprehensively determine a more accurate second importance of the battery swapping area based on the second power change curve, the battery power and the arrival time for charging and swapping. Finally, the fourth determination module can determine a more reasonable 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 limit of the charging area and the battery swapping area according to the power allocation strategy. Finally, when the total power that the charging and swapping station can withstand is about to be reached, the reasonable and accurate intelligent allocation of power to the charging area and the battery swapping area is achieved.
[0055] In another possible implementation, when determining the first importance of the charging area based on the number of first branches, the charging duration, and the first power variation curve, the first determination module is specifically configured to:
[0056] determining a first ratio of the number of the first branch to the number of all branches in the charging area;
[0057] Determining a first power value at a current moment from the first power change curve, and determining a power average value of all first branches based on the first power value at the current moment and the number of first branches;
[0058] Obtain historical charging data for each first branch, where the historical charging data includes the duration of each charging session in history;
[0059] Calculate the historical average charging time of all first branches based on the duration of each charging in history;
[0060] Calculating a current average charging time based on the charging time of each first branch, and determining a second ratio of the charging time to the historical average charging time;
[0061] 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;
[0062] Determine a first characteristic value representing the importance of each first branch based on the power value variance, the first power value at the current moment, and the charging duration;
[0063] A first importance of the charging area is determined based on the first ratio, the power average value, the second ratio, and the first characteristic value.
[0064] In another possible implementation, when the first determining module determines the first characteristic value representing 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 is specifically configured to:
[0065] Calculating a first product of the power value variance and the first power value;
[0066] Calculate the third ratio of the charging time to the historical average charging time;
[0067] Dividing the first product by the third ratio yields the first eigenvalue.
[0068] In another possible implementation, when the third determination module determines the second importance of the battery swap area based on the second power change curve, the battery power, and the arrival charging and swapping time, it is specifically configured to:
[0069] determining a second power value at a current moment from the second power variation curve;
[0070] Determine a second characteristic value representing the importance of each second branch based on the second power value and the power level of the battery;
[0071] Determine the concentrated arrival time period based on the arrival charging and battery replacement time of each operating vehicle;
[0072] Determine the time difference between the start time of the concentrated arrival time period and the current time;
[0073] Determine a target second branch whose power reaches a preset power threshold from all second branches, and calculate the ratio of the target second branch to the number of operating vehicles in the concentrated arrival time period;
[0074] The second importance of the battery swap area is determined based on the quantity ratio, time difference, and the second characteristic value of the importance of each second branch.
[0075] In another possible implementation, the power allocation strategy includes a power upper limit for the charging area and a power upper limit for the battery swapping area. When the fourth determination module determines the power allocation strategy for the charging area and the battery swapping area based on the first importance and the second importance, it is specifically configured to:
[0076] determining a second product of the first importance and the first real-time power, and determining a third product of the second importance and the second real-time power;
[0077] calculating a 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;
[0078] The power upper limit of the charging area is obtained by multiplying the preset power threshold by the fourth ratio, and the power upper limit of the battery swapping area is obtained by multiplying the preset power threshold by the fifth ratio. The preset power threshold is the total power that the charging and swapping station can withstand.
[0079] In another possible implementation, the second determination module is specifically used to determine the arrival charging or battery replacement time of each operating vehicle based on the location information, the historical charging or battery replacement schedule, the mileage after the last charging or battery replacement, and the power change curve:
[0080] The location information, historical charging or battery replacement schedule, mileage after the last charging or battery replacement, and battery change curve are input into the trained network model to predict the arrival time, and the arrival charging or battery replacement time of each operating vehicle is obtained.
[0081] 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 configured to:
[0082] Mark the arrival charging and battery swapping time of each operating vehicle on the timeline to obtain a marked timeline;
[0083] By using the preset time span and the preset step size, the marked time axis is translated to obtain the initial position and the corresponding time period after each translation;
[0084] The time period when the number of arrival times for charging and battery swapping reaches the preset threshold and is closest to the current moment is determined as the concentrated arrival time period.
[0085] In a third aspect, the present application provides an electronic device, which adopts the following technical solution:
[0086] An electronic device, comprising:
[0087] at least one processor;
[0088] Memory;
[0089] At least one application, wherein at least one application is stored in a memory and configured to be executed by at least one processor, and at least one is configured to: execute a power allocation method for a charging and swapping station as shown in any possible implementation of the first aspect.
[0090] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution:
[0091] A computer-readable storage medium, when a computer program is executed in a computer, causes the computer to execute a power distribution method for a charging and swapping station according to any one of the first aspects.
[0092] In summary, this application includes at least one of the following beneficial technical effects:
[0093] Obtaining the first real-time power of the charging area and the second real-time power of the battery swapping area facilitates the calculation of the total power of the entire charging and swapping station. If the total power is in the preset power range, it means that the overall power of the charging and swapping station is about to reach the maximum power that the charging and 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 number of first branches in the charging state in the charging area, the charging time of each first branch and the first power change curve are obtained. The more first branches and the shorter the charging time, the busier the charging area is and most branches are in the early stages of charging, and electric energy is needed to supplement the battery energy. This corresponds to a higher importance of the charging area. Similarly, the first power change curve of each first branch records the power change of each first branch, which can also explain the importance of the charging area to a certain extent. Therefore, a more accurate first importance of the charging area is determined comprehensively based on the number of first branches, charging time and first power change curve. , obtain the relevant data of each second branch in the charging state of the battery swap area and the relevant data of each operating vehicle, and predict the arrival time of charging and swapping of each operating vehicle based on the relevant data of each operating vehicle. The closer the arrival time of charging and swapping, the more the battery swapping area needs to charge the replaced battery, which means that the importance of the battery swapping area is higher. The second power change curve on the second branch and the battery power also represent the importance of the battery swapping area. Therefore, according to the second power change curve, the battery power and the arrival time of charging and swapping, a more accurate second importance of the battery swapping area can be comprehensively determined. Finally, according to 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 limit of the charging area and the battery swapping area can be adjusted according to the power allocation strategy. Finally, when the total power that the charging and swapping station can withstand is about to be reached, the reasonable and accurate intelligent allocation of power to the charging area and the battery swapping area is realized. BRIEF DESCRIPTION OF THE DRAWINGS
[0094] Figure 1 It is a flow chart of a power distribution method for a charging and swapping station according to an embodiment of the present application.
[0095] Figure 2 It is a structural diagram of a power distribution system of a charging and swapping station according to an embodiment of the present application.
[0096] Figure 3 It is a structural diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0097] The present application is further described in detail below with reference to the accompanying drawings.
[0098] After reading this specification, those skilled in the art may make non-creative modifications to this embodiment as needed, but such modifications are protected by patent law as long as they fall within the scope of the claims of this application.
[0099] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0100] In this document, the term "and / or" simply describes a relationship between related objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " in this document, unless otherwise specified, generally indicates an "or" relationship between the related objects.
[0101] The embodiments of the present application are described in further detail below with reference to the accompanying drawings.
[0102] The embodiment of the present application provides a power distribution method for a charging and swapping station, which is executed by an electronic device, which can be a server or a terminal device, wherein 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 to this. The terminal device and the server can be directly or indirectly connected through wired or wireless communication. The embodiment of the present application does not limit this. Figure 1 As shown, the method includes step S101, step S102, step S103, step S104, step S105, step S106 and step S107, wherein,
[0103] 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.
[0104] For the embodiment of the present application, the charging and battery swapping station integrates a charging area that can charge vehicles and a battery swapping area that charges batteries and swaps batteries for vehicles. The charging area and the battery swapping area respectively include multiple branches. Each branch of the charging area corresponds to a charging pile facility, and each branch of the battery swapping area corresponds to a facility for charging batteries. The electronic device is connected to the power monitoring device in the charging and battery 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 battery swapping area. The power monitoring device can be a power sensor, and the power supply lines of the charging area and the battery swapping area are respectively connected with power sensors for real-time monitoring of the power of the charging area and the power of the battery swapping area. After the electronic device obtains the first real-time power and the second real-time power, they are summed to obtain the real-time total power of the entire charging and battery swapping station.
[0105] S102: If the total power is within the preset power range, obtain the number of first branches in the charging area that are in a charging state, the current charging time of each first branch, and a first power variation curve.
[0106] For the embodiment of the present application, the preset power interval serves as a dividing point for whether the total power of the charging and battery swapping station is too high. The preset power interval can be a power interval including the maximum power that the charging and battery swapping station can withstand, that is, a power interval close to the maximum power. If the total power is within the preset power interval, it means that the charging and battery swapping station is about to reach the maximum power it can withstand, so it is necessary to more reasonably distribute the power of the charging area and the battery swapping area. 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 a charging state, and then know the number of the first branches in a charging state. Similarly, the electronic device can know the charging time of each first branch after the last charging starts and the first power change curve.
[0107] S103: Determine a first importance of the charging area based on the number of first branches, the charging duration, and the first power variation curve.
[0108] For the embodiment of the present application, the more first branches in the charging state, the busier the charging area is, and the more important the charging area is. The longer the charging time of a first branch is, the more stable the charging area is and the more sufficient the vehicle battery is, which means that the importance of the first branch is relatively low. The first power change curve of the first branch records the power change of the first branch, and the data in the first power change curve can also reflect the importance of the first branch. Therefore, the electronic device can more accurately determine the first importance of the charging area by combining the number of first branches, the charging time, and the first power change curve. The higher the first importance, the more important the charging area is, and the corresponding allocated power quota should be higher.
[0109] S104, obtain the second power change curve of each second branch in the charging state in the battery swap area, the battery power of each second branch, the location information of each operating vehicle, the historical schedule of charging or battery swapping, the mileage after the last charging or battery swapping, and the power change curve.
[0110] For the embodiment of the present application, the charging equipment of each branch in the battery swap area can also send the second power change curve in the branch and data such as the battery power to the electronic device. The battery swap area also includes multiple branches to charge the battery. The data in the second power change curve of each second branch in the battery swap 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 completion of charging and the more it can be put into use. Correspondingly, 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. The electronic device is connected to each operating vehicle wirelessly, so that it can know the location information of each operating vehicle, the historical schedule of charging or battery swapping, the mileage after the last charging or battery swapping, and the power change curve.
[0111] S105, determining the arrival charging or battery replacement time of each operating vehicle based on the location information, the historical charging or battery replacement schedule, the mileage after the last charging or battery replacement, and the power change curve.
[0112] Specifically, the electronic device inputs the location information, historical charging or battery replacement schedule, mileage after the last charging or battery replacement, and battery change curve of each operating vehicle into the trained network model to predict the arrival time, and obtain the arrival charging or battery replacement time of each operating vehicle.
[0113] 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 here. Taking the convolutional neural network model as an example, the relevant personnel design the initial convolutional neural network model for predicting the arrival charging and swapping time. The relevant personnel can establish a training sample set based on the existing location information of the operating vehicle, the historical charging and swapping schedule, the mileage after each charging and swapping, and the power change curve, and use the time of each charging and swapping as a label. The electronic device then inputs the training sample set into the initial arrival charging and swapping time prediction model for supervised training, thereby obtaining a trained charging and swapping time prediction model.
[0114] S106, determine the second importance of the battery swap area based on the second power change curve, the battery power and the time to charge and swap at the station.
[0115] In the embodiment of the present application, the closer the arrival time of the operating vehicle for charging and swapping, the more urgent the need for charging and swapping, the sooner the replacement battery needs to be charged, and the higher the importance of the battery swap area. Therefore, the electronic device can more accurately determine the second importance of the battery swap area based on the second power change curve of the battery swap area, the battery power level, and the predicted arrival time for charging and swapping.
[0116] S107, determining the power allocation strategy of the charging area and the battery swapping area based on the first importance and the second importance, and adjusting the power upper limits of the charging area and the battery swapping area according to the power allocation strategy.
[0117] For the embodiment of the present application, after the electronic device determines the first importance of the charging area and the second importance of the battery swapping area, it can analyze the appropriate power allocation strategy based on the first importance and the second importance, that is, the charging area meets the first importance and the required power upper limit, and the battery swapping area meets the second importance and the required power upper limit, and finally realizes reasonable and accurate intelligent allocation of power to the charging area and the battery swapping area when the total power of the charging and swapping station is about to be reached.
[0118] In a possible implementation of the embodiment of the present application, step S103 determines the first importance of the charging area based on the number of first branches, the charging time, and the first power change curve, specifically including 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), wherein:
[0119] S1031: Determine a first ratio of the number of first branches to the number of all branches in the charging area.
[0120] In the embodiment of the present application, the electronic device stores the number of all branches in the charging area. The electronic device divides the number of first branches in the charging state by the number of all branches to obtain a first ratio. The larger the first ratio, the busier the charging area, and the more important the charging area.
[0121] S1032: Determine a first power value at a current moment from the first power change curve, and determine a power average value of all first branches based on the first power value at the current moment and the number of first branches.
[0122] 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 generally 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 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.
[0123] S1033: Obtain historical charging data of each first branch.
[0124] The historical charging data includes the duration of each charging in history.
[0125] In 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.
[0126] S1034: Calculate the historical average charging duration of all first branches based on the duration of each charging in history.
[0127] In the embodiment of the present application, the electronic device calculates the average value of each charging time of all first branches in the historical charging data to obtain the historical average charging time. The historical average charging time represents the approximate level of each charging time of these first branches.
[0128] 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.
[0129] For the embodiment of the present application, the electronic device sums 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.
[0130] S1036: intercepting the power value of the preset time period including the current moment from the first power change curve of each first branch, and determining the power value variance of each first branch based on the power value of the preset time period.
[0131] For the embodiment of the present application, assuming that the current time is 8:00, the preset time period can be 7:50 to 8:00, that is, the interval of the preset time period is 10 minutes. The power value of the preset time period intercepted by the electronic device represents 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 power value variance of each first branch in the preset time period through the variance calculation formula. The larger the power value variance of a first branch, the more unstable the power is, which corresponds to that the first branch is still in the early stage of charging, and the more important the first branch is.
[0132] S1037: Determine a first characteristic value representing the importance of each first branch based on the power value variance, the first power value at the current moment, and the charging duration.
[0133] For the embodiments of the present application, the power value variance of each first branch, the first power value at the current moment, and the charging time are all key factors in characterizing the importance of the first branch. Therefore, the electronic device can accurately determine the first eigenvalue characterizing the importance of each first branch based on the power value variance, the first power value, and the charging time, and use the first eigenvalue to quantify the importance of each first branch for subsequent analysis.
[0134] S1038: Determine a first importance of the charging area based on the first ratio, the average power value, the second ratio, and the first characteristic value.
[0135] In summary, for the embodiments of the present application, the first ratio, average power, second ratio, and first eigenvalue are all key factors in characterizing the importance of the charging area, and each has a different impact on the importance. Therefore, relevant personnel can set corresponding coefficients for each of the four characteristics and store them in the electronic device. After the electronic device determines the first ratio, average power, second ratio, and first eigenvalue of each first branch, it can first average all the first eigenvalues and use the average first eigenvalue value to characterize the overall importance of the first branch. A larger average first eigenvalue value indicates a more important charging area. As can be seen from step S1035, a larger second ratio indicates a lower importance, that is, the second ratio is inversely proportional to the importance. Therefore, the electronic device can use the reciprocal of the second ratio for weighted calculation. The electronic device uses the corresponding coefficients for the first ratio, average power, reciprocal of the second ratio, and average first eigenvalue to perform a weighted calculation to obtain a score, which is the first importance of the charging area. The electronic device uses the first ratio and average power values to comprehensively analyze the first importance of the charging area, which is more accurate.
[0136] In a possible implementation of the embodiment of the present application, in step S1037, a first characteristic value characterizing the importance of each first branch is determined based on the power value variance, the first power value at the current moment, and the charging duration, specifically including step 1, step 2, and step 3, wherein:
[0137] Step 1: Calculate a first product of the power value variance and the first power value.
[0138] Step 2: Calculate a third ratio of the charging time to the historical average charging time.
[0139] Step three: Divide the first product by the third ratio to obtain a first eigenvalue.
[0140] In this embodiment of the present application, the electronic device multiplies the power value variance by the first power value to obtain a first product. A larger first product indicates a more important first branch, and the first product is directly proportional to the importance of the first branch. The electronic device divides the charging time of each first branch by the historical average charging time of all first branches to obtain a third ratio. A larger third ratio indicates a higher probability that the first branch is nearing completion of charging, indicating a less important first branch. In other words, the third ratio is inversely proportional to the importance of the first branch. The electronic device divides the first product by the third ratio to obtain a first eigenvalue of the first branch. If the first product (numerator) remains unchanged, a larger third ratio (denominator) indicates a smaller first eigenvalue, indicating a less important first branch. Conversely, a smaller third ratio indicates a larger first eigenvalue, indicating a more important first branch. The electronic device determines the first eigenvalue more accurately based on the power-related data and charging time of each first branch.
[0141] In a possible implementation of the embodiment of the present application, in step S106, the second importance of the battery swap area is determined based on the second power change curve, the battery power, and the arrival charging and swapping time, specifically including 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), wherein,
[0142] S1061: Determine a second power value at a current moment from the second power change curve.
[0143] For the embodiment of the present application, the second power value represents the power level of each second branch in the battery exchange 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 early stage.
[0144] S1062: Determine a second characteristic value representing the importance of each second branch based on the second power value and the battery power.
[0145] For the embodiment of the present application, the greater the battery power, the closer it is to a fully charged state and the more ready it is to be put into use. Therefore, the importance of the second branch is lower, and the larger the second power value, the more important the second branch. Therefore, the electronic device divides the second power value by the battery power to obtain a second eigenvalue that characterizes the importance of each second branch. When the numerator, the second power value, remains 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. It is more accurate to use the second eigenvalue to characterize the importance of each second branch itself.
[0146] S1063, determine the concentrated arrival time period based on the arrival charging and battery replacement time of each operating vehicle.
[0147] For the embodiment of the present application, after the electronic device predicts the arrival time of each operating vehicle for charging and swapping, it can determine the concentrated arrival time period of the operating vehicles based on the arrival time for charging and swapping.
[0148] S1064: Determine the time difference between the start time of the concentrated arrival time period and the current time.
[0149] For the embodiment of the present application, after the operating vehicle arrives at the station for charging and swapping, it needs to replace the battery in the battery swap area, and the battery swap area needs to charge the replaced battery in time. The electronic device subtracts the current time from the starting time to get the time difference. The larger the time difference, the farther the concentrated arrival time period is from the current time, and the smaller the demand for the battery swap area, indicating that the demand for the battery swap area is greater. The closer to the current time, the greater the demand for the battery swap area, indicating that the battery swap area is more important.
[0150] S1065: Determine a target second branch whose power reaches a preset power threshold from all second branches, and calculate the ratio of the target second branch to the number of operating vehicles in the concentrated arrival time period.
[0151] For the embodiment of the present application, a preset power threshold is used as a dividing point for whether the power is large or not, for example, the preset power threshold is 80%. The electronic device compares the power of the batteries in all the second branches with the preset power threshold respectively, thereby determining the target second branch, that is, the battery power on the target second branch is large, and sufficient power can be provided for the operating vehicles for use by the operating vehicles. The electronic device divides the number of target second branches by the number of operating vehicles in the concentrated arrival time period to obtain a quantity ratio. The larger the quantity ratio, the more operating vehicles that need to replace batteries, the higher the demand for the battery replacement area, and the more important the battery replacement area is.
[0152] S1066, determine the second importance of the battery swap area based on the quantity ratio, time difference, and the second characteristic value of the importance of each second branch.
[0153] For the embodiment of the present application, in summary, the quantity ratio, time difference and second eigenvalue are all key factors affecting the importance of the battery swap area, and the degree of influence is different. Therefore, relevant personnel can set corresponding coefficients for the quantity ratio, time difference and second eigenvalue and store them in the storage medium of the electronic device. Since the larger the time difference, the lower the corresponding importance, which is inversely proportional, the electronic device can use the reciprocal of the time difference for subsequent calculations for the convenience of calculation. The electronic device averages the second eigenvalues of all second branches to obtain the second eigenvalue average value. The second eigenvalue average value represents the importance of all second branches as a whole. The electronic device uses the corresponding coefficients for the quantity ratio, the reciprocal of the time difference and the second eigenvalue average value for weighted calculation to obtain the second importance of the battery swap area. It is more accurate to calculate the second importance by comprehensively calculating the quantity ratio, time difference and other data of the battery swap area.
[0154] In a possible implementation of the embodiment of the present application, the power allocation strategy includes a power upper limit of the charging area and a power upper limit of the battery swapping area. In step S107, the power allocation strategy of the charging area and the battery swapping area is determined based on the first importance and the second importance, specifically including step S1071 (not shown in the figure), step S1072 (not shown in the figure) and step S1073 (not shown in the figure), wherein,
[0155] S1071 : Determine a second product of the first importance and the first real-time power, and determine a third product of the second importance and the second real-time power.
[0156] S1072: Calculate the sum of the products of the second product and the third product, and determine a fourth ratio of the second product to the sum of the products and a fifth ratio of the third product to the sum of the products.
[0157] S1073, 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.
[0158] Among them, the preset power threshold is the total power that the charging and swapping station can withstand.
[0159] For the embodiment 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 calculated by fusing the first importance and the current first real-time power of the charging area to obtain a score representing how much power the charging area can be allocated. The electronic device multiplies the second importance by the second real-time power to obtain a third product, and the third product is calculated by fusing the second importance and the current second real-time power of the battery swap area to obtain a score representing how much power the battery swap area can be allocated. The electronic device then 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 swap area to the product sum, that is, the fifth ratio. Finally, the electronic device multiplies the fourth ratio and the fifth ratio by the preset power threshold respectively to obtain the power upper limit of the charging area and the power upper limit of the battery swap area, thereby achieving a reasonable allocation of power to the charging and swapping stations.
[0160] In a possible implementation of the embodiment of the present application, in step S1063, the concentrated arrival time period is determined based on the arrival charging and battery swapping time of each operating vehicle, specifically including step Sa (not shown in the figure), step Sb (not shown in the figure), and step Sc (not shown in the figure), wherein:
[0161] Sa, mark the charging and battery replacement time of each operating vehicle at the station on the timeline to obtain the marked timeline.
[0162] In the embodiment of the present application, the electronic device stores a time axis, and the electronic device marks the predicted arrival time of each operating vehicle for charging and swapping on the time axis to obtain a marked time axis. The marked time is then used to facilitate subsequent analysis of the concentrated arrival time period.
[0163] Sb, translates on the marked time axis according to the preset time span and the preset step size to obtain the initial position and the corresponding time period after each translation.
[0164] In the embodiment 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 smaller 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. The preset step size is one minute, for example. The electronic device slides to the right of the time axis in steps of one minute to obtain the time period after each translation.
[0165] Sc, the time period when the number of arrival charging and battery swapping times reaches the preset threshold and is closest to the current moment is determined as the concentrated arrival time period.
[0166] For the embodiment of the present application, the electronic device counts the number of operating vehicles in the time period of the starting position and the time period after each translation. The preset number threshold is used as the dividing point for whether the number of arrivals is large. If the number of operating vehicles in a certain time period reaches the preset number threshold, it means that there are many operating vehicles concentrated at the station for charging and battery replacement during the time period. If there are multiple time periods that reach the preset number threshold, and the time period is closest to the current time, the time period is determined as the concentrated arrival time period. The battery replacement area needs to give priority to battery replacement for the operating vehicles in the time period and charge the replaced batteries. By marking the predicted arrival charging and battery replacement time points of the operating vehicles on the time axis, and shifting according to the preset time span and preset step size to determine multiple time periods, it is more convenient and accurate to determine the concentrated arrival time period from these time periods.
[0167] The above embodiment introduces a power distribution method for a charging and swapping station from the perspective of a method flow. The following embodiment introduces a power distribution system 20 for a charging and swapping station from the perspective of a virtual module or a virtual unit. For details, please refer to the following embodiment.
[0168] The embodiment of the present application provides a power distribution system 20 for a charging and swapping station, such as Figure 2 As shown, a power distribution system 20 for a charging and swapping station may specifically include:
[0169] The first acquisition module 201 is used to obtain the first real-time power of the charging area and the second real-time power of the battery swap area, and determine the sum of the first real-time power and the second real-time power;
[0170] A second acquisition module 202 is configured to acquire, when the total power is within a preset power range, the number of first branches in a charging state in the charging area, the current charging duration of each first branch, and a first power variation curve;
[0171] A first determining module 203 is configured to determine a first importance of the charging area based on the number of first branches, the charging duration, and the first power variation curve;
[0172] The third acquisition module 204 is used to obtain the second power change curve of each second branch in the charging state in the battery swap area, the battery power of each second branch, the location information of each operating vehicle, the historical timetable of charging or battery swapping, the mileage after the last charging or battery swapping, and the power change curve;
[0173] The second determination module 205 is used to determine the arrival charging or battery replacement time of each operating vehicle based on the location information, the historical charging or battery replacement schedule, the mileage after the last charging or battery replacement, and the power change curve;
[0174] The third determining module 206 is configured to determine the second importance of the battery swapping area based on the second power change curve, the battery power, and the arrival charging and swapping time;
[0175] The fourth determination module 207 is used to determine the power allocation strategy of the charging area and the battery swapping area based on the first importance and the second importance, and adjust the power upper limit of the charging area and the battery swapping area according to the power allocation strategy.
[0176] The embodiment of the present application discloses a power distribution system 20 for a charging and battery swapping station, wherein a first acquisition module 201 acquires a first real-time power of a charging area and a second real-time power of a battery swapping area to facilitate calculation of the total power of the entire charging and battery swapping station. If the total power is in a preset power range, it means 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 first branches in the charging state in the charging area, the charging time of each first branch for the current charge, and the first power change curve. The more first branches and the shorter the charging time, the busier the charging area is and most branches are in the early stage of charging, and electric energy is needed to supplement the battery energy, which corresponds to the higher importance of the charging area. Similarly, the first power change curve of each first branch records the power change of each first branch, which can also explain the importance of the charging area to a certain extent. Therefore, the first determination module 203 comprehensively determines a more accurate charging state based on the number of first branches, the charging time, and the first power change curve. The first importance of the charging area, the third acquisition module 204 obtains the relevant data of each second branch in the charging state of the battery swapping area and the relevant data of each operating vehicle, the second determination module 205 can predict the arrival time of each operating vehicle for charging and battery swapping based on 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 battery, which means that the importance of the battery swapping area is higher. The second power change curve on the second branch and the battery power also represent the importance of the battery swapping area. Therefore, the third determination module 206 can comprehensively determine a more accurate second importance of the battery swapping area based on the second power change curve, the battery power and the arrival time for charging and battery swapping. Finally, the fourth determination module 207 can determine a more reasonable 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 limit of the charging area and the battery swapping area according to the power allocation strategy. Finally, when the total power that the charging and battery swapping station can withstand is about to be reached, the reasonable and accurate intelligent allocation of power to the charging area and the battery swapping area is realized.
[0177] In one possible implementation of the embodiment of the present application, when determining the first importance of the charging area based on the number of first branches, the charging duration, and the first power change curve, the first determination module 203 is specifically configured to:
[0178] determining a first ratio of the number of the first branch to the number of all branches in the charging area;
[0179] Determining a first power value at a current moment from the first power change curve, and determining a power average value of all first branches based on the first power value at the current moment and the number of first branches;
[0180] Obtain historical charging data for each first branch, where the historical charging data includes the duration of each charging session in history;
[0181] Calculate the historical average charging time of all first branches based on the duration of each charging in history;
[0182] Calculating a current average charging time based on the charging time of each first branch, and determining a second ratio of the current charging time to the historical average charging time;
[0183] 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;
[0184] Determine a first characteristic value representing the importance of each first branch based on the power value variance, the first power value at the current moment, and the charging duration;
[0185] A first importance of the charging area is determined based on the first ratio, the power average value, the second ratio, and the first characteristic value.
[0186] In one possible implementation of the embodiment of the present application, the first determining module 203 is specifically configured to:
[0187] Calculating a first product of the power value variance and the first power value;
[0188] Calculate the third ratio of the charging time to the historical average charging time;
[0189] Dividing the first product by the third ratio yields the first eigenvalue.
[0190] In one possible implementation of the embodiment of the present application, when the third determination module 206 determines the second importance of the battery swapping area based on the second power change curve, the battery power, and the arrival charging and swapping time, it is specifically configured to:
[0191] determining a second power value at a current moment from the second power variation curve;
[0192] Determine a second characteristic value representing the importance of each second branch based on the second power value and the power level of the battery;
[0193] Determine the concentrated arrival time period based on the arrival charging and battery replacement time of each operating vehicle;
[0194] Determine the time difference between the start time of the concentrated arrival time period and the current time;
[0195] Determine a target second branch whose power reaches a preset power threshold from all second branches, and calculate the ratio of the target second branch to the number of operating vehicles in the concentrated arrival time period;
[0196] The second importance of the battery swap area is determined based on the quantity ratio, time difference, and the second characteristic value of the importance of each second branch.
[0197] In one possible implementation of the embodiment of the present application, the power allocation strategy includes a power upper limit for the charging area and a power upper limit for the battery swapping area. When the fourth determination module 207 determines the power allocation strategy for the charging area and the battery swapping area based on the first importance and the second importance, it is specifically configured to:
[0198] determining a second product of the first importance and the first real-time power, and determining a third product of the second importance and the second real-time power;
[0199] calculating a 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;
[0200] The power upper limit of the charging area is obtained by multiplying the preset power threshold by the fourth ratio, and the power upper limit of the battery swapping area is obtained by multiplying the preset power threshold by the fifth ratio. The preset power threshold is the total power that the charging and swapping station can withstand.
[0201] In one possible implementation of the embodiment of the present application, the second determination module 205 is specifically used to determine the arrival charging or battery replacement time of each operating vehicle based on the location information, the historical charging or battery replacement schedule, the mileage after the last charging or battery replacement, and the power change curve:
[0202] The location information, historical charging or battery replacement schedule, mileage after the last charging or battery replacement, and battery change curve are input into the trained network model to predict the arrival time, and the arrival charging or battery replacement time of each operating vehicle is obtained.
[0203] In one possible implementation 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 swapping time of each operating vehicle, it is specifically configured to:
[0204] Mark the arrival charging and battery swapping time of each operating vehicle on the timeline to obtain a marked timeline;
[0205] By using the preset time span and the preset step size, the marked time axis is translated to obtain the initial position and the corresponding time period after each translation;
[0206] The time period when the number of arrival times for charging and battery swapping reaches the preset threshold and is closest to the current moment is determined as the concentrated arrival time period.
[0207] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the power distribution system 20 of a charging and swapping station described above can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.
[0208] An electronic device is provided in an embodiment of the present application, such as Figure 3 As shown, Figure 3 The electronic device 30 shown includes a processor 301 and a memory 303. The processor 301 and the memory 303 are connected, for example, via a bus 302. Optionally, the electronic device 30 may further include a transceiver 304. It should be noted that in actual applications, the number of transceivers 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.
[0209] Processor 301 can 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 device, transistor logic device, hardware component, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 301 can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0210] Bus 302 may include a path for transmitting information between the above components. Bus 302 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. Bus 302 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, Figure 3 Only one thick line is used in the diagram, but it does not mean that there is only one bus or one type of bus.
[0211] The memory 303 may be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0212] The memory 303 is used to store application code for executing the solution of the present application, and the execution is controlled by the processor 301. The processor 301 is used to execute the application code stored in the memory 303 to implement the content shown in the above method embodiment.
[0213] Electronic devices include, but are 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), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. They may also include servers, etc. Figure 3 The electronic device shown is merely an example and should not limit the functions and scope of use of the embodiments of the present application.
[0214] The embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer-readable storage medium is run on a computer, the computer can execute the corresponding content in the aforementioned method embodiment. Compared with the related art, in the embodiment of the present application, obtaining the first real-time power of the charging area and the second real-time power of the battery swap area facilitates the calculation of the total power of the entire charging and swapping station. If the total power is in the preset power range, it means that the overall power of the charging and swapping station is about to reach the maximum power that the charging and 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 number of first branches in the charging state of the charging area, the charging time of each first branch for the current charge, and the first power change curve are obtained. The more first branches and the shorter the charging time, the busier the charging area is and most branches are in the early stage of charging. Electric energy is needed to supplement the battery energy, which corresponds to the high importance of the charging area. Similarly, the first power change curve of each first branch records the power change of each first branch, which can also explain the importance of the charging area to a certain extent. Therefore, a more accurate charging state is determined based on the number of first branches, charging time, and first power change curve. The first importance of the area, obtains the relevant data of each second branch in the battery swap area that is in a charging state and the relevant data of each operating vehicle, and can predict the arrival time of each operating vehicle for charging and swapping based on the relevant data of each operating vehicle. The closer the arrival time for charging and swapping, the more the battery swap area needs to charge the replaced battery, which means that the importance of the battery swap area is higher. The second power change curve on the second branch and the battery power also represent the importance of the battery swap area. Therefore, according to the second power change curve, the battery power and the arrival time for charging and swapping, a more accurate second importance of the battery swap area can be comprehensively determined. Finally, according to the first importance and the second importance, a more reasonable power allocation strategy for the charging area and the battery swap area can be determined, and the power upper limit of the charging area and the battery swap area can be adjusted according to the power allocation strategy. Finally, when the total power that the charging and swapping station can withstand is about to be reached, the reasonable and accurate intelligent allocation of power to the charging area and the battery swap area is realized.
[0215] It should be understood that although the steps in the flowcharts of the accompanying drawings are shown in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the flowcharts of the accompanying drawings may include multiple sub-steps or multiple stages, and 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 in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0216] The above are only some of the implementation methods of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A power distribution method for a charging and swapping station, characterized in that: include: Obtain a first real-time power of the charging area and a second real-time power of the battery swapping area, and determine the sum of the first real-time power and the second real-time power; If the total power is within the preset power range, obtaining the number of first branches in the charging state in the charging area, the current charging time of each first branch, and the first power change curve; determining a first importance of the charging area based on the number of the first branches, the charging duration, and the first power variation curve; Obtain the second power change curve on each second branch in the charging state in the battery swap area, the battery power on each second branch, the location information of each operating vehicle, the historical timetable for charging or battery swapping, the mileage after the last charging or battery swapping, and the power change curve; Determine the arrival charging or battery replacement time of each operating vehicle based on the location information, the historical charging or battery replacement schedule, the mileage after the last charging or battery replacement, and the battery change curve; Determining the second importance of the battery swap area based on the second power change curve, the battery power, and the arrival charging and swapping time; The power allocation strategy for the charging area and the battery swapping area is determined based on the first importance and the second importance, and the power upper limits of the charging area and the battery swapping area are adjusted according to the power allocation strategy.
2. A power distribution method for a charging and swapping station according to claim 1, characterized in that: The determining the first importance of the charging area based on the number of the first branches, the charging duration, and the first power variation curve includes: determining a first ratio of the number of the first branches to the number of all branches in the charging area; Determining a first power value at a current moment from the first power change curve, and determining an average power value of all first branches based on the first power value at the current moment and the number of the first branches; Obtaining historical charging data of each first branch, wherein the historical charging data includes the duration of each charging in history; Calculating a historical average charging duration of all first branches based on the duration of each charging in the history; Calculating a current average charging time based on the charging time of each first branch, and determining a second ratio of the charging time to a historical average charging time; 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; Determine a first characteristic value representing the importance of each first branch based on the power value variance, the first power value at the current moment, and the charging duration; A first importance of the charging area is determined based on the first ratio, the power average value, the second ratio, and the first characteristic value.
3. A power distribution method for a charging and swapping station according to claim 2, characterized in that: The determining of a first characteristic value representing the importance of each first branch based on the power value variance, the first power value at the current moment, and the charging duration includes: Calculating a first product of the power value variance and a first power value; Calculating a third ratio of the charging duration to the historical average charging duration; The first eigenvalue is obtained by dividing the first product by a third ratio.
4. A power distribution method for a charging and swapping station according to claim 1, characterized in that: The determining the second importance of the battery swapping area based on the second power change curve, the battery power, and the arrival charging and swapping time includes: determining a second power value at a current moment from the second power variation curve; Determine a second characteristic value representing the importance of each second branch based on the second power value and the power level of the battery; Determine a concentrated arrival time period based on the arrival charging and battery swapping time of each operating vehicle; Determine the time difference between the starting time of the concentrated arrival time period and the current time; Determine a target second branch whose power reaches a preset power threshold from all second branches, and calculate the ratio of the target second branch to the number of operating vehicles in the concentrated arrival time period; The second importance of the battery exchange area is determined based on the quantity ratio, the time difference, and the second characteristic value of the importance of each second branch.
5. A power distribution method for a charging and swapping station according to claim 1, characterized in that: The power allocation strategy includes a power upper limit of the charging area and a power upper limit of the battery swapping area. The power allocation strategy of the charging area and the battery swapping area is determined based on the first importance and the second importance, including: determining a second product of the first importance and the first real-time power, and determining a third product of the second importance and the second real-time power; calculating a 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; The power upper limit of the charging area is obtained by multiplying the preset power threshold by the fourth ratio, and the power upper limit of the battery swapping area is obtained by multiplying the preset power threshold by the fifth ratio. The preset power threshold is the total power that the charging and swapping station can withstand.
6. A power distribution method for a charging and swapping station according to claim 1, characterized in that: The method of determining the arrival charging or battery swapping time of each operating vehicle based on the location information, the historical charging or battery swapping schedule, the mileage after the last charging or battery swapping, and the power change curve includes: The location information, historical charging or battery replacement schedule, mileage after the last charging or battery replacement, and battery change curve are input into the trained network model to predict the arrival time, and the arrival charging or battery replacement time of each operating vehicle is obtained.
7. A power distribution method for a charging and swapping station according to claim 4, characterized in that: The determining of the concentrated arrival time period based on the arrival charging and battery swapping time of each operating vehicle includes: Marking the charging and battery swapping time of each operating vehicle at the station on the time axis to obtain a marked time axis; Shifting on the marked time axis according to a preset time span and a preset step size to obtain an initial position and a time period corresponding to each shift; The time period when the number of arrival charging and battery swapping times reaches a preset threshold and is closest to the current moment is determined as the concentrated arrival time period.
8. A power distribution system for a charging and swapping station, characterized in that: include: A first acquisition module is used to obtain a first real-time power of the charging area and a second real-time power of the battery swap area, and determine the sum of the first real-time power and the second real-time power; a second acquisition module, configured to acquire, when the total power is within a preset power range, the number of first branches in a charging state in the charging area, the current charging duration of each first branch, and a first power variation curve; a first determining module, configured to determine a first importance of the charging area based on the number of the first branches, the charging duration, and the first power variation curve; The third acquisition module is used to obtain the second power change curve of each second branch in the charging state in the battery swap area, the power of the battery on each second branch, the location information of each operating vehicle, the historical timetable of charging or battery swapping, the mileage after the last charging or battery swapping, and the power change curve; The second determination module is used to determine the arrival charging or battery replacement time of each operating vehicle based on the location information, the historical charging or battery replacement schedule, the mileage after the last charging or battery replacement, and the power change curve; A third determining module is used to determine the second importance of the battery swap area based on the second power change curve, the battery power and the arrival charging and swapping time; The fourth determination module is used to determine the power allocation strategy of the charging area and the battery swapping area based on the first importance and the second importance, and adjust the power upper limit of the charging area and the battery swapping area according to the power allocation strategy.
9. An electronic device, characterized in that: It includes: at least one processor; Memory; At least one application, wherein the at least one application is stored in the memory and configured to be executed by the at least one processor, and the at least one application is used to execute a power distribution 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 caused to execute the power distribution 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