PHEV power exchange system and its method of commerce based on alliance's block chain
Technical field
The invention belongs to urban transportation technical fields, and in particular to PHEV power exchange system based on alliance's block chain and
Its method of commerce.
Background technique
Energy internet is the Innovation Networks for serving energy production, transport, storage and distribution management, it integrates fortune
With advanced electronic technology, information technology and intelligent management technology, the interconnection of distributed energy node is got up, to realize energy
Two-way flow, peer switch are shared with balanced.As the mobile storage facility of distributed energy, plug-in hybrid-power automobile
(plug-in hybrid electric vehicle, PHEV) is an important component of energy internet, it is by spirit
Mobility living is possibly realized vehicle to the power exchange of power grid (Vehicle-to-Grid, V2G), is constantly increased with reply
Energy requirement and extremely unbalanced Energy distribution.Traditional electric car is compared, the more energy efficient environmental protection of PHEV, many countries are all positive
Development deployment, intensive and huge charging infrastructure also constantly build up landing, this produces green traffic and smart city construction
Significant impact is given birth to.
With being continuously increased for PHEV quantity, their daily charging behavior will inevitably impact on energy internet,
And reasonable management of charging and discharging helps to improve the stability of smart grid, and the equilibrium of supply and demand of maintenance energy market.So
The Intelligent Energy management of PHEV is just attract the extensive concern of industry and academia.
Currently, when the scheduling strategy and pricing mechanism of most of invention focus concern PHEV charge and discharge are to reduce charging
Between and cost depletions;There are many more the disposition optimizations that invention work is intended to probe into PHEV charging station;Only a small amount of research is concerned about
The safety problem of charge user, and existing safety approach all relies on the key authority of authority, once trusted third party
It breaks down or falls into enemy hands, the privacy of PHEV user will be by grave danger, this serious blow PHEV participates in balancing energy management
Enthusiasm, invent one kind go center, distributed trust, it is traceable can not distort, privacy of user shielded PHEV energy safely
Amount trading scheme is of great significance.
In conclusion the prior art has the following problems:
(1) prior art is easy to happen Single Point of Faliure, once centralization mechanism breaks down or suffers a calamity, transaction authentication
It will be interfered or control with payment activity, to threaten the availability and reliability of system;
(2) prior art lacks privacy and anonymity, and centralization mechanism has the hidden danger compromised, and there are prestige for privacy of user
The side of body, the vehicle of power surplus lack the enthusiasm that power exchange is participated in as supplier;
(3) low efficiency, for substantial amounts, geographically distributed PHEV, the distal end Grid Central of the prior art regulates and controls effect
Rate is low, and especially in the social hotspots region far from power grid, retractility is poor, and many stagnation vehicles are had more than needed big energy, while again
There are many vehicles to be badly in need of charging to complete plan of travel, and far charging of detouring will cause additional time cost and energy consumption;
(4) in the prior art, when carrying out PHEV user's checking, delay is big, with duration and low efficiency, increases the energy
Consumption.
Summary of the invention
For above-mentioned deficiency in the prior art, high system safety provided by the invention, user privacy are high, energy is handed over
Easy low efficiency and retractility is good and the user's checking used time short and high-efficient PHEV power exchange system based on alliance's block chain
System and its method of commerce, ensure that the availability and reliability of system, avoid additional time cost and energy consumption, solve
Security of system of the existing technology is low, user privacy is low, power exchange low efficiency and retractility is poor and user tests
The problem of card delay is big, with duration and low efficiency.
In order to achieve the above object of the invention, the technical solution adopted by the present invention are as follows:
A kind of PHEV power exchange system based on alliance's block chain, comprising:
Plug-in hybrid-power automobile PHEV, for participating in power exchange, charging PHEV and supply including consumed energy
The power supply PHEV of energy;
Energy mist node is supported and power exchange platform, management energy for providing communication for the PHEV in overlay area
Transaction, carries out the consensus management of distributed account book, and completes transaction audit and data sharing;
Intelligent electric meter, for calculating and recording power exchange amount in real time, is both sides' transaction payment on the electrode of PHEV
Strong data foundation is provided.
Further, distributed energy mist node communicates with each other connection by network of knowing together, and suitable according to linear session
Sequence backup effective block forms energy block chain.
Further, energy mist node includes the trading server for communicating with each other connection, account pool and memory pool;
Trading server collects energy requirement and the power supply of charging PHEV for being responsible for control PHEV power exchange process
The energy supply of PHEV, and match charge and discharge PHEV;And it is used for the feedback of real-time monitoring intelligent ammeter, according to scheduling decision intelligence
It can control the switch that charging is clicked;Distributed trading server communicates with each other connection, common to safeguard energy block chain;
Account pool, the system account including all PHEV users, for management energy coin transaction and carry out storage phase
Close transaction record, further include wallet corresponding with system account, for the energy coin in management system account, and by wallet be
The mapping relations of system account are stored in account pool, and the wallet generates random anonymity using hash algorithm to replace truly
Location;
Memory pool, for storing the Correlation block data and all transaction of client wallet corresponding with system account
Record.
A kind of method of commerce based on PHEV power exchange system, includes the following steps:
S1: it carries out system initialization: in energy block chain, carrying out system initialization, and use the ellipse of asymmetric encryption
The key material of data encryption, digital signature and login authentication in circular curve Encryption Algorithm delivery system;
S2: PHEV classification is carried out: according to the energy state of the PHEV in the system after initialization and plan of travel, by energy
The PHEV that state is unable to satisfy plan of travel is set as charging PHEV, will meet after plan of travel still power surplus simultaneously and be ready
The PHEV for participating in power exchange is set as power supply PHEV;
S3: it carries out power exchange: according to charging PHEV, power supply PHEV and energy mist node, carrying out power exchange;
S4: it transfers energy coin: according to the charging PHEV and power supply PHEV for participating in power exchange, making to fill by energy mist node
Electric PHEV pays corresponding energy coin to the power supply PHEV of contribution power surplus, generates transaction record, and be stored in memory pool, makes
Power supply PHEV is verified and transaction record of signing, and transaction record is submitted to energy mist node and carries out verifying audit;
S5: it is known together using PDPOS algorithm: being known together using PDPOS algorithm to block, the block that common recognition is passed through
Block chain is written.
Further, in step S3, the method for carrying out power exchange includes the following steps:
S3-1: the PHEV that makes to charge is to the trading server of energy mist node submission energy requirement and can provide buying price;
S3-2: so that trading server is counted the energy aggregate demand of all charging PHEV and is can provide buying price, and be broadcast to this
The power supply PHEV on ground;
S3-3: make power supply PHEV that can sell energy and acceptable selling price to trading server transmission;
S3-4: according to charging PHEV energy aggregate demand and can provide buying price, with power supply PHEV sell energy and can
Receive selling price, the energy for filling trading server execution between power supply PHEV using iterative energy two way auction EIDA algorithm is competing
It marks, negotiate and trades, power supply PHEV is filled in matching, obtains the decision that optimal energy distributes composition of bidding with optimal energy;
S3-5: decision being fed back to respectively and fills power supply PHEV, and makes to fill power supply PHEV by decision completion energy transmission, is realized
Power exchange.
Further, in step S3-4, EIDA algorithm includes the following steps:
S3-4-1: it will charge and PHEV and power PHEV energy state and energy is bidded input energy mist node;
S3-4-2: initialization iterative parameter, and bidded according to primary power, initialization optimal energy is bidded;
S3-4-3: bidding according to current optimal energy, calculates optimal energy distribution, matching charging PHEV and power supply PHEV energy
Amount demand and supply;
S3-4-4: distributing according to current optimal energy, updates charging PHEV and the optimal energy for the PHEV that powers is bidded, and more
New the number of iterations t=t+1;
S3-4-5: judging whether updated current optimal energy convergence of bidding meets the requirements, if then entering step
Otherwise S3-4-7 enters step S3-4-6;
S3-4-6: judging whether current iteration number is greater than maximum number of iterations, if then entering step S3-4-7, otherwise
Enter step S3-4-3;
S3-4-7: the distribution of current optimal energy and current optimal energy are bidded and forms decision and exports.
Further, in step S3-4-5, convergence judgment criterion formula are as follows:
In formula, CB, CS are convergence judgment criterion;Energy for the PHEV that charges is bidded;For the energy for the PHEV that powers
It bids;ε is condition of convergence constant;T is the number of iterations.
Further, in step S5, the energy mist node of energy coin share will be possessed as voter, PDPOS algorithm, including
Following steps:
A-1: voting according to voter, using m name energy mist node in the top as shareholder and composition equity shareholder
Conference, and m shareholder is carried out randomly ordered;
A-2: generating the period according to block, to shareholder's number m remainder, determines the forging person of current common recognition timeslice;
A-3: the founder by the forging person of current time piece as new block, the friendship for being collected into shareholder according to founder
Easily record carries out encrypted and digitally signed, and encrypted transaction record is carried out structuring, generate block and is broadcast to energy
Block chain is known together in network;
A-4: verifying that shareholder to the new block received, generates after verifying is qualified and broadcasts a preparation message;
A-5: judging whether the stipulated time for reaching timer, if then terminating to know together, otherwise enters step A-6;
A-6: the message of the preparation more than f+1 is received until each shareholder is accumulative, generates and broadcasts a confirmation message;
A-7: judging whether the stipulated time for reaching timer, if then terminating to know together, otherwise enters step A-8;
A-8: more than 2f+1 confirmation message is received until each shareholder is accumulative, common recognition passes through, and the block is written
Block chain.
This programme has the beneficial effect that
(1) present invention proposes to calculate the V2V power exchange framework with alliance's block chain based on mist, and account book records in a distributed manner
The local energy of PHEV is traded, and is guaranteed the safety of transaction record and can not be distorted, avoid break down threaten system can
With property and reliability;
(2) Transaction Information and block data are all encryption storages in block chain in the present invention, avoid exposing privacy of user;Benefit
Client address is safeguarded with elliptic curve encryption algorithm, avoids leakage account information, improves the vehicle of power surplus as confession
The enthusiasm of the person's of answering participation power exchange;
(3) present invention disposes energy mist node in social hotspots, provides communication overlay and transaction control for energy market
System, furthered power grid and the distance of PHEV, improves the efficiency and retractility of local energy transaction, avoids when causing additional
Between cost and energy consumption;
(4) present invention uses new common recognition algorithm, that is, PDPOS algorithm, improves the common recognition efficiency and fault-tolerance of system, with
It reduces the delay of user's checking and digs mine energy consumption, support quick transaction payment, saved energy consumption.
Detailed description of the invention
Fig. 1 is the PHEV power exchange system structure diagram based on alliance's block chain;
Fig. 2 is the method for commerce flow chart based on PHEV power exchange system;
Fig. 3 is the method flow diagram for carrying out power exchange;
Fig. 4 is EIDA algorithm flow chart;
Fig. 5 is PDPOS algorithm flow chart.
Specific embodiment
A specific embodiment of the invention is described below, in order to facilitate understanding by those skilled in the art this hair
It is bright, it should be apparent that the present invention is not limited to the ranges of specific embodiment, for those skilled in the art,
As long as various change is in the spirit and scope of the present invention that the attached claims limit and determine, these variations are aobvious and easy
See, all are using the innovation and creation of present inventive concept in the column of protection.
A kind of PHEV power exchange system based on alliance's block chain, as shown in Figure 1, comprising:
Plug-in hybrid-power automobile PHEV, for participating in power exchange, charging PHEV and supply including consumed energy
The power supply PHEV of energy;
Energy mist node is supported and power exchange platform, management energy for providing communication for the PHEV in overlay area
Transaction, carries out the consensus management of distributed account book, and completes transaction audit and data sharing;
Intelligent electric meter, for calculating and recording power exchange amount in real time, is both sides' transaction payment on the electrode of PHEV
Strong data foundation is provided.
In the present embodiment, distributed energy mist node communicates with each other connection by network of knowing together, and according to linear session
Sequence backup effective block forms energy block chain.
In the present embodiment, the quantity of energy mist node is only embodiment, is not limited to the quantity.
In the present embodiment, energy mist node includes the trading server for communicating with each other connection, account pool and memory pool;
Trading server collects energy requirement and the power supply of charging PHEV for being responsible for control PHEV power exchange process
The energy supply of PHEV, and match charge and discharge PHEV;And it is used for the feedback of real-time monitoring intelligent ammeter, according to scheduling decision intelligence
It can control the switch that charging is clicked;Distributed trading server communicates with each other connection, common to safeguard energy block chain;
Account pool, the system account including all PHEV users, for management energy coin transaction and carry out storage phase
Close transaction record, further include wallet corresponding with system account, for the energy coin in management system account, and by wallet be
The mapping relations of system account are stored in account pool, and the wallet generates random anonymity using hash algorithm to replace truly
Location;
Memory pool, for storing the Correlation block data and all transaction of client wallet corresponding with system account
Record.
A kind of method of commerce based on PHEV power exchange system, as shown in Fig. 2, including the following steps:
S1: it carries out system initialization: in energy block chain, carrying out system initialization, and use the ellipse of asymmetric encryption
The key material of data encryption, digital signature and login authentication in circular curve Encryption Algorithm delivery system;
S2: PHEV classification is carried out: according to the energy state of the PHEV in the system after initialization and plan of travel, by energy
The PHEV that state is unable to satisfy plan of travel is set as charging PHEV, will meet after plan of travel still power surplus simultaneously and be ready
The PHEV for participating in power exchange is set as power supply PHEV;
S3: power exchange is carried out: according to charging PHEV, power supply PHEV and energy mist node, the method for carrying out power exchange,
As shown in figure 3, including the following steps:
S3-1: the PHEV that makes to charge is to the trading server of energy mist node submission energy requirement and can provide buying price;
S3-2: so that trading server is counted the energy aggregate demand of all charging PHEV and is can provide buying price, and be broadcast to this
The power supply PHEV on ground;
S3-3: make power supply PHEV that can sell energy and acceptable selling price to trading server transmission;
S3-4: according to charging PHEV energy aggregate demand and can provide buying price, with power supply PHEV sell energy and can
Receive selling price, the energy for filling trading server execution between power supply PHEV using iterative energy two way auction EIDA algorithm is competing
It marks, negotiate and trades, power supply PHEV is filled in matching, obtains the decision that optimal energy distributes composition of bidding with optimal energy, EIDA calculation
Method, as shown in figure 4, including the following steps:
S3-4-1: it will charge and PHEV and power PHEV energy state and energy is bidded input energy mist node;
S3-4-2: initialization iterative parameter, and bidded according to primary power, initialization optimal energy is bidded;
S3-4-3: bidding according to current optimal energy, calculates optimal energy distribution, matching charging PHEV and power supply PHEV energy
Amount demand and supply;
S3-4-4: distributing according to current optimal energy, updates charging PHEV and the optimal energy for the PHEV that powers is bidded, and more
New the number of iterations;
S3-4-5: judging whether updated current optimal energy convergence of bidding meets the requirements, if then entering step
Otherwise S3-4-7 enters step S3-4-6, convergence judgment criterion formula are as follows:
In formula, CB, CS are convergence judgment criterion;Energy for the PHEV that charges is bidded;For the energy for the PHEV that powers
It bids;ε is condition of convergence constant;T is the number of iterations;
S3-4-6: judging whether current iteration number is greater than maximum number of iterations, if then entering step S3-4-7, otherwise
Enter step S3-4-3;
S3-4-7: the distribution of current optimal energy and current optimal energy are bidded and forms decision and exports;
S3-5: decision being fed back to respectively and fills power supply PHEV, and makes to fill power supply PHEV by decision completion energy transmission, is realized
Power exchange.
S4: it transfers energy coin: according to the charging PHEV and power supply PHEV for participating in power exchange, making to fill by energy mist node
Electric PHEV pays corresponding energy coin to the power supply PHEV of contribution power surplus, generates transaction record, and be stored in memory pool, makes
Power supply PHEV is verified and transaction record of signing, and transaction record is submitted to energy mist node and carries out verifying audit;
S5: it is known together using PDPOS algorithm: being known together using PDPOS algorithm to block, the block that common recognition is passed through
Block chain is written, the energy mist node of energy coin share will be possessed as voter, PDPOS algorithm, as shown in figure 5, including as follows
Step:
A-1: voting according to voter, using m name energy mist node in the top as shareholder and composition equity shareholder
Conference, and m shareholder is carried out randomly ordered;
A-2: generating the period according to block, to shareholder's number m remainder, determines the forging person of current common recognition timeslice;
A-3: the founder by the forging person of current time piece as new block, the friendship for being collected into shareholder according to founder
Easily record carries out encrypted and digitally signed, and encrypted transaction record is carried out structuring, generate block and is broadcast to energy
Block chain is known together in network;
A-4: verifying that shareholder to the new block received, generates after verifying is qualified and broadcasts a preparation message;
A-5: judging whether the stipulated time for reaching timer, if then terminating to know together, otherwise enters step A-6;
A-6: the message of the preparation more than f+1 is received until each shareholder is accumulative, generates and broadcasts a confirmation message;
A-7: judging whether the stipulated time for reaching timer, if then terminating to know together, otherwise enters step A-8;
A-8: more than 2f+1 confirmation message is received until each shareholder is accumulative, common recognition passes through, and the block is written
Block chain.
In the present embodiment, in order to motivate more power supply PHEV to participate in local energy balanced management, the PHEV that powers is in addition to obtaining
Except the profit of difference that must trade, it will also obtain additional energy coin and reward.
High system safety provided by the invention, user privacy be high, power exchange low efficiency and retractility is good and use
Used time short and high-efficient PHEV power exchange system and its method of commerce based on alliance's block chain is verified at family, ensure that system
Availability and reliability, avoid additional time cost and energy consumption, solve system of the existing technology safety
Property it is low, user privacy is low, power exchange low efficiency and retractility is poor and user's checking delay is big, with duration and efficiency
Low problem.