Method of controlling charge and discharge of energy storage device, controller and charging system

By combining actual power data from photovoltaic and charging devices, the charging and discharging strategies of energy storage devices are optimized, solving the problem of inaccurate control of energy storage devices in photovoltaic-storage-charging systems, and achieving efficient utilization of power and optimization of grid load.

CN115549274BActive Publication Date: 2026-11-06HUAWEI DIGITAL POWER TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211114609.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-14
Publication Date
2026-11-06
Estimated Expiration
2042-09-14

AI Technical Summary

Technical Problem

In existing photovoltaic-storage-charging systems, the charging and discharging control of energy storage devices is inaccurate, leading to unreasonable power dispatch and an inability to effectively utilize the volatility of photovoltaic power generation and the changing power demand of charging devices.

Method used

By combining the actual electrical energy provided by the photovoltaic device and the actual electrical energy demanded by the charging device, the power output relationship between the energy storage device and other devices is adjusted. Neural network algorithms and mean clustering algorithms are used to improve prediction accuracy and optimize the charging and discharging strategy of the energy storage device.

Benefits of technology

It improves the accuracy and efficiency of energy storage device charging and discharging, optimizes the utilization of electrical energy, reduces grid load and costs, and enhances the stability of photovoltaic power generation systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115549274B_ABST
    Figure CN115549274B_ABST
Patent Text Reader

Abstract

The application provides a method for controlling charging and discharging of an energy storage device, a controller and a charging system. In the method for controlling charging and discharging of the energy storage device, after the controller predicts a first residual electric energy of the energy storage device at a second target time based on a first electric energy value converted by a photovoltaic device at a first target time and a first required electric energy value of a charging device at the first target time, when the controller adjusts charging and discharging of the energy storage device from the first target time to the second target time, in addition to considering the residual electric energy of the energy storage device at the first target time and the residual electric energy of the energy storage device at the second target time, the actual provided electric energy value of the photovoltaic device at the first target time and the actual required electric energy value of the charging device at the first target time are also considered, thereby helping to improve the accuracy of the controller when controlling charging and discharging of the energy storage device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a method, controller and charging system for controlling the charging and discharging of an energy storage device. Background Technology

[0002] To promote the integration of electric vehicles (EVs) into daily life, the charging problem needs to be addressed. Directly connecting a large number of EVs to the grid for charging would significantly increase the grid's load. To alleviate this load, one solution is to establish a charging system that includes photovoltaic (PV) power generation devices and charging units. The charging units connect to the EVs for charging, while the PV power generation devices convert solar energy into electrical energy to power the charging units. This approach utilizes renewable energy while reducing the need to draw power from the grid.

[0003] Photovoltaic power generation is susceptible to external environmental influences, resulting in significant fluctuations in the output power of photovoltaic devices. Therefore, current charging systems are also equipped with energy storage devices (devices that can both discharge and charge). In the industry, charging systems that combine photovoltaic devices, energy storage devices, and charging devices are also referred to as photovoltaic-storage-charging systems.

[0004] For photovoltaic-storage-charging systems, the energy demand of the charging device is constantly changing, and the energy that the photovoltaic device can provide is not constant. Therefore, controlling the charging and discharging of the energy storage device is crucial. Currently, one method for controlling the charging and discharging of the energy storage device is as follows: Based on the energy provided by the photovoltaic device at multiple historical moments, the energy that the photovoltaic device can provide at the first moment in the future period is predicted. Based on the energy demand of the charging device at multiple historical moments, the energy demand of the charging device at the first moment in the future period is predicted. Based on the energy that can be provided and the energy demand at the first moment in the future period, a preset optimization algorithm is used to predict the target remaining energy of the energy storage device at the second moment in the future period (the predicted second moment is after the first moment). Then, when the photovoltaic-storage-charging system reaches the first moment of the future period, the controller controls the charging and discharging of the energy storage device based on the actual remaining energy of the energy storage device at the first moment and the predicted target remaining energy at the second moment.

[0005] However, the above-mentioned control of the charging and discharging of energy storage devices may result in inaccuracies. Summary of the Invention

[0006] This application provides a method, controller, and charging system for controlling the charging and discharging of an energy storage device. When the charging system operates to a first target time, the charging and discharging of the energy storage device is controlled based on the relationship between the actual remaining electrical energy of the energy storage device at the first target time and the predicted remaining electrical energy of the energy storage device at the second target time, as well as the actual electrical energy provided by the photovoltaic device at the first target time and the actual electricity demand of the charging system at the first target time, thereby improving the accuracy of controlling the charging and discharging of the energy storage device.

[0007] In a first aspect, this application provides a method for controlling the charging and discharging of an energy storage device, applied to a charging system. The charging system includes a charging device, a photovoltaic device, and an energy storage device. The charging device provides electrical energy to electrical equipment. The photovoltaic device converts light energy into electrical energy to output the converted electrical energy to the charging device and the energy storage device. The energy storage device stores the electrical energy output by the photovoltaic device and outputs electrical energy to the charging device. The method includes: predicting a first remaining electrical energy of the energy storage device at a second target time based on a first electrical energy value and a first demand electrical energy value. The first electrical energy value is the predicted electrical energy that the photovoltaic device can provide at the first target time, and the first demand electrical energy value is the predicted electrical energy value that the charging device requires at the first target time. At the first target time, adjusting the electrical output relationship between the energy storage device and a target device based on the relationship between the remaining electrical energy of the energy storage device and the first remaining electrical energy, a first actual electrical energy value, and an actual electricity consumption value. The target device includes at least one of the photovoltaic device, the charging device, or the power grid. The first actual electrical energy value is the electrical energy actually provided by the photovoltaic device at the first target time, and the actual electricity consumption value is the electrical energy actually required by the charging device at the first target time.

[0008] The power output relationship between the energy storage device and the target device includes any of the following: the energy storage device obtains power from the photovoltaic device and / or the power grid; the energy storage device outputs power to the charging device; or the energy storage device does not obtain power from the photovoltaic device or the power grid and does not output power to the charging device.

[0009] In this embodiment, after predicting the remaining energy (i.e., the first remaining energy) of the energy storage device at the second target time based on the predicted first electrical energy value that the photovoltaic device can convert at the first target time and the first electrical energy demand value of the charging device at the first target time, when adjusting the power output relationship between the energy storage device and other devices from the first target time to the second target time, in addition to considering the remaining energy of the energy storage device at the first target time and the remaining energy at the second target time, the actual electrical energy value provided by the photovoltaic device at the first target time and the actual electrical energy value required by the charging device at the current time (i.e., the actual power consumption value) are also considered. It can be understood that adjusting the power output relationship between the energy storage device and other devices from the first target time to the second target time is equivalent to adjusting the charging and discharging of the energy storage device. Therefore, in this application, adjusting the power output relationship between the energy storage device and other devices from the first target time to the second target time is also referred to as adjusting the charging and discharging of the energy storage device.

[0010] It should be noted that in existing technologies, when the charging system reaches the first target time (i.e., the current time), the controller directly adjusts the power output relationship with other devices based on the relationship between the remaining power of the energy storage device at the first target time and the predicted first remaining power at the second target time. For example, if the actual remaining power of the energy storage device at the first target time is less than the first remaining power at the second target time, the energy storage device is adjusted to obtain power from the grid or photovoltaic device (i.e., to charge the energy storage device); if the remaining power of the energy storage device at the current first target time is greater than the first remaining power at the second target time, the energy storage device is adjusted to provide power to the charging device (i.e., to discharge the energy storage device); and if the remaining power of the energy storage device at the current first target time is equal to the first remaining power at the second target time, the energy storage device is adjusted not to obtain power from the photovoltaic device or grid and not to output power to the charging device (i.e., the energy storage device neither charges nor discharges).

[0011] However, it should be understood that since the first remaining energy at the second target time is based on the predicted first energy value and the first demand energy value, and the predicted first energy value and the first demand energy value may be inaccurate, adjusting the energy output relationship between the energy storage device and other devices solely based on the relationship between the remaining energy of the energy storage device at the first target time and the predicted first remaining energy at the second target time will be inaccurate. For example, if the remaining energy of the energy storage device at the current first target time is greater than the first remaining energy at the second target time, and if the energy provided by the photovoltaic device in the charging system at the current first target time is greater than the energy required by the charging device at the current time, then the photovoltaic device can not only provide the energy required by the charging device but also have a surplus of energy. Therefore, this surplus energy can be provided to the energy storage device to charge it, rather than adjusting the energy storage device to discharge to provide energy to the charging device.

[0012] Therefore, in this embodiment, after determining the relationship between the remaining energy of the energy storage device at the first target time and the predicted first remaining energy at the second target time, the actual energy provided by the photovoltaic device at the first target time and the actual energy required by the charging device at the first target time are also considered to determine whether the energy output relationship between the energy storage device and other devices determined based on the relationship between the remaining energy of the energy storage device at the first target time and the predicted first remaining energy at the second target time is reasonable. That is, it is equivalent to correcting the deviation based on the actual energy provided by the photovoltaic device at the first target time and the actual energy required by the charging device at the first target time, thereby improving the accuracy of adjusting the charging and discharging of the energy storage device.

[0013] In conjunction with the first aspect, in one possible implementation, adjusting the power output relationship between the energy storage device and the target device includes: if the remaining power of the energy storage device is less than the first remaining power, the first power value is greater than the first actual power value, and the current electricity price of the grid is at the flat price or the off-peak price, adjusting the energy storage device to obtain power from the grid.

[0014] In this implementation, if the predicted value of the first electrical energy provided by the photovoltaic device at the first target time is greater than the actual value of the electrical energy provided by the photovoltaic device at the first target time, and if the grid electricity price at the first target time is at the flat price or the off-peak price, it means that the electricity price when obtaining electricity from the grid is relatively cheap. Therefore, in this case, the controller will adjust the energy storage device to obtain electrical energy from the grid (i.e., allow the grid to be used to charge the energy storage device).

[0015] In conjunction with the first aspect, in one possible implementation, adjusting the power output relationship between the energy storage device and the target device includes: if the remaining power of the energy storage device is less than a first remaining power and the first power value is less than or equal to a first actual power value, adjusting the energy storage device to obtain power from the photovoltaic device and / or the power grid.

[0016] It is understandable that when the first electrical energy value is less than the actual electrical energy value provided by the photovoltaic device at the current moment, it indicates that the actual electrical energy value provided by the photovoltaic device is too high. Therefore, in this embodiment, if the remaining electrical energy at the current moment is less than the first remaining electrical energy value, and if the first electrical energy value is less than or equal to the first actual electrical energy value, the energy storage device is adjusted to obtain electrical energy from the photovoltaic device and / or the power grid.

[0017] In conjunction with the first aspect, in one possible implementation, adjusting the power output relationship between the energy storage device and the target device includes: if the remaining power of the energy storage device is less than the first remaining power, the grid electricity price at the first target time is not at the flat price or off-peak price, and the first actual power value is greater than the actual power consumption value, adjusting the energy storage device to obtain power from the photovoltaic device and not allowing it to obtain power from the grid.

[0018] Understandably, since the grid electricity price at the first target time is not at the flat or off-peak price, the cost of drawing electricity from the grid to charge the energy storage device would be relatively high. Therefore, in this implementation, the energy storage device is adjusted not to draw electricity from the grid. However, since the actual electricity provided by the photovoltaic device at the current time is greater than the actual electricity consumption, it indicates that the electricity provided by the photovoltaic device is sufficient to meet the load demand. Furthermore, there will be additional surplus electricity. Therefore, in this implementation, to avoid wasting the electricity provided by the photovoltaic device, this embodiment will adjust the energy storage device to draw electricity from the photovoltaic device.

[0019] In conjunction with the first aspect, in one possible implementation, adjusting the power output relationship between the energy storage device and the target device includes: if the remaining power of the energy storage device is less than the first remaining power, the grid electricity price at the first target time is not at the flat price or off-peak price, and the first actual power value is less than or equal to the actual power consumption value, adjusting the energy storage device to not obtain power from the photovoltaic device and the grid and the energy storage device not output power to the charging device.

[0020] It is understandable that since the electricity price at the first target time is not at the flat or off-peak price, the cost of obtaining electricity from the grid to charge the energy storage device would be relatively high. Therefore, in this embodiment, the controller adjusts the energy storage device to not obtain electricity from the grid.

[0021] If the actual electrical energy provided by the photovoltaic device at the current moment is less than or equal to the actual electrical consumption, it means that the electrical energy provided by the photovoltaic device may not meet the load demand. Under such circumstances, it is obviously unreasonable to use the photovoltaic device and the grid to charge the energy storage device.

[0022] Therefore, in this implementation, if the remaining electrical energy at the first target time is less than the first remaining electrical energy, if the grid electricity price at the first target time is not at the flat price or valley price, and the first actual electrical energy value is less than or equal to the actual electricity value, then the energy storage device will not obtain electrical energy from the photovoltaic device and the grid, and the energy storage device will not output electrical energy to the charging device (i.e., the controller controls the device to neither charge nor discharge).

[0023] In conjunction with the first aspect, in one possible implementation, adjusting the power output relationship between the energy storage device and the target device includes: if the remaining power of the energy storage device is greater than the first remaining power, the charging device does not obtain power from the grid to charge the electrical equipment, and the first actual power value is greater than the actual power consumption value, adjusting the energy storage device to obtain power from the photovoltaic device.

[0024] It is understandable that if the actual electrical energy provided by the photovoltaic device at the first target time (the first actual electrical energy value) is greater than the actual electricity consumption, it means that the electrical energy provided by the photovoltaic device can fully meet the load demand. In addition, there will be extra surplus electrical energy. Therefore, in order not to waste the electrical energy provided by the photovoltaic device, this embodiment will adjust the energy storage device to obtain electrical energy from the photovoltaic device, that is, control the energy storage device to charge.

[0025] In conjunction with the first aspect, in one possible implementation, adjusting the power output relationship between the energy storage device and the target device includes: if the remaining power of the energy storage device is greater than the first remaining power, the charging device does not obtain power from the grid to charge the electrical equipment, the first actual power value is less than or equal to the actual power consumption value, and the remaining power of the energy storage device is greater than the second remaining power, adjusting the energy storage device to output power to the charging device, wherein the second remaining power is the remaining power of the energy storage device at the second target time, which is re-predicted based on the first actual power value and the actual power consumption value.

[0026] It is understandable that if the first actual electrical energy value is less than or equal to the actual electricity consumption value, and the remaining electrical energy of the energy storage device is greater than the second remaining electrical energy value, it indicates that the actual electrical energy value provided by the photovoltaic device at the current moment may not meet the load demand. However, since the remaining electrical energy of the energy storage device at the current moment is relatively high, in this implementation method, even if the remaining electrical energy of the energy storage device is greater than the first remaining electrical energy value and the charging device does not obtain electrical energy from the grid to charge the electrical equipment, if the first actual electrical energy value is less than or equal to the actual electricity consumption value and the remaining electrical energy of the energy storage device is greater than the second remaining electrical energy value, then the energy storage device is adjusted to output electrical energy to the charging device.

[0027] In conjunction with the first aspect, in one possible implementation, adjusting the power output relationship between the energy storage device and the target device includes: if the remaining power of the energy storage device is less than or equal to the second remaining power, the charging device does not obtain power from the grid to charge the electrical equipment, and the first actual power value is less than or equal to the actual power consumption value, adjusting the energy storage device to not obtain power from the photovoltaic device and not output power to the charging device.

[0028] It is understandable that if the actual electrical energy provided at the current moment is less than or equal to the actual electrical energy consumed, it means that the actual electrical energy provided by the photovoltaic device at the current moment may not meet the load demand. In this case, it is obviously unreasonable to allocate the electrical energy provided by the photovoltaic device to the energy storage device. In addition, since the remaining power of the energy storage device at the current moment is less than or equal to the second remaining power, the energy storage device should not be allowed to provide power to the charging device.

[0029] Therefore, in this implementation, if the remaining electrical energy of the energy storage device is less than or equal to the second remaining electrical energy, and the charging device does not draw electrical energy from the grid to charge the electrical equipment, and if the first actual electrical energy value is less than or equal to the actual electricity consumption value, and the remaining electrical energy of the energy storage device is less than or equal to the second remaining electrical energy, the energy storage device is adjusted to not draw electrical energy from the photovoltaic device or the grid and not output electrical energy to the charging device (i.e., the energy storage device neither charges nor discharges).

[0030] In conjunction with the first aspect, in one possible implementation, adjusting the power output relationship between the energy storage device and the target device includes: if the remaining power of the energy storage device is the same as the first remaining power, the remaining power of the energy storage device is greater than the second remaining power, and the first actual power value is greater than the actual power consumption value, adjusting the energy storage device to obtain power from the photovoltaic device.

[0031] It is understandable that when the first actual power value is greater than the actual power consumption value, it means that the actual power value provided by the photovoltaic device at the current moment can meet the load demand. Therefore, in this implementation method, even if it is determined that the remaining power of the energy storage device is the same as the first remaining power and the remaining power of the energy storage device is greater than the second remaining power, the energy storage device is adjusted to obtain power from the photovoltaic device, so as to avoid wasting the power provided by the photovoltaic device.

[0032] In conjunction with the first aspect, in one possible implementation, adjusting the power output relationship between the energy storage device and the target device includes: if the remaining power of the energy storage device is the same as the first remaining power, the remaining power of the energy storage device is greater than the second remaining power, and the first actual power value is less than or equal to the actual power consumption value, adjusting the energy storage device to output power to the charging device.

[0033] It is understandable that if the remaining power of the energy storage device at the first target time is equal to the first remaining power at the predicted second target time, and if the remaining power of the energy storage device is greater than or equal to the second remaining power and the first actual power value is less than or equal to the actual power consumption value, it means that the power provided by the photovoltaic device cannot meet the load demand, but at this time the remaining power of the energy storage device is relatively large.

[0034] Therefore, in this embodiment, when the remaining electrical energy of the energy storage device is the same as the first remaining electrical energy, if the remaining electrical energy of the energy storage device is greater than the second remaining electrical energy, and the first actual electrical energy value is less than or equal to the actual electricity consumption value, the energy storage device is adjusted to output electrical energy to the charging device, that is, the energy storage device is controlled to discharge.

[0035] In conjunction with the first aspect, in one possible implementation, adjusting the power output relationship between the energy storage device and the target device includes: if the remaining power of the energy storage device is the same as the first remaining power, the remaining power of the energy storage device is the same as the second remaining power, and the first actual power value is greater than the actual power consumption value, adjusting the energy storage device to obtain power from the photovoltaic device.

[0036] Understandably, if the remaining electrical energy of the energy storage device at the current moment equals the second remaining electrical energy, but since the actual electrical energy provided by the photovoltaic device at the current moment is greater than the actual electricity consumption, meaning the electrical energy provided by the photovoltaic device can fully supply the load demand and there will still be a surplus, in this implementation, even if the remaining electrical energy of the energy storage device is the same as the first remaining electrical energy, if the remaining electrical energy of the energy storage device equals the second remaining electrical energy and the first actual electrical energy value is greater than the actual electricity consumption value, then the energy storage device will still be adjusted to obtain electrical energy from the photovoltaic device.

[0037] In conjunction with the first aspect, in one possible implementation, adjusting the power output relationship between the energy storage device and the target device includes: if the remaining power of the energy storage device is the same as the first remaining power, the remaining power of the energy storage device is the same as the second remaining power, and the first actual power value is less than or equal to the actual power consumption value, adjusting the energy storage device to not obtain power from the photovoltaic device and the power grid and not output power to the charging device.

[0038] In conjunction with the first aspect, in one possible implementation, adjusting the power output relationship between the energy storage device and the target device includes: if the remaining power of the energy storage device is greater than the first remaining power, the charging device obtains power from the grid to charge the electrical equipment, and the sum of the first actual power value and the power provided by the grid is less than the actual power consumption value, adjusting the energy storage device to output power to the charging device.

[0039] In conjunction with the first aspect, in one possible implementation, the charging device includes an AC-DC unit, a DC bus unit, and a first DC-DC unit. The AC-DC unit is used to convert the AC power obtained from the photovoltaic device and the AC power generated by the power grid into DC power of a first voltage value. The DC bus unit and the energy storage device are connected through the DC bus. The DC bus unit is used to transmit the DC power of the first voltage value to the energy storage device or to transmit the DC power in the energy storage device to the charging device through the DC bus. The first DC-DC unit is used to convert the DC power of the first voltage value into DC power of a second voltage value adapted to the electrical equipment to charge the electrical equipment. Adjusting the power output relationship between the energy storage device and the target device includes: if the remaining power of the energy storage device is greater than the first remaining power, the charging device obtains power from the power grid to charge the electrical equipment, and the sum of the first actual power value and the power provided by the power grid is greater than or equal to the actual power consumption value, but the maximum power value of the DC power that the AC-DC unit can convert is less than the actual power consumption value, adjusting the energy storage device to output power to the charging device.

[0040] In conjunction with the first aspect, in one possible implementation, the first electrical energy value is obtained using a neural network algorithm and a mean clustering algorithm based on the electrical energy values ​​provided by the photovoltaic device at multiple historical moments.

[0041] In this implementation, the accuracy of the predicted first electrical energy value is improved because a neural network algorithm and a mean clustering algorithm are used to predict the first electrical energy that the photovoltaic device can provide at the first target time, instead of using only a single algorithm.

[0042] In conjunction with the first aspect, in one possible implementation, the first required electrical energy value is obtained using a neural network algorithm and a mean clustering algorithm based on the electrical energy required by the charging device at multiple historical moments.

[0043] In this implementation, the accuracy of the predicted first energy demand value is improved because a neural network algorithm and a mean clustering algorithm are used to predict the first energy demand value required by the charging device at the first target time, instead of using only a single algorithm.

[0044] Secondly, this application provides a control device for controlling the charging and discharging of an energy storage device, applied to a charging system. The charging system includes a charging device, a photovoltaic device, and an energy storage device. The charging device provides electrical energy to electrical equipment. The photovoltaic device converts light energy into electrical energy to output the converted electrical energy to the charging device and the energy storage device. The energy storage device stores the electrical energy output by the photovoltaic device and outputs electrical energy to the charging device. The control device includes:

[0045] The prediction module is used to predict the first remaining electrical energy of the energy storage device at a second target time based on a first electrical energy value and a first demand electrical energy value. The first electrical energy value is the predicted electrical energy value that the photovoltaic device can provide at the first target time, and the first demand electrical energy value is the predicted electrical energy value that the charging device needs at the first target time. The adjustment module is used to adjust the electrical output relationship between the energy storage device and the target device at the first target time based on the relationship between the remaining electrical energy of the energy storage device and the first remaining electrical energy, the first actual electrical energy value, and the actual electricity consumption value. The target device includes at least one of the photovoltaic device, the charging device, or the power grid. The first actual electrical energy value is the electrical energy value actually provided by the photovoltaic device at the first target time, and the actual electricity consumption value is the electrical energy value actually needed by the charging device at the first target time.

[0046] In conjunction with the second aspect, in one possible implementation, the adjustment module is specifically used to: adjust the energy storage device to obtain power from the grid if the remaining power of the energy storage device is less than the first remaining power, the first power value is greater than the first actual power value, and the grid electricity price at the first target time is at the flat price or the off-peak price.

[0047] In conjunction with the second aspect, in one possible implementation, the adjustment module is specifically used to: if the remaining electrical energy of the energy storage device is less than the first remaining electrical energy, and the first electrical energy value is less than or equal to the first actual electrical energy value, adjust the energy storage device to obtain electrical energy from the photovoltaic device and / or the power grid.

[0048] In conjunction with the second aspect, in one possible implementation, the adjustment module is specifically used to: if the remaining electrical energy of the energy storage device is less than the first remaining electrical energy, the grid electricity price at the first target time is not at the flat price or off-peak price, and the first actual electrical energy value is greater than the actual electricity consumption value, adjust the energy storage device to obtain electrical energy from the photovoltaic device and prohibit it from obtaining electrical energy from the grid.

[0049] In conjunction with the second aspect, in one possible implementation, the adjustment module is specifically used to: if the remaining electrical energy of the energy storage device is less than the first remaining electrical energy, the grid electricity price at the first target time is not at the flat price or off-peak price, and the first actual electrical energy value is less than or equal to the actual electricity consumption value, adjust the energy storage device to not obtain electrical energy from the photovoltaic device and the grid, and the energy storage device to not output electrical energy to the charging device.

[0050] In conjunction with the second aspect, in one possible implementation, the adjustment module is specifically used to: adjust the energy storage device to obtain power from the photovoltaic device if the remaining power of the energy storage device is greater than the first remaining power, the charging device does not obtain power from the grid to charge the electrical equipment, and the first actual power value is greater than the actual power consumption value.

[0051] In conjunction with the second aspect, in one possible implementation, the adjustment module is specifically used to: if the remaining electrical energy of the energy storage device is greater than the first remaining electrical energy, the charging device does not obtain electrical energy from the grid to charge the electrical equipment, the first actual electrical energy value is less than or equal to the actual electricity consumption value, and the remaining electrical energy of the energy storage device is greater than the second remaining electrical energy, adjust the energy storage device to output electrical energy to the charging device, wherein the second remaining electrical energy is the remaining electrical energy of the energy storage device at the second target time, which is re-predicted based on the first actual electrical energy value and the actual electricity consumption value.

[0052] In conjunction with the second aspect, in one possible implementation, the adjustment module is specifically used to: if the remaining electrical energy of the energy storage device is less than or equal to the second remaining electrical energy, the charging device does not obtain electrical energy from the grid to charge the electrical equipment, the first actual electrical energy value is less than or equal to the actual electricity consumption value, and the remaining electrical energy of the energy storage device is less than or equal to the second remaining electrical energy, adjust the energy storage device to not obtain electrical energy from the photovoltaic device and not output electrical energy to the charging device.

[0053] In conjunction with the second aspect, in one possible implementation, the adjustment module is specifically used to: adjust the energy storage device to obtain electrical energy from the photovoltaic device if the remaining electrical energy of the energy storage device is the same as the first remaining electrical energy, the remaining electrical energy of the energy storage device is greater than the second remaining electrical energy, and the first actual electrical energy value is greater than the actual electricity consumption value.

[0054] In conjunction with the second aspect, in one possible implementation, the adjustment module is specifically used to: adjust the energy storage device to output electrical energy to the charging device if the remaining electrical energy of the energy storage device is the same as the first remaining electrical energy, the remaining electrical energy of the energy storage device is greater than the second remaining electrical energy, and the first actual electrical energy value is less than or equal to the actual electricity consumption value.

[0055] In conjunction with the second aspect, in one possible implementation, the adjustment module is specifically used to: adjust the energy storage device to obtain electrical energy from the photovoltaic device if the remaining electrical energy of the energy storage device is the same as the first remaining electrical energy, the remaining electrical energy of the energy storage device is the same as the second remaining electrical energy, and the first actual electrical energy value is greater than the actual electricity consumption value.

[0056] In conjunction with the second aspect, in one possible implementation, the adjustment module is specifically used to: if the remaining electrical energy of the energy storage device is the same as the first remaining electrical energy, the remaining electrical energy of the energy storage device is the same as the second remaining electrical energy, and the first actual electrical energy value is less than or equal to the actual electricity consumption value, adjust the energy storage device to not obtain electrical energy from the photovoltaic device and the power grid and not output electrical energy to the charging device.

[0057] In conjunction with the second aspect, in one possible implementation, the adjustment module is specifically used to: if the remaining electrical energy of the energy storage device is greater than the first remaining electrical energy, the charging device obtains electrical energy from the power grid to charge the electrical equipment, and the sum of the first actual electrical energy value and the electrical energy provided by the power grid is less than the actual electrical consumption value, adjust the energy storage device to output electrical energy to the charging device.

[0058] In conjunction with the second aspect, in one possible implementation, the charging device includes an AC-DC unit, a DC bus unit, and a first DC-DC unit. The AC-DC unit is used to convert the AC power obtained from the photovoltaic device and the AC power generated by the power grid into DC power of a first voltage value. The DC bus unit and the energy storage device are connected through the DC bus. The DC bus unit is used to transmit the DC power of the first voltage value to the energy storage device or to transmit the DC power in the energy storage device to the charging device. The first DC-DC unit is used to convert the DC power of the first voltage value into DC power of a second voltage value adapted to the electrical equipment to charge the electrical equipment. The adjustment module is specifically used to: control the energy storage device to output electrical power to the charging device if the remaining electrical energy of the energy storage device is greater than the first remaining electrical energy, the charging device obtains electrical energy from the power grid to charge the electrical equipment, the sum of the first actual electrical energy value and the electrical energy provided by the power grid is greater than or equal to the actual electrical consumption value, but the maximum electrical energy value of the DC power that the AC-DC unit can convert is less than the actual electrical consumption value.

[0059] In conjunction with the second aspect, in one possible implementation, the first electrical energy value is obtained using a neural network algorithm and a mean clustering algorithm based on the electrical energy values ​​provided by the photovoltaic device at multiple historical moments.

[0060] In conjunction with the second aspect, in one possible implementation, the first required electrical energy value is obtained using a neural network algorithm and a mean clustering algorithm based on the electrical energy required by the charging device at multiple historical moments.

[0061] Thirdly, this application provides a controller for use in a charging system, the charging system including a charging device, a photovoltaic device, and an energy storage device. The charging device is used to provide electrical energy to electrical equipment, the photovoltaic device is used to convert light energy into electrical energy to output the converted electrical energy to the charging device and the energy storage device, and the energy storage device is used to store the electrical energy output by the photovoltaic device and to output electrical energy to the charging device. The controller is used for:

[0062] The energy storage device is predicted to have a first remaining energy at a second target time based on a first energy value and a first energy demand value. The first energy value is the predicted energy value that the photovoltaic device can provide at the first target time, and the first energy demand value is the predicted energy value that the charging device requires at the first target time.

[0063] At the first target time, the power output relationship between the energy storage device and the target device is adjusted according to the relationship between the remaining power of the energy storage device and the first remaining power, the first actual power value and the actual power consumption value. The target device includes at least one of the photovoltaic device, the charging device or the power grid. The first actual power value is the power value actually provided by the photovoltaic device at the first target time, and the actual power consumption value is the power value actually required by the charging device at the first target time.

[0064] In conjunction with the third aspect, in one possible implementation, the controller is specifically used to: adjust the energy storage device to obtain power from the grid if the remaining power of the energy storage device is less than the first remaining power, the first power value is greater than the first actual power value, and the grid electricity price at the first target time is at the flat price or the off-peak price.

[0065] In conjunction with the third aspect, in one possible implementation, the controller is specifically configured to: adjust the energy storage device to obtain electrical energy from the photovoltaic device and / or the power grid if the remaining electrical energy of the energy storage device is less than a first remaining electrical energy and the first electrical energy value is less than or equal to a first actual electrical energy value.

[0066] In conjunction with the third aspect, in one possible implementation, the controller is specifically configured to: if the remaining electrical energy of the energy storage device is less than the first remaining electrical energy, the grid electricity price at the first target time is not at the flat price or off-peak price, and the first actual electrical energy value is greater than the actual electricity consumption value, adjust the energy storage device to obtain electrical energy from the photovoltaic device and disallow obtaining electrical energy from the grid.

[0067] In conjunction with the third aspect, in one possible implementation, the controller is specifically configured to: if the remaining electrical energy of the energy storage device is less than the first remaining electrical energy, the grid electricity price at the first target time is not at the flat price or off-peak price, and the first actual electrical energy value is less than or equal to the actual electricity consumption value, adjust the energy storage device to not obtain electrical energy from the photovoltaic device and the grid, and the energy storage device to not output electrical energy to the charging device.

[0068] In conjunction with the third aspect, in one possible implementation, the controller is specifically configured to: adjust the energy storage device to obtain power from the photovoltaic device if the remaining power of the energy storage device is greater than the first remaining power, the charging device does not obtain power from the grid to charge the electrical equipment, and the first actual power value is greater than the actual power consumption value.

[0069] In conjunction with the third aspect, in one possible implementation, the controller is specifically configured to: adjust the energy storage device to output power to the charging device if the remaining power of the energy storage device is greater than the first remaining power, the charging device does not draw power from the grid to charge the electrical equipment, the first actual power value is less than or equal to the actual power consumption value, and the remaining power of the energy storage device is greater than the second remaining power, wherein the second remaining power is the remaining power of the energy storage device at the second target time, which is re-predicted based on the first actual power value and the actual power consumption value.

[0070] In conjunction with the third aspect, in one possible implementation, the controller is specifically configured to: if the remaining electrical energy of the energy storage device is less than or equal to the second remaining electrical energy, the charging device does not obtain electrical energy from the grid to charge the electrical equipment, the first actual electrical energy value is less than or equal to the actual electricity consumption value, and the remaining electrical energy of the energy storage device is less than or equal to the second remaining electrical energy, adjust the energy storage device to not obtain electrical energy from the photovoltaic device and not output electrical energy to the charging device.

[0071] In conjunction with the third aspect, in one possible implementation, the controller is specifically configured to: adjust the energy storage device to obtain electrical energy from the photovoltaic device if the remaining electrical energy of the energy storage device is the same as the first remaining electrical energy, the remaining electrical energy of the energy storage device is greater than the second remaining electrical energy, and the first actual electrical energy value is greater than the actual electricity consumption value.

[0072] In conjunction with the third aspect, in one possible implementation, the controller is specifically configured to: adjust the energy storage device to output electrical energy to the charging device if the remaining electrical energy of the energy storage device is the same as the first remaining electrical energy, the remaining electrical energy of the energy storage device is greater than the second remaining electrical energy, and the first actual electrical energy value is less than or equal to the actual electricity consumption value.

[0073] In conjunction with the third aspect, in one possible implementation, the controller is specifically configured to: adjust the energy storage device to obtain electrical energy from the photovoltaic device if the remaining electrical energy of the energy storage device is the same as the first remaining electrical energy, the remaining electrical energy of the energy storage device is the same as the second remaining electrical energy, and the first actual electrical energy value is greater than the actual electricity consumption value.

[0074] In conjunction with the third aspect, in one possible implementation, the controller is specifically configured to: if the remaining electrical energy of the energy storage device is the same as the first remaining electrical energy, the remaining electrical energy of the energy storage device is the same as the second remaining electrical energy, and the first actual electrical energy value is less than or equal to the actual electricity consumption value, adjust the energy storage device to not obtain electrical energy from the photovoltaic device and the power grid and not output electrical energy to the charging device.

[0075] In conjunction with the third aspect, in one possible implementation, the controller is specifically configured to: adjust the energy storage device to output power to the charging device if the remaining power of the energy storage device is greater than the first remaining power, the charging device obtains power from the grid to charge the electrical equipment, and the sum of the first actual power value and the power provided by the grid is less than the actual power consumption value.

[0076] In conjunction with the third aspect, in one possible implementation, the charging device includes an AC-DC unit, a DC bus unit, and a first DC-DC unit. The AC-DC unit is used to convert the AC power obtained from the photovoltaic device and the AC power generated by the power grid into DC power of a first voltage value. The DC bus unit and the energy storage device are connected through the DC bus. The DC bus unit is used to transmit the DC power of the first voltage value to the energy storage device or to transmit the DC power in the energy storage device to the charging device. The first DC-DC unit is used to convert the DC power of the first voltage value into DC power of a second voltage value adapted to the electrical equipment to charge the electrical equipment. The controller is specifically used to: if the remaining energy of the energy storage device is greater than the first remaining energy, the charging device obtains power from the power grid to charge the electrical equipment, and the sum of the first actual energy value and the power provided by the power grid is greater than or equal to the actual power consumption value, but the maximum energy value of the DC power that the AC-DC unit can convert is less than the actual power consumption value, adjust the energy storage device to output power to the charging device.

[0077] Fourthly, this application provides a charging system, which includes a charging device, a photovoltaic device, an energy storage device, and a controller. The charging device is used to provide electrical energy to electrical equipment. The photovoltaic device is used to convert light energy into electrical energy to output the converted electrical energy to the charging device and the energy storage device. The energy storage device is used to store the electrical energy output by the photovoltaic device and to output electrical energy to the charging device.

[0078] The controller is used to: predict the first remaining energy of the energy storage device at a second target time based on the first energy value and the first demand energy value; and adjust the energy output relationship between the energy storage device and the target device at the first target time based on the magnitude relationship between the remaining energy of the energy storage device and the first remaining energy, the first actual energy value and the actual power consumption value.

[0079] Wherein, the first electrical energy value is the predicted electrical energy value that the photovoltaic device can provide at the first target time, the first demand electrical energy value is the predicted electrical energy value that the charging device needs at the first target time, the first actual electrical energy value is the electrical energy value that the photovoltaic device actually provides at the first target time, the actual electricity consumption value is the electrical energy value that the charging device actually needs at the first target time, and the target device includes at least one of the photovoltaic device, the charging device, or the power grid.

[0080] In conjunction with the fourth aspect, in one possible implementation, the charging device includes an AC-DC unit, a DC bus unit, and a first DC-DC unit; the AC-DC unit is used to convert the AC power obtained from the photovoltaic device and the AC power generated by the power grid into DC power of a first voltage value; the DC bus unit and the energy storage device are connected through the DC bus, and the DC bus unit is used to transmit the DC power of the first voltage value to the energy storage device or to transmit the DC power in the energy storage device to the charging device; the first DC-DC unit is connected to the electrical device, and the first DC-DC unit is used to convert the DC power of the first voltage value into DC power of a second voltage value adapted to the electrical device to charge the electrical device.

[0081] Understandably, in existing technologies, energy storage devices are connected to an AC bus. Therefore, when using an energy storage device to supply power to a charging device, the energy storage battery in the energy storage device needs to first convert the DC power provided by the battery into AC power via an energy storage converter before being connected to the AC-DC unit in the charging device via the AC bus. However, in this embodiment, when a DC bus unit is used to connect to the energy storage device via a DC bus, the energy storage device no longer needs an energy storage converter to convert the DC power provided by the battery into AC power; instead, the battery can directly supply power to the charging device via the DC bus. Furthermore, in this embodiment, when power is supplied to the energy storage battery through a photovoltaic device and / or the power grid, since the AC power from the photovoltaic device and the power grid is first converted to DC power by the AC-DC unit in the charging device, the DC bus unit can also directly supply power to the energy storage battery through the DC bus. Therefore, when a DC bus unit is used to connect to the energy storage device via a DC bus, the cost of the energy storage device can be reduced while the efficiency of the energy storage device in providing power to the charging device can be improved.

[0082] In conjunction with the fourth aspect, in one possible implementation, the energy storage device further includes a second DC-DC unit, which is used to convert the DC current of the first voltage value on the DC bus into DC current of the third voltage value adapted to the energy storage battery in the energy storage device.

[0083] In conjunction with the fourth aspect, in one possible implementation, the charging device is one of a plurality of charging devices, and each charging device further includes a first switch between the DC bus unit and the second DC-DC unit; the controller is further configured to: control the state of the first switch to control the charging device connected to the energy storage device, wherein the state of the first switch includes any one of the following: open, closed.

[0084] In conjunction with the fourth aspect, in one possible implementation, the charging system further includes a second switch for connecting to a first transformer, which converts grid power into AC power; the controller is also used to control the state of the second switch to control whether to obtain electrical energy from the grid to charge the electrical equipment, and the state of the second switch includes any one of the following: open or closed.

[0085] In conjunction with the fourth aspect, in one possible implementation, the controller is further configured to: adjust the energy storage device to output electrical energy to the charging device when the remaining electrical energy of the energy storage device is the same as the first remaining electrical energy, the remaining electrical energy of the energy storage device is greater than the second remaining electrical energy, and the first actual electrical energy value is less than or equal to the actual electricity consumption value.

[0086] In conjunction with the fourth aspect, in one possible implementation, the controller is further configured to: adjust the energy storage device to output electrical energy to the charging device if the remaining electrical energy of the energy storage device is the same as the first remaining electrical energy, the remaining electrical energy of the energy storage device is greater than the second remaining electrical energy, and the first actual electrical energy value is less than or equal to the actual electricity consumption value.

[0087] Fifthly, this application provides a control device for controlling the charging and discharging of an energy storage device, comprising: a memory and a processor; the memory is used to store program instructions; the processor is used to invoke the program instructions in the memory to execute the method as described in the first aspect or any possible implementation thereof.

[0088] In a sixth aspect, this application provides a computer-readable medium storing program code for computer execution, the program code including instructions for performing the method described in the first aspect or any of the possible implementations thereof.

[0089] In a seventh aspect, this application provides a computer program product comprising computer program code that, when executed on a computer, causes the computer to implement the method as described in the first aspect or any of the possible implementations thereof. Attached Figure Description

[0090] Figure 1 A structural schematic diagram of a charging system provided in this application;

[0091] Figure 2 A schematic diagram of the topology of the improved charging system provided in this application;

[0092] Figure 3 A schematic diagram of the architecture of the improved charging system provided in this application;

[0093] Figure 4 A flowchart illustrating the method for controlling the charging and discharging of an energy storage device provided in this application;

[0094] Figure 5 A structural schematic diagram of the first remaining electrical energy of a predictive energy storage device at a second target time, provided in an embodiment of this application;

[0095] Figure 6 This is a flowchart illustrating the real-time determination at a first target time, as provided in one embodiment of this application.

[0096] Figure 7 A schematic diagram illustrating different optimization strategies provided in one embodiment of this application;

[0097] Figure 8 A flowchart illustrating real-time judgment at a first target time, provided for another embodiment of this application;

[0098] Figure 9 A flowchart illustrating the real-time determination at the first target time, as provided in another embodiment of this application;

[0099] Figure 10 This is a flowchart illustrating the real-time determination at a first target time, as provided in one embodiment of this application.

[0100] Figure 11 A structural schematic diagram of a control device for controlling the charging and discharging of an energy storage device according to an embodiment of this application;

[0101] Figure 12 A structural schematic diagram of a control device for controlling the charging and discharging of an energy storage device, provided in another embodiment of this application. Detailed Implementation

[0102] To make the objectives and technical solutions of this application clearer and more intuitive, the method, control device, and charging system for controlling the charging and discharging of an energy storage device provided in this application will be described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit the scope of this application.

[0103] In recent years, under the dual pressures of energy conservation and environmental protection, electric vehicles (EVs) have become the main direction of future automotive development.

[0104] To promote the integration of electric vehicles into daily life, the charging issue for EVs needs to be addressed. However, directly connecting a large number of EVs to the power grid for charging would significantly increase the load on the grid.

[0105] Currently, one solution to alleviate grid load is to establish a charging system that includes photovoltaic power generation devices and charging devices. The charging devices are used to connect EVs to enable EV charging (i.e., the charging devices are used to provide power to EVs), and the photovoltaic power generation devices are used to convert solar energy / photovoltaic energy into electrical energy to output or provide power to the charging devices. In this way, the goal of utilizing renewable energy is achieved, while also reducing the need to draw power from the grid is reduced.

[0106] However, photovoltaic power generation is susceptible to external environmental influences, resulting in significant fluctuations in the output power of photovoltaic power generation devices. Therefore, current charging systems are also equipped with energy storage devices (including energy storage batteries, which can both discharge and charge). In the industry, charging systems equipped with photovoltaic devices, energy storage devices, and charging devices are also referred to as photovoltaic-storage-charging systems.

[0107] For example, Figure 1 This is a structural diagram of a photovoltaic energy storage and charging system provided in this application. Figure 1 As shown, the photovoltaic-storage-charging system includes: a transformer 101, a switch 102, an AC bus 103, a switch 104, a switch 105, a switch 106, a switch 107, a switch 108, a photovoltaic device 109, an energy storage device 110, a charging pile 111, a charging pile 112, an AC load 114, and an electric vehicle 113.

[0108] Among them, charging pile 111 and charging pile 112 are both devices that need to obtain electrical energy from AC bus 103 and need to charge other electrical equipment (such as electric vehicle 113 in the figure), so they are also referred to as charging devices in this application.

[0109] Specifically, such as Figure 1 As shown, the closing of control switch 102 controls whether the electricity output from transformer 101 is allowed to be connected to AC bus 103 to charge devices that need power (such as charging piles 111, 112, AC loads 114, and possibly energy storage devices 110). Transformer 101 converts AC power provided by the public power grid into AC power that can be transmitted on AC bus 103. For example, transformer 101 converts 10 kV AC power provided by the public power grid into 380 kV AC power transmitted on AC bus 103. In other words, the closing of control switch 102 controls whether the public power grid is allowed to charge devices that need charging.

[0110] Specifically, such as Figure 1 As shown, the photovoltaic device 109 includes photovoltaic modules and an inverter. The photovoltaic modules are used to convert light energy into direct current (DC), and the inverter is used to convert the DC power converted by the photovoltaic modules into alternating current (AC) power that can be transmitted on the AC bus 103. Figure 1 As shown, by controlling whether the switch 104 is closed, it is possible to control whether the AC power output by the photovoltaic device 109 is allowed to be connected to the AC bus 103 to charge the equipment that needs to obtain power (such as charging pile 111, charging pile 112, AC load 114, and may also include energy storage device 110).

[0111] Specifically, the energy storage device 110 includes an AC-DC unit and an energy storage battery. The AC-DC unit is used to convert the AC power transmitted on the AC bus 103 into DC power, or to convert the DC power in the energy storage battery into AC power that can be transmitted on the AC bus 103. Figure 1As shown, by controlling whether the switch 105 is closed, it is possible to control whether the energy storage device 110 is allowed to connect to the AC bus 103 to charge or obtain power from the AC bus for devices that need to obtain power (such as charging pile 111, charging pile 112, AC load 114, and may also include the energy storage device 110).

[0112] In other words, for Figure 1 In the illustrated photovoltaic-storage-charging system, the photovoltaic device 109 and / or the power grid can provide electrical energy to the charging device, i.e., they can be considered as the power source (power supply). The charging device is a device that needs to charge electric vehicles, i.e., it needs to provide electrical energy to electric vehicles but obtains electrical energy from the photovoltaic device and / or the power grid. The energy storage device is a device that can both provide electrical energy to the charging device (i.e., the energy storage device discharges) and obtain electrical energy from the photovoltaic device and / or the power grid (i.e., the energy storage device charges).

[0113] It is understandable that for a photovoltaic-storage-charging system, the electrical energy required by the charging device is constantly changing, and the changes can be quite significant. Furthermore, the photovoltaic system itself is not static. Therefore, after configuring the energy storage device, adjusting the power output relationship between the energy storage device and other devices is crucial for the operation of the entire system. This adjustment can include any of the following: the energy storage device draws power from the photovoltaic device and / or the grid (also known as charging the energy storage device); the energy storage device outputs power to the charging device (also known as discharging the energy storage device); or the energy storage device neither draws power from the photovoltaic device and the grid nor outputs power to the charging device (also known as neither charging nor discharging the energy storage device). It can be understood that adjusting the power output relationship between the energy storage device and other devices can also be interpreted as adjusting the charging and discharging of the energy storage device.

[0114] Currently, one method for adjusting the charging and discharging of an energy storage device is as follows: Based on the electrical energy provided by the photovoltaic device at multiple historical moments, the electrical energy that the photovoltaic device can provide at the first moment in a future period is predicted. Based on the electrical energy demand of the charging device at multiple historical moments, the electrical energy demand of the charging device at the first moment in a future period is predicted. Based on the electrical energy that can be provided and the electrical energy that is demanded at the first moment in the future period, a preset optimization algorithm is used to predict the target remaining electrical energy of the energy storage device at the second moment in the future period (the predicted second moment is after the first moment). Then, when the photovoltaic-energy storage-charging system operates to the first moment of the future period, the controller adjusts the charging and discharging of the energy storage device based on the actual remaining electrical energy of the energy storage device at the first moment and the predicted target remaining electrical energy at the second moment. For example, if the actual remaining energy of the energy storage device at the current first moment is less than the target remaining energy at the second moment, the energy storage device is adjusted to charge; if the actual remaining energy of the energy storage device at the current first moment is greater than the target remaining energy at the second moment, the energy storage device is adjusted to discharge; and if the actual remaining energy of the energy storage device at the current first moment is greater than the target remaining energy at the second moment, the energy storage device is adjusted to neither charge nor discharge.

[0115] However, the above-mentioned adjustments to the charging and discharging of the energy storage device may not be accurate. For example, if the actual remaining energy at the first moment is greater than the target remaining energy at the second moment, and the energy provided by the photovoltaic device in the photovoltaic-storage-charging system at the first moment is greater than the energy required by the charging device at the current moment, then the photovoltaic device can not only provide the energy required by the charging device, but also have a surplus of energy. Therefore, this surplus energy can be provided to the energy storage device to charge it, rather than adjusting the energy storage device to discharge to provide energy to the charging device.

[0116] In view of this, this application provides a method for controlling the charging and discharging of an energy storage device to improve the accuracy of adjusting the charging and discharging of the energy storage device.

[0117] Before introducing the method for controlling the charging and discharging of the energy storage device in this application, an improved charging system of this application is first proposed.

[0118] First, such as Figure 1 As shown, in existing charging systems, the electricity generated by photovoltaic devices or the power grid for energy storage devices is alternating current (AC), while electric vehicles typically use direct current (DC). Therefore, to charge electric vehicles, current charging devices include both AC-DC and DC-DC units. The AC-DC unit converts AC to DC, and the DC-DC unit converts the DC power from the AC-DC unit into DC power with a voltage suitable for the electric vehicle.

[0119] For energy storage devices, when using alternating current (AC) generated by photovoltaic (PV) devices and the grid to supply power, existing energy storage devices require an AC-DC unit because the storage batteries in the device operate on direct current (DC). This AC-DC unit converts the AC power from the PV devices and the grid into DC power compatible with the storage battery voltage to charge the battery. However, when the energy storage device supplies power to a charging device, it must first convert the DC power from the storage battery into AC power before inputting it to the charging device, resulting in low efficiency when supplying power. Therefore, this application provides a novel charging system.

[0120] Figure 2 This is a schematic diagram of the topology of an improved charging system provided in one embodiment of this application. Figure 2 As shown, the charging system provided in this application embodiment includes a photovoltaic device 201, an energy storage device 202, a charging device 203, electrical equipment 204, a power grid 205, an AC bus 206, a switch 207, and a DC bus 208.

[0121] The charging device 203 is used to provide electrical energy to the electrical equipment 204 to supply electrical energy to the electric vehicle. For example, the electrical equipment 204 is a charging pile, that is, the electric vehicle obtains electrical energy from the charging device 203 for charging through the charging pile 204.

[0122] In this embodiment, the power source in the charging device 203 may include three parts: the power that the photovoltaic device 201 can provide after converting light energy, the power that the energy storage device 202 can provide, and the power that the power grid 205 can provide.

[0123] The photovoltaic device 201 converts solar energy into alternating current (AC), which is then connected to the charging device via AC bus 206 to provide power to the charging device. Figure 2 As shown, the photovoltaic device 201 includes photovoltaic modules and an inverter. The photovoltaic modules are used to convert solar energy or light energy into direct current (DC). It should be noted that because the conversion of solar energy or light energy into DC by the photovoltaic modules is related to the intensity of light, and the intensity of light can constantly change, the DC output of the photovoltaic modules is unstable. Therefore, photovoltaic devices typically also include an inverter to convert the unstable DC power obtained by the photovoltaic modules based on solar energy into relatively stable alternating current (AC).

[0124] Specifically, power grid 205 converts the high-voltage AC power supplied by a single unit area into low-voltage AC power via a transformer, and then connects it to the charging device via AC bus 206 to provide power to the charging device. For example, the transformer in power grid 205 is used to convert the 10 kV AC power supplied by a single unit area into 380 V AC power, which is then connected to the charging device via AC bus 206 to provide power to the charging device.

[0125] It should be understood that while the charging device 203 typically provides direct current (DC) power to the charging pile, both the photovoltaic device 201 and the power grid 205 use alternating current (AC) power. Therefore, as... Figure 2 As shown, the charging device 203 typically includes an AC-DC unit 2031. The AC-DC unit 2031 is used to convert the AC power on the connected AC bus 206 into DC power of a first voltage value.

[0126] It should be understood that the AC power on the AC bus 206 becomes DC power after passing through the AC-DC unit 2031 in the charging device 203, and the power from the energy storage battery in the energy storage device 202 is also DC power. Therefore, in this embodiment, the charging device 203 also includes a DC bus unit 2032. The DC bus unit 2032 is used to supply power to the energy storage device 202 through the DC bus 208 with the DC power of the first voltage value after passing through the AC-DC unit 2031, or to obtain power from the energy storage device through the DC bus 208. It should be noted that in the prior art, the energy storage device is connected to the AC bus. Thus, when the energy storage device is used to supply power to the charging device 203, the energy storage battery in the energy storage device needs to first convert the DC power provided by the energy storage battery into AC power through the energy storage converter, and then connect to the AC-DC unit in the charging device based on the AC bus. However, in this embodiment, when the DC bus unit 2032 is connected to the energy storage device 202 via the DC bus 208, the energy storage device no longer needs an energy storage converter to convert the DC power provided by the energy storage battery into AC power. Instead, it can directly supply power to the charging device 203 via the DC bus 208. Furthermore, in this embodiment, when power is supplied to the energy storage battery in the energy storage device 202 via the photovoltaic device 201 and / or the power grid 205, since the AC power in the photovoltaic device 201 and the power grid 205 is first converted to DC power by the AC-DC unit in the charging device, the DC bus unit 2032 can also directly supply power to the energy storage battery in the energy storage device 202 via the DC bus 208.

[0127] Therefore, when the DC bus unit 2032 is connected to the energy storage device 202 via the DC bus 208, the cost of the energy storage device can be reduced while the efficiency of the energy storage device in providing power to the charging device can be improved.

[0128] Furthermore, it should be understood that the voltage of the DC power converted by the AC-DC unit 2031 may not be suitable for the electrical device 204 under normal circumstances. Therefore, in this embodiment, the charging device 203 also includes a first DC-DC unit 2033. The first DC-DC unit 2033 is used to convert the DC power in the charging device into DC power that is suitable for the voltage value of the electrical device 204 in order to provide power to the electrical device 204.

[0129] It should be noted that, Figure 2 The charging system shown also includes a controller (not shown) for controlling the operation of the charging system. For example, the controller can control whether the power grid 205 is allowed to supply power to the charging device via a control switch 207.

[0130] To visually demonstrate the charging system provided in this application, the following will be presented... Figure 2 Based on the illustrated topology diagram, an exemplary architecture diagram of a charging system is provided. Figure 3 As shown, the charging device includes an AC-DC unit and a DC bus unit ( Figure 3 The black box in the charging device indicates the first DC-DC unit. The AC power generated by the photovoltaic device and the power grid is connected to the AC-DC unit of the charging device through the AC bus to provide power to the charging device. The energy storage device is connected to the DC bus unit in the energy storage device through the DC bus to provide power to the charging device. The first DC-DC unit in the charging device is connected to multiple charging piles to output power to multiple charging piles.

[0131] In addition, such as Figure 3 As shown, the photovoltaic device, energy storage device, charging device, and power grid are all connected to the controller via control lines (dashed lines in the diagram). The controller is used to control the operation of the entire charging system. For example, the controller can control whether the power grid is allowed to provide power to the charging device by controlling whether the switch is closed. Alternatively, the controller can determine how to control the charging and discharging of the power grid, photovoltaic device, and energy storage device based on real-time operating data of the charging system collected by sensors.

[0132] In addition, such as Figure 3As shown, in this embodiment, the controller is also connected to a cloud server. For example, it can establish a connection with the cloud server through a third-generation mobile communication network, a fourth-generation mobile communication network, a fifth-generation mobile communication network, or a wireless local area network. In this case, the controller can send the data collected by the sensors at each moment to the cloud server in real time so as to store the parameter information of the charging system during operation in the cloud server.

[0133] Below, in conjunction with Figures 1 to 3 The charging system shown illustrates a detailed method for controlling the charging and discharging of an energy storage device according to embodiments of this application. Specifically, the control of charging and discharging of the energy storage device is executed by a controller within the charging system.

[0134] More specifically, Figure 4 The method for controlling the charging and discharging of the energy storage device proposed in this application. For example... Figure 4 As shown, in this application, the method for controlling the charging and discharging of the energy storage device includes S401 and S402. This method is specifically executed by a controller in the charging system, also referred to as the controller executing S401 and S402.

[0135] S401, predict the first remaining electrical energy of the energy storage device at the second target time based on the first electrical energy value and the first demand electrical energy value. The first electrical energy value is the predicted electrical energy value that the photovoltaic device can provide at the first target time, and the first demand electrical energy value is the predicted electrical energy value that the charging device needs at the first target time.

[0136] In a charging system, photovoltaic (PV) devices are primarily used to convert solar energy (light energy) into electrical energy to power charging devices and / or energy storage devices. It should be understood that the intensity of solar energy can vary at different times, therefore the amount of electricity generated by the PV device may also vary.

[0137] In one implementation of obtaining a predicted first energy value, various data during the operation of the charging system can be uploaded to a cloud server. These data include, for example, the energy value generated by the photovoltaic device in historical time periods and the energy value required by the charging device at each moment. Then, based on the energy values ​​provided by the photovoltaic device at multiple historical moments, the cloud server predicts the energy value that the photovoltaic device may convert at the first target moment, i.e., the first energy value. Finally, the cloud server sends the predicted first energy value to the controller so that the controller can obtain the first energy value.

[0138] It should be noted that the embodiments of this application do not limit the implementation method of predicting the first electrical energy value at the first target time based on the electrical energy value provided by the photovoltaic device at multiple historical times.

[0139] For example, in one possible implementation, the electrical energy value provided by the photovoltaic device at each moment in a historical period can be obtained (for ease of distinction, the electrical energy value provided by the photovoltaic device is also referred to as the photovoltaic output value in this application). A neural network algorithm is then used to train multiple electrical energy values ​​provided in the historical period to obtain a trained neural network algorithm prediction model. Based on the trained neural network algorithm prediction model, the electrical energy value at the first target moment is predicted. The neural network algorithm, for example, is a Bayesian neural network algorithm, which does not constitute a limitation of this application.

[0140] For example, in another possible implementation, in order to improve the accuracy of the predicted first electrical energy value at the first target time, after predicting the electrical energy value that the photovoltaic device can provide at the first target time based on the trained neural network algorithm prediction model, the K-means algorithm can be used to train multiple electrical energy values ​​provided in historical periods to obtain a trained K-means prediction model. The electrical energy value that the photovoltaic device can provide at the first target time can then be predicted based on the trained K-means prediction model. Finally, the first electrical energy value is obtained by using a weighted average of the electrical energy value that the photovoltaic device can provide at the first target time predicted by the trained neural network algorithm prediction model and the electrical energy value that the photovoltaic device can provide at the first target time predicted by the trained K-means prediction model.

[0141] It should be noted that the historical period in this application may be, for example, the previous two days or the previous week, but this does not constitute a limitation of this application.

[0142] In a charging system, the charging device is primarily used to provide electrical energy to electrical equipment, such as electric vehicles. It should be understood that the electrical energy demand of electrical equipment may vary at different times. For example, when there are many electric vehicles, the demand is higher, while when there are fewer electric vehicles, the demand is lower. Consequently, the electrical energy required by the charging device may also vary at different times.

[0143] In one implementation of obtaining a predicted first energy demand value, the energy demand value of the charging device at a first target time, i.e., the first energy demand value, can be predicted in a cloud server based on the energy demand value of the charging device at multiple historical times; finally, the cloud server sends the predicted first energy demand value to the controller so that the controller can obtain the first energy demand value.

[0144] It should be noted that the embodiments of this application do not limit the implementation method of predicting the first required energy value at the first target time based on the energy required by the charging device at multiple historical times.

[0145] For example, in one possible implementation, the energy demand value of the charging device at each moment in a historical period can be obtained (for ease of distinction, the energy demand value of the charging device is also referred to as the charging load demand in this application). A neural network algorithm is then used to train the energy demand value at each moment in the historical period to obtain a trained neural network algorithm prediction model. Based on the trained neural network algorithm prediction model, the first energy demand value at the first target moment is predicted. The neural network algorithm may be, for example, a Bayesian neural network algorithm, which is not a limitation of this application.

[0146] For example, in another possible implementation, to improve the accuracy of the predicted first energy demand value at the first target time, after predicting the energy demand value of the charging device at the first target time based on the trained neural network algorithm prediction model, the K-means algorithm can be used to train the energy demand value at each time in the historical period to obtain a trained K-means prediction model. The energy demand value of the charging device at the first target time can then be predicted based on the trained K-means prediction model. Finally, the first energy demand value is obtained by using a weighted average of the energy demand value of the charging device at the first target time predicted by the trained neural network algorithm prediction model and the energy demand value of the charging device at the first target time predicted by the trained K-means prediction model.

[0147] In this embodiment, after the controller receives the first energy value and the first demand energy value, the controller can predict the remaining energy of the energy storage device at the second target time after the first target time, i.e., the first remaining energy, based on the first energy value and the first demand energy value at the first target time.

[0148] In practical implementation, a preset optimization model can be determined first. This preset optimization model is used to predict the remaining power of the energy storage device at the next moment based on the power provided by the photovoltaic device at a certain moment and the power demand of the charging device at that time.

[0149] For example, for a charging system, how to maximize the benefits of the charging system is a problem that needs to be considered. Therefore, the preset optimization model in this application can be an optimization model established with the maximization of benefits as the optimization objective.

[0150] Subsequently, when the controller predicts the first remaining electrical energy at the second target time based on the preset optimization model, it can combine the first electrical energy value, the first demand electrical energy value, the current electricity price information of the power grid, the electricity price information when providing electrical energy to the electrical equipment, the configuration information of the energy storage device (cycle life information, operating condition information, general single cycle cost information, charge and discharge rate information, capacity information, etc.), and the remaining electrical energy of the energy storage device at the current time, with the goal of maximizing benefits, and output the first remaining electrical energy at the second target time.

[0151] For ease of understanding, Figure 5 This is a structural schematic diagram of the first remaining electrical energy of a predictive energy storage device at a second target time, provided as an embodiment of this application. Figure 5 As shown, the cloud server 501 sends the predicted electrical energy that the photovoltaic device can provide at the first target time in the future period and the predicted electrical energy demand of the charging device at the first target time in the future period to the controller 502. After receiving the first electrical energy and the first demanded electrical energy, the controller 502 uses the first electrical energy and the first demanded electrical energy, the current remaining electrical energy of the energy storage device, the grid electricity price, the electricity sales price, and the configuration information of the energy storage device as inputs to the preset optimization model, and obtains the first remaining electrical energy (or the first remaining power) corresponding to the second target time based on the optimization target.

[0152] For example, the controller can receive the server's prediction of the first electrical energy that the photovoltaic device will be able to provide at 12:00 noon tomorrow, and the first electrical energy demand of the charging device at 12:00 noon tomorrow. Then, based on the current remaining energy of the energy storage device, the grid electricity price, the retail electricity price, and the configuration information of the energy storage device, it can obtain the first remaining electrical energy at 12:05 noon based on an optimization objective. Or, in other words, given that the photovoltaic device will provide the first electrical energy at 12:00 noon tomorrow, the charging device will need the first required electrical energy at 12:00 noon tomorrow, and the energy storage device has the remaining power at the current moment, approximately how much remaining power should the energy storage device in the charging system have at 12:05 noon tomorrow.

[0153] S402, at the first target time, the power output relationship between the energy storage device and the target device is adjusted according to the relationship between the remaining power of the energy storage device and the first remaining power, the first actual power value and the actual power consumption value. The target device includes at least one of a photovoltaic device, a charging device or a power grid. The first actual power value is the power value actually provided by the photovoltaic device at the first target time, and the actual power consumption value is the power value actually required by the charging device at the first target time.

[0154] In this embodiment, the power output relationship between the energy storage device and the target device includes any of the following: the energy storage device obtains power from the photovoltaic device and / or the power grid; the energy storage device outputs power to the charging device; the energy storage device does not obtain power from the photovoltaic device or the power grid and does not output power to the charging device.

[0155] It should be understood that adjusting the energy storage device to obtain electrical energy from photovoltaic devices and / or the grid is merely a different way of saying the same thing: adjusting the energy storage device to obtain electrical energy from photovoltaic devices and / or the grid to provide electrical energy to the energy storage device. Similarly, adjusting the energy storage device to output electrical energy to a charging device is also merely a different way of saying the same thing: adjusting the energy storage device to provide electrical energy to a charging device. However, adjusting the energy storage device to neither obtain electrical energy from photovoltaic devices or the grid nor output electrical energy to a charging device can be considered as adjusting the energy storage device to neither charge nor discharge.

[0156] It should be noted that in the existing technology, when the charging system reaches the first target time, the controller directly adjusts the operating mode of the energy storage device based on the relationship between the remaining energy of the energy storage device at the first target time and the predicted remaining energy at the second target time. For example, if the actual remaining energy of the energy storage device at the first target time is less than the target remaining energy at the second target time, the energy storage device is adjusted to charge; if the actual remaining energy of the energy storage device at the current first target time is greater than the target remaining energy at the second target time, the energy storage device is adjusted to discharge; and if the actual remaining energy of the energy storage device at the current first target time is greater than the target remaining energy at the second target time, the energy storage device is adjusted to neither charge nor discharge.

[0157] However, it should be understood that since the predicted first remaining energy at the second target time is based on the predicted first energy and the first energy demand, but the predicted first energy and the first energy demand may be inaccurate, adjusting the operating mode of the energy storage device solely based on the relationship between the remaining energy of the energy storage device at the first target time and the predicted first remaining energy at the second target time is inaccurate. For example, if the actual remaining energy at the current first target time is greater than the target remaining energy at the second target time, and if the energy provided by the photovoltaic device in the charging system at the current first target time is greater than the energy demanded by the charging device at the current time, then the photovoltaic device can not only provide the energy demanded by the charging device but also have a surplus of energy. Therefore, this surplus energy can be provided to the energy storage device to charge it, rather than adjusting the energy storage device to discharge to provide energy to the charging device.

[0158] Therefore, in this embodiment, after determining the relationship between the remaining energy of the energy storage device at the first target time and the predicted first remaining energy at the second target time, the actual energy provided by the photovoltaic device at the first target time and the actual energy required by the charging device at the first target time are also considered to determine whether the energy output relationship between the energy storage device and other devices determined based on the relationship between the remaining energy and the predicted first remaining energy at the second target time is reasonable. This is equivalent to further correcting the relationship based on the actual energy provided by the photovoltaic device at the first target time and the actual energy required by the charging device at the first target time, thereby improving the accuracy of adjusting the charging and discharging of the energy storage device. The following describes a specific implementation method for determining whether the energy output relationship between the energy storage device and other devices determined based on the relationship between the remaining energy and the predicted first remaining energy at the second target time is reasonable.

[0159] In the first scenario, when the system reaches the first target time, the remaining energy of the energy storage device at that time may be less than the predicted remaining energy at the second target time. Understandably, in existing technology, the controller would directly adjust the charging of the energy storage device to adjust its energy level at the second target time to match the predicted remaining energy. However, in this application, when the remaining energy of the energy storage device at the first target time is less than the predicted remaining energy at the second target time, the controller will also perform the following... Figure 6 The real-time judgment process is shown below. Figure 6 As shown, the real-time judgment process includes:

[0160] S601: When the controller reaches the first target time, it determines whether the predicted first electrical energy value provided by the photovoltaic device at the current time is greater than the actual electrical energy value provided by the photovoltaic device at the current time. If it is greater, proceed to S602; otherwise, proceed to S607.

[0161] The first electrical energy value of the photovoltaic device at the first target time is predicted using the electrical energy values ​​provided by the photovoltaic device at multiple historical times. When the charging system reaches the first target time, the photovoltaic device in the charging system will have an actual electrical energy value that it can provide at the current first target time, i.e., the actual electrical energy value. It is understood that this actual electrical energy value may be the same as or different from the first electrical energy value.

[0162] S602, determine whether the current electricity price is at the flat price or the off-peak price. If so, execute S603; otherwise, execute S604.

[0163] Generally, electricity prices vary depending on the time of day. Specifically, electricity prices are divided into peak prices, flat prices, and off-peak prices. For example, the electricity price during the periods from 10:00 AM to 3:00 PM and from 6:00 PM to 9:00 PM is usually called the peak price. The electricity price during the periods from 7:00 AM to 10:00 AM, 3:00 PM to 6:00 PM, and from 9:00 PM to 11:00 PM is usually called the flat price. The electricity price during the period from 11:00 PM to 7:00 AM is usually called the off-peak price.

[0164] In this embodiment, if the predicted first electrical energy value provided by the photovoltaic device at the current moment is greater than the actual electrical energy value provided by the photovoltaic device at the current moment, it means that the predicted first electrical energy value is too large. In this embodiment, when the predicted first electrical energy value is too large, it is further determined whether the current grid electricity price is at the flat price or the off-peak price, that is, whether the electricity price when obtaining electricity from the grid is relatively cheap.

[0165] S603, Adjust the energy storage device to obtain electrical energy from the grid.

[0166] In this embodiment, if the predicted first electrical energy value provided by the photovoltaic device at the current moment is greater than the actual electrical energy value provided by the photovoltaic device at the current moment, and if the current grid electricity price is also at the flat price or off-peak price, it means that the electricity price when obtaining electrical energy from the grid is relatively cheap. Therefore, in this case, the controller will adjust the energy storage device to obtain electrical energy from the grid (i.e., allow the grid to be used to charge the energy storage device).

[0167] That is, in this embodiment, if the remaining electrical energy at the current moment is less than the first remaining electrical energy, if the first electrical energy value is greater than the first actual electrical energy value, and the current electricity price of the grid is at the flat price or the off-peak price, the energy storage device is adjusted to obtain electrical energy from the grid.

[0168] S604: Determine whether the actual electrical energy provided by the photovoltaic device at the current moment is greater than the actual electrical energy consumed. If it is greater, execute S605; otherwise, execute S606.

[0169] In this embodiment, if the predicted first electrical energy value provided by the photovoltaic device at the current moment is greater than the actual electrical energy value provided by the photovoltaic device at the current moment, and if the grid electricity price at the current moment is not at the flat price or valley price, but may be at the peak price, then it is determined whether the actual electrical energy value provided by the photovoltaic device at the current moment is greater than the actual electricity consumption value.

[0170] S605, the energy storage device obtains electrical energy from the photovoltaic device and is not allowed to obtain electrical energy from the grid.

[0171] It is understandable that since the current electricity price is not at the flat or off-peak price, it would be costly to obtain electricity from the grid to charge the energy storage device. Therefore, in this embodiment, the controller adjusts the energy storage device to not obtain electricity from the grid.

[0172] If the actual electrical energy provided by the photovoltaic device at the current moment is greater than the actual electrical energy consumed, it means that the electrical energy provided by the photovoltaic device can fully meet the load demand. In addition, there will be extra surplus electrical energy. Therefore, in order not to waste the electrical energy provided by the photovoltaic device, this embodiment will adjust the energy storage device to obtain electrical energy from the photovoltaic device.

[0173] That is, in this embodiment, if the remaining power at the current moment is less than the first remaining power, if the current grid electricity price is not at the flat price or off-peak price, and the first actual power value is greater than the actual power consumption value, the energy storage device is adjusted to obtain power from the photovoltaic device and is not allowed to obtain power from the grid (that is, only the photovoltaic device charges the energy storage device).

[0174] S606, the energy storage device does not obtain electrical energy from photovoltaic devices and the grid, and the energy storage device does not output electrical energy to the charging device.

[0175] It is understandable that since the current electricity price is not at the flat or off-peak price, it would be costly to obtain electricity from the grid to charge the energy storage device. Therefore, in this embodiment, the controller adjusts the energy storage device to not obtain electricity from the grid.

[0176] If the actual electrical energy provided by the photovoltaic device at the current moment is less than or equal to the actual electrical consumption, it means that the electrical energy provided by the photovoltaic device may not meet the load demand. Under such circumstances, it is obviously unreasonable to use the photovoltaic device and the grid to charge the energy storage device.

[0177] Therefore, in this embodiment, if the remaining power at the current moment is less than the first remaining power, if the current grid electricity price is not at the flat price or off-peak price, and the first actual power value is less than or equal to the actual power consumption value, the controller adjusts the energy storage device to not obtain power from the photovoltaic device and the grid, and the energy storage device does not output power to the charging device (i.e., the controller controls the device to neither charge nor discharge).

[0178] S607, the energy storage device obtains electrical energy from the photovoltaic device and the power grid.

[0179] It's understandable that if the initial energy value is greater than the actual energy provided by the photovoltaic device at the current moment, it indicates that the actual energy provided by the photovoltaic device is too high. It's also understandable that if the predicted initial energy value is too low, the energy storage device will need to be charged; therefore, if the actual energy provided by the photovoltaic device is too high, it should also be charged.

[0180] Therefore, in this embodiment, if the remaining electrical energy at the current moment is less than the first remaining electrical energy, and if the first electrical energy value is less than or equal to the first actual electrical energy value, the controller adjusts the energy storage device to obtain electrical energy from the photovoltaic device and the power grid.

[0181] In this scenario embodiment, when the remaining electrical energy at the current moment is less than the first remaining electrical energy, the judgment is also made in combination with factors such as the actual electrical energy provided by the photovoltaic device at the current moment, the actual electrical energy consumed by the charging device at the current moment, and the current grid electricity price. Therefore, the accuracy of the controller in adjusting the charging and discharging of the energy storage device can be improved.

[0182] It should be understood that, Figure 6 In the illustrated embodiment, since the actual electrical energy provided by the photovoltaic device and the actual electrical consumption of the charging device at the current moment are already obtained, in this embodiment, if the controller ultimately determines to charge the energy storage device, then when adjusting to charge the energy storage device, the actual electrical energy provided by the photovoltaic device and the actual electrical consumption of the charging device at the current moment can be used to update the remaining electrical energy of the energy storage device at the second target moment, and the energy storage device can be adjusted to reach the updated remaining electrical energy at the second target moment. In this application, the updated remaining electrical energy at the second target moment is also referred to as the second remaining electrical energy.

[0183] Optionally, when determining the second remaining electrical energy using the actual electrical energy provided by the photovoltaic device at the current moment and the actual electrical energy consumed by the charging device at the current moment, different optimization strategies can be included: for example, such as Figure 7 As shown, the first method is to determine the second remaining energy by still using economic maximization as the optimization objective (also referred to as the direct tracking target control strategy in this application); the second method is to determine the second remaining energy by using the minimum throughput of the energy storage device as the optimization objective; and the third method is to determine the second remaining energy by using the minimum fluctuation range of the remaining energy of the energy storage device as the optimization objective.

[0184] In the second scenario, when the system reaches the first target time, the remaining energy of the energy storage device at that time may be greater than the predicted first remaining energy at the second target time, and the charging device does not draw power from the grid to charge the electrical equipment. Understandably, in existing technology, the controller would directly adjust the energy storage device's discharge (i.e., allow the energy storage device to provide power to the charging device) to adjust the energy of the energy storage device at the second target time to the first remaining energy. However, in this application, when the remaining energy of the energy storage device at the first target time is greater than the predicted first remaining energy at the second target time, the controller will also perform the following... Figure 8 The real-time judgment process is shown below. Figure 8 As shown, the real-time judgment process includes:

[0185] S801: When the controller reaches the first target time, it determines whether the actual electrical energy provided by the photovoltaic device at the current time is greater than the actual electrical consumption. If so (i.e., greater), execute S802; otherwise, execute S803.

[0186] S802, Adjust the energy storage device to obtain electrical energy from the photovoltaic device.

[0187] It is understandable that the actual electrical energy provided by the photovoltaic device at the current moment is greater than the actual electrical energy consumed, indicating that the electrical energy provided by the photovoltaic device can fully meet the load demand. In addition, there will be extra surplus electrical energy. Therefore, in order not to waste the electrical energy provided by the photovoltaic device, this embodiment will adjust the energy storage device to obtain electrical energy from the photovoltaic device, that is, control the energy storage device to charge.

[0188] In other words, in this embodiment, if the remaining power of the energy storage device is greater than the first remaining power and the charging device does not obtain power from the grid to charge the electrical equipment, and if the actual power provided by the photovoltaic device at the current moment is greater than the actual power consumption, then the energy storage device is adjusted to obtain power from the photovoltaic device.

[0189] S803, determine whether the remaining electrical energy of the energy storage device is greater than the second remaining electrical energy. If it is (i.e., greater), execute S804; otherwise, execute S805.

[0190] It is understandable that if the actual electrical energy provided by the photovoltaic device at the current moment is not greater than the actual electricity consumption, it indicates that the electrical energy provided by the photovoltaic device may not meet the load demand. In this embodiment, under such circumstances, the relationship between the remaining electrical energy of the energy storage device at the current moment and the second remaining electrical energy is further determined. The relevant description of the second remaining electrical energy can be referred to the foregoing description of this application, and will not be repeated here.

[0191] S804, adjust the energy storage device to output electrical energy to the charging device.

[0192] It is understandable that when the power provided by the photovoltaic device does not meet the load demand, since the remaining power of the energy storage device at the current moment is greater than the second remaining power, that is, the remaining power of the energy storage device at the current moment is relatively high, the energy storage device can be adjusted to output power to the charging device, that is, the energy storage device can be controlled to discharge.

[0193] In other words, in this embodiment, if the remaining energy of the energy storage device is greater than the first remaining energy and the charging device does not obtain power from the grid to charge the electrical equipment, and if the first actual energy value is less than or equal to the actual power consumption value, and the remaining energy of the energy storage device is greater than the second remaining energy, then the energy storage device is adjusted to output power to the charging device.

[0194] S805, adjusts the energy storage device to not draw power from the photovoltaic device and not output power to the charging device.

[0195] It is understandable that when the power provided by the photovoltaic device is insufficient to meet the load demand, it would be unreasonable to allocate the power provided by the photovoltaic device to the energy storage device. In addition, since the remaining power of the energy storage device at the current moment is less than or equal to the second remaining power, the energy storage device should not be allowed to provide power to the charging device.

[0196] Therefore, in this embodiment, when the remaining power of the energy storage device is less than or equal to the second remaining power, and the charging device does not obtain power from the grid to charge the electrical equipment, if the first actual power value is less than or equal to the actual power consumption value, and the remaining power of the energy storage device is less than or equal to the second remaining power, the energy storage device is adjusted to not obtain power from the photovoltaic device or the grid and not output power to the charging device (i.e., the energy storage device neither charges nor discharges).

[0197] In this scenario embodiment, when the remaining electrical energy at the current moment is greater than the first remaining electrical energy, the judgment is also made in combination with factors such as the actual electrical energy provided by the photovoltaic device at the current moment, the actual electrical energy consumed by the charging device at the current moment, and the current grid electricity price. Therefore, the accuracy of the controller in adjusting the charging and discharging of the energy storage device can be improved.

[0198] In the third scenario, when the system reaches the first target time, the remaining energy of the energy storage device at that time is equal to the predicted remaining energy at the second target time. Understandably, in existing technology, the controller would directly adjust the energy storage device to neither charge nor discharge. However, in this application, when the remaining energy of the energy storage device at the first target time is equal to the predicted remaining energy at the second target time, the controller will also perform the following... Figure 9 The real-time judgment process is shown below. Figure 9 As shown, the real-time judgment process includes:

[0199] S901, determine whether the remaining electrical energy of the energy storage device is less than the second remaining electrical energy. If it is (i.e. less), execute S902; otherwise, execute S903.

[0200] In this embodiment, if the remaining energy of the energy storage device at the first target time is equal to the first remaining energy at the predicted second target time, the relationship between the remaining energy of the energy storage device and the second remaining energy is also determined to determine whether the energy storage device should be adjusted to neither charge nor discharge.

[0201] S902, make decisions based on actual circumstances.

[0202] For example, if the remaining electrical energy of the energy storage device at the first target time is equal to the first remaining electrical energy at the predicted second target time, and if the remaining electrical energy of the energy storage device is less than the second remaining electrical energy, and the actual electrical energy provided by the photovoltaic device at the current time is greater than the actual electrical consumption, then the energy storage device can be adjusted to obtain electrical energy from the photovoltaic device, that is, the energy storage device can be adjusted to charge.

[0203] For example, if the remaining energy of the energy storage device at the first target time is equal to the first remaining energy at the predicted second target time, and if the remaining energy of the energy storage device is less than the second remaining energy, and the actual energy provided by the photovoltaic device at the current time is less than the actual electricity consumption, but the current electricity price is relatively high, then the energy storage device can still be adjusted to provide power to the charging device.

[0204] S903, determine whether the remaining electrical energy of the energy storage device is greater than the second remaining electrical energy. If yes (i.e. greater than), execute S904; if no (i.e. equal to), execute S907.

[0205] S904: Determine whether the actual electrical energy provided by the photovoltaic device at the current moment is greater than the actual electrical consumption. If yes, proceed to S905; otherwise, proceed to S906.

[0206] In this embodiment, if the remaining energy of the energy storage device at the first target time is equal to the first remaining energy at the predicted second target time, and the remaining energy of the energy storage device is not less than the second remaining energy, it is further determined whether the remaining energy of the energy storage device at the current time is greater than the second remaining energy, and whether the actual energy value provided by the energy storage device at the current time is greater than the actual power consumption value, so as to determine how to adjust the charging and discharging of the energy storage device.

[0207] S905, Adjusting the energy storage device to obtain electrical energy from the photovoltaic device.

[0208] It is understandable that if the remaining power of the energy storage device at the first target time is equal to the first remaining power at the predicted second target time, and the remaining power of the energy storage device is greater than or equal to the second remaining power, then if the remaining power of the energy storage device at the current time is greater than the second remaining power, but since the actual power provided by the photovoltaic device at the current time is greater than the actual power consumption, that is, the power provided by the photovoltaic device can fully supply the load demand, and there will still be a surplus.

[0209] Therefore, in this embodiment, even if the remaining power of the energy storage device is greater than the second remaining power, when the remaining power of the energy storage device is the same as the first remaining power, the energy storage device is still adjusted to obtain power from the photovoltaic device and / or the power grid because the first actual power value is greater than the actual power consumption value.

[0210] S906, adjust the energy storage device to output electrical energy to the charging device.

[0211] It is understandable that if the remaining power of the energy storage device at the first target time is equal to the first remaining power at the predicted second target time, and if the remaining power of the energy storage device is greater than or equal to the second remaining power and the first actual power value is less than or equal to the actual power consumption value, it means that the power provided by the photovoltaic device cannot meet the load demand, but at this time the remaining power of the energy storage device is relatively large.

[0212] Therefore, in this embodiment, when the remaining electrical energy of the energy storage device is the same as the first remaining electrical energy, if the remaining electrical energy of the energy storage device is greater than the second remaining electrical energy, and the first actual electrical energy value is less than or equal to the actual electricity consumption value, the energy storage device is adjusted to output electrical energy to the charging device, that is, the energy storage device is controlled to discharge.

[0213] S907: Determine whether the actual electrical energy provided by the photovoltaic device at the current moment is greater than the actual electrical consumption. If yes, execute S905; otherwise, execute S908.

[0214] It is understandable that if the remaining electrical energy of the energy storage device at the current moment is equal to the second remaining electrical energy, but since the actual electrical energy provided by the photovoltaic device at the current moment is greater than the actual electrical consumption, that is, the electrical energy provided by the photovoltaic device can fully supply the load demand, and there will still be a surplus.

[0215] Therefore, in this embodiment, even if the remaining power of the energy storage device is the same as the first remaining power, if the remaining power of the energy storage device is equal to the second remaining power, and the first actual power value is greater than the actual power consumption value, the energy storage device is still adjusted to obtain power from the photovoltaic device and / or the power grid.

[0216] S908, adjusts the energy storage device to not draw power from photovoltaic devices and the grid and not output power to the charging device.

[0217] It is understandable that if the remaining power of the energy storage device at the first target time is equal to the first remaining power at the predicted second target time, and the remaining power of the energy storage device is greater than or equal to the second remaining power, then if the remaining power of the energy storage device at the current time is equal to the second remaining power, but the actual power provided by the photovoltaic device at the current time is less than the actual power consumption, that is, the power provided by the photovoltaic device indicates that the power provided by the photovoltaic device cannot meet the load demand, but at this time the remaining power of the energy storage device is relatively small.

[0218] Therefore, in this embodiment, when the remaining power of the energy storage device is the same as the first remaining power, even if the remaining power of the energy storage device is equal to the second remaining power, since the first actual power value is less than the actual power consumption value, the energy storage device is adjusted not to obtain power from the photovoltaic device or the power grid and not to output power to the charging device, that is, the energy storage device is adjusted not to charge or discharge.

[0219] In this scenario embodiment, when the remaining electrical energy at the current moment is equal to the first remaining electrical energy, the judgment is also made in combination with factors such as the actual electrical energy provided by the photovoltaic device at the current moment, the actual electrical consumption of the charging device at the current moment, and the current grid electricity price. Therefore, the accuracy of the controller in adjusting the charging and discharging of the energy storage device can be improved.

[0220] In the fourth scenario, when the system reaches the first target time, the remaining energy of the energy storage device at that time may be greater than the predicted first remaining energy at the second target time, and the charging device draws power from the grid to charge the electrical equipment. Understandably, in existing technologies, the controller directly adjusts the energy storage device to perform peak shaving (peak shaving refers to controlling the energy storage device to provide power to the charging device, but the entire process involves grid power consumption; discharging refers to controlling the energy storage device to provide power to the charging device, but the entire process does not involve grid power consumption) to adjust the energy of the energy storage device at the second target time to the first remaining energy. However, in this application, when the remaining energy of the energy storage device at the first target time is greater than the predicted first remaining energy at the second target time, and the charging device draws power from the grid to charge the electrical equipment, the controller also performs the following... Figure 10 The real-time judgment process is shown below. Figure 10 As shown, the real-time judgment process includes:

[0221] S1001, determine whether the sum of the actual electrical energy provided by the photovoltaic device at the current moment and the electrical energy provided by the grid is less than the actual electricity consumption. If so (i.e. less), execute S1002; otherwise, execute S1003.

[0222] S1002, Adjust the energy storage device to output electrical energy to the charging device.

[0223] It is understandable that the sum of the actual electrical energy provided by the photovoltaic device at the current moment and the electrical energy provided by the grid is less than the actual electricity consumption, indicating that the electrical energy that can be provided to the charging device at the current moment cannot meet the load demand. However, since the remaining power of the energy storage device at the current moment is greater than the first remaining power at the predicted second target moment, the energy storage device can be adjusted to provide power to the charging device to meet the load demand.

[0224] In other words, in this embodiment, if the remaining energy of the energy storage device is greater than the first remaining energy and the charging device obtains power from the grid to charge the electrical equipment, and if the sum of the first actual energy value and the power provided by the grid is less than the actual power consumption value, the energy storage device is adjusted to output power to the charging device to provide additional power to the electrical equipment.

[0225] S1003: Determine whether the maximum electrical energy value of the DC power that can be converted from the AC-DC unit is less than the actual power consumption value. If it is (i.e. less), execute S1002; otherwise, execute S1004.

[0226] That is, if the sum of the actual electrical energy provided by the photovoltaic device at the current moment and the electrical energy provided by the grid is greater than or equal to the actual electricity consumption, the maximum electrical energy value of DC power that can be converted by the AC-DC unit in the charging device is further determined.

[0227] It is understandable that when the charging device obtains electrical energy from the grid to charge the electrical equipment, even if the sum of the first actual electrical energy value and the electrical energy provided by the grid is greater than or equal to the actual electrical consumption value, the maximum electrical energy value (i.e., the upper limit value) of the DC power converted by the AC-DC unit is less than the actual electrical consumption value. Therefore, relying solely on the photovoltaic device and the grid to provide electrical energy to the charging device is still insufficient. However, since the remaining electrical energy value of the energy storage device at the current moment is greater than the second remaining electrical energy value predicted at the second target moment, in this embodiment, when the remaining electrical energy of the energy storage device is greater than the first remaining electrical energy, and the charging device obtains electrical energy from the grid to charge the electrical equipment, if the sum of the first actual electrical energy value and the electrical energy provided by the grid is greater than or equal to the actual electrical consumption value, but the maximum electrical energy value of the DC power converted by the AC-DC unit is less than the actual electrical consumption value, the energy storage device is still adjusted to output electrical energy to the charging device.

[0228] S1004, make a decision based on the actual situation.

[0229] For example, when the charging device obtains electrical energy from the grid to charge the electrical equipment, if the sum of the first actual electrical energy value and the electrical energy provided by the grid is greater than or equal to the actual electrical energy value, and the maximum electrical energy value of the DC power that the AC-DC unit can convert is greater than the actual electrical energy value, then even if the remaining electrical energy of the energy storage device at the current moment is greater than the first remaining electrical energy, the photovoltaic device can be adjusted to provide electrical energy to the energy storage device.

[0230] For example, when the charging device obtains electrical energy from the grid to charge the electrical equipment, if the sum of the first actual electrical energy value and the electrical energy provided by the grid is greater than or equal to the actual electrical energy consumption value, and the maximum electrical energy value of the DC power converted by the AC-DC unit is greater than the actual electrical energy consumption value, if the remaining electrical energy of the energy storage device at the current moment is equal to the second remaining electrical energy, the energy storage device can also be adjusted to not obtain electrical energy from the photovoltaic device or the grid and not output electrical energy to the charging device.

[0231] In this scenario embodiment, when the remaining electrical energy at the current moment is greater than the first remaining electrical energy, and the charging device obtains electrical energy from the grid to charge the electrical equipment, the judgment is also made in combination with factors such as the actual electrical energy provided by the photovoltaic device at the current moment, the amount of electrical energy obtained by the charging device from the grid, and the actual electrical consumption of the charging device at the current moment. Therefore, the accuracy of the controller in adjusting the charging and discharging of the energy storage device can be improved.

[0232] The above, combined with Figures 1 to 10 This paper details the charging system architecture and the method for controlling the charging and discharging of the energy storage device using a controller, as proposed in this application. The following section will combine... Figure 11 and Figure 12 This application describes the control device proposed in this application.

[0233] Figure 11 This application provides a control device for controlling the charging and discharging of an energy storage device according to one embodiment. The control device is applied to a charging system, which includes a charging device, a photovoltaic device, and an energy storage device. The charging device provides electrical energy to electrical equipment, the photovoltaic device converts light energy into electrical energy to output the converted electrical energy to the charging device and the energy storage device, and the energy storage device stores the electrical energy output by the photovoltaic device and outputs electrical energy to the charging device.

[0234] Specifically, such as Figure 11 As shown, the control device 1100 includes a prediction module 1101 and an adjustment module 1102.

[0235] The prediction module 1101 is used to predict the first remaining energy of the energy storage device at a second target time based on the first energy value and the first demand energy value. The first energy value is the predicted energy value that the photovoltaic device can provide at the first target time, and the first demand energy value is the predicted energy value that the charging device needs at the first target time. The adjustment module 1102 is used to adjust the energy output relationship between the energy storage device and the target device at the first target time based on the relationship between the remaining energy of the energy storage device and the first remaining energy, the first actual energy value, and the actual power consumption value. The target device includes at least one of the photovoltaic device, the charging device, or the power grid. The first actual energy value is the energy value actually provided by the photovoltaic device at the first target time, and the actual power consumption value is the energy value actually needed by the charging device at the first target time.

[0236] In one possible implementation, the adjustment module 1102 is specifically used to: adjust the energy storage device to obtain power from the grid if the remaining power of the energy storage device is less than the first remaining power, the first power value is greater than the first actual power value, and the grid electricity price at the first target time is at the flat price or the off-peak price.

[0237] In one possible implementation, the adjustment module 1102 is specifically used to: if the remaining electrical energy of the energy storage device is less than the first remaining electrical energy, and the first electrical energy value is less than or equal to the first actual electrical energy value, adjust the energy storage device to obtain electrical energy from the photovoltaic device and / or the power grid.

[0238] In one possible implementation, the adjustment module 1102 is specifically used to: if the remaining power of the energy storage device is less than the first remaining power, the grid electricity price at the first target time is not at the flat price or off-peak price, and the first actual power value is greater than the actual power consumption value, adjust the energy storage device to obtain power from the photovoltaic device and not allow it to obtain power from the grid.

[0239] In one possible implementation, the adjustment module 1102 is specifically used to: if the remaining power of the energy storage device is less than the first remaining power, the grid electricity price at the first target time is not at the flat price or off-peak price, and the first actual power value is less than or equal to the actual power consumption value, adjust the energy storage device to not obtain power from the photovoltaic device and the grid and the energy storage device to not output power to the charging device.

[0240] In one possible implementation, the adjustment module 1102 is specifically used to: adjust the energy storage device to obtain power from the photovoltaic device if the remaining power of the energy storage device is greater than the first remaining power, the charging device does not obtain power from the grid to charge the electrical equipment, and the first actual power value is greater than the actual power consumption value.

[0241] In one possible implementation, the adjustment module 1102 is specifically configured to: if the remaining energy of the energy storage device is greater than the first remaining energy, the charging device does not obtain power from the grid to charge the electrical equipment, the first actual energy value is less than or equal to the actual power consumption value, and the remaining energy of the energy storage device is greater than the second remaining energy, adjust the energy storage device to output power to the charging device, wherein the second remaining energy is the remaining energy of the energy storage device at the second target time, which is re-predicted based on the first actual energy value and the actual power consumption value.

[0242] In one possible implementation, the adjustment module 1102 is specifically used to: if the remaining electrical energy of the energy storage device is less than or equal to the second remaining electrical energy, the charging device does not obtain electrical energy from the grid to charge the electrical equipment, the first actual electrical energy value is less than or equal to the actual electricity consumption value, and the remaining electrical energy of the energy storage device is less than or equal to the second remaining electrical energy, adjust the energy storage device to not obtain electrical energy from the photovoltaic device and not output electrical energy to the charging device.

[0243] In one possible implementation, the adjustment module 1102 is specifically used to: adjust the energy storage device to obtain electrical energy from the photovoltaic device if the remaining electrical energy of the energy storage device is the same as the first remaining electrical energy, the remaining electrical energy of the energy storage device is greater than the second remaining electrical energy, and the first actual electrical energy value is greater than the actual electricity consumption value.

[0244] In one possible implementation, the adjustment module 1102 is specifically used to: adjust the energy storage device to output electrical energy to the charging device if the remaining electrical energy of the energy storage device is the same as the first remaining electrical energy, the remaining electrical energy of the energy storage device is greater than the second remaining electrical energy, and the first actual electrical energy value is less than or equal to the actual electricity consumption value.

[0245] In one possible implementation, the adjustment module 1102 is specifically used to: adjust the energy storage device to obtain electrical energy from the photovoltaic device if the remaining electrical energy of the energy storage device is the same as the first remaining electrical energy, the remaining electrical energy of the energy storage device is the same as the second remaining electrical energy, and the first actual electrical energy value is greater than the actual electricity consumption value.

[0246] In one possible implementation, the adjustment module 1102 is specifically used to: if the remaining electrical energy of the energy storage device is the same as the first remaining electrical energy, the remaining electrical energy of the energy storage device is the same as the second remaining electrical energy, and the first actual electrical energy value is less than or equal to the actual electricity consumption value, adjust the energy storage device to not obtain electrical energy from the photovoltaic device and the power grid and not output electrical energy to the charging device.

[0247] In one possible implementation, the adjustment module 1102 is specifically used to: adjust the energy storage device to output electrical energy to the charging device if the remaining electrical energy of the energy storage device is greater than the first remaining electrical energy, the charging device obtains electrical energy from the power grid to charge the electrical equipment, and the sum of the first actual electrical energy value and the electrical energy provided by the power grid is less than the actual electrical consumption value.

[0248] In one possible implementation, the charging device includes an AC-DC unit, a DC bus unit, and a first DC-DC unit. The AC-DC unit converts the AC power obtained from the photovoltaic device and the AC power generated by the power grid into DC power with a first voltage value. The DC bus unit and the energy storage device are connected via the DC bus. The DC bus unit transmits the DC power with the first voltage value to the energy storage device or transmits the DC power in the energy storage device to the charging device via the DC bus. The first DC-DC unit converts the DC power with the first voltage value into DC power with a second voltage value adapted to the electrical equipment to charge the electrical equipment. The adjustment module 1102 is specifically used to: if the remaining energy of the energy storage device is greater than the first remaining energy, the charging device obtains power from the power grid to charge the electrical equipment, and the sum of the first actual energy value and the power provided by the power grid is greater than or equal to the actual power consumption value, but the maximum energy value of the DC power that the AC-DC unit can convert is less than the actual power consumption value, adjust the energy storage device to output power to the charging device.

[0249] Figure 12 A structural schematic diagram of a control device for controlling the charging and discharging of an energy storage device, provided in another embodiment of this application. Figure 12 The apparatus 1200 shown can be used to perform the method described in any of the foregoing embodiments.

[0250] like Figure 12 As shown, the device 1200 of this embodiment includes: a memory 1201, a processor 1202, a communication interface 1203, and a bus 1204. The memory 1201, the processor 1202, and the communication interface 1203 are interconnected via the bus 1204.

[0251] The memory 1201 can be a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1201 can store programs, and when the program stored in the memory 1201 is executed by the processor 1202, the processor 1202 performs the execution. Figures 4 to 10 The steps of the method shown.

[0252] The processor 1202 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, used to execute relevant programs to implement this application. Figures 4 to 10 The method shown.

[0253] The processor 1202 can also be an integrated circuit chip with signal processing capabilities. In the implementation process, the embodiments of this application... Figures 4 to 10 Each step of the method can be accomplished by integrated logic circuitry in the hardware of the processor 1202 or by instructions in software form.

[0254] The processor 1202 described above can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor, etc.

[0255] The steps of the method disclosed in the embodiments of this application can be directly manifested as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory 1201. Processor 1202 reads information from memory 1201 and, in conjunction with its hardware, completes the functions required by the units included in the device of this application. For example, it can execute... Figures 4 to 10 The various steps / functions of the illustrated embodiment.

[0256] The communication interface 1203 can use, but is not limited to, transceivers to enable communication between the device 1200 and other devices or communication networks.

[0257] Bus 1204 may include a pathway for transmitting information between various components of device 1200 (e.g., memory 1201, processor 1202, communication interface 1203).

[0258] It should be understood that the device 1200 shown in the embodiments of this application may be an electronic device, or it may be a chip configured in an electronic device.

[0259] The above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any other combination thereof. When implemented using software, the above embodiments can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more sets of available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. A semiconductor medium can be a solid-state drive.

[0260] It should be understood that the term "and / or" in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. A and B can be singular or plural. Additionally, the character " / " in this article generally indicates an "or" relationship between the preceding and following related objects, but it can also represent an "and / or" relationship. Please refer to the context for a more accurate understanding.

[0261] In this application, "at least one" means one or more, and "more than one" means two or more. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or multiple items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.

[0262] It should be understood that in the various embodiments of this application, the order of the above-mentioned processes does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0263] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0264] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0265] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0266] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0267] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0268] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory, random access memory, magnetic disks, or optical disks.

[0269] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for controlling the charging and discharging of an energy storage device, characterized in that, The method is applied to a charging system, which includes a charging device, a photovoltaic device, and an energy storage device. The charging device provides electrical energy to electrical equipment. The photovoltaic device converts light energy into electrical energy to output the converted electrical energy to the charging device and the energy storage device. The energy storage device stores the electrical energy output by the photovoltaic device and outputs electrical energy to the charging device. The energy storage device is predicted to have a first remaining energy at a second target time based on a first energy value and a first energy demand value. The first energy value is the predicted energy value that the photovoltaic device can provide at the first target time, and the first energy demand value is the predicted energy value that the charging device requires at the first target time. At the first target time, the power output relationship between the energy storage device and the target device is adjusted according to the relationship between the remaining power of the energy storage device and the first remaining power, the first actual power value, and the actual power consumption value. The target device includes at least one of the photovoltaic device, the charging device, or the power grid. The first actual power value is the power value actually provided by the photovoltaic device at the first target time, and the actual power consumption value is the power value actually required by the charging device at the first target time. The power output relationship includes any one of the following: the energy storage device obtains power from at least one of the target devices; the energy storage device outputs power to at least one of the target devices; or the energy storage device neither obtains power from the target device nor outputs power to the target device. The adjustment of the power output relationship between the energy storage device and the target device includes: If the remaining energy of the energy storage device is greater than the first remaining energy, the charging device does not draw power from the grid to charge the electrical equipment, the first actual energy value is less than or equal to the actual power consumption value, and the remaining energy of the energy storage device is greater than the second remaining energy, the energy storage device is adjusted to output power to the charging device. The second remaining energy is the remaining energy of the energy storage device at the second target time, which is re-predicted based on the first actual energy value and the actual power consumption value. If the remaining power of the energy storage device is less than or equal to the second remaining power, the charging device does not draw power from the grid to charge the electrical equipment, and the first actual power value is less than or equal to the actual power consumption value, the energy storage device is adjusted to not draw power from the photovoltaic device and not output power to the charging device.

2. The method according to claim 1, characterized in that, The adjustment of the power output relationship between the energy storage device and the target device includes: If the remaining power of the energy storage device is less than the first remaining power, the first power value is greater than the first actual power value, and the grid electricity price at the first target time is at the flat price or off-peak price, the energy storage device is adjusted to obtain power from the grid.

3. The method according to claim 1, characterized in that, The adjustment of the power output relationship between the energy storage device and the target device includes: If the remaining electrical energy of the energy storage device is less than the first remaining electrical energy, and the first electrical energy value is less than or equal to the first actual electrical energy value, the energy storage device is adjusted to obtain electrical energy from the photovoltaic device and / or the power grid.

4. The method according to claim 1, characterized in that, The adjustment of the power output relationship between the energy storage device and the target device includes: If the remaining power of the energy storage device is less than the first remaining power, the grid electricity price at the first target time is not at the flat price or off-peak price, and the first actual power value is greater than the actual electricity consumption value, the energy storage device is adjusted to obtain power from the photovoltaic device and is not allowed to obtain power from the grid.

5. The method according to claim 1, characterized in that, The adjustment of the power output relationship between the energy storage device and the target device includes: If the remaining power of the energy storage device is less than the first remaining power, the grid electricity price at the first target time is not at the flat or off-peak price, and the first actual power value is less than or equal to the actual power consumption value, the energy storage device is adjusted to not obtain power from the photovoltaic device and the grid, and the energy storage device does not output power to the charging device.

6. The method according to claim 1, characterized in that, The adjustment of the power output relationship between the energy storage device and the target device includes: If the remaining power of the energy storage device is greater than the first remaining power, the charging device does not draw power from the grid to charge the electrical equipment, and the first actual power value is greater than the actual power consumption value, the energy storage device is adjusted to draw power from the photovoltaic device.

7. The method according to claim 1, characterized in that, The adjustment of the power output relationship between the energy storage device and the target device includes: If the remaining electrical energy of the energy storage device is the same as the first remaining electrical energy, the remaining electrical energy of the energy storage device is greater than the second remaining electrical energy, and the first actual electrical energy value is greater than the actual electricity consumption value, the energy storage device is adjusted to obtain electrical energy from the photovoltaic device.

8. The method according to claim 1, characterized in that, The adjustment of the power output relationship between the energy storage device and the target device includes: If the remaining electrical energy of the energy storage device is the same as the first remaining electrical energy, the remaining electrical energy of the energy storage device is greater than the second remaining electrical energy, and the first actual electrical energy value is less than or equal to the actual electricity consumption value, the energy storage device is adjusted to output electrical energy to the charging device.

9. The method according to claim 1, characterized in that, The adjustment of the power output relationship between the energy storage device and the target device includes: If the remaining electrical energy of the energy storage device is the same as the first remaining electrical energy, the remaining electrical energy of the energy storage device is the same as the second remaining electrical energy, and the first actual electrical energy value is greater than the actual electricity consumption value, the energy storage device is adjusted to obtain electrical energy from the photovoltaic device.

10. The method according to claim 1, characterized in that, The adjustment of the power output relationship between the energy storage device and the target device includes: If the remaining power of the energy storage device is the same as the first remaining power, the remaining power of the energy storage device is the same as the second remaining power, and the first actual power value is less than or equal to the actual power consumption value, the energy storage device is adjusted to not obtain power from the photovoltaic device and the power grid and not output power to the charging device.

11. The method according to claim 1, characterized in that, The adjustment of the power output relationship between the energy storage device and the target device includes: If the remaining power of the energy storage device is greater than the first remaining power, the charging device obtains power from the power grid to charge the electrical equipment, and the sum of the first actual power value and the power provided by the power grid is less than the actual power consumption value, the energy storage device is adjusted to output power to the charging device.

12. The method according to any one of claims 1 to 11, characterized in that, The charging device includes an AC-DC unit, a DC bus unit, and a first DC-DC unit. The AC-DC unit is used to convert the alternating current obtained by the photovoltaic device and the alternating current generated by the power grid into direct current with a first voltage value. The DC bus unit and the energy storage device are connected through the DC bus. The DC bus unit is used to transmit the direct current with the first voltage value to the energy storage device through the DC bus or to transmit the direct current in the energy storage device to the charging device. The first DC-DC-DC-DC unit is used to convert the direct current with the first voltage value into direct current with a second voltage value adapted to the electrical equipment to charge the electrical equipment. The adjustment of the power output relationship between the energy storage device and the target device includes: If the remaining power of the energy storage device is greater than the first remaining power, the charging device obtains power from the grid to charge the electrical equipment, and the sum of the first actual power value and the power provided by the grid is greater than or equal to the actual power consumption value, but the maximum power value of the DC power that the AC-DC unit can convert is less than the actual power consumption value, the energy storage device is adjusted to output power to the charging device.

13. A controller, characterized in that, This system is applied to a charging system, which includes a charging device, a photovoltaic device, and an energy storage device. The charging device provides electrical energy to electrical equipment. The photovoltaic device converts light energy into electrical energy to output the converted electrical energy to the charging device and the energy storage device. The energy storage device stores the electrical energy output by the photovoltaic device and outputs electrical energy to the charging device. The controller is used for: The energy storage device is predicted to have a first remaining energy at a second target time based on a first energy value and a first energy demand value. The first energy value is the predicted energy value that the photovoltaic device can provide at the first target time, and the first energy demand value is the predicted energy value that the charging device requires at the first target time. At the first target time, based on the relationship between the remaining electrical energy of the energy storage device and the first remaining electrical energy, the first actual electrical energy value, and the actual electricity consumption value, the power output relationship between the energy storage device and the target device is adjusted. The target device includes at least one of the photovoltaic device, the charging device, or the power grid. The first actual electrical energy value is the electrical energy value actually provided by the photovoltaic device at the first target time, and the actual electricity consumption value is the electrical energy value actually required by the charging device at the first target time. The power output relationship includes any one of the following: the energy storage device obtains electrical energy from at least one of the target devices; the energy storage device outputs electrical energy to at least one of the target devices; the energy storage device neither obtains electrical energy from the target device nor outputs electrical energy to the target device. The adjustment of the power output relationship between the energy storage device and the target device includes: If the remaining energy of the energy storage device is greater than the first remaining energy, the charging device does not draw power from the grid to charge the electrical equipment, the first actual energy value is less than or equal to the actual power consumption value, and the remaining energy of the energy storage device is greater than the second remaining energy, the energy storage device is adjusted to output power to the charging device. The second remaining energy is the remaining energy of the energy storage device at the second target time, which is re-predicted based on the first actual energy value and the actual power consumption value. If the remaining power of the energy storage device is less than or equal to the second remaining power, the charging device does not draw power from the grid to charge the electrical equipment, and the first actual power value is less than or equal to the actual power consumption value, the energy storage device is adjusted to not draw power from the photovoltaic device and not output power to the charging device.

14. The controller according to claim 13, characterized in that, The controller is specifically used for: If the remaining power of the energy storage device is less than the first remaining power, the first power value is greater than the first actual power value, and the grid electricity price at the first target time is at the flat price or off-peak price, the energy storage device is adjusted to obtain power from the grid.

15. The controller according to claim 13 or 14, characterized in that, The controller is specifically used for: If the remaining electrical energy of the energy storage device is less than the first remaining electrical energy, and the first electrical energy value is less than or equal to the first actual electrical energy value, the energy storage device is adjusted to obtain electrical energy from the photovoltaic device and / or the power grid.

16. A charging system, characterized in that, The device includes a charging device, a photovoltaic device, an energy storage device, and a controller. The charging device is used to provide electrical energy to electrical equipment. The photovoltaic device is used to convert light energy into electrical energy and output the converted electrical energy to the charging device and the energy storage device. The energy storage device is used to store the electrical energy output by the photovoltaic device and to output electrical energy to the charging device. The controller is used to: predict the first remaining energy of the energy storage device at a second target time based on the first energy value and the first demand energy value; and adjust the energy output relationship between the energy storage device and the target device at the first target time based on the magnitude relationship between the remaining energy of the energy storage device and the first remaining energy, the first actual energy value and the actual power consumption value. Wherein, the first electrical energy value is the predicted electrical energy value that the photovoltaic device can provide at the first target time, the first demand electrical energy value is the predicted electrical energy value that the charging device needs at the first target time, the first actual electrical energy value is the electrical energy value that the photovoltaic device actually provides at the first target time, the actual electricity consumption value is the electrical energy value that the charging device actually needs at the first target time, and the target device includes at least one of the photovoltaic device, the charging device, or the power grid. When adjusting the power output relationship between the energy storage device and the target device, the controller is specifically configured to adjust the energy storage device to output power to the charging device if: the remaining power of the energy storage device is greater than the first remaining power; the charging device does not draw power from the grid to charge the electrical equipment; the first actual power value is less than or equal to the actual power consumption value; and the remaining power of the energy storage device is greater than the second remaining power. The second remaining power is the remaining power of the energy storage device at the second target time, which is re-predicted based on the first actual power value and the actual power consumption value. If the remaining power of the energy storage device is less than or equal to the second remaining power; the charging device does not draw power from the grid to charge the electrical equipment; and the first actual power value is less than or equal to the actual power consumption value, the controller adjusts the energy storage device to not draw power from the photovoltaic device and not output power to the charging device.

17. The charging system according to claim 16, characterized in that, The charging device includes an AC-DC unit, a DC bus unit, and a first DC-DC unit. The AC-DC unit is used to convert the AC power obtained from the photovoltaic device and the AC power generated by the power grid into DC power of a first voltage value. The DC bus unit and the energy storage device are connected through the DC bus. The DC bus unit is used to transmit the DC power of the first voltage value to the energy storage device through the DC bus or to transmit the DC power in the energy storage device to the charging device. The first DC-DC unit is used to convert the DC power of the first voltage value into DC power of a second voltage value adapted to the electrical equipment to charge the electrical equipment.

18. The charging system according to claim 16 or 17, characterized in that, The controller is further configured to: adjust the energy storage device to output power to the charging device when the remaining power of the energy storage device is the same as the first remaining power, the remaining power of the energy storage device is greater than the second remaining power, and the first actual power value is less than or equal to the actual power consumption value.

Citation Information

Patent Citations

  • Microgrid energy storage real-time control method based on prediction data correction

    CN105515031A