Energy consumption data storage system and energy consumption data storage method

By setting up the first and second lists for storing the energy consumption data of the chiller unit in the server, and directly storing the energy consumption data for each hour, the problem of slow speed of the chiller cloud platform monitoring system when processing energy consumption data is solved, and the terminal can quickly obtain the energy consumption data of the hourly terminal.

CN119690958APending Publication Date: 2025-03-25QINGDAO HISENSE BOSCH AIR CONDITIONING SYSTEM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311235085.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-22
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

When the chiller cloud platform monitoring system receives and stores energy consumption data, the processing speed of the accumulated energy consumption value is slower, resulting in the terminal showing the hourly energy consumption value.

Method used

A storage system for energy consumption data is designed. By setting a first list and a second list in the server, the first list is used to store the total energy consumption at the beginning time of each preset period, and the second list is used to store one energy consumption data within each preset period. The server receives the total energy consumption data from the chiller. If there is data for the corresponding period in the first list, the energy consumption difference is calculated and the second list is updated to directly store the energy consumption data for each hour.

Benefits of technology

By directly storing the energy consumption data for each hour, the terminal can directly obtain it from the second list when acquiring the energy consumption data at the hour, avoiding the additional calculation process and significantly improving the speed of the terminal to acquire the energy consumption data at the hour.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119690958A_ABST
    Figure CN119690958A_ABST
Patent Text Reader

Abstract

The invention provides an energy consumption data storage system and an energy consumption data storage method, relates to the technical field of data processing, and aims to improve the calling rate of energy consumption data. The method comprises the steps that first energy consumption data from a cooling-water machine is received, the first energy consumption data is the total energy consumption of the cooling-water machine when the cooling-water machine stops to a target moment, and the target moment is a moment in a first time period in a plurality of preset time periods; and if the energy consumption data corresponding to the first time period exists in the first list, not storing the first energy consumption data, and obtaining the total energy consumption corresponding to the starting moment of the first time period. And determining a first energy consumption difference according to the first energy consumption data and the total energy consumption corresponding to the starting moment of the first time period. And updating the energy consumption corresponding to the first time period in the second list to the first energy consumption difference.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a storage system and a storage method for energy consumption data. Background Art

[0002] With the rapid development of social economy and the continuous advancement of building intelligent technology, people have higher and higher requirements for the comfort of living and working environment. Among them, chillers, as an important part of building equipment engineering system, play a vital role in creating a comfortable indoor environment.

[0003] However, since the chiller is easily affected by various factors such as weather and temperature during operation, it may cause abnormal operation of the chiller, which affects people's normal production and life. Therefore, in order to conveniently monitor and manage the chiller and ensure the stable operation of the chiller, the chiller cloud platform monitoring system is widely used. Among them, the energy consumption data of each hour within 24 hours is an important data in the chiller cloud platform monitoring system, which is of great significance for analyzing the operating status of the chiller.

[0004] At present, the energy consumption data received by the chiller cloud platform monitoring system from the chiller is the cumulative energy consumption value, and each cumulative energy consumption value is stored in the cache. However, when the front end needs to display the hourly energy consumption value, the front end needs to process the cumulative energy consumption value in the cache to obtain the hourly energy consumption value, which results in a slow speed for the front end to display the hourly energy consumption value. Summary of the invention

[0005] The present application provides a storage system and a storage method for energy consumption data, which are used to improve the retrieval rate of energy consumption data.

[0006] In order to achieve the above purpose, this application adopts the following technical solutions:

[0007] In a first aspect, the present application provides a storage system for energy consumption data, the storage system for energy consumption data comprising: a chiller, a server, the server comprising: a controller, a first list and a second list are stored in the controller, the first list is used to store the total energy consumption up to the starting time of each preset time period, and the second list is used to store an energy consumption data within each preset time period. The controller is configured to: receive first energy consumption data from the chiller, the first energy consumption data is the total energy consumption of the chiller up to a target time, and the target time is a time within a first time period among multiple preset time periods. If there is energy consumption data corresponding to the first time period in the first list, the first energy consumption data is not stored, and the total energy consumption corresponding to the starting time of the first time period is obtained. According to the first energy consumption data and the total energy consumption corresponding to the starting time of the first time period, a first energy consumption difference is determined. The energy consumption corresponding to the first time period in the second list is updated to the first energy consumption difference.

[0008] The technical solution provided by the embodiment of the present application brings at least the following beneficial effects: the server receives the first energy consumption data from the chiller, the first energy consumption data is the total energy consumption of the chiller up to the target time, and the target time is the time within the first time period of multiple preset time periods. Afterwards, if there is energy consumption data corresponding to the first time period in the first list, the server does not store the first energy consumption data, and obtains the total energy consumption corresponding to the starting time of the first time period. Then, the server determines the first energy consumption difference based on the first energy consumption data and the total energy consumption corresponding to the starting time of the first time period. Then, the server updates the energy consumption corresponding to the first time period in the second list to the first energy consumption difference. In this way, the energy consumption data for each hour can be directly stored in the second list. When the terminal needs to obtain the energy consumption data for each hour, the corresponding hourly energy consumption data can be directly obtained from the second list without further calculation, thereby improving the speed at which the terminal obtains the hourly energy consumption data.

[0009] In some embodiments, the controller is further configured to: if there is no energy consumption data corresponding to the first time period in the first list, use the first energy consumption data as the total energy consumption corresponding to the start time of the first time period, and store the first energy consumption data in the first list.

[0010] In some embodiments, the controller is further configured to: obtain a second time period corresponding to each energy consumption data in the second list, the second time period is any time period in a plurality of preset time periods, and one second time period corresponds to one energy consumption data in the second list. If there is a first target time period in at least one second time period, the energy consumption data of the first target time period in the second list is deleted, the first target time period is a time period in at least one second time period whose time difference with the second target time period is greater than a preset time threshold, and the second target time period is a time period corresponding to the last energy consumption data stored in the second list.

[0011] In some embodiments, the storage system for energy consumption data further includes: an electronic device, the controller is further configured to: receive an energy consumption request message from the electronic device, the energy consumption request message is used to indicate to query the second energy consumption data corresponding to the third target period in the second list, the energy consumption request message includes: target information, the target information is used to indicate the third target period. If the third target period exists in the second list, the second energy consumption data is sent to the electronic device.

[0012] In some embodiments, the energy consumption corresponding to the first time period in the second list is updated to the first energy consumption difference, and the controller is configured to: if the energy consumption data corresponding to the first time period does not exist in the second list, store the first energy consumption difference in the second list. If the energy consumption corresponding to the first time period exists in the second list, update the first energy consumption difference to the energy consumption corresponding to the first time period in the second list. Wherein, when the target time is the end time of the first time period, the first energy consumption difference is the total energy consumption data of the first time period.

[0013] In a second aspect, an embodiment of the present application provides a method for storing energy consumption data, which is applied to a server, wherein a first list and a second list are stored in the server, wherein the first list is used to store the total energy consumption up to the start time of each preset time period, and the second list is used to store an energy consumption data within each preset time period, and the method comprises: receiving first energy consumption data from a chiller, wherein the first energy consumption data is the total energy consumption of the chiller up to a target time, and the target time is a time within a first time period among multiple preset time periods. If there is energy consumption data corresponding to the first time period in the first list, the first energy consumption data is not stored, and the total energy consumption corresponding to the start time of the first time period is obtained. A first energy consumption difference is determined based on the first energy consumption data and the total energy consumption corresponding to the start time of the first time period. The energy consumption corresponding to the first time period in the second list is updated to the first energy consumption difference.

[0014] In some embodiments, if there is no energy consumption data corresponding to the first time period in the first list, the first energy consumption data is used as the total energy consumption corresponding to the start time of the first time period, and the first energy consumption data is stored in the first list.

[0015] In some embodiments, the second time period corresponding to each energy consumption data in the second list is obtained, the second time period is any time period in a plurality of preset time periods, and one second time period corresponds to one energy consumption data in the second list. If there is a first target time period in at least one second time period, the energy consumption data of the first target time period in the second list is deleted, the first target time period is a time period in at least one second time period whose time difference with the second target time period is greater than a preset time threshold, and the second target time period is a time period corresponding to the last energy consumption data stored in the second list.

[0016] In some embodiments, an energy consumption request message is received from an electronic device, the energy consumption request message is used to instruct to query the second list for second energy consumption data corresponding to the third target period, and the energy consumption request message includes: target information, the target information is used to indicate the third target period. If the third target period exists in the second list, the second energy consumption data is sent to the electronic device.

[0017] In some embodiments, the energy consumption corresponding to the first time period in the second list is updated to the first energy consumption difference, and the method includes: if the energy consumption data corresponding to the first time period does not exist in the second list, the first energy consumption difference is stored in the second list. If the energy consumption corresponding to the first time period exists in the second list, the first energy consumption difference is updated to the energy consumption corresponding to the first time period in the second list. Wherein, when the target time is the end time of the first time period, the first energy consumption difference is the total energy consumption data of the first time period.

[0018] In a third aspect, an embodiment of the present application provides a controller comprising: one or more processors; one or more memories; wherein the one or more memories are used to store computer program codes, the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the controller executes any one of the energy consumption data storage methods provided in the second aspect.

[0019] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are controlled on a computer, the computer executes the method provided in the second aspect and possible implementation methods.

[0020] In a fifth aspect, an embodiment of the present application provides a computer program product, which can be directly loaded into a memory and contains software code. After being loaded and executed by a computer, the computer program product can implement the method provided in the second aspect and possible implementation methods.

[0021] It should be noted that the above computer instructions may be stored in whole or in part on a computer-readable storage medium, wherein the computer-readable storage medium may be packaged together with the processor of the controller, or may be packaged separately from the processor of the controller, which is not limited in this application.

[0022] The beneficial effects described in the second to fifth aspects of the present application can be referred to the beneficial effect analysis of the first aspect and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;

[0024] Figure 2 A schematic diagram of the structure of a controller provided in an embodiment of the present application;

[0025] Figure 3 A schematic diagram of a data storage structure according to an exemplary embodiment of the present application is shown;

[0026] Figure 4 This is a schematic diagram of another data storage structure according to an exemplary embodiment of the present application;

[0027] Figure 5 A schematic diagram of a flow chart of a method for storing energy consumption data provided in an embodiment of the present application;

[0028] Figure 6 A schematic diagram of a storage process of energy consumption data provided in an embodiment of the present application;

[0029] Figure 7A flowchart of another method for storing energy consumption data provided in an embodiment of the present application;

[0030] Figure 8 A flowchart of another method for storing energy consumption data provided in an embodiment of the present application;

[0031] Fig. 9 A schematic diagram of an energy consumption data extraction process provided in an embodiment of the present application;

[0032] Fig.10 A flowchart of another method for storing energy consumption data provided in an embodiment of the present application;

[0033] Fig.11 A schematic diagram of a storage device for energy consumption data provided in an embodiment of the present application;

[0034] Fig.12 This is a schematic diagram of the hardware structure of a storage device for energy consumption data according to an exemplary embodiment of the present application;

[0035] Fig.13 A conceptual partial view of a computer program product provided for an embodiment of the present application. DETAILED DESCRIPTION

[0036] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0037] It should be noted that all directional indications in the embodiments of the present application (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0038] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.

[0039] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, or it can be internal communication between two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances. In addition, when describing pipelines or channels, the "connected" and "connected" used in this application have the meaning of conduction. The specific meaning needs to be understood in conjunction with the context.

[0040] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0041] With the rapid development of social economy and the continuous advancement of building intelligent technology, people have higher and higher requirements for the comfort of living and working environment. Among them, chillers, as an important part of building equipment engineering system, play a vital role in creating a comfortable indoor environment.

[0042] However, since the chiller is easily affected by various factors such as weather and temperature during operation, it may cause abnormal operation of the chiller, which affects people's normal production and life. Therefore, in order to conveniently monitor and manage the chiller and ensure the stable operation of the chiller, the chiller cloud platform monitoring system is widely used. Among them, the energy consumption data of each hour within 24 hours is an important data in the chiller cloud platform monitoring system, which is of great significance for analyzing the operating status of the chiller.

[0043] At present, the energy consumption data received by the chiller cloud platform monitoring system from the chiller is the cumulative energy consumption value, and each cumulative energy consumption value is stored in the cache. However, when the front end needs to display the hourly energy consumption value, the front end needs to process the cumulative energy consumption value in the cache to obtain the hourly energy consumption value, which results in a slow speed for the front end to display the hourly energy consumption value.

[0044] In order to solve the above problems, an embodiment of the present application provides a method for storing energy consumption data, which is applied to a server. A first list and a second list are stored in the server, the first list is used to store the total energy consumption up to the starting time in each preset time period, and the second list is used to store an energy consumption data in each preset time period. The method includes: receiving first energy consumption data from a chiller, the first energy consumption data is the total energy consumption of the chiller up to a target time, and the target time is a time in a first time period among multiple preset time periods. If there is energy consumption data corresponding to the first time period in the first list, the first energy consumption data is not stored, and the total energy consumption corresponding to the starting time of the first time period is obtained. According to the first energy consumption data and the total energy consumption corresponding to the starting time of the first time period, a first energy consumption difference is determined. The energy consumption corresponding to the first time period in the second list is updated to the first energy consumption difference. In this way, the energy consumption data of each hour can be directly stored in the second list. When the terminal needs to obtain the energy consumption data of each hour, the corresponding hourly energy consumption data can be directly obtained from the second list without further calculation, thereby improving the speed of the terminal obtaining the hourly energy consumption data.

[0045] The implementation environment of the embodiments of the present application is introduced below.

[0046] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present application. Figure 1 As shown, the energy consumption data storage system 100 may include: an electronic device 101 , a chiller 102 , and a server 103 .

[0047] The electronic device 101 refers to a device that controls and processes signals, energy, and information through electronic technology. The electronic device 101 can use digital circuits, analog circuits, microprocessors, and other technologies to achieve various functions and applications. The electronic device 101 can be divided into many different types, including consumer electronic devices, industrial electronic devices, communication devices, computers and accessories, embedded systems, etc. For example, the electronic device 101 can be a terminal device, a server, etc.

[0048] The chiller 102 is a cooling water device that can perform refrigeration, temperature control, and constant flow, and is widely used in the electronics industry, ultrasonic cleaning industry, plastics industry, food industry, pharmaceutical industry, electroplating industry and other fields.

[0049] The server 103 is a type of computer with the characteristics of fast operation speed and high load. The server 103 provides computing or application services for other devices in the network. The server 103 has high-speed CPU computing power, long-term reliable operation, strong input / output external data throughput capacity and better scalability.

[0050] It should be noted that the server 103 may be a single physical server, or a server cluster consisting of multiple servers. Alternatively, the server cluster may also be a distributed cluster. Alternatively, the server 103 may be a cloud server. The embodiment of the present application does not limit the specific implementation of the server 103.

[0051] In the embodiment of the present application, the electronic device 101 can send control information to the server 103, and the electronic device 101 can also receive information from the server 103. The chiller 102 can send information to the server 103. The monitoring device 103 can receive information from the chiller 102.

[0052] It should be noted that the server 103 may be a device inside the chiller 102. That is, the energy consumption data storage system 100 may include: an electronic device 101 and a chiller 102.

[0053] In some embodiments, the server 103 may include: a controller 104. The controller 104 may include: a service module (such as a business service module 201, a timing statistics service module 202, a status push service module 203, a monitoring cache service module 204, a sending control service module 205, and a service analysis module 206), and a database (such as a MySQL database 207, a Redis database 208, and a TDengine database 209).

[0054] For example, Figure 2 , which is a schematic diagram of the structure of a controller 104 provided in an embodiment of the present application.

[0055] A database is a container for storing data, also known as a data repository. Databases are able to store large amounts of structured and unstructured data, including various types of data such as text, numbers, images, audio, etc. They are one of the most important components in a computer system and are widely used in various applications and business areas.

[0056] In the embodiment of the present application, the dispatch control service module 205 can receive control information from the electronic device 101, and the dispatch control service module 205 can also send control information to the service analysis module 206. The service analysis module 206 can receive information from the chiller 102 and the dispatch control service module 205, and the service analysis module 206 can also send information to the TDengine database 209, the state push service module 203, and the monitoring cache service module 204. The TDengine database 209 can receive information from the service analysis module 206, and the TDengine database 209 can also send information to the timing statistics service module 202. The monitoring cache service module 204 can receive information from the service analysis module 206, and the monitoring cache service module 204 can also send information to the Redis database 208. The state push service module 203 can receive information from the service analysis module 206, and the state push service module 203 can also send information to the electronic device 101. The Redis database 208 can receive information from the monitoring cache service module 204, and the Redis database 208 can also send information to the business service module 201. The timing statistics service module 202 can receive information from the TDengine database 209, and the timing statistics service module 202 can also send information to the MySQL database 207. The MySQL database 207 can receive information from the timing statistics service module 202, and the MySQL database 207 can also send information to the business service module 201. The business service module 201 can receive information from the MySQL database 207, and the business service module 201 can also send information to the electronic device.

[0057] For example, Figure 3 As shown, it is a schematic diagram of a data storage structure provided by an embodiment of the present application, and the content stored in the data storage structure may include: the starting time of a preset period, and the total energy consumption up to the starting time of the preset period. Among them, the starting time of the preset period is used to mark the starting time of each preset period, and the total energy consumption up to the starting time of the preset period is the total energy consumption consumed by the chiller at the starting time of each preset period.

[0058] For example, if the preset time period is 12:00:01-13:00:00 on September 12, and the total energy consumption of the chiller at 12:00:01 on September 12 is 1200 (kw / h), the starting time of the preset time period is 12:00:01 on September 12, and the total energy consumption up to the starting time of the preset time period (that is, 12:00:01 on September 12) is 1200 kw / h.

[0059] For example, Figure 4As shown, it is a schematic diagram of another data storage structure provided by an embodiment of the present application, and the content stored in the data storage structure may include: the starting time in the preset period, and the first energy consumption difference. Among them, the starting time in the preset period is used to mark the starting time of each preset period, and the first energy consumption difference is the difference between the latest energy consumption data and the energy consumption data at the starting time in the preset period corresponding to the starting time in the preset period.

[0060] For example, if the preset time period is 12:00:01-13:00:00 on September 12, and the total energy consumption of the chiller at 12:00:01 on September 12 is 1200kw / h, and the latest energy consumption data received by the chiller (such as the total energy consumption at 12:30:01 on September 12 is 1300kw / h), then the starting time in the preset time period is 12:00:01 on September 12, and the first energy consumption difference is 100kw / h for the chiller (that is, the energy consumption between 12:00:01 on September 12 and 12:30:01 on September 12).

[0061] It should be noted that if the preset time period is 12:00:01-13:00:00 on September 12, and the time when the chiller receives the latest energy consumption data is 13:00:00 on September 12, then the first energy consumption difference is the total energy consumption consumed by the chiller in the preset time period of 12:00:01-13:00:00 on September 12.

[0062] The embodiments provided in this application are described in detail below in conjunction with the accompanying drawings.

[0063] like Figure 5 As shown, a method for storing energy consumption data provided by the present application is applied to a server, and the method includes:

[0064] S501. The server receives first energy consumption data from a chiller.

[0065] The first energy consumption data is the total energy consumption of the chiller up to a target time, and the target time is a time in a first time period among a plurality of preset time periods.

[0066] Exemplarily, if the target time is 17:04:01 on September 12, and the total energy consumption of the chiller at 17:4:01 on September 12 is 1000 kilowatt-hours (kw / h), then the first energy consumption data as of 17:04:01 on September 12 is 1000 kw / h.

[0067] It should be noted that the embodiment of the present application does not limit the number of chillers. For example, the number of chillers may be 1. For another example, the number of chillers may be 2. For another example, the number of chillers may be 3.

[0068] It should be noted that the embodiment of the present application does not limit the duration of a time period. For example, the duration of a time period may be 1 minute. For another example, the duration of a time period may be 1 hour. For another example, the duration of a time period may be 1 day. The following takes a time period of 1 hour as an example to introduce the embodiment of the present application.

[0069] It should be noted that the embodiments of the present application do not limit the starting time of each time period. For example, the starting time of each time period may be the first second of the first minute of each hour, such as 10:00:01 on September 12. For another example, the starting time of each time period may be the first second of the second minute of each hour, such as 10:01:01 on September 12. For another example, the starting time of each time period may be the first second of the tenth minute of each hour, such as 10:10:01 on September 12. The following takes the starting time of each time period as the first second of the first minute of each hour as an example to introduce the embodiments of the present application.

[0070] S502: The server determines whether there is energy consumption data corresponding to the first time period in the first list.

[0071] In the embodiment of the present application, a first list is stored in the server, and the first list is used to store the total energy consumption up to the starting time of a preset time period.

[0072] Exemplarily, as shown in Table 1, it shows a corresponding relationship between the starting time of a preset time period in a first list and the total energy consumption up to the starting time of the preset time period.

[0073] Table 1

[0074]

[0075] It can be seen from Table 1 that when the starting time in the preset time period is 10:00:01 on September 12, the corresponding total energy consumption up to the starting time in the preset time period is 1000kw / h. When the starting time in the preset time period is 11:00:01 on September 12, the corresponding total energy consumption up to the starting time in the preset time period is 1100kw / h. For the introduction of the correspondence between the starting time in other preset time periods and the total energy consumption up to the starting time in the preset time period, reference can be made to the introduction of the correspondence between the starting time 10:00:01 on September 12 in the preset time period and the total energy consumption 1000kw / h up to the starting time in the preset time period and the correspondence between the starting time 11:00:01 on September 12 in the preset time period and the total energy consumption 1100kw / h up to the starting time in the preset time period, which will not be repeated here.

[0076] In a possible implementation, the server may compare the first time period with the time period corresponding to the start time in the preset time period in the first list. If the time period corresponding to the start time in the preset time period in the first list does not exist in the same time period as the first time period, the server determines that there is no energy consumption data corresponding to the first time period in the first list.

[0077] For example, in combination with Table 1, it can be seen that if the target time corresponding to the first energy consumption data is September 12, 17:03:04, the server can determine that the first time period is September 12, 17:00:01-September 12, 18:00:00, and in the first list, there is no time period that is the same as the first time period in the time period corresponding to the starting time in the preset time period, then the server determines that there is no energy consumption data corresponding to the first time period in the first list.

[0078] If the time period corresponding to the start time in the preset time period in the first list exists in the time period that is the same as the first time period, the server determines that the energy consumption data corresponding to the first time period exists in the first list.

[0079] For example, in combination with Table 1, it can be seen that if the target time corresponding to the first energy consumption data is September 12, 12:03:04, the server can determine that the first time period is September 12, 12:00:01-September 12, 13:00:00, and in the first list, the time period corresponding to the starting time September 12, 12:00:01 in the preset time period is September 12, 12:00:01-September 12, 13:00:00, then the server determines that in the time period corresponding to the starting time in the preset time period, there is a time period that is the same as the first time period, then the server determines that there is energy consumption data corresponding to the first time period in the first list.

[0080] In another possible implementation, the server may compare the starting time corresponding to the target time with the starting time in the preset time period in the first list. If the starting time in the preset time period in the first list does not contain the same time as the starting time corresponding to the target time, the server determines that the energy consumption data corresponding to the first time period does not exist in the first list.

[0081] For example, in combination with Table 1, it can be seen that if the target time corresponding to the first energy consumption data is 17:03:04 on September 12, the server can determine that the starting time corresponding to the target time is 17:00:01 on September 12, and in the first list, there is no time in the starting time of the preset time period that is the same as the starting time corresponding to the target time, then the server determines that there is no energy consumption data corresponding to the first time period in the first list.

[0082] If there is a time in the starting time of the preset time period in the first list that is the same as the starting time corresponding to the target time, the server determines that there is energy consumption data corresponding to the first time period in the first list.

[0083] For example, in combination with Table 1, it can be seen that if the target time corresponding to the first energy consumption data is 12:03:04, the server can determine that the starting time corresponding to the target time is 12:00:01 on September 12, and in the first list, there is a time that is the same as the starting time corresponding to the target time in the starting time of the preset time period, then the server determines that there is energy consumption data corresponding to the first time period in the first list.

[0084] In an embodiment of the present application, if the first energy consumption data from the chiller is received at the start time of a time period, the server may use the first energy consumption data reported by the chiller last time as the total energy consumption at the initial time of this time period.

[0085] In some embodiments, if there is energy consumption data corresponding to the first time period in the first list, the server executes S503.

[0086] S503: The server does not store the first energy consumption data, and obtains the total energy consumption corresponding to the start time of the first time period.

[0087] In one possible implementation, the server may determine the start time corresponding to the target time, search the first list for the start time in the same preset time period as the start time corresponding to the target time, and obtain the total energy consumption corresponding to the start time of the first time period.

[0088] For example, in combination with Table 1, if the target time is 12:03:04 on September 12, the server can determine that the starting time corresponding to the target time is 12:00:01 on September 12, then the server can determine that the total energy consumption corresponding to the starting time of the first time period is 1200kw / h based on the starting time 12:00:01 on September 12 and the first list.

[0089] S504: The server determines a first energy consumption difference according to the first energy consumption data and the total energy consumption corresponding to the start time of the first time period.

[0090] In a possible implementation, the server may determine the energy consumption data at the start time of the first time period according to the start time of the first time period and the first list, and determine the first energy consumption difference according to the energy consumption data at the start time of the first time period and the first energy consumption data.

[0091] For example, in combination with Table 1, if the first energy consumption data is 1050 kw / h, the starting time of the first period is 12:00:01 on September 12, and the energy consumption data at the starting time of the first period is 1000 kw / h, the server can determine that the first energy consumption difference is 50 kw / h.

[0092] S505. The server updates the energy consumption corresponding to the first time period in the second list to the first energy consumption difference.

[0093] In an embodiment of the present application, a second list is stored in the server, and the second list is used to store energy consumption data in each preset time period.

[0094] Exemplarily, as shown in Table 2, it shows the corresponding relationship between the starting time in a preset time period and the energy consumption data, wherein the energy consumption data is the total energy consumption of the chiller in a time period.

[0095] Table 2

[0096]

[0097]

[0098] Combined with Table 2, it can be seen that when the starting time in the preset time period is 10:00:01 on September 12, the energy consumption data of the chiller in the time period corresponding to the starting time is 100kw / h. When the starting time in the preset time period is 11:00:01 on September 12, the energy consumption data of the chiller in the time period corresponding to the starting time is 100kw / h. For the introduction of the corresponding relationship between the starting time and the energy consumption data in other preset time periods, refer to the above introduction of the corresponding relationship between the starting time of 10:00:01 on September 12 and the energy consumption and the corresponding relationship between the starting time of 11:00:01 on September 12 and the energy consumption, which will not be repeated here.

[0099] In the embodiment of the present application, if the target time corresponding to the first energy consumption data is the starting time of the first time period, the server creates a new correspondence between the starting time and energy consumption in the preset time period in the second list, and stores the target time corresponding to the first energy consumption data as the starting time in the preset time period, and stores the first energy consumption difference as energy consumption data. The first energy consumption difference is 0kw / h.

[0100] For example, in combination with Table 2, if the target time corresponding to the first energy consumption data is 15:00:01 on September 12, the server creates a new correspondence between the starting time and energy consumption in the preset time period in the second list, and stores September 12 15:00:01 as the starting time in the preset time period, and stores 0kw / h as the energy consumption.

[0101] In the embodiment of the present application, if the target time corresponding to the first energy consumption data is not the starting time of the first time period, the server determines the starting time corresponding to the target time corresponding to the first energy consumption data. Then, the server determines the first time period in the second list based on the starting time corresponding to the target time corresponding to the first energy consumption data and the second list, and updates the energy consumption data corresponding to the first time period in the second list to the first energy consumption difference.

[0102] For example, in combination with Table 2, it can be seen that if the target time corresponding to the first energy consumption data is 14:30:01 on September 12, the server determines that the starting time corresponding to the target time corresponding to the first energy consumption data is 14:00:01 on September 12, and updates the energy consumption data corresponding to the starting time of the preset time period in the second list when it is 14:00:01 on September 12 to the first energy consumption difference.

[0103] In the embodiment of the present application, when the target time is the end time of the first time period, the first energy consumption difference is the total energy consumption data of the first time period.

[0104] It is understandable that the server can receive the first energy consumption data from the chiller, and the first energy consumption data is the total energy consumption of the chiller up to the target time, and the target time is the time within the first time period of multiple preset time periods. If there is energy consumption data corresponding to the first time period in the first list, the server does not store the first energy consumption data, and obtains the total energy consumption corresponding to the starting time of the first time period. Then, the server determines the first energy consumption difference based on the first energy consumption data and the total energy consumption corresponding to the starting time of the first time period. After that, the server updates the energy consumption corresponding to the first time period in the second list to the first energy consumption difference. In this way, the energy consumption data for each hour can be directly stored in the second list. When the terminal needs to obtain the energy consumption data for each hour, the corresponding hourly energy consumption data can be directly obtained from the second list without further calculation, which improves the speed at which the terminal obtains the hourly energy consumption data.

[0105] The following is an example of how to store energy consumption data. Figure 6 As shown, the server can receive the first energy consumption data from the chiller. Afterwards, the server determines the first starting time (i.e., the starting time in the preset time period corresponding to the first energy consumption data) according to the reporting time of the first energy consumption data. Then, the server can determine whether there is energy consumption data corresponding to the first starting time in the first data structure (i.e., the first list).

[0106] If the first data structure does not contain energy consumption data corresponding to the first start time, the server stores the first start time and the first energy consumption data in the first data structure. After that, the server initializes the energy consumption data corresponding to the first start time in the second data structure (i.e., the second list) to 0. Then, the server deletes the energy consumption data in the second data structure whose storage time exceeds the preset time threshold.

[0107] If the first data structure contains energy consumption data corresponding to the first starting time, the server determines energy consumption difference data (i.e., the first energy consumption difference) based on the first energy consumption data and the energy consumption data corresponding to the first starting time in the first data structure. Afterwards, the server updates the energy consumption data corresponding to the first starting time in the second data structure to the energy consumption difference data. Then, the server deletes the energy consumption data in the second data structure whose storage time exceeds the preset time threshold.

[0108] In some embodiments, Figure 7 As shown, a method for storing energy consumption data provided by the present application is applied to a server. If there is no energy consumption data corresponding to the first time period in the first list, the method further includes:

[0109] S701. The server uses the first energy consumption data as the total energy consumption corresponding to the start time of the first time period, and stores the first energy consumption data in a first list.

[0110] In one possible implementation, the server may create a correspondence between a starting time in a preset time period and the total energy consumption up to the starting time in the preset time period, and store the first energy consumption data as the total energy consumption up to the starting time in the preset time period, and store the target time corresponding to the first energy consumption data as the starting time in the preset time period.

[0111] Exemplarily, if the first energy consumption data is 1500kw / h, and the target time corresponding to the first energy consumption data is September 12, 14:00:01, the server can create a correspondence between the starting time in a preset time period and the total energy consumption up to the starting time in the preset time period, and store 1500kw / h as the total energy consumption up to the starting time in the preset time period, and store September 12, 14:00:01 as the starting time in the preset time period.

[0112] In some embodiments, Figure 8 As shown, a method for storing energy consumption data provided by the present application is applied to a server, and the method further includes:

[0113] S801. The server obtains a second time period corresponding to each energy consumption data in the second list.

[0114] The second time period is any one of a plurality of preset time periods, and one second time period corresponds to one energy consumption data in the second list.

[0115] In a possible implementation, the server may obtain the starting time of a preset time period corresponding to each data, and determine the second time period corresponding to each energy consumption data according to the starting time of the preset time period corresponding to each data.

[0116] For example, in combination with Table 2, it can be seen that the server can obtain the starting time of the preset time period corresponding to each data in Table 2, and the starting time of the preset time period corresponding to each data is: September 12 10:00:01, September 12 11:00:01, September 12 12:00:01, September 12 13:00:01, September 12 14:00:01. The server can then determine that the second time period corresponding to the starting time in the preset time period corresponding to each of the above data is: September 12 10:00:01-September 12 11:00:00, September 12 11:00:01-September 12 12:00:00, September 12 12:00:01-September 12 13:00:00, September 12 13:00:01-September 12 14:00:00, September 12 14:00:01-September 12 15:00:00.

[0117] S802: The server determines whether there is a first target time period in at least one second time period.

[0118] The first target time period is a time period in at least one second time period whose time difference with the second target time period is greater than a preset time threshold, and the second target time period is a time period corresponding to the last energy consumption data stored in the second list.

[0119] It should be noted that the embodiments of the present application do not limit the preset time threshold. For example, the preset time threshold may be 1 hour. For another example, the preset time threshold may be 1 day. For another example, the preset time threshold may be 1 week. The following takes the preset time threshold of one day as an example to introduce the embodiments of the present application.

[0120] In a possible implementation, the server may obtain the start time corresponding to the second target period, and determine at least one time difference value according to the start time of the preset period corresponding to the second target period and the start time of other second periods, where the time difference value is the difference between the start time corresponding to the second target period and the start time of other second periods. Then, the server compares the at least one time difference value with the preset time threshold, and if there is no time difference greater than the preset time threshold value in the at least one time difference value, the server determines that the first target period does not exist in the at least one second period.

[0121] Exemplarily, if the starting time of the preset time period corresponding to the last stored energy consumption data is 9:00:01 on September 12, and the starting times of the other preset time periods in the second list are 9:00:01 on September 11, 10:00:01 on September 11, 11:00:01 on September 11, and 12:00:01 on September 11, respectively, then the server can determine that the starting times of the preset time periods are 9:00:01 on September 11, 10:00:01 on September 11, 11:00:01 on September 11, and 12:00:01 on September 11, respectively, and the corresponding time differences are: 24 hours, 23 hours, 22 hours, and 21 hours, respectively. Then, the server can compare at least one time difference with the preset time threshold, and determine that there is no time difference greater than the preset time threshold in the at least one time difference, and then the server determines that there is no first target time period in at least one second time period.

[0122] If there is a time difference value greater than a preset time threshold in at least one time difference value, the server determines that there is a first target time period in at least one second time period.

[0123] Exemplarily, if the starting time of the preset time period corresponding to the last stored energy consumption data is 9:00:01 on September 12, and the starting times of the other preset time periods in the second list are 8:00:01 on September 11, 9:00:01 on September 11, 10:00:01 on September 11, and 11:00:01 on September 11, respectively, then the server can determine that when the starting times of the preset time periods are 8:00:01 on September 11, 9:00:01 on September 11, 10:00:01 on September 11, and 11:00:01 on September 11, respectively, the corresponding time differences are 25 hours, 24 hours, 23 hours, and 22 hours, respectively. Then, the server can compare at least one time difference with the preset time threshold, and determine that when the starting time of the preset time period is 8:00:01 on September 11, the corresponding time difference of 25 hours is greater than the preset time threshold. If there is a time difference value greater than a preset time threshold in at least one time difference value, the server determines that there is a first target time period in at least one second time period.

[0124] In some embodiments, if the first target time period does not exist in the at least one second time period, the server executes S803. If the first target time period exists in the at least one second time period, the server executes S804.

[0125] S803: The server sends a first prompt message to the electronic device.

[0126] The first prompt message is used to indicate that there is no energy consumption data greater than a preset time threshold in the second list.

[0127] It should be noted that the embodiment of the present application does not limit the type of the first prompt message. For example, the first prompt message may be a whistle prompt. For another example, the first prompt message may be a voice message prompt. For another example, the first prompt message may be a text message prompt. The following takes the first prompt message as a text message prompt as an example to introduce the embodiment of the present application.

[0128] Exemplarily, the first prompt message may be “there is no overdue data”.

[0129] S804. The server deletes the energy consumption data of the first target period in the second list.

[0130] In one possible implementation, the server may compare the starting moment corresponding to the first time period with the starting moment in the preset time period in the second list, determine the moment when the starting moment in the preset time period in the second list is the same as the starting moment corresponding to the first time period, and delete the energy consumption corresponding to the moment when the starting moment in the preset time period in the second list is the same as the starting moment corresponding to the first time period.

[0131] For example, in combination with Table 2, if the first target period is 10:00:01-11:00:00 on September 12, the server can determine that the start time corresponding to the first target period is 10:00:01 on September 12. Then, the server can delete the energy consumption data corresponding to the start time of 8:00:01-9:00:00 on September 11 in the preset period in the second list.

[0132] In some embodiments, the server may also delete the start time of the preset time period in the second list that is the same as the start time corresponding to the first time period.

[0133] It is understandable that the server can obtain the second time period corresponding to each energy consumption data in the second list, the second time period is any time period in a plurality of preset time periods, and one second time period corresponds to one energy consumption data in the second list. If there is a first target time period in at least one second time period, the server deletes the energy consumption data of the first target time period in the second list, the first target time period is a time period in at least one second time period in which the time difference with the second target time period is greater than the preset time threshold, and the second target time period is the time period corresponding to the last energy consumption data stored in the second list. In this way, the server can determine the energy consumption data in the second list that exceeds the preset time threshold, and delete the energy consumption data in the second list that exceeds the preset time threshold, thereby reducing the temporary storage space of the second list.

[0134] The following is an introduction to the energy consumption data extraction process with examples. Fig. 9As shown, the server can receive a query instruction (i.e., an energy consumption request message) from an electronic device. Thereafter, in response to the query instruction, the server can obtain energy consumption data in a second data structure (i.e., a second list). Then, the server can determine the energy consumption data in the second data structure that exceeds a preset time threshold. Then, the server can delete the energy consumption data in the second data structure that exceeds the preset time threshold to obtain an updated second data structure. Thereafter, the server determines, based on the query instruction, whether the updated second data structure contains energy consumption data corresponding to the query instruction (i.e., the second energy consumption data).

[0135] If the energy consumption data corresponding to the query instruction does not exist in the updated second data structure, the server sends a prompt message to the electronic device, where the prompt message is used to indicate that the energy consumption data corresponding to the query instruction has not been found.

[0136] If the energy consumption data corresponding to the query instruction exists in the updated second data structure, the server sends the energy consumption data corresponding to the query instruction to the electronic device.

[0137] In some embodiments, Fig.10 As shown, a method for storing energy consumption data provided by the present application is applied to a server, and the method further includes:

[0138] S1001. The server receives an energy consumption request message from an electronic device.

[0139] The energy consumption request message is used to instruct to query the second list for second energy consumption data corresponding to the third target time period, and the energy consumption request message includes: target information, and the target information is used to indicate the third target time period.

[0140] S1002: The server determines whether there is a third target time period in the second list.

[0141] In a possible implementation, the server may determine the start time corresponding to the third target period, and compare the start time corresponding to the third target period with the start time of the preset period in the second list to determine whether the start time corresponding to the third target period and the start time of the preset period in the second list are the same. If the start time corresponding to the third target period and the start time of the preset period in the second list are not the same, the server determines that the third target period does not exist in the second list.

[0142] For example, in combination with Table 2, if the third target time period is September 11, 10:00:01-11:00:00, the server can determine that the start time corresponding to the third target time period is September 11, 10:00:01, and compare the start time of September 11, 10:00:01, with the start time of the preset time period in the second list. Then, if the server determines that the start time of the preset time period in the second list does not exist at the same time as the start time of September 11, 10:00:01, the server determines that the third target time period does not exist in the second list.

[0143] If the start time corresponding to the third target time period is the same as the start time of the preset time period in the second list, the server determines that the third target time period exists in the second list.

[0144] For example, in combination with Table 2, if the third target period is 10:00:01-11:00:00 on September 12, the server can determine that the start time corresponding to the third target period is 10:00:01 on September 12, and compare the start time 10:00:01 on September 12 with the start time of the preset period in the second list. Then, if the server determines that the start time of the preset period in the second list is the same as the start time 10:00:01 on September 11, the server determines that the third target period exists in the second list.

[0145] In some embodiments, if the third target period does not exist in the second list, the server executes S1003. If the third target period exists in the second list, the server determines the third target period and executes S1004.

[0146] S1003. The server sends a second prompt message to the electronic device.

[0147] The second prompt message is used to indicate that the third target time period does not exist in the second list.

[0148] It should be noted that the embodiment of the present application does not limit the type of the second prompt message. For example, the second prompt message may be a whistle prompt. For another example, the second prompt message may be a voice message prompt. For another example, the second prompt message may be a text message prompt. The following takes the second prompt message as a text message prompt as an example to introduce the embodiment of the present application.

[0149] Exemplarily, the second prompt message may be “query data does not exist”.

[0150] S1004: The server sends second energy consumption data to the electronic device.

[0151] In a possible implementation, the server can determine the start time corresponding to the third target period according to the third target period, and query the energy consumption data corresponding to the time when the start time of the preset period in the second list is the same as the start time corresponding to the third target period, and determine that the energy consumption data is the second energy consumption data. Then, the server can send the second energy consumption data to the electronic device.

[0152] For example, in combination with Table 2, if the third target period is 10:00:01-11:00:00 on September 12, the server can determine that the start time corresponding to the third target period is 10:00:01 on September 12, and query the corresponding energy consumption data in the second list according to the start time 10:00:01 on September 12. Then, the server can determine that the energy consumption data corresponding to the start time 10:00:01 on September 12 in the second list is 100kw / h, and determine 100kw / h as the second energy consumption data. Then, the server sends the second energy consumption data to the electronic device.

[0153] It is understandable that the server can receive an energy consumption request message from an electronic device, the energy consumption request message is used to indicate to query the second energy consumption data corresponding to the third target time period in the second list, and the energy consumption request message includes: target information, the target information is used to indicate the third target time period. Then, if the third target time period exists in the second list, the server can send the second energy consumption data to the electronic device. In this way, after the server receives the energy consumption request message from the electronic device, the server can query the second energy consumption data corresponding to the third target time period in the second list, and send the second energy consumption data to the electronic device, without the need for further calculation, which improves the speed at which the terminal obtains hourly energy consumption data.

[0154] It can be seen that the above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to achieve the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the modules and algorithm steps of each example described in the embodiment disclosed herein, the embodiment of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0155] The embodiment of the present application can divide the controller into functional modules according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. Optionally, the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0156] like Fig.11 As shown, an embodiment of the present application provides a storage device for energy consumption data, and the storage device for energy consumption data includes: a receiving module 1101 and a processing module 1102.

[0157] In an embodiment of the present application, the server stores a first list and a second list, the first list is used to store the total energy consumption up to the start time of each preset time period, and the second list is used to store an energy consumption data in each preset time period.

[0158] The receiving module 1101 is used to receive first energy consumption data from the chiller, where the first energy consumption data is the total energy consumption of the chiller up to a target time, where the target time is a time within a first time period among the plurality of preset time periods;

[0159] The processing module 1102 is configured to not store the first energy consumption data if the first list contains energy consumption data corresponding to the first time period, and obtain the total energy consumption corresponding to the start time of the first time period;

[0160] The processing module 1102 is further configured to determine a first energy consumption difference according to the first energy consumption data and the total energy consumption corresponding to the start time of the first time period;

[0161] The processing module 1102 is further configured to update the energy consumption corresponding to the first time period in the second list to the first energy consumption difference.

[0162] In some embodiments, the processing module 1102 is further used to use the first energy consumption data as the total energy consumption corresponding to the starting time of the first time period if there is no energy consumption data corresponding to the first time period in the first list, and store the first energy consumption data in the first list.

[0163] In some embodiments, the storage device for energy consumption data further includes: an acquisition module 1103. The acquisition module 1103 is used to acquire a second time period corresponding to each energy consumption data in the second list, where the second time period is any time period in the plurality of preset time periods, and one second time period corresponds to one energy consumption data in the second list;

[0164] Processing module 1102 is also used to delete the energy consumption data of the first target time period in the second list if there is a first target time period in at least one of the second time periods, the first target time period being a time period in at least one of the second time periods and the time difference between the first target time period and the second target time period being greater than a preset time threshold, and the second target time period being the time period corresponding to the last energy consumption data stored in the second list.

[0165] In some embodiments, the storage device for energy consumption data further includes: a sending module 1104. The receiving module 1101 is further used to receive an energy consumption request message from the electronic device, the energy consumption request message is used to indicate to query the second energy consumption data corresponding to the third target time period in the second list, the energy consumption request message includes: target information, the target information is used to indicate the third target time period;

[0166] The sending module 1104 is configured to send the second energy consumption data to the electronic device if the third target time period exists in the second list.

[0167] In some embodiments, the processing module 1102 is further configured to store the first energy consumption difference in the second list if the energy consumption data corresponding to the first time period does not exist in the second list;

[0168] The processing module 1102 is further configured to update the first energy consumption difference to the energy consumption corresponding to the first time period in the second list if the energy consumption corresponding to the first time period exists in the second list;

[0169] Wherein, when the target time is the end time of the first time period, the first energy consumption difference is the total energy consumption data of the first time period.

[0170] Fig.11 If each module in the embodiment is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The storage medium for storing computer software products includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories, random access memories, magnetic disks or optical disks.

[0171] An embodiment of the present application also provides a computer-readable storage medium, which includes computer-executable instructions. When the computer-executable instructions are executed on a computer, the computer executes the energy consumption data storage method provided in the above embodiment.

[0172] Fig.12 The schematic diagram is a hardware structure diagram of a storage device for energy consumption data according to an exemplary embodiment. The storage device for energy consumption data can implement the storage method for energy consumption data provided in the embodiment of the present application.

[0173] like Fig.12 As shown, the energy consumption data storage device 1200 includes a processor 1201 , a communication line 1202 and a communication interface 1203 .

[0174] Furthermore, the energy consumption data storage device 1200 may also include a memory 1204 . The processor 1201 , the memory 1204 and the communication interface 1203 may be connected via a communication line 1202 .

[0175] The processor 1201 may be a central processing unit (CPU), a general-purpose processor network processor (NP), a digital signal processor (DSP), a microprocessor, a microcontroller, a programmable logic device (PLD), or any combination thereof. The processor 1201 may also be any other device having a processing function, such as a circuit, a device, or a software module, without limitation.

[0176] The communication line 1202 is used to transmit information between the components included in the energy consumption data storage device 1200.

[0177] The communication interface 1203 is used to communicate with other devices or other communication networks. The other communication networks may be Ethernet, Radio Access Network (RAN), Wireless Local Area Network (WLAN), etc. The communication interface 1203 may be a module, a circuit, a transceiver or any device capable of achieving communication.

[0178] The memory 1204 is used to store instructions, where the instructions may be computer programs.

[0179] Among them, the memory 1204 can be a read-only memory (ROM) or other types of static storage devices that can store static information and / or instructions, or a random access memory (RAM) or other types of dynamic storage devices that can store information and / or instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, etc., without limitation.

[0180] It should be noted that the memory 1204 may exist independently of the processor 1201, or may be integrated with the processor 1201. The memory 1204 may be used to store instructions or program codes or some data, etc. The memory 1204 may be located in the storage device 1200 for energy consumption data, or may be located outside the storage device 1200 for energy consumption data, without limitation.

[0181] The processor 1201 is used to execute the instructions stored in the memory 1204 to implement the communication method provided in the following embodiments of the present application. For example, when the storage device 1200 for energy consumption data is a terminal device or a chip or a system on a chip in the terminal device, the processor 1201 can execute the instructions stored in the memory 1204 to implement the steps performed by the sending end in the following embodiments of the present application.

[0182] In one example, the processor 1201 may include one or more CPUs, such as Fig.12 CPU0 and CPU1 in.

[0183] As an optional implementation, the energy consumption data storage device 1200 includes multiple processors, for example, Fig.12 In addition to the processor 1201, a processor 1207 may also be included.

[0184] As an optional implementation, the energy consumption data storage device 1200 further includes an output device 1205 and an input device 1206. Exemplarily, the input device 1206 is a keyboard, a mouse, a microphone, a joystick, and the output device 1205 is a display screen, a speaker, and the like.

[0185] It should be noted that the hardware structures of the electronic device 101, the chiller 102, the server 103, the controller 104, the service modules (such as the business service module 201, the timing statistics service module 202, the status push service module 203, the monitoring cache service module 204, the sending control service module 205, the service analysis module 206), the database (such as the MySQL database 207, the Redis database 208, the TDengine database 209) and other hardware devices in the above system architecture can all be referred to. Fig.12 The hardware architecture of the energy consumption data storage device 1200 is shown.

[0186] It is understandable that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 101, chiller 102, server 103, controller 104 service modules (such as business service module 201, timing statistics service module 202, status push service module 203, monitoring cache service module 204, sending control service module 205, service parsing module 206), and databases (such as MySQL database 207, Redis database 208, TDengine database 209) in the system architecture. In other embodiments, the hardware devices in the system architecture may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The illustrated components may be implemented as hardware, software, or a combination of software and hardware.

[0187] Fig.13 A conceptual partial view of a computer program product provided by an embodiment of the present application is schematically shown, where the computer program product includes a computer program for executing a computer process on a computing device.

[0188] In one embodiment, the computer program product is provided using a signal bearing medium 1300. The signal bearing medium 1300 may include one or more program instructions that, when executed by one or more processors, may provide the above-described Figure 5 , Figure 7 , Figure 8 or Fig.10 Thus, for example, reference to Figure 5 In the embodiment shown in , one or more features of S501 to S505 may be undertaken by one or more instructions associated with the signal bearing medium 1300. In addition, Fig.13 The program instructions in also describe example instructions.

[0189] In some examples, the signal bearing medium 1300 may include a computer readable medium 1301 such as, but not limited to, a hard drive, a compact disk (CD), a digital video disk (DVD), a digital tape, a memory, a read-only memory, a random access memory, or the like.

[0190] In some implementations, signal bearing medium 1300 may include computer recordable medium 1302 such as, but not limited to, memory, read / write (R / W) CD, R / W DVD, and the like.

[0191] In some implementations, signal bearing medium 1300 may include communication medium 1303 such as, but not limited to, digital and / or analog communication media (eg, fiber optic cables, waveguides, wired communication links, wireless communication links, etc.).

[0192] The signal bearing medium 1300 may be communicated by a wireless form of communication medium 1303. The one or more program instructions may be, for example, computer executable instructions or logic implemented instructions.

[0193] In some examples, such as for Fig.12 The described storage device for energy consumption data may be configured to provide various operations, functions, or actions in response to one or more program instructions via computer-readable medium 1301 , computer-recordable medium 1302 , and / or communication medium 1303 .

[0194] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0195] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0196] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0197] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0198] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A storage system for energy consumption data, characterized in that: The energy consumption data storage system comprises: a chiller, a server, the server comprises: a controller, the controller stores a first list and a second list, the first list is used to store the total energy consumption up to the start time of each preset time period, and the second list is used to store one energy consumption data in each preset time period; The controller is configured to: Receiving first energy consumption data from the chiller, the first energy consumption data being the total energy consumption of the chiller up to a target time, the target time being a time within a first time period among the plurality of preset time periods; If the energy consumption data corresponding to the first time period exists in the first list, the first energy consumption data is not stored, and the total energy consumption corresponding to the start time of the first time period is obtained; determining a first energy consumption difference according to the first energy consumption data and the total energy consumption corresponding to the start time of the first time period; Update the energy consumption corresponding to the first time period in the second list to the first energy consumption difference.

2. The energy consumption data storage system according to claim 1, characterized in that: The controller is also configured to: If the first list does not contain energy consumption data corresponding to the first time period, the first energy consumption data is used as the total energy consumption corresponding to the start time of the first time period, and the first energy consumption data is stored in the first list.

3. The energy consumption data storage system according to claim 1 or 2, characterized in that: The controller is also configured to: Obtain a second time period corresponding to each energy consumption data in the second list, where the second time period is any time period in the plurality of preset time periods, and one second time period corresponds to one energy consumption data in the second list; If there is a first target time period in at least one of the second time periods, the energy consumption data of the first target time period in the second list is deleted. The first target time period is a time period in at least one of the second time periods in which the time difference with the second target time period is greater than a preset time threshold. The second target time period is the time period corresponding to the last energy consumption data stored in the second list.

4. The energy consumption data storage system according to claim 1 or 2, characterized in that: The energy consumption data storage system further includes: an electronic device, and the controller is further configured to: receiving an energy consumption request message from the electronic device, the energy consumption request message being used to instruct to query the second list for second energy consumption data corresponding to a third target period, the energy consumption request message comprising: target information, the target information being used to indicate the third target period; If the third target time period exists in the second list, the second energy consumption data is sent to the electronic device.

5. The energy consumption data storage system according to claim 4, characterized in that: The updating of the energy consumption corresponding to the first time period in the second list to the first energy consumption difference, the controller is configured to: If the energy consumption data corresponding to the first time period does not exist in the second list, storing the first energy consumption difference in the second list; If the energy consumption corresponding to the first time period exists in the second list, updating the first energy consumption difference to the energy consumption corresponding to the first time period in the second list; Wherein, when the target time is the end time of the first time period, the first energy consumption difference is the total energy consumption data of the first time period.

6. A method for storing energy consumption data, characterized in that: The method is applied to a server, wherein a first list and a second list are stored in the server, wherein the first list is used to store the total energy consumption up to the start time of each preset time period, and the second list is used to store an energy consumption data in each preset time period, and the method comprises: Receiving first energy consumption data from the chiller, the first energy consumption data being the total energy consumption of the chiller up to a target time, the target time being a time within a first time period among the plurality of preset time periods; If the energy consumption data corresponding to the first time period exists in the first list, the first energy consumption data is not stored, and the total energy consumption corresponding to the start time of the first time period is obtained; determining a first energy consumption difference according to the first energy consumption data and the total energy consumption corresponding to the start time of the first time period; Update the energy consumption corresponding to the first time period in the second list to the first energy consumption difference.

7. The method according to claim 6, characterized in that The method further comprises: If the first list does not contain energy consumption data corresponding to the first time period, the first energy consumption data is used as the total energy consumption corresponding to the start time of the first time period, and the first energy consumption data is stored in the first list.

8. The method according to claim 6 or 7, characterized in that: The method further comprises: Obtain a second time period corresponding to each energy consumption data in the second list, where the second time period is any time period in the plurality of preset time periods, and one second time period corresponds to one energy consumption data in the second list; If there is a first target time period in at least one of the second time periods, the energy consumption data of the first target time period in the second list is deleted. The first target time period is a time period in at least one of the second time periods in which the time difference with the second target time period is greater than a preset time threshold. The second target time period is the time period corresponding to the last energy consumption data stored in the second list.

9. The method according to claim 6 or 7, characterized in that: The method further comprises: receiving an energy consumption request message from the electronic device, the energy consumption request message being used to instruct to query the second list for second energy consumption data corresponding to a third target period, the energy consumption request message comprising: target information, the target information being used to indicate the third target period; If the third target time period exists in the second list, the second energy consumption data is sent to the electronic device.

10. The method according to claim 9, characterized in that The method of updating the energy consumption corresponding to the first time period in the second list to the first energy consumption difference comprises: If the energy consumption data corresponding to the first time period does not exist in the second list, storing the first energy consumption difference in the second list; If the energy consumption corresponding to the first time period exists in the second list, updating the first energy consumption difference to the energy consumption corresponding to the first time period in the second list; Wherein, when the target time is the end time of the first time period, the first energy consumption difference is the total energy consumption data of the first time period.