Disclosure of Invention
The application provides an energy storage data management system, is favorable to improving the reliability based on energy storage data management of block chain technique.
In order to achieve the above technical effect, a first aspect of the present application provides an energy storage data management system, including:
an intranet block chain facing the server side;
an external network block chain facing the client;
a first electronic device, and a second electronic device;
the intranet block chain comprises a first intranet node deployed based on the first electronic device;
the extranet blockchain includes a first extranet node deployed based on the second electronic device;
the first electronic device is configured to: acquiring target energy storage data based on the first intranet node and sending the target energy storage data to the second electronic equipment;
the second electronic device is configured to: and receiving the target energy storage data and storing the target energy storage data into the extranet block chain based on the first extranet node.
Based on the first aspect of the present application, in a first possible implementation manner, the target energy storage data includes: energy transaction billing data;
the energy storage data management system further comprises: a third electronic device, a fourth electronic device, a fifth electronic device, and a sixth electronic device;
the intranet block chain further includes a second intranet node deployed based on the third electronic device, a third intranet node deployed based on the fourth electronic device, a fourth intranet node deployed based on the fifth electronic device, and a fifth intranet node deployed based on the sixth electronic device;
the third electronic device is configured to: acquiring energy scheduling record data, and storing the energy scheduling record data into the intranet block chain based on the second intranet node;
the fourth electronic device is configured to: acquiring the energy scheduling record data based on the third intranet node, checking the energy scheduling record data to generate checking data, and storing the checking data into the intranet block chain based on the third intranet node;
the fifth electronic device is configured to: acquiring the energy scheduling record data and the verification data based on the fourth intranet node, performing replication on the energy scheduling record data and the verification data to generate replication data, and storing the replication data into the intranet block chain based on the fourth intranet node;
the sixth electronic device is configured to: acquiring the batch data based on the fifth intranet node; judging whether the energy scheduling record data is abnormal or not based on the batch data; and when the energy scheduling record data is not abnormal, generating the energy transaction bill data based on the energy scheduling record data and an intelligent contract corresponding to the energy scheduling record data, and storing the energy transaction bill data into the intranet block chain based on the fifth intranet node.
Based on the first possible implementation manner of the first aspect of the present application, in a second possible implementation manner, the sixth electronic device is further configured to: and when the energy scheduling record data is abnormal, generating abnormal prompt data, and storing the abnormal prompt data into the intranet block chain based on the fifth intranet node.
Based on the second possible implementation manner of the first aspect of the present application, in a third possible implementation manner, the first electronic device is further configured to: acquiring the abnormal prompt data based on the first intranet node, and then sending the abnormal prompt data to the second electronic equipment;
the second electronic device is further configured to: and storing the abnormal prompt data into the extranet block chain based on the first extranet node.
Based on the first, second, or third possible implementation manner of the first aspect of the present application, in a fourth possible implementation manner, the energy storage data management system further includes: a seventh electronic device;
the extranet blockchain further includes a second extranet node deployed based on the seventh electronic device;
the seventh electronic device is configured to: and acquiring the energy transaction bill data based on the second external network node, and performing bill settlement respectively with each new energy field station corresponding to the energy transaction bill data based on the energy transaction bill data.
Based on the fourth possible implementation manner of the first aspect of the present application, in a fifth possible implementation manner, the seventh electronic device is further configured to:
acquiring energy export storage data of each new energy station, and storing the energy export storage data into the extranet block chain based on the second extranet node;
the second electronic device is further configured to: acquiring the energy output storage data based on the first external network node, and sending the energy output storage data to the first electronic device;
the first electronic device is further configured to: and storing the energy output storage data into the intranet block chain based on the first intranet node.
Based on the first, second, or third possible implementation manner of the first aspect of the present application, in a sixth possible implementation manner, the energy storage data management system further includes: an eighth electronic device;
the extranet blockchain further includes a third extranet node deployed based on the eighth electronic device;
the eighth electronic device is configured to: and acquiring the energy transaction bill data based on the third external network node, performing data analysis on the energy transaction bill data, and displaying the result of the data analysis.
Based on the sixth possible implementation manner of the first aspect of the present application, in a seventh possible implementation manner, the performing data analysis on the energy transaction bill data and displaying a result of the data analysis includes:
and performing data analysis based on the energy transaction bill data to generate a statistical chart and displaying the statistical chart.
Based on the first, second, or third possible implementation manner of the first aspect of the present application, in an eighth possible implementation manner, the energy storage data management system further includes: a ninth electronic device;
the extranet blockchain further includes a fourth extranet node deployed based on the ninth electronic device;
the ninth electronic device is configured to: and acquiring the energy trade account number data for viewing based on the fourth external network node.
Based on the first aspect of the present application or the first, second, or third possible implementation manner of the first aspect of the present application, in a ninth possible implementation manner, the energy storage data management system further includes:
and the gateway is respectively in communication connection with the first electronic equipment and the second electronic equipment.
It can be seen from the above that the technical scheme of this application includes: an intranet block chain facing the server side; an external network block chain facing the client; a first electronic device, and a second electronic device; the intranet blockchain comprises a first intranet node deployed based on first electronic equipment; the extranet blockchain comprises a first extranet node deployed based on the second electronic device; the first electronic device is to: acquiring target energy storage data based on the first intranet node and sending the target energy storage data to the second electronic equipment; the second electronic device is to: and receiving target energy storage data and storing the target energy storage data into the external network block chain based on the first external network node. According to the technical scheme, the outer network block chain can acquire the target energy storage data of the inner network block chain, isolation of the inner network block chain and the outer network block chain can be guaranteed, the situation that the data of the inner network block chain are affected when the data of the outer network block chain are abnormal is avoided, the outer network block chain can be safely exposed to the outside so that outside personnel can supervise the energy storage data of the inner network block chain through the outer network block chain, and the reliability of energy storage data management based on the block chain technology is improved.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
The technical solutions in the embodiments of the present application are clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application, but the present application may be practiced in other ways than those described herein, and it will be apparent to those of ordinary skill in the art that the present application is not limited by the specific embodiments disclosed below.
The present application provides an energy storage data management system, as shown in fig. 1, including:
an intranet block chain 101 facing a server side;
client-oriented extranet blockchains 102;
a first electronic device 103, and a second electronic device 104;
intranet block chain 101 includes a first intranet node 1011 deployed based on first electronic device 103;
the extranet blockchain 102 includes a first extranet node 1021 deployed based on the second electronic device 104;
the first electronic device 103 is configured to: acquiring target energy storage data based on the first intranet node 1011 and sending the target energy storage data to the second electronic device 104;
the second electronic device 104 is configured to: the target energy storage data is received and stored into the extranet block chain 101 based on the first extranet node 1021.
Specifically, the target energy storage data may be data that needs to be sent to the intranet block chain every preset time interval of the intranet block chain, so as to be viewed by external personnel (such as government department personnel, financial institution personnel, regulatory agency personnel, and the like), or may be data that is generated or queried by the intranet block chain in response to a request from the intranet block chain; the internal network block chain can be used for energy storage data management organization to store data, and the nodes of the external network block chain can be exposed to the outside so that external personnel can check the received data from the internal network block chain through the externally exposed nodes, and therefore the technical effect that the external personnel can indirectly supervise the internal network block chain under the condition that the internal network block chain is prevented from being directly exposed to the outside is achieved.
Optionally, the target energy storage data includes: energy transaction billing data;
as shown in fig. 1, the energy storage data management system further includes: a third electronic device 105, a fourth electronic device 106, a fifth electronic device 107, and a sixth electronic device 108;
intranet block chain 101 further includes a second intranet node 1012 deployed based on third electronic device 105, a third intranet node 1013 deployed based on fourth electronic device 106, a fourth intranet node 1014 deployed based on fifth electronic device 107, and a fifth intranet node 1015 deployed based on sixth electronic device 108;
the third electronic device 105 is configured to: acquiring energy scheduling record data, and storing the energy scheduling record data into the intranet block chain 101 based on a second intranet node 1012;
the fourth electronic device 106 is configured to: acquiring the energy scheduling record data based on the third intranet node 1013, checking the energy scheduling record data to generate check data, and storing the check data into the intranet block chain 101 based on the third intranet node 1013;
the fifth electronic device 107 is configured to: acquiring the energy scheduling record data and the verification data based on a fourth intranet node 1014, performing replication on the energy scheduling record data and the verification data to generate replication data, and storing the replication data into an intranet block chain 101 based on the fourth intranet node 1014;
the sixth electronic device 108 is configured to: acquiring the batch data based on the fifth intranet node 1015; judging whether the energy scheduling record data is abnormal or not based on the batch data; when there is no abnormality in the energy scheduling record data, the energy transaction bill data is generated based on the energy scheduling record data and the intelligent contract corresponding to the energy scheduling record data, and the energy transaction bill data is stored in the internal network block chain 101 based on the fifth internal network node 1015.
Further, the sixth electronic device 108 is further configured to: when the energy scheduling record data is abnormal, abnormal prompt data is generated, and the abnormal prompt data is stored into the intranet block chain 101 based on the fifth intranet node 1015.
Further, the first electronic device 103 is further configured to: acquiring the abnormal prompt data based on the first intranet node 1011, and then sending the abnormal prompt data to the second electronic device 104;
the second electronic device 104 is further configured to: the exception hint data is stored in the extranet blockchain 102 based on the first extranet node 1021.
Specifically, the sixth electronic device 108 is further specifically configured to: when the energy scheduling record data is abnormal, the third electronic device 105 may be triggered, so that the third electronic device 105 obtains the energy scheduling record data again, stores the energy scheduling record data into the intranet block chain 101 based on the second intranet node 1012, and then triggers the fourth electronic device 106, the fifth electronic device 107, and the sixth electronic device 108.
Further, as shown in fig. 1, the energy storage data management system further includes: a seventh electronic device 109;
the extranet blockchain 102 further includes a second extranet node 1022 deployed based on the seventh electronic device 109;
the seventh electronic device 109 is configured to: the energy transaction billing data is obtained based on the second external network node 1022, and billing settlement is performed on the basis of the energy transaction billing data and each new energy site corresponding to the energy transaction billing data.
Specifically, the seventh electronic device 109 sends a transaction request for receiving or paying money to each new energy station for bill settlement based on the money corresponding to each new energy station in the energy transaction bill data.
Further, the seventh electronic device 109 is further configured to:
acquiring energy export storage data of each new energy station, and storing the energy export storage data into the extranet block chain 102 based on the second extranet node 1022;
the second electronic device 104 is further configured to: acquiring the energy export storage data based on a first external network node 1021, and sending the energy export storage data to the first electronic device 103;
the first electronic device 103 is further configured to: the energy export storage data is stored into the intranet block chain 101 based on the first intranet node 1011.
Specifically, the energy output storage data may be electric quantity data which is respectively transmitted to the energy storage station by each new energy station within a preset time.
Further, as shown in fig. 1, the energy storage data management system further includes: an eighth electronic device 110;
extranet blockchain 102 further includes a third extranet node 1023 deployed based on eighth electronic device 110;
the eighth electronic device 110 is configured to: and acquiring the energy transaction bill data based on the third extranet node 1023, performing data analysis on the energy transaction bill data, and displaying the result of the data analysis.
Further, the data analysis of the energy transaction bill data and the display of the data analysis result include:
and performing data analysis based on the energy transaction bill data to generate a statistical chart and displaying the statistical chart.
Specifically, the statistical chart may be one or more of a line chart, a bar chart, a pie chart and other types of statistical charts, so as to more visually display the energy transaction billing data.
Further, as shown in fig. 1, the energy storage data management system further includes: a ninth electronic device 111;
extranet blockchain 102 also includes a fourth extranet node 1024 deployed based on ninth electronic device 111;
the ninth electronic device 111 is configured to: the energy trade account number data is obtained for viewing based on the fourth extranet node 1024.
Specifically, the external person may view the energy transaction bill data based on the ninth electronic device 111.
Optionally, the energy storage data management system further includes:
and the gateway is respectively in communication connection with the first electronic equipment and the second electronic equipment.
Specifically, the gateway may be a cross-link gateway, and the cross-link gateway has a data format conversion function, where the format conversion function includes: and converting the format of the data of the internal network block chain into the format of the data of the external network block chain, and/or converting the format of the data of the external network block chain into the format of the data of the internal network block chain.
Optionally, the energy storage data management system further includes: a tenth electronic device;
the intranet block chain 101 further includes a sixth intranet node deployed based on a tenth electronic device;
the tenth electronic device is configured to: and acquiring and storing the energy storage data stored by all nodes in the intranet block chain 101 based on the sixth intranet node to realize backup of the energy storage data of the intranet block chain 101.
Optionally, the electronic devices in the energy storage data management system all have encryption and decryption functions, and may decrypt data obtained by the electronic devices based on the nodes of the block chain to obtain plaintext data, and may encrypt data stored by the electronic devices based on the nodes of the block chain to obtain encrypted data.
It can be seen from the above that the technical scheme of this application includes: an intranet block chain facing the server side; an external network block chain facing the client; a first electronic device, and a second electronic device; the intranet blockchain comprises a first intranet node deployed based on first electronic equipment; the extranet blockchain comprises a first extranet node deployed based on the second electronic device; the first electronic device is to: acquiring target energy storage data based on the first intranet node and sending the target energy storage data to the second electronic equipment; the second electronic device is to: and receiving target energy storage data and storing the target energy storage data into the external network block chain based on the first external network node. According to the technical scheme, the outer network block chain can acquire the target energy storage data of the inner network block chain, isolation of the inner network block chain and the outer network block chain can be guaranteed, the situation that the data of the inner network block chain are affected when the data of the outer network block chain are abnormal is avoided, the outer network block chain can be safely exposed to the outside so that outside personnel can supervise the energy storage data of the inner network block chain through the outer network block chain, and the reliability of energy storage data management based on the block chain technology is improved.
In an actual application scenario, as shown in fig. 2, the method for constructing the internal network blockchain and the external network blockchain includes: firstly, a dispatching center machine room, a trading center machine room, a credit office machine room, a finance department machine room and a first internet machine room are respectively provided with a server, so as to respectively construct a dispatching center node (such as the second intranet node), a transaction center node (such as the third intranet node), a reward part node (such as the fourth intranet node), a financial part node (such as the fifth intranet node) and a first internet node (such as the first intranet node) of an intranet block chain, and a server is respectively deployed in a new energy station machine room, a data center machine room, a public machine room and a second internet machine room, the new energy station node (such as the second external network node), the data center node (such as the third external network node), the public node (such as the fourth external network node) and the second internet node (such as the first external network node) of the external network block chain are constructed; secondly, running an kylin operating system on each server respectively, and installing required static link library files on each server; thirdly, compiling the block chain node programs on each server based on a GNUCompilerCollection (GNU compiler suite) compiler in the kylin operating system; fourthly, installing the required dynamic link library file on each server; fifthly, running the compiled link point program of each block; and sixthly, installing corresponding ODBC/JDBC drivers which can be used for connecting an kylin operating system database on each server respectively based on the programming language of each block chain node program so as to complete the construction of each node in the internal network block chain and the external network block chain.
After the construction of each node in the internal network block chain and the external network block chain is completed, a computer script can be programmed to test the internal network block chain and the external network block chain so as to detect whether the constructed internal network block chain and the constructed external network block chain are abnormal or not.
Based on the intranet block chain and the extranet block chain constructed in the practical application scenario, a first internet node and a second internet node are in communication connection through a gateway, an intranet block chain user inputs UTXO (unshown transaction output), gateway address and money amount in the intranet block chain needing to be called through a server of a first internet machine room, then login verification information (such as information of a signature, an address used by the signature and the like) is input on the gateway to pass the verification, and then information of the UTXO, the gateway address and the money amount is submitted to the gateway so that the gateway sends corresponding data in the intranet block chain to the extranet block chain; the gateway stores the received corresponding data on the intranet block chain into the extranet block chain based on the second internet node and receives a storage certificate returned by the extranet block chain; and finishing the process execution of the cross-link data transmission.
Based on the intranet block chain constructed in the actual application scene, the process of establishing the intelligent contract in the intranet block chain is as follows: creating a project by adopting an idea/eclipse tool; importing a settlement intelligent contract development package, a verification intelligent contract development package and a third party development package in the project; writing contract codes in the project, storing the project into an internal network block chain based on a finance department node, and installing a container mirror image generated after compiling the project to the finance department node; and storing the name, version and authorization of the contract of the engineering into the intranet block chain based on the financial department node, and deploying the contract to the intranet block chain based on a consensus mechanism.
After the contract is deployed, the contract (including the settlement intelligent contract and the check contract) can be called through the SDK development kit.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
It should be noted that, the methods and the details thereof provided by the foregoing embodiments may be combined with the apparatuses and devices provided by the embodiments, which are referred to each other and are not described again.
Those of ordinary skill in the art would appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described apparatus/device embodiments are merely illustrative, and for example, the division of the above-described modules or units is only one logical functional division, and the actual implementation may be implemented by another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.