Charging module distribution method of charging pile, charging module cabinet and charging pile
Patent Information
- Application Number
- CN202610907829.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-23
- Publication Date
- 2026-08-18
AI Technical Summary
[0005]本申请实施例提供了一种充电桩的充电模块分配方法、充电模块柜及充电桩,以解决高峰时段充电桩的充电模块利用率低的问题,提高充电模块的资源利用率,实现充电桩的总功率最大化
本申请实施例充电桩配置有多个充电模块和多把充电枪,对监测到所有充电枪所需的充电模块的总需求数量,与充电桩中充电模块的可用总量进行比较,若总需求数量大于可用总量,说明充电桩的充电模块不能满足所有充电枪的需求,需要对充电枪的需求进行削减。通过每把充电枪的等效需求数量,可以确定需要进行充电模块削减的第一充电枪;其中,每把充电枪的等效需求数量为该充电枪的需求功率与充电模块的额定功率之间的比值,这是每把充电枪理论上所需要的充电模块;每把充电枪具有优先级,每把充电枪的优先级与其等效需求数量的小数部分呈正相关关系,即等效需求数量的小数部分越小,该充电枪的优先级越低;第一充电枪为所有充电枪中优先级最低的至少一把充电枪,即选择出至少一把优先级最低的充电枪。那么在进行充电模块的削减时,可以将第一充电枪的实际需求数量减一,得到第一充电枪的第一分配数量;其中,实际需求数量为相应的等效需求数量向上取整的值。这里,充电枪的优先级越低,越优先削减该充电枪所需的充电模块,由于优先被削减的第一充电枪的小数部分小,削减实际上是将小数部分对应的低功率的充电模块需求去掉,保留整数部分的高功率的充电模块需求,削减边际贡献低的充电模块需求。那么在根据第一充电枪的第一分配数量,为第一充电枪分配充电模块后,每个充电模块可以尽可能多地提供功率,在充电模块资源不足时保障整个系统的总功率最优,最大化利用充电模块整体功率,缩短在充电桩上充电的所有电动汽车的总充电时长,提升充电桩充电的周转效率。
Smart Images

Figure CN122585026A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of charging pile technology, and in particular to a charging module allocation method, charging module cabinet and charging pile for a charging pile. Background Technology
[0002] With the rapid development of the new energy electric vehicle industry, the number of charging piles, as its core infrastructure, is also growing rapidly. Charging piles typically consist of a charging module cabinet and multiple charging guns. The charging module cabinet contains multiple charging modules, each with its AC input connected to the mains power supply and its DC output connected in parallel to the DC bus within the cabinet. Each charging gun is connected to the DC bus via a switching unit. By controlling the switching unit's on / off state, power from several charging modules can be allocated from the DC bus to the charging gun, thus enabling the charging gun to charge the electric vehicle's battery.
[0003] A single charging module can only supply power to one charging gun at a time, while each charging gun can simultaneously draw upon multiple charging modules to output power in parallel. During peak charging periods, when multiple vehicles connect to charging stations at the same time, the total demand for charging modules from all charging guns can easily exceed the total number of available charging modules in the charging module cabinet. Therefore, it is necessary to efficiently and rationally allocate the limited number of charging modules.
[0004] In related technologies, the scheduling of charging modules typically adopts an on-demand allocation method. When the total demand exceeds the available capacity, scheduling can be carried out using methods such as priority occupancy, average reduction, or proportional reduction. For example, when using the priority occupancy principle, the power demand of the charging gun connected to the electric vehicle first is prioritized according to the order of connection. When using the average reduction method, the same power demand is uniformly reduced for all charging guns. When using the proportional reduction method, the power reduction value allocated to each charging gun is determined proportionally based on the power demand of each charging gun. However, the inventors of this application have found that when using the above-mentioned scheduling methods, it is easy to have low utilization rates of some charging modules, resulting in idle and wasted resources of some charging modules, leading to low overall efficiency of the charging module cabinet and affecting the charging power and charging time of some vehicles. Summary of the Invention
[0005] This application provides a charging module allocation method, a charging module cabinet, and a charging pile to solve the problem of low utilization rate of charging modules during peak hours, improve the resource utilization rate of charging modules, and maximize the total power of the charging pile.
[0006] In a first aspect, embodiments of this application provide a method for allocating charging modules in a charging pile, wherein the charging pile is configured with multiple charging modules and multiple charging guns, and the method includes: If the total demand for charging modules required by all electric vehicles connected to all charging guns is detected to be greater than the total number of available charging modules in the charging pile, then a first charging gun is determined based on the equivalent demand of the electric vehicles connected to each charging gun; wherein, the equivalent demand of the electric vehicles connected to each charging gun is the ratio between the power demand of the electric vehicles connected to that charging gun and the rated power of the charging module; each charging gun has a priority, and the priority of each charging gun is positively correlated with the fractional part of its equivalent demand; the first charging gun is at least one charging gun with the lowest priority among all charging guns. Subtract one from the actual number of electric vehicles connected to the first charging gun to obtain the first allocation number of the first charging gun; wherein, the actual demand number is the value of the corresponding equivalent demand number rounded up. Based on the first allocation quantity of the first charging gun, a charging module is allocated to the first charging gun.
[0007] In one possible implementation, the method further includes: For charging guns whose equivalent demand quantity has a fractional part less than or equal to a preset threshold, the priority of each charging gun is obtained by sorting them from smallest to largest fractional part. Charging guns with an empty decimal part or a decimal part greater than a preset threshold in the equivalent demand quantity are assigned the highest priority.
[0008] In one possible implementation, after sorting the charging guns by their fractional parts in ascending order of equivalent demand quantity to obtain the priority of each equivalent demand quantity including the fractional part, the method further includes: If there are at least two charging guns with the same priority, update the priority of the at least two charging guns based on the integer part of their deployment duration and / or equivalent demand quantity.
[0009] In one possible implementation, if the total demand for charging modules required by all electric vehicles connected to all charging guns is detected to be greater than the total number of available charging modules in the charging pile, then determining the first charging gun based on the equivalent demand of electric vehicles connected to each charging gun includes: If a new electric vehicle is detected to be connected to the charging gun of the charging pile, and the total number of charging modules required by all electric vehicles connected to the charging guns after the connection of the electric vehicle is greater than the total number of available charging modules in the charging pile, then it is detected whether the total historical demand before the connection of the electric vehicle is less than the total number of available modules. If the total historical demand is greater than or equal to the total available quantity, then at least one of the active charging guns with the lowest priority is determined as the first charging gun; wherein, the active charging gun is the charging gun other than the charging gun for newly connected electric vehicles; If the total historical demand is less than the total available quantity, then it is detected whether the difference between the total demand and the total available quantity is greater than 1, and it is detected whether there are charging guns among the active charging guns whose fractional part of the equivalent demand is less than or equal to a preset threshold. If the difference between the total demand and the total available quantity is greater than 1, and there are charging guns among the active charging guns whose equivalent demand quantity is less than or equal to a preset threshold, then the charging gun with the lowest priority among the active charging guns is determined as the first charging gun.
[0010] In one possible implementation, after subtracting one from the actual number of electric vehicles connected to the first charging gun to obtain the first allocated number of the first charging gun, the method further includes: The actual number of electric vehicles connected to the active charging guns other than the first charging gun is determined as the first allocation number of active charging guns other than the first charging gun. Based on the first allocation number of active charging guns other than the first charging gun, a charging module is allocated to the active charging guns other than the first charging gun. The remaining number of charging modules is obtained by calculating the difference between the total available quantity and the sum of the first allocated quantities of all active charging guns; Based on the remaining quantity, charging modules are allocated to the charging guns of newly connected electric vehicles.
[0011] In one possible implementation, determining the lowest priority charging gun among all charging guns as the first charging gun includes: Calculate the difference between the total demand and the total available quantity to obtain the first quantity; If the second quantity is greater than or equal to the first quantity, then the third quantity of charging guns with the lowest priority among all charging guns is determined as the first charging gun; wherein, the second quantity is the number of charging guns whose fractional part of the equivalent demand quantity is less than or equal to a preset threshold, and the third quantity is equal to the first quantity or the first quantity minus one.
[0012] In one possible implementation, after subtracting one from the actual number of electric vehicles connected to the first charging gun to obtain the first allocated number of the first charging gun, the method further includes: If the second quantity is greater than or equal to the first quantity, and the third quantity is equal to the first quantity, then the actual demand of the electric vehicles connected to the second charging gun is determined as the first allocation quantity of the second charging gun; wherein, the second charging gun is the charging gun in the charging pile other than the first charging gun; Based on the first allocation quantity of the second charging gun, a charging module is allocated to the second charging gun.
[0013] In one possible implementation, after calculating the difference between the total demand and the total available quantity to obtain the first quantity, the method further includes: If the second quantity is less than the first quantity, then the second quantity of charging guns with the lowest priority among all charging guns is determined as the third charging gun; Subtract one from the actual number of electric vehicles connected to the third charging gun to obtain the second allocation number of the third charging gun; The actual number of electric vehicles connected to the fourth charging gun is determined as the second allocation number of the fourth charging gun; wherein, the fourth charging gun is the charging gun in the charging pile other than the third charging gun. Calculate the difference between the first quantity and the second quantity to obtain the fourth quantity; The second allocation quantity of at least one charging gun is updated based on the fourth quantity; Based on the updated second allocation quantity for each charging gun, assign a charging module to each charging gun.
[0014] In one possible implementation, updating the second allocation quantity of at least one charging gun based on the fourth quantity includes: If the total demand is greater than the available total due to the charging guns of the charging pile being newly connected to electric vehicles, and the second allocation of the charging guns of the newly connected electric vehicles is greater than the fourth allocation, then the difference between the second allocation of the charging guns of the newly connected electric vehicles and the fourth allocation is calculated to obtain the fifth allocation. The second allocation number of charging guns for newly connected electric vehicles is updated to the fifth number.
[0015] In one possible implementation, before determining the first charging gun based on the equivalent demand of the electric vehicles connected to each charging gun if the total demand for charging modules required by all the electric vehicles connected to all charging guns is detected to be greater than the total number of available charging modules in the charging pile, the method further includes: Get the current power demand of the electric vehicles connected to each charging gun of the charging pile, and the historical power demand of the electric vehicles connected to each charging gun when the charging module was last allocated. Based on the current power demand and the historical power demand, determine the change in power demand of the electric vehicle connected to each charging gun; If the change in demand power is greater than a preset change threshold, then the following steps are executed: "If the total demand for charging modules required by all electric vehicles connected to all charging guns is greater than the total number of available charging modules in the charging pile, then the first charging gun is determined based on the equivalent demand of electric vehicles connected to each charging gun" and its subsequent steps. If the change in required power is less than or equal to a preset change threshold, then the charging module allocated to each charging gun in the previous cycle will be maintained.
[0016] In one possible implementation, the method further includes: If the total demand is less than or equal to the available quantity, then a charging module is allocated to each charging gun based on the actual demand of the electric vehicles connected to each charging gun.
[0017] Secondly, embodiments of this application provide a charging module distribution device for a charging pile, wherein the charging pile is configured with multiple charging modules and multiple charging guns, and the device includes: A determination module is used to determine whether the charging pile is configured with multiple charging modules and multiple charging guns, and the method includes: If the total demand for charging modules required by all electric vehicles connected to all charging guns is detected to be greater than the total number of available charging modules in the charging pile, then a first charging gun is determined based on the equivalent demand of the electric vehicles connected to each charging gun; wherein, the equivalent demand of the electric vehicles connected to each charging gun is the ratio between the power demand of the electric vehicles connected to that charging gun and the rated power of the charging module; each charging gun has a priority, and the priority of each charging gun is positively correlated with the fractional part of its equivalent demand; the first charging gun is at least one charging gun with the lowest priority among all charging guns. The reduction module is used to subtract one from the actual demand number of electric vehicles connected to the first charging gun to obtain the first allocation number of the first charging gun; wherein, the actual demand number is the value of the corresponding equivalent demand number rounded up. The allocation module is used to allocate charging modules to the first charging gun according to the first allocation quantity of the first charging gun.
[0018] Thirdly, embodiments of this application provide a charging module cabinet, including a controller and multiple charging modules, wherein the controller is used to implement the method in the first aspect or any possible implementation of the first aspect.
[0019] Fourthly, embodiments of this application provide a charging pile, including the charging module cabinet and multiple charging guns as described in the third aspect above.
[0020] Fifthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the methods described in the first aspect or any possible implementation thereof.
[0021] In a sixth aspect, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the method described in the first aspect or any possible implementation thereof.
[0022] The beneficial effects of the embodiments in this application compared with the prior art are: This application embodiment of the charging pile is configured with multiple charging modules and multiple charging guns. The total required number of charging modules for all charging guns is compared with the total available number of charging modules in the charging pile. If the total required number is greater than the available number, it indicates that the charging pile's charging modules cannot meet the needs of all charging guns, and the demand for charging guns needs to be reduced. The equivalent required number of each charging gun can be used to determine the first charging gun for which charging module reduction is needed. The equivalent required number of each charging gun is the ratio between the charging gun's required power and the rated power of the charging module; this is the theoretical required number of charging modules for each charging gun. Each charging gun has a priority, and the priority of each charging gun is positively correlated with the decimal part of its equivalent required number; that is, the smaller the decimal part of the equivalent required number, the lower the priority of the charging gun. The first charging gun is at least one charging gun with the lowest priority among all charging guns, i.e., at least one charging gun with the lowest priority is selected. Therefore, when reducing the number of charging modules, the actual required number of the first charging gun can be subtracted by one to obtain the first allocated number of the first charging gun; where the actual required number is the floor value of the corresponding equivalent required number. Here, the lower the priority of a charging gun, the more preferentially its required charging modules are reduced. Since the fractional part of the first charging gun to be reduced is small, the reduction actually removes the low-power charging module requirements corresponding to the fractional part, retains the high-power charging module requirements of the integer part, and reduces the requirements of charging modules with low marginal contribution. Therefore, after allocating charging modules to the first charging gun according to its initial allocation quantity, each charging module can provide as much power as possible. This ensures optimal total power for the entire system when charging module resources are insufficient, maximizes the utilization of the overall power of the charging modules, shortens the total charging time for all electric vehicles charging at the charging station, and improves the turnover efficiency of the charging station. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1 This is an application scenario diagram of the charging module allocation method for charging piles provided in the embodiments of this application; Figure 2 This is a flowchart illustrating the implementation of the charging module allocation method for a charging pile provided in this application embodiment; Figure 3 This is a schematic flowchart of a charging module allocation method for a charging pile provided in an embodiment of this application; Figure 4 This is a flowchart illustrating a charging module allocation method for a charging pile according to another embodiment of this application; Figure 5 This is a flowchart illustrating a charging module allocation method for a charging pile according to another embodiment of this application; Figure 6 This is a schematic diagram of the charging module distribution device for the charging pile provided in the embodiments of this application. Detailed Implementation
[0025] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.
[0026] like Figure 1As shown, a charging station typically includes a charging module cabinet and multiple charging guns. The charging module cabinet usually contains multiple charging modules, which are the smallest indivisible scheduling unit within the cabinet. Furthermore, the charging modules are usually of uniform specifications and have the same rated power. During charging, each charging module can supply power to each charging gun, but a single charging module can only be exclusively used by one charging gun at a time. Each charging gun can simultaneously utilize multiple charging modules in parallel output power. The charging station can allocate charging modules to the charging guns connected to each electric vehicle based on the charging power demand of the connected electric vehicles. During peak charging periods, multiple electric vehicles simultaneously connect to the charging station, and the total number of charging modules required by all connected electric vehicles can easily exceed the total number of available charging modules in the charging module cabinet. Additionally, electric vehicles are equipped with a Battery Management System (BMS) that monitors the status of their energy storage batteries. During charging, the BMS monitors the battery status and dynamically adjusts the required power. When the power demand of electric vehicles increases, the total number of charging modules required by all connected electric vehicles may also exceed the total number of available charging modules in the charging module cabinet.
[0027] When the total demand exceeds the available capacity, charging modules can be scheduled using methods such as priority allocation, average reduction, or proportional reduction. However, different electric vehicles have varying power requirements, while a charging module's rated power is relatively large (e.g., 30kW, 40kW, and 50kW), making it difficult to precisely match the electric vehicle's power demand. This results in some charging modules having an output power lower than their rated power. When scheduling charging modules using the aforementioned power reduction methods, although the electric vehicle's power demand is reduced on an average or proportional basis, it still cannot match the charging module's rated power. Before and after the power reduction, there will still be instances where the charging module's output power is lower than its rated power. For example, if a charging module's rated power is 40kW and the electric vehicle's power demand is 100kW, requiring three charging modules to power the electric vehicle, this can be equivalent to two charging modules operating at full power and the third outputting 20kW. If the power is reduced by 35kW using the aforementioned method, it's equivalent to one charging module operating at full power and the other outputting 25kW, but one charging module will still still have an output power lower than its rated power. Although the number of required charging modules has been reduced, the low output power and low utilization rate of the charging modules in the output module cabinet result in some charging resources being idle and wasted, affecting the charging power and charging time of electric vehicles.
[0028] To improve the utilization rate of charging module resources, this embodiment determines the first charging gun to be reduced based on the equivalent demand quantity of each charging gun. The priority of each charging gun is positively correlated with the fractional part of its equivalent demand quantity; the smaller the fractional part, the lower the priority of the charging gun. By selecting at least one charging gun with the lowest priority as the first charging gun for charging module reduction, the low-power charging module demand corresponding to the fractional part can be removed, while the high-power charging module demand corresponding to the integer part can be retained. The demand for charging modules with low marginal contribution is reduced, so that each charging module can provide as much power as possible, thereby maximizing the utilization of the overall power of the charging module, improving the utilization rate of the charging module, and shortening the total charging time of all electric vehicles charging at the charging pile.
[0029] To make the objectives, technical solutions, and advantages of this application clearer, the following description will be provided in conjunction with the accompanying drawings and specific embodiments.
[0030] See Figure 2 The flowchart illustrating the implementation of the charging module allocation method for a charging pile provided in this application embodiment is described in detail below: Step 201: If the total demand for charging modules required by all electric vehicles connected to all charging guns is detected to be greater than the total number of available charging modules in the charging pile, then a first charging gun is determined based on the equivalent demand of electric vehicles connected to each charging gun; wherein, the equivalent demand of electric vehicles connected to each charging gun is the ratio between the power demand of the electric vehicle connected to the charging gun and the rated power of the charging module; each charging gun has a priority, and the priority of each charging gun is positively correlated with the fractional part of its equivalent demand; the first charging gun is at least one charging gun with the lowest priority among all charging guns.
[0031] Here, the total number of available charging modules in a charging pile is the total number of physical charging modules in the charging module cabinet that are in normal condition and can participate in global scheduling after removing faulty, locked, and maintenance-related charging modules. It is the upper limit of the hardware resources of the charging pile.
[0032] Electric vehicles connected to charging stations have a power demand for charging, which is the desired charging power during the charging process. This power demand typically changes dynamically with the battery state.
[0033] The equivalent demand quantity is used to characterize how many full-power output charging modules are needed to meet the charging demand of an electric vehicle. In other words, the equivalent demand quantity is the ratio between the required power and the rated power of the charging module. This equivalent demand quantity is usually a decimal value. For example, if an electric vehicle's charging power requirement is 50kW and the rated power of the charging module is 40kW, then the equivalent demand quantity = 50kW / 40kW = 1.25. Here, 1 is the integer part, indicating that one charging module with full power output or rated power output is needed, and 0.25 is the decimal part, indicating that one charging module with 25% of the rated power output is needed. Alternatively, the decimal part of the equivalent demand quantity may be empty. For example, if the required power is 80kW, the equivalent demand quantity = 80kW / 40kW = 2, with the integer part being 2, indicating that two full-power output charging modules are needed, and the decimal part being empty. Furthermore, electric vehicles with an equivalent demand quantity less than or equal to 1 are usually not included in the charging module scheduling to ensure that they can charge after connecting to a charging station.
[0034] The decimal part reflects the power output of charging modules that are not at their rated power output in the electric vehicle charging demand. The smaller the decimal part, the smaller the power output required by the charging module, and the lower the utilization rate of the charging module; the larger the decimal part, the greater the power output required by the charging module, the higher the utilization rate of the charging module, and also the more the electric vehicle needs the power output of this charging module. The value of the decimal part is (0, 1). If the equivalent demand quantity is an integer such as 1, 2, or 3, the decimal part can be considered empty.
[0035] Since a charging module can only be allocated to one charging gun for exclusive use at any given time, the actual number of charging modules required by an electric vehicle should be the floor value of the equivalent demand, i.e., the actual demand. For example, if the equivalent demand is 1.6, the corresponding actual demand is 2; if the equivalent demand is 2.2, the corresponding actual demand is 3; and if the equivalent demand is 3, the corresponding actual demand is also 3.
[0036] The total number of charging modules required by all electric vehicles connected to all charging guns on the charging pile is the sum of the actual number of electric vehicles connected to all charging guns, representing the total number of charging modules required for all electric vehicles to be charged at full load simultaneously.
[0037] The priority of a charging gun is positively correlated with the decimal part of its equivalent demand quantity; the larger the decimal part, the higher the priority, and the smaller the decimal part, the lower the priority. For example, a charging gun with a decimal part of 0.1 has a lower priority than a charging gun with a decimal part of 0.5.
[0038] The first charging gun is the lowest priority charging gun among all charging guns, and it is the charging gun with the smallest decimal part (closest to 0) among all charging guns, so it is given priority for reduction.
[0039] The total available number of charging modules for a charging station is fixed. When the total demand for charging modules from all electric vehicles connected to the charging station exceeds the available total, some vehicles must be derated. In this embodiment, when the condition of total demand exceeding the available total is triggered, the lowest priority charging modules are identified by using the fractional part of the equivalent demand of electric vehicles. These modules, i.e., those with low output power and low utilization, are then removed, and their corresponding charging power is reduced.
[0040] Among these, the total demand for charging modules required by all electric vehicles connected to all charging guns exceeds the total number of available charging modules in the charging piles, and the following situations exist: (1) There are new electric vehicles connected to charging piles, resulting in the total demand exceeding the available total. This may include situations where the total demand was already greater than the available total before the new electric vehicle connected, or situations where the total demand was not greater than the available total before the connection, but the total demand exceeds the available total after the connection.
[0041] (2) Since the power demand of electric vehicles can change, an increase in the power demand of a particular electric vehicle connected to a charging station can cause the total demand to exceed the available total. This includes situations where the total demand was already greater than the available total before the power demand increased, and situations where the total demand was not greater than the available total before the power demand increased, but the total demand exceeds the available total after the power demand increases.
[0042] (3) The power demand of a certain electric vehicle connected to the charging pile may also decrease. If the total demand is greater than the available total before the power demand decreases, the total demand will still be greater than the available total after the power demand decreases.
[0043] (4) There are cases where electric vehicles stop charging and disconnect from the charging pile. If the total demand is greater than the available total before charging stops, the total demand is still greater than the available total after charging stops.
[0044] The above are just examples to illustrate the situations that trigger the condition that the total demand exceeds the total available supply, and are not limited to the four situations mentioned above.
[0045] Optionally, if the total demand for charging modules required by all electric vehicles connected to all charging guns is detected to be greater than the total number of available charging modules in the charging pile, before determining the first charging gun based on the equivalent demand of electric vehicles connected to each charging gun, the following steps can be taken: first, obtain the current demand power of electric vehicles connected to each charging gun in the charging pile, and the historical demand power of electric vehicles connected to each charging gun when charging modules were last allocated; determine the change in demand power of electric vehicles connected to each charging gun based on the current demand power and the historical demand power; if the change in demand power is greater than a preset change threshold, then execute the step of "determining the first charging gun based on the equivalent demand of electric vehicles connected to each charging gun if the total demand for charging modules required by all electric vehicles connected to all charging guns is detected to be greater than the total number of available charging modules in the charging pile" and its subsequent steps; if the change in demand power is less than or equal to the preset change threshold, then maintain the charging modules allocated to each charging gun in the last time.
[0046] The current power demand refers to the charging power demand of the electric vehicle connected to the charging gun, which is currently acquired in real time, indicating the vehicle's expected charging output power. The historical power demand is the charging power demand of the electric vehicle connected to the charging gun when the charging module was last allocated or scheduled. Specifically, if the electric vehicle is newly connected to the charging pile, the charging gun did not actually have a corresponding power demand when the charging module was last allocated or scheduled, so the historical power demand can be set to 0. Similarly, if the electric vehicle exits charging, and the charging gun had a corresponding power demand when the charging module was last allocated or scheduled, but currently there is no corresponding power demand acquired in real time, then the current power demand can be set to 0.
[0047] The change in power demand can be the absolute value of the difference between the current power demand and the historical power demand, i.e. Because different electric vehicles have different charging designs and battery states, to clearly define the power variation of each electric vehicle, the change in power demand can also be expressed as a relative proportion based on historical power demand. .in, This represents the change in power demand. Indicates the current power demand. This represents the historical power demand. If the historical power demand is 0, but the current power demand is not 0, it indicates that a new electric vehicle has been connected for charging. In this case, the steps "If the total demand for charging modules required by all electric vehicles connected to all charging guns is greater than the total available charging modules in the charging pile, then determine the first charging gun based on the equivalent demand of the electric vehicles connected to each charging gun" and its subsequent steps can be executed directly. Alternatively, if the historical power demand is 0, the change in power demand can be determined simply by using the difference.
[0048] The change threshold corresponds to the form of demand change. If the demand change is in the form of an increment, the change threshold can be a preset power value, such as 5kW, 8kW, and 10kW. If the demand change is in the form of a percentage, the change threshold can be a preset percentage value, such as 5%, 6%, and 7%.
[0049] By comparing the change in demand with a threshold value, a trigger condition is determined. If the change in demand exceeds the threshold, it indicates a significant change in the power demand of electric vehicles connected to the charging guns, requiring re-optimization and allocation. If the change in demand does not exceed the threshold, no adjustment to the charging module allocation for any charging gun is needed; the charging modules of each charging gun continue to use the previous allocation results to avoid frequent fluctuations due to power demand changes, which could negatively impact the charging experience of electric vehicles.
[0050] Step 202: Subtract one from the actual number of electric vehicles connected to the first charging gun to obtain the first allocation quantity of the first charging gun; wherein, the actual demand quantity is the value of the corresponding equivalent demand quantity rounded up.
[0051] In this embodiment, the actual number of electric vehicles connected to the selected first charging gun is reduced by one to cut off the charging modules corresponding to its fractional part. This allows for the initial allocation of the first number of charging modules to be assigned to the first charging gun, and these charging modules can maintain full power output.
[0052] Here, the minimum value of the first allocation is 1, and it will not be reduced to 0 to avoid charging interruptions for electric vehicles. Electric vehicles with an equivalent demand of less than or equal to 1 typically do not participate in the scheduling of charging modules, and their connected charging guns are usually not used as the first charging guns, nor are they subject to being removed from the charging module schedule.
[0053] Step 203: Assign a charging module to the first charging gun according to the first allocation quantity of the first charging gun.
[0054] In this embodiment, charging modules can be allocated to the first charging gun according to the first allocation quantity calculated above, so that the allocated charging modules output at rated power, reducing the number of charging modules that do not output at rated power, thereby improving the resource utilization rate of the charging modules.
[0055] Furthermore, if the total number of electric vehicles allocated after the reduction still exceeds the total number of available charging modules, the above steps can be repeated to reduce the demand for charging modules until the total number of electric vehicles allocated does not exceed the total number of available charging modules.
[0056] In addition, in some embodiments, if the total demand is less than or equal to the available total, a charging module is allocated to each charging gun based on the actual demand of the electric vehicles connected to each charging gun.
[0057] In this embodiment, if the total demand is less than or equal to the available total, it means that the charging modules in the charging pile can meet the charging needs of each electric vehicle connected to the charging pile. In this case, charging modules can be allocated to each charging gun according to the actual demand, without the need to reduce the number of charging modules.
[0058] This application embodiment of the charging pile is configured with multiple charging modules and multiple charging guns. The total required number of charging modules for all charging guns is compared with the total available number of charging modules in the charging pile. If the total required number is greater than the available number, it indicates that the charging pile's charging modules cannot meet the needs of all charging guns, and the demand for charging guns needs to be reduced. The equivalent required number of each charging gun can be used to determine the first charging gun for which charging module reduction is needed. The equivalent required number of each charging gun is the ratio between the charging gun's required power and the rated power of the charging module; this is the theoretical required number of charging modules for each charging gun. Each charging gun has a priority, and the priority of each charging gun is positively correlated with the decimal part of its equivalent required number; that is, the smaller the decimal part of the equivalent required number, the lower the priority of the charging gun. The first charging gun is at least one charging gun with the lowest priority among all charging guns, i.e., at least one charging gun with the lowest priority is selected. Therefore, when reducing the number of charging modules, the actual required number of the first charging gun can be subtracted by one to obtain the first allocated number of the first charging gun; where the actual required number is the floor value of the corresponding equivalent required number. Here, the lower the priority of a charging gun, the more preferentially its required charging modules are reduced. Since the fractional part of the first charging gun to be reduced is small, the reduction actually removes the low-power charging module requirements corresponding to the fractional part, retains the high-power charging module requirements of the integer part, and reduces the requirements of charging modules with low marginal contribution. Therefore, after allocating charging modules to the first charging gun according to its initial allocation quantity, each charging module can provide as much power as possible. This ensures optimal total power for the entire system when charging module resources are insufficient, maximizes the utilization of the overall power of the charging modules, shortens the total charging time for all electric vehicles charging at the charging station, and improves the turnover efficiency of the charging station.
[0059] In some embodiments, the charging module allocation method for charging piles provided in this embodiment further includes: for charging guns whose equivalent demand quantity has a fractional part less than or equal to a preset threshold, sorting them by fractional part from smallest to largest to obtain the priority of each charging gun from low to high; and determining the priority of charging guns whose equivalent demand quantity has an empty fractional part or a fractional part greater than the preset threshold as the highest priority.
[0060] In this embodiment, priority indicates the order in which charging guns are protected when faced with a reduction in charging modules. The higher the priority of a charging gun, the less likely it is to be selected for module reduction when the total demand exceeds the available total; the lower the priority of a charging gun, the more likely it is to be the first module to be reduced.
[0061] Here, if the decimal part of the equivalent demand quantity is less than or equal to a preset threshold, it indicates that the output power of the charging module corresponding to that decimal part is relatively low, and the utilization rate of that charging module is low. Accordingly, charging modules with low utilization rates can be eliminated first. That is, for charging guns with a decimal part less than or equal to the preset threshold, their priority can be determined by sorting them from smallest to largest decimal part. For example, if the preset threshold is 0.7, the decimal part corresponding to charging gun A is 0.24, that of charging gun B is 0.1, that of charging gun C is 0.33, and that of charging gun D is 0.47, the decimal parts are sorted from smallest to largest as 0.1, 0.24, 0.33, and 0.47. Therefore, the priority of the charging guns from lowest to highest is B, A, C, and D. Accordingly, when eliminating charging modules, the charging modules of charging gun B should be eliminated first, that is, the charging modules corresponding to a decimal part of 0.1 should be eliminated first.
[0062] If the decimal part of the equivalent demand quantity is greater than a preset threshold, it indicates that the output power of the charging module corresponding to that decimal part is close to its rated power, and the utilization rate of that charging module is high. To ensure the charging efficiency of electric vehicles, no reduction is necessary. Alternatively, reduction can be implemented if reducing the number of charging guns still cannot meet the requirement that the total number of allocated modules does not exceed the total number of available modules. Similarly, if the decimal part is empty, it indicates that the charging modules corresponding to that charging gun are all at their rated power output, and the utilization rate of the charging modules is high. No reduction is necessary. Alternatively, reduction can be implemented if reducing the number of charging guns still results in the total number of allocated modules exceeding the total number of available modules.
[0063] The preset threshold can be selected and set as needed, such as 0.6, 0.7, 0.8, 0.9, and 1. If the preset threshold is 1, it means that only the charging gun with an empty decimal part is given the highest priority, and the decimal parts of the remaining charging guns are sorted from smallest to largest, resulting in a priority order of low to high for each charging gun.
[0064] Optionally, priority can be distinguished between charging guns with empty decimal parts and charging guns with decimal parts greater than a preset threshold. For example, charging guns with empty decimal parts have a higher priority than charging guns with decimal parts greater than a preset threshold. When reducing the number of charging modules, charging modules of charging guns with decimal parts greater than a preset threshold can be reduced first.
[0065] Optionally, after sorting the charging guns by the fractional part of the equivalent demand quantity in ascending order to obtain the priority of each charging gun containing the fractional part of the equivalent demand quantity, if there are at least two charging guns with the same priority, the priority of the at least two charging guns is updated according to the input time and / or the integer part of the equivalent demand quantity of the at least two charging guns.
[0066] In this embodiment, considering that some charging guns may have the same decimal part, for example, two charging guns may have equivalent demand quantities of 2.2 and 3.2, both with a decimal part of 0.2. If the priority of charging guns is determined only by sorting the decimal parts, then these charging guns with the same decimal part will also have the same priority. When reducing the number of charging modules, for these charging guns with the same priority, the required number of charging guns can be randomly selected for the reduction of charging modules. Alternatively, the priority of these charging guns with the same priority can be adjusted to accurately select the charging guns for the reduction of charging modules.
[0067] Here, the priority of charging guns with the same priority can be adjusted according to the integer part of the charging gun's deployment time and / or the equivalent demand quantity.
[0068] Prioritizing charging based on the duration of charging gun usage can ensure a better charging experience for electric vehicles that connect first. Correspondingly, the longer a charging gun is used, the higher its priority; the shorter the usage time, the lower its priority.
[0069] Prioritizing charging based on the integer part of the equivalent demand can prioritize charging electric vehicles with lower charging power. Correspondingly, the larger the integer part corresponding to the charging gun, the lower its priority; the smaller the integer part, the higher its priority. Alternatively, it can prioritize charging electric vehicles with higher charging power, improving the turnover efficiency of charging stations. Again, the larger the integer part corresponding to the charging gun, the higher its priority; the smaller the integer part, the lower its priority.
[0070] The priority can also be adjusted by combining the charging gun's deployment time and the integer part of the equivalent demand quantity. For example, the two can be weighted, or the priority can be adjusted first according to the integer part of the equivalent demand quantity, and then adjusted according to the deployment time if the integer parts are the same. The specific combination method can be selected and set according to actual needs.
[0071] The previous section introduced how to determine the priority of the charging guns. The following section will continue to introduce how to determine the first charging gun and how to allocate charging modules to the remaining charging guns.
[0072] In some embodiments, if the total demand for charging modules required by all electric vehicles connected to all charging guns is detected to be greater than the total number of available charging modules in the charging pile, then a first charging gun is determined based on the equivalent demand of electric vehicles connected to each charging gun, including: If a new electric vehicle is detected to be connected to a charging gun in a charging pile, and the total number of charging modules required by all electric vehicles connected to the charging guns after the connection of the electric vehicle is greater than the total number of available charging modules in the charging pile, then it is checked whether the total historical demand before the connection of the electric vehicle is less than the total available quantity. If the total historical demand is greater than or equal to the total available demand, then at least one of the active charging guns with the lowest priority will be designated as the first charging gun; where active charging guns are those other than those connected to new electric vehicles. If the total historical demand is less than the total available quantity, then check whether the difference between the total demand and the total available quantity is greater than 1, and check whether there are charging guns among the active charging guns whose fractional part of the equivalent demand is less than or equal to a preset threshold. If the difference between the total demand and the total available quantity is greater than 1, and there are charging guns among the active charging guns whose equivalent demand quantity is less than or equal to a preset threshold, then the charging gun with the lowest priority among the active charging guns will be determined as the first charging gun.
[0073] Considering that the total demand exceeding the available capacity could be caused by newly connected electric vehicles (EVs) or by changes in the power demand of these connected EVs, when the total demand exceeds the available capacity due to newly connected EVs, at least one charging module needs to be allocated to each newly connected EV to ensure they can be charged. However, when the total demand exceeds the available capacity due to changes in the power demand of EVs, no new EVs are connected, and all connected EVs are already allocated charging modules, allowing for a reduction in the number of charging modules. Therefore, these two scenarios can be distinguished. This embodiment primarily focuses on the scenario where the total demand exceeds the available capacity due to newly connected EVs.
[0074] Here, when the total demand caused by the newly connected electric vehicles exceeds the total available quantity, since it is necessary to ensure that the newly connected electric vehicles have at least one charging module, we can distinguish between the previous situations of the newly connected electric vehicles, including two situations: the historical total demand is greater than or equal to the total available quantity and the historical total demand is less than the total available quantity.
[0075] One scenario is as follows: If the total historical demand is greater than or equal to the total available quantity, it means that the charging modules in the charging pile were already exhausted before the new electric vehicle connected. To ensure that the new electric vehicle can be charged and to prioritize the charging experience of the first connected electric vehicle, at least one charging gun with the lowest priority is selected from the active charging guns as the first charging gun. Then, the actual demand quantity of the first charging gun is reduced by one to obtain the first allocation quantity of the first charging gun, which is then allocated. The number of first charging guns can be determined based on the sum of the actual demand quantities of all active charging guns and the difference between the total available quantity and the total available quantity. The number of first charging guns = the sum of the actual demand quantities of all active charging guns - the total available quantity + 1. For example, if the total available quantity is 10, and the actual demand quantities of active charging guns are 3, 3, 4, and 2 respectively, then the number of first charging guns = (3 + 3 + 4 + 2) - 10 + 1 = 3, that is, the number of first charging guns is 3, and the 3 charging guns with the lowest priority are selected as the first charging guns. The extra charging module that was originally underutilized can be allocated to the newly connected electric vehicle for charging, so that the newly connected electric vehicle has at least one charging module for charging. Furthermore, this method of allocating only one charging module to newly connected electric vehicles can also prevent the charging demand of later-connected electric vehicles from being too high and competing excessively for the charging modules of other earlier-connected electric vehicles, so as not to affect the charging experience of the earlier-connected electric vehicles.
[0076] Furthermore, if the total demand exceeds the available capacity due to newly connected electric vehicles, the power output of already connected vehicles typically remains unchanged or changes very little. Therefore, a reassignment of charging modules is not necessary. Instead, based on the previous allocation, remove one charging module from the charging gun with the lowest output power and allocate that module to a newly connected electric vehicle. This ensures that the new vehicle has a charging module available for charging. In other words, assigning the lowest-power charging module to a newly connected electric vehicle allows for full-power output, improving the utilization rate of the charging modules.
[0077] The aforementioned active charging guns refer to the charging guns on the charging pile other than those for newly connected electric vehicles. In fact, this is to reduce the charging modules required for other electric vehicles that have been connected earlier.
[0078] Another scenario is as follows: If the total historical demand is less than the available total, it means that before the newly connected electric vehicle connects to the charging pile, there are still spare charging modules in the charging pile to ensure charging for the newly connected electric vehicle. In this case, the shortage of charging modules for the newly connected electric vehicle can be determined by checking if the difference between the total demand and the available total is greater than 1. If the difference is greater than 1, it means the newly connected electric vehicle needs at least one more charging module with its rated output power. To improve the total output power and utilization rate of the charging modules, if there are charging guns with an equivalent demand fraction less than or equal to a preset threshold, the lowest priority charging gun among the active charging guns can be designated as the first charging gun. The actual demand of this first charging gun is reduced by one, i.e., one charging module is removed, and this charging module is allocated to the newly connected electric vehicle for charging. This allows the charging module to go from low-power output to full-power output, improving the utilization rate of the charging modules.
[0079] Correspondingly, if the difference between the total demand and the available quantity is 1, it means that the newly connected electric vehicle needs another charging module. However, this charging module may be low-power output or full-power output, which needs to be determined based on the decimal part of the equivalent demand of the newly connected electric vehicle.
[0080] If the decimal part of the equivalent demand for newly connected electric vehicles is empty or the decimal part is greater than the preset threshold, it means that the charging module required by the newly connected electric vehicle needs to output full power or high power. The original low-power output charging module can be allocated to the newly connected electric vehicle to improve the utilization rate of the charging module.
[0081] If the fractional part of the equivalent demand of a newly connected electric vehicle is less than or equal to a preset threshold of charging guns, it means that the charging module needed by the newly connected electric vehicle only requires low power output. In this case, to prioritize the charging experience of the previously connected electric vehicles, no new charging module needs to be allocated to the newly connected electric vehicle. Alternatively, the fractional part of the equivalent demand of a newly connected electric vehicle can be compared with the fractional part of the lowest priority active charging gun. If the fractional part of the newly connected electric vehicle's demand is greater than the fractional part of the lowest priority active charging gun, one charging module from the lowest priority active charging gun can be allocated to the newly connected electric vehicle to improve the utilization rate of the charging modules.
[0082] In addition, if the total historical demand is less than the total available demand, and it has been ensured that newly connected electric vehicles can be charged, then the charging modules of active charging guns will only be allocated to newly connected electric vehicles when there are charging guns with an equivalent demand fraction less than or equal to a preset threshold, in order to improve the utilization rate of charging modules.
[0083] Optionally, after subtracting one from the actual number of electric vehicles connected to the first charging gun to obtain the first allocation quantity of the first charging gun, this embodiment may further: determine the actual number of electric vehicles connected to active charging guns other than the first charging gun as the first allocation quantity of active charging guns other than the first charging gun; allocate charging modules to active charging guns other than the first charging gun based on the first allocation quantity of active charging guns other than the first charging gun; calculate the difference between the total available quantity and the sum of the first allocation quantities of all active charging guns to obtain the remaining quantity of charging modules; and allocate charging modules to charging guns of newly connected electric vehicles based on the remaining quantity.
[0084] The above embodiments mainly describe the determination of the first charging gun and the first allocation of the charging modules of the first charging gun, but do not describe the allocation of the charging modules of the charging guns other than the first charging gun. This embodiment mainly describes this aspect.
[0085] Since the first charging gun has already been reduced, there is no need to reduce the number of active charging guns other than the first charging gun. The actual number of connected electric vehicles can be directly determined as the first allocation number of the corresponding active charging guns for the allocation of charging modules.
[0086] If the total historical demand is greater than or equal to the total available quantity, it means that there were no spare charging modules available to be allocated to the newly connected electric vehicle before it connected to the charging station, and the number of charging modules has been reduced according to the actual demand and total available quantity of active charging guns. In this case, only the remaining charging module after the reduction will be allocated to the charging gun of the newly connected electric vehicle.
[0087] If the total historical demand is less than the total available quantity, it means that there are still idle charging modules that can be allocated to the newly connected electric vehicle before it connects to the charging pile. In this case, the remaining charging modules will be allocated to the newly connected electric vehicle.
[0088] The above embodiments mainly illustrate that the total demand caused by newly connected electric vehicles exceeds the available total, and that while prioritizing the charging experience of the first connected electric vehicles, at least one charging module is allocated to each newly connected electric vehicle for charging. The following describes the allocation of charging modules in all cases where the total demand exceeds the available total, in order to improve the utilization rate of charging modules. It does not distinguish whether the total demand exceeding the available total is caused by newly connected electric vehicles.
[0089] In some embodiments, the lowest priority charging gun among all charging guns is determined as the first charging gun. This can be achieved by first calculating the difference between the total demand and the available quantity to obtain a first quantity; if the second quantity is greater than or equal to the first quantity, then the lowest priority third quantity of charging guns among all charging guns is determined as the first charging gun; wherein, the second quantity is the number of charging guns whose decimal part of the equivalent demand is less than or equal to a preset threshold, and the third quantity is equal to the first quantity or the first quantity minus one.
[0090] Here, the first quantity is the difference between the total demand and the total available quantity, indicating the demand gap of charging modules in the charging pile, that is, the total number of charging modules that need to be reduced.
[0091] The second quantity is the number of charging guns whose fractional part of the equivalent demand is less than or equal to a preset threshold. It is the number of low-power output charging modules in the charging pile, indicating the number of charging guns in the charging pile that can have their charging modules reduced.
[0092] The third quantity can be equal to or less than the first quantity, representing a reduction in the number of charging guns for the charging module. Typically, the third quantity equals the first quantity. However, when the total demand exceeds the available quantity due to new electric vehicles connecting to the charging pile, and priority is given to ensuring the charging experience of electric vehicles that connect to the charging pile earlier, the third quantity can be equal to the first quantity minus one. This involves removing one from the charging modules corresponding to the electric vehicles that connect to the charging pile earlier, and removing one from the charging modules corresponding to the newly connected electric vehicles. In this case, the newly connected electric vehicles require at least two charging modules to prevent them from being unable to charge or stopping charging.
[0093] The preset threshold can be the same as the preset threshold of the priority part in the above embodiment. Charging guns with a decimal part less than or equal to the preset threshold are charging guns that can have one charging module removed to improve the utilization rate of the charging module. Charging guns with an empty decimal part or a decimal part greater than the preset threshold have a higher utilization rate of the corresponding charging module and can be left unremoved or reduced.
[0094] In this embodiment, when the total demand exceeds the available quantity, the difference between the total demand and the available quantity is first calculated to obtain the first amount by which the total demand exceeds the available quantity, which also means the number of charging modules that need to be reduced.
[0095] Since not all charging guns can be reduced to improve the utilization rate of the charging modules (i.e., not all charging guns are suitable for reduction), in this embodiment, charging guns whose equivalent demand quantity is less than or equal to a preset threshold are prioritized for reduction. Therefore, the second quantity and the first quantity are compared. If the second quantity is greater than or equal to the first quantity, it means that the number of charging guns prioritized for reduction is sufficient, and reducing only these charging guns can solve the problem of the total demand quantity exceeding the available quantity.
[0096] Accordingly, based on the pre-selected method, the third-lowest priority charging gun is determined as the first charging gun. The actual required number of these first charging guns is reduced by one to obtain the first allocation number of these first charging guns, and then the charging modules are allocated. Here, selecting the lowest priority charging guns allows low-utilization charging modules to be reduced first, minimizing the power reduction of the charging guns, while improving the utilization rate of the charging modules and ensuring the overall efficiency of the charging modules.
[0097] If, without other conditions, the third quantity equals the first quantity, then the charging gun with the lowest priority among all charging guns (the first quantity) is determined as the first charging gun. If we distinguish between electric vehicles that have been connected before and those that have been newly connected, and prioritize the charging experience of electric vehicles that have been connected to the charging pile before, the total demand is greater than the available total caused by the charging guns of the charging pile being connected to the newly connected electric vehicle, and the newly connected electric vehicle needs at least two charging modules, then among all charging guns other than those connected to the newly connected electric vehicle, the charging gun with the lowest priority (the first quantity minus one) is determined as the first charging gun. At the same time, the charging module corresponding to the newly connected electric vehicle also needs to be reduced by one.
[0098] Optionally, after subtracting one from the actual number of electric vehicles connected to the first charging gun to obtain the first allocation quantity of the first charging gun, this embodiment further includes: if the second quantity is greater than or equal to the first quantity, and the third quantity is equal to the first quantity, then the actual number of electric vehicles connected to the second charging gun is determined as the first allocation quantity of the second charging gun; wherein, the second charging gun is a charging gun in the charging pile other than the first charging gun; and charging modules are allocated to the second charging gun according to the first allocation quantity of the second charging gun.
[0099] The second charging gun is the charging gun in the charging station other than the first charging gun, that is, the charging gun whose charging module has not been removed.
[0100] In this embodiment, if the second quantity is greater than or equal to the first quantity, that is, the number of first charging guns is sufficient to reduce, and the third quantity is equal to the first quantity, that is, regardless of whether an electric vehicle is connected first or newly connected, then the demand of the second charging guns other than the first charging guns can be met. In this case, the number of charging modules to be allocated to the second charging guns can be determined according to the actual demand, and charging modules can be allocated to the second charging guns.
[0101] In addition, if the second quantity is greater than or equal to the first quantity, and the third quantity is equal to the first quantity minus one, then the actual demand quantity of the newly connected electric vehicles minus one is determined as the first allocation quantity of the newly connected electric vehicles, and the actual demand quantity of electric vehicles other than those connected to the first charging gun and the newly connected electric vehicles is determined as the first allocation quantity of their corresponding charging guns.
[0102] In another embodiment, after calculating the difference between the total demand and the available quantity to obtain a first quantity, the method further includes: if the second quantity is less than the first quantity, then determining the second quantity of charging guns with the lowest priority among all charging guns as the third charging gun; subtracting one from the actual demand of the electric vehicles connected to the third charging gun to obtain the second allocation quantity of the third charging gun; determining the actual demand of the electric vehicles connected to the fourth charging gun as the second allocation quantity of the fourth charging gun; wherein the fourth charging gun is a charging gun in the charging pile other than the third charging gun; then calculating the difference between the first quantity and the second quantity to obtain a fourth quantity; updating the second allocation quantity of at least one charging gun based on the fourth quantity; and finally, allocating a charging module to each charging gun according to the updated second allocation quantity of each charging gun.
[0103] In this embodiment, if the second quantity is less than the first quantity, it indicates that the number of first charging guns is insufficient. Even after reduction, there is still a situation where the total number of charging modules allocated to each charging gun exceeds the available total. Therefore, all charging guns with decimal parts less than or equal to a preset threshold are subject to charging module reduction, that is, the second quantity of charging guns with the lowest priority are reduced. This is the first reduction, which involves removing all charging modules with low utilization rates, leaving charging modules with high utilization rates.
[0104] Since the total number of allocated modules still exceeds the total number of available modules, the difference between the first and second numbers is calculated to obtain the fourth number. This fourth number indicates that the number of charging modules still needs to be reduced, that is, a fourth number of charging modules need to be reduced to make the total number of allocated modules equal to the total number of available modules.
[0105] Here, after the first reduction, all underutilized charging modules have been removed, leaving only highly utilized charging modules on the charging guns. Therefore, all charging guns can undergo a second reduction together. When updating the second allocation quantity of at least one charging gun based on the fourth quantity, it can be done by subtracting one from the second allocation quantity of the fourth quantity of charging guns to obtain the updated second allocation quantity. Alternatively, it can involve further reducing the number of charging modules in the second allocation quantity of one or more charging guns, with the total number of charging modules reduced being the fourth quantity. For example, subtracting the fourth quantity from the second allocation quantity of one charging gun yields the updated second allocation quantity.
[0106] The first reduction process involves eliminating charging modules from all charging guns whose decimal parts are less than or equal to a preset threshold. If the preset threshold is less than 1, some charging modules with non-empty decimal parts will still exist after the first reduction. In the second reduction, these modules with non-empty decimal parts can be prioritized for reduction to further improve the utilization rate of the charging modules. If the preset threshold is greater than or equal to 1, it means that all charging modules corresponding to all decimal parts have been reduced. In this case, during the second reduction, all charging modules corresponding to all charging guns will be at full power output, and any charging gun can be selected for reduction.
[0107] If there are conditions such as prioritizing the charging experience of electric vehicles that are connected first, or prioritizing the charging experience of electric vehicles charging at low power, or prioritizing the charging experience of electric vehicles charging at high power, the selection of a second charging gun can be made according to actual needs.
[0108] Optionally, in this embodiment, updating the second allocation quantity of at least one charging gun based on the fourth quantity can be achieved by first determining the fifth charging gun based on the fourth quantity, the deployment time of each charging gun, and / or the equivalent demand quantity; wherein, the fifth charging gun is at least one charging gun with the lowest second priority among all charging guns; the second priority of each charging gun is determined based on the integer part of its deployment time and / or equivalent demand quantity; then, the second allocation quantity of each fifth charging gun is reduced to obtain the updated second allocation quantity of each fifth charging gun; wherein, the sum of the reductions in the second allocation quantities of all fifth charging guns is the fourth quantity.
[0109] Here, the second priority of the charging gun can also be determined by using the integer part of the charging gun's deployment time and / or equivalent demand quantity. In the second reduction, the charging gun with the lowest second priority is reduced, thereby satisfying different charging needs or charging principles.
[0110] For example, to prioritize the charging experience of electric vehicles that connect first, the secondary priority of the charging gun can be determined based on the duration of its operation. The longer the charging gun is in operation, the higher its secondary priority; the shorter the operation time, the lower its secondary priority.
[0111] Prioritizing the charging experience of electric vehicles with low charging power can be achieved by determining the secondary priority of charging guns based on the integer part of the equivalent demand quantity. The larger the integer part corresponding to the charging gun, the lower its priority; the smaller the integer part, the higher its priority. Conversely, when prioritizing the charging experience of electric vehicles with high charging power, the larger the integer part corresponding to the charging gun, the higher its priority; the smaller the integer part, the lower its priority. This allows electric vehicles with high charging power to be fully charged as quickly as possible, accelerating the turnover rate of charging stations.
[0112] Alternatively, the priority can be adjusted by combining the charging gun's deployment time and the integer part of the equivalent demand quantity, and by weighting the two together, to determine the second priority of the charging gun.
[0113] During the second reduction, at least one charging gun with the lowest priority in the second category can be selected as the fifth charging gun. All fifth charging guns then have a total of four charging modules reduced based on the determined second allocation quantity. For example, if the fourth quantity is 4, and one fifth charging gun is selected with a second allocation quantity of 6, then 4 charging modules are reduced from that fifth charging gun, resulting in a new second allocation quantity of 2 for the fifth charging gun. Alternatively, if the fourth quantity is 4, and three fifth charging guns are selected, with second allocation quantities of 3, 3, and 3 respectively, then one fifth charging gun has 2 charging modules reduced, and the other two have 1 charging module reduced, resulting in new second allocation quantities of 1, 2, and 2 for the fifth charging gun. Furthermore, if the fourth quantity is 3, and two fifth charging guns are selected, with second allocation quantities of 3 and 4 respectively, then one fifth charging gun has 1 charging module reduced, and the other has 2 charging modules reduced, resulting in new second allocation quantities of 2 and 2 for the fifth charging gun. The number of fifth charging guns and the amount to be reduced for each fifth charging gun can be selected as needed. For example, the amount to be reduced can be selected according to the second priority category, with lower priority items reducing the amount by more and higher priority items reducing the amount by less.
[0114] It is important to note that the updated second allocation quantity must be greater than or equal to 1 to ensure that the electric vehicle connected to the charging gun can be charged. In the above embodiment, the priority determined using the decimal part is the first priority of the charging gun, and the first priority and the second priority are the two priorities of the charging gun.
[0115] Optionally, this embodiment provides a specific method for determining the fifth charging gun. Based on the fourth quantity and the deployment time and / or equivalent demand quantity of each charging gun, the fifth charging gun is determined. This can be done by determining the fourth quantity of the charging gun with the lowest priority in the second category among all the charging guns as the fifth charging gun.
[0116] Accordingly, the second allocation quantity of all fifth charging guns is reduced by the fourth quantity to obtain the updated second allocation quantity of each fifth charging gun. Alternatively, the second allocation quantity of the fifth charging gun can be reduced by one to obtain the updated second allocation quantity of the fifth charging gun.
[0117] Here, we can directly select the fourth number of charging guns with the lowest priority in the second category as the fifth charging gun, and reduce the number of each fifth charging gun by one to make the total number of allocated charging guns equal to the total number of available charging guns, thus completing the allocation of charging modules.
[0118] Optionally, in this embodiment, updating the second allocation quantity of at least one charging gun based on the fourth quantity can be as follows: if the total demand quantity is greater than the amount of charging guns that are newly connected to the charging piles and the second allocation quantity of the charging guns that are newly connected to the electric vehicles is greater than the fourth quantity, then the difference between the second allocation quantity and the fourth quantity of the charging guns that are newly connected to the electric vehicles is calculated to obtain the fifth quantity; and the second allocation quantity of the charging guns that are newly connected to the electric vehicles is updated to the fifth quantity.
[0119] In this embodiment, if the total demand is greater than the available total due to the number of charging guns connected to the charging piles by new electric vehicles, and priority is given to the electric vehicles that are connected first, then the charging modules of the charging guns connected to the new electric vehicles can be reduced to ensure that the new electric vehicles can be charged.
[0120] When the second allocation number of the charging guns for newly connected electric vehicles is greater than the fourth number, the difference between the second allocation number and the fourth number can be calculated to obtain the fifth number, which indicates the number of charging modules remaining after the charging guns for newly connected electric vehicles reduce the fourth number of charging modules. In other words, the charging guns for newly connected electric vehicles undertake the task of reducing the remaining charging modules. Accordingly, the second allocation number of the charging guns for newly connected electric vehicles is updated to the fifth number.
[0121] When the second allocation number of a newly connected electric vehicle's charging gun is less than or equal to the fourth allocation number, it indicates that the newly connected electric vehicle's charging gun is unable to handle the task of all remaining reduced charging modules. Therefore, one charging module is reserved for the newly connected electric vehicle's charging gun, and the second allocation number of the newly connected electric vehicle's charging gun is updated to one. The number of charging modules that the newly connected electric vehicle's charging gun is not handling and needs to be reduced is calculated, i.e., the sixth allocation number = the fourth allocation number - (the second allocation number of the newly connected electric vehicle's charging gun - 1). Based on this sixth allocation number, the second allocation number of at least one charging gun other than the newly connected electric vehicle's charging gun is updated, that is, the charging modules of other charging guns that were previously connected to the electric vehicle are reduced.
[0122] In some specific embodiments, without distinguishing the causes that lead to the total demand exceeding the available quantity, such as Figure 3 As shown, the process of the charging module allocation method for the charging pile provided in this embodiment can be as follows.
[0123] Step 301: Calculate the total number of charging modules required for all charging guns on the charging pile, and determine whether the total number of required modules is greater than the available number.
[0124] Step 302: If the total demand quantity is greater than the available quantity, calculate the difference between the total demand quantity and the available quantity to obtain the first quantity.
[0125] Step 303: Determine whether the second quantity is less than the first quantity. The second quantity is the number of charging guns whose decimal part of the equivalent demand quantity is less than or equal to a preset threshold.
[0126] Step 304: If the second quantity is greater than or equal to the first quantity, then the first quantity of charging guns is determined as the first charging gun, and the actual required quantity of the first charging gun is reduced by one to obtain the first allocation quantity of the first charging gun, so as to allocate the first allocation quantity of charging modules to the first charging gun.
[0127] Step 305: Determine the actual number of electric vehicles connected to the second charging gun as the first allocation number of the second charging gun, and allocate charging modules to the second charging gun.
[0128] Step 306: If the second quantity is less than the first quantity, then the charging gun with the lowest priority (the second quantity) is designated as the third charging gun, and the actual demand quantity of the third charging gun is reduced by one to obtain the second allocation quantity of the third charging gun, for the first reduction. At the same time, the actual demand quantity of electric vehicles connected to the fourth charging gun is determined as the second allocation quantity of the fourth charging gun; the fourth charging gun is any charging gun in the charging pile other than the third charging gun.
[0129] Step 307: Calculate the difference between the first quantity and the second quantity to obtain the fourth quantity.
[0130] Step 308: Update the second allocation quantity of at least one charging gun based on the fourth quantity, and allocate a charging module to each charging gun according to the updated second allocation quantity of each charging gun.
[0131] The above process involves first calculating the required reduction quantity, and then reducing the number of charging modules accordingly. Besides the above method, such as... Figure 4 As shown, the charging modules can also be reduced one by one by the charging guns, so that the total number of charging modules reduced reaches the calculated number that needs to be reduced.
[0132] Step 401: Calculate the total number of charging modules required for all charging guns on the charging pile, and determine whether the total number of required modules is greater than the available number.
[0133] Step 402: If the total demand is greater than the available quantity, calculate the difference between the total demand and the available quantity to obtain the first quantity.
[0134] Step 403: Allocate the number of charging modules to each charging gun based on the actual demand of each charging gun.
[0135] Step 404: Decrement the number of charging modules allocated to the charging gun with priority i by one, and sum them up to obtain the number of charging modules reduced.
[0136] Here, i=1 indicates the charging gun with the lowest priority, and the reduction starts from i=1.
[0137] Step 405: Determine whether the reduction quantity is greater than or equal to the first quantity.
[0138] Step 406: If the number of reductions is less than the first number, set priority i = i + 1 and jump to step 404.
[0139] If i is greater than the total number of charging guns on the charging station, the process can restart from i=1.
[0140] Step 407: If the reduction quantity is greater than or equal to the first quantity, then the final allocation quantity of charging modules for each charging gun is obtained.
[0141] In some embodiments, where the total demand exceeds the available supply due to newly connected electric vehicles, at least one charging module is allocated to the charging gun of the newly connected electric vehicle, such as... Figure 5 As shown, the process of the charging module allocation method for the charging pile provided in this embodiment can be as follows.
[0142] Step 501: Calculate the total number of charging modules required for all charging guns on the charging pile, determine whether any new electric vehicles have been connected to the charging guns, and whether the total number of required modules is greater than the number of available modules.
[0143] Step 502: If a new electric vehicle is connected to a charging gun and the total demand is greater than the available quantity, then determine whether the historical total demand before the electric vehicle was connected was less than the total available quantity.
[0144] Step 503: If the total historical demand before the electric vehicle is connected is greater than or equal to the total available quantity, then the number of allocated charging modules of at least one of the lowest priority charging guns among the active charging guns is reduced by one, the number of allocated charging modules of the remaining active charging guns remains unchanged, and a charging module is allocated to the charging gun of the newly connected electric vehicle.
[0145] Step 504: If the total historical demand before the electric vehicle is connected is less than the total available quantity, then check whether the difference between the total demand and the total available quantity is greater than 1, and check whether there are charging guns among the active charging guns whose fractional part of the equivalent demand is less than or equal to a preset threshold.
[0146] Step 505: If the difference between the total demand and the available quantity is greater than 1, and there are charging guns among the active charging guns whose equivalent demand quantity is less than or equal to a preset threshold, then the charging gun with the lowest priority among the active charging guns is determined as the first charging gun, the actual demand quantity of the first charging gun is reduced by one to obtain the first allocation quantity of the first charging gun, and the first allocation quantity of charging modules is allocated to the first charging gun.
[0147] Step 506: Determine the actual number of electric vehicles connected to the active charging guns other than the first charging gun as the first allocation number of active charging guns other than the first charging gun, and allocate charging modules to the active charging guns other than the first charging gun.
[0148] Step 507: Distribute the remaining charging modules to the charging guns of the newly connected electric vehicles.
[0149] This application embodiment of the charging pile is configured with multiple charging modules and multiple charging guns. The total required number of charging modules for all charging guns is compared with the total available number of charging modules in the charging pile. If the total required number is greater than the available number, it indicates that the charging pile's charging modules cannot meet the needs of all charging guns, and the demand for charging guns needs to be reduced. The equivalent required number of each charging gun can be used to determine the first charging gun for which charging module reduction is needed. The equivalent required number of each charging gun is the ratio between the charging gun's required power and the rated power of the charging module; this is the theoretical required number of charging modules for each charging gun. Each charging gun has a priority, and the priority of each charging gun is positively correlated with the decimal part of its equivalent required number; that is, the smaller the decimal part of the equivalent required number, the lower the priority of the charging gun. The first charging gun is at least one charging gun with the lowest priority among all charging guns, i.e., at least one charging gun with the lowest priority is selected. Therefore, when reducing the number of charging modules, the actual required number of the first charging gun can be subtracted by one to obtain the first allocated number of the first charging gun; where the actual required number is the floor value of the corresponding equivalent required number. Here, the lower the priority of a charging gun, the more preferentially its required charging modules are reduced. Since the fractional part of the first charging gun to be reduced is small, the reduction actually removes the low-power charging module requirements corresponding to the fractional part, retains the high-power charging module requirements of the integer part, and reduces the requirements of charging modules with low marginal contribution. Therefore, after allocating charging modules to the first charging gun according to its initial allocation quantity, each charging module can provide as much power as possible. This ensures optimal total power for the entire system when charging module resources are insufficient, maximizes the utilization of the overall power of the charging modules, shortens the total charging time for all electric vehicles charging at the charging station, and improves the turnover efficiency of the charging station.
[0150] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0151] The following are device embodiments of this application. For details not described in detail, please refer to the corresponding method embodiments described above.
[0152] Figure 6 A schematic diagram of the charging module distribution device for a charging pile provided in an embodiment of this application is shown. For ease of explanation, only the parts related to the embodiment of this application are shown, and are described in detail below: The charging station is equipped with multiple charging modules and multiple charging guns. For example... Figure 6 As shown, the charging module distribution device 60 of the charging pile includes: The determining module 61 is used to determine the first charging gun based on the equivalent demand of electric vehicles connected to each charging gun if the total demand of charging modules required by all electric vehicles connected to the charging guns is greater than the total number of available charging modules in the charging pile. The equivalent demand of electric vehicles connected to each charging gun is the ratio between the power demand of the electric vehicles connected to the charging gun and the rated power of the charging module. Each charging gun has a priority, and the priority of each charging gun is positively correlated with the fractional part of its equivalent demand. The first charging gun is at least one charging gun with the lowest priority among all charging guns. The reduction module 62 is used to subtract one from the actual demand number of electric vehicles connected to the first charging gun to obtain the first allocation number of the first charging gun; wherein, the actual demand number is the value of the corresponding equivalent demand number rounded up. The allocation module 63 is used to allocate charging modules to the first charging gun according to the first allocation quantity of the first charging gun.
[0153] In one possible implementation, the charging module allocation device 30 of the charging pile further includes a priority module for: For charging guns whose equivalent demand quantity has a fractional part less than or equal to a preset threshold, the priority of each charging gun is obtained by sorting them from smallest to largest fractional part. Charging guns with an empty decimal part or a decimal part greater than a preset threshold in the equivalent demand quantity are assigned the highest priority.
[0154] In one possible implementation, the priority module is also used for: If there are at least two charging guns with the same priority, update the priority of the at least two charging guns based on the integer part of their deployment duration and / or equivalent demand quantity.
[0155] In one possible implementation, the determining module 61 is specifically used for: If a new electric vehicle is detected to be connected to a charging gun in a charging pile, and the total number of charging modules required by all electric vehicles connected to the charging guns after the connection of the electric vehicle is greater than the total number of available charging modules in the charging pile, then it is checked whether the total historical demand before the connection of the electric vehicle is less than the total available quantity. If the total historical demand is greater than or equal to the total available demand, then at least one of the active charging guns with the lowest priority will be designated as the first charging gun; where active charging guns are those other than those connected to new electric vehicles. If the total historical demand is less than the total available quantity, then check whether the difference between the total demand and the total available quantity is greater than 1, and check whether there are charging guns among the active charging guns whose fractional part of the equivalent demand is less than or equal to a preset threshold. If the difference between the total demand and the total available quantity is greater than 1, and there are charging guns among the active charging guns whose equivalent demand quantity is less than or equal to a preset threshold, then the charging gun with the lowest priority among the active charging guns will be determined as the first charging gun.
[0156] In one possible implementation, the allocation module 63 is also used for: The actual number of electric vehicles connected to the active charging guns other than the first charging gun is determined as the first allocation number of active charging guns other than the first charging gun. Based on the first allocation number of active charging guns other than the first charging gun, a charging module is allocated to the active charging guns other than the first charging gun. The remaining number of charging modules is obtained by calculating the difference between the total available quantity and the sum of the first allocation quantities of all active charging guns. Based on the remaining quantity, allocate charging modules to the charging guns of newly connected electric vehicles.
[0157] In one possible implementation, the determining module 61 is specifically used for: Calculate the difference between the total demand and the total available quantity to obtain the first quantity; If the second quantity is greater than or equal to the first quantity, then the third quantity of charging guns with the lowest priority among all charging guns is determined as the first charging gun; wherein, the second quantity is the number of charging guns whose decimal part of the equivalent demand quantity is less than or equal to a preset threshold, and the third quantity is equal to the first quantity or the first quantity minus one.
[0158] In one possible implementation, the allocation module 63 is also used for: If the second quantity is greater than or equal to the first quantity, and the third quantity is equal to the first quantity, then the actual demand of electric vehicles connected to the second charging gun is determined as the first allocation quantity of the second charging gun; wherein, the second charging gun is the charging gun in the charging pile other than the first charging gun. Based on the first allocation quantity of the second charging gun, allocate charging modules to the second charging gun.
[0159] In one possible implementation, the allocation module 63 is also used for: If the second quantity is less than the first quantity, then the second quantity of charging guns with the lowest priority among all charging guns is determined as the third charging gun; Subtract one from the actual number of electric vehicles connected to the third charging gun to obtain the second allocation number of the third charging gun. The actual number of electric vehicles connected to the fourth charging gun is determined as the second allocation number of the fourth charging gun; wherein, the fourth charging gun is the charging gun in the charging pile other than the third charging gun. Calculate the difference between the first and second quantities to obtain the fourth quantity; The second allocation quantity of at least one charging gun is updated based on the fourth quantity; Based on the updated second allocation quantity for each charging gun, assign a charging module to each charging gun.
[0160] In one possible implementation, the allocation module 63 is specifically used for: If the total demand is greater than the available total due to the charging guns of the charging piles being newly connected to electric vehicles, and the second allocation of the charging guns of the newly connected electric vehicles is greater than the fourth allocation, then the difference between the second allocation of the charging guns of the newly connected electric vehicles and the fourth allocation is calculated to obtain the fifth allocation. The second allocation number of charging guns for newly connected electric vehicles is updated to the fifth number.
[0161] In one possible implementation, the determining module 61 is also used for: If the total demand for charging modules required by all electric vehicles connected to all charging guns is detected to be greater than the total number of available charging modules in the charging pile, before determining the first charging gun based on the equivalent demand of electric vehicles connected to each charging gun, the process also includes: Get the current power demand of the electric vehicles connected to each charging gun of the charging pile, and the historical power demand of the electric vehicles connected to each charging gun when the charging module was last allocated. Based on the current power demand and historical power demand, determine the change in power demand of the electric vehicles connected to each charging gun. If the change in demand power is greater than the preset change threshold, then the following steps are executed: "If the total demand for charging modules required by all electric vehicles connected to all charging guns is found to be greater than the total number of available charging modules in the charging pile, then the first charging gun is determined based on the equivalent demand of electric vehicles connected to each charging gun" and its subsequent steps. If the change in demand power is less than or equal to the preset change threshold, then the charging module allocated to each charging gun in the previous cycle will be maintained.
[0162] In one possible implementation, the allocation module 63 is also used for: If the total demand is less than or equal to the available total, then a charging module is allocated to each charging gun based on the actual demand of the electric vehicles connected to each charging gun.
[0163] For the sake of simplicity and clarity, only the above-described functional modules / units are used as examples. In practical applications, the functions described above can be assigned to different functional modules / units as needed. These modules / units can be implemented in hardware, software, or a combination of both.
[0164] This application also provides a charging module cabinet and a charging pile. For details not described in detail, please refer to the corresponding method embodiments described above.
[0165] In some embodiments, the charging module cabinet includes a controller and a plurality of charging modules, wherein the controller is used to implement the methods in the various method embodiments described above.
[0166] In some embodiments, the charging station includes the aforementioned charging module cabinet and multiple charging guns.
[0167] This application also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the methods described in the above-described method embodiments.
[0168] This application also provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the methods in the above-described method embodiments.
[0169] Computer programs include computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. Computer-readable media can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc.
[0170] In the above embodiments, the descriptions of each embodiment have their own emphasis. Parts not detailed or described in a particular embodiment can be referred to in the relevant descriptions of other embodiments. Unless otherwise specified or in conflict with logic, the terminology and / or descriptions between different embodiments are consistent and can be referenced interchangeably. Technical features in different embodiments can be combined to form new embodiments based on their inherent logical relationships.
[0171] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A method for allocating charging modules in a charging pile, characterized in that, The charging pile is equipped with multiple charging modules and multiple charging guns, and the method includes: If the total demand for charging modules required by all electric vehicles connected to all charging guns is detected to be greater than the total number of available charging modules in the charging pile, then a first charging gun is determined based on the equivalent demand of the electric vehicles connected to each charging gun; wherein, the equivalent demand of the electric vehicles connected to each charging gun is the ratio between the power demand of the electric vehicles connected to that charging gun and the rated power of the charging module; each charging gun has a priority, and the priority of each charging gun is positively correlated with the fractional part of its equivalent demand; the first charging gun is at least one charging gun with the lowest priority among all charging guns. Subtract one from the actual number of electric vehicles connected to the first charging gun to obtain the first allocation number of the first charging gun; wherein, the actual demand number is the value of the corresponding equivalent demand number rounded up. Based on the first allocation quantity of the first charging gun, a charging module is allocated to the first charging gun.
2. The charging module allocation method for a charging pile according to claim 1, characterized in that, The method further includes: For charging guns whose equivalent demand quantity has a fractional part less than or equal to a preset threshold, the priority of each charging gun is obtained by sorting them from smallest to largest fractional part. Charging guns with an empty decimal part or a decimal part greater than a preset threshold in the equivalent demand quantity are assigned the highest priority.
3. The charging module allocation method for a charging pile according to claim 2, characterized in that, After sorting the charging guns by their fractional parts in ascending order according to the equivalent demand quantity, and obtaining the priority of each equivalent demand quantity including the fractional part, the process further includes: If there are at least two charging guns with the same priority, update the priority of the at least two charging guns based on the integer part of their deployment duration and / or equivalent demand quantity.
4. The charging module allocation method for a charging pile according to claim 1, characterized in that, If the total demand for charging modules required by all electric vehicles connected to all charging guns is detected to be greater than the total number of available charging modules in the charging pile, then a first charging gun is determined based on the equivalent demand of electric vehicles connected to each charging gun, including: If a new electric vehicle is detected to be connected to the charging gun of the charging pile, and the total number of charging modules required by all electric vehicles connected to the charging guns after the connection of the electric vehicle is greater than the total number of available charging modules in the charging pile, then it is detected whether the total historical demand before the connection of the electric vehicle is less than the total number of available modules. If the total historical demand is greater than or equal to the total available quantity, then at least one of the active charging guns with the lowest priority is determined as the first charging gun; wherein, the active charging gun is the charging gun other than the charging gun for newly connected electric vehicles; If the total historical demand is less than the total available quantity, then it is detected whether the difference between the total demand and the total available quantity is greater than 1, and it is detected whether there are charging guns among the active charging guns whose fractional part of the equivalent demand is less than or equal to a preset threshold. If the difference between the total demand and the total available quantity is greater than 1, and there are charging guns among the active charging guns whose equivalent demand quantity is less than or equal to a preset threshold, then the charging gun with the lowest priority among the active charging guns is determined as the first charging gun.
5. The charging module allocation method for a charging pile according to claim 4, characterized in that, After subtracting one from the actual number of electric vehicles connected to the first charging gun to obtain the first allocated number of the first charging gun, the method further includes: The actual number of electric vehicles connected to the active charging guns other than the first charging gun is determined as the first allocation number of active charging guns other than the first charging gun. Based on the first allocation number of active charging guns other than the first charging gun, a charging module is allocated to the active charging guns other than the first charging gun. The remaining number of charging modules is obtained by calculating the difference between the total available quantity and the sum of the first allocated quantities of all active charging guns; Based on the remaining quantity, charging modules are allocated to the charging guns of newly connected electric vehicles.
6. The charging module allocation method for a charging pile according to claim 2, characterized in that, The step of determining at least one charging gun with the lowest priority among all charging guns as the first charging gun includes: Calculate the difference between the total demand and the total available quantity to obtain the first quantity; If the second quantity is greater than or equal to the first quantity, then the third quantity of charging guns with the lowest priority among all charging guns is determined as the first charging gun; wherein, the second quantity is the number of charging guns whose fractional part of the equivalent demand quantity is less than or equal to a preset threshold, and the third quantity is equal to the first quantity or the first quantity minus one.
7. The charging module allocation method for a charging pile according to claim 6, characterized in that, After subtracting one from the actual number of electric vehicles connected to the first charging gun to obtain the first allocated number of the first charging gun, the method further includes: If the second quantity is greater than or equal to the first quantity, and the third quantity is equal to the first quantity, then the actual demand of the electric vehicles connected to the second charging gun is determined as the first allocation quantity of the second charging gun; wherein, the second charging gun is the charging gun in the charging pile other than the first charging gun; Based on the first allocation quantity of the second charging gun, a charging module is allocated to the second charging gun.
8. The charging module allocation method for a charging pile according to claim 6, characterized in that, After calculating the difference between the total demand and the available quantity to obtain the first quantity, the method further includes: If the second quantity is less than the first quantity, then the second quantity of charging guns with the lowest priority among all charging guns is determined as the third charging gun; Subtract one from the actual number of electric vehicles connected to the third charging gun to obtain the second allocation number of the third charging gun; The actual number of electric vehicles connected to the fourth charging gun is determined as the second allocation number of the fourth charging gun; wherein, the fourth charging gun is the charging gun in the charging pile other than the third charging gun. Calculate the difference between the first quantity and the second quantity to obtain the fourth quantity; The second allocation quantity of at least one charging gun is updated based on the fourth quantity; Based on the updated second allocation quantity for each charging gun, assign a charging module to each charging gun.
9. The charging module allocation method for a charging pile according to claim 8, characterized in that, The second allocation quantity based on the fourth quantity, including updating at least one charging gun, includes: If the total demand is greater than the available total due to the charging guns of the charging pile being newly connected to electric vehicles, and the second allocation of the charging guns of the newly connected electric vehicles is greater than the fourth allocation, then the difference between the second allocation of the charging guns of the newly connected electric vehicles and the fourth allocation is calculated to obtain the fifth allocation. The second allocation number of charging guns for newly connected electric vehicles is updated to the fifth number.
10. The charging module allocation method for a charging pile according to any one of claims 1 to 9, characterized in that, Before determining the first charging gun based on the equivalent demand of electric vehicles connected to each charging gun if the total number of charging modules required by all the electric vehicles connected to all the charging guns is detected to be greater than the total number of available charging modules in the charging pile, the method further includes: Get the current power demand of the electric vehicles connected to each charging gun of the charging pile, and the historical power demand of the electric vehicles connected to each charging gun when the charging module was last allocated. Based on the current power demand and the historical power demand, determine the change in power demand of the electric vehicle connected to each charging gun; If the change in demand power is greater than a preset change threshold, then the following steps are executed: "If the total demand for charging modules required by all electric vehicles connected to all charging guns is found to be greater than the total number of available charging modules in the charging pile, then the first charging gun is determined based on the equivalent demand of electric vehicles connected to each charging gun" and its subsequent steps. If the change in required power is less than or equal to a preset change threshold, then the charging module allocated to each charging gun in the previous cycle will be maintained.
11. The charging module allocation method for a charging pile according to any one of claims 1 to 9, characterized in that, The method further includes: If the total demand is less than or equal to the available total, then a charging module is allocated to each charging gun according to the actual demand of the electric vehicles connected to each charging gun.
12. A charging module cabinet, characterized in that, It includes a controller and multiple charging modules, the controller being used to implement the method as described in any one of claims 1 to 11.
13. A charging pile, characterized in that, It includes the charging module cabinet as described in claim 12 and multiple charging guns.