CN113535806A - Block chain-based power data processing method and device - Google Patents

Block chain-based power data processing method and device Download PDF

Info

Publication number
CN113535806A
CN113535806A CN202110678434.7A CN202110678434A CN113535806A CN 113535806 A CN113535806 A CN 113535806A CN 202110678434 A CN202110678434 A CN 202110678434A CN 113535806 A CN113535806 A CN 113535806A
Authority
CN
China
Prior art keywords
information
power
data
processing
obtaining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202110678434.7A
Other languages
Chinese (zh)
Inventor
胡茂民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN202110678434.7A priority Critical patent/CN113535806A/en
Publication of CN113535806A publication Critical patent/CN113535806A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2462Approximate or statistical queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/06Electricity, gas or water supply

Abstract

The invention discloses a block chain-based power data processing method and device, which are used for acquiring target user information according to a first data processing requirement; obtaining target power data according to the target user information; acquiring first, second and Nth power information according to the target power data; generating a first verification code according to the first power information, and generating a second verification code according to the second power information and the first verification code; generating the Nth verification code by analogy; copying and storing all the power information and the verification codes on the M devices respectively; acquiring a preset processing method according to a first data processing requirement; and acquiring power processing data according to all the power information and the preset processing method in sequence. The technical problem that in the prior art, data statistics is carried out on processing data of electric power data through electric power supply departments in various regions, data reliability cannot be determined in data transmission and extraction processes, and therefore accuracy of electric power data processing results is affected is solved.

Description

Block chain-based power data processing method and device
Technical Field
The invention relates to the technical field of data processing, in particular to a block chain-based power data processing method and device.
Background
Electric power is an energy source using electric energy as power. The transmission of electric energy, transformation, distribution and utilization of electricity together form the whole function of the electric power system. By transmitting electricity, power plants and load centers which are far apart (up to thousands of kilometers) are connected, so that the development and utilization of electric energy exceed the regional limit. Compared with the transmission of other energy sources (such as coal transmission, oil transmission and the like), the transmission of electricity has the advantages of small loss, high benefit, flexibility, convenience, easy regulation and control and less environmental pollution; the power transmission can also connect power plants at different places to realize peak-valley regulation. Transmission is an important embodiment of the superiority of electric energy utilization, and is an important energy artery in modern society. The power policy is made dependent on the analysis and processing of the power data, the condition of regional power supply can be known through the analysis and processing of the power data, and the supply and demand relationship is determined, so that the power demand can be accurately adjusted, and the supply and demand stability of regional power is ensured.
However, in the process of implementing the technical solution of the invention in the embodiments of the present application, the inventors of the present application find that the above-mentioned technology has at least the following technical problems:
in the prior art, data statistics is carried out on processing data of electric power data through electric power supply departments in various regions, and the reliability of the data cannot be determined in the data transmission and extraction processes, so that the technical problem that the accuracy of the processing result of the electric power data is influenced exists.
Disclosure of Invention
The embodiment of the application provides a block chain-based electric power data processing method and device, and solves the technical problems that in the prior art, data statistics is carried out on electric power data processing data through electric power supply departments in various regions, data reliability cannot be determined in data transmission and extraction processes, and accordingly accuracy of electric power data processing results is affected. The data processing method has the advantages that the corresponding data processing is carried out on different electric power data according to different data processing requirements, different data processing requirements are met, the application range is wide, meanwhile, the safety and the confidentiality of the data are improved by adopting a block chain technology to the electric power data to be processed, and the accuracy and the reliability of electric power data processing results are effectively improved.
In view of the foregoing problems, embodiments of the present application provide a method and an apparatus for processing power data based on a block chain.
In a first aspect, an embodiment of the present application provides a method for processing power data based on a block chain, where the method includes: obtaining a first data processing requirement; acquiring target user information according to the first data processing requirement; obtaining target power data according to the target user information; according to the target power data, obtaining first power information, second power information and Nth power information, wherein N is a natural number greater than 1; generating a first verification code according to the first power information, wherein the first verification code corresponds to the first power information one to one; generating a second verification code according to the second power information and the first verification code; by analogy, generating an Nth verification code according to the Nth power information and the Nth-1 verification code; respectively copying and storing all the power information and the verification codes on M devices, wherein M is a natural number greater than 1; acquiring a preset processing method according to the first data processing requirement; and acquiring power processing data according to all the power information and the preset processing method in sequence.
In another aspect, the present application further provides a power data processing apparatus based on a block chain, where the apparatus includes:
a first obtaining unit configured to obtain a first data processing requirement;
a second obtaining unit, configured to obtain target user information according to the first data processing requirement;
a third obtaining unit configured to obtain target power data according to the target user information;
a fourth obtaining unit, configured to obtain, according to the target power data, first power information, second power information, and up to nth power information, where N is a natural number greater than 1;
a first execution unit, configured to generate a first verification code according to the first power information, where the first verification code corresponds to the first power information one to one;
a second execution unit, configured to generate a second verification code according to the second power information and the first verification code; by analogy, generating an Nth verification code according to the Nth power information and the Nth-1 verification code;
the first copying unit is used for copying and storing all the power information and the verification codes on M devices respectively, wherein M is a natural number greater than 1;
a fifth obtaining unit, configured to obtain a preset processing method according to the first data processing requirement;
and the third execution unit is used for acquiring power processing data according to all the power information and the preset processing method in sequence.
In a third aspect, the present invention provides a power data processing apparatus based on a block chain, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method of the first aspect when executing the program.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
the embodiment of the application provides a block chain-based power data processing method and device, wherein a first data processing requirement is obtained; acquiring target user information according to the first data processing requirement; obtaining target power data according to the target user information; according to the target power data, obtaining first power information, second power information and Nth power information, wherein N is a natural number greater than 1; generating a first verification code according to the first power information, wherein the first verification code corresponds to the first power information one to one; generating a second verification code according to the second power information and the first verification code; by analogy, generating an Nth verification code according to the Nth power information and the Nth-1 verification code; respectively copying and storing all the power information and the verification codes on M devices, wherein M is a natural number greater than 1; acquiring a preset processing method according to the first data processing requirement; and acquiring power processing data according to all the power information and the preset processing method in sequence. The data processing method has the advantages that the corresponding data processing is carried out on different electric power data according to different data processing requirements, different data processing requirements are met, the application range is wide, meanwhile, the safety and the confidentiality of the data are improved by adopting a block chain technology to the electric power data to be processed, and the accuracy and the reliability of electric power data processing results are effectively improved. Therefore, the technical problems that in the prior art, data statistics is carried out on the processing data of the electric power data through power supply departments in various regions, the reliability of the data cannot be determined in the data transmission and extraction processes, and the accuracy of the electric power data processing result is affected are solved.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
Fig. 1 is a schematic flowchart of a block chain-based power data processing method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an electric data processing apparatus based on a block chain according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an exemplary electronic device according to an embodiment of the present application.
Description of reference numerals: a first obtaining unit 11, a second obtaining unit 12, a third obtaining unit 13, a fourth obtaining unit 14, a first executing unit 15, a second executing unit 16, a first copying unit 17, a fifth obtaining unit 18, a third executing unit 19, a bus 300, a receiver 301, a processor 302, a transmitter 303, a memory 304, and a bus interface 305.
Detailed Description
The embodiment of the application provides a block chain-based electric power data processing method and device, and solves the technical problems that in the prior art, data statistics is carried out on electric power data processing data through electric power supply departments in various regions, data reliability cannot be determined in data transmission and extraction processes, and accordingly accuracy of electric power data processing results is affected. The data processing method has the advantages that the corresponding data processing is carried out on different electric power data according to different data processing requirements, different data processing requirements are met, the application range is wide, meanwhile, the safety and the confidentiality of the data are improved by adopting a block chain technology to the electric power data to be processed, and the accuracy and the reliability of electric power data processing results are effectively improved. Hereinafter, example embodiments according to the present application will be described in detail with reference to the accompanying drawings. It should be apparent that the described embodiments are merely some embodiments of the present application and not all embodiments of the present application, and it should be understood that the present application is not limited to the example embodiments described herein.
Summary of the application
Electric power is an energy source using electric energy as power. The transmission of electric energy, transformation, distribution and utilization of electricity together form the whole function of the electric power system. By transmitting electricity, power plants and load centers which are far apart (up to thousands of kilometers) are connected, so that the development and utilization of electric energy exceed the regional limit. Compared with the transmission of other energy sources (such as coal transmission, oil transmission and the like), the transmission of electricity has the advantages of small loss, high benefit, flexibility, convenience, easy regulation and control and less environmental pollution; the power transmission can also connect power plants at different places to realize peak-valley regulation. Transmission is an important embodiment of the superiority of electric energy utilization, and is an important energy artery in modern society. The power policy is made dependent on the analysis and processing of the power data, the condition of regional power supply can be known through the analysis and processing of the power data, and the supply and demand relationship is determined, so that the power demand can be accurately adjusted, and the supply and demand stability of regional power is ensured. However, in the prior art, data statistics is performed on the processing data of the electric power data by the electric power supply departments in various regions, and the reliability of the data cannot be determined in the data transmission and extraction processes, so that the technical problem that the accuracy of the processing result of the electric power data is affected exists.
In view of the above technical problems, the technical solution provided by the present application has the following general idea:
obtaining a first data processing requirement; acquiring target user information according to the first data processing requirement; obtaining target power data according to the target user information; according to the target power data, obtaining first power information, second power information and Nth power information, wherein N is a natural number greater than 1; generating a first verification code according to the first power information, wherein the first verification code corresponds to the first power information one to one; generating a second verification code according to the second power information and the first verification code; by analogy, generating an Nth verification code according to the Nth power information and the Nth-1 verification code; respectively copying and storing all the power information and the verification codes on M devices, wherein M is a natural number greater than 1; acquiring a preset processing method according to the first data processing requirement; and acquiring power processing data according to all the power information and the preset processing method in sequence. The data processing method has the advantages that the corresponding data processing is carried out on different electric power data according to different data processing requirements, different data processing requirements are met, the application range is wide, meanwhile, the safety and the confidentiality of the data are improved by adopting a block chain technology to the electric power data to be processed, and the accuracy and the reliability of electric power data processing results are effectively improved.
Having thus described the general principles of the present application, various non-limiting embodiments thereof will now be described in detail with reference to the accompanying drawings.
Example one
As shown in fig. 1, an embodiment of the present application provides a power data processing method based on a blockchain, where the method includes:
step S100: obtaining a first data processing requirement;
specifically, the first data processing requirement is for power data processing purposes, such as enforcement work on local power policies, analysis of power requirements, power work schedules, power compensation, and the like.
Step S200: acquiring target user information according to the first data processing requirement;
specifically, the power range to be processed is determined according to the specific data processing purpose in the first data processing request, and thus, target user information, which is power data of which users, units, or areas are target data for analysis processing, may be power users corresponding to cities, industries, and the like, other than residents, and includes information such as a group, a name, a location, a user property, a power supply price, and a policy for using power.
Step S300: obtaining target power data according to the target user information;
specifically, the power usage of the data is counted and retrieved according to the determined target subscriber information, the target power data includes power data of all target subscribers, and the power data of each target subscriber includes contents such as data of specific power usage, current power condition, owned electricity amount, and time information corresponding to the power usage.
Step S400: according to the target power data, obtaining first power information, second power information and Nth power information, wherein N is a natural number greater than 1;
specifically, the power information corresponding to each target user is obtained according to the target power data, the first power information is the power information of the first target user, the second power information is the power information of the second target user, and so on, the nth power information is the power information of the nth target user, and according to different data processing requirements, the nth power information corresponds to different target user groups, and the number of the target users is correspondingly changed along with the generation of the target user groups.
Step S500: generating a first verification code according to the first power information, wherein the first verification code corresponds to the first power information one to one;
specifically, in order to ensure the accuracy of each piece of data in data processing and avoid the data processing result from being tampered with maliciously, in the embodiment of the present application, a regional chain is added to improve the reliability of processing data, the first verification code is a unique verification code generated for the first power information, the first power information and the unique verification code information are stored in a combined manner, the first power information is encrypted, and tampering is avoided.
Step S600: generating a second verification code according to the second power information and the first verification code; by analogy, generating an Nth verification code according to the Nth power information and the Nth-1 verification code;
specifically, a first verification code is generated according to the first power information, a second verification code is generated according to the second power information and the first verification code, and by analogy, an nth verification code is generated according to the nth power information and an nth-1 verification code, wherein N is a natural number greater than 1. The block chain is formed by connecting generated blocks according to a time sequence, namely an account book database which is continuously increased, and the block chain technology has the characteristics of decentralization, openness and transparency, each computing device can participate in database recording, data synchronization can be rapidly carried out among the computing devices, the data stored on a plurality of devices are stored on the devices, and the data stored on the devices are processed through a common identification mechanism, so that the processed data can be encrypted through the logic of the block chain, the security of the processed data is ensured, the technical effects of integrating a computer and a data encryption technology into a whole, protecting data storage and improving the security and confidentiality of power data are achieved.
Step S700: respectively copying and storing all the power information and the verification codes on M devices, wherein M is a natural number greater than 1;
specifically, all the power information and the verification codes are respectively copied and stored on M devices, wherein the first power information and the first verification code are stored on one device as a first storage unit, the second power information and the second verification code are stored on one device as a second storage unit, the Nth power and the Nth verification code are stored on one device as an Mth storage unit, when the feedback information needs to be called, after each subsequent node receives the data stored by the previous node, the data is verified and stored through a common identification mechanism, and each storage unit is connected in series through a hash function, so that the training data is not easy to lose and damage, the safety and the accuracy of the data are improved, the technical effects of protecting the data storage and improving the safety and the confidentiality of the power data are achieved.
Step S800: acquiring a preset processing method according to the first data processing requirement;
further, in the method for obtaining a preset processing method according to the first data processing requirement, step S800 in this embodiment of the present application includes:
step S810: obtaining a first processing type according to the first data processing requirement;
step S820: obtaining first processing element information according to the first processing type;
step S830: obtaining request source information according to the first processing element information;
step S840: acquiring processing rule information according to the required source information;
step S850: and obtaining the preset processing method according to the processing rule information.
Specifically, according to the processing object in the first data processing request, the type of the processing object, i.e. the first processing type, is determined, such as regional power supply and demand analysis, power operation summary analysis, implementation of power subsidy policy, power supply and demand distribution, etc., according to the difference of the data processing object, different data processing elements are corresponded, such as required regional power supply data, power consumption data of target users in a certain time period, regional power supply and demand data, gap data, etc., corresponding to different numbers of users, or users in different time periods, etc., the processing element information may include different power data, or power usage time, line supply status, line maintenance, construction data, etc., different processing element information has different request source information, i.e. different data providers, different data extraction sources, according to different data processing objects and element information, the processing rules of the method are different, for example, in the implementation and issuance of a power subsidy policy, the electricity consumption data of a target user needs to be counted, the electricity consumption time, the power usage and the like, different data processing requirements are corresponded according to different requirements in a policy file, the different data processing requirements are processing rule information, and a preset processing method for data processing, namely a specific power data processing algorithm and requirements are finally determined according to the processing rule information and the type of the target user.
Step S900: and acquiring power processing data according to all the power information and the preset processing method in sequence.
Further, the step S900 in the embodiment of the present application includes obtaining the power processing data sequentially according to all the power information and the preset processing method:
step S910: inputting the first power information and the preset processing method into a data processing model to obtain first processing data;
step S920: inputting the second power information and the preset processing method into the data processing model to obtain second processing data;
step S930: repeating the steps until the Nth electric power information and the preset processing method are input into the data processing model to obtain Nth processing data;
step S940: and obtaining the electric power processing data according to the first processing data, the second processing data and the nth processing data.
Further, the step S910 of inputting the first power information and the preset processing method into a data processing model to obtain first processing data includes:
step S911: taking the first power information as first input information;
step S912: taking the preset processing method as second input information;
step S913: inputting the first input information and the second input information into a data processing model, wherein the data processing model is obtained by training a plurality of sets of training data, and each set of the plurality of sets of training data comprises: the first input information, the second input information, and identification information identifying the first processed data;
step S914: obtaining output information of the data processing model, the output information including the first processed data.
Specifically, a corresponding processing result is obtained according to electric power data and a corresponding preset processing method, in order to improve the accuracy of the data processing result, a Neural network model is constructed and processed in the embodiment of the application, a mathematical model is used for operation processing, so that the operation speed is improved, and meanwhile, the accuracy of the data processing result is improved, the data processing model is a Neural network model in machine learning, a Neural Network (NN) is a complex Neural network system formed by widely connecting a large number of simple processing units (called neurons), reflects many basic characteristics of human brain functions, and is a highly complex nonlinear power learning system. Neural network models are described based on mathematical models of neurons. Artificial Neural Networks (Artificial Neural Networks) are a description of the first-order properties of the human brain system. Briefly, it is a mathematical model. And inputting the first input information and the second input information into a neural network model through training of a large amount of training data, and outputting first processing data, wherein the first processing data is a processing result obtained by calculating first power information according to a preset processing method. And sequentially inputting the power information of other target users into the data processing model for processing, obtaining corresponding processing results according to respective preset processing methods, and finally summarizing all the processing results to obtain final power processing data.
More specifically, the training process is essentially a supervised learning process, each group of supervised data includes the first input information, the second input information and identification information for identifying the first processed data, the first input information and the second input information are input into a neural network model, the neural network model performs continuous self-correction and adjustment according to the identification information for identifying the first processed data, and the present group of supervised learning is ended until the obtained output result is consistent with the identification information, and the next group of supervised learning is performed; and when the output information of the neural network model reaches the preset accuracy rate/reaches the convergence state, finishing the supervised learning process. Through the supervised learning of the neural network model, the neural network model is enabled to process the input information more accurately, more accurate and suitable first processing data are obtained, the efficiency and the accuracy of the electric power data processing result are effectively improved, corresponding data processing is performed on different electric power data according to different data processing requirements, different data processing requirements are met, the efficiency and the accuracy of the data operation processing result are improved by adding the neural network model, the basis is tamped for providing the more accurate data processing result, the safety and the reliability of the data are improved by adopting a block chain technology for the electric power data needing to be processed, and the safety and the confidentiality of the electric power data processing result are further effectively improved. And the technical problem that in the prior art, data statistics is carried out on the processing data of the electric power data through power supply departments in various regions, and the reliability of the data cannot be determined in the data transmission and extraction processes, so that the accuracy of the electric power data processing result is influenced is solved.
Further, the method comprises:
step S1010: acquiring a first user according to the target user information;
step S1020: acquiring first attribute information and first region information according to the first user;
step S1030: obtaining first user power information according to the first user;
step S1040: acquiring first power rule information according to the first region information and the first attribute information;
step S1050: obtaining a first matching degree according to the first user power information and the first power rule information;
step S1060: judging whether the first matching degree meets a first preset condition or not;
step S1070: and when the first matching degree is not satisfied, obtaining first prompt information according to the first matching degree.
Specifically, in addition to encrypting the power information by using the block chain, the accuracy and confidentiality of data processing are improved, tampering in the data transmission and extraction processes is avoided, and meanwhile, in order to further improve the reliability of power data processing, the problem that a user has data deviation and the like caused by policy violation operations or power line and equipment faults and the result of power data processing is influenced, so that the corresponding power policy or resolution is influenced. The embodiment of the application carries out attribute analysis aiming at different target user types, carries out targeted power consumption analysis aiming at different target user types, further screens the reliability of power data to a certain degree, carries out analysis of same-attribute matching degree by utilizing the attributes of the target users, marks the power data of the users when the power information of the target users is obviously different from the users in the same region with the same attributes, namely, first prompt information is used for processing the great difference of the power data so as to avoid the influence on power decision or power policy implementation caused by the deviation of the regional power data processing result caused by the abnormal data of the target users, screens out the data with larger difference if power supply and demand ratio processing is needed, and prompts aiming at the abnormal data if power subsidy statistics is issued, and further analysis is carried out to avoid false data setting and operation of some users for increasing the electric power subsidy, the reliability of the electric power data is improved by carrying out preliminary analysis on the attribute of the data, and the distortion of a data processing result caused by the deviation and the falsification of the data is avoided, so that the corresponding operation after the electric power data is processed is not facilitated.
Further, after determining whether the first matching degree satisfies a first predetermined condition, the method includes:
step S1110: obtaining first historical power information according to the first user;
step S1120: obtaining first power change information according to the first user power information and the first historical power information;
step S1130: acquiring first power rule historical information according to the first region information and the first attribute information;
step S1140: obtaining first rule change information according to the first power rule information and first power rule historical information;
step S1150: obtaining a first correlation according to the first power change information and the first rule change information;
step S1160: when the first correlation does not meet a second preset condition, second prompt information is obtained according to the first matching degree and the first correlation;
step S1170: and if the first correlation meets the second preset condition, canceling the first prompt message.
Specifically, in order to avoid the evaluation of errors on real data, further analyzing the power data of a biased user, performing correlation judgment by using historical power data and current statistical power data, if the current data conforms to the historical power use condition of the target user, canceling prompt, if the current data and the historical data of the user have obvious changes, marking the power information of the user for prompting that the power information has doubtful points and needs to be noticed or further approved to realize the preliminary screening of the power data, avoiding the problem that the analysis processing data caused by the power deviation is inaccurate to influence the data processing result, and simultaneously performing the preliminary screening by using data analysis, improving the working efficiency, reducing the screening burden of workers, reducing the screening range and perfecting the data processing process, the reliability of the electric power data is further improved, and the accuracy of the electric power data processing result is guaranteed.
Further, the method further comprises:
step 1210: taking the Nth power information and the Nth verification code as an Nth storage unit;
step S1220: obtaining the recording time of the Nth storage unit, wherein the recording time of the Nth storage unit represents the time required to be recorded by the Nth storage unit;
step S1230: acquiring first equipment with the largest memory in the M equipment according to the recording time of the Nth storage unit;
step S1240: and sending the recording right of the Nth storage unit to the first equipment.
Specifically, the Nth power information and the Nth verification code are obtained as the time required to be recorded by the Nth storage unit, and the result obtained by performing complex and precise calculation on the first device with the largest memory in the M devices is obtained through a platform built by a computer, wherein each time a block is generated, the first device with the largest memory is provided with corresponding time records, and new blocks are connected according to the time sequence, so that the first device with the largest memory is required for storing a large amount of data, and the recording right of the Nth storage unit is sent to the first device with the largest memory, so that better data storage can be realized, the data storage safety and confidentiality are protected, and the accuracy of a power data processing result is improved.
The block chain technology is also called as distributed ledger technology, and is an emerging technology which is commonly participated in accounting by a plurality of computing devices and commonly maintains a complete distributed database. The blockchain technology has been widely used in many fields due to its characteristics of decentralization, transparency, participation of each computing device in database records, and rapid data synchronization between computing devices. Generating a first verification code according to the first power information, wherein the first verification code corresponds to the first power information one to one; generating a second verification code according to the second power information and the first verification code, wherein the second verification code corresponds to the second power information one to one; by analogy, generating an Nth verification code according to the Nth power information and the Nth-1 verification code, wherein N is a natural number larger than 1, copying and storing all the power information and the verification code on M devices respectively, wherein the first power information and the first verification code are stored on one device as a first storage unit, the second power information and the second verification code are stored on one device as a second storage unit, the Nth power information and the Nth verification code are stored on one device as an Nth storage unit, when the power information needs to be called, after receiving data stored by a previous node, each subsequent node checks and stores the data after receiving the data stored by the previous node through a common identification mechanism, and each storage unit is connected in series through a hash function, so that the power information is not easy to lose and damage, and the power information is encrypted through logic of a block chain, the safety of the electric power information is guaranteed, and the accuracy and the reliability of an electric power data processing result are further guaranteed.
Example two
Based on the same inventive concept as the block chain-based power data processing method in the foregoing embodiment, the present invention further provides a block chain-based power data processing apparatus, as shown in fig. 2, the apparatus includes:
a first obtaining unit 11, wherein the first obtaining unit 11 is used for obtaining a first data processing requirement;
a second obtaining unit 12, where the second obtaining unit 12 is configured to obtain target user information according to the first data processing requirement;
a third obtaining unit 13, where the third obtaining unit 13 is configured to obtain target power data according to the target user information;
a fourth obtaining unit 14, where the fourth obtaining unit 14 is configured to obtain, according to the target power data, first power information, second power information, and up to nth power information, where N is a natural number greater than 1;
a first execution unit 15, where the first execution unit 15 is configured to generate a first verification code according to the first power information, where the first verification code corresponds to the first power information one to one;
a second execution unit 16, wherein the second execution unit 16 is configured to generate a second verification code according to the second power information and the first verification code; by analogy, generating an Nth verification code according to the Nth power information and the Nth-1 verification code;
a first copying unit 17, wherein the first copying unit 17 is configured to copy and store all power information and verification codes on M devices, where M is a natural number greater than 1;
a fifth obtaining unit 18, where the fifth obtaining unit 18 is configured to obtain a preset processing method according to the first data processing requirement;
and the third execution unit 19 is configured to obtain the power processing data sequentially according to all the power information and the preset processing method.
Further, the apparatus further comprises:
a sixth obtaining unit, configured to obtain the first user according to the target user information;
a seventh obtaining unit, configured to obtain first attribute information and first region information according to the first user;
an eighth obtaining unit, configured to obtain first user power information according to the first user;
a ninth obtaining unit, configured to obtain first power rule information according to the first region information and the first attribute information;
a tenth obtaining unit, configured to obtain a first matching degree according to the first user power information and the first power rule information;
a first judging unit, configured to judge whether the first matching degree satisfies a first predetermined condition;
an eleventh obtaining unit, configured to, when the first prompt information is not satisfied, obtain first prompt information according to the first matching degree.
Further, the apparatus further comprises:
a twelfth obtaining unit, configured to obtain first historical power information according to the first user;
a thirteenth obtaining unit, configured to obtain first power variation information according to the first user power information and the first historical power information;
a fourteenth obtaining unit, configured to obtain first power rule history information according to the first region information and the first attribute information;
a fifteenth obtaining unit, configured to obtain first rule change information according to the first power rule information and first power rule history information;
a sixteenth obtaining unit, configured to obtain a first correlation according to the first power variation information and the first rule variation information;
a seventeenth obtaining unit, configured to, when the first correlation does not satisfy a second predetermined condition, obtain second prompt information according to the first matching degree and the first correlation;
a first canceling unit, configured to cancel the first prompt message if the first correlation satisfies the second predetermined condition.
Further, the apparatus further comprises:
a fourth execution unit for using the Nth power information and the Nth verification code as an Nth storage unit;
an eighteenth obtaining unit, configured to obtain the nth storage unit recording time, where the nth storage unit recording time represents a time that the nth storage unit needs to record;
a nineteenth obtaining unit, configured to obtain, according to the recording time of the nth storage unit, a first device with a largest memory in the M devices;
a first sending unit, configured to send the recording right of the nth storage unit to the first device.
Further, the apparatus further comprises:
a twentieth obtaining unit, configured to input the first power information and the preset processing method into a data processing model, and obtain first processing data;
a twenty-first obtaining unit, configured to input the second power information and the preset processing method into the data processing model, and obtain second processing data;
a twenty-second obtaining unit, configured to perform the same operation until the nth power information and the preset processing method are input to the data processing model, so as to obtain nth processing data;
a twenty-third obtaining unit configured to obtain the power processing data from the first processing data, the second processing data, and up to the nth processing data.
Further, the apparatus further comprises:
a fifth execution unit for using the first power information as first input information;
a sixth execution unit configured to take the preset processing method as second input information;
a first input unit, configured to input the first input information and the second input information into a data processing model, where the data processing model is obtained by training multiple sets of training data, and each of the multiple sets of training data includes: the first input information, the second input information, and identification information identifying the first processed data;
a twenty-fourth obtaining unit configured to obtain output information of the data processing model, the output information including the first processing data.
Further, the apparatus further comprises:
a twenty-fifth obtaining unit, configured to obtain a first processing type according to the first data processing requirement;
a twenty-sixth obtaining unit configured to obtain first processing element information according to the first processing type;
a twenty-seventh obtaining unit, configured to obtain, according to the first processing element information, request source information;
a twenty-eighth obtaining unit, configured to obtain processing rule information according to the request source information;
a twenty-ninth obtaining unit, configured to obtain the preset processing method according to the processing rule information.
Various changes and specific examples of the method for processing power data based on a blockchain in the first embodiment of fig. 1 are also applicable to the device for processing power data based on a blockchain in this embodiment, and it is clear to those skilled in the art from the foregoing detailed description of the method for processing power data based on a blockchain that the method for implementing a device for processing power data based on a blockchain in this embodiment is not described in detail here for the sake of brevity of the description.
Exemplary electronic device
The electronic device of the embodiment of the present application is described below with reference to fig. 3.
Fig. 3 illustrates a schematic structural diagram of an electronic device according to an embodiment of the present application.
Based on the inventive concept of a block chain based power data processing method as in the previous embodiments, the present invention further provides a block chain based power data processing apparatus, on which a computer program is stored, which when executed by a processor implements the steps of any one of the above-mentioned block chain based power data processing methods.
Where in fig. 3 a bus architecture (represented by bus 300), bus 300 may include any number of interconnected buses and bridges, bus 300 linking together various circuits including one or more processors, represented by processor 302, and memory, represented by memory 304. The bus 300 may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface 305 provides an interface between the bus 300 and the receiver 301 and transmitter 303. The receiver 301 and the transmitter 303 may be the same element, i.e., a transceiver, providing a means for communicating with various other systems over a transmission medium.
The processor 302 is responsible for managing the bus 300 and general processing, and the memory 304 may be used for storing data used by the processor 302 in performing operations.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
the embodiment of the application provides a block chain-based power data processing method and device, wherein a first data processing requirement is obtained; acquiring target user information according to the first data processing requirement; obtaining target power data according to the target user information; according to the target power data, obtaining first power information, second power information and Nth power information, wherein N is a natural number greater than 1; generating a first verification code according to the first power information, wherein the first verification code corresponds to the first power information one to one; generating a second verification code according to the second power information and the first verification code; by analogy, generating an Nth verification code according to the Nth power information and the Nth-1 verification code; respectively copying and storing all the power information and the verification codes on M devices, wherein M is a natural number greater than 1; acquiring a preset processing method according to the first data processing requirement; and acquiring power processing data according to all the power information and the preset processing method in sequence. The data processing method has the advantages that the corresponding data processing is carried out on different electric power data according to different data processing requirements, different data processing requirements are met, the application range is wide, meanwhile, the safety and the confidentiality of the data are improved by adopting a block chain technology to the electric power data to be processed, and the accuracy and the reliability of electric power data processing results are effectively improved. Therefore, the technical problems that in the prior art, data statistics is carried out on the processing data of the electric power data through power supply departments in various regions, the reliability of the data cannot be determined in the data transmission and extraction processes, and the accuracy of the electric power data processing result is affected are solved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a system for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction system which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (9)

1. A method for processing power data based on a blockchain, wherein the method comprises:
obtaining a first data processing requirement;
acquiring target user information according to the first data processing requirement;
obtaining target power data according to the target user information;
according to the target power data, obtaining first power information, second power information and Nth power information, wherein N is a natural number greater than 1;
generating a first verification code according to the first power information, wherein the first verification code corresponds to the first power information one to one;
generating a second verification code according to the second power information and the first verification code; by analogy, generating an Nth verification code according to the Nth power information and the Nth-1 verification code;
respectively copying and storing all the power information and the verification codes on M devices, wherein M is a natural number greater than 1;
acquiring a preset processing method according to the first data processing requirement;
and acquiring power processing data according to all the power information and the preset processing method in sequence.
2. The method of claim 1, wherein the method comprises:
acquiring a first user according to the target user information;
acquiring first attribute information and first region information according to the first user;
obtaining first user power information according to the first user;
acquiring first power rule information according to the first region information and the first attribute information;
obtaining a first matching degree according to the first user power information and the first power rule information;
judging whether the first matching degree meets a first preset condition or not;
and when the first matching degree is not satisfied, obtaining first prompt information according to the first matching degree.
3. The method of claim 2, wherein said determining whether the first degree of match satisfies a first predetermined condition comprises:
obtaining first historical power information according to the first user;
obtaining first power change information according to the first user power information and the first historical power information;
acquiring first power rule historical information according to the first region information and the first attribute information;
obtaining first rule change information according to the first power rule information and first power rule historical information;
obtaining a first correlation according to the first power change information and the first rule change information;
when the first correlation does not meet a second preset condition, second prompt information is obtained according to the first matching degree and the first correlation;
and if the first correlation meets the second preset condition, canceling the first prompt message.
4. The method of claim 1, wherein the method comprises:
taking the Nth power information and the Nth verification code as an Nth storage unit;
obtaining the recording time of the Nth storage unit, wherein the recording time of the Nth storage unit represents the time required to be recorded by the Nth storage unit;
acquiring first equipment with the largest memory in the M equipment according to the recording time of the Nth storage unit;
and sending the recording right of the Nth storage unit to the first equipment.
5. The method of claim 1, wherein the obtaining power processing data sequentially according to all the power information and the preset processing method comprises:
inputting the first power information and the preset processing method into a data processing model to obtain first processing data;
inputting the second power information and the preset processing method into the data processing model to obtain second processing data;
repeating the steps until the Nth electric power information and the preset processing method are input into the data processing model to obtain Nth processing data;
and obtaining the electric power processing data according to the first processing data, the second processing data and the nth processing data.
6. The method of claim 5, wherein the inputting the first power information and the preset processing method into a data processing model to obtain first processing data comprises:
taking the first power information as first input information;
taking the preset processing method as second input information;
inputting the first input information and the second input information into a data processing model, wherein the data processing model is obtained by training a plurality of sets of training data, and each set of the plurality of sets of training data comprises: the first input information, the second input information, and identification information identifying the first processed data;
obtaining output information of the data processing model, the output information including the first processed data.
7. The method of claim 1, wherein the obtaining a pre-set processing method according to the first data processing requirement comprises:
obtaining a first processing type according to the first data processing requirement;
obtaining first processing element information according to the first processing type;
obtaining request source information according to the first processing element information;
acquiring processing rule information according to the required source information;
and obtaining the preset processing method according to the processing rule information.
8. A power data processing device based on block chains, which is applied to the method of any one of claims 1 to 7, wherein the device comprises:
a first obtaining unit configured to obtain a first data processing requirement;
a second obtaining unit, configured to obtain target user information according to the first data processing requirement;
a third obtaining unit configured to obtain target power data according to the target user information;
a fourth obtaining unit, configured to obtain, according to the target power data, first power information, second power information, and up to nth power information, where N is a natural number greater than 1;
a first execution unit, configured to generate a first verification code according to the first power information, where the first verification code corresponds to the first power information one to one;
a second execution unit, configured to generate a second verification code according to the second power information and the first verification code; by analogy, generating an Nth verification code according to the Nth power information and the Nth-1 verification code;
the first copying unit is used for copying and storing all the power information and the verification codes on M devices respectively, wherein M is a natural number greater than 1;
a fifth obtaining unit, configured to obtain a preset processing method according to the first data processing requirement;
and the third execution unit is used for acquiring power processing data according to all the power information and the preset processing method in sequence.
9. A blockchain-based power data processing apparatus comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 7 when executing the program.
CN202110678434.7A 2021-06-18 2021-06-18 Block chain-based power data processing method and device Withdrawn CN113535806A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110678434.7A CN113535806A (en) 2021-06-18 2021-06-18 Block chain-based power data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110678434.7A CN113535806A (en) 2021-06-18 2021-06-18 Block chain-based power data processing method and device

Publications (1)

Publication Number Publication Date
CN113535806A true CN113535806A (en) 2021-10-22

Family

ID=78125236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110678434.7A Withdrawn CN113535806A (en) 2021-06-18 2021-06-18 Block chain-based power data processing method and device

Country Status (1)

Country Link
CN (1) CN113535806A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114511179A (en) * 2021-12-28 2022-05-17 江苏东晔电气设备有限公司 Intelligent planning method and system for processing abnormity of power distribution cabinet

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114511179A (en) * 2021-12-28 2022-05-17 江苏东晔电气设备有限公司 Intelligent planning method and system for processing abnormity of power distribution cabinet
CN114511179B (en) * 2021-12-28 2023-09-12 江苏东晔电气设备有限公司 Intelligent planning method and system for processing abnormality of power distribution cabinet

Similar Documents

Publication Publication Date Title
US11132403B2 (en) Graph-manipulation based domain-specific execution environment
US20230195429A1 (en) Graph outcome determination in domain-specific execution environment
CN111435242A (en) System for secure metering from a system of untrusted data sources obtained from a common source
CN111435349A (en) Automated architecture network security based on blockchains
CN111435239A (en) Distributed account book in process control system
CN111435241A (en) Machine-to-machine transactions using distributed ledgers in a process control system
CN111435240A (en) Maintaining quality control, regulatory, and parameter measurement data using distributed ledger in a process control system
CN107526766A (en) Data organization method and development environment system
CN113205415B (en) Financial process automation method and system based on RPA and block chain technology
CN109492880A (en) Roduction track method and terminal device based on block chain technology
CN114971421B (en) Hydropower station operation risk management and control system based on block chain technology
CN115237802A (en) Artificial intelligence based simulation test method and related equipment
CN109359938A (en) A kind of optimization method of flow chart of data processing, device and terminal device
CN113535806A (en) Block chain-based power data processing method and device
CN109598289B (en) Cross-platform data processing method, device, equipment and readable storage medium
CN114510867A (en) 3D simulation power distribution cabinet circuit wiring method and system
CN114565255A (en) Enterprise cluster cooperative supply chain management method and system
US20040233056A1 (en) Process management
CN112215710A (en) Annuity data processing method, block chain system, medium and electronic device
Baratov et al. Improvement of the scientific bases of creating means of automation of documentation of devices of railway automation and telemechanics
CN112288582B (en) Information processing method and device for improving approval efficiency of policy
CN112651811B (en) Order processing method and system based on multi-source data
CN112765220A (en) Service data monitoring method and system based on cloud computing
CN110516075A (en) Early warning report-generating method, device and computer equipment based on machine learning
CN111611601A (en) Multi-data-party user analysis model joint training method and device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20211022

WW01 Invention patent application withdrawn after publication