CN109872251A - A kind of building method of distributed energy transaction communications platform based on block chain technology, communication means and communications platform - Google Patents
A kind of building method of distributed energy transaction communications platform based on block chain technology, communication means and communications platform Download PDFInfo
- Publication number
- CN109872251A CN109872251A CN201910125937.4A CN201910125937A CN109872251A CN 109872251 A CN109872251 A CN 109872251A CN 201910125937 A CN201910125937 A CN 201910125937A CN 109872251 A CN109872251 A CN 109872251A
- Authority
- CN
- China
- Prior art keywords
- information
- rear end
- block chain
- intelligent
- python
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E40/00—Technologies for an efficient electrical power generation, transmission or distribution
- Y02E40/70—Smart grids as climate change mitigation technology in the energy generation sector
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y04—INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
- Y04S—SYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
- Y04S10/00—Systems supporting electrical power generation, transmission or distribution
- Y04S10/50—Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications
Abstract
The present invention relates to the building methods of a kind of distributed energy transaction communications platform based on block chain technology, communication means and communications platform.Communications platform includes three layers: hardware layer, application layer and block link layer, hardware layer includes hair/electrical equipment of user, intelligent electric meter and intelligent terminal, block link layer includes intelligent contract, intelligent contract is the trading rules of digital form, application layer is by web front-end, the Distributed Application that the rear end js and the rear end Python are constituted, for realizing hardware layer, application layer and block link layer are in communication with each other, web front-end be used for receive user input declare information and Transaction Information, the rear end js far call intelligence contract, information and Transaction Information are declared in input, the rear end Python far call intelligence contract, input information about power.Technical solution of the present invention realizes the communications of prosumer's information in distributed energy trade market, achievees the effect that multi-information fusion communicates, shortens the communication response time, realizes the efficient distribution of the energy, rationally utilizes.
Description
Technical field
It is especially a kind of based on block chain technology the present invention relates to distributed energy transaction communications platform and communication means
The building method of distributed energy transaction communications platform, communication means and communications platform.
Background technique
With the rise of energy internet and the lasting construction of smart grid, distribution scale constantly expands, distribution network systems
Function is increasing.Traditional distribution network systems are merely responsible for the distribution of electric energy, and future is stepped up electricity collection, transmission, storage etc.
Function is realized and directly carries out two-way interactive with user.Under such technical background, along with distributed energy, electric car
Deng access power grid, a large amount of consumers in power grid translate into prosumer, promote the free bilateral transaction to form electric power.Due to area
The decentralization of block chain technology, the transparency, fairness are consistent with the thought of energy internet, and academia trades in the energy and leads
The application of block chain technology is conducted extensive research in domain.
Block chain network is the P2P network an of decentralization, and central server is not present.Each of network node
It is assembled with unified block chain client and DApp server-side, i.e., is used as client and server-side simultaneously.Compared to more traditional
For adapted telecommunication network, block chain network has the advantage that 1) Distributed Storage: block chain is using distribution
The technology of formula storage, therefore the database of centralization is not present;2) information transparency: any user can be by having inquiry
Data in the querying node block chain of function;3) high degree of autonomy: block chain with consensus specification and agreement, it is automatic,
Safely exchange data;4) data can not distort: data in each block i.e. quilt after hash algorithm calculates and generates cryptographic Hash
Otherwise secure storage is invalid to the modification of block chain data except the system that non-concurrent control is more than 51% calculates power.
In the application of energy transaction, block chain needs to obtain data by internet, but according to document [Narayan
Prusty. block chain project development guide [M], China Machine Press, 2018] it is described, due to by block chain technology and common recognition
The limitation of algorithm, the data exception that block chain obtains external network are complicated.Existing research is most of to use third party database
Oraclize service come make block chain obtain the data from internet, but realize process have certain difficulty, it is necessary
It arranges in pairs or groups and uses with ether mill intelligence contract, higher requirement is encoded with to intelligent contract, increases the development difficulty of developer.
And it needs data delivering third party database using Oraclize service, there is the hidden danger for causing information leakage.About block
The specific method of chain and internet data communication, lacks correlative study, in addition to this above method, does not find the phase published
Close documents and materials.
Since in the application scenarios that distributed energy is traded, block chain needs to obtain a large amount of prosumer's information, above-mentioned
Communication means is needed by the third party database on internet, has unstability at the reliable aspect of transmission massive information,
Therefore need to seek a kind of effective method to realize multi-information fusion communication means.
Summary of the invention
For the above demand, the present invention provides a kind of distributed energy transaction communications platform based on block chain technology,
The building method of communication means and the communications platform realizes the communication of prosumer's information in distributed energy trade market
Transmission achievees the effect that multi-information fusion communicates, and the construction for distributed energy trade market communication network provides information support.
The technical solution of the present invention is as follows:
A kind of distributed energy transaction communications platform based on block chain technology, the layer to interoperate including three: hardware layer,
Application layer and block link layer, the hardware layer include hair/electrical equipment, intelligent electric meter and the intelligent terminal of user, the intelligence
Ammeter is mounted in hair/electrical equipment, and is connected with intelligent terminal, for measuring and transmitting information about power, the intelligent terminal
It is the physical support of application layer and block link layer;The block link layer includes intelligent contract, and the intelligence contract is digital form
Trading rules, reception, operation, storage and the feedback function of Transaction Information are carried, for realizing energy distributed transaction;It is described
Application layer is the Distributed Application being made of web front-end, the rear end js and the rear end Python, for realizing hardware layer, application layer and
Block link layer is in communication with each other, and the web front-end shows the interactive interface of user and transaction system by intelligent terminal, for connecing
That receives user's input declares information and Transaction Information, and information and Transaction Information are declared from web front-end reading in the rear end js, and remote
Journey calls intelligent contract, input to declare information and Transaction Information, and information about power is read from intelligent electric meter in the rear end Python, and
Far call intelligence contract, input information about power.
In block link layer, it is based on the public block chain development platform in ether mill, using the primary data storage in ether mill, network
Communication means and common recognition algorithm, use ether mill client geth as block chain user node, use Solidity programming language
Speech writes intelligent contract.
Web front-end is developed using html programming language, the rear end js is developed using JavaScript programming language, uses
Python programming language develops the rear end Python, and the rear end js is logical by the jQuery frame and web front-end of JavaScript
Letter.
The rear end js and the rear end Python use far call agreement JSON-RPC to call intelligent contract.
Hair/electrical equipment of the user does not limit user as monistic producers or consumers, allows user free
Convert the identity of prosumer.
The intelligent electric meter is that DTZY208 type three-phase and four-line takes control intelligent electric meter, has 1 infrared communication interface, 1
RS485 communication interface and 1 carrier communication interface, the intelligent electric meter turn the converter of USB interface by RS485, with intelligence
Terminal connection, intelligent electric meter follow DL/T645-2007 communication protocol.
A kind of building method of the distributed energy transaction communications platform based on block chain technology, comprising the following steps:
S1: building hardware layer, and intelligent electric meter is mounted in hair/electrical equipment of user, and has been connect with intelligent terminal
Come;
S2: building block link layer, installs and runs ether mill client geth, the privately owned chain in ether mill is built, according to specific
Market trading facility write intelligent contract, intelligent contract is deployed in ether mill network using ether mill client geth;
S3: building application layer, and intelligent contract original code is compiled as web3 interface code, is programmed into the rear end js and Python
Rear end, develops web front-end using html programming language, develops the rear end js using JavaScript programming language, uses Python
Programming language develops the rear end Python.
A kind of distributed energy transaction communications method based on block chain technology, comprising the following steps:
S1: user is inputted in intelligent terminal by the graphical interaction interface of web front-end and declares information and Transaction Information, after js
Information and Transaction Information are declared from web front-end acquisition by jQuery frame in end, and the rear end js passes through JSON-RPC and ether mill visitor
Intelligent contract is called in geth interaction in family end, will declare in information and Transaction Information deposit block chain;
S2: the information about power that intelligent electric meter is read in the rear end Python on intelligent terminal is operated in, the rear end Python passes through
JSON-RPC is interacted with ether mill client geth, calls intelligent contract, information about power is stored in block chain;
S3: by Web broadcast to each of block chain node, node in block chain will receive intelligent contract
Information preservation in memory, waits the common recognition time of a new round, triggers common recognition and processing to contract;
S4: when reaching the time of knowing together, intelligent contract is declared information according to user and is brought together transaction, for making for the first time
With the new user of the platform, it is for reference that system provides the user with current electric grid electricity price;Repeatedly after transaction, intelligent contract be will record
And the case history conclusion of the business electricity price range for regularly updating all users provides a user accurate Shen according to marketing situation
Report suggests that user can rationally be declared according to this information;
S5: all contracts handled in nearest a period of time are packaged into a contract set by node, are set with Merck more
Form saves within a block, forms chain structure between block sequentially in time.
The step S2 includes following sub-step:
The rear end S21:Python receives a string of 16 system messages of intelligent electric meter transmission;
Field related with electricity in message is extracted in the rear end S22:Python, carries out 10 system transcodings, obtains being accurate to small
2 10 system electricity after several points, by this number multiplied by 10 times;
The rear end S23:Python selects corresponding ether mill account, calls intelligent contract, and information about power is stored in block chain
In.
Distributed energy transaction communications platform based on block chain technology of the invention, the distribution based on block chain technology
Energy trade market provides the multi-information fusion communication means for declaring information, Transaction Information and information about power of prosumer a kind of,
To realize the automatic data logging, automatic gauge, automatic charging process of electricity.
Furthermore it since communication means of the invention is not against the third party database on internet, is not necessarily to third number formulary
Inquiry request is sent according to library and waits return information to be subjected, shortens the communication response time.
Further, block chain can obtain true in the real-time hair/power demand and energy internet of user simultaneously
Hair/electricity consumption information comprehensively consider marketing situation according to the hair of information prediction different periods user/electricity consumption situation, be
Prosumer provides and accurately declares suggestion, formulates for prosumer and more reasonably declares strategy, realizes the efficient distribution of the energy, closes
Reason utilizes.
Finally, the present invention realizes that multi-network cooperative communicates using local Distributed Application, allow user in local and office
In the net of domain, using the multi-information fusion communication means according to the present invention suitable for distributed energy transaction, by user information
Pass through two different communication protocols respectively from hair/electrical equipment information about power and be passed to block chain simultaneously, to adapt to distributed energy
From the application scenarios by bilateral transaction, achievees the effect that multi-information fusion communicates, adapt to answering for distributed energy trade market
Polygamy and business demand diversity, the construction for distributed energy trade market communication network provide information support.
The present invention technically eliminates the influence that internet connection status communicates information, ensure that the complete of information communication
Whole property and real-time provide technical support in a few days energy real-time deal, have ensured the normal table of distributed energy transaction
Operation.
Detailed description of the invention
Fig. 1 is distributed energy transaction communications platform integrated stand composition of the invention;
Fig. 2 is distributed energy transaction communications platform three-tier architecture figure of the invention;
Fig. 3 is distributed energy transaction communications platform building method flow chart of the invention;
Fig. 4 is the deployment of intelligent contract and call flow chart of the invention;
Fig. 5 is distributed energy transaction communications method flow diagram of the invention;
Fig. 6 is the rear end Python operational flow diagram of the invention.
Specific embodiment
It is described further below with reference to technical effect of the attached drawing to design of the invention, specific structure and generation, with
It is fully understood from the purpose of the present invention, feature and effect.
With reference to Fig. 1 and Fig. 2, a kind of distributed energy transaction communications platform based on block chain technology of the invention, including
The layers of three interoperability: hardware layer, application layer and block link layer, hardware layer include hair/electrical equipment of user, intelligent electric meter and
Intelligent terminal, user, that is, electric power energy producers and consumers (hereinafter referred to as prosumer) herein, intelligent electric meter is mounted on
In hair/electrical equipment, and it is connected with intelligent terminal, for measuring and transmitting information about power to intelligent terminal, intelligent terminal is micro-
Type computer, is the physical support of application layer and block link layer, and application layer and block link layer operate on intelligent terminal.
Block link layer includes data storage, network communication, common recognition algorithm, intelligent contract, wherein data are stored for storing
Data in block chain, data information are saved within a block in the form of Merkel tree, form chain between block sequentially in time
Formula structure.Network communication is used to connect the user node in block chain, realizes the propagation of information.The common recognition machine that algorithm of knowing together provides
System can allow the node in network to generate accounting nodes by competition, reach distributed common recognition.Intelligent contract is the friendship of digital form
Easily rule, carries reception, operation, storage and the feedback function of Transaction Information, for realizing energy distributed transaction.
Application layer is the Distributed Application being made of web front-end, the rear end js and the rear end Python, for realizing hardware layer,
Application layer and block link layer are in communication with each other.The function of web front-end and the rear end js carrying customer transaction information transmission, web front-end
The interactive interface that user and transaction system are shown by intelligent terminal, declare information and transaction for receiving user's input are believed
Breath.Medium of the rear end js between web front-end and block chain is declared information and Transaction Information from web front-end reading, and is remotely adjusted
Information and Transaction Information are declared with intelligent contract, input.Medium of the rear end Python between intelligent electric meter and block chain, carrying
Information about power is read from intelligent electric meter in the function of user's information about power transmission, Python rear end of the operation on intelligent terminal, and
Far call intelligence contract, input information about power.
In hardware layer, hair/electrical equipment compatibility of user preferably, does not limit user as the monistic producer or consumption
Person allows user freely to convert the identity of prosumer.Intelligent electric meter is that DTZY208 type three-phase and four-line takes control intelligent electric meter, has 1
A infrared communication interface, 1 RS485 communication interface and 1 carrier communication interface, intelligent electric meter turn USB interface by RS485
Converter is connect with intelligent terminal, to transmit hair/electricity consumption information.RS485 interface has good noise immunity, compared with
The advantages that long transmission range.Intelligent electric meter follows DL/T645-2007 " multi -function watt -hour meter communication protocol " and its text of putting on record
Part, the communication protocol are the half-duplex operation mode of main-slave structure, and handheld unit or other data terminals are main website, multi-functional
Ammeter is slave station, and slave station sends information to main website by DL/T645-2007 agreement.Each multifunction electric meter has respectively
Location coding, foundation and the releasing of communication link are controlled by the information frame that main website issues.Every frame is by start-of-frame, tributary address
Domain, control code, data field length, data field, frame information longitudinal check code and frame end accord with 7 domain compositions, and every part is by several
Byte composition.
In block link layer, it is based on the public block chain development platform in ether mill, using the primary data storage in ether mill, network
Communication means and common recognition algorithm, create the privately owned chain in ether mill.Use ether mill client geth as block chain user node, ginseng
With the market behavior.Write the complete intelligent contract of figure spirit using Solidity programming language, specify market prosumer right and
Obligation realizes the intelligence of information transmission, so that information can not distort.Ether mill is current most popular public block chain
Platform, bottom are the P2P network platforms of a similar bit coin network.Intelligent contract operates in the ether mill P2P network platform,
It can receive from external communication request, by triggering code logic, further feedback information.
In application layer, web front-end is developed using html programming language, after developing js using JavaScript programming language
The rear end Python is developed using Python programming language in end, and the rear end js passes through the jQuery frame and web front-end of JavaScript
Intelligent contract is called using far call agreement JSON-RPC in communication, the rear end js, transmits Transaction Information, and the rear end Python uses remote
Journey invocation protocol JSON-RPC calls intelligent contract, transmits information about power, realizes the data of application layer and hardware layer, block link layer
Communication.Application layer carries main communication function, user using Distributed Application by Transaction Information, generate the/electricity of electrical equipment
Information incoming block chain simultaneously is measured, multi-network cooperative communication, configuration information physics converged communication system are reached.
Distributed energy transaction communications platform based on block chain technology of the invention, the distribution based on block chain technology
Energy trade market provides the multi-information fusion communication means for declaring information, Transaction Information and information about power of prosumer a kind of,
To realize the automatic data logging, automatic gauge, automatic charging process of electricity.Since communication means of the invention is not against internet
On third party database, inquiry request and wait return information to be subjected without sending to third party database, shorten communication
Response time.
With reference to Fig. 3 and Fig. 4, a kind of distributed energy transaction communications platform based on block chain technology of the invention is built
Method, comprising the following steps:
S1: building hardware layer, and three-phase and four-line expense control intelligent electric meter is mounted in hair/electrical equipment of user, and is passed through
RS485 turns the converter of USB interface, connects with intelligent terminal;
S2: building block link layer, installs and runs ether mill client geth, the privately owned chain in ether mill is built, according to specific
Market trading facility write intelligent contract, specify the rights and duties of market prosumer, use ether mill client geth will
Intelligent contract is deployed in ether mill network;
S3: building application layer, realizes being in communication with each other for hardware layer, application layer and block link layer:
S31: intelligent contract original code is compiled as web3 interface code, the rear end js and the rear end Python is programmed into, passes through
Ether mill client geth calls intelligent contract, realizes that intelligent contract and block chain are communicated with the information of external environment;
S32: according to specifically used environment, web front-end is developed using html programming language, uses JavaScript programming language
The speech exploitation rear end js;
S33: according to specifically used environment and used intelligent electric meter, after developing Python using Python programming language
End.
With reference to Fig. 5, a kind of distributed energy transaction communications method based on block chain technology of the invention, including following step
It is rapid:
S1: user is inputted in intelligent terminal by the graphical interaction interface of web front-end and declares information and Transaction Information, after js
Information and Transaction Information are declared from web front-end acquisition by jQuery frame in end, and the rear end js passes through JSON-RPC and ether mill visitor
Intelligent contract is called in geth interaction in family end, will declare in information and Transaction Information deposit block chain;
S2: the information about power that intelligent electric meter is read in the rear end Python on intelligent terminal is operated in, the rear end Python passes through
JSON-RPC is interacted with ether mill client geth, calls intelligent contract, and information about power is stored in block chain, specifically include with
Lower step (referring to Fig. 6):
S21: receive: the rear end Python receives a string of 16 system messages of intelligent electric meter transmission;
S22: transcoding: field related with electricity in message is extracted in the rear end Python, carries out 10 system transcodings, obtains accurate
2 10 system electricity after to decimal point, due to intelligent contract can only to integer carry out operation, by this number multiplied by
100;
S23: sending: Python and copy rear end the grammer call format of geth console intelligence contract, selection accordingly with
Too mill account calls intelligent contract, information about power is stored in block chain.
S3: by Web broadcast to each of block chain node, node in block chain will receive intelligent contract
Information preservation in memory, waits the common recognition time of a new round, triggers common recognition and processing to contract;
S4: when reaching the time of knowing together, intelligent contract is declared information according to user and is brought together transaction, for making for the first time
With the new user of the platform, it is for reference that system provides the user with current electric grid electricity price;Repeatedly after transaction, intelligent contract be will record
And the case history conclusion of the business electricity price range for regularly updating all users provides a user accurate Shen according to marketing situation
Report suggests that user can rationally be declared according to this information, and the final efficient distribution for realizing the energy rationally utilizes.
S5: all contracts handled in nearest a period of time are packaged into a contract set by node, are set with Merck more
Form saves within a block, forms chain structure between block sequentially in time.It is a kind of binary tree, all friendships that Merck is set more
Easy information is all recorded on the leaf node of binary tree.
The present invention realizes that multi-network cooperative communicates using local Distributed Application, allows user in local and local area network
In, using it is according to the present invention suitable for distributed energy transaction multi-information fusion communication means, by user information and hair/
Electrical equipment information about power passes through two different communication protocols while incoming block chain respectively, to adapt to distributed energy freedom
The application scenarios of bilateral transaction, achieve the effect that multi-information fusion communicate, adapt to distributed energy trade market complexity and
Business demand diversity, the construction for distributed energy trade market communication network provide information support.
Disclosed above is only the embodiment of the present invention, and still, the present invention is not limited to this, the technology of any this field
What personnel can think variation should all fall into protection scope of the present invention.
Claims (9)
1. a kind of distributed energy transaction communications platform based on block chain technology, which is characterized in that interoperate including three
Layer: hardware layer, application layer and block link layer, the hardware layer include that hair/electrical equipment, intelligent electric meter and the intelligence of user is whole
End, the intelligent electric meter is mounted in hair/electrical equipment, and is connected with intelligent terminal, for measuring and transmitting information about power, institute
State the physical support that intelligent terminal is application layer and block link layer;The block link layer includes intelligent contract, the intelligence contract
For the trading rules of digital form, reception, operation, storage and the feedback function of Transaction Information are carried, for realizing energy source distribution
Formula transaction;The application layer is the Distributed Application being made of web front-end, the rear end js and the rear end Python, for realizing hardware
Layer, application layer and block link layer are in communication with each other, interaction that the web front-end passes through intelligent terminal display user and transaction system
Information and Transaction Information are declared for receive user's input in interface, and information and friendship are declared from web front-end reading in the rear end js
Easy information, and far call intelligence contract, input declare information and Transaction Information, the rear end Python is read from intelligent electric meter
Information about power, and far call intelligence contract, input information about power.
2. the distributed energy transaction communications platform according to claim 1 based on block chain technology, which is characterized in that
Block link layer, be based on the public block chain development platform in ether mill, using ether mill it is primary data storage, network communication method and
Common recognition algorithm, uses ether mill client geth as block chain user node, writes intelligence using Solidity programming language
Contract.
3. the distributed energy transaction communications platform according to claim 1 based on block chain technology, which is characterized in that make
Web front-end is developed with html programming language, the rear end js is developed using JavaScript programming language, uses Python programming language
The rear end Python is developed, the rear end js is communicated by the jQuery frame of JavaScript with web front-end.
4. the distributed energy transaction communications platform according to claim 1 based on block chain technology, which is characterized in that institute
Stating the rear end js and the rear end Python uses far call agreement JSON-RPC to call intelligent contract.
5. the distributed energy transaction communications platform according to claim 1 based on block chain technology, which is characterized in that institute
Hair/the electrical equipment for stating user does not limit user as monistic producers or consumers, and user is allowed freely to convert prosumer
Identity.
6. the distributed energy transaction communications platform according to claim 1 based on block chain technology, which is characterized in that institute
Stating intelligent electric meter is that DTZY208 type three-phase and four-line takes control intelligent electric meter, and there is 1 infrared communication interface, 1 RS485 communication to connect
Mouth and 1 carrier communication interface, the intelligent electric meter are turned the converter of USB interface by RS485, connect with intelligent terminal, intelligence
Energy ammeter follows DL/T645-2007 communication protocol.
7. a kind of building method of the distributed energy transaction communications platform based on block chain technology, which is characterized in that including with
Lower step:
S1: building hardware layer, and intelligent electric meter is mounted in hair/electrical equipment of user, and connects with intelligent terminal;
S2: building block link layer, installs and runs ether mill client geth, the privately owned chain in ether mill is built, according to specific city
Field mechanism of exchange writes intelligent contract, and intelligent contract is deployed in ether mill network using ether mill client geth;
S3: building application layer, intelligent contract original code is compiled as web3 interface code, after being programmed into the rear end js and Python
End, develops web front-end using html programming language, develops the rear end js using JavaScript programming language, is compiled using Python
The rear end journey language development Python.
8. a kind of distributed energy transaction communications method based on block chain technology, which comprises the following steps:
S1: user declares information and Transaction Information in intelligent terminal input by the graphical interaction interface of web front-end, and the rear end js is logical
It crosses jQuery frame and declares information and Transaction Information from web front-end acquisition, the rear end js passes through JSON-RPC and ether mill client
Intelligent contract is called in geth interaction, will declare in information and Transaction Information deposit block chain;
S2: the information about power that intelligent electric meter is read in the rear end Python on intelligent terminal is operated in, the rear end Python passes through JSON-
RPC is interacted with ether mill client geth, calls intelligent contract, information about power is stored in block chain;
S3: intelligent contract by Web broadcast to each of block chain node, information that the node in block chain will receive
It saves in memory, waits the common recognition time of a new round, trigger common recognition and processing to contract;
S4: when reaching the time of knowing together, intelligent contract is declared information according to user and is brought together transaction, should for using for the first time
The new user of platform, it is for reference that system provides the user with current electric grid electricity price;Repeatedly after transaction, intelligent contract will record and determine
Phase updates the case history conclusion of the business electricity price range of all users, according to marketing situation, provides a user accurately to declare and build
View, user can rationally be declared according to this information;
S5: all contracts handled in nearest a period of time are packaged into a contract set by node, the form more set with Merck
It saves within a block, forms chain structure between block sequentially in time.
9. the distributed energy transaction communications method according to claim 8 based on block chain technology, which is characterized in that institute
Stating step S2 includes following sub-step:
The rear end S21:Python receives a string of 16 system messages of intelligent electric meter transmission;
Field related with electricity in message is extracted in the rear end S22:Python, carries out 10 system transcodings, obtains being accurate to decimal point
2 10 system electricity afterwards, by this number multiplied by 100;
The rear end S23:Python selects corresponding ether mill account, calls intelligent contract, information about power is stored in block chain.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910125937.4A CN109872251A (en) | 2019-02-20 | 2019-02-20 | A kind of building method of distributed energy transaction communications platform based on block chain technology, communication means and communications platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910125937.4A CN109872251A (en) | 2019-02-20 | 2019-02-20 | A kind of building method of distributed energy transaction communications platform based on block chain technology, communication means and communications platform |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109872251A true CN109872251A (en) | 2019-06-11 |
Family
ID=66918962
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910125937.4A Pending CN109872251A (en) | 2019-02-20 | 2019-02-20 | A kind of building method of distributed energy transaction communications platform based on block chain technology, communication means and communications platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109872251A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110545316A (en) * | 2019-08-19 | 2019-12-06 | 广州华旻信息科技有限公司 | Internet of things information interaction device based on block chain technology |
CN110599304A (en) * | 2019-09-12 | 2019-12-20 | 北京笔新互联网科技有限公司 | Distributed energy transaction system based on block chain and construction method |
CN110620819A (en) * | 2019-09-20 | 2019-12-27 | 中国银行股份有限公司 | Block chain interaction method and device, computer equipment and readable storage medium |
CN111429276A (en) * | 2020-03-17 | 2020-07-17 | 西安交通大学 | Multi-energy distributed transaction and intelligent contract design method based on Etheng private chain |
CN111464643A (en) * | 2020-04-01 | 2020-07-28 | 西安交通大学 | Multi-energy trading and management platform based on block chain |
CN111625595A (en) * | 2020-04-28 | 2020-09-04 | 鼎链数字科技(深圳)有限公司 | Block chain management method, system and storage medium based on self-starting crawler technology |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107392767A (en) * | 2017-07-28 | 2017-11-24 | 广州亦云信息技术股份有限公司 | Method of commerce, electronic equipment and the storage medium of electricity market based on block chain |
CN107817381A (en) * | 2017-11-10 | 2018-03-20 | 赫普科技发展(北京)有限公司 | A kind of intelligent electric meter |
CN107993121A (en) * | 2017-11-27 | 2018-05-04 | 北京恒华龙信数据科技有限公司 | A kind of pricing Forecasting Methodology and device |
CN108364180A (en) * | 2018-01-31 | 2018-08-03 | 复旦大学 | A kind of shared electricity transaction method based on block chain |
CN108564182A (en) * | 2018-04-16 | 2018-09-21 | 安徽中科智链信息科技有限公司 | A kind of life period of an equipment management system and method based on block chain technology |
-
2019
- 2019-02-20 CN CN201910125937.4A patent/CN109872251A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107392767A (en) * | 2017-07-28 | 2017-11-24 | 广州亦云信息技术股份有限公司 | Method of commerce, electronic equipment and the storage medium of electricity market based on block chain |
CN107817381A (en) * | 2017-11-10 | 2018-03-20 | 赫普科技发展(北京)有限公司 | A kind of intelligent electric meter |
CN107993121A (en) * | 2017-11-27 | 2018-05-04 | 北京恒华龙信数据科技有限公司 | A kind of pricing Forecasting Methodology and device |
CN108364180A (en) * | 2018-01-31 | 2018-08-03 | 复旦大学 | A kind of shared electricity transaction method based on block chain |
CN108564182A (en) * | 2018-04-16 | 2018-09-21 | 安徽中科智链信息科技有限公司 | A kind of life period of an equipment management system and method based on block chain technology |
Non-Patent Citations (1)
Title |
---|
张栋珀: "基于区块链的电能交易平台设计", 《中国优秀硕士学位论文全文数据库》 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110545316A (en) * | 2019-08-19 | 2019-12-06 | 广州华旻信息科技有限公司 | Internet of things information interaction device based on block chain technology |
CN110599304A (en) * | 2019-09-12 | 2019-12-20 | 北京笔新互联网科技有限公司 | Distributed energy transaction system based on block chain and construction method |
CN110599304B (en) * | 2019-09-12 | 2022-03-15 | 北京笔新互联网科技有限公司 | Distributed energy transaction system based on block chain and construction method |
CN110620819A (en) * | 2019-09-20 | 2019-12-27 | 中国银行股份有限公司 | Block chain interaction method and device, computer equipment and readable storage medium |
CN110620819B (en) * | 2019-09-20 | 2022-07-12 | 中国银行股份有限公司 | Block chain interaction method and device, computer equipment and readable storage medium |
CN111429276A (en) * | 2020-03-17 | 2020-07-17 | 西安交通大学 | Multi-energy distributed transaction and intelligent contract design method based on Etheng private chain |
CN111429276B (en) * | 2020-03-17 | 2024-03-29 | 西安交通大学 | Multi-energy distributed transaction and intelligent contract design method based on Ethernet private chain |
CN111464643A (en) * | 2020-04-01 | 2020-07-28 | 西安交通大学 | Multi-energy trading and management platform based on block chain |
CN111464643B (en) * | 2020-04-01 | 2021-07-09 | 西安交通大学 | Multi-energy trading and management platform based on block chain |
CN111625595A (en) * | 2020-04-28 | 2020-09-04 | 鼎链数字科技(深圳)有限公司 | Block chain management method, system and storage medium based on self-starting crawler technology |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109872251A (en) | A kind of building method of distributed energy transaction communications platform based on block chain technology, communication means and communications platform | |
US10997371B2 (en) | Automatic response server device, terminal device, response system, response method, and program | |
Pustišek et al. | Blockchain based autonomous selection of electric vehicle charging station | |
CN111355780A (en) | Block chain-based Internet of things monitoring management method and system | |
Rey-Moreno et al. | Experiences, challenges and lessons from rolling out a rural WiFi mesh network | |
Zhao et al. | An optimal power scheduling method applied in home energy management system based on demand response | |
CN110020956A (en) | A kind of exchange method and system, computer equipment and storage medium of transregional piece of chain | |
CN107301540A (en) | Electric energy meter network prepayment system and its implementation based on cloud platform | |
CN108769109A (en) | Method and system are uniformly processed in a kind of Internet of Things heterogeneous device data | |
CN104956639A (en) | Protocol translation in smart grid communications | |
CN106797392A (en) | The issue and discovery of M2M IOT services | |
CN103345478A (en) | Universal identification coding system for smart city construction | |
CN105518692A (en) | Method and device for controlling peripheral devices via a social networking platform | |
CN110472207A (en) | List generation method and device | |
CN101755480A (en) | Use the method and system of concise messages transmission, route and the information of reception | |
Escap | Asia-Pacific journal on information, communication and space technology: reviews and updates | |
CN109801137A (en) | Commercial articles ordering method, product ordering apparatus, storage medium and electronic equipment | |
CN102571919A (en) | Method and system for dynamically and remotely controlling terminals by workstation | |
CN106296360A (en) | A kind of subway Quick Response Code Online Booking System | |
Baig et al. | Peer-to-Peer Energy Trading in a Micro-grid Using Internet of Things and Blockchain | |
AU2010292908B2 (en) | Monetization of interactive networked-based information objects | |
CN109445384A (en) | A kind of more apparatus control systems | |
CN104780236B (en) | The method and apparatus of the user interface of service object for being located in distributed system | |
Royo et al. | Towards blockchain-based Internet of Things systems for energy smart contracts with constrained hardware devices and cloud infrastructure | |
Singhal et al. | Iterative transmission and distribution optimal power flow framework for enhanced utilisation of distributed resources |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |