Blockchain optimization-based power grid new energy metering and sharing method

By optimizing the metering and sharing methods of new energy sources in the power grid through blockchain, and utilizing data synchronization, smart contracts, and electronic signature management, combined with convolutional neural networks, the security and efficiency issues in the metering and sharing of new energy sources in the power grid are solved, thereby optimizing power grid energy dispatch and facilitating data sharing.

CN116488790BActive Publication Date: 2026-07-03STATE GRID HENAN INFORMATION & TELECOMM CO +4

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
STATE GRID HENAN INFORMATION & TELECOMM CO
Filing Date
2023-05-05
Publication Date
2026-07-03

AI Technical Summary

Technical Problem

Existing methods for metering and sharing new energy sources in power grids are insufficient in terms of security and efficiency, making it difficult to meet the needs of the large-scale application of remote power metering devices and the development of Internet of Things (IoT) technology, thus leading to difficulties in optimizing power grid energy dispatch.

Method used

A blockchain-based optimized method for power grid renewable energy metering and sharing is adopted. By optimizing data synchronization, smart contracts, electronic signature management, service monitoring and manual services, and combining convolutional neural networks and blockchain technology, secure and efficient data transmission and storage are achieved.

Benefits of technology

It improves the sharing efficiency and security of new energy metering data in the power grid, simplifies the data processing flow, and enhances the system's practicality and convenience.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

This invention relates to a blockchain-optimized method for metering and sharing new energy sources in the power grid, comprising: optimizing the data synchronization service for application and verification, including optimizing the synchronization service from the marketing intermediate database to the MDS database, optimizing the verification data verification management, optimizing the electronic verification certificate generation service at the city and county levels, and optimizing the NQI data collection and processing service; optimizing smart contracts, including optimizing the contract for the uniqueness of electronic verification certificate numbers, optimizing the data validity verification contract, optimizing the approval contract, and optimizing the electronic signature smart contract; optimizing electronic signature management and application services; optimizing service monitoring: collecting and independently storing data in node storage units, and service monitoring calling the data stored in the node storage units; adding manual services to improve the transparency of electricity meter quality data query services and the query and verification services for user application and verification certificates. This method is highly practical and convenient to use overall.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power grid energy dispatching technology, specifically to a method for metering and sharing new energy sources in the power grid based on blockchain optimization. Background Technology

[0002] With the widespread application of remote power metering devices and the development of IoT technology, sharing regional metering data at the provincial and even national levels is beneficial for optimizing power grid energy dispatch and improving power energy utilization. Therefore, it is essential to design a practical and user-friendly blockchain-based method for the metering and sharing of new energy sources in the power grid. Summary of the Invention

[0003] The purpose of this invention is to provide a blockchain-optimized method for metering and sharing new energy sources in the power grid that is highly practical and easy to use.

[0004] The technical solution of this invention is:

[0005] A blockchain-optimized method for metering and sharing renewable energy in power grids includes the following steps:

[0006] S11. Optimize the data synchronization service for application and verification, including optimizing the data synchronization service from the marketing intermediate database to the MDS database, optimizing the verification data verification management, optimizing the electronic verification certificate generation service for cities and counties, and optimizing the NQI data collection and processing service;

[0007] S12. Optimize smart contracts, including optimizing the contract for the uniqueness of electronic verification certificate numbers, optimizing the contract for data validity verification, optimizing the approval contract, and optimizing the electronic signature smart contract;

[0008] S13. Optimize electronic signature management and application services;

[0009] S14. Optimize service monitoring: Collect and independently store data in the node storage unit, and the service monitoring calls the data stored in the node storage unit;

[0010] S15. Increase manual services to improve the transparency of electricity meter quality data query services and the query and verification services for user-application calibration certificates.

[0011] Preferably, in step S11, the method for optimizing the data synchronization service from the marketing middleware database to the MDS database is as follows: three protocol channels are established between the marketing middleware database and the MDS database: SQL Server to SQL Server, MySQL to MySQL, and SQL Server to MySQL. During the data synchronization process from the marketing middleware database to the MDS database, when it is necessary to transfer data of the same type as SQL Server between the marketing middleware database and the MDS database, the SQL Server to SQL Server protocol channel is used for transmission; when it is necessary to transfer data of the same type as MySQL between the marketing middleware database and the MDS database, the MySQL to MySQL protocol channel is used for transmission; and when it is necessary to transfer data of different types as SQL Server and MySQL between the marketing middleware database and the MDS database, the SQL Server to MySQL protocol channel is used for transmission.

[0012] Preferably, in step S11, the method for optimizing the verification data management work is to adjust the data verification time to facilitate rapid review and verification during non-working hours; the method for determining the data verification time is:

[0013] S21. Establish the initial model of the convolutional neural network. The input of the initial model of the convolutional neural network is time, and the output is the working time logical value. The working time logical value has two categories: working time and non-working time. That is, the initial model of the convolutional neural network is used to classify the input time into working time and non-working time.

[0014] S22. Construct training and test sets using working and non-working hours over a period of 3 years;

[0015] S23. Use the training set to train the initial model of the convolutional neural network to obtain the convolutional neural network classification model;

[0016] S24. Test the convolutional neural network classification model using the test set. When the classification accuracy of the convolutional neural network classification model meets the requirements, the working time classification model is obtained.

[0017] S25. Input the time of day into the working time classification model in segments, and determine the time periods corresponding to non-working hours output by the working time classification model as the data verification time.

[0018] Preferably, in step S11, the way to optimize the electronic verification certificate generation service of cities and counties is to: customize the template of electronic verification certificate, set the issuance time of electronic verification certificate, and obtain network time synchronization.

[0019] Preferably, in step S11, the way to optimize the NQI data collection and processing service is to remove overlapping NQI data that are homogeneous, from the same year and under similar conditions, and to classify NQI data based on region, time and environment.

[0020] Preferably, in step S12, the method for optimizing the uniqueness contract of the electronic verification certificate number is as follows: address is divided to establish multiple independent primary pointer areas, and multiple secondary address pointers are divided within the primary pointer areas. The sending time of the electronic verification certificate number is assigned based on the address. The method for optimizing the data validity verification contract is as follows: a tree-structured three-dimensional grid-based verification key is constructed, a temporary storage unit is built based on the grid, and the data to be verified is temporarily stored through the temporary storage unit and verified in conjunction with the corresponding extended key. The method for optimizing the approval contract is as follows: public clauses of the contract are quickly removed, and additional clauses and non-public clauses are highlighted. The method for optimizing the electronic signature recognition process is as follows: the general mark of the signature is stored using blockchain, the private mark of the signature is stored independently, a database is established to store the general mark and the private mark, and the pointer address of the general mark and the pointer address of the private mark are independent of each other.

[0021] Preferably, in step S13, the method of optimizing the electronic signature management and application service is as follows: the electronic signature key is divided into three segments, namely, a public key encryption segment, a data carrier segment and a redundant character composite segment, and a private key encryption segment; the decryption public key corresponding to the public key encryption segment is placed in a predetermined device, and the private key encryption segment is used to decrypt the data carrier segment and the redundant character composite segment; different usage functions are provided to the private key encryption segment, and decryption traces are retained.

[0022] Preferably, in step S14, the optimized service monitoring method is as follows: the data collected by the service monitoring includes the application data dashboard provided by the power company, data flow timeliness data, data flow correctness verification data, certificate batch generation performance data, and trusted data on-chain results and performance. The collected data is stored independently in the corresponding node storage unit and called, published and displayed through the NQI platform channel.

[0023] Preferably, in S15, manual services are added, including: manual support for transparent services for querying electricity meter quality data, and on-site support for users to query and verify calibration certificates; the content of manual support includes collecting and verifying a complete set of documents with company seals and personnel signatures, submitting them to the confidential service platform for approval, and tracking and handling problems encountered in the application.

[0024] The beneficial effects of this invention are:

[0025] 1. By leveraging blockchain technology, the efficiency of metering data sharing for new energy sources in the power grid can be improved while ensuring security. The method of this invention is highly practical and easy to use overall. Detailed Implementation

[0026] The present invention will now be described with reference to embodiments to assist those skilled in the art in understanding and implementing the invention. Unless otherwise stated, the following embodiments and the technical terms therein should not be understood without a background of technical knowledge in this field.

[0027] Example 1: A blockchain-optimized method for metering and sharing renewable energy in a power grid, comprising the following steps:

[0028] S11. Optimize the data synchronization service for application and verification, including optimizing the data synchronization service from the marketing intermediate database to the MDS database, optimizing the verification data verification management, optimizing the electronic verification certificate generation service for cities and counties, and optimizing the NQI data collection and processing service;

[0029] S12. Optimize smart contracts, including optimizing the contract for the uniqueness of electronic verification certificate numbers, optimizing the contract for data validity verification, optimizing the approval contract, and optimizing the electronic signature smart contract;

[0030] S13. Optimize electronic signature management and application services;

[0031] S14. Optimize service monitoring: Collect and independently store data in the node storage unit, and the service monitoring calls the data stored in the node storage unit;

[0032] S15. Increase manual services to improve the transparency of electricity meter quality data query services and the query and verification services for user-application calibration certificates.

[0033] In step S11, the method for optimizing the data synchronization service for application and verification is as follows:

[0034] Three protocol channels—SQL Server to SQL Server, MySQL to MySQL, and SQL Server to MySQL—are established between the marketing middleware database and the MDS database. During the data synchronization process from the marketing middleware database to the MDS database, the SQL Server to SQL Server protocol channel is used for transferring data of the same type as SQL Server data between the two databases; the MySQL to MySQL protocol channel is used for transferring data of the same type as MySQL data between the two databases; and the SQL Server to MySQL protocol channel is used for transferring data of different types as SQL Server and MySQL data between the two databases. This optimizes the data synchronization service from the marketing middleware database to the MDS database, improving the data synchronization efficiency between the two databases.

[0035] Adjust the data verification time to facilitate rapid review and verification during non-working hours. This will optimize the management of verification data.

[0036] The method for determining the verification time of the data is:

[0037] S21. Establish the initial model of the convolutional neural network. The input of the initial model of the convolutional neural network is time, and the output is the working time logical value. The working time logical value has two categories: working time and non-working time. That is, the initial model of the convolutional neural network is used to classify the input time into working time and non-working time.

[0038] S22. Construct training and test sets using working and non-working hours over a period of 3 years;

[0039] S23. Use the training set to train the initial model of the convolutional neural network to obtain the convolutional neural network classification model;

[0040] S24. Test the convolutional neural network classification model using the test set. When the classification accuracy of the convolutional neural network classification model meets the requirements, the working time classification model is obtained.

[0041] S25. Input the time of day into the working time classification model in segments, and determine the time periods corresponding to non-working hours output by the working time classification model as the data verification time.

[0042] By using convolutional neural networks to learn and statistically analyze working hours, we can improve the efficiency of determining non-working hours and reduce the workload of manually determining non-working hours.

[0043] Customizing electronic verification certificate templates, setting the issuance time, and obtaining network time synchronization can simplify information forms that previously required manual entry. Electronic verification certificates are typically needed by municipal and county-level power supply companies; this optimization of electronic verification certificate generation services at the municipal and county levels will further streamline these processes.

[0044] By eliminating overlapping NQI data that are homogeneous, from the same year, and under similar conditions, and classifying NQI data based on region, time, and environment, we can optimize NQI data collection and processing services.

[0045] In step S12, the smart contract is optimized as follows:

[0046] The sub-contracts of the smart contract include the electronic verification certificate number uniqueness contract, the data validity verification contract, the approval contract, and the electronic signature smart contract.

[0047] Addresses are divided to establish multiple independent primary pointer regions, and multiple secondary address pointers are divided within the primary pointer regions. The sending time of electronic verification certificate numbers is assigned based on the address to optimize the uniqueness of electronic verification certificate numbers.

[0048] A tree-structured, three-dimensional grid-based verification key is constructed. Temporary storage units are built based on the grid. The data to be verified is temporarily stored in the temporary storage units and verified in conjunction with the corresponding verification key, thereby optimizing the data validity verification contract.

[0049] By quickly removing public terms from contracts and highlighting additional and non-public terms, the contract approval process is optimized.

[0050] By using blockchain to store a universal signature mark and a separate private signature mark, and establishing a database to store both universal and private signature marks, the pointer addresses of the universal signature mark and the pointer addresses of the private signature mark are made independent of each other. In this way, by optimizing the electronic signature smart contract, the electronic signature recognition process can be optimized.

[0051] In step S13, the method for optimizing electronic signature management and application services is as follows:

[0052] The electronic signature key is segmented into three segments: a public key encryption segment, a data bearer segment and a redundant character composite segment, and a private key encryption segment. The decryption public key corresponding to the public key encryption segment is placed in a predetermined device, and the private key encryption segment is used to decrypt the data bearer segment and the redundant character composite segment. To meet different usage needs, the private key encryption segment is equipped with different functions, and decryption traces are retained. This optimizes electronic signature management and application services.

[0053] Generally, in a key, the public key encryption segment is at the beginning, the data carrier segment is in the middle, and the private key encryption segment is at the end.

[0054] In step S14, the method for optimizing service monitoring is as follows:

[0055] The data collected for service monitoring includes application dashboards provided by the power company, data flow timeliness data, data flow correctness verification data, certificate batch generation performance data, and trusted data on-chain results and performance. This collected data is stored independently in its corresponding node storage unit and accessed, published, and displayed through the NQI platform. This optimizes the data collected for service monitoring.

[0056] In S15, human services are added, including: human support for transparent services to query electricity meter quality data, and human support for users to query and verify calibration certificates. Human support may include collecting and verifying a complete set of documents containing company seals and personnel signatures, submitting documents for approval to the secure platform, and tracking and resolving issues encountered during the application.

[0057] Example 2: A blockchain-optimized method for metering and sharing renewable energy in a power grid, comprising the following steps:

[0058] S100, Optimization of data synchronization service for verification and calibration: Optimization of relevant parts in the data synchronization and transmission process;

[0059] S200, Smart Contracts and Data On-Chain Optimization: Optimize the sub-contractual parts contained in smart contracts;

[0060] S300, Optimization of Electronic Signature Management and Application Services: Optimization and adjustment of the composition of electronic signatures;

[0061] S400 Service Monitoring Optimization: Data is collected from nodes that transmit data and stored independently, so that service monitoring can be performed by calling the independently stored data at the nodes;

[0062] S500, on-site service support.

[0063] Specifically, the optimizations in S100 include: optimization of the marketing intermediate database data to MDS database synchronization service; optimization of verification data verification management; optimization of the city / county-based electronic verification certificate generation service; and optimization of NQI data collection and processing service.

[0064] The optimization of the marketing middleware database to MDS database synchronization service is achieved by constructing three protocol channels: SQL Server to SQL Server, MySQL to MySQL, and SQL Server to MySQL. By classifying the data types of the marketing middleware database and the data types stored in the MDS database, the same type of data is processed using the SQL Server to SQL Server and MySQL to MySQL protocol channels, while the heterogeneous data is processed using the SQL Server to MySQL protocol channel, thereby improving synchronization efficiency.

[0065] The optimization of verification data management involves adjusting the time of verification data and using a convolutional neural network to learn and statistically analyze data based on working hours, thereby enabling rapid review and verification during non-working hours.

[0066] The optimization of the city and county-based electronic verification certificate generation service is achieved by customizing certificate templates, setting certificate issuance time to obtain network time synchronization, and simplifying information forms that previously required manual application and filling.

[0067] The optimization of the NQI data collection and processing service uses cloud computing to eliminate overlapping NQI data from the same year and under similar environments, and then classifies the NQI data based on region, time, and environment.

[0068] Specifically, the sub-contracts of S200 include a certificate number uniqueness verification contract, a data validity verification contract, an approval contract, and an electronic signature smart contract, which are optimized as follows:

[0069] The optimization of the certificate number uniqueness contract is achieved by effectively dividing the address of the certificate number sending time, constructing an independent first-level pointer region, and then constructing a second-level address pointer.

[0070] The optimization of the data validity verification contract is achieved by constructing a three-dimensional grid-based verification key and building temporary storage units based on the grid. The temporary storage units are used to temporarily store the data to be verified and are used in conjunction with the corresponding extended key for verification. The grid-based construction is based on a tree structure.

[0071] The optimization of the approval contract involves quickly removing common clauses from the contract and highlighting additional and non-common clauses.

[0072] The optimization of the electronic signature smart contract is achieved by storing the general mark of the signature on the blockchain, storing the private mark independently, and constructing two databases with independent pointer addresses based on the general mark and the private mark, thereby optimizing the electronic signature recognition process.

[0073] Specifically, the optimization of electronic signature management and application services of the S300 is achieved by setting the original electronic signature key in three segments: a public key encryption segment, a data carrier segment and a redundant character composite segment, and a private key encryption segment. The decryption public key corresponding to the public key encryption segment is placed in a predetermined device, and the private key encryption segment is a composite character decryption segment. This allows for different uses of the private key based on the needs of different users, and decryption traces are stored.

[0074] Specifically, the data collected by the S400 service monitoring and optimization includes data dashboards provided by the power company for school application, data collection on the timeliness of data flow, data flow correctness verification, data collection on the performance of batch certificate generation, and results and performance of trusted data on-chain. The collected data is stored independently in the corresponding node storage unit and called, published and displayed through the NQI platform channel.

[0075] Specifically, the on-site service support of the S500 includes transparent service for querying electricity meter quality data and service for querying and verifying user calibration certificates. The above services include collecting and verifying a complete set of documents with company seals and personnel signatures, submitting them to the security service platform for approval, and tracking and handling problems encountered in the application.

[0076] The present invention has been described in detail above with reference to the embodiments. It should be understood that it is impossible to exhaustively describe all possible implementation methods in practice. The inventive concept of the present invention is illustrated to the extent possible by way of examples. Without departing from the inventive concept of the present invention and without creative effort, any specific embodiments formed by selecting and combining technical features in the above embodiments, experimenting with and changing specific parameters, or by conventionally replacing the technical means disclosed in the present invention using existing technology in the present invention, shall all be considered as implied disclosures of the present invention.

Claims

1. A method for metering and sharing of new energy of a power grid based on blockchain optimization, characterized in that, Includes the following steps: S11. Optimize the data synchronization service for application and verification, including optimizing the data synchronization service from the marketing intermediate database to the MDS database, optimizing the verification data verification management, optimizing the electronic verification certificate generation service for cities and counties, and optimizing the NQI data collection and processing service; S12. Optimize smart contracts, specifically including: The method to optimize the uniqueness of electronic verification certificate numbers is as follows: divide the address to establish multiple independent primary pointer areas, and divide the primary pointer areas into multiple secondary address pointers, and allocate the sending time of electronic verification certificate numbers based on the address; The data validity verification contract is optimized by constructing a tree-structured three-dimensional grid verification key, building temporary storage units based on the grid, temporarily storing the data to be verified through the temporary storage units, and verifying it in conjunction with the corresponding extended key. The method to optimize contract approval is to quickly remove public clauses from the contract data and highlight additional clauses and non-public clauses. The process of optimizing the electronic signature recognition is as follows: use blockchain to store the general mark of the signature, store the private mark of the signature independently, establish a database to store the general mark and the private mark, and make the pointer address of the general mark and the pointer address of the private mark independent of each other. S13. Optimize electronic signature management and application services; S14. Optimize service monitoring: Collect and independently store data in the node storage unit, and the service monitoring calls the data stored in the node storage unit; S15. Increase manual services to improve the transparency of electricity meter quality data query services and the query and verification services for user-application calibration certificates.

2. The blockchain-based optimization method for grid new energy metering and sharing according to claim 1, characterized in that, In step S11, the method for optimizing the data synchronization service from the marketing middleware database to the MDS database is as follows: three protocol channels are established between the marketing middleware database and the MDS database: SQL Server to SQL Server, MySQL to MySQL, and SQL Server to MySQL. During the data synchronization process from the marketing middleware database to the MDS database, when it is necessary to transfer data of the same type as SQL Server between the marketing middleware database and the MDS database, the SQL Server to SQL Server protocol channel is used for transmission; when it is necessary to transfer data of the same type as MySQL between the marketing middleware database and the MDS database, the MySQL to MySQL protocol channel is used for transmission; and when it is necessary to transfer data of different types as SQL Server and MySQL between the marketing middleware database and the MDS database, the SQL Server to MySQL protocol channel is used for transmission. 3.The blockchain-based optimization method for metering and sharing of new energy of power grid according to claim 1, wherein, In step S11, the method for optimizing the verification data management process is to adjust the verification time of the data to facilitate rapid review and verification during non-working hours; the method for determining the verification time of the data is as follows: S21. Establish the initial model of the convolutional neural network. The input of the initial model of the convolutional neural network is time, and the output is the working time logical value. The working time logical value has two categories: working time and non-working time. That is, the initial model of the convolutional neural network is used to classify the input time into working time and non-working time. S22. Construct training and test sets using working and non-working hours over a period of 3 years; S23. Use the training set to train the initial model of the convolutional neural network to obtain the convolutional neural network classification model; S24. Test the convolutional neural network classification model using the test set. When the classification accuracy of the convolutional neural network classification model meets the requirements, the working time classification model is obtained. S25. Input the time of day into the working time classification model in segments, and determine the time periods corresponding to non-working hours output by the working time classification model as the data verification time.

4. The blockchain optimization-based metering and sharing method for new energy power grids of claim 1, wherein, In step S11, the method to optimize the electronic verification certificate generation service for cities and counties is as follows: customize the template of the electronic verification certificate, set the issuance time of the electronic verification certificate, and obtain network time synchronization.

5. The blockchain optimization-based metering and sharing method for new energy power grids of claim 1, wherein, In step S11, the method to optimize the NQI data collection and processing service is to remove overlapping NQI data that are homogeneous, from the same year, and under similar environments, and to classify NQI data based on region, time, and environment.

6. The blockchain optimization-based metering and sharing method for new energy power grids of claim 1, wherein, In step S13, the method of optimizing the electronic signature management and application service is as follows: the electronic signature key is divided into three segments, namely, the public key encryption segment, the data carrier segment and the redundant character composite segment, and the private key encryption segment; the decryption public key corresponding to the public key encryption segment is placed in a predetermined device, and the data carrier segment and the redundant character composite segment are decrypted using the private key encryption segment; different usage functions are provided to the private key encryption segment, and decryption traces are left.

7. The blockchain optimization-based method for metering and sharing of new energy of a power grid according to claim 1, characterized in that, In step S14, the service monitoring optimization method is as follows: the data collected by the service monitoring includes the application data dashboard provided by the power company, data flow timeliness data, data flow correctness verification data, certificate batch generation performance data, and trusted data on-chain results and performance. The above-mentioned collected data are independently stored in the corresponding node storage unit and called, published and displayed through the NQI platform channel. 8.The method of claim 1, wherein, In S15, human services are added, including: human support for transparent services for querying electricity meter quality data, and on-site support for users to query and verify calibration certificates. The content of human support includes collecting and verifying a complete set of documents with company seals and personnel signatures, submitting them to the confidential service platform for approval, and tracking and handling problems encountered in the application.