Power data storage and management method, system, terminal device, and storage medium

By preprocessing and splitting the initial power data, the problem of insufficient security of power data is solved, and the data is decentralized storage and high security protection are achieved.

CN116701365BActive Publication Date: 2025-08-19联桥科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310479156.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-27
Publication Date
2025-08-19
Estimated Expiration
2043-04-27

AI Technical Summary

Technical Problem

In the prior art, the power data is stored in the same storage module, resulting in insufficient security of the power data, easy to be cracked and acquired, and the importance of not being able to effectively protect the power data.

Method used

The initial power data is preprocessed, invalid data is screened out and formatted, split into multiple data blocks, and the data block is stored in multiple storage units using preset storage rules, and the storage key and location information are associated, and a unique identifier is configured to realize the distributed storage of data blocks.

Benefits of technology

It improves the security of power data, prevents data from being illegally acquired, enhances the complexity and security of data storage, and protects the integrity of power data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116701365B_ABST
    Figure CN116701365B_ABST
Patent Text Reader

Abstract

The present application relates to a method, system, terminal device and storage medium for managing power data storage, the method comprising obtaining initial power data, pre-processing the initial power data, and obtaining target power data to be stored; splitting the target power data based on a preset splitting rule to obtain multiple data blocks; when storing the target power data, transferring the multiple data blocks to multiple storage units for storage based on a preset storage rule; when obtaining the target power data from the storage unit, extracting the data blocks from the storage unit based on the storage rule, splicing the data blocks based on the splitting rule, and obtaining the target power data. The present application has the effect of improving the security of power data storage, thereby facilitating the protection of power data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of power data storage, and in particular to a power data storage management method, system, terminal device and storage medium. Background Art

[0002] Electricity, an energy source powered by electricity, is one of the most significant achievements in human engineering science and the foundation for the normal functioning of modern society. Power data primarily refers to the data generated across all aspects of power generation, transmission, transformation, distribution, consumption, and dispatch. This data plays a crucial role in ensuring the normal operation of the power grid and promoting socioeconomic development.

[0003] Due to the importance of power data, enterprises need to obtain power data in real time. At the same time, for the convenience of management, power data is also stored in a specific storage module to protect the power data and facilitate subsequent query and acquisition.

[0004] However, power data is of great significance beyond enterprises. It also holds significant implications for the power grid, society, and even the nation. Therefore, the security of power data should be a top priority. Storing all power data in a single storage module, which can be easily accessed by simply cracking that module, is detrimental to data protection. Summary of the Invention

[0005] In order to improve the security of power data storage and thus facilitate the protection of power data, the present application provides a power data storage management method, system, terminal device and storage medium.

[0006] In a first aspect, the present application provides a method for managing power data storage, which adopts the following technical solutions:

[0007] A method for storing and managing power data, comprising:

[0008] Acquiring initial power data, preprocessing the initial power data, and acquiring target power data to be stored;

[0009] Splitting the target power data based on a preset splitting rule to obtain multiple data blocks;

[0010] When storing the target power data, transmitting the plurality of data blocks to a plurality of storage units for storage based on a preset storage rule;

[0011] When acquiring the target power data from the storage unit, the data blocks are extracted from the storage unit based on the storage rule, and the data blocks are spliced based on the splitting rule to acquire the target power data.

[0012] By adopting the above technical solution, the initial power data is preprocessed, some invalid data in the initial power data can be screened out, and the format can be adjusted to obtain target power data that is easy to store; the target power data is split to obtain multiple data blocks, and the multiple data blocks are stored in different storage units, so that the target power data can be split and stored. Compared with the situation in the prior art where all power data is stored in one storage module, the security of the power data is greatly improved, which is beneficial to the protection of the power data.

[0013] Optionally, preprocessing the initial power data to obtain target power data to be stored includes:

[0014] performing data cleaning on the initial power data to filter out invalid data and obtain first power data;

[0015] performing data integration on the first power data, integrating all the first power data into the same database, and obtaining second power data;

[0016] Performing data conversion on the second power data, converting the second power data into a preset format, and obtaining target power data.

[0017] By adopting the above technical solution, invalid data in the initial power data can be screened out and the data format can be adjusted, thereby obtaining target power data that is easy to store.

[0018] Optionally, splitting the target power data based on a preset splitting rule to obtain multiple data blocks includes:

[0019] Acquiring a data type of the power data, and determining a target data type of the target power data to be stored;

[0020] determining a first splitting rule based on the target data type, splitting the target power data once based on the first splitting rule, and obtaining multiple data groups of the target power data;

[0021] obtaining numerical information of the power data in the data group, determining a second splitting rule based on the numerical information, and performing a secondary splitting on the power data based on the second splitting rule to obtain a plurality of data blocks;

[0022] A unique identifier is configured for the data block in each group of the data group.

[0023] By adopting the above technical solution, the target power data can be split into multiple data blocks, which is convenient for subsequent separate storage.

[0024] Optionally, the transferring the plurality of data blocks to a plurality of storage units for storage based on a preset storage rule includes:

[0025] Obtaining preset storage rules, wherein the storage rules include key generation rules and data storage rules;

[0026] generating a storage key based on the key generation rule and a plurality of the data blocks;

[0027] Acquire initial sequences of a plurality of the data blocks, and adjust the initial sequences of the data blocks based on the storage key to obtain a storage sequence;

[0028] determining storage location information based on the data storage rule and the storage sequence, and transferring the data block to a plurality of storage units for storage based on the storage location information;

[0029] The storage key and storage location information are associated, stored in a preset confidentiality unit, and configured with the unique identifier.

[0030] By adopting the above technical solution, different storage keys are generated according to different data groups, which can improve the security of each data group; by associating the storage key and storage location information and configuring a unique identifier, the storage key, storage location information and data block can be bound to facilitate subsequent retrieval.

[0031] Optionally, the data blocks include the 1st to the Nth data blocks, where N≥2, and the storage units include the 1st to the Mth storage units, where 2≤M≤N.

[0032] By adopting the above technical solution, multiple data block storage solutions can be provided, which increases the complexity of data storage and further improves the security of data block storage.

[0033] Optionally, extracting the data block from the storage unit based on the storage rule includes:

[0034] In response to the query information, determining a unique identifier of the target data group;

[0035] Obtaining a storage key and storage location information of the target data group from the security unit based on the unique identifier;

[0036] Retrieving a plurality of the data blocks from the storage unit based on the storage location information, and determining a storage sequence of the data blocks;

[0037] The storage sequence is adjusted based on the storage key to obtain an initial sequence of the data blocks in the target data group.

[0038] By adopting the above technical solution, data blocks and initial sequences can be quickly obtained, which facilitates subsequent splicing operations.

[0039] Optionally, the step of splicing the data blocks based on the splitting rule to obtain target power data includes:

[0040] splicing the data blocks based on the second splitting rule to obtain a data group of power data;

[0041] The plurality of data groups are spliced based on the first splitting rule to obtain target power data.

[0042] By adopting the above technical solution, the split and stored data blocks can be spliced together to obtain the original target power data, which is relatively convenient.

[0043] In a second aspect, the present application provides a power data storage management system, which adopts the following technical solutions:

[0044] An electric power data storage and management system includes a collection module, a splitting module, a storage module, and an acquisition module;

[0045] The acquisition module is used to acquire initial power data, pre-process the initial power data, and acquire target power data to be stored;

[0046] The splitting module is used to split the target power data based on a preset splitting rule to obtain multiple data blocks;

[0047] The storage module is configured to transfer the plurality of data blocks to a plurality of storage units for storage based on a preset storage rule when storing the target power data;

[0048] The acquisition module is configured to extract the data blocks from the storage unit based on the storage rule and splice the data blocks based on the splitting rule to acquire the target power data when acquiring the target power data from the storage unit.

[0049] By adopting the above technical solution, the initial power data is preprocessed, some invalid data in the initial power data can be screened out, and the format can be adjusted to obtain target power data that is easy to store; the target power data is split to obtain multiple data blocks, and the multiple data blocks are stored in different storage units, so that the target power data can be split and stored. Compared with the situation in the prior art where all power data is stored in one storage module, the security of the power data is greatly improved, which is beneficial to the protection of the power data.

[0050] In a third aspect, the present application provides a terminal device that adopts the following technical solution:

[0051] A terminal device includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the processor loads and executes the computer program, the above-mentioned power data storage and management method is adopted.

[0052] By adopting the above technical solution, the above-mentioned power data storage and management method is generated into a computer program and stored in a memory so as to be loaded and executed by a processor. Thus, a terminal device is manufactured based on the memory and the processor for easy use.

[0053] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution:

[0054] A computer-readable storage medium stores a computer program, and when the computer program is loaded and executed by a processor, the above-mentioned power data storage and management method is adopted.

[0055] By adopting the above technical solution, the above-mentioned power data storage and management method is generated into a computer program and stored in a computer-readable storage medium so as to be loaded and executed by a processor. The computer-readable storage medium facilitates the reading and storage of the computer program. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 This is a schematic diagram of the overall process of a power data storage management method according to an embodiment of the present application.

[0057] Figure 2 This is a schematic diagram illustrating data groups and data blocks in a power data storage management method according to an embodiment of the present application.

[0058] Figure 3 This is a schematic diagram of the overall modules of an electric power data storage and management system according to an embodiment of the present application.

[0059] Description of reference numerals:

[0060] 1. Acquisition module; 2. Splitting module; 3. Storage module; 4. Acquisition module. DETAILED DESCRIPTION

[0061] The present application is further described in detail below with reference to the accompanying drawings.

[0062] The present application discloses a method for managing power data storage, referring to Figure 1 ,include:

[0063] S101, acquiring initial power data, preprocessing the initial power data, and acquiring target power data to be stored;

[0064] S102: splitting the target power data based on a preset splitting rule to obtain multiple data blocks;

[0065] S103, when storing the target power data, transferring the plurality of data blocks to a plurality of storage units for storage based on a preset storage rule;

[0066] S104 . When acquiring target power data from the storage unit, extract the data blocks from the storage unit based on the storage rule, and splice the data blocks based on the splitting rule to acquire target power data.

[0067] Step S101: Initial power data generated during the operation of the power system may contain some invalid data due to transmission anomalies, interference, collection anomalies, etc., which may affect the accuracy of the initial power data. Therefore, after obtaining the initial power data, it is necessary to preprocess the initial power data to obtain relatively pure target power data. In this embodiment, the power data of a power generation enterprise is used as the target power data.

[0068] In this embodiment, preprocessing of the initial power data includes three stages: data cleaning, data integration, and data transformation.

[0069] The data cleaning stage is to clean the initial power data, mainly to delete irrelevant data, duplicate data, smooth noise data, etc. in the initial power data, screen out invalid data, and perform preliminary processing on missing values and outliers. Among them, missing value processing can use mean / median / mode interpolation, fixed value, regression method, interpolation method, etc. to interpolate the missing values in the initial power data. Common interpolation methods include Lagrange interpolation and Newton interpolation. Common methods for processing outliers include deleting records containing outliers, treating them as missing values, and correcting the mean value. Through the above data cleaning, the first power data can be obtained.

[0070] Because the actual data from multiple data sources is expressed in different ways, subsequent data processing may not match. Therefore, it is necessary to consider entity recognition and attribute redundancy issues, thereby transforming, refining, and integrating the source data at the lowest level. Therefore, the data integration stage involves integrating the primary power data, primarily integrating all primary power data into a single database to form a manageable secondary power data.

[0071] Specifically, entity recognition is the process of identifying real-world entities from different data sources. Entity recognition includes but is not limited to the following tasks:

[0072] 1. Identification of data with the same name but different meanings. For example, the attribute ID in data source A and the attribute ID in data source B describe the power generation of device 1 and device 2 respectively, which are the same name but different meanings.

[0073] 2. Identify data with synonyms. For example, power_dt in data source A and power_data in data source B both describe the power value, that is, A. power_dt = B. power_data;

[0074] 3. Identification of data with inconsistent units. For example, the same entity may be described using both international units and traditional Chinese measurement units. Detecting and resolving these conflicts is the task of entity recognition.

[0075] Specifically, data integration often results in data redundancy, so it also requires identifying redundant attributes. For example, if the same attribute appears multiple times or is inconsistently named, the redundant attributes of the data are analyzed using a built-in computer program. Once redundant attributes are detected, the data is deleted.

[0076] Through data integration, data obtained from multiple data sources can be integrated to obtain data belonging to the same data source. In this embodiment, the data of the data source can be initially stored in the same database to facilitate subsequent processing. All data in the database are referred to as second power data.

[0077] Specifically, the data transformation stage mainly normalizes the second power data and converts it into a preset format for subsequent storage and query. The data transformation mainly includes simple function transformation, normalization, continuous attribute discretization, attribute transformation, wavelet transformation and other processes.

[0078] Among them, simple function transformation is to perform some mathematical function transformation on the original data. Common transformations include square, square root, logarithm, difference operation, etc.

[0079] Data normalization (also known as data normalization) is a fundamental task in data mining. Because different evaluation indicators often have different dimensions, the differences in values can be significant. Failure to address this issue can affect the results of data analysis. Therefore, to eliminate the impact of differences in dimensions and value ranges between indicators, data normalization is necessary. This involves scaling the data so that it falls within a specific range for comprehensive analysis. For example, mapping the leakage attribute value to the range [-1, 1] or [0, 1] can be performed.

[0080] Discretization of continuous attributes involves setting a number of discrete points within the data's range, dividing the range into discrete intervals. Data values falling within each interval are then represented by distinct symbols or integers. Therefore, discretization involves two subtasks: determining the number of categories and mapping the continuous attribute values to these categories. Common discretization methods include the equal-width method, the equal-frequency method, and methods based on cluster analysis.

[0081] Attribute transformation involves constructing new attributes from existing attribute sets during the data mining process to extract more useful information, uncover deeper patterns, and improve the accuracy of mining results. These attributes are then added to the existing attribute set. For example, to determine whether a user is engaging in electricity theft or leakage, a new metric—the line loss rate—can be constructed. This process is an example of attribute construction. The normal range for line loss rates is generally between 3% and 15%. If the rate significantly exceeds this range, it can be considered that users on that line are likely engaging in abnormal electricity usage, such as electricity theft or leakage.

[0082] The wavelet transform is a new data analysis tool. The theory and methods of wavelet analysis are increasingly being applied in fields such as signal processing, image processing, speech processing, pattern recognition, and quantum physics, and are considered a major breakthrough in recent years. The wavelet transform has the characteristics of multi-resolution and is capable of representing local signal features in both the time and frequency domains. By performing multi-scale focused analysis on signals through operations such as scaling and translation, it provides a time-frequency analysis method for non-stationary signals, allowing for progressive observation of signals from coarse to fine resolution, extracting useful information.

[0083] Reference Figure 2 In this embodiment, the preset format can be set to a matrix format that is easy to query based on the second power data and data storage needs. Of course, it can also include forms such as tables and pictures. After the second power data undergoes data transformation, the target power data to be stored can be obtained.

[0084] Step S102, after obtaining the target power data, the target power data needs to be stored. This embodiment adopts a split storage method, that is, splitting the target power data into multiple data groups, and then storing the multiple data groups separately to improve the security of the target power data storage.

[0085] First, all data types of power data are obtained to determine the target data type of target power data. The data types include power generation data, power consumption data, power transformation data, etc. This embodiment is described using power generation data as an example.

[0086] After determining that the target power data is power generation data, the first splitting rule is determined. In this embodiment, the first splitting rule is to split the target power data according to the device name. For example, the power generation equipment of the power generation enterprise includes device 1, device 2 and device 3. The power generation data of device 1, device 2 and device 3 are split according to the device name, and the power generation data of one of the devices is taken as a data group. It can be seen that three data groups can be obtained in this enterprise.

[0087] After obtaining the data group, the numerical information of the target power data is determined according to the data group. The numerical information includes voltage value, current value, power value, time value, etc. In this embodiment, the second splitting rule is to split the data group according to the numerical information. For example, the above-mentioned different types of values are split to obtain multiple data blocks.

[0088] Of course, in order to further improve the security of data storage, the first splitting rule and the second splitting rule can also be set randomly, so that the data groups and data blocks are randomly split, that is, the data information in each data group or data block is not coherent, so even if one of the data groups or data blocks is obtained, the detailed data content cannot be understood.

[0089] After splitting the data groups and data blocks, unique identifiers are assigned to all data blocks in each data group to mark the data blocks and facilitate subsequent access. For example, all data blocks in the device 1 data group are assigned the prefix FDSB1, which represents the pinyin abbreviation of power generation equipment 1. This allows the data blocks of device 1 to be distinguished from other data blocks.

[0090] In step S103, after acquiring the data blocks, all the data blocks can be stored, thereby achieving the storage of the target power data. In this embodiment, the data blocks can be stored according to a preset storage rule.

[0091] Specifically, the storage rules in this embodiment include key generation rules and data storage rules, wherein the key generation rules are used to generate storage keys, and data blocks in the same data group can be encrypted according to the storage keys.

[0092] Specifically, a storage key can be generated based on a key generation rule and the data blocks in the data group. In this embodiment, the data blocks in the data group are regarded as single character elements. For example, the data blocks "voltage_220V" and "current_20A" are regarded as a and b, respectively. It can be seen that the data group can be regarded as an initial string combination. For example, 123abc represents 6 data blocks, that is, the key length of the data group is 6. The following provides a key generation rule:

[0093] For the example above, we take half the storage key length and randomly select a two-digit number from the range of 1 to 3 (derived from the storage key length 6 / 2) as the key. For example, we select (1, 3) as the storage key. This configuration allows different storage keys to be generated for different data groups. The storage key can also be modified. For example, if (1, 3) is selected as the storage key this time, you can also select (1, 2) or (2, 3) as the storage key if necessary, making it easier for the computer to adjust.

[0094] After obtaining the storage key, the initial sequence of the data blocks is adjusted according to the storage key to obtain the storage sequence. As can be seen from the above example, 123abc represents the initial sequence of all data blocks in the data group. First, the swap position and number of swaps are determined according to the storage key. The initial sequence is adjusted according to the swap position and number of swaps to obtain the storage sequence. The specific process is as follows:

[0095] The exchange rule is set as follows: the two characters to be exchanged are the position in the initial string corresponding to each digit in the storage key and an integer equal to half the length of the initial string plus the position of the storage key digit.

[0096] For example, the initial string is 123abc and the key is (1, 3). It can be seen that the character swap positions that need to be swapped for the first time are "the first position of the initial string (the first digit of the stored key) and the 6 / 2+1=4th position (an integer of half the length of the initial string + the first digit of the stored key)". Therefore, for the stored key (1, 3), the result after the first character swap is a231bc.

[0097] The number of character swaps is determined by the length of the storage key. For example, if the storage key (1, 3) has a key length of 2, then two character swaps are required for a231bc. The second character swap occurs between the 3rd and 6th positions in the initial string (position 6 / 2+3=6). The result after the second character swap is a2c1b3. After the two character swaps are completed, the result is a2c1b3, which is stored as the sequence.

[0098] After obtaining the storage sequence, the storage location information of the data block can be determined according to the preset data storage rules and the storage sequence. In this embodiment, multiple storage units are provided, each storage unit uses a different storage path, and when storing, multiple data blocks are stored in multiple storage units respectively.

[0099] In this embodiment, the data blocks include the first to the Nth data blocks, where N ≥ 2, and the storage units include the first to the Mth storage units, where 2 ≤ M ≤ N. It can be seen that when determining the storage location, one data block can be stored in one storage unit, or multiple data blocks can be stored in one storage unit. The data storage rule specifies this, and the specific method of specifying this can be based on the number of storage units, which is not limited here.

[0100] At the same time, since it has been described above that data groups and data blocks can also be obtained in a random split state, in this embodiment, the data blocks need to be stored in the storage unit according to the storage sequence, ensuring that the storage locations of the first to Nth data blocks in the storage unit are the first to Mth storage units. If multiple data blocks need to be stored in the same storage unit, the storage location of the first data block needs to be placed before the storage location of the second data block, and so on.

[0101] For example, the storage sequence of a data group is a2c1b3, where a represents voltage value, 2 represents time value, c represents power value, 1 represents load value, b represents current value, and 3 represents power value. It can be seen that in order to ensure the order of data storage, the voltage value data block, time value data block, power value data block, load value data block, current value data block, and power value data block can be stored in sequence in multiple storage units. The number of storage units can be 2, 3, 6, and so on. If there are 6 storage units, the 6 data blocks can be stored in a one-to-one correspondence in the storage units, where the first data block is stored in the first storage unit, the second data block is stored in the second storage unit, and so on. If there are 2 storage units, the first to third data blocks can be stored in sequence in the first storage unit, and the fourth to sixth data blocks can be stored in the second storage unit. Alternatively, the first data block can be stored in the first storage unit, and the second to sixth data blocks can be stored in sequence in the second storage unit, and so on.

[0102] When more than two data blocks need to be stored in the same storage unit, the first data block is stored in the first position of the first storage unit, for example, the first area of the first storage unit, and the second data block is stored in the latter position of the first storage unit, for example, the second area of the first storage unit, and so on, so as to determine the order of data storage, which is convenient for determining the storage sequence of data blocks when obtaining data blocks.

[0103] At the same time, when a data block is stored in a storage unit, it is necessary to obtain the storage location information of the data block. The storage location information may include storage unit information and partition information within the storage unit, etc., so as to facilitate subsequent acquisition of the data block based on the storage location information.

[0104] It is worth mentioning that different storage units require different encryption methods. Even if one of the storage units is cracked, the data block obtained from the storage unit cannot be used as the overall power data. Moreover, since the data blocks stored in each storage unit are not coherent, and without knowing the storage key, the splicing method of the data blocks cannot be understood, effective information cannot be obtained from the storage unit, which greatly improves the security of the target power data.

[0105] At this point, after the target power data is split into data blocks according to the splitting rules, the data blocks are stored in multiple storage units respectively according to the storage rules, and two key information, storage key and storage location information, are generated at the same time. Therefore, after the data block is stored in the storage unit, it is necessary to associate the storage key and the storage location information, indicating that the storage key and the storage location information are two key information for the target data group. At the same time, the storage key and storage location information are stored in a preset confidentiality unit, and the storage key and storage location information are configured with the same unique identifier as the data block.

[0106] It is worth mentioning that since the storage key and storage location information are more critical, the encryption level of the confidentiality unit is higher than that of the storage unit. At the same time, the storage key and storage location information can also be stored separately, that is, stored in different confidentiality units.

[0107] Step S104, when it is necessary to obtain the target power data, it is generally queried actively by a computer or manually through a computer. Therefore, in response to the query information, the unique identifier of the target power data to be obtained is determined through the pre-stored device record information, such as FDSB1, which represents power generation equipment 1.

[0108] After determining the unique identifier, the storage key and storage location information matching the unique identifier are first retrieved from the security unit. Using the storage location information, all data blocks in the same data group are retrieved from multiple storage units. This indicates that the retrieved data blocks are arranged in a storage sequence. The storage sequence is then adjusted based on the storage key to obtain the initial sequence of data blocks. For example, the storage sequence a2c1b3 is adjusted to the initial sequence 123abc.

[0109] After all data blocks of the target power data are obtained, the data blocks are split according to the second splitting principle to obtain multiple data groups, and then the multiple data groups are spliced according to the first splitting principle to obtain the target power data.

[0110] The implementation principle of a power data storage management method in an embodiment of the present application is: pre-processing the initial power data, filtering out some invalid data in the initial power data, adjusting the format, and obtaining target power data that is easy to store; splitting the target power data to obtain multiple data blocks, and storing the multiple data blocks in different storage units, which can split the target power data for storage. Compared with the situation in the prior art where all power data is stored in one storage module, the security of the power data is greatly improved, which is beneficial to the protection of the power data.

[0111] The present application also discloses a power data storage management system, referring to Figure 3 , including an acquisition module 1, a splitting module 2, a storage module 3 and an acquisition module 4, the acquisition module 1 is used to acquire initial power data, pre-process the initial power data, and acquire target power data to be stored; the splitting module 2 is used to split the target power data based on a preset splitting rule to acquire multiple data blocks; the storage module 3 is used to transfer the multiple data blocks to multiple storage units for storage based on a preset storage rule when storing the target power data; the acquisition module 4 is used to extract data blocks from the storage unit based on the storage rule when acquiring the target power data from the storage unit, splice the data blocks based on the splitting rule, and acquire the target power data.

[0112] The specific implementation of a power data storage management system in the embodiment of the present application is the same as the specific implementation of the above-mentioned power data storage management method, so it will not be repeated here.

[0113] An embodiment of the present application also discloses a terminal device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein when the processor executes the computer program, an electric power data storage management method in the above embodiment is adopted.

[0114] Among them, the terminal device can be a computer device such as a desktop computer, a laptop computer or a cloud server, and the terminal device includes but is not limited to a processor and a memory. For example, the terminal device can also include input and output devices, network access devices and buses, etc.

[0115] Among them, the processor can adopt a central processing unit (CPU). Of course, according to actual usage, other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. can also be adopted. The general-purpose processor can adopt a microprocessor or any conventional processor, etc., and this application does not impose any restrictions on this.

[0116] Among them, the memory can be an internal storage unit of the terminal device, such as the hard disk or memory of the terminal device, or it can be an external storage device of the terminal device, such as a plug-in hard disk, smart memory card (SMC), secure digital card (SD) or flash memory card (FC) equipped on the terminal device, etc., and the memory can also be a combination of the internal storage unit and the external storage device of the terminal device. The memory is used to store computer programs and other programs and data required by the terminal device. The memory can also be used to temporarily store data that has been output or is to be output. This application does not impose any restrictions on this.

[0117] Among them, through this terminal device, an electric power data storage and management method in the above embodiment is stored in the memory of the terminal device, and is loaded and executed on the processor of the terminal device for easy use.

[0118] An embodiment of the present application further discloses a computer-readable storage medium, and the computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, an electric power data storage management method of the above embodiment is adopted.

[0119] Among them, the computer program can be stored in a computer-readable medium, the computer program includes computer program code, the computer program code can be in the form of source code, object code, executable file or certain middleware, etc. The computer-readable medium includes any entity or device that can carry computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that computer-readable medium includes but is not limited to the above-mentioned components.

[0120] Among them, through this computer-readable storage medium, an electric power data storage management method in the above embodiment is stored in a computer-readable storage medium, and is loaded and executed on a processor to facilitate the storage and application of the above method.

[0121] The above are all preferred embodiments of the present application, and are not intended to limit the scope of protection of the present application. Therefore, any equivalent changes made based on the structure, shape, and principle of the present application should be included in the scope of protection of the present application.

Claims

1. A method for storing and managing power data, characterized in that: include: Acquiring initial power data, preprocessing the initial power data, and acquiring target power data to be stored; Splitting the target power data based on a preset splitting rule to obtain multiple data blocks; When storing the target power data, transmitting the plurality of data blocks to a plurality of storage units for storage based on a preset storage rule; When acquiring target power data from the storage unit, extracting the data blocks from the storage unit based on the storage rule, and splicing the data blocks based on the splitting rule to acquire the target power data; The transferring of the plurality of data blocks to a plurality of storage units for storage based on a preset storage rule includes: Obtaining preset storage rules, wherein the storage rules include key generation rules and data storage rules; generating a storage key based on the key generation rule and a plurality of the data blocks; Acquire initial sequences of a plurality of the data blocks, and adjust the initial sequences of the data blocks based on the storage key to obtain a storage sequence; determining storage location information based on the data storage rule and the storage sequence, and transferring the data block to a plurality of storage units for storage based on the storage location information; The storage key is associated with the storage location information, stored in a preset confidentiality unit, and configured with a unique identifier.

2. The method for storing and managing power data according to claim 1, wherein: The preprocessing of the initial power data to obtain target power data to be stored includes: performing data cleaning on the initial power data to filter out invalid data to obtain first power data; performing data integration on the first power data, integrating all the first power data into the same database, and obtaining second power data; Performing data conversion on the second power data, converting the second power data into a preset format, and obtaining target power data.

3. The method for storing and managing power data according to claim 1, wherein: The step of splitting the target power data based on a preset splitting rule to obtain a plurality of data blocks includes: Acquiring a data type of the power data, and determining a target data type of the target power data to be stored; determining a first splitting rule based on the target data type, splitting the target power data once based on the first splitting rule to obtain multiple data groups of the target power data; obtaining numerical information of the power data in the data group, determining a second splitting rule based on the numerical information, and performing a secondary splitting on the power data based on the second splitting rule to obtain a plurality of data blocks; The unique identifier is configured for the data block in each group of the data group.

4. The method for storing and managing power data according to claim 1, wherein: The data blocks include the 1st to the Nth data blocks, where N≥2, and the storage units include the 1st to the Mth storage units, where 2≤M≤N.

5. The method for storing and managing power data according to claim 3, wherein: The extracting the data block from the storage unit based on the storage rule includes: In response to the query information, determining a unique identifier of the target data group; Obtaining a storage key and storage location information of the target data group from the security unit based on the unique identifier; Retrieving a plurality of the data blocks from the storage unit based on the storage location information, and determining a storage sequence of the data blocks; The storage sequence is adjusted based on the storage key to obtain an initial sequence of the data blocks in the target data group.

6. The method for storing and managing power data according to claim 5, characterized in that: The step of splicing the data blocks based on the splitting rule to obtain target power data includes: splicing the data blocks based on the second splitting rule to obtain a data group of power data; The plurality of data groups are spliced based on the first splitting rule to obtain target power data.

7. An electric power data storage and management system, characterized in that: The method according to any one of claims 1 to 6 is adopted; It includes a collection module (1), a splitting module (2), a storage module (3) and an acquisition module (4); The acquisition module (1) is used to acquire initial power data, pre-process the initial power data, and acquire target power data to be stored; The splitting module (2) is used to split the target power data based on a preset splitting rule to obtain multiple data blocks; The storage module (3) is used for transferring the plurality of data blocks to a plurality of storage units for storage based on a preset storage rule when storing the target power data; The acquisition module (4) is used to extract the data blocks from the storage unit based on the storage rule when acquiring the target power data from the storage unit, and to splice the data blocks based on the splitting rule to acquire the target power data.

8. A terminal device comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that: When the processor loads and executes the computer program, the method according to any one of claims 1 to 6 is adopted.

9. A computer-readable storage medium storing a computer program, wherein: When the computer program is loaded and executed by a processor, the method according to any one of claims 1 to 6 is adopted.

Citation Information

Patent Citations

  • Storage method and device, computer equipment and storage medium

    CN111158606A

  • Card number and password fused encryption method and system, terminal equipment and storage medium

    CN114726516A