A method for cross-storage of smart meter data
By using a cross-storage method for smart meter data, the problems of excessive memory consumption and information loss in smart meter storage are solved, achieving efficient electricity information management and fault tolerance capabilities.
Patent Information
- Application Number
- CN202111116685.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-23
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2041-09-23
AI Technical Summary
Existing smart meters consume a large amount of memory when storing electricity consumption information, and when the meter malfunctions, all information may be lost, resulting in losses.
The method of cross-storing smart meter data is adopted. By storing all meter information within a fixed time period and forming an electricity information storage list in the server, the location of information can be obtained by calculating the start time and recording period, thereby reducing the storage volume and only losing partial information when the meter fails.
It effectively reduces storage capacity requirements, ensures that only partial information is lost when the meter fails, and improves fault identification speed and data recovery capabilities.
Smart Images

Figure CN113835635B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data storage, and in particular to a method for cross-storing data of a smart meter. Background Art
[0002] Existing smart meters all store their own electricity usage information, for example, storing their own electricity usage information for a fixed period of time. As time goes by, the first portion of electricity usage information stored within the fixed period of time is deleted, thereby freeing up the storage space of the smart meter itself.
[0003] When each smart meter stores its own power consumption information, for example, one power consumption will correspond to one time information. As the number of smart meters increases, the stored power consumption information will also increase, which will occupy a lot of memory. And if a smart meter fails, the power consumption information stored by the smart meter itself is likely to be lost, causing unnecessary losses. Summary of the invention
[0004] The purpose of the present invention is to reduce the storage capacity of electricity usage information to avoid losing all electricity usage information of a smart meter when a smart meter fails, and to provide a smart meter data cross-storage method.
[0005] In order to achieve the above-mentioned object of the invention, the embodiment of the present invention provides the following technical solutions:
[0006] A method for cross-storing data of smart meters comprises the steps of: enabling any smart meter to store the power consumption information of all smart meters within a fixed time period to form a power consumption information storage list; the power consumption information comprises power consumption.
[0007] Furthermore, the electricity consumption information storage list includes a starting recording time, a recording period, and a smart meter number. When querying the electricity consumption information, the position of the required query time in the electricity consumption information storage list is calculated based on the starting recording time and the recording period, thereby obtaining the electricity consumption information of the smart meter within the time period.
[0008] Furthermore, the electricity usage information storage list recorded by each smart meter is uploaded to the server, and the server also stores a smart meter sorting list, which includes smart meter sorting information stored in a fixed time period.
[0009] Furthermore, the M pieces of data recorded by each smart meter are uploaded to the server at one time as a sequence, and each piece of data is a row of electricity usage information in the electricity usage information storage list.
[0010] Further, each power consumption information storage list recorded by each smart meter can record at most T rows of data. Each row of data is a piece of power consumption information in the power consumption information storage list. When recording the (T + 1)-th row of data, a new power consumption information storage list is enabled; T is an integer.
[0011] Further, each power consumption information storage list recorded by each smart meter records T rows of data, where T = N * 24 * M, N is the number of smart meters, and M is an integer greater than or equal to 1.
[0012] Further, when a new smart meter is added when a certain smart meter records the t-th row of data, the newly added smart meter stores its own power consumption information during this period until a certain smart meter records from the t-th row to the T-th row. After a certain smart meter records full T rows of data and a new power consumption information storage list is enabled, the newly added smart meter is added to the newly enabled power consumption information storage list; 0 < t < T, and t is an integer.
[0013] Further, when there is a situation where the power consumption information storage list of a certain smart meter cannot store power consumption information or stores invalid power consumption information, the smart meter is repaired in a timely manner.
[0014] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0015] (1) The present invention stores the power consumption information of all smart meters by each smart meter within a fixed time period, and in each subsequent fixed time period, each smart meter is used in turn to store the power consumption information of all smart meters. When storing the power consumption information, only the "starting recording time, recording period, and smart meter number" need to be recorded, which can greatly reduce the data storage capacity.
[0016] (2) The present invention uses the method of cross-storing power consumption information. When a certain smart meter fails, only the power consumption information stored during the period of the failure will be stored, and it will not cause the loss of the power consumption information of the faulty smart meter at all times.
[0017] (3) The present invention uses the method of cross-storing power consumption information. Smart meters will regularly perform data communication. If there is a meter failure, the smart meter responsible for storing data will quickly identify it, improving the speed of identifying faulty meters. Description of the Drawings
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0019] Figure 1 This is a schematic diagram of cross-storage of smart meter data in the present invention. DETAILED DESCRIPTION
[0020] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents the selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present invention.
[0021] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance, or implying any such actual relationship or order between these entities or operations.
[0022] Embodiment 1:
[0023] The present invention is achieved through the following technical solutions: Figure 1 As shown, a method for cross-storage of smart meter data includes the steps of: enabling any smart meter to store the power usage information of all smart meters within a fixed time period; the power usage information includes power usage.
[0024] Each smart meter stores the electricity usage information of all smart meters to form an electricity usage information storage list. For example, assume that there are 5 smart meters (the actual situation may be far more than 5), namely smart meter 1, smart meter 2, smart meter 3, smart meter 4, and smart meter 5, and the fixed time period is set to 1 hour. Then each smart meter will store the electricity usage information of the 5 smart meters in one hour in turn, forming the electricity usage information storage list shown in Table 1 (the electricity usage data is omitted in the list):
[0025] Table 1
[0026]
[0027] It can be seen from Table 1 that smart meter 1 starts recording data of 5 smart meters from 1:00 on January 1st. The first row of Table 1 stores the power consumption of 5 smart meters in the hour of 1:00 on January 1st, and the next row stores the power consumption of 5 smart meters in the hour of 6:00 on January 1st.
[0028] All smart meters are sorted to form a smart meter sorting list, which is stored in the server. If there is a new smart meter, the new smart meter is placed at the end of the smart meter sorting list. For example, after 5 smart meters are sorted, smart meter 1 records the electricity consumption information for one hour, and smart meter 2 stores the next hour, forming a storage list of electricity consumption information as shown in Table 2:
[0029] Table 2
[0030]
[0031] Combining Table 1 and Table 2, it can be seen that after smart meter 1 stores the electricity usage information of all smart meters at 1:00 on January 1, smart meter 2 starts to store the electricity usage information of all smart meters at 2:00 on January 1.
[0032] By analogy, the electricity consumption information storage lists formed by smart meter 3, smart meter 4, and smart meter 5 can be obtained. Please refer to Table 3, Table 4, and Table 5 respectively:
[0033] Table 3
[0034]
[0035]
[0036] Table 4
[0037]
[0038] Table 5
[0039]
[0040] It can be seen from Tables 1 to 5 that by using one smart meter to record the electricity consumption information of all smart meters in a fixed time period, most of the time information can be omitted after a cycle, which is equivalent to one time information (such as "5 o'clock on January 1") corresponding to 5 electricity consumption data. Otherwise, according to the traditional storage method, one time information corresponds to one electricity consumption data, then the electricity consumption data of 5 smart meters at the same time will correspond to 5 time information. Although these 5 time information are the same, the storage capacity will also be increased due to the time information.
[0041] In order to further reduce the storage amount, the time information in Tables 1 to 5 is omitted, and the "start recording time, recording period, and smart meter number" are recorded in the header of the power consumption information storage list. This can further reduce the data volume of the power consumption information storage list. Then Table 1 can form a power consumption information storage list as shown in Table 6:
[0042] Table 6
[0043]
[0044] Similarly, Tables 2 to 5 can also form a power consumption information storage list similar to Table 6. When the amount of data is large, the storage capacity can be greatly reduced. In Table 6, as long as the starting recording time and the recording period are known, it is possible to calculate which row records what time period of power consumption. For example, if the starting recording time is known to be 1:00 on January 1, that is, the starting recording time is 1:00 on January 1, and the recording period is known to be 5 hours, because there are a total of 5 smart meters at this time, then it can be calculated that the power consumption time period recorded in the third row is 11:00 on January 1. Therefore, according to the starting recording time and the recording period, the position of the time to be queried in the power consumption information storage list is calculated, and the power consumption information of the smart meter in this time period can be obtained. If there are newly added smart meters, not only should the newly added smart meters be sorted in the smart meter sorting list, but the "recording period" recorded in the header of the power consumption information storage list should also be updated in a timely manner.
[0045] In order to facilitate the management of recorded electricity usage information, M data recorded by each smart meter (a row of electricity usage in the electricity usage information storage list is regarded as one data) are uploaded to the server at one time as a sequence. For example, 24 data are managed as a sequence. Then, in order to ensure that the number of data in a sequence stored by each smart meter is the same, after each smart meter stores 24 times of electricity usage information, it is regarded as a sequence. At this time, each smart meter stores 24 pieces of electricity usage information in a sequence.
[0046] For example, if smart meter 1 records 24 power consumption data from 1:00 on January 1, it will be 20:00 on January 5; similarly, if smart meter 2 records 24 power consumption data from 2:00 on January 1, it will be 21:00 on January 5. In this way, the 24 data are regarded as a sequence. When personnel retrieve data, they can retrieve it in units of a sequence, which is convenient for management, similar to treating the 24 power consumption data in Table 7 as a sequence:
[0047] Table 7
[0048]
[0049]
[0050] It should be noted that the present solution is not limited to using 24 pieces of data as a sequence. For example, 12 pieces of data may be used as a sequence, or 24*N pieces of data may be used as a sequence.
[0051] Furthermore, each electricity usage information storage list recorded by each smart meter records T rows of data, T=N*24*M, where N is the number of smart meters, and M is an integer greater than or equal to 1.
[0052] One piece of data of each smart meter stores one hour's electricity usage information. If a smart meter fails and cannot store the electricity usage information, it will only affect one hour's electricity usage information of each smart meter. In particular, when the number of smart meters increases, the impact of a smart meter failure on the electricity usage information will be smaller, because the electricity usage information can be queried through other smart meters that have no failures. Even if there is a temporary omission for a certain hour, it can be deduced based on the electricity usage information stored in other smart meters. This reduces the impact of the failure of the smart meter on the electricity usage information.
[0053] At the same time, since smart meters communicate data storage information regularly, once a smart meter fails to upload data, the smart meter responsible for storing the current electricity usage data can identify the communication failure and then upload the relevant fault information of the smart meter to the server.
[0054] Furthermore, each electricity usage information storage list recorded by each smart meter can be limited to T rows of data, and when the T+1th row is to be stored, a new electricity usage information storage list is activated. For example, when an electricity usage information storage list is limited to storing T rows of data, it can just store electricity usage information for one month. Then, during this month, a new smart meter is added. If the number of the new smart meter is directly added to the electricity usage information storage list recorded by each smart meter, a large amount of data with zero electricity usage will be generated before the smart meter is added. Although the electricity usage is zero, it will also occupy memory.
[0055] Therefore, each electricity consumption information storage list is limited to record T rows of data. When recording any row t (t < T), if a smart meter is newly added, then until the electricity consumption information storage list records from row t to row T, the newly added smart meter stores its own electricity consumption information during this period. When the existing smart meter has recorded T rows of data and a new electricity consumption information storage list is switched to, the newly added smart meter is added to the newly enabled electricity consumption information storage list.
[0056] On the one hand, the newly added smart meter will not disrupt the electricity consumption information storage list that is already recording data. On the other hand, it can also avoid the increase in the amount of invalid data caused by each smart meter always using one electricity consumption information storage list. After a smart meter is newly added, it will change the "recording period" recorded in the header of the electricity consumption information storage list. Therefore, when enabling the next electricity consumption information storage list, it is necessary to promptly modify the "recording period" recorded in the header so as to correctly calculate the time position to be queried.
[0057] Similarly, using the method of limiting each electricity consumption information storage list to record T rows of data as described above, when a certain smart meter fails to store data or stores invalid data during a certain period of time, directly deleting the current electricity consumption information storage list being recorded can reduce the impact brought by data loss.
[0058] As described above, the above is only the specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of changes or substitutions, which should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
Claims
1. A method for cross-storing data of a smart meter, characterized in that: It includes the steps of: enabling any smart meter to store the power consumption information of all smart meters within a fixed time period to form a power consumption information storage list; the power consumption information includes power consumption; the power consumption information storage list includes the start recording time, recording period, and smart meter number. When querying the power consumption information, calculate the position of the time to be queried in the power consumption information storage list according to the start recording time and recording period, so as to obtain the power consumption information of the smart meter within this time period; Each power consumption information storage list recorded by each smart meter can record at most T rows of data at most. Each row of data is a row of power consumption information in the power consumption information storage list. When recording the (T + 1)-th row of data, a new power consumption information storage list is enabled; T is an integer; Each electricity usage information storage list recorded by each smart meter records T lines of data. , where N is the number of smart meters and M is an integer greater than or equal to 1; When a certain smart meter records the t-th row of data and a new smart meter is added, until a certain smart meter records from the t-th row to the T-th row, the newly added smart meter stores its own power consumption information during this period. Until a certain smart meter records full T rows of data and a new power consumption information storage list is enabled, then the newly added smart meter is added to the newly enabled power consumption information storage list; 0 < t < T, and t is an integer.
2. A smart meter data cross storage method according to claim 1, characterized in that: The power consumption information storage list recorded by each smart meter is uploaded to the server. The server also stores a smart meter sorting list, and the smart meter sorting list includes the sorting information of smart meters storing a fixed time period.
3. A smart meter data cross storage method according to claim 1, characterized in that: Take M pieces of data recorded by each smart meter as a sequence and upload them to the server at one time. Each piece of data is a row of power consumption information in the power consumption information storage list.
4. The method for cross-storing data of a smart meter according to claim 1, characterized in that: When there is power consumption information that cannot be stored or invalid power consumption information in the power consumption information storage list recorded by a certain smart meter, then repair this smart meter in time.
Citation Information
Patent Citations
Data storage and query method of intelligent electric meter and system thereof
CN103412889A
Power consumption statistics method, apparatus and system
CN104111641A
Data storing method for smart electric meter
CN106940625A
Ammeter data processing method and ammeter
CN110472805A
Electric appliance power consumption classification metering method and device based on intelligent electric meter
CN111178393A
