The content of the invention
In view of this, the invention provides a kind of electricity transaction method, device and micro-grid system, electricity transaction is being reduced
On the basis of the human resources and time cost of required consumption, accelerate electricity transaction processing procedure, and then improve electricity transaction
Treatment effeciency.
To achieve the above object, the present invention provides following technical scheme:
A kind of electricity transaction method, applied to the electric power transaction platform based on block chain, including:
When the login account of user is in logging status, the power purchase demand of the user, the power purchase demand bag are received
Containing purchase of electricity and power purchase type;
Whether the amount of money value that prestored in the login account for judging the user is more than or equal to target amount of money value, the target gold
The amount of money value that volume value is paid for needed for the power purchase demand;
If the amount of money value that prestored in the login account of the user is more than or equal to the target amount of money value, from the user's
The target amount of money value is deducted in login account;
According to transmission of electricity contract, the generating equipment of the correspondence power purchase demand, and generation are matched from generating equipment storehouse
With information, the incidence relation between electrical equipment of the match information comprising the user and the generating equipment;
The match information is sent to the generating equipment.
Preferably, it is described after the target amount of money value is deducted from the login account of the user, in addition to:
According to settle accounts calculation contract of keeping accounts is paid, by target amount of money value progress fund point account, generate point account amount of money and divide
Account information, the number of the described point of account amount of money is at least one;
Each the Suo Shu points of account amount of money is sent to corresponding point of account recipient, and generates payment information, described point of account connects
Debit participates in user for the electricity transaction included in book keeping operation settle accounts calculation contract that pays;
Account information and payment information described will be divided as settlement information, and be verified, packed, known together, generate data block,
And it is stored in block chain.
Preferably, it is described to be sent to by the match information after the generating equipment, in addition to:
When receiving target and participating in the settlement information inquiry request that user sends, matched from the block chain pair
The settlement information of the settlement information inquiry request is answered, it is that the electricity transaction participates in appointing in user that the target, which participates in user,
Anticipate a user;
The settlement information is sent to the target and participates in user.
Preferably, described according to transmission of electricity contract, the generating that the correspondence power purchase demand is matched from generating equipment storehouse is set
It is standby, and match information is generated, including:
Electric energy type and the power purchase type identical generating equipment are matched from generating equipment storehouse, first choice is used as
Generating equipment;
The first choice that generated energy is matched from the first choice generating equipment more than or equal to the purchase of electricity is sent out
Electric equipment, is used as the second selection generating equipment;
When the number of the described second selection generating equipment is more than 1, mesh is matched from the described second selection generating equipment
The minimum generating equipment of subject distance value is as the generating equipment of the correspondence power purchase demand, and the target range value is the generating
The distance between equipment and the electrical equipment of the user value;
Or, when the number of the described second selection generating equipment is equal to 1, described second generating equipment will be selected as right
Answer the generating equipment of the power purchase demand;
Incidence relation between the generating equipment of the generation correspondence power purchase demand and the electrical equipment of the user, as
The match information.
Preferably, it is described in the foundation transmission of electricity contract, the correspondence power purchase demand is matched from generating equipment storehouse
Generating equipment, and after generating match information, in addition to:
The power purchase demand and the match information are verified, packed, known together, data block is generated, and be stored in area
Block chain.
A kind of electricity transaction device, including:
Receiving module, for when the login account of user is in logging status, receiving the power purchase demand of the user, institute
State power purchase demand and include purchase of electricity and power purchase type;
Whether the amount of money value that prestored in judge module, the login account for judging the user is more than or equal to the target amount of money
Value, the amount of money value that the target amount of money value is paid for needed for the power purchase demand;
Update module, if the amount of money value that prestored in login account for the user is more than or equal to the target amount of money
Value, deducts the target amount of money value from the login account of the user;
First matching module, for according to transmission of electricity contract, the correspondence power purchase demand to be matched from generating equipment storehouse
Generating equipment, and match information is generated, between electrical equipment of the match information comprising the user and the generating equipment
Incidence relation;
First sending module, for the match information to be sent into the generating equipment.
Preferably, described device also includes:
Fund point account module, for deducting the target amount of money from the login account of the user in the update module
After value, according to settle accounts calculation contract of keeping accounts is paid, the target amount of money value is subjected to fund point account, the generation point account amount of money and point account
Information, the number of the described point of account amount of money is at least one;
Second sending module, for each the Suo Shu points of account amount of money to be sent to corresponding point of account recipient, described point of account
Recipient participates in user for the electricity transaction included in book keeping operation settle accounts calculation contract that pays;
Payment information generation module, for sending each the Suo Shu points of account amount of money to correspondence in second sending module
Point account recipient after, generate payment information;
Data block generation module, for that account information and payment information described will be divided as settlement information, is verified, is beaten
Bag, common recognition, generate data block;
Preserving module, after generating the data block in the data block generation module, by the data field
Block is stored in block chain.
Preferably, described device also includes:
Second matching module, for the match information to be sent into the generating equipment in first sending module,
And when receiving target and participating in the settlement information inquiry request that user sends, the correspondence knot is matched from the block chain
The settlement information of information inquiring request is calculated, it is any one use in electricity transaction participation user that the target, which participates in user,
Family;
3rd sending module, user is participated in for the settlement information to be sent into the target.
Preferably, first matching module includes:
3rd matching module, generates electricity for matching electric energy type from generating equipment storehouse with the power purchase type identical
Equipment, is used as first choice generating equipment;
4th matching module, for matching generated energy from the first choice generating equipment more than or equal to the purchase
The first choice generating equipment of electricity, is used as the second selection generating equipment;
5th matching module, for matching generating from the first choice generating equipment in the 4th matching module
Amount selects generating equipment, and second selection more than or equal to the first choice generating equipment of the purchase of electricity as second
When the number of generating equipment is more than 1, the minimum generating equipment of target range value is matched from the described second selection generating equipment
As the generating equipment of the correspondence power purchase demand, the target range value is that the generating equipment and the electricity consumption of the user are set
The distance between standby value;
6th matching module, for matching generating from the first choice generating equipment in the 4th matching module
Amount as the second selection generating equipment, and works as the described second choosing more than or equal to the first choice generating equipment of the purchase of electricity
When the number for selecting generating equipment is equal to 1, generating equipment is selected as the generating equipment of the correspondence power purchase demand using described second;
Match information generation module, generating equipment and the electricity consumption of the user for generating the correspondence power purchase demand are set
Incidence relation between standby, is used as the match information.
A kind of micro-grid system, including:
Electric power transaction platform and generating equipment based on block chain;
The electric power transaction platform based on block chain, for when the login account of user is in logging status, receiving
The power purchase demand of the user, the power purchase demand is included in purchase of electricity and power purchase type, the login account for judging the user
Whether the amount of money value that prestores is more than or equal to target amount of money value, the amount of money that the target amount of money value is paid for needed for the power purchase demand
Value, if the amount of money value that prestored in the login account of the user is more than or equal to the target amount of money value, from the login of the user
The target amount of money value is deducted in account, according to transmission of electricity contract, the correspondence power purchase demand is matched from generating equipment storehouse
Generating equipment, and match information is generated, between electrical equipment of the match information comprising the user and the generating equipment
Incidence relation, the match information is sent to the generating equipment;
The generating equipment, for receiving the match information.
Understood via above-mentioned technical scheme, compared with prior art, the invention provides a kind of electricity transaction method, dress
Put and micro-grid system, being more than or equal to the power purchase received by the amount of money value that prestored in the login account for judge user needs
Needed for asking during the amount of money value of payment, corresponding amount of money value i.e. target amount of money value is deducted from the login account of user, as follow-up
The premise of corresponding electricity is provided for the user, afterwards according to transmission of electricity contract, Auto-matching goes out correspondence power purchase from generating equipment storehouse
The generating equipment of demand, and generate match information, to be sent by the match information to generating equipment, by generating equipment and
When be powered to correspondence user it is automatic right so that user obtains electricity, it is seen then that after the power purchase demand of user is received
Target amount of money value is judged needed for whether the amount of money value that prestored in the login account of user can pay power purchase demand, and completes gold
Volume value deducts operation, has both avoided because user is to the manpower and time specified spent by the progress electricity transaction payment of sale of electricity place,
Staff is saved again carries out the workload that electricity is supplemented with money, and then on the basis of electricity transaction intermediate link is reduced, plus
Fast electricity transaction processing procedure, afterwards, using transmitting electricity, contract is matched, and can be quickly generated match information, further be carried
The high treatment effeciency of electricity transaction.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
Current electricity consumption user is more by the manpower of required consumption during the completion electricity transaction of sale of electricity place and time, so as to lead
Send a telegraph power trading processing process slower, have a strong impact on the trading experiencing of electricity consumption user, therefore be directed to this problem, present solution provides
A kind of electricity transaction method, can cross process automation by electricity transaction, flat in the electricity transaction based on block chain using electric user
Required electricity transaction is voluntarily completed on platform, so that the purpose of the part intermediate link during reaching reduction electricity transaction, enters
And electricity transaction processing speed is accelerated, improve the treatment effeciency of electricity transaction.
, please applied to the electric power transaction platform based on block chain the embodiment of the invention discloses a kind of electricity transaction method
Referring to accompanying drawing 1, methods described specifically includes following steps:
S101:When the login account of user is in logging status, the electric power transaction platform based on block chain receives described
The power purchase demand of user, the power purchase demand includes purchase of electricity and power purchase type;
Specifically, the login account of user can be that user is mutually powered-down by registration, login before electricity transaction is carried out
Power transaction platform and obtain, so that electric power transaction platform quickly recognizes user according to the login account obtained by registration, and assign
The related authority of the user, facilitates it to carry out electricity transaction in electric power transaction platform.Wherein, the present invention relates to electric power friendship
Easy platform is set up based on block chain technology, for the area being stored in the related data being related to during electricity transaction in it
In block chain, so as to preferably ensure the interests of electricity transaction both sides, it is easy to data to circulate.
When User logs in after its login account registered, it can just be sent certainly to the electric power transaction platform based on block chain
Oneself power purchase demand, knows the user after the power purchase demand this to be purchased so that the electric power transaction platform based on block chain is received
The electricity size and the species of purchase electricity bought.Wherein, user sends its power purchase by the electric power transaction platform based on block chain
Mode this programme of demand is not limited, and can be that user inputs power purchase on the page of the electric power transaction platform based on block chain
Complete to send after demand;Contained purchase of electricity and power purchase type can be according to certain regular carry out groups in the power purchase demand received
Close, such as " purchase of electricity+power purchase type ", so that the electric power transaction platform based on block chain accurately knows this electricity transaction of user
Real needs, wherein, the power purchase type in power purchase demand can be that photovoltaic generation, wind-powered electricity generation, water power, thermoelectricity etc. are therein any
One type is, it is necessary to which explanation, is advantageously employed in new energy, such as photovoltaic generation, wind-powered electricity generation.
For example, " user A " logged in the electric power transaction platform based on block chain oneself " after login account X ",
" 200 kilowatt-hours+wind-powered electricity generation " are inputted on the electric power transaction platform page based on block chain, so that the electric power based on block chain
Transaction platform knows that " user A " this wants to buy " 200 kilowatt-hours of wind-powered electricity generations ".
The electric power transaction platform based on block chain involved by the embodiment of the present invention can be a website, be mainly used in
The network marketing activity related with electric power is carried out between user and user.
S102:The electric power transaction platform based on the block chain amount of money value that judges to prestore in the login account of the user is
It is no to be more than or equal to target amount of money value, the amount of money value that the target amount of money value is paid for needed for the power purchase demand, if so, then holding
Row S103, if it is not, then performing S104;
Specifically, after the login account registration that the amount of money value that prestored in the login account of user can be user is generated, user
Supplement the digital cash of gained with money into the login account, be mainly used in user and carry out online payment when institute when carrying out electricity transaction
Use, thus avoid user by papery RMB carry out reality transaction produced by it is inconvenient and time-consuming the problems such as, wherein, be
Ensure to prestore in User logs in account the safety of amount of money value, and this can prestore amount of money value is recorded in block chain, so as to have
The effect amount of money value that prevents from prestoring in User logs in account is maliciously tampered.
The amount of money value that target amount of money value is paid for needed for the power purchase demand received in S101, can be based on block chain
Electric power transaction platform enters the number obtained by row equivalent calculating according to the current electric quantity unit price of the power purchase type prestored to purchase of electricity
Word currency size.For example, the electric quantity unit price of 1 kilowatt-hour of photovoltaic generation is 0.75 yuan, the power purchase demand received is
" 100 kilowatt-hours+photovoltaic generation ", then 75 yuan of target amount of money value after equivalence is calculated.
S103:The electric power transaction platform based on block chain deducts the target gold from the login account of the user
Volume value, and perform S105;
If specifically, the amount of money value that prestored in the login account of user is more than or equal to target amount of money value, it was demonstrated that the user's
The existing amount of money value that prestores pays the charge value to be bought in user's purchasing demand enough in login account, now, based on area
The electric power transaction platform of block chain is automatic to deduct target amount of money value from the login account of user, to carry out the electric power of follow-up correlation
Process of exchange.
S104:The electric power transaction platform based on block chain is generated and the information that shows that Sorry, your ticket has not enough value;
If specifically, the amount of money value that prestored in the login account of user is less than target amount of money value, it was demonstrated that the login account of the user
The existing amount of money value that prestores not enough pays the charge value to be bought in user's purchasing demand in number, now, can automatically generate remaining
Volume deficiency information, and user is shown to, so that user can voluntarily be adjusted for such case to power purchase demand, or to
In oneself login account carry out supplement with money wait operate, be that electricity transaction is prepared next time.
S105:The electric power transaction platform based on block chain is matched pair according to transmission of electricity contract from generating equipment storehouse
Answer the generating equipment of the power purchase demand, and generate match information, electrical equipment of the match information comprising the user and
Incidence relation between the generating equipment, and perform S106;
Specifically, transmission of electricity contract can be the contract terms related to electricity transaction transmission of electricity matching link pre-set,
For when entry condition is triggered, as matching the generating equipment of correspondence power purchase demand from generating equipment storehouse, and generate
The execution foundation of the step for match information, so that the portion link during being rapidly completed electricity transaction.Wherein, transmission of electricity contract
It can be stored in block chain, and then be prevented effectively from and the behavior such as distort, obtain from extraneous malice.
Generating equipment storehouse can be pre-established, and multiple generatings that main storage provides electric energy to buy the user of electricity are set
It is standby, such as photovoltaic plant, wind power station, generation of electricity by new energy station, heat power station, water-power plant.
According to transmission of electricity contract, the generating equipment of correspondence power purchase demand is matched from generating equipment storehouse, and generates matching letter
Breath, can accelerate the automatic business processing speed of part intermediate link in electricity transaction.If for example, receiving, " user A " is sent out
The power purchase demand of " 150 kilowatt-hours+photovoltaic generation " that send, and " amount of money value that prestored in user A " login account is " 300
Member ", the electric quantity unit price by 1 kilowatt-hour of photovoltaic generation is 0.75 yuan, and the power purchase of " 150 kilowatt-hours+photovoltaic generation " is needed
It is " 112.5 yuan " to seek the corresponding target amount of money.Then deducted in the amount of money value that prestores of " 300 yuan " from login account
After " 112.5 yuan ", just according to transmission of electricity contract matched from generating equipment storehouse can for " user A " provide " 150 kilowatt-hours+
The generating equipment " Y " of photovoltaic generation ", and generate the matching of " generating equipment Y-direction user A provides 150 kilowatt-hours of photovoltaic generations "
Information, it is seen then that using transmission of electricity contract as matched rule, can accelerate the speed of matching process, and then improve whole electricity transaction
Treatment effeciency.
S106:The match information is sent to the generating equipment by the electric power transaction platform based on block chain;
Specifically, the match information of generation is sent into the generating equipment that Corresponding matching comes out, the generating equipment can be made
Electric energy is provided the user in time, so that the link that electricity is supplemented with money need to be completed by go-between by saving user's purchase electricity,
Connect the manpower and time cost for reducing electricity transaction.
A kind of electricity transaction method disclosed in the embodiment of the present invention, applied to the electric power transaction platform based on block chain,
By being prestored in the login account that the electric power transaction platform based on block chain judges user, amount of money value is more than or equal to reception
During the amount of money value paid needed for the power purchase demand arrived, the corresponding amount of money value i.e. target amount of money is deducted from the login account of user
Value, is used as the premise that corresponding electricity is subsequently provided for the user, afterwards according to transmission of electricity contract, the Auto-matching from generating equipment storehouse
Go out the generating equipment of correspondence power purchase demand, and generate match information, to be sent by the match information to generating equipment, by
Generating equipment is powered to correspondence user in time, so that user obtains electricity, it is seen then that receiving the power purchase demand of user
Afterwards, target amount of money value needed for whether can paying power purchase demand to the amount of money value that prestored in the login account of user automatically is sentenced
It is disconnected, and the deduction operation of amount of money value is completed, both avoided because user to specified sale of electricity place is carried out spent by electricity transaction payment
Manpower and time, staff is saved again and carries out the workload that electricity is supplemented with money, and then is reducing electricity transaction intermediate link
On the basis of, electricity transaction processing procedure is accelerated, afterwards, contract is matched using transmitting electricity, matching letter can be quickly generated
Breath, further increases the treatment effeciency of electricity transaction.
Deducted in the login account from user after target amount of money value, it is how quick " according to transmission of electricity contract, from generating equipment
The generating equipment of correspondence power purchase demand is matched in storehouse, and generates match information " for match information is sent into corresponding hair
It is a vital step that electric equipment, which carries out power supply in time,.Therefore, quick, accurate foundation transmission of electricity contract, from generating equipment storehouse
The generating equipment of correspondence power purchase demand is matched, and it is an emphasis of interest of the embodiment of the present invention to generate match information.
Therefore for the S105 in embodiment corresponding to above-mentioned Fig. 1, the embodiment of the invention discloses a kind of life of match information
Into method, accompanying drawing 2 is referred to, methods described specifically includes following steps:
S201:Electric energy type and the power purchase type identical generating equipment are matched from generating equipment storehouse, is used as
One selection generating equipment;
Specifically, this programme is mainly used in new energy, such as photovoltaic generation, wind-power electricity generation.It is electricity by variety of energy sources
Type is measured as a matched rule in transmission of electricity contract, is tentatively matched from generating equipment storehouse belonging to the electric energy that can be provided
The type one or more generating equipments consistent with the power purchase type in the power purchase demand received generate electricity as first choice and set
It is standby.
If for example, including " generating equipment A ", " generating equipment B ", " generating equipment C ", " generating in generating equipment storehouse
Equipment D ", " generating equipment E ", " generating equipment F ", " generating equipment G ".Wherein, " generating equipment A ", " generating equipment B ", " generating
The electric energy type that equipment C " is provided is " photovoltaic generation ", and " the electric energy type that generating equipment D " is provided is " wind-powered electricity generation ", " is generated electricity
The electric energy type that equipment E " is provided is " water power ", and " the electric energy type that generating equipment F " is provided is " thermoelectricity ".If receiving
Power purchase type in power purchase demand is " photovoltaic generation ", then " generating equipment A ", " generating can be matched from generating equipment storehouse
Equipment B " and " generating equipment C " proceeds follow-up matching operation as first choice generating equipment.
If electric energy type and the power purchase type identical generating equipment can not be matched from generating equipment storehouse, is used as
One selection generating equipment when, then show this electricity transaction fail, can generate and show " power purchase failure information " give user, with
Just user is known in time.
S202:First choosing of the generated energy more than or equal to the purchase of electricity is matched from the first choice generating equipment
Generating equipment is selected, the second selection generating equipment is used as;
Still so that " generating equipment A ", " generating equipment B ", " generating equipment C " is as being had exemplified by first choice generating equipment
Body is illustrated, if " generated energy that generating equipment A " can be provided is " 1200 kilowatt-hours ", " hair that generating equipment B " can be provided
Electricity is " 1000 kilowatt-hours ", and " generated energy that generating equipment C " can be provided is " 450 kilowatt-hours ", and in power purchase demand
Purchase of electricity be " 700 kilowatt-hours ", then selection " generating equipment A " and " generating equipment B " as second selection generating equipment, after
It is continuous to carry out follow-up matching operation.
Generated energy involved by the embodiment of the present invention can be the electricity that generating equipment is produced in section of a certain stipulated time
Numerical quantity.
S203:When the number of the described second selection generating equipment is more than 1, matched from the described second selection generating equipment
Go out the minimum generating equipment of target range value as the generating equipment of the correspondence power purchase demand, the target range value is described
The distance between generating equipment and the electrical equipment of the user value;
For example, still using " generating equipment A " and " generating equipment B " is specific as carrying out exemplified by the second selection generating equipment
Illustrate, if " generating equipment A " apart from user " electrical equipment X " distance value be 1000 meters, " generating equipment B " is apart from user's
" electrical equipment X " distance value is 3000 meters, then " generating equipment A " is set as the generating for finally providing electricity for the user for selection
It is standby.
Computational methods this programme of target range value is not limited, and can calculate space length between the two, also may be used
To be to calculate air line distance between the two.
The electrical equipment of user can refer to measure the instrument that user consumes electricity, such as intelligent electric meter.
S204:Associating between the generating equipment and the electrical equipment of the user of the generation correspondence power purchase demand
System, is used as the match information;
Specifically, having the generating equipment and the use of user for matching the corresponding power purchase demand come in the match information of generation
Incidence relation between electric equipment, so as to after the generating equipment that subsequently match information is sent in the match information,
The generating equipment quickly determines its targeted customer to be powered according to the match information received, so as to complete in time
Power supply.
A kind of generation method of match information disclosed in the embodiment of the present invention, by successively by electric energy type, generated energy,
Target range value minimum can quickly select the generating most matched with power purchase demand as matched rule from generating equipment storehouse
Equipment, improves the processing speed of a certain intermediate link during electricity transaction indirectly, afterwards, by the generating equipment matched with
Incidence relation between the electrical equipment of user is conducive to subsequently sending it to after generating equipment, the hair as match information
Electric equipment is powered rapidly.
Optionally, on the basis of embodiment corresponding to above-mentioned Fig. 2, the embodiment of the invention discloses another match information
Generation method, refer to accompanying drawing 3, methods described specifically includes following steps:
S301:Electric energy type and the power purchase type identical generating equipment are matched from generating equipment storehouse, is used as
One selection generating equipment.
S302:First choosing of the generated energy more than or equal to the purchase of electricity is matched from the first choice generating equipment
Generating equipment is selected, the second selection generating equipment is used as.
S303:When the number of the described second selection generating equipment is equal to 1, described second generating equipment will be selected as right
Answer the generating equipment of the power purchase demand;
Specifically, after the generated energy matching operation completed, the second selection generating equipment obtained may only have one
It is individual, now, directly the second selection generating equipment is participated in follow-up as finally generating equipment corresponding with power purchase demand
During generating match information.
If in addition, after the generated energy matching operation completed, in the absence of the second selection generating equipment, then one can be generated
Individual " it fails to match information " gives user, so that user is known in time.
S304:Associating between the generating equipment and the electrical equipment of the user of the generation correspondence power purchase demand
System, is used as the match information.
The generation method of a kind of match information disclosed in the embodiment of the present invention, by successively by electric energy type, generated energy
As matched rule, suitable second selection generating equipment can be quickly selected from generating equipment storehouse, and in the second selection
When generating equipment number is 1, the generating most matched with power purchase demand for directly alternatively going out the second selection generating equipment
Equipment, and then on the basis of reduction elapsed time value, follow-up electricity transaction link can be performed rapidly.
Optionally, after the S105 in embodiment corresponding to above-mentioned Fig. 1, in addition to:
The power purchase demand and the match information are verified, packed, known together, data block is generated, and be stored in area
Block chain.
Specifically, power purchase demand and match information are stored in into block chain, the user after electricity transaction has been convenient for again
The electricity transaction relevant information completed before it is checked, and by power purchase demand and match information be stored in block chain it
Before, the data in power purchase demand and match information are verified successively, packed, known together, so that data block is generated, to deposit
Enter and stored for a long time in block chain, be conducive to improving the trackability of custom power transaction related information.Wherein, power purchase is needed
The verification operation that data in summation match information are carried out can be to the integrality of data in power purchase demand and match information, can
Verified in terms of letter property;The packaging operation carried out to the data in power purchase demand and match information can be by power purchase demand
Integrated with the data in match information, so that it is guaranteed that by produced by the electricity transaction of magnanimity transaction related information in order,
Regularly in deposit data block;The common recognition operation carried out to the data in power purchase demand and match information can be to that will deposit
Enter the unified certification that the data block in block chain is carried out, so as to accelerate the storage speed of data block.
In the embodiment of the present invention, by being verified, being packed by power purchase demand and match information, known together, data field is generated
Block, and block chain is stored in, be conducive to improving the trackability and safe storage of the electricity transaction relevant information of user, be easy to use
Family is checked by block chain to the relevant information of deposit at any time.
, should the embodiment of the invention discloses another electricity transaction method on the basis of embodiment corresponding to above-mentioned Fig. 1
For the electric power transaction platform based on block chain, accompanying drawing 4 is referred to, methods described specifically includes following steps:
S401:Electric power transaction platform based on block chain receives described when the login account of user is in logging status
The power purchase demand of user, the power purchase demand includes purchase of electricity and power purchase type.
S402:The electric power transaction platform based on the block chain amount of money value that judges to prestore in the login account of the user is
It is no to be more than or equal to target amount of money value, the amount of money value that the target amount of money value is paid for needed for the power purchase demand, if so, then holding
Row S403, if it is not, then performing S404.
S403:The electric power transaction platform based on block chain deducts the target gold from the login account of the user
Volume value, and perform S405.
S404:The electric power transaction platform based on block chain is generated and the information that shows that Sorry, your ticket has not enough value.
S405:The electric power transaction platform based on block chain is according to settle accounts calculation contract of keeping accounts is paid, by target gold
Volume value carries out fund point account, the generation point account amount of money and point account information, and the number of the described point of account amount of money is at least one, and performs
S406;
Specifically, it can be the contract related to electricity transaction payment link pre-set to pay book keeping operation settle accounts calculation contract
Clause, for when entry condition is triggered, fund point account, the generation point account amount of money and point account letter to be carried out as by target amount of money value
The execution foundation of the step for breath, so that the fund point account during being rapidly completed electricity transaction.Pay book keeping operation clearance contract
Entry condition is triggered, and can reach power purchase contract, is triggered when deducting target amount of money value or in user's consumption
After complete institute's purchase of electricity, receive intelligent electric meter reading and be triggered, the method for specific triggering entry condition can be according to the actual requirements
Set, be not limited thereto.Wherein, paying book keeping operation settle accounts calculation contract can be stored in block chain, and then be prevented effectively from from outer
The malice on boundary such as distorts, obtained at the behavior.
Completed due to may require that multiple electricity transactions participation user collaborative work during an electricity transaction, because
This, can be related to fund point account, that is to say, that according to this electricity transaction in the payment link during carrying out electricity transaction
During electricity transaction participate in the quantity and each electricity transaction of user and participate in whole shared by the transaction task that user completes
The weight of electricity transaction, the target amount of money value deducted from the login account of user progress interests is divided into, so as to realize distribution.
If having respectively for example, electricity transaction involved during the electricity transaction currently carried out participates in user
" generating equipment ", " power network " and " electric power transaction platform based on block chain ", wherein, " generating equipment " is used to provide the user electricity
Can, its shared weight in this electricity transaction is " 85% ", " generating equipment " access " power network ", and by the electric energy biography of generation
Defeated to arrive power network, " power network " is used to the electric energy that " generating equipment " is produced being transferred at the electrical equipment of user, and it is in this electric power
Shared weight is " 10% " in transaction, and " electric power transaction platform based on block chain " is used to provide the user carry out electricity transaction
Place, its shared weight in this electricity transaction is " 5% ", and target amount of money value is " 200 yuan ", therefore, will " 200
The target amount of money value of member " carries out fund point account, can generate " 170 yuan ", " 20 yuan ", " 10 yuan " this 3 points of account amount of money.
Point account information can show that the fund after fund point account is divided into information, such as by " 200 yuan of target amount of money value is divided into
170 yuan, 20 yuan and 10 yuan three points of account amount of money " are used as a point of account information.
S406:The electric power transaction platform based on block chain sends each the Suo Shu points of account amount of money to corresponding point of account
Recipient, and payment information is generated, described point of account recipient pays the electricity transaction included in book keeping operation settle accounts calculation contract to be described
User is participated in, and performs S407;
Still it is specifically addressed exemplified by generating " 170 yuan ", " 20 yuan ", " 10 yuan " this 3 points of account amount of money, by a point account amount of money
" 170 " are sent to " generating equipment ", and point account amount of money " 20 " is sent into " micro-capacitance sensor ", and point account amount of money " 10 " is left for and " is based on area
The electric power transaction platform of block chain ", meanwhile, the payment information of " point account amount of money " 170 " is sent to " generating equipment " " is generated, " point account
The amount of money " 20 " is sent to " power network " " payment information, and " point account amount of money " 10 " leave for " electricity transaction based on block chain put down
The payment information of platform " ", realize automatically by the target amount of money value reasonable distribution deducted from User logs in account to participate in this
Each electricity transaction during electricity transaction participates in user, it is to avoid people caused by being divided into because of artificial operation completion interests
The problem of power resources costs and time cost expend excessive, improves electricity transaction treatment effeciency indirectly.
S407:The electric power transaction platform based on block chain described will divide account information and payment information to be used as clearing to believe
Breath, is verified, is packed, is known together, and generates data block, and is stored in block chain, and performs S408;
Specifically, will divide account information and payment information as settlement information is stored in block chain, electricity transaction has been convenient for
The full detail that user afterwards pays link to being related in the electricity transaction relevant information that is completed before it again checks,
And before account information and payment information will be divided to be stored in block chain as settlement information, settlement information is verified, packed, altogether
Know, to generate data block, be conducive to improving the trackability and safe storage of custom power transaction related information.
S408:The electric power transaction platform based on block chain is matched pair according to transmission of electricity contract from generating equipment storehouse
Answer the generating equipment of the power purchase demand, and generate match information, electrical equipment of the match information comprising the user and
Incidence relation between the generating equipment, and perform S409.
S409:The match information is sent to the generating equipment by the electric power transaction platform based on block chain, and
Perform S4010.
S4010:The electric power transaction platform based on block chain is receiving the clearing letter that target participation user sends
When ceasing inquiry request, the settlement information of the correspondence settlement information inquiry request, the target are matched from the block chain
It is any one user in electricity transaction participation user to participate in user, and performs S4011;
Participated in specifically, settlement information inquiry request can be target participation user according to it during electricity transaction
The transaction task particular content of completion and generate, as generating equipment participate in complete transaction task particular content be " for use
Family provides electric energy ", then the settlement information inquiry request sent by generating equipment can for " user of inquire-receive electric energy ",
" inquiry provides the user the size of electric energy " etc..
Target participate in user can be participate in electricity transaction link in any participant, such as generating equipment, power purchase equipment,
Energy storage device, power network, the electric power transaction platform based on block chain, banking computer etc..
Matching process this programme of settlement information is not limited, and can be according to the target for sending settlement information inquiry request
Participate in representing No. ID of user identity in User logs in account and the target is matched from block chain participate in being completed before user
Electricity transaction in settlement information.
The combination that the settlement information come can be any one or two kinds that be divided tos in account information and payment information is matched to believe
Breath.
S4011:The settlement information is sent to the target and participates in using by the electric power transaction platform based on block chain
Family.
A kind of electricity transaction method disclosed in the embodiment of the present invention, applied to the electric power transaction platform based on block chain,
Deducted in the login account from user after target amount of money value, remembered according to paying by the electric power transaction platform based on block chain
Account settle accounts calculation contract, fund point account is carried out by the target amount of money value obtained by deduction, and sends point account amount of money of generation to corresponding
Divide account recipient, so as to be automatically performed the distribution that user is participated in the electricity transaction of each in electricity transaction, accelerate electric power
Link relevant treatment speed is paid in process of exchange, the overall treatment efficiency of electricity transaction is improved indirectly, afterwards, will include and divide
Data are verified, packed, known together by the settlement information of account information and payment information, to generate data block, and are stored in block
Chain, effectively increases the trackability and safe storage of custom power Transaction Information.
The embodiment of the invention discloses a kind of electricity transaction device, accompanying drawing 5 is referred to, described device includes:
Receiving module 501, for when the login account of user is in logging status, receiving the power purchase of the user to need
Ask, the power purchase demand includes purchase of electricity and power purchase type;
Whether the amount of money value that prestored in judge module 502, the login account for judging the user is more than or equal to target
Amount of money value, the amount of money value that the target amount of money value is paid for needed for the power purchase demand;
Update module 503, if the amount of money value that prestored in login account for the user is more than or equal to target gold
Volume value, deducts the target amount of money value from the login account of the user;
First matching module 504, for according to transmission of electricity contract, the correspondence power purchase demand to be matched from generating equipment storehouse
Generating equipment, and generate match information, electrical equipment of the match information comprising the user and the generating equipment it
Between incidence relation;
First sending module 505, for the match information to be sent into the generating equipment.
A kind of electricity transaction device disclosed in the embodiment of the present invention, the login of user is judged by judge module 502
When the amount of money value that prestored in account is more than or equal to the amount of money value paid needed for the power purchase demand that receives, update module 503 from
Corresponding amount of money value i.e. target amount of money value is deducted in the login account at family, as subsequently being provided for the user before corresponding electricity
Carry, the first matching module 504 is according to transmission of electricity contract afterwards, and Auto-matching goes out the generating of correspondence power purchase demand from generating equipment storehouse
Equipment, and match information is generated, to send the match information to generating equipment in the first sending module 505, by generating electricity
Equipment is powered to correspondence user in time, so that user obtains electricity, it is seen then that after the power purchase demand of user is received,
It is automatic whether power purchase demand can be paid to the amount of money value that prestored in the login account of user needed for target amount of money value judge, and
Complete amount of money value and deduct operation, both avoided because user arrive specify sale of electricity place carry out manpower spent by electricity transaction payment with
Time, staff is saved again and carries out the workload that electricity is supplemented with money, and then on the basis for reducing electricity transaction intermediate link
On, electricity transaction processing procedure is accelerated, afterwards, contract is matched using transmitting electricity, and can be quickly generated match information, be entered one
Step improves the treatment effeciency of electricity transaction.
The course of work of modules provided in an embodiment of the present invention, refer to the method flow diagram corresponding to accompanying drawing 1, tool
Body running process is repeated no more.
, please the embodiment of the invention discloses another electricity transaction device on the basis of embodiment corresponding to above-mentioned Fig. 5
Referring to accompanying drawing 6, described device includes:
Receiving module 501, judge module 502, update module 503, the first matching module 504, the first sending module 505,
Fund point account module 506, the second sending module 507, payment information generation module 508, data block generation 509, preserving module
5010, the second matching module 5011, the 3rd sending module 5012;
Wherein, the fund point account module 506, in the update module 503 from the login account of the user
Deduct after the target amount of money value, according to settle accounts calculation contract of keeping accounts is paid, the target amount of money value is subjected to fund point account, it is raw
The composition account amount of money and point account information, the number of the described point of account amount of money are at least one;
Second sending module 507, for each the Suo Shu points of account amount of money to be sent to corresponding point of account recipient, institute
State point account recipient and participate in user for the electricity transaction included in book keeping operation settle accounts calculation contract that pays;
The payment information generation module 508, in second sending module 507 the account amount of money will to be divided each Suo Shu
Send to corresponding point of account recipient, generate payment information;
The data block generation module 509, for that account information and payment information described will be divided to be used as settlement information, is carried out
Checking, packing, common recognition, generate data block;
The preserving module 5010, will be described after the data block generation module 509 generates the data block
Data block is stored in block chain;
Second matching module 5011, for the match information to be sent into the hair in first sending module 505
Electric equipment, and when receiving target and participating in the settlement information inquiry request that user sends, matched from the block chain pair
The settlement information of the settlement information inquiry request is answered, it is that the electricity transaction participates in appointing in user that the target, which participates in user,
Anticipate a user;
3rd sending module 5012, user is participated in for the settlement information to be sent into the target.
A kind of electricity transaction device disclosed in the embodiment of the present invention, by deducting target in the login account from user
After amount of money value, fund point account module 506 is provided the target amount of money value obtained by deduction according to settle accounts calculation contract of keeping accounts is paid
Gold point account, and point account amount of money of generation is sent to corresponding point of account recipient by the second sending module 507, so as to be automatically performed
The distribution of user is participated in each electricity transaction in electricity transaction, payment link relevant treatment during electricity transaction is accelerated
Speed, improves the overall treatment efficiency of electricity transaction indirectly, afterwards, and preserving module 5010 is by data block generation module 509
The data block that generates is stored in block chain after checking, packing, common recognition, and can improve custom power transaction related information can
Retrospective and safe storage, while being easy to user to be checked at any time by block chain to the relevant information of deposit.
The course of work of modules provided in an embodiment of the present invention, refer to the method flow diagram corresponding to accompanying drawing 4, tool
Body running process is repeated no more.
Accompanying drawing 7 is referred to, the first matching module 504 in embodiment corresponding to above-mentioned Fig. 5 is specifically included:
3rd matching module 5041, for matching electric energy type and the power purchase type identical from generating equipment storehouse
Generating equipment, is used as first choice generating equipment;
4th matching module 5042, for matching generated energy from the first choice generating equipment more than or equal to institute
The first choice generating equipment of purchase of electricity is stated, the second selection generating equipment is used as;
5th matching module 5043, in the 4th matching module 5042 from the first choice generating equipment
The first choice generating equipment that generated energy is more than or equal to the purchase of electricity is allotted, generating equipment is selected as second, and it is described
When the number of second selection generating equipment is more than 1, target range value minimum is matched from the described second selection generating equipment
Generating equipment is as the generating equipment of the correspondence power purchase demand, and the target range value is the generating equipment and the user
The distance between electrical equipment value;
6th matching module 5044, in the 4th matching module 5042 from the first choice generating equipment
The first choice generating equipment that generated energy is more than or equal to the purchase of electricity is allotted, as the second selection generating equipment, and works as institute
When the number for stating the second selection generating equipment is equal to 1, the described second selection generating equipment is regard as the correspondence power purchase demand
Generating equipment;
Match information generation module 5045, generating equipment and the use of the user for generating the correspondence power purchase demand
Incidence relation between electric equipment, is used as the match information.
In the embodiment of the present invention, by successively using electric energy type, generated energy, target range value minimum as matched rule,
The 3rd matching module 5041, the 4th matching module 5042 and the 5th matching module 5043 can be utilized, quickly from generating equipment storehouse
In select the generating equipment most matched with power purchase demand, the processing of a certain intermediate link during electricity transaction is improved indirectly
Speed, afterwards, match information generation module 5045 is by associating between the generating equipment matched and the electrical equipment of user
System is conducive to subsequently sending it to after generating equipment, the generating equipment is powered rapidly as match information.
The course of work of modules provided in an embodiment of the present invention, refer to accompanying drawing 2 and the method stream corresponding to accompanying drawing 3
Cheng Tu, specific work process is repeated no more.
The embodiment of the invention discloses a kind of micro-grid system, accompanying drawing 8 is referred to, including:
Electric power transaction platform 601 and generating equipment 602 based on block chain;
The electric power transaction platform 601 based on block chain, for when the login account of user is in logging status, connecing
The power purchase demand of the user is received, the power purchase demand includes purchase of electricity and power purchase type;Judge the login account of the user
In prestore amount of money value whether be more than or equal to target amount of money value, the gold that the target amount of money value is paid for needed for the power purchase demand
Volume value;If the amount of money value that prestored in the login account of the user is more than or equal to the target amount of money value, from stepping on for the user
The target amount of money value is deducted in record account;According to transmission of electricity contract, the correspondence power purchase demand is matched from generating equipment storehouse
Generating equipment, and generate match information, electrical equipment of the match information comprising the user and the generating equipment it
Between incidence relation;The match information is sent to the generating equipment 602;
The generating equipment 602, for receiving the match information.
A kind of micro-grid system disclosed in the embodiment of the present invention, is existed by the electric power transaction platform 601 based on block chain
When the amount of money value that prestored in the login account for judging user is more than or equal to the amount of money value paid needed for the power purchase demand received,
Corresponding amount of money value i.e. target amount of money value is deducted from the login account of user, as subsequently providing corresponding electricity for the user
Premise, afterwards according to transmission of electricity contract, Auto-matching goes out the generating equipment of correspondence power purchase demand, and generation from generating equipment storehouse
With information, to be sent by the match information to generating equipment 602, believed by generating equipment 602 according to the matching received
Breath is powered to correspondence user in time, so that user obtains electricity, it is seen then that the electric power transaction platform 601 based on block chain
After the power purchase demand of user is received, whether power purchase demand can be paid to the amount of money value that prestored in the login account of user automatically
Required target amount of money value is judged, and completes the deduction operation of amount of money value, has both been avoided because user is carried out to specified sale of electricity place
The spent manpower of electricity transaction payment and time, staff is saved again and carries out the workload that electricity is supplemented with money, and then in contracting
Subtract on the basis of electricity transaction intermediate link, accelerated electricity transaction processing procedure, afterwards, utilized contract progress of transmitting electricity
Match somebody with somebody, match information can be quickly generated, further increase the treatment effeciency of electricity transaction.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or using the present invention.
A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention
The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one
The most wide scope caused.