CN-114841692-B - Virtual power plant distributed transaction method and platform based on alliance blockchain
Abstract
The invention discloses a distributed transaction method and platform of a virtual power plant based on a alliance blockchain, which are characterized in that an account in an application state is created, the account is applied to be an available state account through an admission mechanism, the virtual power plant pre-distributes electric quantity and funds to the available state account according to energy supply/energy consumption reported by each device in the future, a user performs electric energy transaction with other node users in the virtual power plant according to real-time device power of the virtual power plant and the electric quantity and funds pre-distributed by the account, a sell-out mark which is smaller than or equal to a bid price in the same period is checked, a seller with the strongest transaction stability is selected to finalize the transaction, the account is recorded at each node account of the blockchain through the alliance blockchain, the last pre-distributed residual electric energy of all user accounts is calculated before the next pre-distribution, the latest stability value of each account is obtained, and m times of electric charge penalties are performed on users with deviation from the pre-distribution. The user is ensured to complete the blockchain transaction at the front-end interface.
Inventors
- WANG JIANXUE
- HE MIAO
- PENG ZEWEN
- QI JIE
- LIU MENGHUA
Assignees
- 西安交通大学
Dates
- Publication Date
- 20260508
- Application Date
- 20220221
Claims (7)
- 1. A distributed transaction method of a virtual power plant based on a federated blockchain, comprising the steps of: S1, filling in basic information of an account, and creating the account in an application state; S2, sending an account application request to a corresponding organization through the belonging organization information in the account basic information, and applying for the account to be an available state account through an admission mechanism, wherein the admission mechanism specifically comprises: The request for joining the organization needs to obtain the agreement of at least one manager of the corresponding organization and one node user in the first three nodes of the stability under the corresponding organization, and when the number of the corresponding organization member nodes is insufficient, the requirement that at least two managers agree to join is met; S3, the virtual power plant pre-distributes electric quantity and funds to the account in the available state in the step S2 according to energy supply/energy consumption reported by each device in the day before; S4, the user conducts electric energy transaction between the platform and other node users in the virtual power plant according to the real-time equipment power of the virtual power plant and the pre-allocated electric quantity and funds of the account, and the energy supply/energy consumption of the account is guaranteed to be consistent with the pre-allocation in the step S3; s5, the users participating in the electric energy transaction issue buying/selling targets on the platform, check the selling targets which are less than or equal to the buying target price in the same time period, select the seller with the strongest transaction stability, finalize the transaction, Transaction stability value after kth pre-allocation of node users The calculation is as follows: Wherein, the Is that Stability values after k-1 th pre-allocation of the node; the error value generated by the pre-allocated power after the kth pre-allocation of the inode is the same as the pre-allocation power, Count for all nodes on the federated blockchain; s6, recording the transaction finalized in the step S5 in each node account book of the blockchain through the alliance blockchain; S7, before the next pre-allocation in the step S3, calculating the residual electric energy pre-allocated last time for all the user accounts to obtain the latest stability value of each account, and performing m-time electric charge penalty for the user with deviation from the pre-allocation to enable the user to obtain final benefits; The owners of different distributed devices are used as users of a transaction platform and are mapped with nodes in different organizations on a alliance chain, so that the users can finish blockchain transaction at a front-end interface, and meanwhile, the actual control of the distributed devices is realized by means of a Modbus communication protocol.
- 2. The coalition blockchain based virtual power plant distributed transaction method of claim 1, wherein in step S1, the basic information of the account includes name, mailbox, user role, user name and password.
- 3. The coalition-based blockchain virtual power plant distributed transaction method of claim 1, wherein in step S2, the blockchain transaction availability status account includes a blockchain transaction account address, an account tradable amount of electricity, a generated amount of electricity, a consumed amount of electricity, a pre-allocated amount of electricity, a number of transactions, and a stability value.
- 4. The distributed transaction method of a virtual power plant based on a alliance blockchain according to claim 1, wherein in step S3, energy supply/energy consumption reported by a user at a later date is pre-distributed, and power is supplied to the outside or power remaining in a power grid is consumed, so that the balance between the inside of the virtual power plant and the production and marketing of a large power grid is maintained.
- 5. The virtual power plant distributed transaction method based on alliance blockchain according to claim 1, wherein in step S5, the transaction qualification method specifically comprises: And selecting the seller with the price less than or equal to the price of the buying target in the same period of time of the platform, and then selecting the seller of the final transaction according to the transaction stability.
- 6. The federated blockchain-based virtual power plant distributed transaction method of claim 1 wherein in step S7, the user ultimately benefits The calculation is as follows: Wherein, the The actual consumed/generated electric energy for the node user on the same day; electricity price for electricity quantity per kilowatt-hour; The consumed/generated electrical energy is reported to node users a day ago, And punishing the coefficient for the electric charge.
- 7. A virtual power plant distributed trading platform based on a federated blockchain, using the virtual power plant distributed trading method based on a federated blockchain of claim 1, comprising: The intelligent contract comprises a transaction information issuing method, a transaction qualification checking method and a transaction executing method, and the intelligent contract determines the final transaction parties by judging the transaction stability of the alliance chain node meeting the transaction; the SDK layer provides a calling method for the server layer, interacts with the blockchain layer through calling the intelligent contracts to finish execution of the contracts, and selects a channel to be connected and the intelligent contracts to be executed when more than one channel or more than one intelligent contract are arranged on one channel in the alliance chain network; The database layer is used for storing the corresponding relation between the user and the equipment, the static and dynamic parameters of each equipment, the stability data of the alliance chain node in the virtual power plant and the association relation between the user account number and the transaction account address; The service end layer provides a basic operation function interface for registering a user, adding/deleting the device, joining/exiting organization, participating in transaction and viewing history transaction records of the platform, is used for responding to the call of the front end interface layer, and communicates with the internal distributed device of the virtual power plant through a Modbus protocol to complete real-time information acquisition control; The system comprises a front-end interface layer, a transaction information processing layer, a history transaction information processing layer and a history transaction information processing layer, wherein the front-end interface layer receives user and equipment information, stores user and equipment basic information into a database through interaction with a server-end layer, is used for a user to apply to join/exit a certain organization and modify organization node members on a blockchain network by means of the server-end layer to complete the user to join/exit a certain organization function; The virtual power plant internal distributed equipment transmits real-time data of the equipment to a server through a Modbus protocol and controls the running state of the distributed equipment according to a command issued by the server; The owners of different distributed devices are used as users of a transaction platform and are mapped with nodes in different organizations on a alliance chain, so that the users can finish blockchain transaction at a front-end interface, and meanwhile, the actual control of the distributed devices is realized by means of a Modbus communication protocol.
Description
Virtual power plant distributed transaction method and platform based on alliance blockchain Technical Field The invention belongs to the technical field of blockchains, and particularly relates to a virtual power plant distributed transaction method and platform based on a alliance blockchain. Background The virtual power plant is a carrier for integrating, regulating and optimizing various distributed energy sources through a matched regulating technology and a communication technology by organically combining a distributed power supply, a controllable load, an energy storage system, an electric automobile and the like, so that the virtual power plant is used as a special power plant to participate in the operation of an electric power market and a power grid, and the virtual power plant is equivalent to the outside to form a controllable power supply. The virtual power plant can be used as a positive power plant for supplying power to the system and can also be used as a negative power plant for absorbing power of the system, so that the effects of flexibly peak clipping, valley filling and the like are achieved. Therefore, the virtual power plant can adjust the output and demand response of the distributed equipment according to the fluctuation condition of the price of the electric power market, so that the electricity consumption in the valley and the electricity selling in the peak are realized, and the maximum profit is obtained. However, various distributed devices in the virtual power plant are often attributed to different individuals, the investment and finance of the distributed devices are mutually independent, and the problem of how to adopt a transaction method with decentralization, fairness and transparency in information is important in the virtual power plant, so that the problem of the virtual power plant in future development is essentially solved. The characteristics of collective maintenance, programmability, high safety and the like of the data of the blockchain technology are very in line with the requirements of internal transactions of the virtual power plant. With the development of blockchain technology, three types of public chains, private chains and alliance chains are evolved. The alliance chain not only has privacy of a private chain, but also has the decentralized thinking of a public chain, solves the problem of low transaction speed of the public chain, and quite meets the requirement of internal electric energy transaction of a virtual power plant. However, there are few related studies on distributed transactions and alliance chains inside the virtual power plant, and a specific technical method for distributed transactions inside the virtual power plant is lacking. Meanwhile, in the prior art, for the practice of distributed transactions inside a virtual power plant, most stay in a simulation environment, a platform in which a common user directly participates is not provided and distributed equipment is actually controlled. The progress in internal distributed transactions of virtual power plants is slow due to both technical methods and practices. Disclosure of Invention Aiming at the defects in the prior art, the invention provides a virtual power plant distributed transaction method and platform based on alliance blockchain, which ensure that a user can complete blockchain transaction at a front-end interface. The invention adopts the following technical scheme: a virtual power plant distributed transaction method based on a alliance blockchain comprises the following steps: S1, filling in basic information of an account, and creating the account in an application state; S2, sending an account application request to a corresponding organization through the belonging organization information in the account basic information, and applying for the account application request to be an available state account through an admission mechanism; S3, the virtual power plant pre-distributes electric quantity and funds to the account in the available state in the step S2 according to energy supply/energy consumption reported by each device in the day before; S4, the user conducts electric energy transaction between the platform and other node users in the virtual power plant according to the real-time equipment power of the virtual power plant and the pre-allocated electric quantity and funds of the account, and the energy supply/energy consumption of the account is guaranteed to be consistent with the pre-allocation in the step S3; s5, a user participating in the electric energy transaction issues a buying/selling target on a platform, the selling target with the price smaller than or equal to that of the buying target in the same time period is checked, a seller with the strongest transaction stability is selected, and the transaction is finalized; s6, recording the transaction finalized in the step S5 in each node account book of the blockchain through the alliance blockch