A virtual power plant distributed transaction method and platform based on a consortium blockchain

By leveraging consortium blockchain technology and the Modbus protocol, a distributed trading platform is established within the virtual power plant, resolving issues of fairness and stability in transactions within the virtual power plant. This provides a trading platform for direct user participation and improves the operational efficiency of the virtual power plant.

CN114841692BActive Publication Date: 2026-05-08XI AN JIAOTONG UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
XI AN JIAOTONG UNIV
Filing Date
2022-02-21
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

Existing technologies lack decentralized, fair, and transparent trading methods for distributed transactions within virtual power plants, and there is a lack of platforms for direct participation and practical experience in controlling distributed devices, resulting in slow progress.

Method used

The system adopts a distributed trading method for virtual power plants based on consortium blockchains. Through access control, smart contracts, and Modbus communication protocol, users can complete transactions on the front-end interface, ensuring the stability and fairness of electricity trading. User behavior is regulated through an electricity fee penalty mechanism.

Benefits of technology

It provides a decentralized, fair, and transparent trading solution, reducing the probability of malicious nodes and ensuring the stability of transactions and the overall operational efficiency of virtual power plants.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114841692B_ABST
    Figure CN114841692B_ABST
Patent Text Reader

Abstract

The application discloses a kind of virtual power plant distributed transaction method and platform based on alliance block chain, create account in application state;Become available state account by admission mechanism application;Virtual power plant carries out power and fund pre-allocation to available state account according to each equipment day before reported energy supply / consumption energy;User carries out electric energy transaction according to virtual power plant real-time equipment power and account pre-allocation power and fund, with other node user in platform and virtual power plant interior;Check the sell sign less than or equal to the buy sign price in the same period, select the strongest seller of transaction stability to knock down transaction;Record in each node account book of block chain by alliance block chain;Before next pre-allocation, calculate the remaining electric energy of all user accounts last time pre-allocation, obtain the latest stability value of each account, and carry out m times electricity fee punishment to the user with deviation from pre-allocation.Guarantee that user can complete block chain transaction in front-end interface.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of blockchain technology, specifically relating to a distributed trading method and platform for virtual power plants based on consortium blockchain. Background Technology

[0002] A virtual power plant (VFP) is a platform that organically combines distributed power sources, controllable loads, energy storage systems, and electric vehicles. Through supporting control and communication technologies, it integrates, regulates, and coordinates various distributed energy sources, participating in the electricity market and grid operation as a special type of power plant, effectively functioning as a controllable power source. Externally, a VFP can act as a "positive power plant" supplying power to the system or as a "negative power plant" absorbing power from the system, flexibly facilitating peak shaving and valley filling. Therefore, a VFP can adjust the output and demand response of distributed equipment according to fluctuations in electricity market prices, achieving off-peak electricity consumption and peak-peak electricity sales to maximize profits. However, the various distributed devices within the VFP often belong to different entities, and their investments and finances are independent. Therefore, adopting a decentralized, fair, and transparent trading method within the VFP is crucial and a problem that must be solved for its future development.

[0003] The characteristics of blockchain technology, such as collective data maintenance, programmability, and high security, perfectly meet the requirements of internal transactions within virtual power plants. With the development of blockchain technology, three types have evolved: public blockchains, private blockchains, and consortium blockchains. Among them, consortium blockchains not only possess the privacy of private blockchains but also the decentralized nature of public blockchains, solving the problem of slow transaction speeds in public blockchains, making them highly suitable for the needs of internal electricity trading within virtual power plants.

[0004] However, current research on distributed transactions and consortium blockchains within virtual power plants is limited, lacking specific technical methods for such transactions. Furthermore, existing practices regarding distributed transactions within virtual power plants largely remain in simulation environments, failing to provide a platform for ordinary users to directly participate in and actually control distributed devices. These issues, stemming from both technical and practical limitations, have hindered progress in distributed transactions within virtual power plants. Summary of the Invention

[0005] The technical problem to be solved by the present invention is to provide a distributed trading method and platform for virtual power plants based on consortium blockchain, which addresses the shortcomings of the prior art and ensures that users can complete blockchain transactions through the front-end interface.

[0006] The present invention adopts the following technical solution:

[0007] A distributed trading method for virtual power plants based on consortium blockchain includes the following steps:

[0008] S1. Fill in the basic information of the account and create an account in the application stage;

[0009] S2. Using the organization information in the account's basic information, send the account application request to the corresponding organization and apply to become an available account through the access mechanism;

[0010] S3. The virtual power plant pre-allocates electricity and funds to the available status account in step S2 based on the energy supply / consumption reported by each device on the previous day.

[0011] S4. Based on the real-time equipment power of the virtual power plant and the pre-allocated electricity and funds in the account, the user conducts electricity transactions with other users in the virtual power plant on the platform to ensure that the account's energy supply / consumption is consistent with the pre-allocation in step S3.

[0012] S5. Users participating in electricity trading post buy / sell orders on the platform, check sell orders with prices less than or equal to the buy order price within the same time period, select the seller with the strongest trading stability, and finalize the transaction.

[0013] S6. Record the transactions finalized in step S5 in the ledgers of each node of the blockchain through the consortium blockchain.

[0014] S7. Before the next pre-allocation in step S3, calculate the remaining electricity in all user accounts from the previous pre-allocation, obtain the latest stability value for each account, and impose a penalty of m times the electricity fee on users whose pre-allocation deviates from the value, so that users can obtain the final benefit.

[0015] Specifically, in step S1, the basic account information includes name, email address, user role, username, and password.

[0016] Specifically, in step S2, the admission mechanism is as follows:

[0017] A request to join an organization requires the consent of at least one administrator in the organization and a user of one of the top three most stable nodes in the organization. If the number of member nodes in the organization is insufficient, at least two administrators must agree to join.

[0018] Specifically, in step S2, the blockchain transaction availability status account includes the blockchain transaction account address, the account's tradable electricity, the electricity generated, the electricity consumed, the pre-allocated electricity, the number of transactions, and the stability value.

[0019] Specifically, in step S3, energy supply / consumption is pre-allocated based on the energy supply / consumption reported by the user, providing electricity to external users or consuming the remaining electricity in the power grid to maintain the production and sales balance between the virtual power plant and the main power grid.

[0020] Specifically, in step S5, the method for verifying transaction eligibility is as follows:

[0021] The platform filters out sell items whose prices are less than or equal to the buy price within the same time period; then, it selects the final seller based on transaction stability.

[0022] Furthermore, the transaction stability value PS of the i-node user after the k-th pre-allocation. ik The calculation is as follows:

[0023]

[0024] Among them, PS ik-1 Let a be the stability value of node i after the (k-1)th pre-allocation; i Let n be the error value between the k-th pre-allocation of power by node i and the pre-allocated power, where n is the total number of nodes on the consortium blockchain.

[0025] Specifically, in step S7, the user's final benefit V is calculated as follows:

[0026] V = e actual *e price -m*e price *|e expect -e actual |

[0027] Among them, e actual e represents the actual electricity consumed / generated by the node user on that day; price The price of electricity per kilowatt-hour; e expect The value of m represents the electricity consumption / generation reported by node users per day, where m is the electricity cost penalty coefficient.

[0028] Another technical solution of the present invention is a distributed trading platform for virtual power plants based on consortium blockchain, which utilizes the aforementioned distributed trading method for virtual power plants based on consortium blockchain, comprising:

[0029] The blockchain layer includes smart contracts, channels in the consortium blockchain, and nodes within the organization, and stores records of every transaction within the virtual power plant; smart contracts include methods for publishing transaction information, methods for verifying transaction eligibility, and methods for executing transactions. The smart contracts determine the final trading parties by judging the transaction stability of the consortium blockchain nodes that meet the transaction requirements.

[0030] The SDK layer provides calling methods to the server layer and interacts with the blockchain layer by calling smart contracts to complete the execution of the contracts. When there is more than one channel in the consortium blockchain network or more than one smart contract on one channel, the channel to be connected and the smart contract to be executed are selected.

[0031] The database layer is used to store the correspondence between users and devices, the static and dynamic parameters of each device, the stability data of the consortium blockchain nodes within the virtual power plant, and the association between user accounts and transaction account addresses.

[0032] The server layer provides basic operation interfaces for platform user registration, adding / deleting affiliated devices, joining / leaving organizations, participating in transactions, and viewing historical transaction records to respond to calls from the front-end interface layer. It also communicates with distributed devices within the virtual power plant via the Modbus protocol to complete real-time information collection and control.

[0033] The front-end interface layer receives user and device information and stores basic user and device information in the database through interaction with the server layer. It is used for users to apply to join / leave an organization, and the server layer calls the SDK layer to modify the organization's node members on the blockchain network, thus completing the user's joining / leaving of an organization. It is also used by both parties in a transaction to publish buy or sell orders, triggering transaction conditions. The server layer calls the SDK layer to execute the smart contract's transaction methods, completing the bilateral transaction. Finally, it is used to display historical transaction information records, and the server layer calls the SDK layer to query historical transaction information on the blockchain network.

[0034] The distributed devices within the virtual power plant transmit real-time device data to the server via the Modbus protocol and control the operating status of the distributed devices according to the commands issued by the server.

[0035] Compared with the prior art, the present invention has at least the following beneficial effects:

[0036] This invention discloses a distributed trading method for virtual power plants based on consortium blockchain. It maps the owners of different distributed devices as users of the trading platform and establishes a mapping between them and nodes from different organizations on the consortium blockchain, ensuring that users can complete blockchain transactions through the front-end interface. Simultaneously, it utilizes the Modbus communication protocol to achieve actual control over the distributed devices.

[0037] Furthermore, setting application status for newly registered users ensures the controllability of platform users.

[0038] Furthermore, the access mechanism requires two administrators in the user's organization to allow the user to join the organization in order to ensure that the user's account is available and can participate in transactions.

[0039] Furthermore, by setting up blockchain transaction accounts, it is ensured that every transaction and account information update of each user in the virtual power plant can be accurately synchronized to the distributed nodes on the blockchain.

[0040] Furthermore, the pre-allocated electricity is traded within the virtual power plant to maintain the balance between production and sales within the virtual power plant and the main power grid.

[0041] Furthermore, the established transaction qualification review method ensures that node users who actively maintain the stability of virtual power plants are given priority in transactions under the same conditions.

[0042] Furthermore, transaction stability is used to measure the stability of the electricity provided by users in the future, ensuring that fluctuations caused by transactions within the platform are minimized.

[0043] Furthermore, the ultimate benefit to users incentivizes them to actively respond and generate or consume energy according to the pre-allocated plan, which is beneficial to the overall operation of the virtual power plant.

[0044] A distributed trading platform for virtual power plants based on a consortium blockchain is proposed. Owners of different distributed devices act as users of the trading platform, mapping them to nodes under different organizations on the consortium blockchain. This ensures users can complete blockchain transactions through the front-end interface. Simultaneously, the Modbus communication protocol enables actual control of the distributed devices. Considering that storing some basic information on the blockchain increases its burden, this invention also adds a basic information database to store such information. Given that transactions within the virtual power plant are best recorded using a consortium blockchain, an access control mechanism is implemented for nodes on the consortium blockchain network, significantly reducing the probability of malicious nodes. Considering the intermittent and fluctuating power generation of the devices within the virtual power plant, the virtual power plant devices are pre-allocated based on the daily reported energy consumption / generation by their respective node users. Then, based on the deviation between the pre-allocation and the actual generation, the internal node users conduct transactions, and the transaction data is recorded on the consortium blockchain. A transaction stability concept is proposed to measure the stability of the future power supply from the power provider, ensuring minimal fluctuations caused by transactions within the platform. Finally, the transaction conditions and content are written into a smart contract. The platform will automatically trigger the contract content and complete the transaction based on the user's bidding situation, which greatly reduces the user's operation steps and provides an effective solution for the transformation of blockchain technology from experimentation to practical application in the field of virtual power plant internal transactions.

[0045] In summary, this invention provides a decentralized, fair, and transparent solution for electricity trading within virtual power plants by leveraging consortium blockchain technology. It offers an effective solution for transitioning blockchain technology from experimental to practical application in the field of virtual power plant internal trading.

[0046] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description

[0047] Figure 1 This is a platform framework diagram of the present invention;

[0048] Figure 2This is a flowchart illustrating the implementation of the present invention;

[0049] Figure 3 This is a schematic diagram of a computer device provided according to an embodiment of the present invention. Detailed Implementation

[0050] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0051] In the description of this invention, it should be understood that the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0052] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0053] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes such combinations. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone. Additionally, the character " / " in this document generally indicates that the preceding and following objects have an "or" relationship.

[0054] It should be understood that although terms such as first, second, third, etc., may be used in the embodiments of the present invention to describe the preset range, these preset ranges should not be limited to these terms. These terms are only used to distinguish the preset ranges from one another. For example, without departing from the scope of the embodiments of the present invention, the first preset range may also be referred to as the second preset range, and similarly, the second preset range may also be referred to as the first preset range.

[0055] Depending on the context, the word "if" as used here can be interpreted as "when," "when," "in response to determination," or "in response to detection." Similarly, depending on the context, the phrase "if determination" or "if detection (of the stated condition or event)" can be interpreted as "when determination," "in response to determination," "when detection (of the stated condition or event)," or "in response to detection (of the stated condition or event)."

[0056] The accompanying drawings illustrate various structural schematic diagrams according to embodiments disclosed in this invention. These drawings are not to scale, and some details have been enlarged for clarity, and some details may have been omitted. The shapes of the various regions and layers shown in the drawings, as well as their relative sizes and positional relationships, are merely exemplary and may deviate from reality due to manufacturing tolerances or technical limitations. Furthermore, those skilled in the art can design regions / layers with different shapes, sizes, and relative positions as needed.

[0057] This invention provides a distributed trading method for virtual power plants based on consortium blockchains. Users first register and join the organization through an admission mechanism; user-reported data is pre-allocated; when discrepancies arise between the reported and actual data, users must conduct distributed trading within the virtual power plant to compensate for the discrepancy based on stability; users who have errors and fail to complete distributed trading are penalized with m times their electricity bill. This invention provides a distributed trading technology and equipment platform for virtual power plants that communicates with distributed devices, offering an effective solution for transitioning distributed trading within virtual power plants from experimental to practical applications.

[0058] Please see Figure 2 This invention discloses a distributed trading method for virtual power plants based on consortium blockchain, comprising the following steps:

[0059] S1. Register an account and fill in the basic account information;

[0060] Personal information includes name, email address, user role, username and password, and the organization to which the account belongs.

[0061] S2. Apply to become a member (node) of an organization under the consortium blockchain through the admission mechanism and be assigned blockchain transaction account information. Users apply to join an organization in the virtual power plant distributed trading platform's application to join / leave an organization module. At this time, the organization administrator and node users with high transaction stability receive approval notifications. After approval, the transaction account address on the blockchain will be associated with the existing account address and stored in the database.

[0062] The specific access mechanism is as follows:

[0063] A request to join an organization requires the consent of at least one administrator of the organization and a user of one of the top three most stable nodes in the organization. When the organization is newly established and has insufficient member nodes, the consent of at least two administrators is required to join.

[0064] The allocated blockchain transaction account information includes the blockchain transaction account address, the amount of electricity the account can trade, the amount of electricity generated, the amount of electricity consumed, and the stability value.

[0065] S3. The virtual power plant pre-allocates electricity and funds to the available status account based on the energy supply / consumption reported by each device on the previous day; it provides electricity to external parties or consumes excess electricity in the power grid to maintain the production and sales balance between the virtual power plant and the main power grid.

[0066] S4. Users conduct electricity transactions with other users within the virtual power plant on the platform based on the real-time equipment power of the virtual power plant and the electricity and funds pre-allocated in their accounts, in order to ensure that the energy supplied / consumed in their accounts is consistent with the pre-allocation as much as possible.

[0067] S5. The buyer publishes a new buy / sell order. The virtual power plant distributed trading platform checks the sell orders within the same time period that are less than or equal to the buy order price, selects the seller with the strongest trading stability, and automatically finalizes the transaction.

[0068] A new buy / sell order will trigger the platform to call the methods for publishing transaction information and verifying transaction eligibility in the smart contract. If the transaction eligibility verification method determines that there are nodes that meet the transaction requirements, the transaction execution method will be automatically executed to complete the transaction.

[0069] The transaction qualification review process is carried out in two steps, as follows:

[0070] The first step is to filter out the sell targets on the platform that are at or below the buy price within the same time period;

[0071] The second step is to select the final seller based on transaction stability.

[0072] The specific formula for calculating transaction stability is as follows:

[0073]

[0074] Among them, PS ik PS is the transaction stability value after the k-th pre-allocation for the i-node user. ik-1 Let a be the stability value of node i after the (k-1)th pre-allocation; i Let n be the error value between the k-th pre-allocation of power by node i and the pre-allocated power, where n is the total number of nodes on the consortium blockchain.

[0075] Clearly, the transaction stability of all nodes within the virtual power plant is between 0 and 1. Considering the volatility and intermittency of the electricity provided by distributed devices, the higher the transaction stability value of each node, the greater the accuracy of the node's transmission.

[0076] S6. Transaction information is broadcast on the consortium blockchain via gRPC and recorded on the ledgers of each node in the blockchain.

[0077] S7. A penalty of m times the electricity fee will be imposed on node users whose pre-allocated and actual energy supply / consumption are inconsistent and whose internal transactions have not been completed to resolve the issue.

[0078] A penalty of m times the electricity fee will be imposed on node users whose pre-allocated and actual energy supply / consumption are inconsistent and whose internal transactions have not been completed to resolve the issue.

[0079] The formula for calculating the user's final benefit is:

[0080] V = e actual *e price -m*e price *|e expect -e actual |

[0081] Among them, e actual e represents the actual electricity consumed / generated by the node user on that day; ptice The price of electricity per kilowatt-hour; e expect This refers to the electrical energy consumed / generated by node users reported daily.

[0082] Please see Figure 1 In another embodiment of the present invention, a distributed trading platform for virtual power plants based on consortium blockchain is provided. This platform can be used to implement the above-mentioned distributed trading method for virtual power plants based on consortium blockchain. Specifically, the distributed trading platform for virtual power plants based on consortium blockchain includes a blockchain layer, an SDK layer, a database layer, a server layer, a front-end interface layer, and distributed devices inside the virtual power plant.

[0083] The blockchain layer includes smart contracts, channels within the consortium blockchain, and nodes within the organization, storing records of every transaction within the virtual power plant. Smart contracts determine the final trading parties by assessing the stability of transactions between users (consortium blockchain nodes) that satisfy the transaction criteria.

[0084] Smart contracts include methods for publishing transaction information, methods for verifying transaction eligibility, methods for executing transactions, and methods for querying transaction records.

[0085] The method for publishing a transaction is the tradable electricity volume of the account for that node. When publishing a buy order, the field that needs to be modified is the buy order value with the tradable electricity volume set to negative; when publishing a sell order, the field that needs to be modified is the sell order value with the tradable electricity volume set to positive.

[0086] The transaction eligibility review method involves selecting the final transaction nodes from among the seller nodes that meet the transaction requirements. This method is executed in two steps:

[0087] The first step is to filter out sell targets within the same time frame that are priced at or below the buy target price. If a suitable target is found, proceed to the second step; otherwise, return that no suitable target information is available, and the buyer target will wait.

[0088] The second step is to select the final seller based on transaction stability.

[0089] The transaction execution method automatically executes transactions on the consortium blockchain for the transaction nodes selected by the transaction eligibility review method.

[0090] There are two methods for querying transaction records. One is to query the historical transaction records of a specific node; the other is to query the historical transaction records of the entire consortium blockchain.

[0091] The SDK layer provides calling methods to the server layer and interacts with the consortium blockchain network by calling smart contracts to complete the execution of the contracts. Furthermore, when there is more than one channel in the consortium blockchain network or more than one smart contract on one channel, the channel to be connected and the smart contract to be executed can be selected.

[0092] The SDK layer's ability to establish communication with the blockchain layer and provide feedback to the server layer primarily demonstrates that a node can connect to any channel of the consortium blockchain via the SDK and choose to deploy smart contracts on that channel. Secondly, the SDK also provides methods for calling smart contracts.

[0093] The database layer is used to store the correspondence between users and devices, the static and dynamic parameters of each device, the stability data of users (consortium blockchain nodes) within the virtual power plant, and the association between user accounts and transaction account addresses.

[0094] The database layer stores basic user information, user-owned device information and their mapping relationships, the mapping relationship between user information and blockchain nodes, transaction counts, and transaction points. This data is an indispensable part of supporting the operation of the entire platform, but from the platform design perspective, it does not need to be stored on the blockchain, thus avoiding burdening the blockchain network.

[0095] The server layer provides basic operation interfaces for platform user registration, adding / deleting affiliated devices, joining / leaving organizations, participating in transactions, and viewing historical transaction records. These interfaces respond to calls from the front-end interface layer and communicate with distributed devices within the virtual power plant via the Modbus protocol to complete real-time information collection and control.

[0096] The server-side layer needs to interact with the database layer and SDK layer to provide feedback information to the front-end page. When a user initiates a buy / sell transaction, the server-side layer's "publish transaction" method is called, enabling the server to interact with the SDK to operate on the consortium blockchain network. When the user only modifies basic user and device information, interaction is limited to the database. The server communicates with distributed devices via the Modbus protocol to collect real-time device information and control the devices.

[0097] The front-end interface layer receives user and device information and stores basic user and device information in the database through interaction with the server-side layer. This front-end interface layer is used by users to apply to join / leave an organization. The server-side layer calls the SDK layer to modify the organization's node members on the blockchain network, completing the user's joining / leaving of an organization. The front-end interface layer is also used by both parties to a transaction to publish buy or sell orders, triggering transaction conditions. The server-side layer calls the SDK layer to execute the smart contract's transaction methods, completing the bilateral transaction. Finally, the front-end interface layer displays historical transaction information records and allows the server-side layer to call the SDK layer to query historical transaction information on the blockchain network.

[0098] The front-end interface layer includes a registration module, an application to join / leave an organization module, a device information management module, a sell / buy item posting module, a historical transaction information query module, and an approval module. The registration module allows users to fill in basic personal information and device information, including name, email, user role, username, password, device type, quantity of each type of device, and estimated energy consumption per device. The apply-to-join-organization-leave module uses the server-side SDK to join a new node within a specific organization on the consortium blockchain network and associates that node with the user's account. The device information management module allows users to adjust their device ownership in a timely manner, i.e., add / remove devices, or adjust energy consumption / output based on device wear and tear. The sell / buy item posting module uses the server-side SDK to complete energy transactions. The historical transaction information query module uses the server-side SDK to query historical transaction information within the consortium blockchain network. The approval module is the concrete manifestation of the access mechanism, allowing users to join an organization after approval by the organization administrator and nodes with high transaction stability.

[0099] The distributed devices within the virtual power plant transmit real-time data to the server via the Modbus protocol and control the operating status of the distributed devices according to the commands issued by the server. Communication with the distributed devices is the fundamental guarantee for the operation of the entire platform.

[0100] The distributed devices inside the virtual power plant include wind turbines, photovoltaics, energy storage, G2V, V2G, air conditioning and water pumps. These devices communicate with the server via the Modbus protocol, report real-time device data and execute commands issued by the server.

[0101] This invention introduces a distributed trading technology and equipment platform for virtual power plants based on a consortium blockchain. It maps the owners of different distributed devices as users of the trading platform to nodes under different organizations on the consortium blockchain, ensuring users can complete blockchain transactions through the front-end interface. Simultaneously, it utilizes the Modbus communication protocol to achieve actual control over the distributed devices. Considering that storing some basic information on the blockchain increases its burden, this invention also adds a basic information database to store such information. Given that transactions within the virtual power plant are suitable for recording using a consortium blockchain, an access control mechanism is implemented for nodes on the consortium blockchain network, significantly reducing the probability of malicious nodes. Considering the intermittent and fluctuating power generation of the devices within the virtual power plant, the virtual power plant devices are pre-allocated based on the daily reported energy consumption / generation by their respective node users. Then, based on the deviation between the pre-allocation and the actual generation, the internal node users conduct transactions, and the transaction data is recorded on the consortium blockchain. A transaction stability concept is proposed to measure the stability of the future power supply from the power provider, ensuring minimal fluctuations caused by transactions within the platform. Finally, the transaction conditions and content are written into a smart contract. The platform will automatically trigger the contract content and complete the transaction based on the user's bidding situation, which greatly reduces the user's operation steps and provides an effective solution for the transformation of blockchain technology from experimentation to practical application in the field of virtual power plant internal transactions.

[0102] In another embodiment of the present invention, a terminal device is provided, comprising a processor and a memory. The memory stores a computer program, the computer program including program instructions, and the processor executes the program instructions stored in the computer storage medium. The processor may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. It is the computing and control core of the terminal, suitable for implementing one or more instructions, specifically suitable for loading and executing one or more instructions to achieve corresponding method flows or corresponding functions. The processor described in this embodiment of the present invention can be used for the operation of a distributed trading method for virtual power plants based on a consortium blockchain, including:

[0103] Fill in the basic account information and create an account in the application stage; send the account application request to the corresponding organization through the organization information in the basic account information, and apply to become an available account through the access mechanism; the virtual power plant pre-allocates electricity and funds to available accounts based on the energy supply / consumption reported by each device on the previous day; users conduct electricity transactions with other users on the platform and within the virtual power plant based on the real-time equipment power and the pre-allocated electricity and funds in the account, ensuring that the account's energy supply / consumption is consistent with the pre-allocation; users participating in electricity transactions publish buy / sell bids on the platform, check sell bids with prices less than or equal to the buy bid price in the same period, select the seller with the strongest transaction stability, and finalize the transaction; the finalized transaction is recorded in the ledger of each node of the blockchain through the consortium blockchain; before the next pre-allocation, calculate the remaining electricity of the previous pre-allocated electricity in all user accounts, obtain the latest stability value of each account, and impose a penalty of m times the electricity fee on users whose pre-allocation deviates from the value, so that users can obtain the final benefit.

[0104] In another embodiment of the present invention, a storage medium is also provided, specifically a computer-readable storage medium (memory). This computer-readable storage medium is a memory device in a terminal device used to store programs and data. It is understood that the computer-readable storage medium here can include both the built-in storage medium in the terminal device and extended storage media supported by the terminal device. The computer-readable storage medium provides storage space that stores the terminal's operating system. Furthermore, this storage space also stores one or more instructions suitable for loading and execution by a processor. These instructions can be one or more computer programs (including program code). It should be noted that the computer-readable storage medium here can be high-speed RAM or non-volatile memory, such as at least one disk storage device.

[0105] One or more instructions stored in a computer-readable storage medium can be loaded and executed by a processor to implement the corresponding steps of the above embodiments related to the distributed trading method for virtual power plants based on consortium blockchains; one or more instructions in the computer-readable storage medium are loaded and executed by the processor in the following steps:

[0106] Fill in the basic account information and create an account in the application stage; send the account application request to the corresponding organization through the organization information in the basic account information, and apply to become an available account through the access mechanism; the virtual power plant pre-allocates electricity and funds to available accounts based on the energy supply / consumption reported by each device on the previous day; users conduct electricity transactions with other users on the platform and within the virtual power plant based on the real-time equipment power and the pre-allocated electricity and funds in the account, ensuring that the account's energy supply / consumption is consistent with the pre-allocation; users participating in electricity transactions publish buy / sell bids on the platform, check sell bids with prices less than or equal to the buy bid price in the same period, select the seller with the strongest transaction stability, and finalize the transaction; the finalized transaction is recorded in the ledger of each node of the blockchain through the consortium blockchain; before the next pre-allocation, calculate the remaining electricity of the previous pre-allocated electricity in all user accounts, obtain the latest stability value of each account, and impose a penalty of m times the electricity fee on users whose pre-allocation deviates from the value, so that users can obtain the final benefit.

[0107] Figure 3 This is a schematic diagram of a computer device provided in an embodiment of the present invention. Figure 3As shown, the computer device 60 of this embodiment includes a processor 61, a memory 62, and a computer program 63 stored in the memory 62 and executable on the processor 61. When the computer program 63 is executed by the processor 61, it implements the heart rate measurement method of the embodiment. To avoid repetition, it will not be described in detail here. Alternatively, when the computer program 63 is executed by the processor 61, it implements the functions of each model / unit in the heart rate measurement device of the embodiment. To avoid repetition, it will not be described in detail here.

[0108] Computer device 60 can be a desktop computer, laptop, handheld computer, cloud server, or other computing device. Computer device 60 may include, but is not limited to, a processor 61 and a memory 62. Those skilled in the art will understand that... Figure 3 This is merely an example of computer device 60 and does not constitute a limitation on computer device 60. It may include more or fewer components than shown, or combine certain components, or different components. For example, computer device may also include input / output devices, network access devices, buses, etc.

[0109] The processor 61 may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.

[0110] The memory 62 can be an internal storage unit of the computer device 60, such as a hard disk or RAM of the computer device 60. The memory 62 can also be an external storage device of the computer device 60, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc. equipped on the computer device 60.

[0111] Furthermore, the memory 62 may include both internal storage units of the computer device 60 and external storage devices. The memory 62 is used to store computer programs and other programs and data required by the computer device. The memory 62 can also be used to temporarily store data that has been output or will be output.

[0112] In summary, the distributed trading method and platform for virtual power plants based on consortium blockchain of the present invention has the following characteristics:

[0113] 1. The virtual power plant distributed trading method and platform based on consortium blockchain proposed in this invention associates accounts and devices in the platform's basic database and maps blockchain accounts to accounts in the platform's basic database one by one. This avoids the problem that data in the blockchain exists in the form of key-value pairs and cannot be associated with device information, thus providing a solution to the problem of blockchain information association.

[0114] 2. The distributed trading method and platform for virtual power plants based on consortium blockchain proposed in this invention provides a decentralized, fair, just, and transparent trading solution for internal power trading in virtual power plants by leveraging consortium blockchain technology. It provides an effective solution for the current application of blockchain technology in the field of internal trading in virtual power plants from experimentation to practical application.

[0115] Those skilled in the art will understand that embodiments of this application can be provided as methods, platforms, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0116] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (platforms), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0117] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0118] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0119] The above content is only for illustrating the technical concept of the present invention and should not be construed as limiting the scope of protection of the present invention. Any modifications made to the technical solution based on the technical concept proposed in this invention shall fall within the scope of protection of the claims of this invention.

Claims

1. A distributed trading method for virtual power plants based on consortium blockchain, characterized in that, Includes the following steps: S1. Fill in the basic information of the account and create an account in the application stage; S2. Using the organization information in the account's basic information, the account application request is sent to the corresponding organization to apply for an account in an available state through the access mechanism. The access mechanism is as follows: A request to join an organization requires the consent of at least one administrator of the organization and a user of one of the top three most stable nodes in the organization. If the number of member nodes in the organization is insufficient, the consent of at least two administrators is required to join. S3. The virtual power plant pre-allocates electricity and funds to the available status account in step S2 based on the energy supply / consumption reported by each device on the previous day. S4. Based on the real-time equipment power of the virtual power plant and the pre-allocated electricity and funds in the account, the user conducts electricity transactions with other users in the virtual power plant on the platform to ensure that the account's energy supply / consumption is consistent with the pre-allocation in step S3. S5. Users participating in electricity trading post buy / sell orders on the platform, check sell orders with prices less than or equal to the buy order price within the same time period, select the seller with the strongest trading stability, and finalize the transaction. Transaction stability value of node users after the kth pre-allocation The calculation is as follows: in, for The stability value of a node after its (k-1)th pre-allocation; Let $\frac{i}{k}$ be the error value between the pre-allocated power and the pre-allocated power after the $k$-th pre-allocation at node $i$. The total number of nodes on the consortium blockchain; S6. Record the transactions finalized in step S5 in the ledgers of each node of the blockchain through the consortium blockchain. S7. Before the next step S3 pre-allocation, calculate the remaining electricity of all user accounts in the previous pre-allocation, obtain the latest stability value of each account, and impose a penalty of m times the electricity fee on users whose pre-allocation deviates from the value, so that users can obtain the final benefit. By mapping the owners of different distributed devices as users of the trading platform and nodes under different organizations on the consortium blockchain, users can complete blockchain transactions through the front-end interface. At the same time, the Modbus communication protocol is used to achieve actual control over the distributed devices.

2. The distributed trading method for virtual power plants based on consortium blockchain according to claim 1, characterized in that, In step S1, the basic account information includes name, email address, user role, username, and password.

3. The distributed trading method for virtual power plants based on consortium blockchain according to claim 1, characterized in that, In step S2, the blockchain transaction availability status account includes the blockchain transaction account address, the account's tradable electricity, generated electricity, consumed electricity, pre-allocated electricity, number of transactions, and stability value.

4. The distributed transaction method for virtual power plants based on consortium blockchain according to claim 1, characterized in that, In step S3, energy supply / consumption is pre-allocated based on the energy supply / consumption reported by the user, providing electricity to external users or consuming the remaining electricity in the power grid to maintain the production and sales balance between the virtual power plant and the main power grid.

5. The distributed trading method for virtual power plants based on consortium blockchain according to claim 1, characterized in that, In step S5, the specific method for verifying transaction eligibility is as follows: The platform filters out sell items whose prices are less than or equal to the buy price within the same time period; then, it selects the final seller based on transaction stability.

6. The distributed trading method for virtual power plants based on consortium blockchain according to claim 1, characterized in that, In step S7, the user ultimately benefits. The calculation is as follows: in, This represents the actual electrical energy consumed / generated by the node user on that day. The price of electricity per kilowatt-hour; For the electricity consumed / generated by node users reported daily, This is the electricity penalty coefficient.

7. A distributed trading platform for virtual power plants based on consortium blockchain, characterized in that, The distributed trading method for virtual power plants based on consortium blockchain as described in claim 1 includes: The blockchain layer includes smart contracts, channels in the consortium blockchain, and nodes within the organization, and stores records of every transaction within the virtual power plant; smart contracts include methods for publishing transaction information, methods for verifying transaction eligibility, and methods for executing transactions. The smart contracts determine the final trading parties by judging the transaction stability of the consortium blockchain nodes that meet the transaction requirements. The SDK layer provides calling methods to the server layer and interacts with the blockchain layer by calling smart contracts to complete the execution of the contracts. When there is more than one channel in the consortium blockchain network or more than one smart contract on one channel, the channel to be connected and the smart contract to be executed are selected. The database layer is used to store the correspondence between users and devices, the static and dynamic parameters of each device, the stability data of the consortium blockchain nodes within the virtual power plant, and the association between user accounts and transaction account addresses. The server layer provides basic operation interfaces for platform user registration, adding / deleting affiliated devices, joining / leaving organizations, participating in transactions, and viewing historical transaction records to respond to calls from the front-end interface layer. It also communicates with distributed devices within the virtual power plant via the Modbus protocol to complete real-time information collection and control. The front-end interface layer receives user and device information and stores basic user and device information in the database through interaction with the server layer. It is used for users to apply to join / leave an organization, and the server layer calls the SDK layer to modify the organization's node members on the blockchain network, thus completing the user's joining / leaving of an organization. It is also used by both parties in a transaction to publish buy or sell orders, triggering transaction conditions. The server layer calls the SDK layer to execute the smart contract's transaction methods, completing the bilateral transaction. Finally, it is used to display historical transaction information records, and the server layer calls the SDK layer to query historical transaction information on the blockchain network. The distributed devices within the virtual power plant transmit real-time device data to the server via the Modbus protocol and control the operating status of the distributed devices according to the commands issued by the server. By mapping the owners of different distributed devices as users of the trading platform and nodes under different organizations on the consortium blockchain, users can complete blockchain transactions through the front-end interface. At the same time, the Modbus communication protocol is used to achieve actual control over the distributed devices.

Citation Information

Patent Citations

  • Virtual power plant regulation and control platform based on blockchain and operation method

    CN111563786A

  • Virtual power plant transaction management method based on blockchain technology

    CN112465320A