Page buffering method and system for electric energy meter data and readable storage medium
By buffering pages in memory, predicting and taking out the power meter data that the main station needs to call in advance, the problem of slow return of terminal data and re-retrieving data is solved, which significantly improves the call rate and efficiency.
Patent Information
- Application Number
- CN202411260009.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2025-02-11
AI Technical Summary
In the prior art, when the terminal reads a large amount of power meter data, the data return is slow, which affects the main station's reading efficiency, and needs to re-retrieve the data every time it is queried, resulting in low efficiency.
By buffering the page in memory, predict the content that the main site needs to call next, and take it out in advance and put it into the buffered page, reducing the data retrieval time during the next call.
It significantly improves the reading rate, reduces data retrieval time, and improves the efficiency of the reading on the main site.
Smart Images

Figure CN119415788A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electric energy meters and data processing, and more specifically, to a page buffering method, system and readable storage medium for electric energy meter data. Background Art
[0002] In the existing centralized meter reading environment, one terminal collects data from approximately 200 to 500 electric energy meters, and in large areas there are even more than 1,000 meters. When the master station reads the electric energy meter data collected by the terminal, it cannot send all the data in one frame due to the large number of meters, and the master station mostly chooses to read in frames.
[0003] In current technology, the terminal needs to re-retrieve data every time data is queried. When the terminal runs for a long time and stores a lot of data, the data returns slowly, affecting the efficiency of the main station's reading. Summary of the invention
[0004] The purpose of the present invention is to provide a page buffering method, system and readable storage medium for electric energy meter data, which can predict and expand the call-up message of the main station, and take out the content that is predicted to be needed to be called up by the main station next and put it into the memory page. In this way, when the next call is made, data can be directly retrieved from the small table of the memory page, which significantly improves the call-up rate.
[0005] A first aspect of the present invention provides a page buffering method for electric energy meter data, comprising the following steps:
[0006] Initialize the memory buffer page to receive the call-read command to obtain initial call-read data, wherein the initial call-read data includes basic data, a time interval, and a call-read electric energy meter set;
[0007] Based on the initial call-read data, a set comparison of electric energy meters and a time interval transformation are performed to obtain target call-read data, wherein both the initial call-read data and the target call-read data are data sets;
[0008] Retrieving the terminal stored data based on the target called data as a retrieval condition, and storing the retrieval result in a buffer page;
[0009] Find the matching data matching the initial read data condition from the buffer page until all the matching data are located in the target read data.
[0010] In this solution, the initialization of the memory buffer page to receive the read command to obtain the initial read data specifically includes:
[0011] Obtaining a memory buffer page and initializing the memory buffer page;
[0012] A command for calling the master station to read the electric energy meter is received, and the electric energy meter data called by the master station is dimensionally differentiated to obtain the initial reading data, wherein the electric energy meter data called by the master station includes the daily frozen data, the monthly frozen data and the curve data of the electric energy meter, wherein:
[0013] Acquire the basic data based on the data dimension of the electric energy meter data called by the master station, wherein the basic data specifically includes data;
[0014] The time interval is obtained based on the time dimension of the electric energy meter data read by the master station, and the time interval specifically includes t1_zone;
[0015] The called-up electric energy meter set is obtained based on the electric energy meter dimension of the electric energy meter data called-up by the master station, and the called-up electric energy meter set specifically includes a set M.
[0016] In this solution, the comparison of the electric energy meter set is performed based on the initial read data, specifically including:
[0017] Acquire a terminal profile set, wherein the terminal profile set specifically includes a set N;
[0018] Based on the comparison between the called-up electric energy meter set and the terminal file set, wherein:
[0019] like The terminal file set is then used to replace the called-up electric energy meter set.
[0020] In this solution, the time interval transformation is performed based on the initial call-up data, specifically including:
[0021] Get the time interval t1_zone;
[0022] The end time is determined based on the time interval t1_zone, wherein:
[0023] If the end time is not zero, the time interval is time-transformed to obtain a transformation interval, specifically, the transformation interval t2_zone is obtained by stretching the time interval until the end time is zero.
[0024] In this solution, the terminal storage data is searched based on the target call data as a search condition, and the search result is stored in a buffer page, specifically including:
[0025] Obtaining the target call data based on the based data, the transformation interval and the terminal file set;
[0026] The target called data is used as a search condition to search the terminal storage data, and the search result is stored in the buffer page, wherein the search condition includes {data, t2_zone, N}.
[0027] In this solution, the step of finding matching data matching the initial read data condition from the buffer page until all the matching data are located in the target read data specifically includes:
[0028] Finding matching data matching the initial read data condition from the buffer page, wherein the initial read data condition includes {data, t1_zone, M};
[0029] The matching data is returned to the main station, and a new call-read command is received to determine whether the new initial call-read data is within the search condition. If not, the prediction fails, and the program jumps to the initialization memory buffer page and executes again until all the matching data are located in the target call-read data.
[0030] A second aspect of the present invention further provides a page buffering system for electric energy meter data, comprising a memory and a processor, wherein the memory comprises a page buffering method program for electric energy meter data, and when the page buffering method program for electric energy meter data is executed by the processor, the following steps are implemented:
[0031] Initialize the memory buffer page to receive the call-read command to obtain initial call-read data, wherein the initial call-read data includes basic data, a time interval, and a call-read electric energy meter set;
[0032] Based on the initial call-read data, a set comparison of electric energy meters and a time interval transformation are performed to obtain target call-read data, wherein both the initial call-read data and the target call-read data are data sets;
[0033] Retrieving the terminal stored data based on the target called data as a retrieval condition, and storing the retrieval result in a buffer page;
[0034] Find the matching data matching the initial read data condition from the buffer page until all the matching data are located in the target read data.
[0035] In this solution, the initialization of the memory buffer page to receive the read command to obtain the initial read data specifically includes:
[0036] Obtaining a memory buffer page and initializing the memory buffer page;
[0037] A command for calling the master station to read the electric energy meter is received, and the electric energy meter data called by the master station is dimensionally differentiated to obtain the initial reading data, wherein the electric energy meter data called by the master station includes the daily frozen data, the monthly frozen data and the curve data of the electric energy meter, wherein:
[0038] Acquire the basic data based on the data dimension of the electric energy meter data called by the master station, wherein the basic data specifically includes data;
[0039] The time interval is obtained based on the time dimension of the electric energy meter data read by the master station, and the time interval specifically includes t1_zone;
[0040] The called-up electric energy meter set is obtained based on the electric energy meter dimension of the electric energy meter data called-up by the master station, and the called-up electric energy meter set specifically includes a set M.
[0041] In this solution, the comparison of the electric energy meter set is performed based on the initial read data, specifically including:
[0042] Acquire a terminal profile set, wherein the terminal profile set specifically includes a set N;
[0043] Based on the comparison between the called-up electric energy meter set and the terminal file set, wherein:
[0044] like The terminal file set is then used to replace the called-up electric energy meter set.
[0045] In this solution, the time interval transformation is performed based on the initial call-up data, specifically including:
[0046] Get the time interval t1_zone;
[0047] The end time is determined based on the time interval t1_zone, wherein:
[0048] If the end time is not zero, the time interval is time-transformed to obtain a transformation interval, specifically, the transformation interval t2_zone is obtained by stretching the time interval until the end time is zero.
[0049] In this solution, the terminal storage data is searched based on the target call data as a search condition, and the search result is stored in a buffer page, specifically including:
[0050] Obtaining the target call data based on the based data, the transformation interval and the terminal file set;
[0051] The target called data is used as a search condition to search the terminal storage data, and the search result is stored in the buffer page, wherein the search condition includes {data, t2_zone, N}.
[0052] In this solution, the step of finding matching data matching the initial read data condition from the buffer page until all the matching data are located in the target read data specifically includes:
[0053] Finding matching data matching the initial read data condition from the buffer page, wherein the initial read data condition includes {data, t1_zone, M};
[0054] The matching data is returned to the main station, and a new call-read command is received to determine whether the new initial call-read data is within the search condition. If not, the prediction fails, and the program jumps to the initialization memory buffer page and executes again until all the matching data are located in the target call-read data.
[0055] A third aspect of the present invention provides a computer-readable storage medium, which includes a page buffering method program for electric meter data of a machine. When the page buffering method program for electric meter data is executed by a processor, the steps of a page buffering method for electric meter data as described in any one of the above items are implemented.
[0056] The present invention discloses a page buffering method, system and readable storage medium for electric energy meter data, which can predict and expand the call-up message of the main station, and first extract and put the content predicted that the main station will need to call-up next into the memory page, so that when the next call-up is made, data can be directly retrieved from the small table of the memory page, which significantly improves the call-up rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 A step diagram showing a method for page buffering of electric energy meter data according to the present invention;
[0058] Figure 2 A flow chart showing a method for page buffering of electric energy meter data according to the present invention is shown;
[0059] Figure 3 A block diagram of a page buffer system for electric energy meter data according to the present invention is shown. DETAILED DESCRIPTION
[0060] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0061] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0062] Figure 1 A flow chart of a method for page buffering of electric energy meter data of the present application is shown.
[0063] like Figure 1 As shown, the present application discloses a page buffering method for electric energy meter data, comprising the following steps:
[0064] S102, initializing a memory buffer page to receive a read command to obtain initial read data, wherein the initial read data includes basic data, a time interval, and a read electric energy meter set;
[0065] S104, performing a comparison of an electric energy meter set and a time interval conversion based on the initial call-read data to obtain target call-read data, wherein both the initial call-read data and the target call-read data are data sets;
[0066] S106, searching the terminal storage data based on the target called data as a search condition, and storing the search result in a buffer page;
[0067] S108, finding matching data matching the initial read data condition from the buffer page until all the matching data are located in the target read data.
[0068] It should be noted that, in this embodiment, Figure 2 As shown, the memory buffer page is initialized, a call-read command is received, and three elements are integrated to obtain initial call-read data, wherein the initial call-read data includes basic data data, time interval t1_zone, and a call-read electric energy meter set M, thereby performing electric energy meter set comparison and time interval transformation based on the initial call-read data to obtain target call-read data, wherein the transformation interval is obtained after the time interval transformation, and the terminal file set is replaced after the electric energy meter set comparison, and finally the target call-read data is obtained based on the base data, the transformation interval, and the terminal file set, thereby retrieving the terminal storage data based on the target call-read data as a retrieval condition, and The search results are stored in a buffer page. Accordingly, the search conditions correspond to {data, t2_zone, N}, and matching data that matches the initial data call conditions are found from the buffer page until all the matching data are located in the target data call, which includes set judgment to perform loop processing until all the matching data are located in the target data call and then stop prediction. At this point, by predicting and expanding the main station's call message, the content that is predicted to be needed by the main station next is taken out and placed in the memory page. In this way, when the next call is made, data retrieval can be directly performed from the small table in the memory page, which significantly improves the call rate.
[0069] According to an embodiment of the present invention, the initialization of the memory buffer page to receive the read command to obtain the initial read data specifically includes:
[0070] Obtaining a memory buffer page and initializing the memory buffer page;
[0071] A command for calling the master station to read the electric energy meter is received, and the electric energy meter data called by the master station is dimensionally differentiated to obtain the initial reading data, wherein the electric energy meter data called by the master station includes the daily frozen data, the monthly frozen data and the curve data of the electric energy meter, wherein:
[0072] Acquire the basic data based on the data dimension of the electric energy meter data called by the master station, wherein the basic data specifically includes data;
[0073] The time interval is obtained based on the time dimension of the electric energy meter data read by the master station, and the time interval specifically includes t1_zone;
[0074] The called-up electric energy meter set is obtained based on the electric energy meter dimension of the electric energy meter data called-up by the master station, and the called-up electric energy meter set specifically includes a set M.
[0075] It should be noted that, in the present embodiment, the electric energy meter data called up by the master station mainly consists of the daily frozen data, monthly frozen data, curve data and other data of the electric energy meter. Therefore, the called-up electric energy meter data can be divided into three dimensions, namely data data, time interval t1_zone and called-up electric energy meter set M. Specifically, firstly, a memory buffer page is obtained and the memory buffer page is initialized; a call-up command of the electric energy meter called up by the master station is received, and the electric energy meter data called up by the master station is dimensionally differentiated to obtain the initial call-up data. The electric energy meter data called up by the master station includes the daily frozen data, monthly frozen data and curve data of the electric energy meter. The basic data is obtained based on the data dimension of the electric energy meter data called up by the master station, and the basic data specifically includes data; the time interval is obtained based on the time dimension of the electric energy meter data called up by the master station, and the time interval specifically includes t1_zone; the called-up electric energy meter set is obtained based on the electric meter dimension of the electric energy meter data called up by the master station, and the called-up electric energy meter set specifically includes set M.
[0076] According to an embodiment of the present invention, performing comparison of a set of electric energy meters based on the initial read data specifically includes:
[0077] Acquire a terminal profile set, wherein the terminal profile set specifically includes a set N;
[0078] Based on the comparison between the called-up electric energy meter set and the terminal file set, wherein:
[0079] like The terminal file set is then used to replace the called-up electric energy meter set.
[0080] It should be noted that, in this embodiment, the called-up electric energy meter set M is compared with the terminal file set N. If That means that the called-up electric meters are all in the archive. At this time, the terminal archive set N is used to replace the called-up set M. Specifically, the terminal archive set is first obtained, and the terminal archive set specifically includes the set N; then the called-up electric energy meter set is compared with the terminal archive set. If The terminal file set is then used to replace the called-up electric energy meter set.
[0081] According to an embodiment of the present invention, performing time interval transformation based on the initial call-up data specifically includes:
[0082] Get the time interval t1_zone;
[0083] The end time is determined based on the time interval t1_zone, wherein:
[0084] If the end time is not zero, the time interval is time-transformed to obtain a transformation interval, specifically, the transformation interval t2_zone is obtained by stretching the time interval until the end time is zero.
[0085] It should be noted that, in this embodiment, when applied, the time interval t1_zone is judged, and if the end time is not zero o'clock, the time interval is extended to a new interval t2_zone with an end time of zero o'clock as the transformation interval. Specifically, the time interval t1_zone is obtained; the end time is judged based on the time interval t1_zone, wherein, if the end time is not zero o'clock, the time interval is transformed to obtain a transformation interval, specifically, the transformation interval t2_zone is obtained by extending it to the end time of zero o'clock.
[0086] According to an embodiment of the present invention, searching the terminal stored data based on the target called data as a search condition and storing the search result in a buffer page specifically includes:
[0087] Obtaining the target call data based on the based data, the transformation interval and the terminal file set;
[0088] The target called data is used as a search condition to search the terminal storage data, and the search result is stored in the buffer page, wherein the search condition includes {data, t2_zone, N}.
[0089] It should be noted that, in this embodiment, the target call data is first obtained based on the data, the transformation interval and the terminal file set, and then the terminal storage data is retrieved using the target call data as a retrieval condition, and the retrieved retrieval result is stored in the buffer page, and the retrieval condition includes {data, t2_zone, N}.
[0090] According to an embodiment of the present invention, the step of finding matching data matching the initial read data condition from the buffer page until all the matching data are located in the target read data specifically includes:
[0091] Finding matching data matching the initial read data condition from the buffer page, wherein the initial read data condition includes {data, t1_zone, M};
[0092] The matching data is returned to the main station, and a new call-read command is received to determine whether the new initial call-read data is within the search condition. If not, the prediction fails, and the program jumps to the initialization memory buffer page and executes again until all the matching data are located in the target call-read data.
[0093] It should be noted that, in this embodiment, data matching {data, t1_zone, M} is found from the buffer page, and returned to the main station, and a new read command is received to determine whether the new initial read data corresponding to ({data, t1_zone, M}) is within the search condition corresponding to ({data, t2_zone, N}). If so, the prediction is successful, and matching data is continued to be found from the buffer page; if not, the prediction fails, then jump to the initialized memory buffer page and re-execute. Specifically, matching data matching the initial read data condition is found from the buffer page, wherein the initial read data condition includes {data, t1_zone, M}; the matching data is returned to the main station, and a new read command is received to determine whether the new initial read data is within the search condition. If not, the prediction fails, and jump to the initialized memory buffer page and re-execute until all the matching data are located in the target read data.
[0094] Figure 3 A block diagram of a page buffer system for electric energy meter data according to the present invention is shown.
[0095] like Figure 3 As shown, the present invention discloses a page buffering system for electric energy meter data, including a memory and a processor, wherein the memory includes a page buffering method program for electric energy meter data, and when the page buffering method program for electric energy meter data is executed by the processor, the following steps are implemented:
[0096] Initialize the memory buffer page to receive the call-read command to obtain initial call-read data, wherein the initial call-read data includes basic data, a time interval, and a call-read electric energy meter set;
[0097] Based on the initial call-read data, a set comparison of electric energy meters and a time interval transformation are performed to obtain target call-read data, wherein both the initial call-read data and the target call-read data are data sets;
[0098] Retrieving the terminal stored data based on the target called data as a retrieval condition, and storing the retrieval result in a buffer page;
[0099] Find the matching data matching the initial read data condition from the buffer page until all the matching data are located in the target read data.
[0100] It should be noted that, in this embodiment, Figure 2 As shown, the memory buffer page is initialized, a call-read command is received, and three elements are integrated to obtain initial call-read data, wherein the initial call-read data includes basic data data, time interval t1_zone, and a call-read electric energy meter set M, thereby performing electric energy meter set comparison and time interval transformation based on the initial call-read data to obtain target call-read data, wherein the transformation interval is obtained after the time interval transformation, and the terminal file set is replaced after the electric energy meter set comparison, and finally the target call-read data is obtained based on the base data, the transformation interval, and the terminal file set, thereby retrieving the terminal storage data based on the target call-read data as a retrieval condition, and The search results are stored in a buffer page. Accordingly, the search conditions correspond to {data, t2_zone, N}, and matching data that matches the initial data call conditions are found from the buffer page until all the matching data are located in the target data call, which includes set judgment to perform loop processing until all the matching data are located in the target data call and then stop prediction. At this point, by predicting and expanding the main station's call message, the content that is predicted to be needed by the main station next is taken out and placed in the memory page. In this way, when the next call is made, data retrieval can be directly performed from the small table in the memory page, which significantly improves the call rate.
[0101] According to an embodiment of the present invention, the initialization of the memory buffer page to receive the read command to obtain the initial read data specifically includes:
[0102] Obtaining a memory buffer page and initializing the memory buffer page;
[0103] A command for calling the master station to read the electric energy meter is received, and the electric energy meter data called by the master station is dimensionally differentiated to obtain the initial reading data, wherein the electric energy meter data called by the master station includes the daily frozen data, the monthly frozen data and the curve data of the electric energy meter, wherein:
[0104] Acquire the basic data based on the data dimension of the electric energy meter data called by the master station, wherein the basic data specifically includes data;
[0105] The time interval is obtained based on the time dimension of the electric energy meter data read by the master station, and the time interval specifically includes t1_zone;
[0106] The called-up electric energy meter set is obtained based on the electric energy meter dimension of the electric energy meter data called-up by the master station, and the called-up electric energy meter set specifically includes a set M.
[0107] It should be noted that, in the present embodiment, the electric energy meter data called up by the master station mainly consists of the daily frozen data, monthly frozen data, curve data and other data of the electric energy meter. Therefore, the called-up electric energy meter data can be divided into three dimensions, namely data data, time interval t1_zone and called-up electric energy meter set M. Specifically, firstly, a memory buffer page is obtained and the memory buffer page is initialized; a call-up command of the electric energy meter called up by the master station is received, and the electric energy meter data called up by the master station is dimensionally differentiated to obtain the initial call-up data. The electric energy meter data called up by the master station includes the daily frozen data, monthly frozen data and curve data of the electric energy meter. The basic data is obtained based on the data dimension of the electric energy meter data called up by the master station, and the basic data specifically includes data; the time interval is obtained based on the time dimension of the electric energy meter data called up by the master station, and the time interval specifically includes t1_zone; the called-up electric energy meter set is obtained based on the electric meter dimension of the electric energy meter data called up by the master station, and the called-up electric energy meter set specifically includes set M.
[0108] According to an embodiment of the present invention, performing comparison of a set of electric energy meters based on the initial read data specifically includes:
[0109] Acquire a terminal profile set, wherein the terminal profile set specifically includes a set N;
[0110] Based on the comparison between the called-up electric energy meter set and the terminal file set, wherein:
[0111] like The terminal file set is then used to replace the called-up electric energy meter set.
[0112] It should be noted that, in this embodiment, the called-up electric energy meter set M is compared with the terminal file set N. If That means that the called-up electric meters are all in the archive. At this time, the terminal archive set N is used to replace the called-up set M. Specifically, the terminal archive set is first obtained, and the terminal archive set specifically includes the set N; then the called-up electric energy meter set is compared with the terminal archive set. If The terminal file set is then used to replace the called-up electric energy meter set.
[0113] According to an embodiment of the present invention, performing time interval transformation based on the initial call-up data specifically includes:
[0114] Get the time interval t1_zone;
[0115] The end time is determined based on the time interval t1_zone, wherein:
[0116] If the end time is not zero, the time interval is time-transformed to obtain a transformation interval, specifically, the transformation interval t2_zone is obtained by stretching the time interval until the end time is zero.
[0117] It should be noted that, in this embodiment, when applied, the time interval t1_zone is judged, and if the end time is not zero o'clock, the time interval is extended to a new interval t2_zone with an end time of zero o'clock as the transformation interval. Specifically, the time interval t1_zone is obtained; the end time is judged based on the time interval t1_zone, wherein, if the end time is not zero o'clock, the time interval is transformed to obtain a transformation interval, specifically, the transformation interval t2_zone is obtained by extending it to the end time of zero o'clock.
[0118] According to an embodiment of the present invention, searching the terminal stored data based on the target called data as a search condition and storing the search result in a buffer page specifically includes:
[0119] Obtaining the target call data based on the based data, the transformation interval and the terminal file set;
[0120] The target called data is used as a search condition to search the terminal storage data, and the search result is stored in the buffer page, wherein the search condition includes {data, t2_zone, N}.
[0121] It should be noted that, in this embodiment, the target call data is first obtained based on the data, the transformation interval and the terminal file set, and then the terminal storage data is retrieved using the target call data as a retrieval condition, and the retrieved retrieval result is stored in the buffer page, and the retrieval condition includes {data, t2_zone, N}.
[0122] According to an embodiment of the present invention, the step of finding matching data matching the initial read data condition from the buffer page until all the matching data are located in the target read data specifically includes:
[0123] Finding matching data matching the initial read data condition from the buffer page, wherein the initial read data condition includes {data, t1_zone, M};
[0124] The matching data is returned to the main station, and a new call-read command is received to determine whether the new initial call-read data is within the search condition. If not, the prediction fails, and the program jumps to the initialization memory buffer page and executes again until all the matching data are located in the target call-read data.
[0125] It should be noted that, in this embodiment, data matching {data, t1_zone, M} is found from the buffer page, and returned to the main station, and a new read command is received to determine whether the new initial read data corresponding to ({data, t1_zone, M}) is within the search condition corresponding to ({data, t2_zone, N}). If so, the prediction is successful, and matching data is continued to be found from the buffer page; if not, the prediction fails, then jump to the initialized memory buffer page and re-execute. Specifically, matching data matching the initial read data condition is found from the buffer page, wherein the initial read data condition includes {data, t1_zone, M}; the matching data is returned to the main station, and a new read command is received to determine whether the new initial read data is within the search condition. If not, the prediction fails, and jump to the initialized memory buffer page and re-execute until all the matching data are located in the target read data.
[0126] A third aspect of the present invention provides a computer-readable storage medium, which includes a page buffering method program for electric energy meter data. When the page buffering method program for electric energy meter data is executed by a processor, the steps of a page buffering method for electric energy meter data as described in any one of the above items are implemented.
[0127] The present invention discloses a page buffering method, system and readable storage medium for electric energy meter data, which can predict and expand the call-up message of the main station, and first extract and put the content predicted that the main station will need to call-up next into the memory page, so that when the next call-up is made, data can be directly retrieved from the small table of the memory page, which significantly improves the call-up rate.
[0128] 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. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0129] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0130] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0131] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiments; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks or optical disks, and other media that can store program codes.
[0132] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
Claims
1. A page buffering method for electric energy meter data, characterized in that: The following steps are involved: Initialize the memory buffer page to receive the call-read command to obtain initial call-read data, wherein the initial call-read data includes basic data, a time interval, and a call-read electric energy meter set; Based on the initial call-read data, a set comparison of electric energy meters and a time interval transformation are performed to obtain target call-read data, wherein both the initial call-read data and the target call-read data are data sets; Retrieving the terminal stored data based on the target called data as a retrieval condition, and storing the retrieval result in a buffer page; Find the matching data matching the initial read data condition from the buffer page until all the matching data are located in the target read data.
2. A page buffering method for electric energy meter data according to claim 1, characterized in that: The initialization of the memory buffer page to receive the read command to obtain the initial read data specifically includes: Obtaining a memory buffer page and initializing the memory buffer page; A command for calling the master station to read the electric energy meter is received, and the electric energy meter data called by the master station is dimensionally differentiated to obtain the initial reading data, wherein the electric energy meter data called by the master station includes the daily frozen data, the monthly frozen data and the curve data of the electric energy meter, wherein: Acquire the basic data based on the data dimension of the electric energy meter data called by the master station, wherein the basic data specifically includes data; The time interval is obtained based on the time dimension of the electric energy meter data read by the master station, and the time interval specifically includes t1_zone; The called-up electric energy meter set is obtained based on the electric energy meter dimension of the electric energy meter data called-up by the master station, and the called-up electric energy meter set specifically includes a set M.
3. A page buffering method for electric energy meter data according to claim 2, characterized in that: The method of comparing the electric energy meter sets based on the initial read data specifically includes: Acquire a terminal profile set, wherein the terminal profile set specifically includes a set N; Based on the comparison between the called-up electric energy meter set and the terminal file set, wherein: If the collection Set N, then the terminal file set replaces the called-up electric energy meter set.
4. A page buffering method for electric energy meter data according to claim 3, characterized in that: The time interval transformation is performed based on the initial read data, specifically including: Get the time interval t1_zone; The end time is determined based on the time interval t1_zone, wherein: If the end time is not zero, the time interval is time-transformed to obtain a transformation interval, specifically, the transformation interval t2_zone is obtained by stretching the time interval until the end time is zero.
5. A page buffering method for electric energy meter data according to claim 4, characterized in that: The step of retrieving the terminal stored data based on the target called data as a retrieval condition and storing the retrieval result in a buffer page specifically includes: Obtaining the target call data based on the based data, the transformation interval and the terminal file set; The target called data is used as a search condition to search the terminal storage data, and the search result is stored in the buffer page, wherein the search condition includes {data, t2_zone, N}.
6. A page buffering method for electric energy meter data according to claim 5, characterized in that: The step of finding matching data matching the initial read data condition from the buffer page until all the matching data are located in the target read data specifically includes: Finding matching data matching the initial read data condition from the buffer page, wherein the initial read data condition includes {data, t1_zone, M}; The matching data is returned to the main station, and a new call-read command is received to determine whether the new initial call-read data is within the search condition. If not, the prediction fails, and the program jumps to the initialization memory buffer page and executes again until all the matching data are located in the target call-read data.
7. A page buffer system for electric energy meter data, characterized in that: The method comprises a memory and a processor, wherein the memory comprises a page buffering method program for electric energy meter data, and when the page buffering method program for electric energy meter data is executed by the processor, the following steps are implemented: Initialize the memory buffer page to receive the call-read command to obtain initial call-read data, wherein the initial call-read data includes basic data, a time interval, and a call-read electric energy meter set; Based on the initial call-read data, a set comparison of electric energy meters and a time interval transformation are performed to obtain target call-read data, wherein both the initial call-read data and the target call-read data are data sets; Retrieving the terminal stored data based on the target called data as a retrieval condition, and storing the retrieval result in a buffer page; Find the matching data matching the initial read data condition from the buffer page until all the matching data are located in the target read data.
8. The page buffer system for electric energy meter data according to claim 7, characterized in that: The initialization of the memory buffer page to receive the read command to obtain the initial read data specifically includes: Obtaining a memory buffer page and initializing the memory buffer page; A command for calling the master station to read the electric energy meter is received, and the electric energy meter data called by the master station is dimensionally differentiated to obtain the initial reading data, wherein the electric energy meter data called by the master station includes the daily frozen data, the monthly frozen data and the curve data of the electric energy meter, wherein: Acquire the basic data based on the data dimension of the electric energy meter data called by the master station, wherein the basic data specifically includes data; The time interval is obtained based on the time dimension of the electric energy meter data read by the master station, and the time interval specifically includes t1_zone; The called-up electric energy meter set is obtained based on the electric energy meter dimension of the electric energy meter data called-up by the master station, and the called-up electric energy meter set specifically includes a set M.
9. A page buffer system for electric energy meter data according to claim 8, characterized in that: The step of performing a comparison of electric energy meter sets and a time interval transformation based on the initial reading data to obtain target reading data specifically includes: Acquire a terminal profile set, wherein the terminal profile set specifically includes a set N; Based on the comparison between the called-up electric energy meter set and the terminal file set, wherein: If the collection Set N, then the terminal file set is used to replace the called-up electric energy meter set; Get the time interval t1_zone; The end time is determined based on the time interval t1_zone, wherein: If the end time is not zero, the time interval is time-transformed to obtain a transformation interval, specifically, the transformation interval t2_zone is obtained by stretching the time interval until the end time is zero. The target call data is obtained based on the based data, the transformation interval and the terminal file set.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a page buffering method program for electric energy meter data. When the page buffering method program for electric energy meter data is executed by a processor, the steps of a page buffering method for electric energy meter data as claimed in any one of claims 1 to 6 are implemented.