A reverse current prevention control method for a charging and discharging station, an electronic device, and a storage medium
By acquiring real-time status data of charging and discharging piles in charging and discharging stations, calculating power allocation weights, and dynamically adjusting discharge power, the problem of reverse current in charging and discharging stations is solved, thereby achieving stable operation of the power grid and improving energy utilization.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHAANXI GREEN ENERGY ELECTRONIC TECH CO LTD
- Filing Date
- 2026-02-26
- Publication Date
- 2026-06-05
AI Technical Summary
In some charging and discharging stations, the discharged electrical energy may flow back into the power grid, causing voltage fluctuations and harmonic pollution, which are difficult to control effectively with existing technologies.
By acquiring real-time status data of charging and discharging piles, calculating power allocation weights, and dynamically adjusting discharge power, the total power of the station is ensured to be within a safe threshold range, thus avoiding backflow.
It effectively reduces the risk of reverse current, prevents voltage fluctuations and harmonic pollution, protects the stable operation of the power grid, and improves energy utilization.
Smart Images

Figure CN122159214A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of new energy technology, and in particular to a method for preventing backflow control in charging and discharging stations, an electronic device, and a computer-readable storage medium. Background Technology
[0002] With the rapid development of the new energy vehicle industry and the widespread application of fast charging technology, the load on the power grid has gradually increased, adversely affecting residential electricity consumption. In this context, V2G (Vehicle-to-Grid) technology has emerged, aiming to transform electric vehicles into mobile energy storage units to achieve peak shaving and valley filling. However, some charging and discharging stations are not qualified to transmit electricity to the grid. When discharging using charging and discharging piles, if the local discharge energy exceeds the station's energy consumption, the released energy will be fed back to the grid, potentially causing voltage fluctuations, harmonic pollution, and other adverse effects. Summary of the Invention
[0003] This invention aims to at least partially solve one of the technical problems in related technologies. To this end, this invention proposes an anti-backflow control method, electronic device, and storage medium for charging and discharging stations, which can reduce the risk of backflow in charging and discharging stations.
[0004] In a first aspect, embodiments of the present invention provide a method for preventing backflow control in a charging and discharging station, wherein the charging and discharging station is equipped with multiple charging and discharging piles, and the method includes the following steps: Step S1: Obtain the real-time power of the charging and discharging station and the real-time charging and discharging status data of each charging and discharging pile. Step S2: Determine the power allocation weight corresponding to each charging and discharging pile based on the real-time charging and discharging status data of each charging and discharging pile. Step S3: For each charging and discharging pile, adjust the discharge power of the charging and discharging pile according to the real-time charging and discharging status data of the charging and discharging pile, the corresponding power allocation weight, and the obtained gate power deviation value; wherein, the gate power deviation value is the absolute value of the difference between the real-time gate power and the preset anti-reverse current threshold power.
[0005] Optionally, in one embodiment of the present invention, when the real-time charge / discharge status data includes real-time discharge power and real-time SOC value, step S2 includes the following steps: Step S21: Determine the basic weight of each charging and discharging pile based on all the real-time discharge power; Step S22: Determine the SOC correction weight of each charging and discharging pile based on all the real-time SOC values; Step S23: For each charging and discharging pile, determine the power allocation weight corresponding to the charging and discharging pile based on the basic weight and the SOC correction weight corresponding to the charging and discharging pile, combined with the preset SOC adjustment coefficient.
[0006] Optionally, in one embodiment of the present invention, step S3 includes the following steps: Step S31: For each charging and discharging pile, normalize the power allocation weight corresponding to the charging and discharging pile to obtain the corresponding normalized weight; Step S32: Substitute the gate power deviation value, the real-time discharge power of the charging and discharging pile, and the corresponding normalized weight into the discharge power allocation formula to calculate the target discharge power to be allocated to the charging and discharging pile. Step S33: Adjust the real-time discharge power of the charging and discharging pile according to the target discharge power.
[0007] Optionally, in one embodiment of the present invention, the discharge power distribution formula is as follows: ; in, For the first The target discharge power to be allocated to each of the aforementioned charging and discharging piles. For the first The real-time discharge power of the aforementioned charging and discharging piles. The power deviation value at the gate, For the first The normalized weights corresponding to the charging and discharging piles. This is a preset safety factor.
[0008] Optionally, in one embodiment of the present invention, step S21 includes the following steps: Step S211: Obtain the sum of the real-time discharge power of all the charging and discharging piles to obtain the total discharge power; Step S212: For each charging and discharging pile, calculate the ratio of the real-time discharge power of the charging and discharging pile to the total discharge power to obtain the basic weight corresponding to the charging and discharging pile.
[0009] Optionally, in one embodiment of the present invention, step S22 includes the following steps: Step S221: Calculate the average of all the real-time SOC values, and filter out the first real-time SOC value and the second real-time SOC value from all the real-time SOC values, wherein the first real-time SOC value is the largest real-time SOC value among all the real-time SOC values, and the second real-time SOC value is the smallest real-time SOC value among all the real-time SOC values. Step S222: For each of the charging and discharging piles, calculate the difference between the real-time SOC value of the charging and discharging pile and the average of all the real-time SOC values to obtain a first SOC parameter; and calculate the difference between the first real-time SOC value and the second real-time SOC value to obtain a second SOC parameter. Step S223: Obtain the ratio of the first SOC parameter to the second SOC parameter to obtain the SOC correction weight of the charging and discharging pile.
[0010] Optionally, in one embodiment of the present invention, step S23 includes the following steps: Step S231: For each charging and discharging pile, substitute the preset SOC adjustment coefficient, the basic weight and the SOC correction weight corresponding to the charging and discharging pile into the power weight allocation formula to calculate the power allocation weight corresponding to the charging and discharging pile. The power weight allocation formula is as follows: ; For the first The power allocation weights corresponding to each of the aforementioned charging and discharging piles. For the first The power allocation weight corresponding to each of the aforementioned charging and discharging piles. For the first The SOC correction weight corresponding to each of the aforementioned charging and discharging piles. This is the SOC adjustment coefficient.
[0011] Optionally, in one embodiment of the present invention, the following steps are further included: Step S4: When the monitoring shows that the real-time power of the gate continuously meets the preset power conditions for a duration that reaches the target preset duration, adjust the discharge power of all the charging and discharging piles to zero. The power preset condition is that the real-time power of the gate is less than zero.
[0012] In a second aspect, embodiments of the present invention provide an electronic device, comprising: At least one processor; At least one memory for storing at least one program; When at least one of the programs is executed by at least one of the processors, the anti-backflow control method for the charging and discharging station as described in the first aspect is implemented.
[0013] Thirdly, embodiments of the present invention provide a computer-readable storage medium storing a processor-executable program, which, when executed by a processor, is used to implement the anti-backflow control method for charging and discharging stations as described in the first aspect.
[0014] This invention proposes an anti-backflow control method, electronic device, and storage medium for charging and discharging stations. By acquiring real-time charging and discharging status data of each charging and discharging pile, the power allocation weight corresponding to each charging and discharging pile can be determined. Thus, when the real-time power at the charging and discharging station's gate approaches or reaches a preset anti-backflow threshold power, the discharge power of the charging and discharging piles can be dynamically adjusted based on the real-time charging and discharging status data of the charging and discharging piles, the corresponding power allocation weight, and the acquired gate power deviation value. This prevents the overall discharge power of the charging and discharging piles from exceeding the station's power consumption, ensuring that the total power of the station remains within a safe threshold range. This reduces the risk of backflow, prevents adverse effects such as voltage fluctuations and harmonic pollution, protects the power grid infrastructure from damage, and ensures the stable operation of the power grid. Attached Figure Description
[0015] Figure 1 This is a flowchart of an anti-backflow control method for a charging and discharging station provided in an embodiment of the present invention; Figure 2 yes Figure 1 The flowchart of step S2 in the text; Figure 3 yes Figure 2 The flowchart of step S21 in the text; Figure 4 yes Figure 2 The flowchart of step S22 in the text; Figure 5 yes Figure 1 The flowchart for step S3 in the process; Figure 6 This is a flowchart of an anti-backflow control method for a charging and discharging station provided in another embodiment of the present invention; Figure 7 This is a schematic diagram of the execution architecture of the anti-backflow control method for charging and discharging stations provided in an embodiment of the present invention; Figure 8 yes Figure 7 The communication flow sequence diagram of the execution architecture in the process; Figure 9 This is a schematic diagram of the execution flow of the anti-backflow control method for charging and discharging stations provided in an embodiment of the present invention; Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0016] like Figure 1As shown, an embodiment of the present invention provides a backflow prevention control method for a charging and discharging station. The method may include, but is not limited to, steps S1 to S3. The charging and discharging station may be equipped with multiple charging and discharging piles. The number, type, model, parameters, etc. of the charging and discharging piles can be set according to the actual application scenario, and there is no limitation here.
[0017] Step S1: Obtain the real-time power of the charging and discharging station and the real-time charging and discharging status data of each charging and discharging pile. The real-time power of the charging and discharging station can be, but is not limited to, the real-time power displayed by the meter at the station, which represents the total real-time power of the station. The real-time charging and discharging status data can be of various types and can be determined according to the actual scenario. There are no restrictions here. For example, it can include, but is not limited to, real-time charging power, real-time discharging power, real-time charging status, real-time discharging status, and real-time SOC (State of Charge, which is the core parameter that measures the ratio of the remaining usable capacity of the battery to its fully charged state capacity, with a value range of 0 to 1). Step S2: Determine the power allocation weight corresponding to each charging and discharging pile based on the real-time charging and discharging status data of each charging and discharging pile. Step S3: For each charging and discharging pile, adjust the discharge power of the charging and discharging pile according to the real-time charging and discharging status data of the charging and discharging pile, the corresponding power allocation weight, and the obtained gate power deviation value; wherein, the gate power deviation value is the absolute value of the difference between the real-time gate power and the preset anti-reverse current threshold power, and the anti-reverse current threshold power can be set by those skilled in the art according to different scenarios without limitation.
[0018] In this step, by acquiring the real-time charging and discharging status data of each charging and discharging pile, the power allocation weight corresponding to each charging and discharging pile can be determined. Thus, when the real-time power at the gate of the charging and discharging station is detected to be close to or reach the preset anti-reverse current threshold power, the discharge power of the charging and discharging pile can be dynamically adjusted based on the real-time charging and discharging status data of the charging and discharging pile, the corresponding power allocation weight, and the acquired gate power deviation value. This is to prevent the overall discharge power of the charging and discharging pile from exceeding the power consumption of the station, ensuring that the total power of the station remains within the safe threshold range, thereby reducing the risk of reverse current, preventing adverse effects such as voltage fluctuations and harmonic pollution, protecting the power grid infrastructure from damage, and ensuring the stable operation of the power grid.
[0019] like Figure 2 As shown in one embodiment of the present invention, when the real-time charge / discharge status data includes real-time discharge power and real-time SOC value, step S2 may include, but is not limited to, the following steps: Step S21: Determine the foundation weight of each charging and discharging pile based on all real-time discharge power. Step S22: Determine the SOC correction weight for each charging and discharging pile based on all real-time SOC values; Step S23: For each charging and discharging pile, determine the power allocation weight corresponding to the charging and discharging pile based on the basic weight and SOC correction weight of the charging and discharging pile, combined with the preset SOC adjustment coefficient.
[0020] In this step, the basic weight of each charging and discharging pile is determined to clarify the proportion of the real-time discharge power of each charging and discharging pile, and the SOC correction weight of each charging and discharging pile is determined to clarify the state impact caused by the real-time SOC value of each charging and discharging pile. In other words, these two parameters can well characterize the real-time operating status of the charging and discharging pile. Therefore, based on these parameters, the basic weight and SOC correction weight are obtained respectively. Then, the power allocation weight corresponding to the charging and discharging pile can be accurately and reliably determined according to the basic weight and SOC correction weight of the charging and discharging pile, combined with the preset SOC adjustment coefficient.
[0021] In one embodiment, the specific value of the SOC adjustment coefficient is not limited and can be set according to the actual application scenario. For example, the baseline value can be set between 0.1 and 0.5 or dynamically adjusted on this basis. For example, when the SOC correction weight increases by 20% during dynamic adjustment, the SOC adjustment coefficient increases by 0.1.
[0022] like Figure 3 As shown, in one embodiment of the present invention, step S21 may include, but is not limited to, the following steps: Step S211: Obtain the sum of the real-time discharge power of all charging and discharging piles to obtain the total discharge power; Step S212: For each charging and discharging pile, calculate the ratio of the real-time discharge power of the charging and discharging pile to the total discharge power to obtain the basic weight corresponding to the charging and discharging pile.
[0023] Specifically, by obtaining the sum of the real-time discharge power of all charging and discharging piles, the real-time discharge status of all charging and discharging piles in the current station can be determined. Then, for each charging and discharging pile, by calculating the ratio of the real-time discharge power of the charging and discharging pile to the total discharge power, the proportion of the discharge status of the charging and discharging pile in the overall discharge scenario can be determined, and the basic weight corresponding to the charging and discharging pile can be obtained.
[0024] like Figure 4 As shown, in one embodiment of the present invention, step S22 may include, but is not limited to, the following steps: Step S221: Calculate the average of all real-time SOC values, and filter out the first real-time SOC value and the second real-time SOC value from all real-time SOC values. The first real-time SOC value is the largest real-time SOC value among all real-time SOC values, and the second real-time SOC value is the smallest real-time SOC value among all real-time SOC values. Step S222: For each charging and discharging pile, calculate the difference between the real-time SOC value of the charging and discharging pile and the average of all real-time SOC values to obtain the first SOC parameter; and calculate the difference between the first real-time SOC value and the second real-time SOC value to obtain the second SOC parameter. Step S223: Obtain the ratio of the first SOC parameter to the second SOC parameter to obtain the SOC correction weight of the charging and discharging pile.
[0025] Specifically, steps S221 to S223 can be, but are not limited to, expressed by the following formulas: ; in, For the first SOC correction weight for each charging and discharging pile For the first Real-time SOC value of each charging and discharging pile The average of all real-time SOC values. The first real-time SOC value, This is the second real-time SOC value.
[0026] It can be seen that by calculating the difference between the real-time SOC value of the charging and discharging pile and the average of all real-time SOC values, the deviation of the charging and discharging pile's SOC state from the average level can be determined. At the same time, by calculating the difference between the first real-time SOC value and the second real-time SOC value, the maximum difference in the SOC state of the charging and discharging pile can be obtained. Then, by obtaining the ratio of the two, the SOC correction weight of the charging and discharging pile under the correction conditions can be obtained, which can well characterize the influence of the real-time SOC state of the charging and discharging pile.
[0027] In one embodiment of the present invention, step S23 may include, but is not limited to, the following steps: Step S231: For each charging and discharging pile, substitute the preset SOC adjustment coefficient and the basic weight and SOC correction weight corresponding to the charging and discharging pile into the power weight allocation formula to calculate the power allocation weight corresponding to the charging and discharging pile. The power weighting allocation formula can be, but is not limited to, the following: ; For the first The power allocation weight corresponding to each charging and discharging pile For the first The power allocation weight corresponding to each charging and discharging pile For the first SOC correction weights for each charging / discharging pile This is the SOC adjustment coefficient.
[0028] like Figure 5 As shown, in one embodiment of the present invention, step S3 may include, but is not limited to, the following steps: Step S31: For each charging and discharging pile, normalize the power allocation weight corresponding to the charging and discharging pile to obtain the corresponding normalized weight. That is, divide the power allocation weight corresponding to the charging and discharging pile by the sum of the power allocation weights corresponding to all charging and discharging piles to obtain the normalized weight corresponding to the charging and discharging pile. Step S32: Substitute the gate power deviation value, the real-time discharge power of the charging and discharging pile, and the corresponding normalized weight into the discharge power allocation formula to calculate the target discharge power to be allocated to the charging and discharging pile. Step S33: Adjust the real-time discharge power of the charging and discharging pile according to the target discharge power.
[0029] In this step, the power allocation weights corresponding to the charging and discharging piles are normalized to meet the probability distribution constraints. Then, the gate power deviation value, the real-time discharge power of the charging and discharging piles, and the corresponding normalized weights are substituted into the preset discharge power allocation formula to calculate the target discharge power corresponding to the charging and discharging piles. This target discharge power is the corresponding discharge power to be allocated to the charging and discharging piles. Finally, the real-time discharge power of the charging and discharging piles is adaptively adjusted according to the target discharge power, so that the charging and discharging piles charge during off-peak hours and discharge during peak hours, maximizing benefits through anti-reverse current control.
[0030] In one embodiment, the discharge power distribution formula may be, but is not limited to, the following: ; in, For the first The target discharge power to be allocated to each charging and discharging pile. For the first Real-time discharge power of each charging and discharging pile This represents the power deviation value at the gate. For the first The normalized weights corresponding to each charging and discharging pile This is a preset safety factor.
[0031] like Figure 6 As shown in one embodiment of the present invention, the backflow prevention control method for the charging and discharging station may further include, but is not limited to, the following steps: Step S4: When the monitoring shows that the real-time power of the gate continuously meets the preset power conditions for a duration that reaches the target preset duration, adjust the discharge power of all charging and discharging piles to zero. The power preset condition is that the real-time power at the gate is less than zero.
[0032] Specifically, if the real-time power at the gate is continuously less than zero and the duration of this continuous less than zero reaches the target preset duration, it indicates that a large load may be powered down. It is necessary to adjust the power supply as soon as possible to prevent reverse current. Therefore, instead of allocating discharge power to each charging and discharging pile, the discharge power of all charging and discharging piles is adjusted to zero to alleviate this abnormal situation.
[0033] It should be noted that the execution subject of this embodiment can be various, such as, but not limited to, using an MCU or / and MCU-related control devices, equipment, etc., or using, for example... Figure 7 The execution architecture implementation shown is as follows: Specifically, a communication mechanism is established among the charging and discharging piles within the station. All charging and discharging piles communicate with each other using the RS485 communication protocol. Any one of the charging and discharging piles is selected as the master device, and the rest are slave devices. The master device is responsible for communicating with the AC meter (gate meter) and monitoring the real-time total power of the entire station. At the same time, it communicates and interacts with all slave devices to dynamically adjust the discharge power of each charging and discharging pile (including itself) so that the real-time total power of the station is always kept within a safe range, ensuring that no backflow occurs in the entire station.
[0034] like Figure 8 As shown, the master device and all slave devices can be connected in a daisy-chain manner, but not limited to this. The master device can perform status data queries, sending read status frames to all slave devices sequentially. When a slave device receives a command with the same query address as its own, it sends a reply status data frame to report its current status information. Furthermore, the master device can control discharge power. Based on parameters such as the discharge power of the master device and all slave devices, and the real-time power of the gateway, the master device calculates a strategy. After calculating the discharge power of all devices, it sends control discharge power frames to each device, including itself. For example, a slave device can adjust its discharge power and reply with a control discharge power frame after receiving a control command with the same address as its own. The master device can also control timing. All communication on the 485 bus is initiated by the master device. The master device sends query commands and control discharge power frames to each slave device sequentially, waiting for a period after each frame to ensure that the queried or controlled slave device data is sent completely, guaranteeing that only one device sends data on the bus at any given time.
[0035] It can be seen that this configuration method for communication and control does not require the addition of extra control systems, function development, or hardware facilities at the site. All devices can be connected via the 485 bus, which reduces implementation costs and technical complexity to a certain extent. At the same time, it has better flexibility and scalability, and can better adapt to future changes in charging needs.
[0036] To better illustrate the working principle of the above embodiments, the following is combined with... Figure 9 Specific examples are given in Table 1 for detailed explanation.
[0037] Reference Figure 9 First, a dynamic control task is performed every 500ms. This task obtains the real-time power at the control point (denoted as ) by acquiring data from the control point's electricity meter, as well as data from the local and slave units. ), and combine it with the anti-backflow threshold power (denoted as ) for comparison; like Then calculate Then, based on the anti-backflow control algorithm of this embodiment, the target discharge power of each charging and discharging pile is calculated. Based on this, the corresponding control power commands are finally sent to each master and slave device; Conversely, judgment If the condition is not met, refer to the previous step for calculation. This will not be elaborated upon further; if true, then the current time will be recorded. It then determines whether the cumulative time for the first reversal has reached the target preset time, i.e., whether it has reached 2 seconds. If not, it calculates according to the above steps. And implement appropriate controls; otherwise, order And implement corresponding controls.
[0038] It can be seen that by monitoring the real-time power of the power station, the released electricity is prioritized to be supplied to the charging and discharging piles in the power station, rather than fed back into the grid and causing errors in electricity billing. This can prevent backflow and improve energy utilization.
[0039] Specifically, regarding how to calculate The following specific examples will be used to illustrate this, with reference to Table 1.
[0040] Table 1 - Target Discharge Power of Charging and Discharging Piles Regulation diagram Assuming the relevant parameters of a certain charging station are set as follows, and the station has a total of 3 charging and discharging piles, and operates according to the following dynamic control formula and parameters, the parameters are set as follows: It is 100kW. It is 0.3. The value is 0.9; as shown in Table 1 above, the calculation process under two working conditions is listed, among which: Operating Condition 1: It is 80kW at this time Below Power needs to be reduced, that is The power required to be adjusted for the three charging and discharging piles under operating condition 1 is calculated based on the above parameters and calculation formulas, with a power of 20kW. Operating Condition 2: It is -15kW at this time The voltage has dropped below 0, indicating that a large load may be shut down, and the power demand is less than the real-time discharge power. Therefore, it is necessary to adjust the power supply as soon as possible to prevent backflow. The power required to be adjusted for the three charging and discharging piles under operating condition 2 is calculated based on the above parameters and calculation formulas, with a power of 115kW.
[0041] Figure 10 This is a schematic diagram of the structure of an electronic device 1000 provided in an embodiment of the present invention. For example... Figure 10 As shown, the electronic device 1000 includes a memory 1100 and a processor 1200. The number of memories 1100 and processors 1200 can be one or more. Figure 10 Taking a memory 1100 and a processor 1200 as an example; the memory 1100 and the processor 1200 in the device can be connected via a bus or other means. Figure 10 Taking the example of a connection between China and Israel via a bus.
[0042] The memory 1100, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the anti-backflow control method for the charging and discharging station provided in any embodiment of the present invention. The processor 1200 implements the aforementioned anti-backflow control method for the charging and discharging station by running the software programs, instructions, and modules stored in the memory 1100.
[0043] The memory 1100 may primarily include a program storage area and a data storage area, wherein the program storage area may store the operating system and application programs required for at least one function. Furthermore, the memory 1100 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 1100 may further include memory remotely located relative to the processor 1200, and these remote memories can be connected to the device via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0044] An embodiment of the present invention also provides a computer-readable storage medium storing computer-executable instructions for performing the anti-backflow control method for charging and discharging stations as provided in any embodiment of the present invention.
[0045] An embodiment of the present invention also provides a computer program product, including a computer program or computer instructions, which are stored in a computer-readable storage medium. A processor of a computing device reads the computer program or computer instructions from the computer-readable storage medium and executes the computer program or computer instructions, causing the computing device to perform the anti-reverse current control method for charging and discharging stations as provided in any embodiment of the present invention.
[0046] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.
[0047] In hardware implementations, the division between functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0048] The terms “component,” “module,” “system,” etc., used in this specification are used to refer to computer-related entities, hardware, firmware, combinations of hardware and software, software, or software in execution. For example, a component can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program, or a computer. As illustrated, applications running on computing devices and computing devices can both be components. One or more components may reside in a process or execution thread, and components may be located on a single computer or distributed among two or more computers. Furthermore, these components can be executed from various computer-readable media on which various data structures are stored. Components can communicate, for example, via local or remote processes based on signals having one or more data packets (e.g., data from two components interacting with another component between a local system, a distributed system, or a network, such as the Internet interacting with other systems via signals).
Claims
1. A method for preventing backflow control in a charging and discharging station, characterized in that, The charging and discharging station is equipped with multiple charging and discharging piles, and the method includes the following steps: Step S1: Obtain the real-time power of the charging and discharging station and the real-time charging and discharging status data of each charging and discharging pile. Step S2: Determine the power allocation weight corresponding to each charging and discharging pile based on the real-time charging and discharging status data of each charging and discharging pile. Step S3: For each charging and discharging pile, adjust the discharge power of the charging and discharging pile according to the real-time charging and discharging status data of the charging and discharging pile, the corresponding power allocation weight, and the obtained gate power deviation value; wherein, the gate power deviation value is the absolute value of the difference between the real-time gate power and the preset anti-reverse current threshold power.
2. The backflow prevention control method for charging and discharging stations according to claim 1, characterized in that, When the real-time charging and discharging status data includes real-time discharge power and real-time SOC value, step S2 includes the following steps: Step S21: Determine the basic weight of each charging and discharging pile based on all the real-time discharge power; Step S22: Determine the SOC correction weight for each of the charging and discharging piles based on all the real-time SOC values; Step S23: For each charging and discharging pile, determine the power allocation weight corresponding to the charging and discharging pile based on the basic weight and the SOC correction weight corresponding to the charging and discharging pile, combined with the preset SOC adjustment coefficient.
3. The backflow prevention control method for charging and discharging stations according to claim 2, characterized in that, Step S3 includes the following steps: Step S31: For each charging and discharging pile, normalize the power allocation weight corresponding to the charging and discharging pile to obtain the corresponding normalized weight; Step S32: Substitute the gate power deviation value, the real-time discharge power of the charging and discharging pile, and the corresponding normalized weight into the discharge power allocation formula to calculate the target discharge power to be allocated to the charging and discharging pile. Step S33: Adjust the real-time discharge power of the charging and discharging pile according to the target discharge power.
4. The backflow prevention control method for charging and discharging stations according to claim 3, characterized in that, The discharge power distribution formula is as follows: ; in, For the first The target discharge power to be allocated to each of the aforementioned charging and discharging piles. For the first The real-time discharge power of the aforementioned charging and discharging piles. The power deviation value at the gate. For the first The normalized weights corresponding to the charging and discharging piles. This is a preset safety factor.
5. The backflow prevention control method for charging and discharging stations according to claim 2, characterized in that, Step S21 includes the following steps: Step S211: Obtain the sum of the real-time discharge power of all the charging and discharging piles to obtain the total discharge power; Step S212: For each charging and discharging pile, calculate the ratio of the real-time discharge power of the charging and discharging pile to the total discharge power to obtain the basic weight corresponding to the charging and discharging pile.
6. The backflow prevention control method for charging and discharging stations according to claim 2, characterized in that, Step S22 includes the following steps: Step S221: Calculate the average of all the real-time SOC values, and filter out the first real-time SOC value and the second real-time SOC value from all the real-time SOC values, wherein the first real-time SOC value is the largest real-time SOC value among all the real-time SOC values, and the second real-time SOC value is the smallest real-time SOC value among all the real-time SOC values. Step S222: For each of the charging and discharging piles, calculate the difference between the real-time SOC value of the charging and discharging pile and the average of all the real-time SOC values to obtain a first SOC parameter; and calculate the difference between the first real-time SOC value and the second real-time SOC value to obtain a second SOC parameter. Step S223: Obtain the ratio of the first SOC parameter to the second SOC parameter to obtain the SOC correction weight of the charging and discharging pile.
7. The backflow prevention control method for charging and discharging stations according to claim 2, characterized in that, Step S23 includes the following steps: Step S231: For each charging and discharging pile, substitute the preset SOC adjustment coefficient, the basic weight and the SOC correction weight corresponding to the charging and discharging pile into the power weight allocation formula to calculate the power allocation weight corresponding to the charging and discharging pile. The power weight allocation formula is as follows: ; For the first The power allocation weights corresponding to each of the aforementioned charging and discharging piles. For the first The power allocation weight corresponding to each of the aforementioned charging and discharging piles. For the first The SOC correction weight corresponding to each of the aforementioned charging and discharging piles. This is the SOC adjustment coefficient.
8. The backflow prevention control method for charging and discharging stations according to claim 1, characterized in that, It also includes the following steps: Step S4: When the monitoring shows that the real-time power of the gate continuously meets the preset power conditions for a duration that reaches the target preset duration, adjust the discharge power of all the charging and discharging piles to zero. The power preset condition is that the real-time power of the gate is less than zero.
9. An electronic device, characterized in that, include: At least one processor; At least one memory for storing at least one program; When at least one of the programs is executed by at least one of the processors, the anti-backflow control method for charging and discharging stations as described in any one of claims 1 to 8 is implemented.
10. A computer-readable storage medium, characterized in that, It stores a processor-executable program, which, when executed by the processor, is used to implement the anti-backflow control method for the charging and discharging station as described in any one of claims 1 to 8.