Blockchain-based power data transmission control method, apparatus and device, and storage medium

By adopting a blockchain-based method in power data transmission, power data is compressed and encrypted, and transmitted under the trustworthiness mechanism of DAG blockchain, the problems of security and efficiency in power data transmission are solved, and more efficient and secure data transmission is achieved.

WO2025044818A1PCT designated stage expired Publication Date: 2025-03-06GUANGDONG POWER GRID CO LTD DONGGUAN POWER SUPPLY BUREAU
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/113121
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-08-30
Filing Date
2024-08-19
Publication Date
2025-03-06

AI Technical Summary

Technical Problem

There are problems with low security and efficiency in power data during transmission. The existing encryption methods are difficult to prevent tampering, and the large amount of data leads to low transmission efficiency.

Method used

The power data transmission control method based on blockchain is adopted, and the target transform compression algorithm is used to compress by obtaining the characteristic information of the power data to be transmitted. When the credibility of the DAG blockchain is greater than the preset threshold, the reputation value of the power grid system is generated and the target power data transmission mode is determined for transmission.

Benefits of technology

It improves the security and efficiency of power data transmission, prevents data tampering, and ensures the reliability of data transmission through the blockchain's credibility mechanism.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024113121_06032025_PF_FP_ABST
    Figure CN2024113121_06032025_PF_FP_ABST
Patent Text Reader

Abstract

A blockchain-based power data transmission control method, apparatus and device, and a storage medium. The method comprises: determining characteristic information of power data to be transmitted (S10); on the basis of a target transformation compression algorithm and the characteristic information, compressing the power data to be transmitted (S20); when the credibility of a DAG blockchain is greater than a preset credibility threshold, generating a reputation value of a power grid system to which the power data to be transmitted belongs (S30); and determining a target power data transmission mode on the basis of the reputation value and the characteristic information, and transmitting target compressed power data by means of the target power data transmission mode (S40).
Need to check novelty before this filing date? Find Prior Art

Description

Blockchain-based power data transmission control method, device, equipment and storage medium

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on August 30, 2023, with application number 202311100379.9, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of data processing technology, and for example, to a blockchain-based power data transmission control method, device, equipment, and storage medium. Background Art

[0003] In recent years, the security of power data has become increasingly important. However, risks are very likely to occur during the transmission of power data, resulting in the loss or tampering of power data. To address the above defects, a common method is to encrypt the power data to be transmitted, that is, to transmit the encrypted power data in a conventional manner. However, users with ulterior motives will still tamper with the power data by decrypting it, and the amount of power data is huge, which will ultimately result in low security and efficiency in transmitting power data.

[0004] Summary of the Invention

[0005] The present application provides a blockchain-based power data transmission control method, device, equipment and storage medium, aiming to solve the problems of low security and efficiency in transmitting power data.

[0006] This application provides a blockchain-based power data transmission control method, the method comprising:

[0007] Acquiring power data to be transmitted, and determining characteristic information of the power data to be transmitted;

[0008] compressing the power data to be transmitted according to the characteristic information based on a target transformation compression algorithm to obtain target compressed power data;

[0009] When the credibility of the DAG blockchain is greater than a preset credibility threshold, a credibility value of the power grid system to which the power data to be transmitted belongs is generated;

[0010] A target power data transmission mode is determined according to the reputation value and the characteristic information, and the target compressed power data is transmitted through the target power data transmission mode.

[0011] Optionally, compressing the power data to be transmitted according to the characteristic information using a target transformation compression algorithm to obtain target compressed power data includes:

[0012] Acquiring a sampling rate of the power data to be transmitted, and determining a normalized frequency band of the power data to be transmitted according to the sampling rate;

[0013] When the normalized frequency band is not within the preset interval, normalizing the normalized frequency band of the power data to be transmitted until the processed normalized frequency band is within the preset interval;

[0014] Decomposing the processed normalized frequency band using multiple low-pass filters and multiple high-pass filters to obtain low-frequency power data to be transmitted and high-frequency power data to be transmitted;

[0015] Obtaining characteristic information of low-frequency power data to be transmitted and characteristic information of high-frequency power data to be transmitted according to the characteristic information;

[0016] Calculating a compression coefficient of the low-frequency power data to be transmitted based on the characteristic information of the low-frequency power data to be transmitted, and calculating a compression coefficient of the high-frequency power data to be transmitted based on the characteristic information of the high-frequency power data to be transmitted;

[0017] compressing the low-frequency power data to be transmitted based on a target transformation compression algorithm according to a compression coefficient of the low-frequency power data to be transmitted to obtain low-compressed power data, and compressing the high-frequency power data to be transmitted based on a target transformation compression algorithm according to a compression coefficient of the high-frequency power data to be transmitted to obtain high-compressed power data;

[0018] The low-compression power data and the high-compression power data are fused to obtain target compressed power data.

[0019] Optionally, the calculating the compression coefficient of the low-frequency power data to be transmitted according to the characteristic information of the low-frequency power data to be transmitted, and the calculating the compression coefficient of the high-frequency power data to be transmitted according to the characteristic information of the high-frequency power data to be transmitted, include:

[0020] Obtaining a low-frequency coefficient and a low-frequency decomposition level according to characteristic information of the low-frequency power data to be transmitted;

[0021] Obtaining a high-frequency coefficient and a high-frequency decomposition level according to characteristic information of the high-frequency power data to be transmitted;

[0022] generating a coefficient vector according to the low-frequency coefficient and the high-frequency coefficient, and generating a series vector according to the low-frequency decomposition series and the high-frequency decomposition series;

[0023] Calculating the angle between the coefficient vector and the series vector;

[0024] Calculating the compression coefficient of the low-frequency power data to be transmitted by using a first compression coefficient calculation formula based on the low-frequency coefficient, the low-frequency decomposition level and the angle;

[0025] The compression coefficient of the high-frequency power data to be transmitted is calculated using a second compression coefficient calculation formula based on the high-frequency coefficient, the high-frequency decomposition level and the angle.

[0026] Optionally, when the credibility of the DAG blockchain is greater than a preset credibility threshold, generating a credibility value of the power grid system to which the power data to be transmitted belongs includes:

[0027] When the credibility of the DAG blockchain is greater than a preset credibility threshold, obtaining the power grid system to which the power data to be transmitted belongs;

[0028] Determining the contracted electricity volume and the actual electricity volume traded by the power grid system within a preset time period;

[0029] Calculate the transaction deviation based on the transaction contract power and the actual transaction power;

[0030] When the ratio of the transaction deviation electricity to the transaction contract electricity is less than the allowable deviation electricity, the reputation value of the power grid system is calculated according to the transaction contract electricity and the actual transaction electricity.

[0031] Optionally, when the credibility of the DAG blockchain is greater than a preset credibility threshold, before obtaining the power grid system to which the power data to be transmitted belongs, the method further includes:

[0032] Calculate the target hash value of the test power data using the MD5 algorithm;

[0033] Add the target hash value to the trust DAG blockchain and the DAG blockchain respectively;

[0034] Using the target test account, obtain a first hash value and a second hash value from the trusted DAG blockchain and the DAG blockchain respectively;

[0035] Determining the credibility of the DAG blockchain based on the first hash value and the second hash value;

[0036] When the credibility of the DAG blockchain is less than or equal to a preset credibility threshold, the credibility of the DAG blockchain is enhanced through a reliable mechanism for distinguishing business priorities;

[0037] Determine whether the enhanced credibility of the DAG blockchain is greater than the preset credibility threshold.

[0038] Optionally, determining a target power data transmission mode according to the reputation value and the characteristic information, and transmitting the target compressed power data through the target power data transmission mode includes:

[0039] Determining a consistent calling path, an underlying communication protocol, and a power data transmission format based on the reputation value and the characteristic information;

[0040] Determining a target transmission protocol based on the consistent calling path, the underlying communication protocol, and the power data transmission format;

[0041] A target power data transmission mode is determined according to the target transmission protocol, and the target compressed power data is transmitted through the target power data transmission mode.

[0042] Optionally, determining a target power data transmission mode according to the target transmission protocol, and transmitting the target compressed power data through the target power data transmission mode includes:

[0043] determining a target power data transmission mode according to the target transmission protocol;

[0044] Determine whether the DAG blockchain meets the service latency constraints of various QoS requirements of the power system;

[0045] When the DAG blockchain meets the service latency constraints of multiple QoS requirements of the power system, reliability evaluation is performed on the target compressed power data;

[0046] When the evaluation result meets the target transmission requirement, the target compressed power data is transmitted to the DAG blockchain through the target power data transmission mode, and the DAG blockchain continues to transmit the target compressed power data.

[0047] This application also provides a blockchain-based power data transmission control device, comprising:

[0048] An acquisition module, configured to acquire power data to be transmitted and determine characteristic information of the power data to be transmitted;

[0049] a compression module configured to compress the power data to be transmitted according to the characteristic information based on a target transformation compression algorithm to obtain target compressed power data;

[0050] A generation module, configured to generate a credibility value of the power grid system to which the power data to be transmitted belongs when the credibility of the DAG blockchain is greater than a preset credibility threshold;

[0051] The transmission module is configured to determine a target power data transmission mode according to the reputation value and the characteristic information, and transmit the target compressed power data through the target power data transmission mode.

[0052] The present application also provides a blockchain-based power data transmission control device, which includes: a memory, a processor, and a blockchain-based power data transmission control program stored on the memory and executable on the processor, wherein the blockchain-based power data transmission control program is configured to implement the blockchain-based power data transmission control method as described above.

[0053] The present application also provides a storage medium, on which a blockchain-based power data transmission control program is stored. When the blockchain-based power data transmission control program is executed by a processor, the blockchain-based power data transmission control method as described above is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] FIG1 is a schematic diagram of the structure of a power data transmission control device based on blockchain in a hardware operating environment according to an embodiment of the present application;

[0055] FIG2 is a flow chart of a first embodiment of a blockchain-based power data transmission control method of the present application;

[0056] FIG3 is a flow chart of a second embodiment of the blockchain-based power data transmission control method of the present application;

[0057] Figure 4 is a schematic diagram of the functional modules of the blockchain-based power data transmission control device of this application. DETAILED DESCRIPTION

[0058] The embodiments described herein are only used to explain the present application and are not intended to limit the present application.

[0059] Refer to Figure 1, which is a structural diagram of a blockchain-based power data transmission control device in the hardware operating environment involved in the embodiment of the present application.

[0060] As shown in Figure 1, the blockchain-based power data transmission control device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is configured to enable communication between these components. The user interface 1003 may include a display and an input unit, such as a keyboard. The user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may include a standard wired interface or a wireless interface (such as a wireless fidelity (Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (RAM) or a stable non-volatile memory (NVM), such as a disk drive. The memory 1005 may also be a storage device independent of the processor 1001.

[0061] The structure shown in FIG1 does not constitute a limitation on the blockchain-based power data transmission control device, and may include more or fewer components than shown in the figure, or combine some components, or arrange the components differently.

[0062] As shown in FIG1 , the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a blockchain-based power data transmission control program.

[0063] In the blockchain-based power data transmission control device shown in Figure 1, the network interface 1004 is mainly configured to communicate data with the network integration platform workstation; the user interface 1003 is mainly configured to interact with the user; the processor 1001 and the memory 1005 in the blockchain-based power data transmission control device of this application can be set in the blockchain-based power data transmission control device, and the blockchain-based power data transmission control device calls the blockchain-based power data transmission control program stored in the memory 1005 through the processor 1001, and executes the blockchain-based power data transmission control method provided in the embodiment of this application.

[0064] Based on the above hardware structure, an embodiment of the blockchain-based power data transmission control method of the present application is provided.

[0065] Refer to Figure 2, which is a flow chart of the first embodiment of the blockchain-based power data transmission control method of the present application.

[0066] In a first embodiment, the blockchain-based power data transmission control method includes the following steps.

[0067] Step S10: acquiring power data to be transmitted and determining characteristic information of the power data to be transmitted.

[0068] The executor of this embodiment is a blockchain-based power data transmission control device, and may also be other devices that can achieve the same or similar functions, such as a data transmission controller, etc. This embodiment does not limit this. In this embodiment, the data transmission controller is used as an example for illustration.

[0069] The power data to be transmitted refers to the power data that the power grid system needs to transmit to the power data analysis department. Due to the setting of the intranet, the efficiency and security of data interaction between the power grid system and the power data analysis department are low. Therefore, this application uses the access of the blockchain to enable the power data to be transmitted to be quickly and securely transmitted to the power data analysis department. The characteristic information refers to the relevant information that is unique to the characteristics of the power data to be transmitted, and the characteristic information includes but is not limited to timestamp, voltage fluctuation information, and frequency.

[0070] Step S20 : ​​compressing the power data to be transmitted according to the characteristic information based on a target transformation compression algorithm to obtain target compressed power data.

[0071] The target transformation compression algorithm refers to an algorithm for compressing the power data to be transmitted. The target transformation compression algorithm can be a Ray-Period compression algorithm based on integer wavelet transform. The amount of target compressed power data compressed by the target transformation compression algorithm is much smaller than the amount of power data to be transmitted, thereby effectively improving the efficiency of transmitting power data.

[0072] Exemplarily, step S20 includes: obtaining a sampling rate of the power data to be transmitted, and determining a normalized frequency band of the power data to be transmitted according to the sampling rate; when the normalized frequency band is not within a preset interval, normalizing the normalized frequency band of the power data to be transmitted until the processed normalized frequency band is within the preset interval; using multiple low-pass filters and multiple high-pass filters to decompose the processed normalized frequency band to obtain low-frequency power data to be transmitted and high-frequency power data to be transmitted; obtaining characteristic information of the low-frequency power data to be transmitted and characteristic information of the high-frequency power data to be transmitted according to the characteristic information; and obtaining characteristic information of the low-frequency power data to be transmitted and characteristic information of the high-frequency power data to be transmitted according to the low-frequency power data to be transmitted. The compression coefficient of the low-frequency power data to be transmitted is calculated based on the characteristic information of the transmitted power data, and the compression coefficient of the high-frequency power data to be transmitted is calculated based on the characteristic information of the high-frequency power data to be transmitted; the low-frequency power data to be transmitted is compressed based on the target transformation compression algorithm according to the compression coefficient of the low-frequency power data to be transmitted to obtain low-compressed power data, and the high-frequency power data to be transmitted is compressed based on the target transformation compression algorithm according to the compression coefficient of the high-frequency power data to be transmitted to obtain high-compressed power data; the low-compressed power data and the high-compressed power data are fused to obtain target compressed power data.

[0073] The sampling rate refers to the frequency at which the power data to be transmitted of the power grid system is collected. After obtaining the sampling rate of the power data to be transmitted, the normalized frequency band of the power data to be transmitted is determined based on the sampling rate. It is determined whether the normalized frequency band is within a preset interval. If not, the normalized frequency band of the power data to be transmitted is normalized. The preset interval may be [-π, π]. Multiple low-pass filters and multiple high-pass filters are used to decompose the processed normalized frequency band to obtain low-frequency power data to be transmitted and high-frequency power data to be transmitted. In this case, the normalized frequency band of the low-frequency power data to be transmitted is [0, π / 2], and the normalized frequency band of the high-frequency power data to be transmitted is (π / 2, π]. The compression coefficient of the low-frequency power data to be transmitted refers to the coefficient by which the low-frequency power data to be transmitted is compressed. Similarly, the compression coefficient of the high-frequency power data to be transmitted refers to the coefficient by which the high-frequency power data to be transmitted is compressed. The compression coefficient of the low-frequency power data to be transmitted is different from the compression coefficient of the high-frequency power data to be transmitted. After obtaining the low-compressed power data and the high-compressed power data compressed by the target transformation compression algorithm, the low-compressed power data and the high-compressed power data are fused to obtain the target compressed power data.

[0074] Exemplarily, the calculation of the compression coefficient of the low-frequency power data to be transmitted based on the characteristic information of the low-frequency power data to be transmitted, and the calculation of the compression coefficient of the high-frequency power data to be transmitted based on the characteristic information of the high-frequency power data to be transmitted, include: obtaining low-frequency coefficients and low-frequency decomposition levels based on the characteristic information of the low-frequency power data to be transmitted; obtaining high-frequency coefficients and high-frequency decomposition levels based on the characteristic information of the high-frequency power data to be transmitted; generating a coefficient vector based on the low-frequency coefficients and high-frequency coefficients, and generating a level vector based on the low-frequency decomposition levels and high-frequency decomposition levels; calculating the angle between the coefficient vector and the level vector; calculating the compression coefficient of the low-frequency power data to be transmitted for the low-frequency coefficients, low-frequency decomposition levels and the angle by using a first compression coefficient calculation formula; and calculating the compression coefficient of the high-frequency power data to be transmitted for the high-frequency coefficients, high-frequency decomposition levels and the angle by using a second compression coefficient calculation formula.

[0075] After obtaining the low-frequency coefficients, low-frequency decomposition series, high-frequency coefficients, and high-frequency decomposition series, a coefficient vector is generated according to the low-frequency coefficients and the high-frequency coefficients, and a series vector is generated according to the low-frequency decomposition series and the high-frequency decomposition series. The angle between the coefficient vector and the series vector is calculated, which can be:

[0076] Among them, β represents the angle between the coefficient vector and the series vector, a represents the coefficient vector, and b represents the series vector.

[0077] After obtaining the angle between the coefficient vector and the series vector, the compression coefficient of the low-frequency power data to be transmitted is calculated using the first compression coefficient calculation formula, which can be:

[0078] Where m represents the compression coefficient of the low-frequency power data to be transmitted, d represents the low-frequency coefficient, and H set1 Represents the low-frequency decomposition level.

[0079] After obtaining the angle between the coefficient vector and the series vector, the compression coefficient of the high-frequency power data to be transmitted is calculated using the second compression coefficient calculation formula, which can be:

[0080] Where n represents the compression coefficient of high-frequency power data to be transmitted, h represents the high-frequency coefficient, and H set2 Represents the high-frequency decomposition level.

[0081] Step S30: When the credibility of the directed acyclic graph (DAG) blockchain is greater than a preset credibility threshold, a credibility value of the power grid system to which the power data to be transmitted belongs is generated.

[0082] The reputation value refers to the reputation value of the power grid system to which the power data to be transmitted belongs. The higher the reputation value, the lower the possibility of tampering with the power data within the power grid system. The DAG blockchain refers to the blockchain used to receive power data transmitted by the power grid system. Before using the DAG blockchain to receive the power data to be transmitted, it is necessary to determine whether the credibility of the DAG blockchain is greater than the preset credibility threshold. If so, the reputation value of the power grid system to which the power data to be transmitted belongs is generated.

[0083] Step S40 : determining a target power data transmission mode according to the reputation value and the characteristic information, and transmitting the target compressed power data through the target power data transmission mode.

[0084] The target power data transmission mode refers to a mode for transmitting target compressed power data. The target power data transmission mode can be determined based on the reputation value of the power grid system and the characteristic information of the power data to be transmitted, and the target compressed power data is transmitted using the target power data transmission mode.

[0085] Exemplarily, step S40 includes: determining a consistency calling path, an underlying communication protocol, and a power data transmission format based on the credibility value and the characteristic information; determining a target transmission protocol based on the consistency calling path, the underlying communication protocol, and the power data transmission format; determining a target power data transmission mode based on the target transmission protocol, and transmitting the target compressed power data through the target power data transmission mode.

[0086] The consistent calling path refers to the consistent calling mode parameter path, the underlying communication protocol refers to the protocol used to establish communication with the receiving object of the power data to be transmitted during the transmission process, and the power data transmission format refers to the format used to transmit the power data to be transmitted. The target transmission protocol is determined based on the consistent calling path, the underlying communication protocol and the power data transmission format, the target transmission protocol is used to determine the target power data transmission mode, and the target compressed power data is transmitted using the target power data transmission mode.

[0087] Exemplarily, determining the target power data transmission mode according to the target transmission protocol, and transmitting the target compressed power data through the target power data transmission mode, includes: determining the target power data transmission mode according to the target transmission protocol; judging whether the DAG blockchain meets the business delay constraints of multiple quality of service (QoS) requirements of the power system; when the DAG blockchain meets the business delay constraints of multiple QoS requirements of the power system, performing a reliability assessment on the target compressed power data; when the assessment result meets the target transmission requirements, transmitting the target compressed power data to the DAG blockchain through the target power data transmission mode, and the DAG blockchain continues to transmit the target compressed power data.

[0088] Business delay constraints refer to the delay constraints that ensure the normal operation of businesses in the power system. These business delay constraints include data arrival delay constraints and instruction execution delay constraints, and represent the critical value of the business delay range. After determining the target power data transmission mode and before transmitting the target compressed power data, it is necessary to determine whether the DAG blockchain meets the business delay constraints of various QoS requirements of the power system. If so, a reliability assessment is performed on the target compressed power data to determine whether the assessment result meets the target transmission requirements. If so, the target compressed power data is transmitted to the DAG blockchain through the target power data transmission mode, and the DAG blockchain continues to transmit the target compressed power data, thereby preventing the power data to be transmitted from being subjected to malicious attacks during the transmission process, such as data tampering and Sybil attacks.

[0089] This embodiment obtains the power data to be transmitted and determines the characteristic information of the power data to be transmitted; compresses the power data to be transmitted according to the characteristic information based on a target transformation compression algorithm to obtain target compressed power data; when the credibility of the DAG blockchain is greater than a preset credibility threshold, generates a credibility value of the power grid system to which the power data to be transmitted belongs; determines a target power data transmission mode according to the credibility value and the characteristic information, and transmits the target compressed power data through the target power data transmission mode; through the above method, when the credibility of the DAG blockchain is greater than the preset credibility threshold, determines the target power data transmission mode according to the credibility value and the characteristic information, and transmits the target compressed power data using the target power data transmission mode, thereby effectively improving the security and efficiency of transmitting power data.

[0090] In one embodiment, as shown in FIG3 , a second embodiment of the blockchain-based power data transmission control method of the present application is provided based on the first embodiment, and the step S30 includes the following steps.

[0091] Step S301: When the credibility of the DAG blockchain is greater than a preset credibility threshold, the power grid system to which the power data to be transmitted belongs is obtained.

[0092] Before transmitting the power data to be transmitted, the credibility of the DAG blockchain is obtained to determine whether the credibility of the DAG blockchain is greater than a preset credibility threshold. If so, it indicates that the DAG blockchain used to transmit the power data to be transmitted is credible, and the power grid system to which the power data to be transmitted belongs is determined based on the characteristic information.

[0093] Exemplarily, before step S301, the method further includes: calculating a target hash value of the test power data by using a Message Digest Algorithm 5 (MD5) algorithm; adding the target hash value to the trusted DAG blockchain and the DAG blockchain respectively; obtaining a first hash value and a second hash value from the trusted DAG blockchain and the DAG blockchain respectively using a target test account; determining the credibility of the DAG blockchain according to the first hash value and the second hash value; when the credibility of the DAG blockchain is less than or equal to a preset credibility threshold, enhancing the credibility of the DAG blockchain by using a reliable mechanism for distinguishing business priorities; and determining whether the enhanced credibility of the DAG blockchain is greater than the preset credibility threshold.

[0094] After obtaining the first hash value from the trusted DAG blockchain and the second hash value from the DAG blockchain, the credibility of the DAG blockchain is calculated based on the first hash value and the second hash value to determine whether the credibility of the DAG blockchain is less than or equal to a preset credibility threshold. If so, the credibility of the DAG blockchain is enhanced through a reliable mechanism that distinguishes business priorities until the enhanced credibility of the DAG blockchain is greater than the preset credibility threshold. The trusted DAG blockchain refers to a blockchain that has a trust mechanism added to the DAG blockchain. Compared with the DAG blockchain, the trusted DAG blockchain has higher credibility and security.

[0095] The target test account refers to a test account that accesses the blockchain and obtains hash values ​​from it under the current network environment. For example, the method for obtaining the first hash value from the DAG blockchain using the target test account is: using the target test account to connect to the DAG blockchain network, querying the transaction data block by calling the application program interface, and extracting the first hash value based on the transaction data block. Similarly, the method for obtaining the second hash value from the trusted DAG blockchain using the target test account is: using the target test account to connect to the trusted DAG blockchain network, querying the transaction data block by calling the application program interface, and extracting the second hash value based on the transaction data block. To this end, there may be other methods for obtaining hash values, and this application does not limit them.

[0096] Step S302: determining the contracted electricity volume and the actual electricity volume of the power grid system within a preset time period.

[0097] The contracted electricity volume refers to the contracted electricity volume traded by the power grid system within a preset time period, and the actual traded electricity volume refers to the actual electricity volume traded by the power grid system within a preset time period.

[0098] Step S303: Calculate the transaction deviation electricity according to the transaction contract electricity and the actual transaction electricity.

[0099] Transaction deviation refers to the deviation between the transaction contract power and the actual transaction power. For example, the transaction contract power is P j,t , the actual transaction power is P r,t , then the transaction deviation power ΔP=P j,t -P r,t .

[0100] Step S304 , when the ratio of the transaction deviation power to the transaction contract power is less than the allowable deviation power, the reputation value of the power grid system is calculated based on the transaction contract power and the actual transaction power.

[0101] After obtaining the transaction deviation electricity, calculate the ratio of transaction deviation electricity to transaction contract electricity, that is, the ratio Determine whether the ratio is less than the allowable deviation of electricity. If so, calculate the credit value of the power grid system based on the transaction contract electricity and the actual transaction electricity, which can be: C t =1·(1-ΔP / P j,t );

[0102] Among them, C t represents the reputation value of the power grid system, l represents the reputation value calculation coefficient, ΔP represents the transaction deviation power, and t represents the preset time period.

[0103] This embodiment obtains the power grid system to which the power data to be transmitted belongs when the credibility of the DAG blockchain is greater than a preset credibility threshold; determines the transaction contract electricity and the actual transaction electricity of the power grid system within a preset time period; calculates the transaction deviation electricity based on the transaction contract electricity and the actual transaction electricity; and calculates the credibility value of the power grid system based on the transaction contract electricity and the actual transaction electricity when the ratio of the transaction deviation electricity to the transaction contract electricity is less than the allowable deviation electricity. In this way, when the credibility of the DAG blockchain is greater than the preset credibility threshold, the transaction deviation electricity is calculated based on the transaction contract electricity and the actual transaction electricity, and it is determined whether the ratio of the transaction deviation electricity to the transaction contract electricity is less than the allowable deviation electricity. If so, the credibility value of the power grid system is calculated based on the transaction contract electricity and the actual transaction electricity, thereby effectively improving the accuracy of the calculated credibility value.

[0104] In addition, an embodiment of the present application further provides a storage medium having a blockchain-based power data transmission control program stored thereon. When the blockchain-based power data transmission control program is executed by a processor, the blockchain-based power data transmission control method described above is implemented. The storage medium may be a non-transitory storage medium.

[0105] Since the storage medium adopts all the technical solutions of all the above embodiments, it has at least all the effects brought by the technical solutions of the above embodiments, which will not be described one by one here.

[0106] In addition, referring to Figure 4, an embodiment of the present application also provides a blockchain-based power data transmission control device, which includes the following modules.

[0107] The acquisition module 10 is configured to acquire the power data to be transmitted and determine characteristic information of the power data to be transmitted.

[0108] The compression module 20 is configured to compress the power data to be transmitted according to the characteristic information based on a target transformation compression algorithm to obtain target compressed power data.

[0109] The generation module 30 is configured to generate a credibility value of the power grid system to which the power data to be transmitted belongs when the credibility of the DAG blockchain is greater than a preset credibility threshold.

[0110] The transmission module 40 is configured to determine a target power data transmission mode according to the reputation value and the characteristic information, and transmit the target compressed power data through the target power data transmission mode.

[0111] This embodiment obtains the power data to be transmitted and determines the characteristic information of the power data to be transmitted; compresses the power data to be transmitted according to the characteristic information based on a target transformation compression algorithm to obtain target compressed power data; when the credibility of the DAG blockchain is greater than a preset credibility threshold, generates a credibility value of the power grid system to which the power data to be transmitted belongs; determines a target power data transmission mode according to the credibility value and the characteristic information, and transmits the target compressed power data through the target power data transmission mode; through the above method, when the credibility of the DAG blockchain is greater than the preset credibility threshold, determines the target power data transmission mode according to the credibility value and the characteristic information, and transmits the target compressed power data using the target power data transmission mode, thereby effectively improving the security and efficiency of transmitting power data.

[0112] The blockchain-based power data transmission control device provided in this embodiment can refer to the blockchain-based power data transmission control method provided in any embodiment of the present application, and will not be repeated here.

[0113] The workflow described above is merely illustrative and does not limit the scope of protection of this application. In practical applications, part or all of it can be selected according to actual needs to achieve the purpose of the embodiment scheme, and no limitation is made here.

[0114] In addition, for technical details not fully described in this embodiment, please refer to the blockchain-based power data transmission control method provided in any embodiment of this application, and will not be repeated here.

[0115] Other embodiments or implementation methods of the blockchain-based power data transmission control device described in this application can refer to the above-mentioned multiple method embodiments, which will not be repeated here.

[0116] Furthermore, as used herein, the terms "comprises," "comprising," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system that includes a list of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or system that includes the element.

[0117] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0118] The above-mentioned embodiment method can be implemented by means of software plus a general hardware platform, or by hardware. The technical solution of the present application can be embodied in the form of a software product, which is stored in a storage medium (such as read-only memory (ROM) / RAM, magnetic disk, optical disk), and includes multiple instructions for enabling a terminal device (which can be a mobile phone, computer, integrated platform workstation, or network device, etc.) to execute the methods described in multiple embodiments of the present application.

[0119] The above are merely optional embodiments of the present application and do not limit the scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the scope of protection of the present application.

Claims

1. A power data transmission control method based on blockchain, comprising: Acquire power data to be transmitted, and determine characteristic information of the power data to be transmitted; Compressing the power data to be transmitted according to the characteristic information based on a target transformation compression algorithm to obtain target compressed power data; In response to the credibility of the directed acyclic graph DAG blockchain being greater than a preset credibility threshold, generating a credibility value of the power grid system to which the power data to be transmitted belongs; A target power data transmission mode is determined according to the reputation value and the characteristic information, and the target compressed power data is transmitted through the target power data transmission mode.

2. The method of claim 1, wherein: The target transformation based compression algorithm compresses the power data to be transmitted according to the characteristic information to obtain target compressed power data, including: Acquire a sampling rate of the power data to be transmitted, and determine a normalized frequency band of the power data to be transmitted according to the sampling rate; In response to the normalized frequency band not being located in the preset interval, normalizing the normalized frequency band of the power data to be transmitted until the processed normalized frequency band is located in the preset interval; Using multiple low-pass filters and multiple high-pass filters to decompose the processed normalized frequency band to obtain low-frequency power data to be transmitted and high-frequency power data to be transmitted; Obtaining characteristic information of the low-frequency power data to be transmitted and characteristic information of the high-frequency power data to be transmitted according to the characteristic information; Calculating a compression factor of the low-frequency power data to be transmitted according to the characteristic information of the low-frequency power data to be transmitted, and calculating a compression factor of the high-frequency power data to be transmitted according to the characteristic information of the high-frequency power data to be transmitted; According to the compression coefficient of the low-frequency power data to be transmitted, the low-frequency power data to be transmitted is compressed based on the target transformation compression algorithm to obtain low-compression power data, and according to the compression coefficient of the high-frequency power data to be transmitted, the high-frequency power data to be transmitted is compressed based on the target transformation compression algorithm to obtain high-compression power data; The low-compression power data and the high-compression power data are fused to obtain the target compression power data.

3. The method of claim 2, wherein: The calculating the compression coefficient of the low-frequency power data to be transmitted according to the characteristic information of the low-frequency power data to be transmitted, and the calculating the compression coefficient of the high-frequency power data to be transmitted according to the characteristic information of the high-frequency power data to be transmitted, comprises: Obtaining a low-frequency coefficient and a low-frequency decomposition level according to the characteristic information of the low-frequency power data to be transmitted; Obtaining a high-frequency coefficient and a high-frequency decomposition level according to the characteristic information of the high-frequency power data to be transmitted; generating a coefficient vector according to the low-frequency coefficient and the high-frequency coefficient, and generating a level vector according to the low-frequency decomposition level and the high-frequency decomposition level; Calculating the angle between the coefficient vector and the series vector; Calculate the compression coefficient of the low-frequency power data to be transmitted by using a first compression coefficient calculation formula for the low-frequency coefficient, the low-frequency decomposition level and the angle; The compression coefficient of the high-frequency power data to be transmitted is calculated using a second compression coefficient calculation formula based on the high-frequency coefficient, the high-frequency decomposition level and the angle.

4. The method of claim 1, wherein: In response to the credibility of the DAG blockchain being greater than a preset credibility threshold, generating a credibility value of the power grid system to which the power data to be transmitted belongs, comprising: In response to the credibility of the DAG blockchain being greater than the preset credibility threshold, obtaining the power grid system to which the power data to be transmitted belongs; Determine the transaction contract quantity and actual transaction quantity of the power grid system within a preset time period; Calculate the transaction deviation electricity according to the transaction contract electricity and the actual transaction electricity; In response to a ratio of the transaction deviation power to the transaction contract power being less than an allowable deviation power, a credit value of the power grid system is calculated based on the transaction contract power and the actual transaction power.

5. The method of claim 4, wherein: In response to the credibility of the DAG blockchain being greater than the preset credibility threshold, before obtaining the power grid system to which the power data to be transmitted belongs, the method further includes: Calculate the target hash value of the test power data by using the fifth version of the message digest algorithm MD5 algorithm; Add the target hash value to the trust DAG blockchain and the DAG blockchain respectively; Using a target test account, respectively obtain a first hash value and a second hash value from the trusted DAG blockchain and the DAG blockchain; Determining the credibility of the DAG blockchain according to the first hash value and the second hash value; In response to the credibility of the DAG blockchain being less than or equal to the preset credibility threshold, enhancing the credibility of the DAG blockchain through a reliable mechanism for distinguishing business priorities; Determine whether the enhanced credibility of the DAG blockchain is greater than the preset credibility threshold.

6. The method of claim 1, wherein: The determining a target power data transmission mode according to the reputation value and the characteristic information, and transmitting the target compressed power data through the target power data transmission mode, comprises: Determining a consistency calling path, an underlying communication protocol, and a power data transmission format according to the reputation value and the characteristic information; Determine a target transmission protocol according to the consistency calling path, the underlying communication protocol and the power data transmission format; The target power data transmission mode is determined according to the target transmission protocol, and the target compressed power data is transmitted through the target power data transmission mode.

7. The method of claim 6, wherein: The determining the target power data transmission mode according to the target transmission protocol, and transmitting the target compressed power data through the target power data transmission mode, comprises: Determining the target power data transmission mode according to the target transmission protocol; Determine whether the DAG blockchain meets the service delay constraints of various service quality QoS requirements of the power system; In response to the DAG blockchain satisfying the service delay constraint of multiple QoS requirements of the power system, performing reliability evaluation on the target compressed power data; In response to the evaluation result satisfying the target transmission requirement, the target compressed power data is transmitted to the DAG blockchain through the target power data transmission mode, and the DAG blockchain continues to transmit the target compressed power data.

8. A blockchain-based power data transmission control device, comprising: An acquisition module, configured to acquire power data to be transmitted and determine characteristic information of the power data to be transmitted; A compression module, configured to compress the power data to be transmitted according to the characteristic information based on a target transformation compression algorithm to obtain target compressed power data; A generating module, configured to generate a reputation value of the power grid system to which the power data to be transmitted belongs in response to the credibility of the directed acyclic graph DAG blockchain being greater than a preset credibility threshold; The transmission module is configured to determine a target power data transmission mode according to the reputation value and the characteristic information, and transmit the target compressed power data through the target power data transmission mode.

9. A blockchain-based power data transmission control device, wherein: The blockchain-based power data transmission control device includes: a memory, a processor, and a blockchain-based power data transmission control program stored in the memory and executable on the processor, wherein the blockchain-based power data transmission control program is configured to implement the blockchain-based power data transmission control method as described in any one of claims 1 to 7.

10. A storage medium, wherein: The storage medium stores a blockchain-based power data transmission control program, and when the blockchain-based power data transmission control program is executed by the processor, the blockchain-based power data transmission control method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • IOT equipment behavior credibility supervision method based on block chain

    CN113115315A

  • Block chain-based power monitoring data encryption storage system

    CN113868685A

  • Power data transmission control method and device based on block chain, and storage medium

    CN116827488A

  • Connected lighting system, method, and apparatus using blockchain

    WO2018224431A1

  • Method and system for message communication between vehicles

    WO2022142632A1