A method and system for reading electric energy meters based on electric energy information collection terminal
By splitting and freezing the important degree of historical meter reading data on the power consumption information acquisition terminal, combined with the pre-freezing storage depth of real-time meter reading data, the problem of historical meter reading data deletion in the existing technology is solved, and data traceability and storage security are realized.
Patent Information
- Application Number
- CN202411910086.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2044-12-24
AI Technical Summary
In the prior art, when storing power meter meter reading data, when the storage capacity is insufficient, the historical meter reading data will be directly deleted, resulting in the cleaning of important content, which is difficult to trace and cannot guarantee the retention of data.
By collecting historical meter reading data on the power consumption information acquisition terminal, splitting it into historical sub-data of different degrees of importance, determining the freezing storage depth based on the upload time and cumulative importance, and freezing and storage of each historical meter reading data. When the storage capacity exceeds the setting, the corresponding historical sub-data will be deleted according to the pre-freezing storage depth of the real-time meter reading data.
It effectively ensures that the sub-data of meter reading data is subdivided according to the importance when storing, and the frozen storage depth is adjusted when inserting new meter reading data, so as to realize the gradual deletion of historical data, ensuring data traceability and storage security.
Smart Images

Figure CN119357564B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to an electric energy meter reading method and system based on an electric energy meter information collection terminal. Background Art
[0002] The meter reading data based on the electric energy meter mainly involves asset number, customer number, customer name, electricity address, electricity price, total amount of overdue electricity charges, indication type, current indication, last indication, comprehensive multiple, meter reading status, abnormal meter reading, last meter reading date, current meter reading date, electricity reading, last month's electricity, average electricity in the first three months, electricity fee year and month, meter reading section number, meter reading sequence, number of meters, contact person, contact number, etc. Infrared meter reading should also have the following data: infrared mark, actual meter reading method, date before meter synchronization, time before meter synchronization, whether it is a new installation and capacity increase customer, whether it is a changed customer, asset number, etc.
[0003] When storing the existing electricity meter reading data, when the storage capacity is insufficient, all the historical meter reading data obtained at a certain time in the past are directly deleted. Although the storage capacity is guaranteed, the important content in the deleted historical meter reading data will also be cleared together, making it difficult to trace the historical meter reading data after it is completely cleared, and it is impossible to guarantee the retention of the important content of the historical meter reading data when it is cleared to the greatest extent. Summary of the invention
[0004] In view of the shortcomings of the prior art described above, the purpose of the present invention is to provide an electric energy meter reading method and system based on an electricity consumption information collection terminal, which is used to solve the problem in the prior art that when the electric energy meter reading data is stored, when the storage capacity is insufficient, all historical meter reading data acquired at a certain time in the past are directly deleted. Although the storage capacity is guaranteed, the important contents of the deleted historical meter reading data will also be cleared together, making it difficult to trace the historical meter reading data that has been completely cleared, and the retention of important contents of the historical meter reading data when it is cleared cannot be guaranteed to the greatest extent.
[0005] To achieve the above-mentioned purpose and other related purposes, the present invention provides an electric energy meter reading method based on an electric energy information collection terminal, comprising: collecting historical meter reading data; splitting each historical meter reading data according to the importance to obtain historical sub-data of different importance; obtaining the cumulative importance of each historical meter reading data according to the historical sub-data of different importance; determining the frozen storage depth of each historical meter reading data based on the upload time and the cumulative importance of each historical meter reading data; freezing and storing each historical meter reading data according to the corresponding frozen storage depth; acquiring real-time meter reading data, and detecting the data storage amount when freezing and storing the real-time meter reading data; when the data storage amount exceeds the set storage requirement, deleting and cleaning the historical sub-data frozen and stored at the corresponding pre-frozen storage depth according to the pre-frozen storage depth of the real-time meter reading data according to the preset rules; and storing the real-time meter reading data at the pre-frozen storage depth.
[0006] In one embodiment of the present invention, each historical meter reading data is split according to the importance to obtain historical sub-data of different importance, including: extracting each historical sub-data [Q1, Q2, ..., Q n ]; determine each historical sub-data [Q1, Q2, ..., Q n ] corresponding data type; according to the historical sub-data [Q1, Q2, ..., Q n ] corresponding data type, mapping each historical sub-data [Q1, Q2, ..., Q n ] importance [a1, a2, …, a n ].
[0007] In one embodiment of the present invention, the cumulative importance of each historical meter reading data is obtained according to the historical sub-data of different importance, including: each historical sub-data [Q1, Q2, ..., Q n ] importance [a1, a2, …, a n ] to perform addition operation to obtain the cumulative importance a of each historical meter reading data i iall =a1+a2+…+a n .
[0008] In one embodiment of the present invention, based on the upload time and cumulative importance of each historical meter reading data, the frozen storage depth of each historical meter reading data is determined, including: extracting the upload time [t1, t2, ..., t i ]; According to the upload time [t1, t2, …, t i ] and each storage weight w xy The corresponding time interval [t x , t y], and obtain the upload time [t1, t2, …, t i ] corresponding to the storage weights [w1, w2, …, w i ]; According to the cumulative importance of each historical meter reading data i [a 1all , a 2all , …, a iall ], calculate the freezing storage factor δ of each historical meter reading data i i =a iall × i ; According to the freezing storage factor [δ1, δ2, …, δ i ], determine the frozen storage depth of each historical meter reading data i and arrange it in ascending order [1, 2, ..., j], where i∈[1, 2, ..., j].
[0009] In one embodiment of the present invention, each historical meter reading data is frozen and stored according to the corresponding frozen storage depth, including: extracting the memory usage [M1, M2, ..., M] of each historical meter reading data i corresponding to the frozen storage depth order [1, 2, ..., j] j ]; Arrange the data storage capacity [MK1, MK2, …, MK] of each corresponding storage bank [1, 2, …, k] from small to large according to the frozen storage depth; k ], freeze each historical meter reading data i under the storage depth sorting [1, 2, ..., j] according to its corresponding memory usage [M1, M2, ..., M j ] are stored in each storage repository [1, 2, …, k] in sequence.
[0010] In one embodiment of the present invention, when the storage bank k stores historical meter reading data [c, c+1, ..., d-1, d], the storage capacity MK corresponding to the storage bank k is k Meet MK k ≥M c +M c+1 +…+M d-1 +M d ; Among them, M c 、M c+1 , …, M d-1 、M d They are respectively represented by the memory usage corresponding to each historical meter reading data c, c+1, ..., d-1, d.
[0011] In one embodiment of the present invention, the data storage capacity [MK1, MK2, ..., MK k], storing each historical meter reading data i corresponding to the frozen storage depth sorting [1, 2, ..., j] in each storage bin [1, 2, ..., k] in sequence, including: according to the importance threshold [a mink , a maxk ], for each historical sub-data [Q1, Q2, ..., Q n ] importance [a1, a2, …, a n ] to monitor the importance threshold; when there is historical sub-data Q in the historical meter reading data i n The corresponding importance a n does not exist at the corresponding importance threshold [a mink , a maxk ], the control is performed on the corresponding historical sub-data Q n Delete; when historical meter reading data i contains historical sub-data Q n The corresponding importance a n Exists at the corresponding importance threshold [a mink , a maxk ], the corresponding importance threshold [a mink , a maxk ] historical sub-data Q n Stored in the corresponding storage library k.
[0012] In one embodiment of the present invention, each historical meter reading data i stored in each storage repository [1, 2, . . . , k] is complete data.
[0013] In one embodiment of the present invention, when the data storage volume exceeds the set storage requirement, the historical sub-data frozen and stored at the corresponding pre-frozen storage depth are deleted and cleaned according to the pre-frozen storage depth of the real-time meter reading data and the preset rules, including: obtaining the pre-frozen storage depth j0 of the real-time meter reading data in the frozen storage depth sorting [1, 2, ..., j] according to the frozen storage factor δ0 of the real-time meter reading data; obtaining the storage bank e corresponding to the real-time meter reading data according to the pre-frozen storage depth and the memory occupancy M0 of the real-time meter reading data; extracting each historical meter reading data i corresponding to the frozen storage depth sorting [1, 2, ..., j0] before the storage bank e, and sequentially transferring each storage bank [1, 2, ..., e-1] in the direction of decreasing frozen storage depth; and removing the historical meter reading data i that is removed from the storage bank [1, 2, ..., e-1] after sequential transfer. f Perform removal monitoring; when there is historical meter reading data i f When it is removed from the storage bin [1, 2, ..., e-1], the historical meter reading data i f Perform deletion cleanup.
[0014] To achieve the above-mentioned purpose and other related purposes, the present invention also provides an electric energy meter reading system based on an electric energy information collection terminal, comprising: a data collection unit, used to collect historical meter reading data; a data splitting unit, used to split each historical meter reading data according to the importance level to obtain historical sub-data of different importance levels; an importance level calculation unit, used to obtain the cumulative importance level of each historical meter reading data according to the historical sub-data of different importance levels; a storage depth calculation unit, used to determine the frozen storage depth of each historical meter reading data based on the upload time and cumulative importance level of each historical meter reading data; a frozen storage unit, used to freeze and store each historical meter reading data according to the corresponding frozen storage depth; a capacity detection unit, used to obtain real-time meter reading data and detect the data storage capacity when the real-time meter reading data is frozen and stored; a cleaning unit, used to delete and clean the historical sub-data frozen and stored at the corresponding pre-frozen storage depth according to preset rules according to the pre-frozen storage depth of the real-time meter reading data when the data storage capacity exceeds the set storage requirement; and a data storage unit, used to store the real-time meter reading data at the pre-frozen storage depth.
[0015] As described above, the present invention discloses an electric energy meter reading method and system based on an electric energy information collection terminal, which has the following beneficial effects: by storing historical meter reading data in a repository with different freezing storage depths according to the upload time and the cumulative importance, and controlling and cleaning according to the importance of each historical sub-data in each historical meter reading data, it can effectively ensure that each sub-data of the meter reading data can be subdivided according to the importance when stored. And when inserting new meter reading data, it can also adjust the freezing storage depth of other historical meter reading data, that is, the historical sub-data of each historical meter reading data can be deleted and cleaned in order from small to large in importance, so that the data collected each time can be gradually deleted to ensure the traceability of the data, and the freezing storage and cleaning safety of the meter reading data is realized. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 Shown is a flow chart of the meter reading method of the present invention.
[0017] Figure 2 Shown is a structural block diagram of a meter reading system provided in one embodiment of the present invention.
[0018] Component number description
[0019] Meter reading system 11; data collection unit 111; data splitting unit 112; importance calculation unit 113; storage depth calculation unit 114; frozen storage unit 115; capacity detection unit 116; cleaning unit 117; data storage unit 118. DETAILED DESCRIPTION
[0020] See also Figure 1 The present invention provides an electric energy meter reading method based on an electric energy meter information collection terminal, comprising:
[0021] Step S10: Collect historical meter reading data;
[0022] Step S20: split each historical meter reading data according to its importance to obtain historical sub-data of different importance;
[0023] Step S30: Obtaining the cumulative importance of each historical meter reading data according to the historical sub-data of different importance levels;
[0024] Step S40: determining the freezing storage depth of each historical meter reading data based on the upload time and cumulative importance of each historical meter reading data;
[0025] Step S50: freeze and store each historical meter reading data according to the corresponding freeze storage depth;
[0026] Step S60: acquiring real-time meter reading data, and detecting the data storage capacity when the real-time meter reading data is frozen and stored;
[0027] Step S70: when the data storage volume exceeds the set storage requirement, the historical sub-data frozen and stored at the corresponding pre-frozen storage depth are deleted and cleaned according to the preset rules according to the pre-frozen storage depth of the real-time meter reading data;
[0028] Step S80: Storing the real-time meter reading data at the pre-frozen storage depth.
[0029] It is not difficult to find through the above steps that in the meter reading method of the present invention, when collecting historical electricity consumption data based on the electricity consumption information collection terminal, the collected historical electricity consumption data may include the total electric energy indication in each time period, the electric energy indication of each rate, current, voltage, neutral current, zero-sequence current, total and phase active power, total and phase reactive power, etc. After collecting the historical electricity consumption data, it is necessary to further split the historical electricity consumption data to obtain historical sub-data of different importance. For example, the total electric energy indication can be expressed as one importance, the electric energy indication of each rate can be expressed as another importance, and so on. Further, according to the importance of each historical sub-data, the cumulative importance of each historical meter reading data is calculated. According to the upload time and cumulative importance of each historical meter reading data, the frozen storage depth of each historical meter reading data can be determined, and frozen storage is performed according to the frozen storage depth, so as to realize the sequential storage of each historical meter reading data. When newly uploaded real-time meter reading data is collected, if the real-time meter reading data meets the storage requirements, such as the storage capacity requirements, when frozen and stored, the real-time meter reading data is directly frozen and stored; if the real-time meter reading data does not meet the storage capacity requirements when frozen and stored, it is necessary to determine the pre-frozen storage depth of the real-time meter reading data, which can be based on preset rules, such as taking the pre-frozen storage depth as a benchmark, to delete and clean up each historical sub-data in the direction of reducing the frozen storage depth, and after the cleaning is completed, the real-time meter reading data is synchronously stored at the pre-frozen storage depth. Through the above content, it can be ensured that each sub-data of the meter reading data can be subdivided according to the importance when stored, and when inserting new meter reading data, it can also adjust the frozen storage depth of other historical meter reading data, that is, the historical sub-data of each historical meter reading data can be deleted and cleaned in order from small to large in importance, so that the data collected each time can be gradually deleted to ensure the traceability of the data, and the frozen storage and cleaning safety of the meter reading data is realized.
[0030] Figure 1 The flowchart of the method for reading an electric energy meter based on the electric energy information collection terminal in an exemplary embodiment of the present application is shown, including steps S10 to S80. Figure 1 The technical solution of this application will be described in detail.
[0031] First, step S10 and step S20 are executed to collect historical meter reading data; each historical meter reading data is split according to the importance to obtain historical sub-data of different importance.
[0032] In this embodiment, the historical power consumption data may include historical sub-data such as total power indication value in each time period, power indication value of each rate, current, voltage, neutral current, zero sequence current, total and phase active power, total and phase reactive power, etc. Each historical sub-data also has a corresponding importance. By splitting the historical power consumption data into historical sub-data according to their importance, the importance corresponding to each historical sub-data can be obtained.
[0033] In step S20, each historical meter reading data is split according to the importance, and historical sub-data of different importance are obtained, including:
[0034] Step S201: extract each historical sub-data [Q1, Q2, ..., Q n ];
[0035] Step S202: Determine each historical sub-data [Q1, Q2, ..., Q n ]Corresponding data type;
[0036] Step S203: Based on the historical sub-data [Q1, Q2, ..., Q n ] corresponding data type, mapping each historical sub-data [Q1, Q2, ..., Q n ] importance [a1, a2, …, a n ].
[0037] In this embodiment, when splitting the historical meter reading data, each historical sub-data [Q1, Q2, ..., Q n ] to extract, and then according to each extracted historical sub-data [Q1, Q2, ..., Q n ], determine each historical sub-data [Q1, Q2, ..., Q n ] corresponding data type, such as historical sub-data [Q1, Q2, ..., Q n ] can be a combination of "data type + value", and the data type can be a data type. Further, according to each historical sub-data [Q1, Q2, ..., Q n ] corresponding data type, and obtain each historical sub-data [Q1, Q2, ..., Q n ] importance [a1, a2, …, a n ].
[0038] Next, step S30 is executed to obtain the cumulative importance of each historical meter reading data according to the historical sub-data of different importance.
[0039] In this embodiment, according to the different data types of the historical meter reading data i collected each time and / or the different total numbers of historical sub-data corresponding to the data types, the corresponding cumulative importance of the historical meter reading data can be further determined according to the importance of each historical sub-data.
[0040] In step S30, according to the historical sub-data of different importance, the cumulative importance of each historical meter reading data is obtained, including: each historical sub-data [Q1, Q2, ..., Q n ] importance [a1, a2, …, a n ] to perform addition operation to obtain the cumulative importance a of each historical meter reading data i iall =a1+a2+…+a n .
[0041] In this embodiment, when the total number of historical sub-data is n, and each historical sub-data [Q1, Q2, ..., Q n ] corresponds to an importance [a1, a2, …, a n ], we can further convert all the importances [a1, a2, …, a n ] to perform addition operation, thereby determining the cumulative importance a of each historical meter reading data i iall , that is, the formula is a iall =a1+a2+…+a n .
[0042] Next, step S40 is executed to determine the freezing storage depth of each historical meter reading data based on the upload time and cumulative importance of each historical meter reading data.
[0043] In this embodiment, when establishing the corresponding frozen storage depth for the historical meter reading data, the frozen storage depth of each historical meter reading data can be determined by its corresponding upload time and cumulative importance. That is, when the upload time of each historical meter reading data is longer and the cumulative importance is lower, its frozen storage depth will continue to decrease until each historical sub-data in the historical meter reading data is cleared.
[0044] In step S40, based on the upload time and cumulative importance of each historical meter reading data, the freezing storage depth of each historical meter reading data is determined, including:
[0045] Step S401: extract the upload time [t1, t2, ..., t i ];
[0046] Step S402: Based on the upload time [t1, t2, ..., t i ] and each storage weight wxy The corresponding time interval [t x , t y ], and obtain the upload time [t1, t2, …, t i ] corresponding to the storage weights [w1, w2, …, w i ];
[0047] Step S403: Based on the cumulative importance of each historical meter reading data i [a 1all , a 2all , …, a iall ], calculate the freezing storage factor δ of each historical meter reading data i i =a iall × i ;
[0048] Step S404: According to the freezing storage factor [δ1, δ2, ..., δ i ], determine the frozen storage depth of each historical meter reading data i and arrange it in ascending order [1, 2, ..., j], where i∈[1, 2, ..., j].
[0049] In this embodiment, after obtaining the upload time [t1, t2, ..., t i ]After that, each upload time t can be further determined i The time interval [t x , t y ], and according to each upload time t i The time interval [t x , t y ], and then further determine its corresponding storage weight w xy , that is, the upload time of each historical meter reading data i [t1, t2, ..., t i ] corresponding to the storage weights [w1, w2, …, w i ], where w xy ∈[w1,w2,…,w i ]. Then according to the cumulative importance of each historical meter reading data i [a 1all , a 2all , …, a iall ], the freezing storage factor δ of each historical meter reading data i can be further calculated i =a iall × i , where a iall =a1+a2+…+a n ; Freeze storage factor δ iThe size of can determine the frozen storage depth of each historical meter reading data i. That is, according to the frozen storage factor [δ1, δ2, …, δ i ] are sorted in sequence according to their sizes, thereby obtaining a frozen storage depth sorting [1, 2, ..., j] arranged from small to large, and the historical meter reading data i corresponds to one of the frozen storage depth sortings [1, 2, ..., j].
[0050] Next, step S50 is executed to freeze and store each historical meter reading data according to the corresponding freezing storage depth.
[0051] In this embodiment, after determining the frozen storage depth order [1, 2, . . . , j] of each historical meter reading data i arranged from small to large, it is necessary to further store each historical meter reading data in the storage library k in sequence.
[0052] In step S50, each historical meter reading data is frozen and stored according to the corresponding frozen storage depth, including:
[0053] Step S501: extract the memory usage [M1, M2, ..., M] of each historical meter reading data i corresponding to the frozen storage depth order [1, 2, ..., j]. j ];
[0054] Step S502: Arrange the data storage capacity [MK1, MK2, ..., MK] of the corresponding storage banks [1, 2, ..., k] from small to large according to the frozen storage depth. k ], freeze each historical meter reading data i under the storage depth sorting [1, 2, ..., j] according to its corresponding memory usage [M1, M2, ..., M j ] are stored in each storage repository [1, 2, …, k] in sequence.
[0055] In this embodiment, after determining the frozen storage depth order [1, 2, ..., j] of each historical meter reading data i arranged from small to large, by extracting the memory usage [M1, M2, ..., M3] of each historical meter reading data i under the frozen storage depth order [1, 2, ..., j], j ], and then according to the memory usage of each historical meter reading data i [M1, M2, ..., M j ], and the data storage capacity of each storage library [1, 2, ..., k] [MK1, MK2, ..., MK k ], and store each historical meter reading data i in each storage repository [1, 2, ..., k] in sequence according to the frozen storage depth order [1, 2, ..., j], so as to realize the storage of each historical meter reading data i according to its memory usage [M1, M2, ..., M j ] Each storage repository [1, 2, …, k] is stored in sequence.
[0056] In step S50, when the storage bank k stores the historical meter reading data [c, c+1, ..., d-1, d], the storage capacity MK corresponding to the storage bank k is k Meet MK k ≥M c +M c+1 +…+M d-1 +M d ; Among them, M c 、M c+1 , …, M d-1 、M d are respectively represented as the memory usage corresponding to each historical meter reading data c, c+1, ..., d-1, d. In this embodiment, when each storage library k stores historical meter reading data i, for example, historical meter reading data i∈[c, c+1, ..., d-1, d], and the memory usage corresponding to historical meter reading data [c, c+1, ..., d-1, d] is [M c , M c+1 , …, M d-1 , M d ], then the memory usage of each is [M c , M c+1 , …, M d-1 , M d ] needs to be less than the storage capacity MK corresponding to the storage bank k k , each storage repository k can fully store each historical meter reading data [c, c+1, …, d-1, d].
[0057] In step S502, the data storage capacity [MK1, MK2, ..., MK k ], and store each historical meter reading data i corresponding to the frozen storage depth sorting [1, 2, ..., j] in each storage repository [1, 2, ..., k] in sequence, including:
[0058] Step S5021: According to the importance threshold [a mink , a maxk ], for each historical sub-data [Q1, Q2, ..., Q n ] importance [a1, a2, …, a n ] Conduct importance threshold monitoring;
[0059] Step S5022: When there is historical sub-data Q in the historical meter reading data i n The corresponding importance a ndoes not exist at the corresponding importance threshold [a mink , a maxk ], the control is performed on the corresponding historical sub-data Q n delete;
[0060] Step S5022: When there is historical sub-data Q in the historical meter reading data i n The corresponding importance a n Exists at the corresponding importance threshold [a mink , a maxk ], the corresponding importance threshold [a mink , a maxk ] historical sub-data Q n Stored in the corresponding storage library k.
[0061] In this embodiment, when each historical meter reading data i corresponding to the frozen storage depth sorting [1, 2, ..., j] is sequentially stored in each storage bin [1, 2, ..., k], it is also necessary to further store each storage bin [1, 2, ..., k] according to the importance threshold [a mink , a maxk ], judge each historical sub-data [Q1, Q2, ..., Q n ] importance [a1, a2, …, a n ] belongs to the corresponding repository [1, 2, …, k], the importance threshold [a mink , a maxk ] In addition, in each historical meter reading data i, when there is a historical sub-data Q n The corresponding importance a n does not exist at the corresponding importance threshold [a mink , a maxk ], it means that the historical sub-data Q n If it is a cleanable item, it can be cleaned directly, so that when the storage vault k corresponding to the frozen storage depth order [1, 2, ..., j] of the historical meter reading data i is updated and transferred to the storage vault k-1, the historical meter reading data i after cleaning the historical sub-data can be directly transferred to the storage vault k-1. n The corresponding importance a n Exists at the corresponding importance threshold [a mink , a maxk ], it means that the historical sub-data Q n For example, if a reservable item is transferred from repository k to repository k-1, then the corresponding importance threshold [a mink , a maxk ] historical sub-data Q nStored in the corresponding storage library k.
[0062] In step S502, each historical meter reading data i stored in each storage repository [1, 2, ..., k] is complete data. In this embodiment, in order to ensure that each historical meter reading data i in each storage repository [1, 2, ..., k] is not split and to ensure the synchronization of each historical meter reading data i during cleaning, it is necessary to ensure that each historical meter reading data i stored in each storage repository [1, 2, ..., k] is complete data obtained through collection or after cleaning of historical sub-data.
[0063] Next, execute step S60 and step S70 to obtain the real-time meter reading data and detect the data storage capacity when the real-time meter reading data is frozen and stored; when the data storage capacity exceeds the set storage requirement, delete and clean up the historical sub-data frozen and stored at the corresponding pre-frozen storage depth according to preset rules based on the pre-frozen storage depth of the real-time meter reading data.
[0064] In this embodiment, after each historical meter reading data i is stored in each storage repository [1, 2, ..., k] according to the frozen storage depth sorting [1, 2, ..., j], when new real-time meter reading data is obtained, it is also necessary to detect the data storage amount of the real-time meter reading data after being stored in the storage repository [1, 2, ..., k] to determine whether the data storage amount in the storage repository [1, 2, ..., k] exceeds the storage capacity when the real-time meter reading data is stored. If the data storage amount exceeds the set storage requirement, the deletion and cleaning of the historical sub-data frozen and stored at the pre-frozen storage depth will be started accordingly according to the pre-frozen storage depth of the real-time meter reading data, so as to ensure that when the data needs to be cleaned up, the historical sub-data with the lowest importance level is cleaned up accordingly, so as to meet the storage capacity requirement of each storage repository [1, 2, ..., k].
[0065] In step S70, when the data storage volume exceeds the set storage requirement, the historical sub-data frozen and stored at the corresponding pre-frozen storage depth are deleted and cleaned according to the preset rules according to the pre-frozen storage depth of the real-time meter reading data, including:
[0066] Step S701: obtaining a pre-frozen storage depth j0 of the real-time meter reading data in the frozen storage depth sequence [1, 2, ..., j] according to the frozen storage factor δ0 of the real-time meter reading data;
[0067] Step S702: obtaining a storage repository e corresponding to the real-time meter reading data according to the pre-frozen storage depth of the real-time meter reading data and the memory occupancy M0;
[0068] Step S703: extract each historical meter reading data i corresponding to the frozen storage depth sequence [1, 2, ..., j0] before the storage memory e, and sequentially transfer each storage memory [1, 2, ..., e-1] in the direction of decreasing frozen storage depth;
[0069] Step S704: The historical meter reading data i that is transferred and removed from the storage memory [1, 2, ..., e-1] is f Conduct removal monitoring;
[0070] Step S705: When there is historical meter reading data i f When it is removed from the storage bin [1, 2, ..., e-1], the historical meter reading data i f Perform deletion cleanup.
[0071] In this embodiment, when the storage bank [1, 2, ..., k] is cleaned up according to the freezing storage factor δ0, the pre-freezing storage depth and the memory occupancy M0 of the real-time meter reading data, the position of the real-time meter reading data in the freezing storage depth ranking [1, 2, ..., j], that is, the pre-freezing storage depth j0, is first determined according to the freezing storage factor δ0 of the real-time meter reading data, where j0∈[1, 2, ..., j]. Further, according to the pre-freezing storage depth and the memory occupancy M0 of the real-time meter reading data, the storage bank e of the real-time meter reading data when it is stored is determined. Generally, the storage bank e of the real-time meter reading data when it is stored can be a storage bank with the largest freezing storage depth. After determining the storage bank e in which the real-time meter reading data is stored, extract each historical meter reading data i corresponding to the frozen storage depth order [1, 2, ..., j0] of the storage bank [1, 2, ..., e-1] before the storage bank e, and sequentially transfer the historical meter reading data i to each storage bank [1, 2, ..., e-1] in the direction of decreasing frozen storage depth, so as to realize the storage of the historical meter reading data i in each storage bank [1, 2, ..., e-1] less than the pre-frozen storage depth j0 when storing the real-time meter reading data. f Furthermore, when there is historical meter reading data i f When the meter reading data i is removed from the storage bin [1, 2, ..., e-1], it is further necessary to remove the historical meter reading data i from the storage bin [1, 2, ..., e-1]. f Delete. Among them, the historical meter reading data i f The historical sub-data in includes at least one.
[0072] Finally, step S80 is executed to store the real-time meter reading data in the pre-frozen storage depth. After deleting and cleaning the historical sub-data frozen and stored at the corresponding pre-frozen storage depth according to the preset rules, the storage bank e corresponding to the real-time meter reading data is cleared out of space, and the real-time meter reading data can be directly stored in the pre-frozen storage depth corresponding to the storage bank e.
[0073] like Figure 2 As shown, the present invention also provides an electric energy meter reading system 11 based on an electric energy information collection terminal, comprising: a data collection unit 111, for collecting historical meter reading data; a data splitting unit 112, for splitting each historical meter reading data according to the importance level to obtain historical sub-data of different importance levels; an importance level calculation unit 113, for obtaining the cumulative importance level of each historical meter reading data according to the historical sub-data of different importance levels; a storage depth calculation unit 114, for determining the frozen storage depth of each historical meter reading data based on the upload time and the cumulative importance level of each historical meter reading data; a frozen storage unit 115, for freezing and storing each historical meter reading data according to the corresponding frozen storage depth; a capacity detection unit 116, for acquiring real-time meter reading data and detecting the storage capacity when freezing and storing the real-time meter reading data; a cleaning unit 117, for deleting and cleaning the historical sub-data frozen and stored at the corresponding pre-frozen storage depth according to the pre-frozen storage depth of the real-time meter reading data according to preset rules when the storage capacity exceeds the set storage requirement; and a data storage unit 118, for storing the real-time meter reading data at the pre-frozen storage depth.
[0074] It should be noted that the electric energy meter reading system 11 based on the electric energy information collection terminal provided in the above embodiment and the electric energy meter reading method based on the electric energy information collection terminal provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment, and will not be repeated here. In actual application, the electric energy meter reading system 11 based on the electric energy information collection terminal provided in the above embodiment can allocate the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.
[0075] In summary, the present invention discloses an electric energy meter reading method and method based on an electric energy information collection terminal. By storing historical meter reading data in a repository with different freezing storage depths according to the upload time and the cumulative importance, and controlling and cleaning according to the importance of each historical sub-data in each historical meter reading data, it can effectively ensure that each sub-data of the meter reading data can be subdivided according to the importance when stored. And when inserting new meter reading data, it can also adjust the freezing storage depth of other historical meter reading data, that is, the historical sub-data of each historical meter reading data can be deleted and cleaned in order from small to large according to the importance, so that the data collected each time can be gradually deleted to ensure the traceability of the data, and the freezing storage and cleaning safety of the meter reading data can be realized. Therefore, the present invention effectively overcomes various shortcomings in the prior art and has a high industrial utilization value.
[0076] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A method for reading electric energy meters based on an electric energy information collection terminal, characterized in that: include: Collect historical meter reading data; Splitting each of the historical meter reading data according to the importance level to obtain historical sub-data of different importance levels; According to the historical sub-data of different importance, the cumulative importance of each of the historical meter reading data is obtained; Determining the freezing storage depth of each of the historical meter reading data based on the upload time and cumulative importance of each of the historical meter reading data; Freeze and store each of the historical meter reading data according to the corresponding freeze storage depth; Acquire real-time meter reading data, and detect the data storage capacity when the real-time meter reading data is frozen and stored; When the data storage volume exceeds the set storage requirement, the historical sub-data frozen and stored at the corresponding pre-frozen storage depth are deleted and cleaned according to the pre-frozen storage depth of the real-time meter reading data and the preset rules; The real-time meter reading data is stored in the pre-frozen storage depth.
2. The electric energy meter reading method based on the electric energy meter information collection terminal according to claim 1 is characterized in that: Each of the historical meter reading data is split according to the importance, to obtain historical sub-data of different importance, including: Extract each historical sub-data [Q1, Q2, ..., Q n ]; Determine each of the historical sub-data [Q1, Q2, ..., Q n ]Corresponding data type; According to the historical sub-data [Q1, Q2, ..., Q n ] corresponding to the data type, mapping each of the historical sub-data [Q1, Q2, ..., Q n ] importance [a1, a2, …, a n ].
3. The electric energy meter reading method based on the electric energy meter information collection terminal according to claim 1 is characterized in that: According to the historical sub-data of different importance, the cumulative importance of each historical meter reading data is obtained, including: Each historical sub-data [Q1, Q2, ..., Q n ] importance [a1, a2, …, a n ] to perform addition operation to obtain the cumulative importance a of each historical meter reading data i iall =a1+a2+…+a n .
4. The electric energy meter reading method based on the electric energy meter information collection terminal according to claim 1 is characterized in that: Based on the upload time and cumulative importance of each of the historical meter reading data, determining the freezing storage depth of each of the historical meter reading data includes: Extract the upload time [t1, t2, ..., t i ]; According to the upload time [t1, t2, ..., t i ] and each storage weight w xy The corresponding time interval [t x , t y ], and obtain the upload time [t1, t2, ..., t i ] corresponding to the storage weights [w1, w2, …, w i ]; According to the cumulative importance of each of the historical meter reading data i [a 1all , a 2all , …, a iall ], calculate the freezing storage factor δ of each of the historical meter reading data i i =a iall × i ; According to the freezing storage factor [δ1, δ2, ..., δ i ], determine the frozen storage depth of each of the historical meter reading data i, and arrange the frozen storage depth in ascending order [1, 2, ..., j], where i∈[1, 2, ..., j].
5. The electric energy meter reading method based on the electric energy meter information collection terminal according to claim 4 is characterized in that: Each of the historical meter reading data is frozen and stored according to the corresponding freezing storage depth, including: Extract the memory usage [M1, M2, ..., M] of each of the historical meter reading data i corresponding to the frozen storage depth sorting [1, 2, ..., j] j ]; According to the frozen storage depth, the data storage capacity [MK1, MK2, …, MK k ], freeze each of the historical meter reading data i in the storage depth sorting [1, 2, ..., j] according to its corresponding memory usage [M1, M2, ..., M j ] are stored in each storage repository [1, 2, …, k] in sequence.
6. The electric energy meter reading method based on the electric energy meter information collection terminal according to claim 5 is characterized in that: When the storage bank k stores the historical meter reading data [c, c+1, …, d-1, d], the storage capacity MK corresponding to the storage bank k is k Meet MK k ≥M c +M c+1 +…+M d-1 +M d ; Among them, M c 、M c+1 , …, M d-1 、M d They are respectively represented by the memory usage corresponding to each historical meter reading data c, c+1, ..., d-1, d.
7. The electric energy meter reading method based on the electric energy meter information collection terminal according to claim 5 is characterized in that: According to the frozen storage depth, the data storage capacity [MK1, MK2, …, MK k ], storing each of the historical meter reading data i corresponding to the frozen storage depth sorting [1, 2, ..., j] in each storage repository [1, 2, ..., k] in sequence, including: According to the importance threshold [a mink , a maxk ], for each historical sub-data [Q1, Q2, ..., Q n ] importance [a1, a2, …, a n ] Conduct importance threshold monitoring; When the historical meter reading data i contains historical sub-data Q n The corresponding importance a n does not exist at the corresponding importance threshold [a mink , a maxk ], the control is performed on the corresponding historical sub-data Q n delete; When the historical meter reading data i contains historical sub-data Q n The corresponding importance a n Exists at the corresponding importance threshold [a mink , a maxk ], the corresponding importance threshold [a mink , a maxk ] historical sub-data Q n Stored in the corresponding storage library k.
8. The electric energy meter reading method based on the electric energy meter information collection terminal according to claim 7 is characterized in that: Each historical meter reading data i stored in each storage repository [1, 2, ..., k] is complete data.
9. The electric energy meter reading method based on the electric energy meter information collection terminal according to claim 1 is characterized in that: When the data storage volume exceeds the set storage requirement, the historical sub-data frozen and stored at the corresponding pre-frozen storage depth are deleted and cleaned according to the pre-frozen storage depth of the real-time meter reading data and the preset rules, including: According to the freezing storage factor δ0 of the real-time meter reading data, a pre-frozen storage depth j0 of the real-time meter reading data in the freezing storage depth sequence [1, 2, ..., j] is obtained; According to the pre-frozen storage depth and memory occupancy M0 of the real-time meter reading data, a storage repository e corresponding to the real-time meter reading data is obtained; Extract each of the historical meter reading data i corresponding to the frozen storage depth order [1, 2, ..., j0] before the storage bank e, and sequentially transfer each storage bank [1, 2, ..., e-1] in the direction of decreasing frozen storage depth; The historical meter reading data i that is removed from the storage bin [1, 2, ..., e-1] after being transferred in sequence f Conduct removal monitoring; When there is historical meter reading data i f When the historical meter reading data i is removed from the storage bin [1, 2, ..., e-1], f Perform deletion cleanup.
10. An electric energy meter reading system based on an electric energy information collection terminal, characterized in that: include: A data collection unit, used to collect historical meter reading data; A data splitting unit, used for splitting each of the historical meter reading data according to the importance, to obtain historical sub-data of different importance; An importance calculation unit, used for obtaining the cumulative importance of each of the historical meter reading data according to the historical sub-data of different importance; A storage depth calculation unit, used to determine the frozen storage depth of each of the historical meter reading data based on the upload time and cumulative importance of each of the historical meter reading data; A freezing storage unit, used for freezing and storing each of the historical meter reading data according to a corresponding freezing storage depth; A capacity detection unit, used for acquiring real-time meter reading data and detecting the data storage capacity when the real-time meter reading data is frozen and stored; A cleaning unit, used for deleting and cleaning the historical sub-data frozen and stored at the corresponding pre-frozen storage depth according to preset rules according to the pre-frozen storage depth of the real-time meter reading data when the data storage volume exceeds the set storage requirement; as well as The data storage unit is used to store the real-time meter reading data at the pre-frozen storage depth.
Citation Information
Patent Citations
Intelligent electric meter segmented freezing data storage method and device and intelligent electric meter segmented freezing data query method and device
CN109614447A
Automatic cleaning method and apparatus for expired data, and electronic device
WO2024244400A1