CN112241404A - Power quality data management method and system - Google Patents

Power quality data management method and system Download PDF

Info

Publication number
CN112241404A
CN112241404A CN202011171872.6A CN202011171872A CN112241404A CN 112241404 A CN112241404 A CN 112241404A CN 202011171872 A CN202011171872 A CN 202011171872A CN 112241404 A CN112241404 A CN 112241404A
Authority
CN
China
Prior art keywords
transaction
block
transaction amount
target
quality data
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.)
Granted
Application number
CN202011171872.6A
Other languages
Chinese (zh)
Other versions
CN112241404B (en
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.)
Shenzhen Power Supply Bureau Co Ltd
Original Assignee
Shenzhen Power Supply Bureau Co Ltd
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 Shenzhen Power Supply Bureau Co Ltd filed Critical Shenzhen Power Supply Bureau Co Ltd
Priority to CN202011171872.6A priority Critical patent/CN112241404B/en
Publication of CN112241404A publication Critical patent/CN112241404A/en
Application granted granted Critical
Publication of CN112241404B publication Critical patent/CN112241404B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/21Design, administration or maintenance of databases
    • G06F16/215Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
    • 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/23Updating
    • G06F16/2365Ensuring data consistency and integrity
    • 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/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database
    • 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/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • 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/602Providing cryptographic facilities or services
    • 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
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0639Performance analysis of employees; Performance analysis of enterprise or organisation operations
    • G06Q10/06395Quality analysis or management
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Human Resources & Organizations (AREA)
  • General Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • Strategic Management (AREA)
  • Development Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • General Health & Medical Sciences (AREA)
  • Quality & Reliability (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Bioethics (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Tourism & Hospitality (AREA)
  • Educational Administration (AREA)
  • Computing Systems (AREA)
  • Game Theory and Decision Science (AREA)
  • Operations Research (AREA)
  • Primary Health Care (AREA)
  • Public Health (AREA)
  • Water Supply & Treatment (AREA)
  • Technology Law (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a power quality data management method, which comprises the following steps of S1, acquiring power quality data of a client, and acquiring a first target trading order; step S2, acquiring the first target trading order, performing consensus packaging, and generating a first block packaging trading volume; if the packaging transaction amount is finished, uploading to a block chain network; if the packaging transaction amount is not finished, detecting missing data of the parameter information; step S3, updating the first target transaction order according to the missing data to generate a second target transaction order; step S4, performing consensus packaging according to the obtained second target trading order, generating a second packaged trading volume and comparing the second packaged trading volume with a preset quick start threshold value; if the transaction amount is larger than or equal to the quick starting threshold, detecting whether the transaction amount exceeds the block maximum transaction packing amount of the main node; if not, uploading to the blockchain for blockchain transaction. The invention accurately positions the pollution source of the electric energy quality and improves the efficiency of the electric energy quality management.

Description

Power quality data management method and system
Technical Field
The invention relates to the technical field of block chains, in particular to a power quality data management method and system.
Background
With the more frequent application of modern electric equipment in the industrial and commercial fields and the continuous progress of industrial development and science and technology, people also put forward requirements on power supply stability, reliability and electric energy quality. The quality of electric energy relates to a plurality of entities such as power plant, electric power company and user, and the data volume of the electric energy quality data of single entity is big, and the overall planning is difficult. Moreover, the quality of the electric energy is essentially high-quality power supply, and the quality of the electric energy is reduced due to errors in all links of production, processing, transportation and use of the electric energy, so that the effective management of the quality of the electric energy is very important. And the management to electric energy quality generally follows the principle of "who pollutes, who administers" at present, nevertheless because electric energy quality relates to the face and is wider, needs each electric power main part all to participate in electric energy quality monitoring just can confirm the electric energy quality pollution source, seriously influences the efficiency of electric energy quality management to because the electric energy quality monitoring system islanding that leads to each electric power main part to establish because of being subject to for reasons such as communication technology, privacy is serious, uses the new forms of energy as an example: the electric energy quality monitoring system is basically installed in a wind power plant, a photovoltaic power plant and other large-scale power plants, but data of the electric energy quality monitoring system cannot be shared by a power grid company, and some sensitive users and high-precision users have deployed the electric energy quality monitoring system, and the users do not open data to third parties for privacy protection, so that the efficiency of electric energy quality management is low, and an electric energy quality pollution source cannot be accurately and quickly located.
Disclosure of Invention
The invention aims to provide a power quality data management method and a power quality data management system, and solves the technical problems that the power quality management efficiency is low and a power quality pollution source cannot be accurately and quickly positioned in the conventional method.
In one aspect of the present invention, a power quality data management method is provided, which includes the following steps:
step S1, obtaining power quality data of a client, converting the power quality data according to a preset format, encrypting the converted power quality data to obtain a first target transaction list, and uploading the first target transaction list to a block chain network;
step S2, acquiring the first target transaction order, performing consensus packaging according to the first target transaction order, and generating a first block packaged transaction amount; comparing the first block packed transaction amount with a preset quick start threshold value to generate a comparison result; judging whether the packaged transaction amount is finished according to the comparison result, and uploading the first block packaged transaction amount to a block chain network if the packaged transaction amount is finished; if the packaged transaction amount is not finished, detecting missing data of the parameter information in the first target transaction list, and outputting the missing data;
step S3, updating the first target transaction list according to the missing data, generating a second target transaction list and uploading the second target transaction list to a block chain network;
step S4, acquiring the second target trading order, and performing consensus packaging according to the acquired second target trading order to generate a second packaged trading volume; comparing the second block packed transaction amount with a preset quick start threshold; if the second block packed transaction amount is larger than or equal to a quick start threshold value, detecting whether the second block packed transaction amount exceeds the block maximum transaction amount of the main node, and if the second block packed transaction amount exceeds the block maximum transaction amount of the main node, outputting error prompt information; if the block maximum transaction packaging amount of the main node is not exceeded, uploading the second block packaging transaction amount to a block chain for block chain transaction; and if the second block packed transaction amount is smaller than the quick starting threshold value, outputting error prompt information.
Preferably, the step S1 includes: converting the format of the acquired power quality data into a PQDIF file;
encrypting the format-converted power quality data through a digital signature;
and performing hash operation on the digitally signed electric energy quality data, and implanting the generated transaction list ID into a preset transaction list to obtain a first target transaction list.
Preferably, the parameter information of the first target transaction order at least includes a transaction order ID, a transaction type, a transaction data type, a transaction order content, a timestamp, and a public key: in fact, the transaction order ID is a hash value obtained by performing a hash operation on the transaction order type, the transaction data type, the transaction order content, the timestamp, and the key.
Preferably, the step S2 includes: when the comparison result is that the first block packed transaction amount is larger than or equal to a preset quick start threshold value, judging that the packed transaction amount is finished, and uploading the first block packed transaction amount to a block chain network for transaction;
and when the comparison result shows that the first block packed transaction amount is smaller than the preset quick start threshold value, judging that the packed transaction amount is not finished, detecting whether the parameter information of the first target transaction list is complete, and acquiring missing data of the parameter information of the first target transaction list according to the detection result.
Preferably, the step S3 includes: when the acquired missing data is lack of a certain data parameter, re-acquiring updated electric energy quality data of the client according to the existing parameter information in the first target transaction list, extracting various pieces of parameter information to be updated in the updated electric energy quality data, and updating the first target transaction list according to the parameter information to be updated;
and when the acquired missing data is the lack transaction type, re-extracting the updated electric energy quality data of the client, acquiring the to-be-updated transaction type of the updated electric energy quality data, and updating the target transaction list according to the to-be-updated transaction type.
The invention also provides a power quality data management system for realizing the power quality data management method, which comprises the following steps:
the main node is used for acquiring the power quality data of the client, converting the power quality data according to a preset format, and encrypting the converted power quality data to acquire a first target transaction list; the first target transaction order is updated according to the missing data to generate a second target transaction order;
the common node is used for taking the first target transaction order, performing consensus packaging according to the first target transaction order and generating a first block packaged transaction amount; comparing the first block packed transaction amount with a preset quick start threshold value to generate a comparison result; judging whether the packaged transaction amount is finished according to the comparison result, and uploading the first block packaged transaction amount to a block chain network if the packaged transaction amount is finished; if the packaged transaction amount is not finished, missing data of parameter information in the first target transaction list is detected; the second target trading order is obtained and consensus packaging is carried out according to the obtained second target trading order, and a second packaged trading volume is generated; comparing the second block packed transaction amount with a preset quick start threshold; if the second block packed transaction amount is larger than or equal to a quick start threshold value, detecting whether the second block packed transaction amount exceeds the block maximum transaction amount of the main node, and if the second block packed transaction amount exceeds the block maximum transaction amount of the main node, outputting error prompt information; if the block maximum transaction packaging amount of the main node is not exceeded, uploading the second block packaging transaction amount to a block chain for block chain transaction; and if the second block packed transaction amount is smaller than the quick starting threshold value, outputting error prompt information.
Preferably, the master node converts the format of the acquired power quality data into a PQDIF file;
encrypting the format-converted power quality data through a digital signature;
and performing hash operation on the digitally signed electric energy quality data, and implanting the generated transaction list ID into a preset transaction list to obtain a first target transaction list.
Preferably, when the comparison result generated by the common node is that the first block packed transaction amount is greater than or equal to a preset quick start threshold value, the packed transaction amount is judged to be completed, and the first block packed transaction amount is uploaded to a block chain network for transaction;
and when the generated comparison result is that the first block packed transaction amount is smaller than a preset quick start threshold value, judging that the packed transaction amount is not completed, detecting whether the parameter information of the first target transaction list is complete, and acquiring missing data of the parameter information of the first target transaction list according to the detection result.
Preferably, when the missing data acquired by the master node is lack of a certain data parameter, the updated power quality data of the client is acquired again according to the existing parameter information in the first target transaction list, each item of parameter information to be updated in the updated power quality data is extracted, and the first target transaction list is updated according to the parameter information to be updated.
Preferably, if the missing data acquired by the master node is a missing transaction type, the updated power quality data of the client is re-extracted, the to-be-updated transaction type of the updated power quality data is acquired, and the target transaction list is updated according to the to-be-updated transaction type.
In summary, the embodiment of the invention has the following beneficial effects:
according to the method and the system for managing the power quality data, the extracted power quality data are converted into the PQDIF file, the PQDIF file is encrypted to obtain the target transaction list, the target transaction list is subjected to consensus packaging to obtain the block packaged transaction amount, the block packaged transaction amount is subjected to multiple detection and updating, and finally the block packaged transaction amount is uploaded to the block chain for block chain transaction, so that when power quality management is carried out, a power quality pollution source can be quickly determined according to the new block packaged transaction amount, the efficiency that the power quality pollution source cannot be accurately and quickly positioned due to data loss is avoided, and the efficiency of power quality management is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is within the scope of the present invention for those skilled in the art to obtain other drawings based on the drawings without inventive exercise.
Fig. 1 is a main flow diagram of a power quality data management method according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings.
The power quality data management method is applied to a power quality management block chain, wherein the power quality management block chain at least comprises a main node and a plurality of common nodes; the master node may be a block link point where the client is located, and the common node may be a block link point where other power main body devices are located. The client converts the self power quality data into a transaction list, performs consensus packaging processing to obtain block packaged transaction amount, and uploads the block packaged transaction amount to a block chain through the main node for broadcasting so that other common nodes receive broadcast information.
Fig. 1 is a schematic diagram illustrating an embodiment of a power quality data management method according to the present invention. In this embodiment, the method comprises the steps of:
step S1, obtaining power quality data of a client, converting the power quality data according to a preset format, encrypting the converted power quality data to obtain a first target transaction list, and uploading the first target transaction list to a block chain network; it can be understood that the data volume of the power quality data is large, and the data cannot be directly uploaded to the block chain. Therefore, the power quality data submitted by the client is converted into a PQDIF (power quality data exchange format) to obtain a PQDIF file.
In the specific embodiment, the format of the acquired power quality data is converted into a PQDIF file; it will be appreciated that PQDIF is a special file format, linked by a series of logically related records. In each record there is a series of elements that define the content of the record. The PQDIF file is divided into two layers, namely a physical layer and a logical layer, and the physical layer describes the physical structure of the file and uses identifiers to identify specific elements of the file and does not care about what is actually stored. The logical layer uses the structure defined by the physical layer to build elements in the file by using specific identifiers to describe logical relationships. The specific process of converting the power quality data into the PQDIF file may be directly converting the power quality data from a database file format into a text format through a power builder. Encrypting the format-converted power quality data through a digital signature; it can be understood that, in order to prevent the client from tampering the power quality data, which may cause inaccuracy of the data transmitted to the block chain, information such as a digital signature and a public key of the power entity (e.g., the client) may be obtained, so as to achieve the purpose that the client is responsible for the data uploaded to the block chain. The digital signature is composed of a digital abstract and an asymmetric encryption technology, firstly, transaction information is shortened into a character string with a fixed length through the digital abstract technology, and then the abstract is encrypted through the asymmetric encryption technology to form the digital signature. Performing hash operation on the digitally signed electric energy quality data, and implanting the generated transaction list ID into a preset transaction list to obtain a first target transaction list; it can be understood that the target transaction order consists of a transaction order ID, a transaction type, a transaction data type, transaction order content, a timestamp, a public key and the like; the transaction bill ID is a hash value for carrying out hash operation on the transaction bill type, the transaction data type, the transaction bill content, the timestamp and the secret key, the hash algorithm can select SHA1, MD5 and the like, the transaction type comprises addition, modification, inquiry and deletion, the modification and deletion to be explained are to add a label to operation data and not to directly modify the original data, thereby realizing the traceability of the data, such as deletion operation, the data is not provided as an inquiry result because the data is in a deletion state in the next inquiry, but the data can still be traced and inquired, and the operation is ensured to be not repudiated through an entity public key, an entity digital certificate and the like, the transaction data type comprises an entity archive, a monitoring archive, monitoring data, out-of-limit transient event data, and the transaction bill content corresponds to real data, if a monitoring file contains the name of the measuring point, the voltage level, the short circuit capacity of the line, etc., the timestamp is the generation time of the transaction list, and the public key is the public key of the block entity.
Step S2, acquiring the first target transaction order, performing consensus packaging according to the first target transaction order, and generating a first block packaged transaction amount; comparing the first block packed transaction amount with a preset quick start threshold value to generate a comparison result; judging whether the packaged transaction amount is finished according to the comparison result, and uploading the first block packaged transaction amount to a block chain network if the packaged transaction amount is finished; if the packaged transaction amount is not finished, detecting missing data of the parameter information in the first target transaction list, and outputting the missing data; as can be appreciated, consensus packaging is the packaging of transactions in a blockchain by a consensus algorithm. Each node in the blockchain peer-to-peer network confirms a batch of transactions through an algorithm and ensures that all nodes have a consistent confirmation result for the batch of data. The block packing transaction amount can be the transaction amount of the block which can be packed, the initial value can be self-configured and is generally default to 100, the algorithm dynamically adjusts the initial value, and the consensus algorithm uses the value to determine the transaction amount of the current block packing. The quick start threshold value can be a threshold value of a quick start stage, the default value is generally half of the maximum transaction packing amount of the block, dynamic adjustment can be performed in the follow-up process according to the block execution condition, when the number of the current block packed transactions is smaller than the default value, the algorithm works in the quick start stage, and when the number of the current block packed transactions is larger than or equal to the default value, the algorithm works in the overtime avoidance stage.
In the embodiment, when the comparison result is that the first block packed transaction amount is greater than or equal to the preset quick start threshold, the packed transaction amount is judged to be finished, and the first block packed transaction amount is uploaded to the block chain network for transaction; and when the comparison result shows that the first block packed transaction amount is smaller than the preset quick start threshold value, judging that the packed transaction amount is not finished, detecting whether the parameter information of the first target transaction list is complete, and acquiring missing data of the parameter information of the first target transaction list according to the detection result. It can be understood that when the block packed transaction amount is found to be greater than or equal to the quick start threshold value through judgment, it can be determined that the block packed transaction amount is complete, and the block chain node can be directly started to upload the block packed transaction amount to the block chain to perform block chain transaction. If the block packed transaction amount is smaller than the preset quick start threshold, whether the target transaction list in the block packed transaction amount is complete is detected, and if the target transaction list is detected to be incomplete.
And step S3, updating the first target transaction list according to the missing data, generating a second target transaction list and uploading the second target transaction list to the block chain network. In a specific embodiment, if the target transaction list is detected to be incomplete and lack a certain data parameter, new power quality data in the client side is acquired according to existing parameter information in the target transaction list, each extraction parameter in the new power quality data is extracted, and the target transaction list is updated according to each extraction parameter. If the target trading order lacks the trading type, new electric energy quality data is extracted from the client, and after the trading type input by the user based on the new electric energy quality data is received, the trading type is used as an extraction parameter to update the target trading order, so that the target trading order contains the trading type.
Step S4, acquiring the second target trading order, and performing consensus packaging according to the acquired second target trading order to generate a second packaged trading volume; (ii) a It can be understood that after the target transaction order is updated, the updated target transaction order is subjected to consensus packaging again to obtain a new block packaged transaction amount.
Comparing the second block packed transaction amount with a preset quick start threshold; if the second block packed transaction amount is larger than or equal to a quick start threshold value, detecting whether the second block packed transaction amount exceeds the block maximum transaction amount of the main node, and if the second block packed transaction amount exceeds the block maximum transaction amount of the main node, outputting error prompt information; if the block maximum transaction packaging amount of the main node is not exceeded, uploading the second block packaging transaction amount to a block chain for block chain transaction; and if the second block packed transaction amount is smaller than the quick starting threshold value, outputting error prompt information. It can be understood that if the new block packed transaction amount is greater than or equal to the fast start threshold, the new block packed transaction amount needs to be compared with the maximum block transaction amount of the block chain node where the client is located, so as to determine whether the new block packed transaction amount exceeds the maximum block chain node transaction amount. And if the new block packed transaction amount is larger than the maximum transaction packed amount, outputting prompt information of error in the block chain transaction, and suspending the operation of uploading the new block packed transaction amount to the block chain. And if the new block packed transaction amount is less than or equal to the quick starting threshold value, uploading the new block packed transaction amount to the block chain for block chain transaction.
The embodiment of the present invention further provides an energy quality data management system, which is used to implement the energy quality data management method, and includes:
the main node is used for acquiring the power quality data of the client, converting the power quality data according to a preset format, and encrypting the converted power quality data to acquire a first target transaction list; the first target transaction order is updated according to the missing data to generate a second target transaction order;
specifically, the master node converts the format of the acquired power quality data into a PQDIF file; encrypting the format-converted power quality data through a digital signature; and performing hash operation on the digitally signed electric energy quality data, and implanting the generated transaction list ID into a preset transaction list to obtain a first target transaction list. When the missing data acquired by the main node is lack of a certain data parameter, acquiring updated electric energy quality data of the client again according to the existing parameter information in the first target transaction list, extracting various pieces of parameter information to be updated in the updated electric energy quality data, and updating the first target transaction list according to the parameter information to be updated; and if the acquired missing data is the lack transaction type, re-extracting the updated electric energy quality data of the client, acquiring the to-be-updated transaction type of the updated electric energy quality data, and updating the target transaction list according to the to-be-updated transaction type.
The common node is used for taking the first target transaction order, performing consensus packaging according to the first target transaction order and generating a first block packaged transaction amount; comparing the first block packed transaction amount with a preset quick start threshold value to generate a comparison result; judging whether the packaged transaction amount is finished according to the comparison result, and uploading the first block packaged transaction amount to a block chain network if the packaged transaction amount is finished; if the packaged transaction amount is not finished, missing data of parameter information in the first target transaction list is detected; the second target trading order is obtained and consensus packaging is carried out according to the obtained second target trading order, and a second packaged trading volume is generated; comparing the second block packed transaction amount with a preset quick start threshold; if the second block packed transaction amount is larger than or equal to a quick start threshold value, detecting whether the second block packed transaction amount exceeds the block maximum transaction amount of the main node, and if the second block packed transaction amount exceeds the block maximum transaction amount of the main node, outputting error prompt information; if the block maximum transaction packaging amount of the main node is not exceeded, uploading the second block packaging transaction amount to a block chain for block chain transaction; and if the second block packed transaction amount is smaller than the quick starting threshold value, outputting error prompt information.
Specifically, when the comparison result generated by the common node is that the first block packed transaction amount is greater than or equal to a preset quick start threshold value, it is determined that the packed transaction amount is completed, and the first block packed transaction amount is uploaded to a block chain network for transaction; and when the generated comparison result is that the first block packed transaction amount is smaller than a preset quick start threshold value, judging that the packed transaction amount is not completed, detecting whether the parameter information of the first target transaction list is complete, and acquiring missing data of the parameter information of the first target transaction list according to the detection result.
In summary, the embodiment of the invention has the following beneficial effects:
according to the method and the system for managing the power quality data, the extracted power quality data are converted into the PQDIF file, the PQDIF file is encrypted to obtain the target transaction list, the target transaction list is subjected to consensus packaging to obtain the block packaged transaction amount, the block packaged transaction amount is subjected to multiple detection and updating, and finally the block packaged transaction amount is uploaded to the block chain for block chain transaction, so that when power quality management is carried out, a power quality pollution source can be quickly determined according to the new block packaged transaction amount, the efficiency that the power quality pollution source cannot be accurately and quickly positioned due to data loss is avoided, and the efficiency of power quality management is improved.
While the invention has been described in connection with what is presently considered to be the most practical and preferred embodiment, it is to be understood that the invention is not to be limited to the disclosed embodiment, but on the contrary, is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (10)

1. A power quality data management method is characterized by comprising the following steps:
step S1, obtaining power quality data of a client, converting the power quality data according to a preset format, encrypting the converted power quality data to obtain a first target transaction list, and uploading the first target transaction list to a block chain network;
step S2, acquiring the first target transaction order, performing consensus packaging according to the first target transaction order, and generating a first block packaged transaction amount; comparing the first block packed transaction amount with a preset quick start threshold value to generate a comparison result; judging whether the packaged transaction amount is finished according to the comparison result, and uploading the first block packaged transaction amount to a block chain network if the packaged transaction amount is finished; if the packaged transaction amount is not finished, detecting missing data of the parameter information in the first target transaction list, and outputting the missing data;
step S3, updating the first target transaction list according to the missing data, generating a second target transaction list and uploading the second target transaction list to a block chain network;
step S4, acquiring the second target trading order, and performing consensus packaging according to the acquired second target trading order to generate a second packaged trading volume; comparing the second block packed transaction amount with a preset quick start threshold; if the second block packed transaction amount is larger than or equal to a quick start threshold value, detecting whether the second block packed transaction amount exceeds the block maximum transaction amount of the main node, and if the second block packed transaction amount exceeds the block maximum transaction amount of the main node, outputting error prompt information; if the block maximum transaction packaging amount of the main node is not exceeded, uploading the second block packaging transaction amount to a block chain for block chain transaction; and if the second block packed transaction amount is smaller than the quick starting threshold value, outputting error prompt information.
2. The method of claim 1, wherein the step S1 includes:
converting the format of the acquired power quality data into a PQDIF file;
encrypting the format-converted power quality data through a digital signature;
and performing hash operation on the digitally signed electric energy quality data, and implanting the generated transaction list ID into a preset transaction list to obtain a first target transaction list.
3. The method of claim 2, wherein the parameter information of the first target transaction order includes at least a transaction order ID, a transaction type, a transaction data type, a transaction order content, a timestamp, and a public key: in fact, the transaction order ID is a hash value obtained by performing a hash operation on the transaction order type, the transaction data type, the transaction order content, the timestamp, and the key.
4. The method of claim 3, wherein the step S2 includes:
when the comparison result is that the first block packed transaction amount is larger than or equal to a preset quick start threshold value, judging that the packed transaction amount is finished, and uploading the first block packed transaction amount to a block chain network for transaction;
and when the comparison result shows that the first block packed transaction amount is smaller than the preset quick start threshold value, judging that the packed transaction amount is not finished, detecting whether the parameter information of the first target transaction list is complete, and acquiring missing data of the parameter information of the first target transaction list according to the detection result.
5. The method of claim 4, wherein the step S3 includes:
when the acquired missing data is lack of a certain data parameter, re-acquiring updated electric energy quality data of the client according to the existing parameter information in the first target transaction list, extracting various pieces of parameter information to be updated in the updated electric energy quality data, and updating the first target transaction list according to the parameter information to be updated;
and when the acquired missing data is the lack transaction type, re-extracting the updated electric energy quality data of the client, acquiring the to-be-updated transaction type of the updated electric energy quality data, and updating the target transaction list according to the to-be-updated transaction type.
6. A power quality data management system for implementing the method of any one of claims 1 to 5, comprising:
the main node is used for acquiring the power quality data of the client, converting the power quality data according to a preset format, and encrypting the converted power quality data to acquire a first target transaction list; the first target transaction order is updated according to the missing data to generate a second target transaction order;
the common node is used for taking the first target transaction order, performing consensus packaging according to the first target transaction order and generating a first block packaged transaction amount; comparing the first block packed transaction amount with a preset quick start threshold value to generate a comparison result; judging whether the packaged transaction amount is finished according to the comparison result, and uploading the first block packaged transaction amount to a block chain network if the packaged transaction amount is finished; if the packaged transaction amount is not finished, missing data of parameter information in the first target transaction list is detected; the second target trading order is obtained and consensus packaging is carried out according to the obtained second target trading order, and a second packaged trading volume is generated; comparing the second block packed transaction amount with a preset quick start threshold; if the second block packed transaction amount is larger than or equal to a quick start threshold value, detecting whether the second block packed transaction amount exceeds the block maximum transaction amount of the main node, and if the second block packed transaction amount exceeds the block maximum transaction amount of the main node, outputting error prompt information; if the block maximum transaction packaging amount of the main node is not exceeded, uploading the second block packaging transaction amount to a block chain for block chain transaction; and if the second block packed transaction amount is smaller than the quick starting threshold value, outputting error prompt information.
7. The system of claim 6, wherein the master node converts the format of the acquired power quality data into a PQDIF file;
encrypting the format-converted power quality data through a digital signature;
and performing hash operation on the digitally signed electric energy quality data, and implanting the generated transaction list ID into a preset transaction list to obtain a first target transaction list.
8. The system of claim 7, wherein the comparison result generated by the common node is that when the first block packed transaction amount is greater than or equal to a preset fast start threshold, it is determined that the packed transaction amount is complete, and the first block packed transaction amount is uploaded to a block chain network for transaction;
and when the generated comparison result is that the first block packed transaction amount is smaller than a preset quick start threshold value, judging that the packed transaction amount is not completed, detecting whether the parameter information of the first target transaction list is complete, and acquiring missing data of the parameter information of the first target transaction list according to the detection result.
9. The system of claim 8, wherein when the missing data acquired by the master node is lack of a certain data parameter, the updated power quality data of the client is acquired again according to the existing parameter information in the first target transaction list, each item of parameter information to be updated in the updated power quality data is extracted, and the first target transaction list is updated according to the parameter information to be updated.
10. The system of claim 9, wherein if the missing data obtained by the master node is a missing transaction type, the updated power quality data of the client is re-extracted, the to-be-updated transaction type of the updated power quality data is obtained, and the target transaction list is updated according to the to-be-updated transaction type.
CN202011171872.6A 2020-10-28 2020-10-28 Power quality data management method and system Active CN112241404B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011171872.6A CN112241404B (en) 2020-10-28 2020-10-28 Power quality data management method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011171872.6A CN112241404B (en) 2020-10-28 2020-10-28 Power quality data management method and system

Publications (2)

Publication Number Publication Date
CN112241404A true CN112241404A (en) 2021-01-19
CN112241404B CN112241404B (en) 2022-04-01

Family

ID=74170281

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011171872.6A Active CN112241404B (en) 2020-10-28 2020-10-28 Power quality data management method and system

Country Status (1)

Country Link
CN (1) CN112241404B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180101560A1 (en) * 2016-10-07 2018-04-12 International Business Machines Corporation Establishing overlay trust consensus for blockchain trust validation system
CN108491980A (en) * 2018-04-04 2018-09-04 湘潭大学 Micro-capacitance sensor intelligent node trade decision method based on cloud sector block chain service platform
CN111026770A (en) * 2019-10-29 2020-04-17 北京海益同展信息科技有限公司 Account book processing method and device for block chain nodes, server and storage medium
CN111177258A (en) * 2019-12-13 2020-05-19 浙商银行股份有限公司 Adaptive configuration transaction packaging method based on block chain platform
CN111696634A (en) * 2019-03-13 2020-09-22 中国移动通信有限公司研究院 Data processing method, device, equipment and computer readable storage medium
CN111737244A (en) * 2020-06-22 2020-10-02 平安医疗健康管理股份有限公司 Data quality inspection method, device, computer system and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180101560A1 (en) * 2016-10-07 2018-04-12 International Business Machines Corporation Establishing overlay trust consensus for blockchain trust validation system
CN108491980A (en) * 2018-04-04 2018-09-04 湘潭大学 Micro-capacitance sensor intelligent node trade decision method based on cloud sector block chain service platform
CN111696634A (en) * 2019-03-13 2020-09-22 中国移动通信有限公司研究院 Data processing method, device, equipment and computer readable storage medium
CN111026770A (en) * 2019-10-29 2020-04-17 北京海益同展信息科技有限公司 Account book processing method and device for block chain nodes, server and storage medium
CN111177258A (en) * 2019-12-13 2020-05-19 浙商银行股份有限公司 Adaptive configuration transaction packaging method based on block chain platform
CN111737244A (en) * 2020-06-22 2020-10-02 平安医疗健康管理股份有限公司 Data quality inspection method, device, computer system and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
宋俊典等: "基于区块链的数据治理协同方法", 《计算机应用》 *

Also Published As

Publication number Publication date
CN112241404B (en) 2022-04-01

Similar Documents

Publication Publication Date Title
CN110278211B (en) Data inspection method and device based on block chain
CN107402976A (en) Power grid multi-source data fusion method and system based on multi-element heterogeneous model
CN108805710A (en) A kind of distribution type electric energy method of commerce based on block chain intelligence contract technology
CN113420039B (en) Model management method, system, equipment and medium for regulating and controlling cloud platform
CN112270550A (en) New energy electric power source tracing method and system based on block chain
CN107147688A (en) A kind of system configuration utility and the two-way check interactive approach of model cloud system and system
CN110310176B (en) Data encryption method and device based on block chain network
CN111581605A (en) Block chain-based multi-person participation BIM drawing copyright protection system and method
CN104699777A (en) Association method and system of management plane and service plane of big data analysis and mining
WO2014040488A1 (en) Method and device for guaranteeing consistency of planning data
CN112417466A (en) Block chain-based electronic archive file evidence storage and verification method and system
CN109033130A (en) A kind of block chain electric power data storage system
CN115278737B (en) Data acquisition method of 5G network
Suciu et al. Securing the smart grid: A blockchain-based secure smart energy system
CN115115458A (en) Energy trading system and method of near-zero carbon emission park based on block chain
Yuan et al. Towards the Power Synergy Hub (PSHub): Coordinating the energy dispatch of super grid by modified Benders decomposition
CN112241404B (en) Power quality data management method and system
CN111866134B (en) Method and system for generating hash value and address of block chain transaction and storage medium
Wang et al. Design of wind farm information system based on blockchain technology
CN112949985B (en) Power grid engineering supervision method and device based on block chain and computer equipment
CN111049157B (en) Distribution network transformer reactive compensation condition analysis method
CN110380418B (en) Newton-Raphson power flow calculation optimization method based on graph decomposition
Ji et al. Decentralized power grid fault traceability system based on internet of things and blockchain technology
CN113282810B (en) Block chain hash-based encrypted electric power transaction data post-verification method and device
CN110990382A (en) Data traceability management system for information operation monitoring

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
GR01 Patent grant
GR01 Patent grant