Data decompression system for power data
By designing non-universal data formats and data decompression systems in distributed energy grid-connected monitoring, the problems of wasted storage space and transmission pressure caused by universal data formats are solved, and more efficient data storage and transmission are achieved. Suitable for real-time monitoring and dynamic transmission of distributed energy resources.
Patent Information
- Application Number
- CN202311262190.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-01
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2043-03-01
AI Technical Summary
In the existing technology for distributed energy grid-connected monitoring, the universal data format leads to a waste of storage space and an increase in transmission pressure, making it difficult to meet the needs of the edge computing layer.
Design a non-universal data format. Through the data compression and decompression system, the 32-bit floating point numbers are compressed into 24-bit floating point numbers. The storage module, segmentation module, decompression module and splicing module are used to perform data segmentation, right shift and left shift. Move and splice to achieve data decompression and reduce storage space and transmission pressure.
It effectively saves data storage space and transmission pressure, ensures data accuracy and availability, and is suitable for dynamic real-time monitoring and summary transmission of distributed energy resources.
Smart Images

Figure CN117200803B
Abstract
Description
[0001] This application is a divisional application of a patent application with an application date of March 1, 2023, application number 2023102129957, and invention name as data decompression system, method and equipment for distributed energy grid monitoring. Technical Field
[0002] The present disclosure relates to the field of data compression, and in particular to a data decompression system for power data. Background Art
[0003] The installed capacity of distributed green energy represented by wind power and photovoltaic power is increasing day by day. When the State Grid accesses distributed energy such as photovoltaic power and wind power, it needs to monitor the real-time data such as the status of grid-connected equipment, access voltage, current, and electrical phase balance, and transmit massive data to the power supply and distribution command center through wireless networks, public networks, and private networks. Taking Shandong Province as an example, there are 500,000 substations in the province, and the amount of data generated every day is about 80 million.
[0004] At present, in the process of data storage and transmission, universal data formats are generally used. For example, in the IEEE754 standard, floating point numbers can be represented in three different formats. However, the format in the IEEE754 standard is a universal data format, which may lead to a waste of storage space when applied to specific scenarios.
[0005] For example, a floating point number of type Float occupies 4 bytes (4Bytes), and its precision is 7 to 8 decimal digits, but the precision of distributed energy grid-connected monitoring data is generally 3 to 4 decimal digits. In other words, the precision requirement of grid-connected monitoring data is much smaller than the precision that can be represented by floating point numbers of type Float. Using a universal data format similar to type Float will waste storage space, and at the same time increase the pressure of data transmission, making it difficult to meet the transmission requirements of the edge computing layer of the current distributed energy grid connection, which will directly affect the effect and quality of distributed energy scheduling, power generation prediction, and fault monitoring. At present, there is a data compression method to solve the above problem, which meets the above transmission requirements by compressing the data into a specific non-universal data format and then transmitting it. However, since the data is compressed into a specific non-universal data format, it is necessary to use a corresponding decompression method after receiving the compressed data to restore the data and use the restored data. In addition, in a distributed power grid environment, there is a corresponding computer processing environment for this specific decompression method. Summary of the invention
[0006] The present invention proposes a data decompression system for distributed energy grid-connected monitoring, which aims to provide a corresponding data decompression technical solution for the data compression system. Compared with the existing power grid data decompression technology, it has the effect of saving data storage space and reducing data transmission pressure.
[0007] The first aspect of the present disclosure provides a data decompression system for distributed energy grid-connected monitoring, which is used for data decompression at the edge computing layer of the power grid. The edge computing layer of the power grid includes a data compression system and a data decompression system. The data compression system sends compressed power data to the data decompression system. The power data includes a 1-bit data sign bit, a first data part representing a 5-bit digit, and a second data part representing an 18-bit mantissa. The data decompression system includes a storage module, a segmentation module, a decompression module, and a splicing module; the storage module is configured to cache the received power data to a first storage unit; the segmentation module is configured to store all the data in the first storage unit. The power data is divided into the data sign bit, the first data part and the second data part; the decompression module is configured to shift the first data part right by 4 bits to obtain the sign bit of the first decompressed data part, and shift the first data part left by 3 bits to obtain the data bit of the first decompressed data part; the decompression module is also configured to shift the second data part left by 5 bits to obtain the second decompressed data part; and the splicing module is configured to splice the sign bit of the first decompressed data part and the data bit of the first decompressed data part to obtain the first decompressed data part, and splice the data sign bit, the first decompressed data part and the second decompressed data part to obtain the target data.
[0008] Since the data length of the universal data format is long, there is a phenomenon of storage space waste when it is applied to power data, so it is necessary to design a non-universal data format to reduce the waste of storage space. Converting the original format data into a specific format requires data compression, and the compressed data cannot be used directly. The compressed data needs to be restored, that is, data decompression. The decompressed data is called the target data, so that while maintaining the usefulness of data compression, such as reducing transmission costs and saving storage space, it also ensures that the data can be used for further use. In a compression scenario where a 32-bit floating point number is compressed into a 24-bit floating point number, it can effectively realize the storage of power data in a distributed power grid scenario with less storage space and transmission with lower transmission pressure. The 24-bit data format is a non-universal data format. After the power grid receives the 24-bit compressed data, the use of the data needs to go through the steps of decompression and restoration, that is, the 24-bit data is restored to the original 32-bit data.
[0009] In the data decompression system involved in the first aspect of the present disclosure, optionally, after the target data is obtained, the target data is cached in the second storage unit of the storage module. In this case, the power data restored after decompression can be reused because it is cached. The restored power data is stored in a specific unit block in the storage module, which is isolated from the unit block where the received power data is stored.
[0010] In the data decompression system involved in the first aspect of the present disclosure, optionally, the target data is 32-bit IEEE754 standard Float type data. In this case, the length of the target data is the length of the power data before decompression, and the 32-bit IEEE754 standard Float type data belongs to a universal data format, which is convenient for the target data (restored power data) to be used.
[0011] In the data decompression system involved in the first aspect of the present disclosure, optionally, the power data is power data transmitted in real time by the data compression system and the data decompression system. In this case, since the power data is transmitted in real time, the power grid edge computing layer will perform corresponding real-time monitoring of the power data. Typically, the incoming power data is time-series power data.
[0012] In the data decompression system involved in the first aspect of the present disclosure, optionally, the power data is power data aggregated and transmitted from the data compression system. In this case, the data compression system combines and packages the power data and then sends it to the data decompression system. This method of transmitting power data is aggregate transmission, which can decompress a large amount of power data, thereby realizing the aggregation of multiple groups of power data.
[0013] In the data decompression system involved in the first aspect of the present disclosure, optionally, the power data is power data collected and compressed from distributed energy, and the distributed energy includes at least one of a photovoltaic power station, a wind power station, and a hydroelectric power station. In this case, the power data received by the data decompression system is power data from distributed power stations such as photovoltaic power stations, wind power stations, and hydroelectric power stations.
[0014] In the data decompression system involved in the first aspect of the present disclosure, optionally, the power data includes at least one of current, voltage, power and electric energy. In this case, since the more important data in distributed energy sources such as photovoltaic power stations, wind power stations or hydropower stations include current, voltage, power and electric energy, the distributed energy will store and upload a large amount of power data such as current, voltage, power and electric energy to the data center, and the power data received by the data decompression system can correspond to at least one of them.
[0015] A second aspect of the present disclosure relates to a data decompression method for distributed energy grid-connected monitoring, comprising: caching received power data; dividing the power data into a data sign bit, a first data part, and a second data part; shifting the first data part right by 4 bits to obtain a sign bit of a first decompressed data part, and shifting the first data part left by 3 bits to obtain a data bit of the first decompressed data part; shifting the second data part left by 5 bits to obtain a second decompressed data part; splicing the sign bit of the first decompressed data part and the data bit of the first decompressed data part to obtain a first decompressed data part, and splicing the data sign bit, the first decompressed data part, and the second decompressed data part to obtain target data.
[0016] The data decompression method involved in the present disclosure can restore the massive multi-source heterogeneous data compressed using the single-precision floating-point compression principle to the original data by decompression, and decompress the compressed three bytes into the original four bytes. In terms of accuracy, the data decompression algorithm restores highly compressed floating-point numbers while ensuring the 5-digit decimal accuracy of the power industry data, meeting the demand for higher data accuracy, and the system is suitable for various dynamic real-time monitoring and summary transmission scenarios of distributed energy grid connection in the power industry.
[0017] In the data decompression method involved in the second aspect of the present disclosure, optionally, after obtaining the target data, the method further includes caching the target data. In this case, since the power data before decompression received by the data decompression system is cached, the target data obtained after decompression can also be cached in the data decompression system with cache capability.
[0018] The third aspect of the present disclosure relates to a device, comprising a memory and a processor, wherein the memory stores a data decompression program for distributed energy grid-connected monitoring, and is characterized in that when the processor executes the data decompression program, the data decompression method for distributed energy grid-connected monitoring involved in the second aspect of the present disclosure is implemented.
[0019] In this case, a device storing a data decompression program can be deployed at the edge of a distributed power grid, and the data decompression program can be executed at the edge computing layer to achieve decompression of power data.
[0020] According to the present disclosure, a data decompression technology solution can be provided for a data compression system, and compared with the existing power grid data decompression technology, a data decompression system for distributed energy grid-connected monitoring has the effect of saving data storage space and reducing data transmission pressure. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The present disclosure will now be explained in further detail by way of example only with reference to the accompanying drawings, in which:
[0022] Figure 1 It is a schematic diagram showing an application scenario of the data decompression system involved in the example of the present disclosure.
[0023] Figure 2 It is a flowchart showing the data compression method involved in the example of the present disclosure.
[0024] Figure 3A is a schematic diagram showing the data structure of floating-point data received by the edge computing layer involved in the example of the present disclosure.
[0025] Figure 3B Schematic diagram showing the data structure of target data involved in the example of the present disclosure.
[0026] Figure 4 It is a schematic diagram showing the structure of the data decompression system involved in the example of the present disclosure.
[0027] Figure 5 It is a flowchart showing the data decompression method involved in the example of the present disclosure.
[0028] Figure 6 It is a schematic diagram showing the process of obtaining the first decompressed data part involved in the example of the present disclosure.
[0029] Figure 7 is a structural diagram showing a device involved in the example of the present disclosure. DETAILED DESCRIPTION
[0030] Hereinafter, the preferred embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. In the following description, the same symbols are assigned to the same components, and repeated descriptions are omitted. In addition, the accompanying drawings are only schematic diagrams, and the ratio of the dimensions of the components or the shapes of the components may be different from the actual ones.
[0031] It should be noted that the terms "including" and "having" and any variations thereof in the present disclosure, such as a process, method, system, product or device that includes or has a series of steps or units, are not necessarily limited to those steps or units clearly listed, but may include or have other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] The present disclosure relates to a data decompression system for distributed energy grid-connected monitoring, which is used for data decompression of distributed energy grid-connected monitoring at a grid edge computing layer. The grid edge computing layer includes a data compression system and a data decompression system. The data compression system sends compressed power data to the data decompression system. The data decompression system can cache the received power data and perform segmentation, decompression and splicing to obtain target data of a target length, thereby reducing the transmission pressure of the system when the power data is transmitted in a compressed form on the power grid, and can store the power data at a lower cost in the decompression system.
[0033] The present disclosure relates to a data decompression method for distributed energy grid-connected monitoring, which is used for data decompression of distributed energy grid-connected monitoring at a power grid edge computing layer. The power grid edge computing layer includes a data compression system and a data decompression system. The data compression system compresses the power data and sends it to a data decompression system of another power grid edge computing layer for data decompression to obtain target data of a target length, thereby reducing the transmission pressure of the system when the power data is transmitted in a compressed form on the power grid, and allowing the data decompression system to store the power data at a lower storage cost.
[0034] The data decompression system for distributed energy grid-connected monitoring involved in the present disclosure includes: a storage module, a segmentation module, a decompression module and a splicing module. The storage module is configured to cache the received power data to a first storage unit; the segmentation module is configured to segment the power data in the first storage unit into a data sign bit, a first data part and a second data part; the decompression module is configured to shift the first data part right by 4 bits to obtain the sign bit of the first decompressed data part, and then shift it left by 3 bits to obtain the data bit of the first decompressed data part; the decompression module is also configured to shift the second data part left by 5 bits to obtain the second decompressed data part; and the splicing module is configured to splice the sign bit of the first decompressed data part and the data bit of the first decompressed data part to obtain the first decompressed data part, and splice the data sign bit, the first decompressed data part and the second decompressed data part to obtain the target data.
[0035] Since the data length of the universal data format is relatively long, there is a phenomenon of storage space waste when it is applied to power data, and thus a non-universal data format needs to be designed to reduce the waste of storage space. Converting the data in the original format to the data in a specific format requires data compression, and the compressed data cannot be used directly. The compressed data needs to be restored, that is, data decompression. The decompressed data is called the target data, thereby maintaining the usefulness of the data after compression, such as reducing transmission costs and saving storage space, while also ensuring that the data can be used for further use. In a compression scenario where a 32-bit floating point number is compressed into a 24-bit floating point number, the above-mentioned technical effect can be effectively achieved in a distributed power grid. The 24-bit data format is a non-universal data format. After the power grid receives the 24-bit compressed data, the use of the data needs to go through the steps of decompression and restoration, that is, restoring the 24-bit data to the original 32-bit data.
[0036] In some examples, the target data is data in a standard floating point data format under the IEEE 754 standard. In some examples, the target data, the data sign bit, the first data portion, and the second data portion may all be binary numbers. In some examples, the sign bit of the first decompressed data portion and the data bits of the first decompressed data portion may all be binary numbers.
[0037] The following is a further explanation of the data decompression system, method and device for distributed energy grid-connected monitoring in conjunction with the accompanying drawings.
[0038] Figure 1 It is a schematic diagram showing an application scenario of the data decompression system 4 involved in the example of the present disclosure.
[0039] For some examples, see Figure 1 The data compression system 2 can transmit the compressed power data (that is, data in 24-bit floating point data format) to the power distribution and power supply data center 5 (also referred to as the data center 5) through the substation communication network 3, thereby facilitating the power distribution and power supply data center 5 to perform power distribution and other operations.
[0040] In some examples, the data decompression system 4 is located at the distributed area edge computing layer, and receives compressed power data from the area communication network 3. In some examples, the power data sent by the area communication network 3 is allocated and controlled by the power distribution and power supply data center.
[0041] In some examples, the power data may be power data transmitted in real time by the data compression system 2 and the data decompression system 4. Specifically, the power data transmitted to the data decompression system 4 is time-series power data, so such power data needs to be monitored according to a certain strategy. In some examples, the data decompression system 4 receives the power data and caches the power data.
[0042] In some examples, the power data may be power data aggregated and transmitted from the data compression system 2. In other words, the power data may be power data aggregated and transmitted by the data compression system 2. The data compression system 2 may combine and package a certain amount of power data and send the combined data to the substation communication network 3. At this time, the power data is an aggregated data set package.
[0043] In some examples, the distributed energy 1 may include distributed photovoltaic power stations, wind power stations, hydroelectric power stations, etc. In some examples, the distributed energy 1 may be an energy comprehensive utilization system distributed at the user end, and the energy may include solar energy utilization, wind energy utilization, geothermal energy utilization, dye batteries, and gas-fired trigeneration of cooling, heat, and electricity.
[0044] In some examples, the distributed energy 1 includes at least one of a photovoltaic power station, a wind power station and a hydroelectric power station. In this case, the power data received by the data decompression system 4 is power data from distributed power stations such as photovoltaic power stations, wind power stations and hydroelectric power stations.
[0045] In some examples, the power data may include at least one of current, voltage, power and electric energy. In this case, since the relatively important data in distributed energy sources 1 such as photovoltaic power stations, wind power stations or hydropower stations include current, voltage, power and electric energy, the distributed energy sources 1 will store and upload a large amount of power data such as current, voltage, power and electric energy to the data center.
[0046] For some examples, see Figure 2 , the data compression method performed by the data compression system 2 is shown in the figure. In some examples, the data compression method may include: obtaining power data (step S010), obtaining sign data based on the positive and negative of the power data (step S020), determining a first target length and a second target length (step S030), obtaining first data with a data length of the first target length (step S040), obtaining second data with a data length of the second target length (step S050), and data splicing (step S060). This data compression method uses the principle of single-precision floating-point number compression to compress massive multi-source heterogeneous data, compressing the original four bytes into fewer bytes, and achieving high compression of floating-point data while meeting the range requirements and precision requirements of power data, which can save more than 25% of storage space.
[0047] In some examples, in step S020, the sign data is obtained based on the positive and negative of the power data. In some examples, if the power data in step S010 is Float type data, the data sign bit of the Float type data can be used as the sign data of the data in the 24-bit floating point data format. In some examples, if the power data in step S010 is a decimal floating point number, it can be checked whether the character "-" exists in the floating point number. If the character "-" exists in the floating point number, the sign data can be 1; if the character "-" does not exist in the floating point number, the sign data can be 0.
[0048] In some examples, in step S030, a preset range and a preset accuracy may be obtained based on the power data, the preset range is not less than the value range of the power data, and the preset accuracy is not less than the accuracy requirement of the power data.
[0049] In some examples, the first target length can be determined based on a preset range, and the second target length can be determined based on a preset accuracy. In some examples, the sum of the first target length, the second target length, and 1 is set as the target data length, and the target data length is a preset multiple of the unit storage length and is less than the preset length.
[0050] In some examples, the value range of the power data is between -1000 and 1000, in which case the first target length may be 5 bits, and the preset accuracy of the power data requires 4 to 5 decimal digits, in which case the second target length may be 18 bits.
[0051] In some examples, in step S040 and step S050, first data having a data length of a first target length is acquired based on the power data, and second data having a data length of a second target length is acquired based on the power data.
[0052] In some examples, in step S040 and step S050, the first data and the second data may be obtained in different ways.
[0053] In some examples, the first data and the second data can be obtained by shifting the data left or right. Specifically, the data compression method can compress the Float-type power data of the IEEE 754 standard into data in a 24-bit floating-point data format. In some examples, in step S040, obtaining the first data may include: shifting the exponent (8 bits) of the Float-type power data right by 7 bits to obtain the first bit of the exponent (also referred to as the sign bit of the exponent) as the first bit of the first data, obtaining the last 4 bits of the exponent of the power data as the last 4 bits of the first data, and concatenating the first bit of the first data and the last 4 bits of the first data to obtain the first data. The code corresponding to obtaining the first data can be expressed as:
[0054] exponent(Float24DL)=sign(exponent 1bit)+(exponent 4bit),
[0055] sign(exponent 1bit)=exponent(Float32)>>>>7,
[0056] (exponent 4bit)=exponent(Float32)&00001111(B),
[0057] Among them, Float24DL represents data in 24-bit floating point data format, exponent(Float24DL) represents the first data, sign(exponent 1bit) represents the first bit of the first data, (exponent 4bit) represents the last 4 bits of the first data, and exponent(Float32) represents the exponent of Float type power data.
[0058] In some examples, in step S050, obtaining the second data may include: shifting the mantissa of the Float type power data right by 5 bits and taking the last 18 bits of the 23-bit mantissa as the second data. The code corresponding to obtaining the first data may be expressed as:
[0059] Fraction(Float24DL)=(fraction(Float32)>>>>5)&00000111111111111111111,
[0060] Among them, Fraction (Float24DL) represents the second data, and fraction (Float32) represents the mantissa of the Float type power data.
[0061] In some examples, the first data and the second data may be obtained by processing the character string corresponding to the power data. Specifically, the data compression method may compress the power data in decimal format into data in a 24-bit floating point data format.
[0062] In some examples, in step S040, the integer part and the decimal part of the power data can be separated to obtain the binary integer part and the binary decimal part respectively, and the binary integer part, the decimal point and the binary decimal part are concatenated to obtain a character string of the power data represented in binary.
[0063] In some examples, the first data and the second data can be calculated based on the positional relationship between the first character "1" and the character "." in the string of power data represented by binary. Specifically, if the first character "1" is before the character ".", the first data can be calculated based on the positional relationship, and the integer part and the decimal part of the binary are concatenated and the first 18 valid digits are retained to obtain the second data; if the first character "1" is after the character ".", the first data can be calculated based on the positional relationship, and the 18 valid digits after the first character "1" are obtained to obtain the second data.
[0064] In some examples, in step S060, data concatenation may be performed, for example, the sign data, the first data, and the second data may be concatenated to obtain data in a 24-bit floating point data format.
[0065] For some examples, see Figure 3A , Figure 3A 1 is a schematic diagram showing the data structure of floating-point data received by the edge computing layer involved in the example of the present disclosure. The data length of the data sign bit can be 1 bit, the data length of the first data part can be 5 bits, and the data length of the second data part can be 18 bits. The data length of the sign bit of the first decompressed data part can be 1 bit, and the data length of the data bit of the first decompressed data part can be 4 bits.
[0066] For some examples, see Figure 3B , Figure 3B 1 is a schematic diagram showing the single-precision floating-point target data involved in the example of the present disclosure. The data length of the data sign bit can be 1 bit, the data length of the first decompressed data part can be 8 bits, and the data length of the second decompressed data part Y3 can be 23 bits.
[0067] In some examples, the target data may be decimal floating point data, and the format may be expressed as value=(-1). s *X1*10 X2 . Among them, value represents the value of the floating point number, s represents the positive or negative of the floating point number (if the floating point number is negative, s is 1; if the floating point number is positive, s is 0), among them, X1 represents the decimal significant digits, and X2 represents the decimal exponent.
[0068] In other examples, the target data may be binary floating point data, and the format may be expressed as: value = (-1) s *X3*2 X4 . Among them, value represents the value of the floating point number, s represents the positive or negative of the floating point number (if the floating point number is negative, s is 1; if the floating point number is positive, s is 0), among them, X3 represents the binary significant digits, and X4 represents the binary exponent.
[0069] In some examples, the data length of the target data is the data length of the collected data of distributed energy 1. The data precision of the collected data of distributed energy 1 is 4 to 5 decimal digits. At the same time, in the case of decimal representation, the order of magnitude of the collected data (that is, the value range of the power data) is generally between -1000 and 1000. In some examples, the data precision of the collected data can be determined based on the number and type of equipment (such as photovoltaic modules or wind turbines) in the substation of distributed energy 1. It can be seen that the collected data is smaller than the Float type data in terms of both data precision and value range.
[0070] In some examples, the target data of Float type may include a 1-bit sign bit, an 8-bit exponent, and a 23-bit tail. Since a byte may include 8 bits, the target data of Float type may be represented by 4 bytes. For example, the target data of Float type may be represented by s+X3'+X4', where + may represent concatenation, that is, the data of Float type may refer to concatenating s, X3', and X4' together, X3' may be the complement of X3, and X4' may be the shift code of X4. The range of the reduced number (reduced number may refer to the reduced number according to the IEEE754 standard, such as the data that the first data is not all 1 or all 0) that can be represented by Float type data is -3.4×10 38 ~3.4×10 38 At the same time, the data precision of the target data of Float type is expressed as lg2 24 =7.22. Therefore, the data precision of the Float type data can be 7 to 8 decimal digits. In other words, when the Float type target data is converted into decimal data, the effective digits of this decimal data are at least 7 digits.
[0071] Figure 4 4 is a schematic diagram showing the structure of a data decompression system 4 involved in an example of the present disclosure. Figure 4 , the data decompression system 4 may include: a storage module 41, a segmentation module 42, a decompression module 43 and a splicing module 44. In this case, the storage module 41 caches the received power data, the segmentation module 42 segments the power data to obtain segmented data, the decompression module 43 decompresses the segmented data accordingly, and the splicing module 44 splices the decompressed data to obtain the target data.
[0072] In some examples, the storage module 41 can be configured to cache the received power data to the first storage unit. In some examples, the storage module 41 can be set on the grid-connected side. In some examples, the storage module 41 can be set in a terminal device at the edge of the grid. In some examples, the first storage unit in the storage module 41 is used to cache power data, and the cache area corresponds to a part of the area in the storage module 41. In some examples, the storage module 41 also has a second storage unit. In some examples, the first storage unit can be a read-only memory (ROM) or a random access memory (RAM).
[0073] In some examples, the segmentation module 42 can be configured to segment the received power data into a data sign bit, a first data portion, and a second data portion. In some examples, the data sign bit is 1 bit. In some examples, the first data portion is an order bit representing the power data, and the second data portion is a mantissa bit representing the power data. In some examples, the first data portion is 5 bits and the second data portion is 18 bits.
[0074] In some examples, the decompression module 43 may be configured to right shift the first data portion by 4 bits to obtain a sign bit of the first decompressed data portion, and left shift the first data portion by 3 bits to obtain a data bit of the first decompressed data portion.
[0075] In some examples, the decompression module 43 may also be configured to shift the second data portion left by 5 bits to obtain a second decompressed data portion.
[0076] In some examples, the splicing module 44 is configured to splice the sign bit of the first data portion and the data bit of the first data portion to obtain the first decompressed data portion. In some examples, the first decompressed data portion is 8 bits. In some examples, the splicing module 44 is configured to splice the data sign bit, the first decompressed data portion, and the second decompressed data portion to obtain the target data.
[0077] In some examples, after obtaining the target data, the storage module 41 stores the target data in the second storage unit. In some examples, the second storage unit may be a read-only memory (ROM) or a random-access memory (RAM).
[0078] Figure 51 is a flow chart showing a data decompression method involved in the examples of the present disclosure. In some examples, the first data portion may be data used to characterize the order of magnitude of the power data. In some examples, since the data is generally stored and transmitted in a binary format during storage and transmission, and the power data is generally represented in a floating point format, the first data portion may represent the binary exponent of the power data. In some examples, the first data portion may also be referred to as the order of the power data in a binary floating point format.
[0079] In one implementation, the data decompression method may decompress 24-bit Float-type power data into target data.
[0080] In another embodiment, the data decompression method may first convert the decimal power data into binary 24-bit Float power data, and then decompress the converted power data into target data.
[0081] For some examples, see Figure 5 The data decompression method may include: caching the received power data (step S200); dividing the power data into a data sign bit, a first data part and a second data part (step S210); decompressing the first data part into a first decompressed data part (step S220); decompressing the second data part into a second decompressed data part (step S230); and splicing the data sign bit, the first decompressed data part and the second decompressed data part to obtain the target data (step S240).
[0082] Figure 6 It is a schematic diagram showing the process of obtaining the first decompressed data part involved in the example of the present disclosure.
[0083] For some examples, see Figure 6 , the first data part is shifted right by 4 bits to obtain the sign bit of the first decompressed data part (step S221), the first data part is shifted left by 3 bits to obtain the data bits of the first decompressed data part (step S222), and the sign bit of the first decompressed data part and the data bits of the first decompressed data part are concatenated to obtain the first decompressed data part (step S223).
[0084] In some examples, the second data portion is shifted left by 5 bits (step S231) to obtain a second decompressed data portion.
[0085] In some examples, data splicing is performed by appending data bits.
[0086] Figure 7 is a structural diagram showing a device involved in the example of the present disclosure. Figure 7The computer device includes a memory and a processor. In some examples, the memory has a data decompression program for distributed energy 1 grid-connected monitoring. In some examples, the processor implements a method for decompressing data for distributed energy 1 grid-connected monitoring when executing the data decompression program.
[0087] In some examples, the data decompression method disclosed in the present invention can be implemented using Python simulation code. The Python code is as follows:
[0088] #Judge the sign bit to determine the positive or negative of the floating point number
[0089]
[0090]
[0091] The distributed energy 1 grid-connected monitoring data decompression system 4 provided by the present invention can restore the massive multi-source heterogeneous data compressed by the single-precision floating-point compression principle to the original data by decompression, and decompress the compressed three bytes into the original four bytes. In terms of accuracy, the data decompression algorithm restores highly compressed floating-point numbers while ensuring the 5-digit decimal accuracy of the power industry data, meeting the demand for higher data accuracy, and the system is suitable for various dynamic real-time monitoring and summary transmission scenarios of distributed energy 1 grid-connected in the power industry.
[0092] Compared with the prior art, the embodiments of the present disclosure have the following advantages: for floating-point data in a specific format, it can be decompressed and restored to the original 32-bit standard floating-point number, ensuring the reliability and restorability of the data while transmitting the data in the power grid with lower transmission pressure and occupying less storage space in the memory.
[0093] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the above-mentioned device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0094] Those skilled in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0095] If the above-mentioned integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code can be in source code form, object code form, executable file or some intermediate form. The above-mentioned computer-readable medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the above-mentioned computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction.
[0096] Although the present disclosure is specifically described above in conjunction with the accompanying drawings and examples, it is to be understood that the above description does not limit the present disclosure in any form. Those skilled in the art may modify and change the present disclosure as needed without departing from the essential spirit and scope of the present disclosure, and these modifications and changes all fall within the scope of the present disclosure.
Claims
1. A data decompression system for power data, It is characterized in that The power data is at least one of compressed current, voltage, power and electric energy, and the power data includes a 1-bit data sign bit, a first data part representing a 5-bit digit, and a second data part representing an 18-bit mantissa. The data decompression system comprises: a storage module, a segmentation module, a decompression module and a splicing module; The storage module is configured to cache the power data; The segmentation module is configured to segment the power data into the data sign bit, the first data portion, and the second data portion; The decompression module is configured to right-shift the first data portion by 4 bits to obtain the sign bit of the first decompressed data portion, and left-shift the first data portion by 3 bits to obtain the data bit of the first decompressed data portion; The decompression module is further configured to shift the second data portion left by 5 bits to obtain a second decompressed data portion; and The splicing module is configured to splice the sign bit of the first decompressed data part and the data bit of the first decompressed data part to obtain the first decompressed data part, and to splice the data sign bit, the first decompressed data part and the second decompressed data part to obtain target data.
2. The data decompression system according to claim 1, It is characterized in that The target data is decimal floating point data or binary floating point data.
3. The data decompression system according to claim 1, It is characterized in that The storage module is configured to cache the received power data in a first storage unit; after obtaining the target data, the data decompression system caches the target data in a second storage unit of the storage module.
4. The data decompression system according to claim 1, It is characterized in that The data length of the target data is the data length of the distributed energy collection data; the data precision of the collection data is 4 to 5 decimal digits, and the order of magnitude of the collection data is between negative 1000 and 1000.
5. The data decompression system according to claim 1, It is characterized in that The storage module is arranged on the grid-connected side and / or in a terminal device at the edge of the grid.
6. The data decompression system according to claim 1, It is characterized in that The data length of the first decompressed data part is 8 bits, and the data length of the second decompressed data part is 23 bits.
7. The data decompression system according to claim 1, It is characterized in that The data length of the sign bit of the first data part is 1 bit, and the data length of the data bit of the first data part is 4 bits.
8. The data decompression system according to claim 1, It is characterized in that The data length of the data sign bit is 1 bit, the data length of the first data part is 5 bits, and the data length of the second data part is 18 bits.
9. The data decompression system according to claim 1, It is characterized in that The power data transmitted to the data decompression system is time-series power data.
