Charging cost estimation method and device of energy storage equipment, equipment and medium

By monitoring the power output data of the hybrid power supply system in real time, it can determine the charging source switching of energy storage equipment and segment the scenarios in a fine-grained manner. This solves the problem of low accuracy in estimating the charging cost of energy storage equipment and achieves more accurate charging cost calculations.

CN118780838APending Publication Date: 2024-10-15HUIDIAN TECHNOLOGY (SUZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410989348.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In the existing technology, the charging cost estimation accuracy of energy storage equipment is low, and it is impossible to accurately determine the charging source and cost of energy storage equipment.

Method used

Through real-time monitoring of the hybrid power supply system, the power output data of mains power and photovoltaic power are obtained to determine whether the charging source is switched, and the scene conversion time period is divided into fine-grained segments, and the charging cost is determined based on the gateway power and photovoltaic power data.

Benefits of technology

Significantly improves the estimation accuracy of energy storage equipment charging costs, and accurately calculates the charging sources and costs of energy storage equipment in different time periods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780838A_ABST
    Figure CN118780838A_ABST
Patent Text Reader

Abstract

The invention discloses a charging cost estimation method and device for energy storage equipment, equipment and a medium, and belongs to the technical field of power distribution networks. The method comprises the steps that the running state of a hybrid power supply system is monitored in real time; power output data of commercial power and photovoltaic power in a preset time period are obtained, gateway power data and photovoltaic power data are obtained, and whether a charging source of the energy storage equipment in the preset time period is switched or not is judged; if yes, segmenting a time period containing the switched charging source of the energy storage equipment from a preset time period to obtain a scene conversion time period, performing fine-grained segmentation on the scene conversion time period, and determining the charging cost corresponding to the energy storage equipment in the scene conversion time period to obtain a target charging cost; and determining the charging cost of the energy storage equipment in the preset time period according to the target charging cost, the scene conversion time period, the preset time period, the gateway power data and the photovoltaic power data. Through the method, the precision of estimating the charging cost of the energy storage equipment can be remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power distribution network technology, and in particular to a method, apparatus, equipment and medium for estimating the charging cost of energy storage devices. Background Technology

[0002] To ensure the safety and stability of their electricity supply, many businesses connect hybrid power distribution systems to their equipment's power source. These systems utilize not only mains power but also energy storage devices and solar power.

[0003] When charging energy storage devices in hybrid power distribution systems, different methods are used depending on the application scenario. For example, sometimes mains power is used, sometimes solar power is used, and sometimes both are used. Because company personnel cannot determine whether the energy storage device's charging source is mains power or solar power, they can only roughly estimate the charging cost by simply using the unit price of either solar or mains power. However, this cost estimation method has a large margin of error. Currently, there is no effective solution to this technical problem.

[0004] Therefore, how to further improve the accuracy of estimating the charging cost of energy storage devices is a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0005] In view of this, the purpose of this invention is to provide a method, apparatus, device, and medium for estimating the charging cost of energy storage devices, so as to solve the technical problem of poor accuracy in estimating the charging cost of energy storage devices in the prior art. The specific solution is as follows:

[0006] To address the aforementioned technical problems, this invention provides a method for estimating the charging cost of energy storage devices, comprising:

[0007] The operating status of the hybrid power supply system is monitored in real time; wherein the hybrid power supply system is connected to energy storage devices, photovoltaics, and mains power.

[0008] When it is necessary to estimate the charging cost of the energy storage device within a preset time period, the power output data of the mains power and the photovoltaic power during the preset time period are obtained to obtain the gate power data and photovoltaic power data.

[0009] Based on the power data at the gateway and the photovoltaic power data, it is determined whether the charging source of the energy storage device is switched within the preset time period;

[0010] If so, the time period containing the switching of the charging source of the energy storage device is divided from the preset time period to obtain the scene transition time period. The scene transition time period is further divided into fine-grained segments, and the charging cost of the energy storage device in the scene transition time period is determined according to the gate power data and the photovoltaic power data to obtain the target charging cost.

[0011] The charging cost of the energy storage device during the preset time period is determined based on the target charging cost, the scenario transition time period, the preset time period, the threshold power data, and the photovoltaic power data.

[0012] Preferably, determining whether the charging source of the energy storage device is switched within the preset time period based on the gate power data and the photovoltaic power data includes:

[0013] Based on the power data of the gate and the power data of the photovoltaic, determine whether there is a moment within the preset time period when the output power of the gate and / or the photovoltaic jumps to zero.

[0014] If so, it is determined that the charging source of the energy storage device was switched during the preset time period.

[0015] Preferably, the step of segmenting the preset time period to include the time period in which the charging source of the energy storage device is switched, obtaining a scene transition time period, further segmenting the scene transition time period into finer-grained segments, and determining the charging cost of the energy storage device corresponding to the scene transition time period based on the threshold power data and the photovoltaic power data to obtain the target charging cost includes:

[0016] The scene transition time period is obtained by segmenting the preset time period into time periods that include the threshold power data jumping to zero and / or the photovoltaic power data jumping to zero;

[0017] The start and end times of the scene transition time period are respectively determined as the first time and the second time.

[0018] Based on the gate power data and the photovoltaic power data, the output power of the mains power and the photovoltaic at the first moment are determined respectively to obtain the first gate power and the first photovoltaic power. Then, the output power of the mains power and the photovoltaic at the second moment are determined respectively to obtain the second gate power and the second photovoltaic power.

[0019] The charging source of the energy storage device at the first moment is determined based on the first threshold power and the first photovoltaic power to obtain the first power supply, and the charging source of the energy storage device at the second moment is determined based on the second threshold power and the second photovoltaic power to obtain the second power supply.

[0020] Based on the first power supply and the second power supply, the charging cost of the energy storage device during the scenario transition period is determined, and the target charging cost is obtained.

[0021] Preferably, determining the charging source of the energy storage device at the first moment based on the first threshold power and the first photovoltaic power to obtain the first power supply includes:

[0022] If the power at the first gate is less than zero and the power at the first photovoltaic gate is greater than zero, then the first power source is determined to be the photovoltaic power source.

[0023] If the first gate power is greater than zero and the first photovoltaic power is less than zero or equal to zero, then the first power source is determined to be the mains power.

[0024] If the power of the first gate is greater than zero and the power of the first photovoltaic is greater than zero, then the first power source is determined to be the photovoltaic and the mains power.

[0025] Accordingly, determining the charging source of the energy storage device at the second moment based on the second threshold power and the second photovoltaic power, and obtaining the second power supply, includes:

[0026] If the power at the second gate is less than zero and the power at the second photovoltaic gate is greater than zero, then the second power source is determined to be the photovoltaic power source.

[0027] If the power at the second gate is greater than zero, and the power at the second photovoltaic gate is less than zero or equal to zero, then the second power source is determined to be the mains power.

[0028] If the power at the second gate is greater than zero and the power at the second photovoltaic gate is greater than zero, then the second power source is determined to be the photovoltaic power and the mains power.

[0029] Preferably, determining the charging cost of the energy storage device during the scenario transition period based on the first power supply and the second power supply includes:

[0030] If, based on the first power supply and the second power supply, it is determined that the power source of the energy storage device during the scene transition period changes from the photovoltaic to the photovoltaic and the mains power, or from the photovoltaic and the mains power to the photovoltaic, then the moment corresponding to when the output power of the mains power is zero is determined, and the switching moment is obtained.

[0031] The charging amount of the energy storage device during the scene transition period is divided according to the threshold transition time to obtain the charging amount of the energy storage device powered by both photovoltaic and mains power during the scene transition period, thus obtaining the first collaborative charging amount;

[0032] The charging cost of the energy storage device during the scene transition period is determined based on the threshold transition time, the charging amount of the energy storage device during the scene transition period, the first collaborative charging amount, and the preset weight.

[0033] If, based on the first power supply and the second power supply, it is determined that the power source of the energy storage device during the scene transition period changes from the mains power to the photovoltaic and the mains power, or from the photovoltaic and the mains power to the mains power, then the moment corresponding to when the output power of the photovoltaic is zero is determined, and the photovoltaic transition moment is obtained.

[0034] The charging amount of the energy storage device during the scene transition period is divided according to the photovoltaic jump time to obtain the charging amount of the energy storage device powered by both photovoltaic and mains power during the scene transition period, thus obtaining the second collaborative charging amount;

[0035] The charging cost of the energy storage device during the scene transition period is determined based on the photovoltaic jump time, the charging amount of the energy storage device during the scene transition period, the second collaborative charging amount, and the preset weight.

[0036] Preferably, the preset weights are set based on the power supplied to the energy storage device by the photovoltaic system and the mains power.

[0037] Preferably, determining the moment when the mains power output power is zero, and obtaining the switchover moment, includes:

[0038] The moment when the mains power output is zero is determined based on the first threshold power, the second threshold power, and the scene transition time period, thus obtaining the threshold switching moment.

[0039] To address the aforementioned technical problems, the present invention also provides a charging cost estimation device for energy storage devices, comprising:

[0040] A status monitoring module is used to monitor the operating status of the hybrid power supply system in real time; wherein, the hybrid power supply system is connected to energy storage devices, photovoltaics, and mains power.

[0041] The power acquisition module is used to acquire the power output data of the mains power and the photovoltaic power during the preset time period when it is necessary to estimate the charging cost of the energy storage device within a preset time period, so as to obtain the gate power data and photovoltaic power data.

[0042] The scenario judgment module is used to determine whether the charging source of the energy storage device is switched within the preset time period based on the gate power data and the photovoltaic power data.

[0043] The charging segmentation module is used to segment out the time period containing the switching of the charging source of the energy storage device from the preset time period when the determination result of the scenario judgment module is yes, to obtain the scenario transition time period, to perform fine-grained segmentation of the scenario transition time period, and to determine the charging cost of the energy storage device in the scenario transition time period based on the gate power data and the photovoltaic power data, so as to obtain the target charging cost.

[0044] The cost estimation module is used to determine the charging cost of the energy storage device during the preset time period based on the target charging cost, the scenario transition time period, the preset time period, the threshold power data, and the photovoltaic power data.

[0045] To address the aforementioned technical problems, the present invention also provides an electronic device, comprising:

[0046] Memory, used to store computer programs;

[0047] A processor is configured to implement, when executing the computer program, a method for estimating the charging cost of an energy storage device as disclosed above.

[0048] To address the aforementioned technical problems, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of a method for estimating the charging cost of an energy storage device as disclosed above.

[0049] Beneficial Effects: Since the output power of mains power and photovoltaic (PV) varies in different charging scenarios for energy storage devices, the charging source of the energy storage device can be determined based on the mains power data and PV power data within a preset time period. When it is determined that the charging source of the energy storage device has been switched within the preset time period, the time period containing the switched charging source is segmented to obtain the scenario transition period. Then, the scenario transition period is further subdivided into finer-grained segments. After fine-grained segmentation, the charging source corresponding to the energy storage device at different times within the scenario transition period can be determined based on the mains power output data and PV power output data. Once the charging source corresponding to the energy storage device at different times within the scenario transition period is determined, the charging cost of the energy storage device within the scenario transition period can be determined.

[0050] Meanwhile, since the charging scenario for the energy storage device remains unchanged during the target time period, excluding the scenario transition period, the charging source and charging amount corresponding to the energy storage device in this charging scenario can be determined by using the gate power data and photovoltaic power data. This allows for the calculation of the charging cost of the energy storage device during this time period. Finally, by adding this charging cost to the charging cost corresponding to the energy storage device during the scenario transition period, the charging cost of the energy storage device within the preset time period can be determined.

[0051] Compared to existing technologies that simply rely on the charging capacity of energy storage devices and use the unit price of photovoltaic power supply or the unit price of grid power supply to roughly estimate the charging cost of energy storage devices, this method can significantly improve the accuracy of estimating the charging cost of energy storage devices.

[0052] Correspondingly, the charging cost estimation device, equipment, and medium for energy storage devices provided by the present invention also have the above-mentioned beneficial effects. Attached Figure Description

[0053] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0054] Figure 1 A flowchart illustrating a method for estimating the charging cost of an energy storage device provided in an embodiment of the present invention;

[0055] Figure 2 This is a schematic diagram of an energy storage device in a hybrid power supply system.

[0056] Figure 3 This is a schematic diagram illustrating another scenario of energy storage devices in a hybrid power supply system;

[0057] Figure 4 A structural diagram of a charging cost estimation device for an energy storage device provided in an embodiment of the present invention;

[0058] Figure 5 This is a structural diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0059] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0060] Please see Figure 1 , Figure 1 A flowchart illustrating a method for estimating the charging cost of an energy storage device, provided in an embodiment of the present invention, includes:

[0061] Step S11: Real-time monitoring of the operating status of the hybrid power supply system; wherein the hybrid power supply system is connected to energy storage devices, photovoltaics, and mains power;

[0062] Step S12: When it is necessary to estimate the charging cost of the energy storage device within a preset time period, the power output data of the mains power and photovoltaic power within the preset time period are obtained to obtain the gate power data and photovoltaic power data.

[0063] Step S13: Determine whether the charging source of the energy storage device has been switched within a preset time period based on the gate power data and photovoltaic power data;

[0064] Step S14: If yes, then the time period containing the switching of the charging source of the energy storage device is divided from the preset time period to obtain the scene transition time period. The scene transition time period is further divided into fine-grained segments, and the charging cost of the energy storage device in the scene transition time period is determined according to the gate power data and photovoltaic power data to obtain the target charging cost.

[0065] Step S15: Determine the charging cost of the energy storage device within the preset time period based on the target charging cost, the scenario transition time period, the preset time period, the threshold power data, and the photovoltaic power data.

[0066] This embodiment provides a method for estimating the charging cost of energy storage devices, which can accurately estimate the charging cost of energy storage devices. The method first involves real-time monitoring of the operating status of a hybrid power supply system, which is connected to energy storage devices, photovoltaic power, and mains power.

[0067] Please see Figure 2 and Figure 3 , Figure 2 This is a schematic diagram illustrating a scenario where energy storage devices are used in a hybrid power supply system. Figure 3 This is a schematic diagram illustrating another scenario involving energy storage devices in a hybrid power supply system. Figure 2 and Figure 3In the diagram, 101 represents a transformer, 102 represents a gate meter, 103 represents a load meter, 104 represents a load device, 105 represents a grid-connected meter, 106 represents a photovoltaic system, 107 represents an energy storage meter, and 108 represents an energy storage device. Transformer 101 is used to convert mains power and use the converted voltage to charge energy storage device 108 or supply power to load device 104. Gate meter 102, load meter 103, grid-connected meter 105, and energy storage meter 107 are used to measure the active power, reactive power, and electricity consumption of mains power, load device 104, photovoltaic system 106, and energy storage device 108, respectively. Figure 2 In the hybrid power supply system shown, the load device 104 and the energy storage device 108 are treated as two separate functional modules, while... Figure 3 In the hybrid power supply system shown, the energy storage device 108 is used as part of the load device 104.

[0068] Because the output power of photovoltaic (PV) power and mains power differs under different charging scenarios, for example: if the output power of PV measured by the grid-connected meter is greater than zero, while the output power of mains power measured by the gate meter is less than zero, it means that only PV power is charging the energy storage device. Conversely, if the output power of PV measured by the grid-connected meter is less than zero, while the output power of mains power measured by the gate meter is greater than zero, it means that only mains power is charging the energy storage device.

[0069] Therefore, when estimating the charging cost of an energy storage device within a preset time period, the first step is to obtain the power output data of the mains power and photovoltaic power during the preset time period, thus obtaining the gate power data and photovoltaic power data. Then, based on the gate power data and photovoltaic power data, it is determined whether the charging source of the energy storage device has been switched during the preset time period. If it is determined from the gate power data and photovoltaic power data that the charging source of the energy storage device has not been switched during the preset time period, then the charging cost of the energy storage device during the preset time period can be calculated using the conventional method.

[0070] If it is determined from the gate power data and photovoltaic power data that the charging source of the energy storage device is switched within a preset time period, then it is necessary to first divide the preset time period into the time period that includes the switching of the charging source of the energy storage device, to obtain the scenario transition time period; then, further subdivide the scenario transition time period into finer-grained segments, and determine the charging cost corresponding to the energy storage device in the scenario transition time period based on the gate power data and photovoltaic power data, to obtain the target charging cost.

[0071] It's easy to see that when the scene transition time period is divided into multiple time intervals, each moment within these intervals corresponds to a photovoltaic (PV) output power and a mains power output power. That is, at any given time point, the corresponding PV output power and mains power output power can be found. Based on the PV and mains output power at that time point, the charging source for the energy storage device at that time can be determined. Once the charging source for the energy storage device at a given time is determined, the charging cost for the energy storage device at that time can be determined based on the PV power supply price and / or the mains power supply price.

[0072] Once the charging cost of the energy storage device at each moment during the scenario transition period is determined, the charging cost of the energy storage device at each moment during the scenario transition period can be summed to determine the total charging cost of the energy storage device during the scenario transition period.

[0073] If we define the time periods other than the scene transition time periods in the preset time period as fixed scene time periods, then we can determine the charging source corresponding to the energy storage device when it is charged during the fixed scene time periods based on the photovoltaic output power and the mains power output power corresponding to the fixed scene time periods. At this time, we can determine the charging cost of the energy storage device during the fixed scene time periods based on the photovoltaic power supply unit price and / or the mains power supply unit price.

[0074] Specifically, in practical applications, if the power source for the energy storage device during a fixed time period is determined to be photovoltaic (PV) based on the power data from the gateway and PV power data, then the charging cost of the energy storage device during that fixed time period can be determined based on the charging amount of the energy storage device and the unit price of PV power supply. Assuming the charging amount of the energy storage device during a fixed time period is C0 and the unit price of PV power supply is Rp, then the charging cost of the energy storage device during that fixed time period is: V = C0 × Rp.

[0075] If the power source for the energy storage device during a fixed time period is determined to be grid power based on the grid power data and photovoltaic power data, then the charging cost of the energy storage device during that fixed time period can be determined based on the charging amount of the energy storage device and the grid power price. Assuming the charging amount of the energy storage device during a fixed time period is C0 and the grid power price is Rg, then the charging cost of the energy storage device during that fixed time period is: V = C0 × Rg.

[0076] If the power sources for the energy storage device during a fixed time period are determined based on the gate power data and photovoltaic power data, that is, the energy storage device is powered by both grid power and photovoltaic power during the fixed time period, then the amount of electricity charged by photovoltaic power and grid power can be determined relatively accurately based on the output power of photovoltaic power and grid power during the fixed time period.

[0077] At this point, the output power of photovoltaic and grid power within a fixed time period can be used to set a preset weight value, and the preset weight value can be used to determine the sharing ratio of photovoltaic and grid power when charging energy storage devices. In this way, the charging cost of energy storage devices in the target time period can be determined based on the charging amount of energy storage devices, the unit price of grid power supply, the unit price of photovoltaic power supply, and the preset weight value.

[0078] Assuming the energy storage device's charging amount during a fixed time period is C0, the photovoltaic power supply unit price is Rp, the mains power supply unit price is Rg, and the mains power and photovoltaic power outputs during the fixed time period are Pgrid0 and Ppv0 respectively, then the preset weight value ki can be expressed as Ppv0 / Ppv0+Pgrid0. In this case, the charging cost of the energy storage device during the fixed time period is:

[0079] V = C0×ki×Rp + C0×(1-ki)×Rg, that is:

[0080] V= C0×Ppv0 / (Ppv0+Pgrid0)×Rp+ C0×Pgrid0 / (Ppv0+Pgrid0)×Rg.

[0081] It should be noted that in this embodiment, the fixed time period of the scene can be one time period or multiple time periods, and the scene transition time period can be one time period or multiple time periods, without specific limitations here.

[0082] After calculating the charging cost of the energy storage device during the scene transition period and the charging cost of the energy storage device during a fixed period of the scene, the two costs are added together to determine the charging cost of the energy storage device within the preset period.

[0083] Clearly, compared to existing technologies that simply rely on the charging capacity of energy storage devices and use the unit price of photovoltaic power supply or the unit price of grid power supply to roughly estimate the charging cost of energy storage devices, this method can significantly improve the accuracy of estimating the charging cost of energy storage devices.

[0084] Based on the above embodiments, this embodiment further explains and optimizes the technical solution. As a preferred implementation, the above step of determining whether the charging source of the energy storage device is switched within a preset time period based on the gate power data and photovoltaic power data includes:

[0085] Based on the gate power data and photovoltaic power data, determine whether there is a moment within a preset time period when the output power of the gate and / or photovoltaic jumps to zero.

[0086] If so, it is determined that the charging source of the energy storage device has been switched within the preset time period.

[0087] Understandably, in practical applications, if the charging source of the energy storage device does not change within a preset time period, then the power output of the switch and the photovoltaic system will not be zero. If the output power of the switch and / or the photovoltaic system is zero, it indicates that the charging source of the energy storage device has changed.

[0088] Based on this characteristic of energy storage devices during the charging process, it can be determined whether the charging source of the energy storage device has been switched within a preset time period. That is, when it is determined from the gate power data and photovoltaic power data that there is a moment within the preset time period when the output power of the gate and / or photovoltaic jumps to zero, it indicates that the charging source of the energy storage device has been switched within the preset time period.

[0089] Obviously, the technical solution provided in this embodiment can determine whether the charging source of the energy storage device has changed within a preset time period.

[0090] As a preferred implementation, the above steps include: segmenting the time period containing the switching of the charging source for the energy storage device from a preset time period to obtain the scene transition time period; further segmenting the scene transition time period into finer-grained segments; and determining the charging cost of the energy storage device during the scene transition time period based on the gate power data and photovoltaic power data to obtain the target charging cost, including:

[0091] The scene transition time period is obtained by segmenting the preset time period into time periods that include the threshold power data jumping to zero and / or the photovoltaic power data jumping to zero;

[0092] The start and end times of the scene transition period are respectively defined as the first moment and the second moment;

[0093] Based on the gate power data and photovoltaic power data, the output power of the mains power and photovoltaic at the first moment is determined, thus obtaining the first gate power and the first photovoltaic power. Then, the output power of the mains power and photovoltaic at the second moment is determined, thus obtaining the second gate power and the second photovoltaic power.

[0094] The charging source of the energy storage device at the first moment is determined based on the first threshold power and the first photovoltaic power, thus obtaining the first power supply. The charging source of the energy storage device at the second moment is determined based on the second threshold power and the second photovoltaic power, thus obtaining the second power supply.

[0095] The charging cost of the energy storage device during the scenario transition period is determined based on the first and second power supplies, thus obtaining the target charging cost.

[0096] In this embodiment, when determining the charging cost of the energy storage device during the scene transition time period, the first step is to divide the preset time period into time periods that include the threshold power data jumping to zero and / or the photovoltaic power data jumping to zero, thus obtaining the scene transition time period; then, the start time and end time of the scene transition time period are respectively determined as the first time and the second time; wherein, the first time is represented by T1 and the second time is represented by T2.

[0097] When T1 and T2 are obtained, the output power of the mains power at T1 and T2 is determined according to the gate power data, so as to obtain the first gate power and the second gate power. Then, the output power of the photovoltaic power at T1 and T2 is determined according to the photovoltaic power data, so as to obtain the first photovoltaic power and the second photovoltaic power.

[0098] Since the first and second threshold powers correspond to the mains power output at T1 and T2 respectively, and the first and second photovoltaic powers correspond to the photovoltaic power output at T1 and T2 respectively, the power output states of the mains power and photovoltaic power at T1 can be determined using the first threshold power and the first photovoltaic power. The power output states of the mains power and photovoltaic power respectively characterize the power supply situation of the mains power and photovoltaic power to the energy storage device. Therefore, the charging source of the energy storage device at T1 can be determined based on the first threshold power and the first photovoltaic power, thus obtaining the first power supply. Similarly, the charging source of the energy storage device at T2 can be determined based on the second threshold power and the second photovoltaic power, thus obtaining the second power supply.

[0099] Once the charging sources for the energy storage device are determined in T1 and T2, the charging source for the energy storage device during the scene transition period can be inferred without any doubt. In this case, the charging cost for the energy storage device during the scene transition period can be determined based on the charging source and the charging amount of the energy storage device during the scene transition period.

[0100] As a preferred embodiment, the above steps, including determining the charging source of the energy storage device at a first moment based on the first gate power and the first photovoltaic power to obtain the first power supply, include:

[0101] If the power at the first gate is less than zero and the power at the first photovoltaic gate is greater than zero, then the first power source is determined to be photovoltaic.

[0102] If the power of the first gate is greater than zero, and the power of the first photovoltaic power is less than zero or equal to zero, then the first power source is determined to be the mains power.

[0103] If the power at the first gate is greater than zero and the power at the first photovoltaic gate is greater than zero, then the first power source is determined to be photovoltaic power and mains power.

[0104] Accordingly, based on the second threshold power and the second photovoltaic power, the charging source for the energy storage device at the second moment is determined, resulting in a second power supply, including:

[0105] If the power at the second gate is less than zero and the power at the second photovoltaic gate is greater than zero, then the second power source is determined to be photovoltaic.

[0106] If the power of the second gate is greater than zero, and the power of the second photovoltaic power is less than zero or equal to zero, then the second power source is determined to be the mains power.

[0107] If the power at the second gate is greater than zero, and the power of the second photovoltaic power is greater than zero, then the second power source is determined to be photovoltaic power and mains power.

[0108] In practical applications, if we assume the output power of the mains power is Pgrid and the output power of the photovoltaic system is Ppv, then the output power of the mains power and photovoltaic system at time T1 can be represented by Pgrid1 and Ppv1, respectively, and the output power of the mains power and photovoltaic system at time T2 can be represented by Pgrid2 and Ppv2. In this case, if we use mathematical expressions to describe the charging source of the energy storage device, the following relationship will exist. Specifically:

[0109] If the first gate power Pgrid1 < 0, and the first photovoltaic power Ppv1 > 0, it means that the energy storage device's power source at T1 is photovoltaic, that is, the first power source is photovoltaic.

[0110] If the first gate power Pgrid1 > 0 and the first photovoltaic power Ppv1 ≤ 0, it means that the energy storage device is powered by the mains power at T1, that is, the first power source is the mains power.

[0111] If the first gate power Pgrid1 > 0 and the first photovoltaic power Ppv1 > 0, it means that the power source for the energy storage device at T1 is photovoltaic and mains power. That is, at T1, the energy storage device is powered by both photovoltaic and mains power. At this time, the first power source is photovoltaic and mains power.

[0112] If the second gate power Pgrid2 < 0, while the second photovoltaic power Ppv2 > 0, it means that the energy storage device's power source at T2 is photovoltaic, that is, the second power source is photovoltaic.

[0113] If the second gate power Pgrid2 > 0 and the second photovoltaic power Ppv2 ≤ 0, it means that the energy storage device is powered by the mains power at T2, that is, the second power source is the mains power.

[0114] If the second gate power Pgrid2 > 0 and the second photovoltaic power Ppv2 > 0, it means that the energy storage device is powered by photovoltaic and mains power in T2. ​​That is, in T2, the energy storage device is powered by both photovoltaic and mains power. At this time, the second power source is photovoltaic and mains power.

[0115] Furthermore, according to common knowledge about electricity, when an energy storage device is in a charging state, the output power of the mains power Pgrid < 0 and the output power of the photovoltaic power Ppv ≤ 0 will not occur. Therefore, in this application, the situation where the output power of the mains power Pgrid < 0 and the output power of the photovoltaic power Ppv ≤ 0 will not be specifically described.

[0116] Obviously, the technical solution provided in this embodiment can more accurately determine the charging source of the energy storage device at each moment.

[0117] As a preferred embodiment, the above step of determining the charging cost of the energy storage device during the scenario transition period based on the first power supply and the second power supply includes:

[0118] If the power supply source of the energy storage device during the scene transition period is determined to be either photovoltaic to photovoltaic and grid power, or photovoltaic and grid power to photovoltaic, based on the first power supply and the second power supply, then the moment when the output power of the grid power is zero is determined, and the threshold transition moment is obtained.

[0119] The charging amount of the energy storage device during the scene transition period is divided according to the threshold transition time. The charging amount of the energy storage device powered by both photovoltaic and grid power during the scene transition period is obtained, and the first collaborative charging amount is obtained.

[0120] The charging cost of the energy storage device during the scenario transition period is determined based on the threshold transition time, the charging amount of the energy storage device during the scenario transition period, the first collaborative charging amount, and the preset weight.

[0121] If the power supply source of the energy storage device during the scene transition period is determined to be either mains power or photovoltaic and mains power, or photovoltaic and mains power or mains power, based on the first and second power supplies, then the moment when the output power of the photovoltaic is zero is determined, and the photovoltaic transition moment is obtained.

[0122] The charging amount of the energy storage device during the scene transition period is divided according to the photovoltaic jump time. The charging amount of the energy storage device powered by both photovoltaic and grid power during the scene transition period is obtained, and the second collaborative charging amount is obtained.

[0123] The charging cost of the energy storage device during the scenario transition period is determined based on the photovoltaic jump time, the charging amount of the energy storage device during the scenario transition period, the second collaborative charging amount, and the preset weight.

[0124] In this embodiment, if the power source of the energy storage device during the scene transition period is determined to be from photovoltaic to photovoltaic and mains power based on the first power source and the second power source, it means that the output power of photovoltaic in T1 is Ppv1>0, the output power of photovoltaic in T2 is Ppv2>0, the output power of mains power in T1 is Pgrid1<0, and the output power of mains power in T2 is Pgrid2>0.

[0125] Since Pgrid1 < 0 and Pgrid2 > 0, we can find a moment when the mains power output is zero. We will name the moment when the mains power output is zero the threshold switching moment Ta. Therefore, the energy storage device is powered by photovoltaics during the period from T1 to Ta, and by both photovoltaics and mains power during the period from Ta to T2.

[0126] Assuming the energy storage device's charging amount during the scenario transition period is Es, the photovoltaic power supply unit price is Rp, and the grid power supply unit price is Rg, then the energy storage device's charging amount Es1 during the period from T1 to Ta can be calculated using Es1 = (Ta - T1) / (T2 - T1) × Es. Similarly, the energy storage device's charging amount Es2 between Ta and T2 can be calculated using Es2 = Es - Es1. In this case, Es2 is the first collaborative charging amount. Since the energy storage device is entirely powered by photovoltaic power from T1 to Ta, the charging cost Vs1 corresponding to the energy storage device from T1 to Ta can be calculated using Vs1 = Es1 × Rp.

[0127] In this embodiment, to more accurately estimate the charging cost of the energy storage device during the scenario transition period, a preset weight can be set based on the power supplied to the energy storage device by photovoltaic and mains power, and the preset weight can be used to determine the sharing ratio of photovoltaic and mains power when charging the energy storage device. In this case, the charging cost of the energy storage device from Ta to T2 can be determined based on the charging amount of the energy storage device from Ta to T2 and the preset weight.

[0128] Specifically, the charging cost Vs2 of the energy storage device from Ta to T2 can be calculated using the following formula:

[0129] Vs2 = Es2×k×Rp + Es2×(1-k)×Rg, that is:

[0130] Vs2= Es2×Ppv2 / (Ppv2+Pgrid2)×Rp+ Es2×Pgrid2 / (Ppv2+Pgrid2)×Rg;

[0131] In the formula, k represents the preset weight, k = Ppv2 / (Ppv2 + Pgrid2).

[0132] Similarly, if the power source of the energy storage device during the scene transition period is determined to be photovoltaic and grid power, and then switched to photovoltaic based on the first and second power sources, it means that the output power of photovoltaic in T1 is Ppv1 > 0, the output power of photovoltaic in T2 is Ppv2 > 0, the output power of grid power in T1 is Pgrid1 > 0, and the output power of grid power in T2 is Pgrid2 < 0.

[0133] Using the same method described above, we can determine the time when the mains power output is zero, which is the switching moment Ta. Then, the amount of charge the energy storage device receives during the time interval T1 to Ta is: Es1 = (Ta - T1) / (T2 - T1) × Es, and the amount of charge the energy storage device receives during the time interval Ta to T2 is: Es2 = Es - Es1. In this case, Es1 is the first cooperative charging amount.

[0134] In this scenario, the charging cost Vs1 for the energy storage device from T1 to Ta is:

[0135] Vs1 = Es1×k×Rp + Es1×(1-k)×Rg, that is:

[0136] Vs1= Es1×Ppv2 / (Ppv2+Pgrid2)×Rp+ Es1×Pgrid2 / (Ppv2+Pgrid2)×Rg;

[0137] The charging cost Vs2 for the energy storage device from Ta to T2 is: Vs2 = Es2 × Rp.

[0138] Once the charging cost Vs1 of the energy storage device from T1 to Ta and the charging cost Vs2 of the energy storage device from Ta to T2 are determined, the charging cost of the energy storage device during the scenario transition period (T1~T2) can be determined.

[0139] In this embodiment, if the power supply source of the energy storage device during the scene transition period is determined to be from mains power to photovoltaic and mains power based on the first power supply and the second power supply, it means that the output power of photovoltaic in T1 is Ppv1≤0, the output power of photovoltaic in T2 is Ppv2>0, the output power of mains power in T1 is Pgrid1>0, and the output power of mains power in T2 is Pgrid2>0.

[0140] Since Ppv1≤0 and Ppv2>0, we can find a moment when the photovoltaic output power is zero. We will call the moment when the photovoltaic output power is zero the photovoltaic transition moment Tb. During the time period from T1 to Tb, the energy storage device is powered by the mains electricity, while during the time period from Tb to T2, it is powered by both photovoltaic power and mains electricity.

[0141] Therefore, using the formula Es1 = (Tb - T1) / (T2 - T1) × Es, we can calculate the charging amount Es1 of the energy storage device during the time interval T1 to Tb. Using the formula Es2 = Es - Es1, we can calculate the charging amount Es2 of the energy storage device between Tb and T2. In this case, Es2 is the second collaborative charging amount. Since the energy storage device is powered by mains electricity during the time interval T1 to Tb, we can calculate the charging cost Vs1 of the energy storage device during the time interval T1 to Tb using the formula Vs1 = Es1 × Rg. The charging cost Vs2 of the energy storage device during the time interval Tc to T2 is:

[0142] Vs2 = Es2×k×Rp + Es1×(1-k)×Rg, that is:

[0143] Vs2= Es2×Ppv2 / (Ppv2+Pgrid2)×Rp+ Es2×Pgrid2 / (Ppv2+Pgrid2)×Rg.

[0144] Similarly, if the power source of the energy storage device during the scene transition period is determined to be from photovoltaic and grid power to grid power based on the first and second power sources, it means that the output power of photovoltaic in T1 is Ppv1 > 0, the output power of photovoltaic in T2 is Ppv2 ≤ 0, the output power of grid power in T1 is Pgrid1 > 0, and the output power of grid power in T2 is Pgrid2 > 0.

[0145] Since Ppv1 > 0 and Ppv2 ≤ 0, we can find the moment when the photovoltaic output power equals zero. We will call this moment the photovoltaic transition moment Tb. Therefore, during the time interval T1 to Tb, the energy storage device is powered by both mains power and photovoltaic power, while during the time interval Tb to T2, it is powered by both mains power and photovoltaic power.

[0146] At this point, the charging amount Es1 of the energy storage device during the time period from T1 to Tb can be calculated using Es1=(Tb-T1) / (T2-T1)×Es, and the charging amount Es2 of the energy storage device during the time period from Tb to T2 can be calculated using Es2=Es-Es1. In this case, Es1 is the second collaborative charging amount.

[0147] Since the energy storage device is powered by both mains electricity and photovoltaic power during the period from T1 to Tb, the charging cost Vs1 of the energy storage device during the period from T1 to Td can be calculated using the following formula:

[0148] Vs1 = Es1×k×Rp + Es1×(1-k)×Rg, that is:

[0149] Vs1= Es1×Ppv2 / (Ppv2+Pgrid2)×Rp+ Es1×Pgrid2 / (Ppv2+Pgrid2)×Rg.

[0150] Since the energy storage device is powered by the mains electricity during the period from Tb to T2, the charging cost Vs2 of the energy storage device during the period from Td to T2 can be calculated using the formula Vs2=Es2×Rg.

[0151] Once the charging cost Vs1 of the energy storage device from T1 to Tb and the charging cost Vs2 of the energy storage device from Tb to T2 are determined, the charging cost of the energy storage device during the scenario transition period (T1~T2) can be determined.

[0152] Additionally, it should be noted that theoretical analysis suggests that energy storage devices may encounter situations where grid power switches to photovoltaic power or vice versa during the scenario transition period. However, based on actual observation data, such situations are unlikely to occur in practical applications. Therefore, this application will not discuss the situations where grid power switches to photovoltaic power or vice versa.

[0153] Obviously, the charging cost of the energy storage device during the scene transition period can be determined by the technical solution provided in this embodiment.

[0154] As a preferred embodiment, the above steps, including determining the time corresponding to when the mains power output is zero to obtain the switching time, include:

[0155] The moment when the mains power output is zero is determined by the first threshold power, the second threshold power, and the scene transition time period, thus obtaining the threshold switching moment.

[0156] When determining the moment when the mains power output is zero, the moment can be determined based on the mains power distribution, combined with the first threshold power, the second threshold power, and the scene transition time period.

[0157] Specifically, assuming the photovoltaic output power at T1 is the first threshold power Ppv1, and the photovoltaic output power at T2 is the second threshold power Ppv2, and the time interval between the second time T2 and the first time T1 is T, then the threshold switching time Ta corresponding to when the mains power output power is zero is:

[0158] Ta = Ppv1 / ( Ppv1 + Ppv2) × T.

[0159] Of course, in practical applications, to more accurately calculate the moment when the mains power output is zero, a target time point can be used as a benchmark. Power output data for the previous and following days can then be obtained. A regression equation can then be established based on this power output data, and finally, the regression equation can be used to determine the moment when the mains power output is zero. The target time is the most recent moment in actual operation where a positive or negative jump in the mains power output can be detected.

[0160] Obviously, the technical solution provided in this embodiment can easily calculate the time when the mains power output power is zero.

[0161] Please see Figure 4 , Figure 4 This is a structural diagram of a charging cost estimation device for an energy storage device provided in an embodiment of the present invention. The device includes:

[0162] The status monitoring module 21 is used to monitor the operating status of the hybrid power supply system in real time; wherein, the hybrid power supply system is connected to energy storage devices, photovoltaics and mains power;

[0163] The power acquisition module 22 is used to acquire the power output data of the mains power and photovoltaic power during the preset time period when it is necessary to estimate the charging cost of the energy storage device within the preset time period, so as to obtain the gate power data and photovoltaic power data.

[0164] The scenario judgment module 23 is used to determine whether the charging source of the energy storage device has been switched within a preset time period based on the gate power data and photovoltaic power data;

[0165] The charging segmentation module 24 is used to segment out the time period containing the switching of the charging source of the energy storage device from the preset time period when the judgment result of the scenario judgment module is yes, to obtain the scenario transition time period, to perform fine-grained segmentation of the scenario transition time period, and to determine the charging cost of the energy storage device in the scenario transition time period based on the gate power data and photovoltaic power data, so as to obtain the target charging cost.

[0166] The cost estimation module 25 is used to determine the charging cost of the energy storage device within a preset time period based on the target charging cost, the scenario transition time period, the preset time period, the threshold power data, and the photovoltaic power data.

[0167] Preferably, the scene judgment module 23 includes:

[0168] The scenario judgment submodule is used to determine whether there is a moment when the output power of the gate and / or the photovoltaic power jumps to zero within a preset time period based on the gate power data and photovoltaic power data.

[0169] The scenario determination submodule is used to determine that the charging source of the energy storage device has been switched within a preset time period when the scenario determination unit determines that the result is yes.

[0170] Preferably, the charging switching module 24 includes:

[0171] The time segmentation module is used to segment a preset time period into time periods that include the transition of power data to zero and / or photovoltaic power data to zero, thus obtaining the scene transition time period.

[0172] The time selection submodule is used to determine the start and end times of the scene transition time period as the first time and the second time, respectively.

[0173] The power determination submodule is used to determine the output power of the mains power and photovoltaic power at the first moment based on the gate power data and photovoltaic power data, respectively, to obtain the first gate power and the first photovoltaic power, and to determine the output power of the mains power and photovoltaic power at the second moment, respectively, to obtain the second gate power and the second photovoltaic power.

[0174] The power supply determination submodule is used to determine the charging source of the energy storage device at the first moment based on the first threshold power and the first photovoltaic power, to obtain the first power supply, and to determine the charging source of the energy storage device at the second moment based on the second threshold power and the second photovoltaic power, to obtain the second power supply.

[0175] The cost determination submodule is used to determine the charging cost of the energy storage device during the scenario transition period based on the first power supply and the second power supply, and to obtain the target charging cost.

[0176] Preferably, the power supply determination submodule includes:

[0177] The first determination unit is used to determine that the first power source is photovoltaic if the first gate power is less than zero and the first photovoltaic power is greater than zero.

[0178] The second determination unit is used to determine that the first power source is mains power if the first gate power is greater than zero and the first photovoltaic power is less than zero or equal to zero.

[0179] The third determination unit is used to determine that the first power source is photovoltaic and mains power if the first gate power is greater than zero and the first photovoltaic power is greater than zero.

[0180] The first determining unit is used to determine that the second power source is photovoltaic if the power of the second gate is less than zero and the power of the second photovoltaic is greater than zero.

[0181] The second determining unit is used to determine that the second power source is mains power if the second gate power is greater than zero and the second photovoltaic power is less than zero or equal to zero.

[0182] The third determining unit is used to determine that the second power source is photovoltaic and mains power if the second gate power is greater than zero and the second photovoltaic power is greater than zero.

[0183] Preferably, the cost determination submodule includes:

[0184] The first switching unit is used to determine the moment when the output power of the mains power is zero if the power supply source of the energy storage device during the scene transition period is determined to be either photovoltaic or mains power, or photovoltaic and mains power, based on the first power supply and the second power supply. This results in the switching moment.

[0185] The first segmentation unit is used to segment the charging amount of the energy storage device during the scene transition period according to the threshold switching time, and obtain the charging amount of the energy storage device powered by both photovoltaic and grid power during the scene transition period, thus obtaining the first collaborative charging amount.

[0186] The first calculation unit is used to determine the charging cost of the energy storage device during the scene transition period based on the threshold transition time, the charging amount of the energy storage device during the scene transition period, the first collaborative charging amount, and the preset weight.

[0187] The second switching unit is used to determine the moment when the output power of the photovoltaic is zero if the power source of the energy storage device during the scene transition period is determined to be either mains power or photovoltaic and mains power, or photovoltaic and mains power or mains power, based on the first power supply and the second power supply.

[0188] The second segmentation unit is used to segment the charging amount of the energy storage device during the scene transition period according to the photovoltaic jump time, and obtain the charging amount of the energy storage device powered by both photovoltaic and grid power during the scene transition period, thus obtaining the second collaborative charging amount.

[0189] The second calculation unit is used to determine the charging cost of the energy storage device during the scene transition period based on the photovoltaic jump time, the charging amount of the energy storage device during the scene transition period, the second collaborative charging amount, and the preset weight.

[0190] Preferably, the first jump unit includes:

[0191] The time determination subunit is used to determine the time when the mains power output is zero based on the first gate power, the second gate power, and the scene transition time period, thus obtaining the gate switching time.

[0192] The charging cost estimation device for energy storage devices provided in this embodiment of the invention has the beneficial effects of the aforementioned charging cost estimation method for energy storage devices.

[0193] Please see Figure 5 , Figure 5 This is a structural diagram of an electronic device provided in an embodiment of the present invention. The electronic device includes:

[0194] Memory, used to store computer programs;

[0195] A processor is used to implement, when executing a computer program, a method for estimating the charging cost of an energy storage device as disclosed above.

[0196] The electronic device provided in this embodiment of the invention has the beneficial effects of the aforementioned method for estimating the charging cost of an energy storage device.

[0197] Accordingly, embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of a method for estimating the charging cost of an energy storage device as disclosed above.

[0198] The computer-readable storage medium provided in this embodiment of the invention has the beneficial effects of the aforementioned method for estimating the charging cost of an energy storage device.

[0199] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.

[0200] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0201] The above provides a detailed description of the charging cost estimation method, apparatus, equipment, and medium for energy storage devices provided by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A method for estimating the charging cost of energy storage equipment, It is characterized in that include: Real-time monitoring of the operating status of a hybrid power supply system; wherein the hybrid power supply system is connected to energy storage equipment, photovoltaic power and city power; When the charging cost of the energy storage device within a preset time period is to be estimated, the power output data of the mains and the photovoltaic power within the preset time period are obtained to obtain the gateway power data and the photovoltaic power data; Determining whether the charging source of the energy storage device within the preset time period is switched according to the gateway power data and the photovoltaic power data; If so, a time period including the switching of the charging source of the energy storage device is cut out from the preset time period to obtain a scene conversion time period, the scene conversion time period is finely divided, and the charging cost corresponding to the energy storage device in the scene conversion time period is determined according to the gateway power data and the photovoltaic power data to obtain a target charging cost; The charging cost of the energy storage device in the preset time period is determined according to the target charging cost, the scene conversion time period, the preset time period, the gateway power data and the photovoltaic power data.

2. A method for estimating charging cost of an energy storage device according to claim 1, It is characterized in that The determining whether the charging source of the energy storage device is switched within the preset time period according to the gateway power data and the photovoltaic power data includes: According to the threshold power data and the photovoltaic power data, it is determined whether there is a moment when the threshold and / or the photovoltaic output power jumps to zero within the preset time period; If so, it is determined that the charging source of the energy storage device within the preset time period is switched.

3. A charging cost estimation method for energy storage equipment according to claim 2, It is characterized in that The step of dividing the preset time period into a time period in which the charging source of the energy storage device is switched to obtain a scene conversion time period, dividing the scene conversion time period into fine-grained segments, and determining the charging cost of the energy storage device corresponding to the scene conversion time period according to the gateway power data and the photovoltaic power data to obtain a target charging cost includes: Cut out a time period including a time period when the gateway power data jumps to zero and / or the photovoltaic power data jumps to zero from the preset time period to obtain the scene conversion time period; Determine the start time and the end time of the scene switching time period as a first time and a second time respectively; Determine the output power of the mains and the photovoltaic at the first moment according to the threshold power data and the photovoltaic power data, respectively, to obtain a first threshold power and the first photovoltaic power, and determine the output power of the mains and the photovoltaic at the second moment, respectively, to obtain a second threshold power and a second photovoltaic power; Determine the charging source of the energy storage device at the first moment according to the first threshold power and the first photovoltaic power to obtain a first power supply, and determine the charging source of the energy storage device at the second moment according to the second threshold power and the second photovoltaic power to obtain a second power supply; The charging cost of the energy storage device corresponding to the scene conversion time period is determined according to the first power supply and the second power supply to obtain the target charging cost.

4. A method for estimating charging cost of an energy storage device according to claim 3, It is characterized in that The step of determining the charging source of the energy storage device at the first moment according to the first threshold power and the first photovoltaic power to obtain a first power supply includes: If the first threshold power is less than zero and the first photovoltaic power is greater than zero, it is determined that the first power supply source is the photovoltaic power source; If the first threshold power is greater than zero, and the first photovoltaic power is less than zero or equal to zero, it is determined that the first power supply source is the city power; If the first threshold power is greater than zero and the first photovoltaic power is greater than zero, it is determined that the first power supply source is the photovoltaic power source and the mains power source; Correspondingly, determining the charging source of the energy storage device at the second moment according to the second threshold power and the second photovoltaic power to obtain the second power supply includes: If the second threshold power is less than zero and the second photovoltaic power is greater than zero, it is determined that the second power supply source is the photovoltaic power source; If the second threshold power is greater than zero, and the second photovoltaic power is less than zero or equal to zero, it is determined that the second power supply source is the city power; If the second threshold power is greater than zero and the second photovoltaic power is greater than zero, it is determined that the second power supply source is the photovoltaic power and the mains power.

5. A method for estimating charging cost of an energy storage device according to claim 4, It is characterized in that The determining, according to the first power supply and the second power supply, the charging cost of the energy storage device corresponding to the scene conversion time period includes: If it is determined according to the first power supply source and the second power supply source that the power supply source of the energy storage device in the scene conversion time period changes from the photovoltaic power supply to the photovoltaic power supply and the mains power supply, or changes from the photovoltaic power supply and the mains power supply to the photovoltaic power supply, then the time corresponding to when the output power of the mains power supply is zero is determined to obtain the threshold jump time; Dividing the charge amount of the energy storage device in the scene conversion time period according to the threshold jump time, obtaining the charge amount of the energy storage device supplied by the photovoltaic power and the mains power in the scene conversion time period, and obtaining a first coordinated charge amount; Determine the charging cost of the energy storage device in the scene conversion time period according to the threshold jump time, the charging amount of the energy storage device in the scene conversion time period, the first cooperative charging amount and a preset weight; If it is determined according to the first power supply source and the second power supply source that the power supply source of the energy storage device in the scene conversion time period changes from the mains power supply to the photovoltaic power supply and the mains power supply, or changes from the photovoltaic power supply and the mains power supply to the mains power supply, then the time corresponding to when the output power of the photovoltaic power supply is zero is determined to obtain the photovoltaic power supply change time; Dividing the charge amount of the energy storage device in the scene conversion time period according to the photovoltaic jump moment, obtaining the charge amount of the energy storage device supplied by the photovoltaic power and the mains power in the scene conversion time period, and obtaining a second coordinated charge amount; The charging cost of the energy storage device in the scene conversion time period is determined according to the photovoltaic jump time, the charging amount of the energy storage device in the scene conversion time period, the second cooperative charging amount and the preset weight.

6. A method for estimating charging cost of an energy storage device according to claim 5, It is characterized in that The preset weight is set according to the power supplied to the energy storage device by the photovoltaic power plant and the commercial power plant.

7. A method for estimating charging cost of an energy storage device according to claim 5, It is characterized in that The step of determining the time corresponding to when the output power of the mains electricity is zero to obtain the threshold transition time includes: The time corresponding to when the output power of the mains is zero is determined according to the first threshold power, the second threshold power and the scene conversion time period, so as to obtain the threshold jump time.

8. A charging cost estimation device for energy storage equipment, It is characterized in that include: A status monitoring module is used to monitor the operating status of a hybrid power supply system in real time; wherein the hybrid power supply system is connected to energy storage equipment, photovoltaic power and city power; A power acquisition module, used to acquire the power output data of the mains and the photovoltaic in the preset time period to obtain the gateway power data and the photovoltaic power data when estimating the charging cost of the energy storage device in the preset time period; A scene determination module, used for determining whether the charging source of the energy storage device is switched within the preset time period according to the gateway power data and the photovoltaic power data; A charging segmentation module, for segmenting a time period including a time period in which the charging source of the energy storage device is switched from the preset time period when the judgment result of the scene judgment module is yes, obtaining a scene conversion time period, performing fine-grained segmentation on the scene conversion time period, and determining the charging cost corresponding to the energy storage device in the scene conversion time period according to the gateway power data and the photovoltaic power data, to obtain a target charging cost; A cost estimation module is used to determine the charging cost of the energy storage device in the preset time period according to the target charging cost, the scene conversion time period, the preset time period, the gateway power data and the photovoltaic power data.

9. An electronic device, It is characterized in that include: Memory for storing computer programs; A processor, configured to implement the steps of a method for estimating charging cost of an energy storage device as described in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for estimating the charging cost of an energy storage device according to any one of claims 1 to 7 are implemented.