Data collection method and system based on intelligent instrument
By initially compressing power data on smart meters and setting priority transmission, combined with the Huffman coding algorithm of the storage terminal, the problem of high data transmission and storage costs in power data collection is solved, and the collection efficiency and accuracy are improved. .
Patent Information
- Application Number
- CN202410756813.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-13
AI Technical Summary
In the process of power data collection, the cost of data transmission and storage is high, and due to the limited capacity of the communication channel, it is difficult for existing technology to effectively reduce the burden of data transmission and storage and improve collection efficiency.
Smart meters are used to perform the initial compression of real-time power data, and the priority is set according to the growth rate of the data volume. The data is transmitted to the storage terminal from large to small according to the priority, and the Huffman coding algorithm of the storage terminal is combined for secondary compression and storage.
It reduces the storage and transmission costs of smart meters, improves the efficiency of data collection, and ensures the accuracy and reliability of data.
Smart Images

Figure CN118338159B
Abstract
Description
Technical Field
[0001] The present application generally relates to the field of data acquisition technology, and in particular to a data acquisition method and system based on smart meters. Background Art
[0002] As the infrastructure of modern life, the stable operation of the power system is of great significance to daily life. In order to realize the operation status monitoring, energy consumption analysis and power resource planning and dispatching of the power system, it is necessary to collect data from multiple nodes in the power system.
[0003] At present, a patent application document with publication number CN116709061A discloses a power data collection method and system, which is applied to a power collection system, wherein the power collection system includes a master station, a collection terminal and multiple different types of electric meters, wherein the method includes: the master station sends data collection information to the collection terminal, and the data collection information includes a target electric meter and a data type; according to the data collection information and a preset sending instruction rule, the collection terminal determines a target sending mode of the collection instruction; according to the target sending mode of the collection instruction and the data collection information, the collection terminal sends a collection instruction to the target electric meter, so that the target electric meter feeds back data information corresponding to the data type to the collection terminal; the collection terminal sends the received data information to the master station to realize the collection of power data.
[0004] The above method uses a collection terminal to collect power data at different locations in the power system and transmits the power data to the main station. However, due to the limited capacity of the communication channel, the large number of collection terminals and the large amount of power data, data transmission and data storage have brought great challenges. In the process of power data collection, how to reduce the cost of data transmission and data storage and improve data collection efficiency is an urgent problem to be solved. Summary of the invention
[0005] In order to solve the above-mentioned technical problems of the present application, the present application provides a data acquisition method and system based on smart meters, which can reduce the cost of data transmission and data storage during the power data acquisition process and improve data acquisition efficiency.
[0006] In a first aspect of the present application, a data collection method based on smart meters is provided, which is used to collect power data of power grid nodes. The data collection method includes: collecting real-time power data of power grid nodes through smart meters, and the smart meters correspond to the power grid nodes one by one; using a first compression algorithm to perform initial compression on the real-time power data, and storing the initial compressed data in the corresponding smart meter; calculating the data volume growth rate of the smart meter, using the ratio of the remaining storage space of the smart meter to the data volume growth rate as the allowed waiting time, and using the opposite of the allowed waiting time as the priority of the smart meter; transmitting the initial compressed data in the smart meter to the storage terminal in order from large to small priority; using a second compression algorithm to perform secondary compression on the initial compressed data in the storage terminal and store it to realize data collection.
[0007] The beneficial effect is that the real-time power data collected (i.e., the power data within the current collection cycle) is compressed for the first time at the smart meter, and the data after the first compression is stored in the smart meter, which reduces the storage cost of the smart meter and reduces the amount of data that needs to be transmitted later, thereby reducing the data transmission cost; further, considering the large number of smart meters and the limited capacity of the communication channel, the priority of each smart meter is set according to the allowed waiting time, and the first compressed data stored in the smart meter with a shorter allowed waiting time is preferentially transmitted to the storage terminal, and the first compressed data is compressed for the second time at the storage terminal, thereby improving the efficiency of data collection.
[0008] In one embodiment, the real-time power data is the power data within the current collection cycle, the first compression algorithm is a revolving door compression algorithm, and the initial compression process includes: calculating the compression accuracy parameter of the current collection cycle, the compression accuracy parameter is negatively correlated with the variance of the power data in the previous adjacent collection cycle; under the compression accuracy parameter, using the revolving door compression algorithm to perform initial compression on the real-time power data to obtain initial compressed data.
[0009] The beneficial effect is that when the variance of the power data in the previous adjacent collection cycle is large, it is believed that the volatility of the real-time power data is also large. In order to reduce the deviation between the initial compressed data and the real-time power data and ensure the accuracy of data collection, the compression accuracy parameter should be adjusted to a smaller value; at the same time, the compression accuracy parameter directly affects the amount of data of the initial compressed data; therefore, by adaptively determining the compression accuracy parameter based on the variance of the power data in the previous adjacent collection cycle, the data collection accuracy can be guaranteed while reducing the amount of data storage and data transmission.
[0010] In one embodiment, the compression accuracy parameter Satisfies the relationship:
[0011] ;in, is the benchmark compression accuracy parameter, The last adjacent acquisition cycle Internal power data variance.
[0012] In one embodiment, calculating the data volume growth rate of the smart meter includes: collecting the historical data volume growth rate of the smart meter in the historical collection cycle; and taking the maximum value of the historical data volume growth rate as the data volume growth rate of the smart meter.
[0013] In one embodiment, the calculation of the data volume growth rate of the smart meter includes: collecting the historical compression accuracy parameters and the historical data volume of the first compressed data of the smart meter in the historical collection cycle, calculating the ratio of the historical data volume to the collection cycle, and obtaining the historical data volume growth rate corresponding to the historical compression accuracy parameter; calculating the expected compression accuracy parameter of the next adjacent collection cycle, calculating the absolute value of the difference between the expected compression accuracy parameter and the historical compression accuracy parameter, and taking the historical compression accuracy parameter whose absolute value of the difference is less than a set threshold as the sample compression accuracy parameter; taking the maximum value of the historical data volume growth rate corresponding to the sample compression accuracy parameter as the data volume growth rate of the smart meter.
[0014] The beneficial effect is that since the compression accuracy parameter will directly affect the amount of data after the initial compression, that is, for the same power data, when different compression accuracy parameters are used for the initial compression, the amount of data after the initial compression is different, which leads to different data growth rates corresponding to different compression accuracy parameters. Taking the compression accuracy parameter into consideration when determining the data growth rate can improve the accuracy of the data growth rate.
[0015] In one embodiment, transmitting the initial compressed data in the smart meter to the storage terminal in order of priority from large to small includes: for a smart meter of any priority, in response to the storage terminal receiving the initial compressed data of the smart meter, deleting the initial compressed data in the smart meter.
[0016] The beneficial effect is that when the storage terminal successfully receives the first compressed data of the smart meter, the first compressed data in the smart meter is deleted, ensuring that the smart meter has sufficient storage space to collect power data in the next collection cycle.
[0017] In one embodiment, the second compression algorithm is a Huffman coding algorithm, and the use of the second compression algorithm to perform secondary compression and storage on the primary compressed data in the storage terminal includes: after receiving the primary compressed data of a set number of acquisition cycles, obtaining all the primary compressed data of a smart meter; using the Huffman coding algorithm to encode all the primary compressed data of the smart meter to obtain a compressed package of the smart meter, and storing the compressed package in the storage terminal.
[0018] In one embodiment, the priority acquisition method further includes: calculating the time required for the initial compressed data in the smart meter to be transmitted to the storage terminal to obtain the transmission time of the smart meter; sorting each smart meter based on the transmission time and the allowed waiting time to obtain a sorting result, wherein the opposite number of the ranking in the sorting result corresponds to the priority of the smart meter; wherein the allowed waiting time of a smart meter in the sorting result is greater than or equal to the sum of the transmission times of the smart meter and all smart meters before the smart meter.
[0019] The beneficial effect is that: in the sorting results, the allowed waiting time of a smart meter is greater than or equal to the sum of the transmission times of the smart meter and all the smart meters before it. The higher the ranking, the greater the priority of the corresponding smart meter, that is, the initial compressed data stored in the smart meter with a higher ranking is preferentially transmitted to the storage terminal, which can ensure that before the storage space of a smart meter is fully occupied, the initial compressed data of the smart meter and all the smart meters before it are transmitted to the storage terminal, avoiding the inability to collect real-time power data in the next adjacent collection cycle due to the storage space of the smart meter being fully occupied, thereby ensuring the accuracy of data collection.
[0020] In a second aspect of the present application, a data acquisition system based on a smart meter is provided, comprising a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a data acquisition method based on a smart meter according to the first aspect of the present application is implemented.
[0021] The technical solution of this application has the following beneficial technical effects:
[0022] Through the technical solution provided by the present application, first, a smart meter for collecting power data of the power grid node is deployed at the power grid node, and the real-time power data collected (i.e., the power data within the current collection cycle) is initially compressed at the smart meter and then temporarily stored in the smart meter, thereby reducing the storage cost and data transmission cost of the smart meter; further, considering the large number of smart meters and the limited capacity of the communication channel, the priority of each smart meter is set according to the allowed waiting time, and the data stored in the smart meter is transmitted to the storage terminal in descending order of priority, and the initially compressed data is secondary compressed at the storage terminal, and the secondary compressed data is stored in the storage terminal, thereby improving the efficiency of data collection. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become easy to understand. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
[0024] Figure 1 is a flow chart of a data collection method based on a smart meter according to an embodiment of the present application;
[0025] Figure 2 is a schematic diagram of performing initial compression on real-time power data using a revolving door compression algorithm according to an embodiment of the present application;
[0026] Figure 3 It is a block diagram of a data acquisition system based on a smart meter according to an embodiment of the present application. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0028] It should be understood that when the terms "first", "second", etc. are used in the claims, specification and drawings of the present application, they are only used to distinguish different objects, rather than to describe a specific order. The terms "include" and "comprise" used in the specification and claims of the present application indicate the presence of the described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their collections.
[0029] According to the first aspect of the present application, the present application provides a data collection method based on a smart meter, which is used to collect power data of a grid node in a power system. The grid node may be an electric device or a grid access node of an electric user in the grid system, and the present application does not limit this; a smart meter is deployed at each grid node, and the smart meter can collect power data of the corresponding grid node, and the power data is any power parameter sequence such as a current value sequence, a voltage value sequence or a power series.
[0030] Figure 1 1 is a flow chart of a data collection method based on a smart meter according to an embodiment of the present application. Figure 1 As shown, the data collection method 100 based on the smart meter includes steps S101 to S105, which are described in detail below.
[0031] S101, collecting real-time power data of power grid nodes through smart meters, wherein the smart meters correspond to the power grid nodes one by one.
[0032] In one embodiment, in the power system, one grid node corresponds to one smart meter, and the smart meter is provided with a communication module, a data acquisition module and a storage module, the data acquisition module is used to collect the power data of the corresponding grid node in each acquisition cycle, the storage module is used to store the power data collected by the smart meter, and the communication module is used to transmit the power data stored in the smart meter to the storage terminal, the storage terminal can be a data center, and the data center is a computer server specially used for centralized storage and management of large amounts of data. Wherein, the power data is any power parameter sequence such as a current value sequence, a voltage value sequence or a power series.
[0033] Among them, the real-time power data is the power data within the current collection cycle; the collection cycle is 10 minutes. Since the initial compressed data within a collection cycle will be stored in the corresponding smart meter, the collection cycle may be related to the storage capacity of the storage module in the smart meter. The implementer may set the collection cycle based on the storage capacity of the storage module in the smart meter.
[0034] For example, the grid node is an electricity user in the power system. If the power system includes 100 electricity users in total, and each electricity user corresponds to a smart meter, the smart meter can collect the voltage value of the corresponding electricity user at each moment in the current collection cycle. The voltage value at each moment in the current collection cycle corresponds to the real-time power data of the electricity user.
[0035] In this way, the real-time power data of the corresponding grid nodes are collected using smart meters.
[0036] S102: Performing initial compression on the real-time power data using a first compression algorithm, and storing the initial compressed data in a corresponding smart meter.
[0037] In one embodiment, the first compression algorithm is a revolving door compression algorithm, and the use of the first compression algorithm to perform initial compression on the real-time power data includes: obtaining the variance of the power data in the previous adjacent acquisition cycle, and calculating the compression accuracy parameter of the current acquisition cycle based on the variance, wherein the compression accuracy parameter is negatively correlated with the variance; under the compression accuracy parameter, using the revolving door compression algorithm to perform initial compression on the real-time power data to obtain initial compressed data.
[0038] The compression accuracy parameter is a hyperparameter in the revolving door compression algorithm. When the variance of all power data in the previous adjacent collection cycle is large, it is considered that the volatility of real-time power data is large. At this time, the compression accuracy parameter is adjusted to a smaller value to reduce the compression error value, which is used to reflect the deviation between the initial compression data and the real-time power data. The compression accuracy parameter satisfies the relationship:
[0039] ;in, is the benchmark compression accuracy parameter, The last adjacent acquisition cycle The variance of all real-time power data within Current collection cycle The compression accuracy parameter of the benchmark compression accuracy parameter is The value of is 3.
[0040] For details, see Figure 2 , is a schematic diagram of performing initial compression on real-time power data using a revolving door compression algorithm according to an embodiment of the present application. is the starting time of the current collection cycle. The power consumption parameter value at the time is recorded as , the distance The point at the upper compression accuracy parameter is used as the upper support point of the revolving door. The point at the compression accuracy parameter below is used as the lower support point of the revolving door; at this time, the upper support point and The line connecting the two is regarded as the upper door of the revolving door, and the lower fulcrum is The line connecting the upper and lower doors is regarded as the lower door of the revolving door, and the upper and lower doors are in a closed state. Power consumption parameter value at the moment When the upper support point and the power parameter value The line connecting the upper door of the revolving door is regarded as the lower support point and the power parameter value The line connecting the upper and lower doors is regarded as the lower door of the revolving door. At this time, the upper and lower doors are opened from the closed state. The power consumption parameter values in the current collection cycle are continuously collected, and the upper and lower doors are gradually opened (that is, during the opening process, the opening angles of the upper and lower doors are monotonically increasing). The upper door and the lower door are opened to a parallel state at this moment. and ( The line segment between the power consumption parameter value at the moment is replaced by Time to The power consumption parameter values between the times, that is, only need to be stored and Then, the real-time power data can be compressed for the first time. The point at the upper compression accuracy parameter is used as the upper support point of the new revolving door. The point at the compression accuracy parameter below is used as the lower fulcrum of the new revolving door, and the power consumption parameter values in the current collection cycle are compressed again until the initial compression of the real-time power data is completed.
[0041] In one embodiment, the primary compressed data is stored in the corresponding smart meter.
[0042] In other optional embodiments, the first compression algorithm may also be an existing compression algorithm such as an LZW algorithm or an LZ77 algorithm.
[0043] In this way, each smart meter initially compresses the power consumption parameter values within the current collection cycle and stores them in the smart meter. The initially compressed data is subsequently transmitted to the storage terminal, effectively reducing the amount of data that needs to be transmitted.
[0044] S103, calculating the data volume growth rate of the smart meter, taking the ratio of the remaining storage space of the smart meter to the data volume growth rate as the allowed waiting time, and taking the inverse of the allowed waiting time as the priority of the smart meter.
[0045] In one embodiment, since different smart meters are connected to different grid nodes and the variances of real-time power data of different grid nodes within a collection cycle are different, the compression accuracy parameters when the real-time power data is initially compressed in the smart meter are different, which in turn leads to different sizes of the initially compressed data in the smart meter, that is, different amounts of data in the initially compressed data in the smart meter.
[0046] For example, for smart meter 1, if all electricity usage parameter values in the real-time electricity data are equal, only one electricity usage parameter value needs to be stored, and the amount of data compressed initially in smart meter 1 is very small; for smart meter 2, if all electricity usage parameter values in the real-time electricity data are very different, multiple electricity usage parameter values need to be stored, and the amount of data compressed initially in smart meter 2 is relatively large.
[0047] After the current collection cycle ends, the initial compressed data of the current collection cycle in each smart meter needs to be transmitted to the storage terminal for storage. Due to the large number of smart meters and the limited capacity of the communication channel, in order to ensure that all power data can be accurately transmitted to the storage terminal, the priority of all smart meters is calculated and transmitted in order from high to low priority.
[0048] In one embodiment, the data volume growth rate is used to reflect the growth rate of the first compressed data in the smart meter per unit time. For the same power data, different compression accuracy parameters are used for the initial compression, and the data volume after the initial compression is different. Therefore, the data volume growth rates corresponding to different compression accuracy parameters are different. Specifically, the calculation of the data volume growth rate of the smart meter includes: collecting the historical compression accuracy parameters of the smart meter in the historical collection cycle and the historical data volume of the first compressed data, calculating the ratio of the historical data volume to the collection cycle, and obtaining the historical data volume growth rate corresponding to the historical compression accuracy parameter; calculating the expected compression accuracy parameter of the next adjacent collection cycle, calculating the absolute value of the difference between the expected compression accuracy parameter and the historical compression accuracy parameter, and taking the historical compression accuracy parameter whose absolute value of the difference is less than the set threshold as the sample compression accuracy parameter; taking the maximum value of the historical data volume growth rate corresponding to the sample compression accuracy parameter as the data volume growth rate of the smart meter.
[0049] The value of the set threshold is 1.
[0050] In another embodiment, the calculating the data volume growth rate of the smart meter includes: collecting the historical data volume growth rate of the smart meter in the historical collection cycle; and taking the maximum value of the historical data volume growth rate as the data volume growth rate of the smart meter.
[0051] In one embodiment, the allowed waiting time is the time required when the storage space of the smart meter is fully occupied. Therefore, the smaller the allowed waiting time of a smart meter is, the more priority the initial compressed data in the smart meter should be transmitted to the storage terminal. In other words, the smaller the allowed waiting time of the smart meter is, the greater the priority of the smart meter is. Therefore, the opposite of the allowed waiting time can be directly used as the priority of the smart meter.
[0052] In another embodiment, since the amount of data of the first compressed data in each smart meter is different, the transmission time of the first compressed data in the smart meter to the storage terminal is different; therefore, the priority can also be set by comprehensively considering the transmission time and the allowed waiting time. Specifically, the method for obtaining the priority also includes: calculating the time required for the first compressed data in the smart meter to be transmitted to the storage terminal to obtain the transmission time of the smart meter; sorting each smart meter based on the transmission time and the allowed waiting time to obtain a sorting result, and the opposite number of the ranking in the sorting result corresponds to the priority of the smart meter; wherein the allowed waiting time of a smart meter in the sorting result is greater than or equal to the sum of the transmission times of the smart meter and all smart meters before the smart meter.
[0053] For example, for the third smart meter in the sorting result, the allowed waiting time should be greater than or equal to the sum of the transmission times of the third smart meter, the second smart meter and the first smart meter. In this way, it can be ensured that the initial compressed data in the third smart meter, the second smart meter and the first smart meter are transmitted to the storage terminal before the storage space of the third smart meter is fully occupied, thereby avoiding the inability to collect real-time power data in the next adjacent collection cycle due to the storage space of the third smart meter being fully occupied, thereby ensuring the accuracy of data collection.
[0054] It should be noted that there is more than one sorting result that meets the requirements, and it is only necessary to obtain any sorting result that meets the requirements. When there is no sorting result that meets the requirements, it means that the collection cycle is too long and the storage space of the smart meter cannot meet the collection cycle, which means that the collection cycle is set unreasonably and the collection cycle should be reduced until a sorting result can be obtained.
[0055] S104, transmitting the initially compressed data in the smart meter to the storage terminal in order from the highest priority to the lowest priority.
[0056] In one embodiment, the transmitting of the initial compressed data in the smart meter to the storage terminal in order of priority from large to small includes: for a smart meter of any priority, the smart meter transmits the initial compressed data to the storage terminal, and in response to the storage terminal receiving the initial compressed data, the initial compressed data in the smart meter is deleted.
[0057] S105, using a second compression algorithm to perform secondary compression on the initially compressed data in the storage terminal and store the data to achieve data collection.
[0058] In one embodiment, at each interval of a collection cycle, the storage terminal receives the initial compressed data of each smart meter, and after the initial compressed data of a smart meter is received by the storage terminal, the initial compressed data in the smart meter will be deleted to provide storage space for the initial compressed data of the next collection cycle. The storage terminal can receive a large amount of initial compressed data. In order to reduce the cost of data storage and improve data collection efficiency, a second compression algorithm is used to perform a second compression on the initial compressed data in the storage terminal, and the compressed data is stored in the storage terminal to achieve data collection.
[0059] Among them, the second compression algorithm is a Huffman coding algorithm, and the use of the second compression algorithm to perform secondary compression and storage on the primary compressed data in the storage terminal includes: after receiving the primary compressed data of a set number of collection cycles, obtaining all the primary compressed data of a smart meter; using the Huffman coding algorithm to encode all the primary compressed data of the smart meter to obtain a compressed package of the smart meter, and storing the compressed package in the storage terminal.
[0060] Among them, the value of the set number is 150.
[0061] Among them, the Huffman coding algorithm is suitable for data compression of large amounts of data. The Huffman coding algorithm is a frequency-based coding method. By counting the frequency of each character to construct a coding table, high-frequency characters are represented by shorter codes, and low-frequency characters are represented by longer codes to achieve data compression; in the case of large amounts of data, the frequency distribution of characters can better reflect the overall characteristics, making it easier to achieve a higher compression ratio. The revolving door compression algorithm is suitable for data compression of small amounts of data. Therefore, in this application, the revolving door compression algorithm is used to perform the first data compression at the smart meter end to reduce the data transmission cost and the storage cost of the smart meter, and the Huffman coding algorithm is used to perform the second data compression at the storage terminal to reduce the storage cost of the storage terminal.
[0062] In another embodiment, the second compression algorithm may also adopt an existing compression algorithm such as a run length encoding algorithm or an LZ compression algorithm.
[0063] The technical principle and implementation details of the data collection method based on smart meters of the present application are introduced above through specific embodiments. Through the technical solution provided by the present application, firstly, a smart meter for collecting power data of the power grid node is deployed at the power grid node, and the real-time power data collected is compressed for the first time at the smart meter, and then temporarily stored in the smart meter, thereby reducing the storage cost and data transmission cost of the smart meter; further, considering the large number of smart meters and the limited capacity of the communication channel, the priority of each smart meter is set according to the allowed waiting time, and the data stored in the smart meter is transmitted to the storage terminal in order from the highest priority to the lowest priority, and the first compressed data is compressed for the second time at the storage terminal, and the data after the second compression is stored in the storage terminal, thereby improving the efficiency of data collection.
[0064] According to the second aspect of the present application, the present application also provides a data acquisition system based on a smart meter. Figure 3 is a block diagram of a data acquisition system based on a smart meter according to an embodiment of the present application. Figure 3 As shown, the system 50 includes a processor and a memory, the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a data acquisition method based on a smart meter according to the first aspect of the present application is implemented. The system also includes other components well known to those skilled in the art, such as a communication bus and a communication interface, whose settings and functions are known in the art, so they are not described here.
[0065] In the present application, the aforementioned memory may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. For example, a computer-readable storage medium may be any suitable magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory RRAM (Resistive Random Access Memory), a dynamic random access memory DRAM (Dynamic Random Access Memory), a static random access memory SRAM (Static Random-Access Memory), an enhanced dynamic random access memory EDRAM (Enhanced Dynamic Random Access Memory), a high-bandwidth memory HBM (High-Bandwidth Memory), a hybrid memory cube HMC (Hybrid Memory Cube), etc., or any other medium that can be used to store the required information and can be accessed by an application, a module, or both. Any such computer storage medium may be part of a device or accessible or connectable to a device. Any application or module described in this application may be implemented using computer-readable / executable instructions that may be stored or otherwise maintained by such a computer-readable medium.
[0066] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0067] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the patent application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent application shall be subject to the attached claims.
Claims
1. A data collection method based on intelligent instrument, characterized in that: Used to collect power data of power grid nodes, the data collection method includes: Collecting real-time power data of power grid nodes through smart meters, wherein the smart meters correspond one to one with the power grid nodes; Using a first compression algorithm to initially compress the real-time power data, and storing the initially compressed data in a corresponding smart meter; Calculate the data volume growth rate of the smart meter, use the ratio of the remaining storage space of the smart meter to the data volume growth rate as the allowed waiting time, and use the inverse of the allowed waiting time as the priority of the smart meter; The primary compressed data in the smart meter is transmitted to the storage terminal in order of priority from large to small; the primary compressed data in the storage terminal is secondary compressed and stored using a second compression algorithm to realize data collection; The real-time power data is power data in a current collection cycle, the first compression algorithm is a revolving door compression algorithm, and the initial compression process includes: Calculating a compression accuracy parameter of a current acquisition cycle, wherein the compression accuracy parameter is negatively correlated with a variance of power data in a previous adjacent acquisition cycle; Under the compression accuracy parameters, the real-time power data is initially compressed using the revolving door compression algorithm to obtain initially compressed data.
2. The data collection method based on intelligent instrument according to claim 1 is characterized in that: The compression precision parameter Satisfies the relationship: ;in, is the benchmark compression accuracy parameter, The last adjacent acquisition cycle Internal power data variance.
3. The data collection method based on intelligent instrument according to claim 1 is characterized in that: The data volume growth rate of the computing smart meter includes: Collecting the historical compression accuracy parameter and the historical data volume of the first compressed data of the smart meter in the historical collection cycle, calculating the ratio of the historical data volume to the collection cycle, and obtaining the historical data volume growth rate corresponding to the historical compression accuracy parameter; Calculate the expected compression accuracy parameter of the next adjacent acquisition cycle, calculate the absolute value of the difference between the expected compression accuracy parameter and the historical compression accuracy parameter, and use the historical compression accuracy parameter whose absolute value of the difference is less than the set threshold as the sample compression accuracy parameter; The maximum value of the historical data volume growth rate corresponding to the sample compression accuracy parameter is used as the data volume growth rate of the smart meter.
4. The data collection method based on intelligent instrument according to claim 1 is characterized in that: The data volume growth rate of the computing smart meter includes: Collect the growth rate of the historical data volume of the smart meter in the historical collection cycle; The maximum value of the historical data volume growth rate is used as the data volume growth rate of the smart meter.
5. The data collection method based on intelligent instrument according to claim 1 is characterized in that: The method of transmitting the first compressed data in the smart meter to the storage terminal in order of priority from large to small includes: For a smart meter of any priority, in response to the storage terminal receiving the initial compressed data of the smart meter, the initial compressed data in the smart meter is deleted.
6. The data collection method based on intelligent instrument according to claim 1 is characterized in that: The second compression algorithm is a Huffman coding algorithm, and the second compression algorithm is used to perform secondary compression on the primary compressed data in the storage terminal and store the data, including: After receiving the initial compressed data of a set number of collection cycles, all the initial compressed data of a smart meter are obtained; All the primary compressed data of the smart meter are encoded by using the Huffman coding algorithm to obtain a compressed package of the smart meter, and the compressed package is stored in the storage terminal.
7. A data collection method based on smart meters according to any one of claims 1 to 6, characterized in that: The priority acquisition method also includes: Calculate the time required for initially transmitting compressed data in the smart meter to the storage terminal to obtain the transmission time of the smart meter; Sorting each smart meter based on the transmission time and the allowed waiting time to obtain a sorting result, wherein the opposite number of the ranking in the sorting result corresponds to the priority of the smart meter; The allowed waiting time of a smart meter in the sorting result is greater than or equal to the sum of the transmission time of the smart meter and all smart meters before the smart meter.
8. A data acquisition system based on intelligent instruments, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a data collection method based on a smart meter according to any one of claims 1 to 7 is implemented.
