Energy management method based on light-storage integration
By optimizing the data loading strategy in the energy management system of the integrated photovoltaic and energy storage power station, the problems of data loading delay and memory resource waste were solved, the inspection efficiency and dynamic web page loading rate were improved, and the rational use of memory resources was achieved.
Patent Information
- Application Number
- CN202511156387.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-19
- Publication Date
- 2025-09-30
- Estimated Expiration
- 2045-08-19
AI Technical Summary
In the energy management system of existing integrated photovoltaic and energy storage power stations, data loading delays and memory resource waste lead to low inspection efficiency and poor system performance.
By giving priority to extracting and loading data from the memory during the manager's task review process, and extracting it from the data repository if there is no data in the memory, and setting an expiration time after loading, memory resources can be used rationally and the loading rate of dynamic web pages can be optimized.
It improves the inspection efficiency and experience of managers, optimizes the loading rate of dynamic web pages, rationally utilizes memory resources, and reduces data reading delays.
Smart Images

Figure CN120723993A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of energy management technology, and in particular to an energy management method based on photovoltaic and energy storage integration. Background Art
[0002] With the rapid development of the new energy industry, integrated photovoltaic and energy storage power stations, as an important vehicle for achieving efficient utilization of renewable energy, are crucial for stable operation and energy optimization management. Currently, managers need to perform periodic inspections. During the inspection process, dynamic web pages have a fixed layout order, so they need to click on different dynamic web pages in sequence to view the operation status of the photovoltaic energy storage power station. The energy management system displays data to managers through dynamic web pages. The content includes directly displayed energy parameter monitoring values (such as photovoltaic panel power generation, energy storage battery charge and discharge current, etc.) and indirect data obtained through calculations (such as predicted power generation and system energy efficiency ratio). To improve data loading efficiency, dynamic web pages usually temporarily store data retrieved from the database for the first time in memory for subsequent rapid access. In the prior art, to avoid excessive memory usage, fixed expiration times are often set for different energy parameter data. However, if this method sets the expiration time too short, some data that still needs to be frequently called will be deleted from the memory too early. Since data is reused between different dynamic web pages, the relevant data still needs to be retrieved from the database when the subsequent web page is loaded, which increases data reading delays and affects inspection efficiency. If the expiration time is set too long, it will cause a waste of memory resources and affect the overall performance of the system. In order to solve the above problems, the present invention proposes a solution. Summary of the Invention
[0003] The purpose of the present invention is to provide an energy management method based on photovoltaic and energy storage integration in order to solve the problems raised in the above background technology.
[0004] The present invention provides an energy management method based on photovoltaic and energy storage integration, comprising the following steps: Step 1: Collect energy data from the target data source in real time and transmit it to the data repository. The energy data includes monitoring values of several energy parameters. Step 2: After receiving the energy data from the target data source transmitted in real time, the data repository stores the data. The data repository includes several data storage tables, each of which stores real-time monitoring values of several energy parameters. Step 3: In the current inspection cycle, the manager performs an inspection task on the target data source. During the inspection process, the manager clicks on the monitoring items corresponding to all dynamic web pages of the target data source in the order specified in the inspection task. Each time a monitoring item is clicked, the energy display unit obtains the front-end file and back-end file of the dynamic page corresponding to the monitoring item and loads them. After the loading is completed, a visual web page interface is presented to the manager in real time. After the inspection task is completed, the inspection monitoring data of the inspection task is obtained and transmitted to the inspection analysis unit for storage. Step 4: After storing the inspection monitoring data of a fixed number of inspection tasks, the inspection analysis unit analyzes the data to determine the expiration time and serial number of several monitoring items based on several energy parameters and transmits them to the memory management unit for update and storage.
[0005] Furthermore, the energy display unit includes front-end files and back-end files of the target data source for displaying a plurality of dynamic web pages, where one dynamic web page corresponds to one monitoring item; A dynamic page includes several native objects and derived objects. The native objects are objects that can be obtained by monitoring the value of a single energy parameter, while the derived objects are objects that are generated by calculating or associating the monitoring values of at least two energy parameters. For any derived object, several monitoring values of any energy parameter of the derived object are generated by calculation and are continuous at the collection time.
[0006] Furthermore, each native object and derived object included in a dynamic web page is represented as a JavaScript function in the dynamic web page.
[0007] Furthermore, the JavaScript function includes specified pre-acquired loading data information and a function body for executing display logic, wherein the loading data information includes several energy parameters and their collection time information, and the display logic of the function body is configured as follows: when processing native objects, the monitoring value of a single energy parameter obtained is directly visually rendered; when processing derived objects, the monitoring values of at least two energy parameters are correlated and calculated according to preset operation rules, and the calculation results are visually displayed, wherein the collection time information includes the collection start time, interval duration and collection end time.
[0008] Furthermore, in step three, when the front-end file and the back-end file of the dynamic page corresponding to any monitoring item are loaded, all JavaScript functions in the dynamic page will be triggered. For any triggered JavaScript function, the loading data corresponding to the loading data information will be extracted according to the preset extraction rules based on the loading data information contained in the JavaScript function.
[0009] Furthermore, the extraction rules for extracting the loaded data corresponding to the loaded data information are as follows: First, a search is performed to determine whether all pre-acquired monitoring values of all energy parameters are stored in the memory. If all pre-acquired monitoring values of all energy parameters are found to be stored in the memory, the stored monitoring values of all pre-acquired energy parameters are first extracted from the memory and used as the loaded data corresponding to the loaded data information, and the function body within the JavaScript function executes display logic to display the loaded data to the administrator. If the retrieval memory only stores a number of monitoring values of a number of pre-acquired energy parameters, and does not store all monitoring values of all acquired energy parameters, then the retrieved number of monitoring values of the pre-acquired energy parameters are extracted from the memory, and simultaneously all monitoring values of all energy parameters that are not retrieved in the memory among all monitoring values of all pre-acquired energy parameters are extracted from the data storage library, and the data extracted from the memory and the data storage library are respectively used as the loaded data corresponding to the loaded data information, and the function body in the JavaScript function executes the display logic to display to the management personnel. During the display process, all monitoring values of all energy parameters extracted from the data storage library are loaded into the memory for storage; If all the monitoring values of all the pre-retrieved energy parameters are not stored in the retrieved memory, all the monitoring values of all the pre-retrieved energy parameters will be extracted from the data storage library as the loading data corresponding to the loading data information, and the function body in the JavaScript function will execute the display logic to display it to the management personnel. During the display process, all the monitoring values of all the energy parameters extracted from the data storage library will be loaded into the memory for storage. During the loading process, the corresponding expiration time will be set according to the preset key value of the corresponding energy parameter based on the monitoring values of all the energy parameters loaded. Once the expiration time is reached, all the corresponding monitoring values will be automatically deleted from the memory.
[0010] Furthermore, in step 4, the steps for analyzing and determining the expiration time and serial number of several monitoring items based on several energy parameters are as follows: S11: Get all inspection monitoring data stored in the inspection analysis unit, according to the order in which each inspection monitoring data is stored in the inspection analysis unit, from first to last, all inspection monitoring data are marked as A1, A2, ..., Aa, a ≥ 1; S12: Mark the monitoring items corresponding to all dynamic web pages of the target data source as B1, B2, ..., Bb in the order specified in the inspection task, where b≥1. When the administrator performs the inspection task, he clicks the monitoring items B1, B2, ..., Bb in order; S13: Mark the energy parameters corresponding to all monitoring values in the energy data of the target data source as C1, C2, ..., Cc, where c ≥ 1, and sequentially obtain the loading data D1, D2, ..., Db of the dynamic web pages corresponding to the monitoring items B1, B2, ..., Bb from the inspection monitoring data A1; S14: Obtain the extraction times corresponding to all monitoring values of the energy parameter C1 from the loaded data D1 and perform deduplication. All the extraction times remaining after deduplication are marked as E1, E2, ..., Ee in the order of extraction, where e ≥ 1, and construct an ordered set G1 of the monitoring item B1 based on them. In the ordered set, the extraction times are increasingly distant from the current time from left to right. Similarly, the ordered sets G2, G3, ..., Gb of the monitoring items B2, B3, ..., Bb are constructed in sequence. S15: Generate all special discrete sets of monitoring items B2, B3, ..., Bb relative to monitoring item B1 according to the preset first generation rule. The first generation rule is as follows: S151: Intersect the ordered sets G1 and G2 to obtain several common sets and several discrete sets of the monitoring item B2 relative to the monitoring item B1; S152: According to S151, the ordered set G1 is intersected with G3, G4, ..., Gb in turn to obtain several common sets and several discrete sets of monitoring items B3, B4, ..., Bb relative to monitoring item B1; S153: For any common set of monitoring item B2 relative to monitoring item B1, intersect the common set with all discrete sets of monitoring items B3, B4, ..., Bb relative to monitoring item B1 to obtain several specific discrete sets of monitoring item B2 relative to monitoring item B1; A special discrete set of monitoring item B2 relative to monitoring item B1 obtained by the intersection of any common set of monitoring item B2 relative to monitoring item B1 and any discrete set of monitoring items B3, B4, ..., Bb relative to monitoring item B1; S154; according to S153, the monitoring items B3, B4, ..., Bb are respectively obtained as a discrete set of several special monitoring items B1, S16: Calculate and obtain the interruption cache durations J1, J2, …, Jj of the monitored item B1 based on the energy parameter C1 in the inspection monitoring data A1 according to a preset calculation rule; S17: Calculate and obtain in sequence the interruption cache durations of the monitored item B1 based on the energy parameter C1 in the inspection monitoring data A2, A3, …, Aa according to S16, and relabel all the interruption cache durations of the monitored item B1 based on the energy parameter C1 in the inspection monitoring data A1, A2, …, Aa as K1, K2, …, Kk, where k ≥ 1; S18: Generate a number of expiration durations and serial numbers of the monitored item B1 based on the energy parameter C1 according to a preset second generation rule. The second generation rule is as follows: S181: Traverse the interruption cache durations K2, K3, …, Kk according to the interruption cache duration K1, and obtain the total number M1 of all the interruption cache durations whose difference from the interruption cache duration K1 is less than or equal to P1. If M1 / (a - 1) < P2, no processing is performed; If M1 / (a - 1) ≥ P2, first calculate and obtain the average value of the sum of all the interruption cache durations whose difference from the interruption cache duration K1 is less than or equal to P1 by using the sum - average formula, and use the average value as an expiration duration of the monitored item B1 based on the energy parameter C1. P1 is a preset screening difference threshold, and P2 is a preset proportion - weight screening threshold. Then obtain the marked subscripts of each interruption cache duration whose difference from the interruption cache duration K1 is less than or equal to P1, and select the marked subscript with the largest quantity as the serial number of the expiration duration; S182: Traverse the interruption cache durations K2, K3, …, Kk in sequence according to the interruption cache durations K2, K3, …, Kk to obtain a number of expiration durations and serial numbers of the monitored item B1 based on the energy parameter C1; S19: Generate in sequence a number of expiration durations and serial numbers of the monitored items B2, B3, …, Bb based on the energy parameter C1 according to S12 to S18, and obtain all the expiration durations and serial numbers of the monitored items B1, B2, …, Bb based on the energy parameter C1; S110: Generate in sequence all the expiration durations and serial numbers of the monitored items B¹, B², …, Bb based on the energy parameters C2, C3, …, Cc according to S11 to S19, and transmit them to the memory management unit for updated storage.
[0011] Compared with the prior art, the following beneficial effects are achieved: The present invention periodically obtains the front-end file and the back-end file of the dynamic page corresponding to the monitoring item clicked by the manager in sequence during the manager's inspection task on the target data source, and loads them. During the loading process, all JavaScript functions in the dynamic page are triggered. During the triggering process, the corresponding loading data is first extracted from the memory. If there is no corresponding loading data in the memory, the corresponding loading data will be extracted from the data storage library. After the loading is completed, a visual web page interface is presented to the manager in real time. By using this method, the rate of extracting loaded data is increased, and the experience and efficiency of the manager in performing the inspection task are improved. When the front-end file and the back-end file of any dynamic page are loaded, if the corresponding record data is not in the memory when the corresponding record data is extracted, the loaded data extracted from the data storage is stored in the memory and a corresponding expiration time is set. Once the expiration time is reached, the corresponding data is deleted. In this way, the storage resources of the memory are more reasonably utilized. The present invention determines the expiration duration and serial number of several monitoring items based on several energy parameters after analyzing the inspection monitoring data of a fixed number of inspection tasks. In this way, some loading data that still needs to be called frequently is retained in the memory as much as possible, so that more loading data is extracted from the memory during the dynamic web page loading process, further optimizing the loading rate of the dynamic web page. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 Flow chart of the method of the present invention. DETAILED DESCRIPTION
[0013] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0014] See also Figure 1 , the present application provides an energy management method based on photovoltaic and storage integration, the method is performed by an energy management system based on photovoltaic and storage integration, the system includes an energy data acquisition module, a data storage library and an energy display management module; The energy data acquisition module is used to collect energy data from a target data source in real time and transmit it to a data repository, wherein the target data source is a photovoltaic energy storage power station. Energy data refers to various types of data covering the entire life cycle of energy (production, transmission, conversion, consumption, storage, etc.). The energy data includes monitoring values of several energy parameters. In this application, energy parameters include solar radiation, photovoltaic panel surface temperature, ambient temperature and humidity, DC output voltage, current, power generation power, component conversion efficiency, terminal voltage of the energy storage battery, charge and discharge current, state of charge, health status, remaining capacity, battery pack temperature, DC input voltage / current, AC output voltage / current, conversion efficiency, harmonic content, power factor, response time, grid voltage, frequency, grid-connected active / reactive power, line loss, transformer temperature, transformation ratio, real-time power consumption, cumulative power consumption, load curve, overvoltage / overcurrent threshold, battery temperature alarm threshold, insulation resistance, and circuit breaker operation time; The data repository is used to store real-time energy data of a target data source. The data repository includes several data storage tables, and one data storage table stores real-time monitoring values of several energy parameters. The energy display management module is used to periodically display energy data of the target data source to management personnel and manage memory during the display process. The energy display management module includes an energy display unit and a memory management unit. The energy display unit contains front-end files and back-end files of the target data source for displaying a number of dynamic web pages. The front-end files include but are not limited to HTML files, CSS files, and JavaScript files. The back-end files include but are not limited to PHP files, .py files, .jsp files, .aspx files, .json files, and database-related files. Each dynamic web page corresponds to a monitoring item, which is an object that can be independently operated, monitored and managed in the energy management system. Monitoring items include but are not limited to basic configuration, energy monitoring, data monitoring, energy efficiency analysis, energy saving benefits, planned indicators and automatic meter reading; A dynamic page includes several native objects and derived objects. The native objects are objects that can be obtained by monitoring the value of a single energy parameter, while the derived objects are objects that are generated by calculating or associating the monitoring values of at least two energy parameters. It should be noted here that for any derived object, several monitoring values of any energy parameter of the derived object are generated by calculation, which are continuous at the collection time, that is, they are traced back from a certain moment to the past; For example, if the native object is the temperature of a photovoltaic module, then only the monitored value of the photovoltaic module temperature needs to be displayed. If the derived object is the power factor of the device, then the current, voltage, and phase difference between the voltage and current of the device need to be calculated. For example, if the derived object is the comprehensive energy consumption of the area in the past two hours, then the real-time electricity, water, and compressed air consumption of the area in the past two hours is required. Each native object and derived object contained in a dynamic page is represented as a JavaScript function in the dynamic web page, and all JavaScript functions therein are triggered when the dynamic web page is loaded; The JavaScript function at least includes specified pre-acquired loading data information and a function body for executing display logic. The loading data information includes several energy parameters and their collection time information. The display logic of the function body is configured to: when processing native objects, directly visually render the acquired monitoring value of a single energy parameter; when processing derived objects, perform correlation calculations on the monitoring values of at least two energy parameters according to preset operation rules, and visually display the calculation results, wherein the collection time information includes the collection start time, interval duration, and collection end time; Collection start time: refers to the actual start time of collection of the monitoring values of the pre-acquired monitoring parameters, which is used to define the starting point of the time range for data acquisition; Interval: indicates the time interval between two consecutive data acquisitions. For example, if it is set to 10 minutes, data acquisition will be performed every 10 minutes. End of collection time: refers to the actual end point of collection of the monitoring values of the pre-acquired monitoring parameters, which is used to define the end point of the time range for data acquisition. After this time, the monitoring values of the corresponding monitoring parameters will no longer be actively collected; The administrator periodically performs inspection tasks on the target data source to inspect the operation status of the target data source. The inspection task is used to specify the order in which the administrator clicks on the monitoring items corresponding to all dynamic web pages of the target data source, so as to fully understand the operation status of the target data source; It should be noted here that in the web page architecture, different monitoring items will be arranged in a specific order according to the layout logic of the web page; At every inspection cycle, the manager performs an inspection task on the target data source. During the inspection process, the manager clicks on the monitoring items corresponding to all dynamic web pages of the target data source in sequence according to the order specified in the inspection task. Each time a monitoring item is clicked, the energy display unit obtains the front-end file and back-end file of the dynamic page corresponding to the monitoring item and loads them. After the loading is completed, a visual web page interface is presented to the manager in real time; During the loading process, all JavaScript functions in the dynamic page will be triggered. For any triggered JavaScript function, the loading data corresponding to the loading data information contained in the JavaScript function will be extracted according to the preset extraction rules. The extraction rules are as follows: First, a search is performed to determine whether all pre-acquired monitoring values of all energy parameters are stored in the memory. If all pre-acquired monitoring values of all energy parameters are found to be stored in the memory, the stored monitoring values of all pre-acquired energy parameters are first extracted from the memory and used as the loaded data corresponding to the loaded data information, and the function body within the JavaScript function executes display logic to display the loaded data to the administrator. If the retrieval memory only stores a number of monitoring values of a number of pre-acquired energy parameters, and does not store all monitoring values of all acquired energy parameters, then the retrieved pre-acquired monitoring values of the number of energy parameters will be extracted from the memory, and simultaneously all monitoring values of all energy parameters that are not retrieved in the memory among all monitoring values of all pre-acquired energy parameters will be extracted from the data storage library, and the data extracted from the memory and the data storage library will be used as the loaded data corresponding to the loaded data information, and the function body in the JavaScript function will execute the display logic to display to the management personnel. During the display process, all monitoring values of all energy parameters extracted from the data storage library will be loaded into the memory for storage. During the loading process, the corresponding expiration time will be set according to the preset key value of the corresponding energy parameter according to the monitoring values of all energy parameters loaded. Once the expiration time is reached, all corresponding monitoring values will be automatically deleted from the memory; If all the monitoring values of all the pre-retrieved energy parameters are not stored in the retrieval memory, all the monitoring values of all the pre-retrieved energy parameters are extracted from the data storage library as the loaded data corresponding to the loaded data information, and the function body in the JavaScript function executes the display logic to display to the management personnel. During the display process, all the monitoring values of all the energy parameters extracted from the data storage library are loaded into the memory for storage. During the loading process, the corresponding expiration time is set according to the preset key value of the corresponding energy parameter according to the monitoring values of all the energy parameters loaded. Once the expiration time is reached, all the corresponding monitoring values will be automatically deleted from the memory; The memory management unit stores a number of expiration times and serial numbers of all monitoring items in the target data source based on a number of energy parameters. Once the expiration time is reached, the corresponding data will be automatically deleted from the memory, and the serial number is used as the basis for determining the order; The initial expiration time and serial number of all energy parameters in the target data source based on several monitoring items are preset by the management personnel; The life cycle is defined as: from the moment a monitoring item in a dynamic web page is clicked to the moment the dynamic web page is closed, where the "closed" state of the dynamic web page can be triggered by the next monitoring item being clicked; The inspection analysis unit is used to analyze the inspection monitoring data of a fixed number of inspection tasks after storing them. The analysis steps are as follows: S11: Get all inspection monitoring data stored in the inspection analysis unit, according to the order in which each inspection monitoring data is stored in the inspection analysis unit, from first to last, all inspection monitoring data are marked as A1, A2, ..., Aa, a ≥ 1; S12: Mark the monitoring items corresponding to all dynamic web pages of the target data source as B1, B2, ..., Bb in the order specified in the inspection task, where b≥1. When the administrator performs the inspection task, he clicks the monitoring items B1, B2, ..., Bb in order; S13: Mark the energy parameters corresponding to all monitoring values in the energy data of the target data source as C1, C2, ..., Cc, where c ≥ 1, and sequentially obtain the loading data D1, D2, ..., Db of the dynamic web pages corresponding to the monitoring items B1, B2, ..., Bb from the inspection monitoring data A1; S14: Obtain the extraction times corresponding to all monitoring values of the energy parameter C1 from the loaded data D1 and perform deduplication. All the extraction times remaining after deduplication are marked as E1, E2, ..., Ee in the order of extraction, where e≥1. An ordered set G1 of the monitoring item B1 is constructed based on the extraction times E1, E2, ..., Ee. At this time, F1={E1, E2, ..., Ee}. In the ordered set, the extraction times are increasingly distant from the current time from left to right. Similarly, ordered sets G2, G3, ..., Gb of the monitoring items B2, B3, ..., Bb are constructed in sequence. S15: Generate all special discrete sets of monitoring items B2, B3, ..., Bb relative to monitoring item B1 according to the preset first generation rule. The first generation rule is as follows: S151: Intersect the ordered sets G1 and G2 to obtain several common sets and several discrete sets of the monitoring item B2 relative to the monitoring item B1; For any common set, the common set contains several extraction times with consecutive marked subscripts, and any extraction time contained in the common set exists in both ordered sets G1 and G2. The extraction times in the common set are arranged from left to right, and the further to the left, the farther from the current time. For any discrete set, the common set contains several extraction moments with consecutive marked subscripts, and any extraction moment contained in the discrete set only exists in the ordered set G1 or G2. The extraction moments in the discrete set are arranged from left to right, and the further to the left, the farther from the current moment. S152: According to S151, the ordered set G1 is intersected with G3, G4, ..., Gb in turn to obtain several common sets and several discrete sets of monitoring items B3, B4, ..., Bb relative to monitoring item B1; S153: For any common set of monitoring item B2 relative to monitoring item B1, intersect the common set with all discrete sets of monitoring items B3, B4, ..., Bb relative to monitoring item B1 to obtain several specific discrete sets of monitoring item B2 relative to monitoring item B1; A special discrete set of monitoring item B2 relative to monitoring item B1 obtained by the intersection of any common set of monitoring item B2 relative to monitoring item B1 and any discrete set of monitoring items B3, B4, ..., Bb relative to monitoring item B1, wherein the special discrete set contains several extraction moments with consecutive marked subscripts, and any extraction moment contained in the special discrete set only exists in the common set or the discrete set, and the extraction moments in the special discrete set are arranged from left to right, and the closer to the left the arrangement is, the farther away from the current moment; S154; according to S153, monitoring items B3, B4, ..., Bb relative to all special discrete sets of monitoring items B1; S16: Calculate and obtain interruption cache durations J1, J2, ..., Jj of monitoring item B1 in inspection monitoring data A1 based on energy parameter C1 according to a preset calculation rule. The calculation rule is as follows: S161: Extract the extraction moments arranged at the leftmost and rightmost ends from all special discrete sets of monitoring items B2, B3, ..., Bb relative to monitoring item B1, and then re-label all the obtained extraction moments as I1, I2, ..., Ii in order from far to near from the current moment, where i=2*g, and g is the total number of special discrete sets of monitoring items B2, B3, ..., Bb relative to monitoring item B1; S162: Based on the marking subscripts of the extraction time I1 at the extraction time E1, E2, ..., Ee before the extraction time I1 is re-marked, obtain all the extraction time instants whose marking subscripts are before the extraction time I1 from the extraction time instants E1, E2, ..., Ee; Extract two extraction times that are the farthest and the nearest from the current time from all the obtained extraction times and calculate their difference. Take the difference as an interruption cache duration J1 of monitoring item B1 in inspection monitoring data A1 based on energy parameter C1. Take all the extraction times with marked subscripts before extraction time I1 obtained from extraction times E1, E2,..., Ee as the cache flag times of the interruption cache duration J1; S163: Based on the marked subscripts of extraction time I2 before being re-marked among extraction times E1, E2,..., Ee, obtain all the cache flag times that do not belong to the interruption cache duration J1 and have marked subscripts before extraction time I1 from extraction times E1, E2,..., Ee; Extract two cache flag times that are the farthest and the nearest from the current time from all the obtained cache flag times and calculate their difference. Take the difference as an interruption cache duration J2 of monitoring item B1 in inspection monitoring data A1 based on energy parameter C1. Take all the extraction times with marked subscripts before extraction time I2 obtained from extraction times E1, E2,..., Ee as the cache flag times of the interruption cache duration J2; S164: Calculate and obtain the interruption cache durations J3, J4,..., Jj of monitoring item B1 in inspection monitoring data A1 based on energy parameter C1 in sequence according to S162 to S163, where 1 ≤ j ≤ i + 1; S17: Calculate and obtain the interruption cache durations of monitoring item B1 in inspection monitoring data A2, A3,..., Aa based on energy parameter C1 in sequence according to S16. Re-mark all the interruption cache durations of monitoring item B1 in inspection monitoring data A1, A2,..., Aa based on energy parameter C1 as K1, K2,..., Kk, where k ≥ 1; S18: Generate several expiration durations and serial numbers of monitoring item B1 based on energy parameter C1 according to a preset second generation rule. The second generation rule is as follows: S181: Traverse the interruption cache durations K2, K3,..., Kk according to the interruption cache duration K1, and obtain the total number M1 of all the interruption cache durations whose differences from the interruption cache duration K1 are less than or equal to P1. If M1 / (a - 1) < P2, do nothing; If M1 / (a - 1) ≥ P2, first calculate and obtain the average value of the sum of all the interruption cache durations whose differences from the interruption cache duration K1 are less than or equal to P1 using the sum and average formula. Take the average value as an expiration duration of monitoring item B1 based on energy parameter C1. P1 is a preset screening difference threshold, and P2 is a preset proportion weight screening threshold; Then, the mark subscript of each interruption cache duration whose difference with the interruption cache duration K1 is less than or equal to P1 is obtained, and the mark subscript with the largest number is selected as the sequence number of the expiration duration; S182: Traverse the interruption cache durations K2, K3, ..., Kk in sequence to obtain several expiration durations and sequence numbers of the monitoring item B1 based on the energy parameter C1; S19: Generate several expiration times and serial numbers of monitoring items B2, B3, ..., Bb based on the energy parameter C1 in sequence according to S12 to S18, and transmit all the expiration times and serial numbers of monitoring items B1, B2, ..., Bb based on the energy parameter C1 to the memory management unit for update and storage. The update and storage steps are as follows: After receiving the expiration time and serial number of the transmitted monitoring items B1, B2, ..., Bb based on the energy parameter C1, the memory management unit first deletes the expiration time and serial number of the monitoring items B1, B2, ..., Bb currently stored in the memory management unit based on the energy parameter C1, and then stores the received monitoring items B1, B2, ..., Bb based on the expiration time and serial number of the energy parameter C1; S110; according to S11 to S19, all expiration times and serial numbers of monitoring items B1, B2, ..., Bb based on energy parameters C2, C3, ..., Cc are generated and transmitted to the memory management unit for update and storage.
[0015] Some of the data in the above formulas are dimensionless and numerically calculated. Meanwhile, the contents not described in detail in this specification belong to the prior art known to those skilled in the art.
[0016] The above embodiments are only used to illustrate the technical method of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical method of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical method of the present invention.
Claims
1. An energy management method based on integrated photovoltaic and energy storage, characterized in that: The following steps are involved: Step 1: Collect energy data from the target data source in real time and transmit it to the data repository. The energy data includes monitoring values of several energy parameters. Step 2: After receiving the energy data from the target data source transmitted in real time, the data repository stores the data. The data repository includes several data storage tables, each of which stores real-time monitoring values of several energy parameters. Step 3: In the current inspection cycle, the manager performs an inspection task on the target data source. During the inspection process, the manager clicks on the monitoring items corresponding to all dynamic web pages of the target data source in the order specified in the inspection task. Each time a monitoring item is clicked, the energy display unit obtains the front-end file and back-end file of the dynamic page corresponding to the monitoring item and loads them. After the loading is completed, a visual web page interface is presented to the manager in real time. After the inspection task is completed, the inspection monitoring data of the inspection task is obtained and transmitted to the inspection analysis unit for storage. Step 4: After storing the inspection monitoring data of a fixed number of inspection tasks, the inspection analysis unit analyzes the data to determine the expiration time and serial number of several monitoring items based on several energy parameters and transmits them to the memory management unit for update and storage.
2. The energy management method based on photovoltaic and energy storage integration according to claim 1 is characterized in that: The energy display unit includes front-end files and back-end files for displaying a plurality of dynamic web pages of the target data source, wherein one dynamic web page corresponds to one monitoring item; A dynamic page includes several native objects and derived objects. The native objects are objects that can be obtained by monitoring the value of a single energy parameter, while the derived objects are objects that are generated by calculating or associating the monitoring values of at least two energy parameters. For any derived object, several monitoring values of any energy parameter of the derived object are generated by calculation and are continuous at the collection time.
3. The energy management method based on photovoltaic and energy storage integration according to claim 2 is characterized in that: Each native object and derived object included in a dynamic web page is represented as a JavaScript function in the dynamic web page.
4. The energy management method based on photovoltaic and energy storage integration according to claim 3 is characterized in that: The JavaScript function includes specified pre-acquired loading data information and a function body for executing display logic. The loading data information includes several energy parameters and their collection time information. The display logic of the function body is configured as follows: when processing native objects, the monitoring value of a single energy parameter obtained is directly visually rendered; when processing derived objects, the monitoring values of at least two energy parameters are correlated and calculated according to preset operation rules, and the calculation results are visually displayed, where the collection time information includes the collection start time, interval duration and collection end time.
5. The energy management method based on photovoltaic and energy storage integration according to claim 4 is characterized in that: In step three, when the front-end file and back-end file of the dynamic page corresponding to any monitoring item are loaded, all JavaScript functions in the dynamic page will be triggered. For any triggered JavaScript function, the loading data corresponding to the loading data information will be extracted according to the preset extraction rules based on the loading data information contained in the JavaScript function.
6. The energy management method based on photovoltaic and energy storage integration according to claim 5 is characterized in that: The extraction rules for extracting the loaded data corresponding to the loaded data information are as follows: First, a search is performed to determine whether all pre-acquired monitoring values of all energy parameters are stored in the memory. If all pre-acquired monitoring values of all energy parameters are found to be stored in the memory, the stored monitoring values of all pre-acquired energy parameters are first extracted from the memory and used as the loaded data corresponding to the loaded data information, and the function body within the JavaScript function executes display logic to display the loaded data to the administrator. If the retrieval memory only stores a number of monitoring values of a number of pre-acquired energy parameters, and does not store all monitoring values of all acquired energy parameters, then the retrieved number of monitoring values of the pre-acquired energy parameters are extracted from the memory, and simultaneously all monitoring values of all energy parameters that are not retrieved in the memory among all monitoring values of all pre-acquired energy parameters are extracted from the data storage library, and the data extracted from the memory and the data storage library are respectively used as the loaded data corresponding to the loaded data information, and the function body in the JavaScript function executes the display logic to display to the management personnel. During the display process, all monitoring values of all energy parameters extracted from the data storage library are loaded into the memory for storage; If all the monitoring values of all the pre-retrieved energy parameters are not stored in the retrieved memory, all the monitoring values of all the pre-retrieved energy parameters will be extracted from the data storage library as the loading data corresponding to the loading data information, and the function body in the JavaScript function will execute the display logic to display it to the management personnel. During the display process, all the monitoring values of all the energy parameters extracted from the data storage library will be loaded into the memory for storage. During the loading process, the corresponding expiration time will be set according to the preset key value of the corresponding energy parameter based on the monitoring values of all the energy parameters loaded. Once the expiration time is reached, all the corresponding monitoring values will be automatically deleted from the memory.
7. The energy management method based on photovoltaic and energy storage integration according to claim 1 is characterized in that: In step 4, the steps for analyzing and determining the expiration time and serial number of several monitoring items based on several energy parameters are as follows: S11: Get all inspection monitoring data stored in the inspection analysis unit, according to the order in which each inspection monitoring data is stored in the inspection analysis unit, from first to last, all inspection monitoring data are marked as A1, A2, ..., Aa, a ≥ 1; S12: Mark the monitoring items corresponding to all dynamic web pages of the target data source as B1, B2, ..., Bb in the order specified in the inspection task, where b≥1. When the administrator performs the inspection task, he clicks the monitoring items B1, B2, ..., Bb in order; S13: Mark the energy parameters corresponding to all monitoring values in the energy data of the target data source as C1, C2, ..., Cc, where c ≥ 1, and sequentially obtain the loading data D1, D2, ..., Db of the dynamic web pages corresponding to the monitoring items B1, B2, ..., Bb from the inspection monitoring data A1; S14: Obtain the extraction moments corresponding to all the monitored values of the energy parameter C1 from the loaded data D1 and remove duplicates therefrom. Mark the remaining extraction moments in the order of extraction as E1, E2, …, Ee, where e ≥ 1, and construct an ordered set G1 of the monitoring item B1 based on them. In the ordered set, the extraction moments are getting farther from the current moment from left to right. Similarly, construct ordered sets G2, G3, …, Gb of the monitoring items B2, B3, …, Bb in sequence; S15: Generate all the special discrete sets of the monitoring items B2, B3, …, Bb relative to the monitoring item B1 according to a preset first generation rule. The first generation rule is as follows: S151: Take the intersection of the ordered sets G1 and G2 to obtain several common sets and several discrete sets of the monitoring item B2 relative to the monitoring item B1; S152: Take the intersection of the ordered sets G1 and G3, G4, …, Gb in sequence according to S151 to obtain several common sets and several discrete sets of the monitoring items B3, B4, …, Bb relative to the monitoring item B1; S153: For any one of the common sets of the monitoring item B2 relative to the monitoring item B1, take the intersection of the common set with all the discrete sets of the monitoring items B3, B4, …, Bb relative to the monitoring item B1 to obtain several special discrete sets of the monitoring item B2 relative to the monitoring item B1; A special discrete set of the monitoring item B2 relative to the monitoring item B1 obtained by taking the intersection of any one of the common sets of the monitoring item B2 relative to the monitoring item B1 and any one of the discrete sets of the monitoring items B3, B4, …, Bb relative to the monitoring item B1; S154: Obtain several special discrete sets of the monitoring items B3, B4, …, Bb relative to the monitoring item B1 in sequence according to S153; S16: Calculate and obtain the interruption cache durations J1, J2, …, Jj of the monitoring item B1 based on the energy parameter C1 in the inspection monitoring data A1 according to a preset calculation rule; S17: Calculate and obtain the interruption cache durations of the monitoring item B1 based on the energy parameter C1 in the inspection monitoring data A2, A3, …, Aa in sequence according to S16. Relabel all the interruption cache durations of the monitoring item B1 based on the energy parameter C1 in the inspection monitoring data A1, A2, …, Aa as K1, K2, …, Kk, where k ≥ 1; S18: Generate several expiration durations and serial numbers of the monitoring item B1 based on the energy parameter C1 according to a preset second generation rule. The second generation rule is as follows: S181: Traverse the interruption cache durations K2, K3, …, Kk according to the interruption cache duration K1 to obtain the total number M1 of all the interruption cache durations whose difference from the interruption cache duration K1 is less than or equal to P1. If M1 / (a - 1) < P2, no processing is performed; If M1 / (a-1)≥P2, first use the summation and averaging formula to calculate the average value of the sum of all interruption cache durations whose difference with the interruption cache duration K1 is less than or equal to P1, and use the average value as an expiration duration of the monitoring item B1 based on the energy parameter C1. P1 is the preset screening difference threshold, and P2 is the preset proportion weight screening threshold; then obtain the mark subscript of each interruption cache duration whose difference with the interruption cache duration K1 is less than or equal to P1, and select the mark subscript with the largest number as the serial number of the expiration duration; S182: Traverse the interruption cache durations K2, K3, ..., Kk in sequence to obtain several expiration durations and sequence numbers of the monitoring item B1 based on the energy parameter C1; S19: Generate several expiration times and serial numbers of monitoring items B2, B3, ..., Bb based on energy parameter C1 in sequence according to S12 to S18, and all expiration times and serial numbers of monitoring items B1, B2, ..., Bb based on energy parameter C1; S110; according to S11 to S19, all expiration times and serial numbers of monitoring items B1, B2, ..., Bb based on energy parameters C2, C3, ..., Cc are generated and transmitted to the memory management unit for update and storage.
8. The energy management method based on photovoltaic and energy storage integration according to claim 7 is characterized in that: In S151, for any common set, the common set contains several extraction moments with consecutive marked subscripts, and any extraction moment contained in the common set exists in both ordered sets G1 and G2, and the extraction moments in the common set are arranged from left to right, and the closer to the left the arrangement is, the farther away from the current moment; for any discrete set, the common set contains several extraction moments with consecutive marked subscripts, and any extraction moment contained in the discrete set only exists in ordered sets G1 or G2, and the extraction moments in the discrete set are arranged from left to right, and the closer to the left the arrangement is, the farther away from the current moment.
9. The energy management method based on photovoltaic and energy storage integration according to claim 7, characterized in that: In S153, the special discrete set includes several extraction moments with consecutive marked subscripts, and any extraction moment included in the special discrete set only exists in the common set or the discrete set. The extraction moments in the special discrete set are arranged from left to right, and the closer to the left the arrangement is, the farther away from the current moment.
10. The energy management method based on photovoltaic and energy storage integration according to claim 7, characterized in that: In S16, the calculation rules for obtaining the interrupt buffer durations J1, J2, ..., Jj are as follows: S161: Extract the extraction moments arranged at the leftmost and rightmost ends from all special discrete sets of monitoring items B2, B3, ..., Bb relative to monitoring item B1, and then re-label all the obtained extraction moments as I1, I2, ..., Ii in order from far to near from the current moment, where i=2*g, and g is the total number of special discrete sets of monitoring items B2, B3, ..., Bb relative to monitoring item B1; S162: Based on the marking subscripts of the extraction time I1 at the extraction time E1, E2, ..., Ee before the extraction time I1 is re-marked, all the extraction times with the marking subscripts before the extraction time I1 are obtained from the extraction time E1, E2, ..., Ee; the two extraction times farthest and closest to the current time are extracted from all the obtained extraction times, and the difference between them is calculated, and the difference is used as an interruption cache duration J1 for the monitoring item B1 in the inspection monitoring data A1 based on the energy parameter C1. All the extraction times with the marking subscripts before the extraction time I1 are obtained from the extraction times E1, E2, ..., Ee as the cache mark time of the interruption cache duration J1; S163: Based on the marking subscripts of the extraction time I2 at the extraction time E1, E2, ..., Ee before the extraction time I2 is re-marked, obtain from the extraction time E1, E2, ..., Ee all cache marking times whose marking subscripts are before the extraction time I1 and do not belong to the interruption cache duration J1; Extract the two cache mark moments farthest and closest to the current moment from all the acquired cache mark moments and calculate the difference between them, and use the difference as an interrupt cache duration J2 for monitoring item B1 in inspection monitoring data A1 based on energy parameter C1; S164: According to S162 to S163, the interruption cache durations J3, J4, ..., Jj of the monitoring item B1 in the inspection monitoring data A1 based on the energy parameter C1 are calculated and obtained in sequence, where 1≤j≤i+1.
Citation Information
Patent Citations
Rule processing method and apparatus and data citing method
CN101014062A
Internet of Things data platform based on big data and AI
CN111787066A
Distributed serial number generation method, device and equipment based on database row lock
CN119311683A
Memory database starting method, system and equipment and medium
CN120407543A
Cache management
US20090100224A1