Charging and discharging method, charging pile, energy storage system and computer readable storage medium
Through the two-way energy interaction between the energy storage system and the power grid and the optimization of the decision model, the problem of delayed charging of traditional charging piles during power grid peaks or power outages is solved, and the flexibility and reliability of vehicle charging are achieved.
Patent Information
- Application Number
- CN202410909261.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-09-17
AI Technical Summary
The power supply of traditional charging piles relies on the power grid, which causes vehicle charging to be delayed during grid power peaks or power outages, affecting use.
Through the two-way energy interaction between the energy storage system and the power grid, the pre-trained decision model is used to determine the electrical interaction object based on the status data of the energy storage system and the power grid, and the power grid or energy storage system is prioritized to power the vehicle to ensure that the charging logic can better meet the needs.
It realizes power supply for vehicles in more scenarios, improves charging success rate, reduces power consumption pressure on the power grid, and ensures the flexibility and reliability of vehicle charging.
Smart Images

Figure CN118651106A
Abstract
Description
Technical Field
[0001] The present application relates to the field of charging technology, and in particular to a charging and discharging method, a charging pile, an energy storage system and a computer-readable storage medium. Background Art
[0002] With the widespread use of new energy vehicles, the demand for vehicle charging is increasing. However, the power supply of traditional charging piles depends on the power supply of the power grid. During peak power consumption or power outages, the charging of vehicles may be delayed, which will also affect the use of vehicles. Summary of the invention
[0003] The purpose of this application is to provide a charging and discharging method, a charging pile, an energy storage system and a computer-readable storage medium, which can more reasonably realize the charging and discharging of a vehicle.
[0004] In a first aspect, the present invention provides a charging and discharging method, which is applied to a charging pile, wherein the charging pile is used to connect to a vehicle or an energy storage system, and the method comprises: obtaining first state data of the energy storage system and first environmental data of a power grid; determining an electrical interaction object for electrically interacting with the vehicle based on the first state data and the first environmental data, wherein the electrical interaction object is the power grid or the energy storage system; and inputting the current of the vehicle into the electrical interaction object, or inputting the current of the electrical interaction object into the vehicle.
[0005] In the above implementation, by selecting an available energy storage system or a power grid as the electrical interaction object of the vehicle based on the actual conditions of the energy storage system and the power grid, the charging of the vehicle is no longer limited to power supply by the power grid, and power supply for the vehicle can be achieved in more scenarios.
[0006] In an optional embodiment, the electrical interaction object for electrically interacting with the vehicle is determined based on the first status data and the first environmental data, including: judging whether the current time is in a restricted time period of the power grid based on the first environmental data; judging whether the energy storage system is in a power supply state based on the first status data; if the power grid is in a non-restricted time period and the energy storage system is in a power supply state, determining the electrical interaction object for electrically interacting with the vehicle based on a priority rule between the energy storage system and the power grid.
[0007] In the above implementation, when both the energy storage system and the power grid meet the charging requirements, an electrical interaction object for electrical interaction with the vehicle can be selected based on a priority rule, so that the charging logic can better meet actual needs.
[0008] In an optional implementation, the priority rule includes that the priority level of the power grid is higher than the priority level of the energy storage system.
[0009] In the above implementation, by setting the priority level of the power grid to be higher, the power of the power grid can be used preferentially. When the power grid is out of power or during peak hours, the energy storage system can be used to power the vehicle, thereby meeting the vehicle charging needs.
[0010] In an optional embodiment, determining the electrical interaction object that electrically interacts with the vehicle based on the first state data and the first environmental data also includes: if the power grid is in a restricted time period and the energy storage system is in a power-supply state, determining the energy storage system as the electrical interaction object that electrically interacts with the vehicle; if the power grid is in a non-restricted time period and the energy storage system is in a non-power-supply state, determining the power grid as the electrical interaction object that electrically interacts with the vehicle.
[0011] In the above implementation, when the power grid is not in a preferred use state, the energy storage system can be used to power the vehicle, thereby reducing the pressure on the power grid. In addition, when the energy storage system cannot be used, the power grid can be used to successfully charge the vehicle. The above logic can better meet the charging needs of the vehicle and improve the success rate of vehicle charging.
[0012] In an optional embodiment, the first environmental data includes: power grid power consumption distribution data; judging whether the current time is in a power grid restriction period based on the first environmental data includes: determining the power grid power consumption in different time periods based on the power grid power consumption distribution data; determining the peak power consumption period based on the power grid power consumption in the different time periods, wherein the user peak period is the power grid restriction period.
[0013] In the above implementation, the peak electricity consumption period can be set as the power grid restriction period, which can reduce the demand of vehicles for power from the power grid during this period, thereby reducing the power consumption pressure of the power grid.
[0014] In an optional embodiment, determining the electrical interaction object for electrically interacting with the vehicle based on the first state data and the first environment data includes: using the first state data and the first environment data as input data, inputting into a pre-trained decision model for calculation, so as to determine the electrical interaction object for electrically interacting with the vehicle.
[0015] In the above implementation, the decision model is used to determine the electrical interaction object, so that the result can better meet the conventional rules, and thus the use of electricity can be more balanced.
[0016] In an optional embodiment, determining the electrical interaction object for electrically interacting with the vehicle based on the first state data and the first environmental data includes: using the state data of the connected vehicle, the first state data, and the first environmental data as input data, and inputting them into a pre-trained decision model for calculation, so as to determine the charging timing of the vehicle and the electrical interaction object for electrically interacting with the vehicle.
[0017] In an optional embodiment, the decision model is trained in the following manner: obtaining training data, the training data including multiple training samples, each training sample including vehicle state data, first state data and the first environment data; inputting each training sample in the training data into an initial model for training to obtain the decision model.
[0018] In an optional embodiment, the method further includes: obtaining second state data of the energy storage system and second environmental data of the power grid; determining a charging and discharging direction of the energy storage system and the power grid based on the second state data and the second environmental data, wherein the charging and discharging direction includes discharging from the energy storage system to the power grid and discharging from the power grid to the energy storage system.
[0019] In the above implementation, the energy storage system can also be charged during idle time, so that the energy storage system can be used as a backup power source to provide electricity to the vehicle when the power grid is not in optimal use; in addition, when the power grid needs electricity, power can be supplied back to the power grid to better meet the electricity demand in various scenarios.
[0020] In a second aspect, the present invention provides a charging pile, comprising: a processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the charging pile is running, the machine-readable instructions are executed by the processor to perform the steps of the method described in any one of the aforementioned embodiments.
[0021] In a third aspect, the present invention provides an energy storage system, comprising: a battery module; a management unit and a conversion unit for managing the battery module; and at least one second connection interface for connecting to the above-mentioned charging pile, and realizing electrical interaction with the charging pile through the second connection interface.
[0022] In the above implementation, the energy storage system can be directly connected to the charging pile to facilitate electrical interaction with the power grid and the vehicle through the charging pile, thereby improving the existing deficiency that the vehicle can only be charged through the power grid.
[0023] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method described in any one of the aforementioned embodiments are executed.
[0024] In a fifth aspect, the present invention provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the method described in any one of the aforementioned embodiments is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0026] Figure 1 A schematic diagram of the operating environment of the charging and discharging method provided in an embodiment of the present application;
[0027] Figure 2 A schematic block diagram of a charging pile provided in an embodiment of the present application;
[0028] Figure 3 A block diagram of an energy storage system provided in an embodiment of the present application;
[0029] Figure 4 A flow chart of a charging and discharging method provided in an embodiment of the present application;
[0030] Figure 5 An optional flow chart of step 220 of the charging and discharging method provided in an embodiment of the present application;
[0031] Figure 6 A partial flow chart of the charging and discharging method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings in the embodiments of the present application.
[0033] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0034] The power supply of traditional charging piles depends on the power supply of the power grid. When the power grid is in peak power consumption or power outage, the charging of the vehicle may be delayed, which will also affect the use of the vehicle. V2G technology, namely Vehicle-to-Grid technology, is a technology that allows electric vehicles to interact with the power grid in a two-way manner. The core of this technology is to use the battery of the electric vehicle as a mobile energy storage unit, which can not only obtain electricity from the power grid for charging, but also feed back electricity to the power grid when the power grid needs it.
[0035] Based on the above analysis, the inventors of the present application consider that V2G technology can be used to improve the limitations of vehicle charging. The embodiments of the present application can provide a charging and discharging method, a charging pile, an energy storage system, and a computer-readable storage medium, which can improve the flexibility of vehicle charging.
[0036] To facilitate understanding of this embodiment, the operating environment of a charging and discharging method disclosed in an embodiment of the present application is first introduced.
[0037] like Figure 1 , which is a schematic diagram of the operating environment of the charging and discharging method provided in an embodiment of the present application. The operating environment of the charging and discharging method may include a charging pile 110, an energy storage system 120, and a vehicle 130. The charging pile 110 may be connected to the energy storage system 120, and the charging pile 110 may also be connected to the vehicle 130.
[0038] Optionally, the charging post 110 may be connected to one or more vehicles 130 , and the charging post 110 may also be connected to one or more energy storage systems 120 .
[0039] like Figure 2 The figure is a schematic block diagram of a charging pile. The charging pile 110 may include a memory 111, a processor 113 and a first connection interface 115. A person skilled in the art may understand that Figure 2 The structure shown is only for illustration and does not limit the structure of the charging pile 110. For example, the charging pile 110 may also include Figure 2 More or fewer components as shown, or with Figure 2 Different configurations are shown.
[0040] The memory 111, processor 113, and first connection interface 115 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other via one or more communication buses or signal lines. The processor 113 is used to execute the executable module stored in the memory.
[0041] The memory 111 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory 111 is used to store programs, and the processor 113 executes the program after receiving the execution instruction. The method executed by the charging pile 110 defined by the process disclosed in any embodiment of the present application can be applied to the processor 113, or implemented by the processor 113.
[0042] The processor 113 may be an integrated circuit chip with signal processing capability. The processor 113 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), a dedicated integrated circuit.
[0043] (Application Specific Integrated Circuit, referred to as ASIC), Field Programmable Gate Array (Field Programmable Gate Array, referred to as FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0044] The first connection interface 115 is used to connect to an external device. In some embodiments, the first connection interface 115, the processor 113 and the storage controller 112 can be implemented in a single chip. In other embodiments, they can be implemented by separate chips.
[0045] Based on different actual needs, the charging pile 110 may also include more components. For example, the charging pile may also include a display unit for displaying the connected devices and the power status of the connected devices. The charging pile may also include a near field communication unit for realizing near field communication connection with external electronic devices to realize data interaction.
[0046] The charging pile 110 may be a V2G charging pile.
[0047] The charging pile 110 in this embodiment can be used to execute each step in each method provided in the embodiments of the present application.
[0048] like Figure 3 As shown, the embodiment of the present application further provides an energy storage system 120. The energy storage system 120 may include a battery module 121, a management unit 122, a conversion unit 123 and a second connection interface 124.
[0049] The number of battery modules 121 included in the energy storage system 120 may be one or more. Based on different actual needs, the number of battery modules 121 may be adaptively set to meet different scales of energy storage needs.
[0050] Optionally, each battery module 121 may include a plurality of battery cells. The size of the battery module 121 may be set to a standardized size as required, so as to facilitate rapid addition, removal, installation, and replacement of the battery module 121.
[0051] Optionally, each battery module 121 may be provided with a management unit 122 and a conversion unit 123 for managing the battery module 121. The management unit 122 may be used to implement real-time monitoring of the battery status in the battery module 121 and energy conversion.
[0052] The management unit 122 may be responsible for monitoring the status of the battery module 121 , including key parameters such as voltage, current, and temperature.
[0053] The energy storage system 120 may also include a central control system, which is responsible for coordinating the charging and discharging operations of each battery module 121 .
[0054] Optionally, the management unit 122 may transmit the state of the battery module 121 to the energy storage system 120 by wireless or wired communication. Exemplarily, the management unit 122 may transmit the state of the battery module 121 in real time.
[0055] The second connection interface 124 can be connected to a charging pile, so as to realize electrical interaction with the charging pile through the second connection interface 124. The energy storage system 120 can be provided with a plurality of second connection interfaces 124, so that it can realize connection with a plurality of charging piles.
[0056] In this embodiment, the energy storage system 120 can be connected to one or more charging piles to realize the energy storage function.
[0057] When connected to a single charging pile, the energy storage system 120 can provide charging and discharging services for a single electric vehicle; when connected to multiple charging piles, the energy storage system 120 can provide services for multiple vehicles at the same time. For example, the energy storage system 120 and multiple charging piles can be used as a whole to participate in larger-scale grid regulation and energy storage.
[0058] Through the flexible access method of the energy storage system, not only the utilization efficiency of the energy storage system is improved, but also support is provided for the stable operation of the power grid. Furthermore, V2G equipment cannot usually be installed in some places that do not support energy storage equipment and bidirectional transformer equipment, and there is a possibility that the released electric energy may cause power grid turbulence after entering the grid, which will cause safety risks. In this embodiment, distributed energy storage is achieved through an energy storage system. Through multiple small-capacity energy storage systems, it is more flexible and safer than large-scale energy storage. Even in places where energy storage stations cannot be built, energy storage can be provided. The electricity released by V2G flows directly into the distributed energy storage system, which will not cause power grid turbulence and improve the safety of the energy storage environment. Furthermore, since the electricity can be directly stored in the energy storage system, there is no loss caused by converting electricity from direct current to alternating current when it flows into the power grid.
[0059] The implementation process of the charging and discharging method is described in detail below through several embodiments.
[0060] The embodiment of the present application provides a charging and discharging method. Optionally, the charging and discharging method provided in the embodiment of the present application can be applied to a charging pile, and the steps in the charging and discharging method are performed by the charging pile. The charging pile can be connected to a vehicle, and can also be connected to an energy storage system. Optionally, the charging and discharging method provided in the embodiment of the present application can be applied to an energy storage system, and the steps in the charging and discharging method are performed by the energy storage system. The energy storage system can be connected to a charging pile, and the charging pile can also be connected to a vehicle.
[0061] See also Figure 4 , is a flow chart of the charging and discharging method provided in the embodiment of the present application. Figure 4 The specific process shown is described in detail.
[0062] Step 210: Obtain first state data of the energy storage system and first environmental data of the power grid.
[0063] The first status data may include whether it is in use, power status, etc. The power status may include full power, sufficient power, low power, insufficient power, etc. The power status may also include real-time power percentage, etc.
[0064] The first environment data may include data such as the current time, real-time power usage data of the power grid, etc. For example, the real-time power usage data of the power grid may be used to determine whether the power grid is in a peak power consumption period or a valley power consumption period.
[0065] Optionally, the first environment data may also include power consumption division data of the power grid. Exemplarily, the power consumption division data may include multiple time periods and power consumption status corresponding to each time period. The power consumption status may include peak power consumption period, off-peak power consumption period, etc.
[0066] Step 220: determining an electrical interaction object that electrically interacts with the vehicle according to the first state data and the first environment data.
[0067] Among them, the electrical interaction object is the power grid or energy storage system.
[0068] Whether the energy storage system is currently suitable for charging or discharging can be determined based on the first state data. For example, when the energy storage system has sufficient power, it is suitable for discharging; when the energy storage system has less power, it is suitable for charging.
[0069] It can be determined whether the power grid is currently suitable for charging or discharging based on the first environmental data. For example, if the current usage of the power grid is high, it means that the power grid is not suitable for discharging. For example, the usage of the power grid is high during the lunch and dinner time periods, and the usage of the power grid is low during other time periods; for another example, the usage of the power grid is high during the afternoon time period in summer.
[0070] In one embodiment, the demand of the vehicle may be a charging demand, and if the usage of the power grid is low, it can be determined that the power grid is suitable for charging the vehicle; when the energy storage system has sufficient power, the energy storage system is suitable for discharging, that is, the energy storage system is suitable for charging the vehicle.
[0071] In one embodiment, the demand of the vehicle may be a discharge demand, and a high usage of the power grid may determine that the power grid is currently not suitable for discharge, but is suitable for receiving the discharge of the vehicle; when the power of the energy storage system is relatively low, the state of the energy storage system is not suitable for charging the vehicle, that is, the energy storage system is suitable for receiving the discharge of the vehicle.
[0072] When both the energy storage system and the power grid are suitable for charging and discharging the vehicle, an object can be randomly selected as the electrical interaction object; or a higher priority object can be selected as the electrical interaction object according to a set priority rule.
[0073] Step 230 , the current of the vehicle is fed into the electrical interaction object, or the current of the electrical interaction object is fed into the vehicle.
[0074] Specifically, the vehicle may be charged or discharged based on actual vehicle needs.
[0075] For example, if the actual demand of the vehicle is charging, the electrical interaction object can be used to charge the vehicle; if the actual demand of the vehicle is discharging, the electricity of the vehicle can be discharged and transmitted to the electrical interaction object.
[0076] The method provided in the embodiment of the present application can realize power supply for the vehicle in more scenarios by selecting an available energy storage system or a power grid as the electrical interaction object of the vehicle based on the actual conditions of the energy storage system and the power grid.
[0077] In response to different vehicle needs, the actual method of determining the electrical interaction object is also different. The following introduces the different vehicle needs.
[0078] In one embodiment, the charging and discharging demand of the vehicle may be a charging demand.
[0079] like Figure 5 As shown, the above step 220 may include steps 221 to 223.
[0080] Step 221: determine whether the current time is within the restricted period of the power grid according to the first environmental data.
[0081] Optionally, the first environmental data may include whether the power grid has electricity supply, and the distribution of peak and valley time periods of power consumption of the power grid; if the power grid has a restricted time period, it may indicate that the current state is a power outage, or it is a peak power consumption period of the power grid.
[0082] Exemplarily, the first environmental data may include power grid power consumption distribution data, and the power grid power consumption in different time periods can be determined based on the power grid power consumption distribution data; based on the power grid power consumption in different time periods, the peak power consumption period can be determined, wherein the user peak period is the power grid restriction period.
[0083] Optionally, the first environmental data may also include power supply prices of the power grid in different time periods, etc.; the restricted time period of the power grid may also indicate that the current power grid electricity price is at a peak price period.
[0084] Step 222: determine whether the energy storage system is in a power supply state according to the first state data.
[0085] The power supply state may indicate that the energy storage system can be discharged to charge the vehicle.
[0086] Exemplarily, the first state data may include temperature data, power data, etc.
[0087] The power supply state may indicate that the temperature of the energy storage system is within a safe range and the power is sufficient.
[0088] In this embodiment, the status data may include the power of the energy storage system, and whether the power supply is available may be determined based on the power of the energy storage system.
[0089] Exemplarily, the power level standard corresponding to the power supply state may be preset. For example, when the power level of the energy storage system is greater than 50%, it may be determined that the energy storage system is in the power supply state.
[0090] If the power grid is in a non-restricted period and the energy storage system is in a power supply state, execute step 223; if the power grid is in a restricted period and the energy storage system is in a power supply state, execute step 224; if the power grid is in a non-restricted period and the energy storage system is in a non-power supply state, execute step 225.
[0091] Step 223: Determine an electrical interaction object that implements electrical interaction with the vehicle based on the priority rules between the energy storage system and the power grid.
[0092] Optionally, the priority rule may be that the grid has a higher priority than the energy storage system.
[0093] Optionally, the corresponding priority rules may also be different based on the different amounts of power available for supply by the energy storage system, and the different restriction levels during the restricted time period or the different non-restriction levels during the non-restricted time period of the power grid.
[0094] Exemplarily, the power consumption period in the power grid may include a power outage period, a peak power consumption period, a peak power consumption period, a valley power consumption period, a low power consumption period, and a neglected power consumption period. Exemplarily, taking a day as an example, a day can be divided into a peak power consumption period, a valley power consumption period, a low power consumption period, and a neglected power consumption period according to power consumption from high to low. Among them, the valley power consumption period, the low power consumption period, and the neglected power consumption period can be determined as non-restricted time periods. Of course, based on different actual needs, the power consumption of the power grid can also be divided into more segments.
[0095] The power of the energy storage system can also be divided into the same segments as the power consumption period of the power grid. For example, the power of the energy storage system can be divided into less than 30%, 30% to 50%, 50% to 75%, and greater than 75%. Among them, the power segments of 50% to 75% and greater than 75% can be determined as power supply states. It can be understood that the above-mentioned power segmentation is only exemplary, and the power of the energy storage system can also be divided into more segments based on different actual needs.
[0096] Exemplarily, when the power grid is in a low power consumption period or a power consumption neglect period, the priority level of the power grid may be higher than the priority level of the energy storage system.
[0097] Exemplarily, when the power grid is in a low-power consumption period and the power level of the energy storage system is greater than 75%, the priority level of the energy storage system can be higher than the priority level of the power grid.
[0098] Based on different actual situations, the priority of the energy storage system and the power grid can be adaptively adjusted to meet the needs of more scenarios. For example, if the total capacity of the energy storage system is large, the requirements for the power supply state of the energy storage system are lower. For example, the power of the energy storage system can be determined to be in a power supply state when it is greater than 30% or 25%.
[0099] In the above steps, when both the energy storage system and the power grid meet the charging requirements, the electrical interaction object that interacts with the vehicle can be selected based on the priority rule, so that the charging logic can better meet the actual needs. Furthermore, considering that the power grid can transmit more electricity, while the energy storage system has a relatively limited storage capacity, the priority level of the power grid can be set higher than the priority level of the energy storage system, so that the power of the energy storage system can be better reserved for the vehicle charging needs when the power grid cannot be used.
[0100] The above step 220 may further include: step 224 and step 225 .
[0101] Step 224 : determining the energy storage system as an electrical interaction object that implements electrical interaction with the vehicle.
[0102] Step 225 : determining the power grid as an electrical interaction object for realizing electrical interaction with the vehicle.
[0103] Optionally, when the energy storage system is in a state where it cannot supply power and the power grid is not in a power outage period, the vehicle can be powered by the power grid.
[0104] Through the above logic, a more preferred power supply object can be adaptively screened based on the actual situation of the energy storage system and the power grid, which can improve the pressure on the power grid and better meet the charging needs of the vehicle.
[0105] In another embodiment, the charging and discharging demand of the vehicle may be a discharging demand.
[0106] The above-mentioned step 220 may include: judging whether the energy storage system is in a chargeable state according to the first state data, and if so, determining that the energy storage system is an electrical interaction object, and if not, interrupting the process.
[0107] Exemplarily, the chargeable state may include insufficient power of the energy storage system.
[0108] Exemplarily, the chargeable state may include that the temperature of the energy storage system is within a safe range and is suitable for receiving charging.
[0109] In order to more efficiently determine the electrical interaction object, the electrical interaction object may be determined through a deep learning model.
[0110] Based on this, the above-mentioned step 220 may include: taking the first state data and the first environment data as input data, and inputting them into a pre-trained decision model for calculation, so as to determine the electrical interaction object for the vehicle to achieve electrical interaction.
[0111] Based on this, the above-mentioned step 220 may also include: using the state data, first state data and first environment data of the connected vehicle as input data, and inputting them into a pre-trained decision model for calculation to determine the charging time of the vehicle and the electrical interaction object for the vehicle to achieve electrical interaction.
[0112] In one embodiment, the decision model is trained in the following manner:
[0113] Step 310, obtaining training data.
[0114] The training data includes a plurality of training samples, each of which includes vehicle state data, first state data, and first environment data.
[0115] The first environmental data may include: historical power demand data, timestamps of each power demand data, power demand data under different weather conditions, and power consumption time periods corresponding to historical power demand data, such as weekdays, weekends, etc. The vehicle status data may include the remaining power of the vehicle battery, the charging rate, the charging preference of the vehicle user, etc. The first status data may include data such as the power of the energy storage system and the temperature of the energy storage system.
[0116] In order to facilitate calculation, after obtaining the training samples, they can be preprocessed. The preprocessing can include data screening to remove data with missing content. The preprocessing can also include normalization processing to convert the sample data into a data vector and then scale it to a uniform range, such as 0 to 1, or -1 to 1, to improve the convergence speed of the model.
[0117] Optionally, the processed training data may be subjected to time series analysis according to time, and the time series data may be analyzed. The analysis content may include sliding average, difference, etc. of the data.
[0118] Optionally, new features can also be created based on actual predicted demand, such as demand prediction of charging timing, prediction of battery charging trend, decision on charging object, etc.
[0119] Optionally, the preprocessed training data can be divided into a training set, a validation set, and a test set.
[0120] Step 320: Input each training sample in the training data into the initial model for training to obtain a decision model.
[0121] Optionally, the initial model can be constructed using a deep learning framework. Exemplarily, the deep learning framework can be TensorFlow, PyTorch, Keras, etc. The deep learning framework can realize the construction and training of the model.
[0122] Exemplarily, the initial model may include an input layer, a hidden layer, an output layer, and a loss function and an optimizer.
[0123] The input layer can realize the following functions: timestamp, which is used to capture time correlation; grid demand characteristics: such as current power demand, historical demand patterns; vehicle characteristics, such as current battery status, vehicle user behavior patterns, etc.
[0124] Hidden layers may include: Multilayer Perceptron (MLP) or Recurrent Neural Network (RNN). For example, Long Short-Term Memory (LSTM) is used to learn patterns in time series data.
[0125] The output layer is used to implement charging and discharging decisions: the output is the charging and discharging status of the energy storage system. The decision can be a continuous value, which can represent the charging and discharging power. The decision can also be a value to indicate that it is not suitable for charging and discharging.
[0126] The loss function can use mean-square error (MSE) or root mean square error (RMSE) to measure the difference between the model prediction and the actual value.
[0127] An optimizer can be used to adjust network weights during training. For example, the optimizer can be an Adam optimizer.
[0128] Optionally, the decision model can be used to determine the electrical interaction object, the charging timing, etc.
[0129] In this embodiment, the time for the training to end can also be preset, and the time for the training to end can be limited by the number of training times, or by the upper limit of the error. For example, the upper limit of the number of training times can be 1000 times.
[0130] Optionally, you can also set the learning rate for model training. This can be determined through cross-validation.
[0131] Through the above method, the energy storage system can be used to power the vehicle even when the power grid is out of power, thereby improving the flexibility of vehicle charging. Furthermore, the above method can realize the free dispatch of power supply equipment, and can intelligently dispatch the charging and discharging process of the energy storage system according to the needs of the power grid, the status of the energy storage system and the charging status of the vehicle. It can achieve more efficient use of the energy storage system and reduce the burden on the power grid.
[0132] Furthermore, the state of the energy storage system can also be identified. While ensuring the safe charging and discharging operation of the energy storage system, the power supply pressure of the power grid is shared. Since the state of the energy storage system is also identified, overcharge protection, over-discharge protection, temperature monitoring, etc. can be implemented, so that the energy storage system can operate safely and stably under various working conditions.
[0133] In order to ensure that the energy storage system has sufficient power when power is needed, it can also be charged based on the conditions of the power grid when there is no vehicle charging demand.
[0134] In this embodiment, Figure 6 As shown, the charging and discharging method may further include the following steps 410 and 420.
[0135] Step 410: Obtain second state data of the energy storage system and second environmental data of the power grid.
[0136] Optionally, the above step 410 may be performed when the charging pile is not connected to the vehicle.
[0137] Exemplarily, the first state data may be similar to the content of the first state data described above. For example, the second state data may include temperature data of each battery module in the energy storage system, the power of the energy storage system, and the like.
[0138] Exemplarily, the second environment data may be similar to the first environment data described above. For example, the second environment data may include historical power demand data of the power grid, timestamps of each power demand data, power demand data under different weather conditions, and power consumption time periods corresponding to historical power demand data, such as weekdays, weekends, etc.
[0139] Step 420: Determine the charging and discharging direction of the energy storage system and the power grid according to the second state data and the second environment data.
[0140] Among them, the charging and discharging directions include discharging from the energy storage system to the grid and discharging from the grid to the energy storage system.
[0141] For example, when the second environmental data indicates that the power grid is in a peak period, the energy storage system has relatively sufficient power, and discharge can be started to release the power of the energy storage system to the power grid to relieve the pressure on the power grid.
[0142] The peak period may indicate that the electricity price is during the peak period, or the electricity consumption is during the peak period.
[0143] When the energy storage system reaches the end of discharge timing, the direction of the energy storage system can be ended. There are many ways to end the discharge of the energy storage system. The following introduces various end of discharge timings.
[0144] Exemplarily, after the energy storage system has completed discharging, the discharging may be terminated. The standard for discharging completion may be preset, for example, a minimum power standard of the energy storage system may be set, and when the energy storage system is discharged to the minimum power standard, the discharging is determined to be completed. The minimum power standard may be a smaller value such as 10%, 15%, or 20%.
[0145] Exemplarily, the state of the power grid changes from a peak period to a valley period, and the discharge can be terminated.
[0146] For example, if there is a discharge abnormality, the discharge can also be terminated. Charging abnormalities may include but are not limited to a significant slowdown in charging speed, a high temperature of the battery module of the energy storage system that exceeds a safe range, abnormal termination of charging, and a failure of the charging pile hardware.
[0147] In this embodiment, after the discharge anomaly is found, an anomaly report can be generated based on the anomaly, and the anomaly report can be sent to a designated device to investigate the cause of the anomaly. The designated device can be a background server for monitoring the energy storage system or a device of a relevant manager.
[0148] Exemplarily, when the second environmental data indicates that the power grid is in a flat or off-peak period, the power of the energy storage system is relatively small, and charging can be started to store power for the energy storage system for subsequent use.
[0149] The off-peak period may indicate that the electricity price is during the off-peak period, or the electricity consumption is during the off-peak period.
[0150] When the energy storage system reaches the end of charging time, the direction of the energy storage system can be ended. There are many ways to end the charging of the energy storage system. The following introduces various end of charging time.
[0151] Exemplarily, the charging may be terminated after the energy storage system is fully charged, for example, when the energy storage system is charged to 100%.
[0152] For example, the state of the power grid changes from a flat period to a peak period, and charging can be terminated.
[0153] For example, if there is a charging anomaly, charging can also be terminated. Charging anomalies may include but are not limited to a significant slowdown in charging speed, a high temperature of the battery module of the energy storage system that exceeds a safe range, abnormal charging termination, a failure of the charging pile hardware, a power supply failure, etc.
[0154] In this embodiment, after a charging anomaly is found, an anomaly report can be generated based on the anomaly, and the anomaly report can be sent to a designated device to investigate the cause of the anomaly. The designated device can be a background server for monitoring the energy storage system, or a device of a relevant manager.
[0155] In the above method, the status of the battery module of the energy storage system can be monitored, including key parameters such as voltage, current, temperature, etc. This helps to detect abnormal battery status in a timely manner, prevent potential safety problems, and improve the safety of the energy storage system.
[0156] In addition, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the charging and discharging method described in the above method embodiment are executed.
[0157] The computer program product of the charging and discharging method provided in the embodiment of the present application includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the steps of the charging and discharging method described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.
[0158] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0159] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0160] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk. It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variation thereof are intended to cover non-exclusive inclusion, so that a process, method, article or apparatus that includes a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or apparatus. In the absence of more restrictions, the elements defined by the sentence "includes..." do not exclude the presence of other identical elements in the process, method, article or apparatus that includes the elements.
[0161] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application. It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0162] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A charging and discharging method, characterized in that: The method comprises: Obtaining first state data of the energy storage system and first environmental data of the power grid; Determining an electrical interaction object that electrically interacts with the vehicle according to the first state data and the first environment data, wherein the electrical interaction object is the power grid or the energy storage system; The electric current of the vehicle is fed into the electrically interactive object, or the electric current of the electrically interactive object is fed into the vehicle.
2. The method according to claim 1, characterized in that The step of determining, according to the first state data and the first environment data, an electrical interaction object that electrically interacts with the vehicle comprises: Determining whether the current time is within the restricted period of the power grid according to the first environmental data; Determining whether the energy storage system is in a power supply state according to the first state data; If the power grid is in a non-restricted period and the energy storage system is in a power supply state, an electrical interaction object for realizing electrical interaction with the vehicle is determined based on a priority rule between the energy storage system and the power grid.
3. The method according to claim 2, characterized in that The step of determining, according to the first state data and the first environment data, an electrical interaction object that electrically interacts with the vehicle further comprises: If the power grid is in a restricted period and the energy storage system is in a power supply state, determining the energy storage system as an electrical interaction object for realizing electrical interaction with the vehicle; If the power grid is in a non-restricted period and the energy storage system is in a power-unavailable state, the power grid is determined as an electrical interaction object for realizing electrical interaction with the vehicle.
4. The method according to claim 2, characterized in that: The first environmental data includes: power grid power consumption distribution data; the determining whether the current time is in a power grid restriction period according to the first environmental data includes: Determining the power consumption of the power grid in different time periods according to the power grid power consumption distribution data; According to the power grid power consumption in the different time periods, the peak power consumption period is determined, wherein the user peak period is the power grid restriction period.
5. The method according to any one of claims 1 to 4, characterized in that: The step of determining, according to the first state data and the first environment data, an electrical interaction object that electrically interacts with the vehicle comprises: The first state data and the first environment data are used as input data and input into a pre-trained decision model for calculation to determine an electrical interaction object for the vehicle to achieve electrical interaction.
6. The method according to any one of claims 1 to 4, characterized in that: The step of determining, according to the first state data and the first environment data, an electrical interaction object that electrically interacts with the vehicle comprises: The state data of the connected vehicle, the first state data and the first environment data are used as input data and input into a pre-trained decision model for calculation to determine the charging time of the vehicle and the electrical interaction object with which the vehicle realizes electrical interaction.
7. The method according to claim 6, characterized in that The decision model is trained in the following way: Obtaining training data, wherein the training data includes a plurality of training samples, each training sample includes state data of the vehicle, first state data, and the first environment data; Each training sample in the training data is input into the initial model for training to obtain the decision model.
8. The method according to claim 1, characterized in that The method further comprises: Obtaining second state data of the energy storage system and second environment data of the power grid; The charging and discharging directions of the energy storage system and the power grid are determined according to the second state data and the second environment data, wherein the charging and discharging directions include discharging from the energy storage system to the power grid and discharging from the power grid to the energy storage system.
9. A charging pile, characterized in that: include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the charging pile is running, the machine-readable instructions are executed by the processor to perform the steps of the method according to any one of claims 1 to 8.
10. An energy storage system, characterized in that: include: Battery modules; A management unit and a conversion unit for managing the battery module; At least one second connection interface for connecting to the charging pile according to claim 9, and realizing electrical interaction with the charging pile through the second connection interface.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, performs the steps of the method according to any one of claims 1 to 8.
12. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Energy storage charging pile with appointed power utilization function and control method thereof
CN110712556A
Charging pile charging and discharging control method and charging and discharging system
CN111231703A
Charging and discharging control method and system of energy storage type charging pile
CN116639005A
Control method and device for bidirectional charging and discharging pile
CN117922352A
Apparatus and method for ESS to supplement grid power
US20230402849A1
