CN110827007A - Block chain-based electric charge settlement method, electronic equipment and storage device - Google Patents

Block chain-based electric charge settlement method, electronic equipment and storage device Download PDF

Info

Publication number
CN110827007A
CN110827007A CN201910919421.7A CN201910919421A CN110827007A CN 110827007 A CN110827007 A CN 110827007A CN 201910919421 A CN201910919421 A CN 201910919421A CN 110827007 A CN110827007 A CN 110827007A
Authority
CN
China
Prior art keywords
data
node
electric charge
block chain
settlement
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.)
Granted
Application number
CN201910919421.7A
Other languages
Chinese (zh)
Other versions
CN110827007B (en
Inventor
邓洁
向智宇
程晗蕾
王超
鲁静
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yuanguang Software Co Ltd
Original Assignee
Yuanguang Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Yuanguang Software Co Ltd filed Critical Yuanguang Software Co Ltd
Priority to CN201910919421.7A priority Critical patent/CN110827007B/en
Publication of CN110827007A publication Critical patent/CN110827007A/en
Application granted granted Critical
Publication of CN110827007B publication Critical patent/CN110827007B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/085Payment architectures involving remote charge determination or related payment systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/14Payment architectures specially adapted for billing systems
    • G06Q20/145Payments according to the detected use or quantity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Finance (AREA)
  • Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Development Economics (AREA)
  • Water Supply & Treatment (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Tourism & Hospitality (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a block chain-based electric charge settlement method, electronic equipment and a storage device, wherein the method comprises the following steps: a first node of a block chain acquires electric quantity data in the block chain; calling an electric charge settlement intelligent contract on the block chain to calculate electric charge data of the electric quantity data; the electric quantity data are classified according to the electric quantity decomposition intelligent contract of the block chain. Through the mode, the efficiency of the electric charge settlement and the accuracy of the electric charge data can be effectively improved.

Description

Block chain-based electric charge settlement method, electronic equipment and storage device
Technical Field
The present invention relates to the field of electric charge settlement technologies, and in particular, to an electric charge settlement method, an electronic device, and an apparatus based on a block chain.
Background
The settlement of the electric charge between the power plant and the power grid enterprise has the characteristics of large data volume and high safety requirement. Because the power grid enterprise carries out the mode of division of responsibility and division of labor, a plurality of departments are often involved in the process of electric charge settlement, such as a dispatching department, a marketing department, a trading center, a financial department and the like. Along with the richness of electric power transaction varieties and the diversification of transaction modes, the data volume of electric quantity data is larger and larger, the calculation amount of electric charge settlement is also larger and larger, the rules are more and more complex, the calculation period for completing the electric charge settlement by means of manual calculation is too long, errors are easy to occur, and the electric charge settlement efficiency is influenced.
Disclosure of Invention
The technical problem that this application mainly solved is: the block chain-based electric charge settlement method, the electronic equipment and the storage device can effectively improve the efficiency of electric charge settlement and the accuracy of electric charge data.
In order to solve the technical problem, the application adopts a technical scheme that: provided is a block chain-based electricity charge settlement method, including:
a first node of a block chain acquires electric quantity data in the block chain;
calling an electric charge settlement intelligent contract on the block chain to calculate electric charge data of the electric quantity data;
the electric quantity data are classified according to the electric quantity decomposition intelligent contract of the block chain.
Optionally, the acquiring, by the first node of the blockchain, the electric quantity data in the blockchain includes:
a first node receives a message of the uplink of the electric quantity data;
synchronizing the battery data from the second node of the blockchain in response to the message on the battery data uplink.
Optionally, the acquiring, by the first node of the blockchain, the electric quantity data in the blockchain includes:
the first node accesses a second node of the block chain at preset interval time;
power data is synchronized from the second node.
Optionally, the accessing, by the first node, the second node of the block chain at the preset interval includes:
the method comprises the steps that a first node obtains a first block height of a block chain stored by the first node and a second block height of the block chain stored by a second node at preset interval time;
and judging whether the second block height is larger than the first block height.
Optionally, synchronizing the power data from the second node includes:
if the second block height is larger than the first block height;
the power data is synchronized from the second node.
Optionally, after the electric charge settlement intelligent contract on the blockchain is invoked to calculate the electric charge data of the electric quantity data, the method further includes:
and generating an electric charge settlement list according to the electric charge data.
Optionally, the electric quantity data includes identity information of the power generation terminal, and generating the electric charge settlement list according to the electric charge data includes:
and respectively generating corresponding electricity charge settlement lists according to the identity information of the power generation terminal, wherein the electricity charge settlement lists at least comprise electric quantity data and electricity charge data corresponding to the identity information of the power generation terminal.
Optionally, after generating the corresponding electricity fee settlement sheets according to the identity information of the power generation end, the method includes:
receiving a verification message of the electric charge settlement list;
the message will be checked for uplinks.
Optionally, after generating the corresponding electricity fee settlement lists according to the identity information of the power generation end, the method further includes:
receiving a payment message of an electric charge settlement list;
the payment message is uplinked.
In order to solve the above technical problem, another technical solution adopted by the present application is: an electronic device is provided, comprising a processor and a memory, the processor being coupled to the memory; wherein the content of the first and second substances,
the memory is used for storing program instructions executed by the processor;
the processor is used for executing the sequence data to realize the block chain-based electricity charge settlement method.
In order to solve the above technical problem, the present application adopts another technical solution: there is provided a storage device for storing program instructions that can be executed by a processor to implement the above block chain-based electricity charge settlement method.
The beneficial effect of this application is:
according to the method, the first node of the block chain obtains the electric quantity data in the block chain, and the electric charge data is calculated by calling the electric charge settlement intelligent contract, so that automatic settlement of the electric charge data can be realized, the electric charge settlement efficiency is improved, the manual settlement cost can be effectively saved, and the calculation error is greatly reduced; the electric quantity data are classified according to the electric quantity decomposition intelligent contract of the block chain before settlement, so that the workload of the first node for electric charge settlement can be effectively reduced, the electric charge settlement speed is accelerated, errors can be reduced, and the accuracy of the electric charge data is improved.
Drawings
FIG. 1 is a schematic structural diagram of an embodiment of the electric charge settlement system of the present application;
fig. 2 is a schematic flowchart of a first embodiment of the block chain-based electricity charge settlement method according to the present application;
FIG. 3 is a schematic flow chart diagram illustrating an embodiment of the block chain-based electricity charge settlement method according to the present invention;
fig. 4 is a schematic flowchart illustrating another embodiment of the block chain-based electricity charge settlement method according to the present invention;
fig. 5 is a schematic flowchart of a second embodiment of the block chain-based electricity charge settlement method according to the present application;
fig. 6 is a schematic flowchart of a third embodiment of the block chain-based electricity charge settlement method according to the present application;
FIG. 7 is a schematic diagram of an embodiment of an electronic device of the present application;
FIG. 8 is a schematic structural diagram of an embodiment of a memory device according to the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be 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.
The inventors of the present application have found, through long-term research: with the abundance of electric power transaction varieties and the diversification of transaction modes in recent years, the data volume of electric quantity data transacted between a power grid enterprise and a power generation enterprise is larger and larger, the settlement rules of the related electric quantity data are also more and more complex, and the calculation amount of electric charge settlement is also larger and larger. And the electric quantity is often inserted from a plurality of power generation enterprises by the power grid enterprise, the generator set of each power generation enterprise is different, when the electric charge settlement is carried out, a plurality of factors need to be considered, if the electric charge settlement is completed by means of manual calculation, not only the calculation period is too long, but also errors are very easy, the electric charge settlement often relates to the cooperative work of a plurality of departments, once settlement errors occur, the subsequent verification and correction process is tedious, the electric charge settlement hysteresis is serious, the electric charge settlement efficiency is influenced, and the development of both sides of a transaction is not facilitated. To solve these problems, the present application proposes at least the following embodiments.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an embodiment of the electric charge settlement system of the present application. In the present embodiment, the electric charge settlement system 10 includes, for example, a power generation terminal 11, a first node 12, and a second node 13. The first node 12 and the second node 13 are nodes in a power grid enterprise block chain. The number of the power generation terminals 11, the first node 12 and the second node 13 may be plural, and is not limited herein. The power generation end 11 is, for example, a device of a power generation enterprise, and provides a corresponding interface for reading power data from a node of the power supply enterprise. The first node 12 is, for example, a node of a financial department of a power grid enterprise, and is responsible for settlement of electric charges. The second node 13 is, for example, a node that stores the latest uplink power data, and the first node 12 can obtain the power data in the blockchain from the second node 13. In some embodiments, the second node 13 is, for example, a node of a power grid enterprise dispatching department, and the second node 13 may collect the power data of the power generation end 11 and link the collected power data. Further contents and functions of the electric charge settlement system 10 in this embodiment can be referred to the following description of each embodiment of the block chain based electric charge settlement method of this application.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a first embodiment of the block chain-based electric charge settlement method according to the present invention. The embodiment uses the first node as an execution main body, and includes:
s101: the first node acquires electric quantity data in the block chain.
In this embodiment, the first node is, for example, a node of a financial department of a power grid enterprise, and the first node may acquire the electric quantity data in the blockchain to perform electric charge settlement. The electric quantity data in the block chain is, for example, the electric quantity data of the power generation terminal, and may include information such as identity information, an electric quantity value, an electric quantity type, and electric quantity acquisition time of the power generation terminal. The electric quantity data is, for example, electric quantity data collected from other nodes of the block chain to the power generation terminal, and the collected electric quantity data is stored in the block chain after being linked up. A first node acquires power data in a blockchain, for example, by synchronizing latest blockchain data to other nodes; or the first node can also acquire the electric quantity data through a data transmission interface provided by the blockchain database.
In this embodiment, the blockchain is, for example, in a federation chain manner, and a part of nodes in the federation chain can store complete blockchain data for all nodes in the blockchain. For example, some nodes in the alliance chain are responsible for collecting and chaining the power data, and the nodes can store the complete power data. When the first node acquires the electric quantity data, the first node can acquire the required electric quantity data. Therefore, the complete block chain data can be stored to ensure the safety of the data, and the storage space of the first node can be effectively saved.
In some embodiments, after the bs node uplinks the battery data, it may notify other nodes of a battery data uplink message, and after receiving the uplink message, the other nodes may synchronize the uplink battery data in time. For example, referring to fig. 3, S101 may further include:
s1011: the first node receives a message of the uplink of the electric quantity data.
In this embodiment, after the block node links the battery data, a message of the battery data link may be sent to the first node through the network. The content of the message on the power data link is, for example, brief information of block chain data update. Or the message content of the uplink of the power data may include the address of the node of the blockchain from which the message is sent, the block height of the latest blockchain, or the summary information of the power data. The first node receives the information of the uplink of the electric quantity data, and can determine the electric quantity data required to be synchronized according to the information content.
S1012: the first node synchronizes the capacity data from the second node of the blockchain in response to the message on the uplink of the capacity data.
After receiving the information of the uplink of the electric quantity data, the first node can respond to the information of the uplink of the electric quantity data to synchronize the electric quantity data from the second node of the block chain. In some embodiments, the uplink message of the power data may be sent by the second node, and the first node synchronizes the power data from the second node after receiving the message sent by the second node. Alternatively, the uplink message of the power data may be sent by other nodes, and the first node synchronizes the power data from the second node connected to the first node after receiving the message. In some embodiments, the first node may further analyze the uplink message of the electric quantity data to obtain summary information of the electric quantity data, and select the electric quantity data required to be synchronized according to the summary information, so that the first node may quickly and accurately obtain the required electric quantity data. The block chain node sends the information of the chain linking of the electric quantity data after the electric quantity data is chain linked, and can effectively inform other nodes of synchronizing the electric quantity data of the new chain linking in time, so that the speed of electric charge settlement is accelerated.
When the power grid enterprise performs the power fee settlement, the power fee settlement may be performed periodically according to a plan, for example, the power fee settlement may be performed according to electric quantity data of each month or each quarter, or the power fee settlement may be performed according to a settlement period agreed with each power generation enterprise. In some other embodiments, the first node may also know the updated information of the blockchain data by accessing other nodes of the blockchain, so as to programmatically synchronize the power data for power rate settlement. For example, referring to fig. 4, S101 may further include:
s1013: the first node accesses a second node of the blockchain at preset intervals.
The first node accesses the second node of the blockchain, for example, the first node requests the second node to connect a data transmission interface of the blockchain data stored by the second node. In the present embodiment, the preset interval time is, for example, every day, every week, every month, or every quarter. The first node can acquire the updating condition of the block chain data by periodically accessing the second node of the block chain, so that the electric quantity data can be acquired in a planned way to settle the electric charge.
In some embodiments, the first node may obtain a first block height of a block chain stored by the first node and a second block height of the block chain stored by the second node at a preset interval, and then determine whether there is power data of a new uplink in the block chain by determining the second block height and the first block height. For example, the first node may send an inquiry message to the second node at a preset interval time to inquire a second block height of the block chain data stored in the second node, the second node may feed back the second block height to the first node after receiving the inquiry message, and the first node may determine whether there is a new block by comparing the first block height and the second block height. The first node can quickly know the updating condition of the blockchain data by comparing the block heights, and can know the number of the newly added blocks by comparing the block heights.
S1014: the first node synchronizes the power data from the second node.
In this embodiment, the first node synchronizes the power data from the second node, for example, by synchronizing the power data in the block chain through the data transmission interface of the second node. Or, after comparing the block heights of the block chain data stored in the first node and the second node, if the first node determines that the second block height is greater than the first block height, that is, determines that there is a newly added block in the block chain, the first node may request the second node for the synchronous electric quantity data. The second node may transmit the power amount data required by the first node to the first node after receiving the request information of the first node. In some embodiments, the first node determines that the second block height is greater than the first block height, and when the electric quantity data is synchronized from the second node, only the electric quantity data newly added in the block chain can be acquired, that is, only the block data after the first block height is synchronized, so that the synchronization speed of the electric quantity data can be effectively increased, and the efficiency of electric charge settlement is improved. In the embodiment, the first node accesses the second node of the block chain at the preset interval time, so that the updating condition of the block chain data can be known, and the electric quantity data can be regularly acquired according to a plan for settlement, so that the electric charge settlement process can be standardized, the resources can be saved, and the workload of the first node can be reduced.
The sequence of S1011 to S1014 described above is the description sequence in the present embodiment, and is not limited to the sequence of the method in the execution process of the present embodiment. Some steps may be performed in either order or simultaneously, provided that the method is performed. For example, S1011 and S1013 may be executed only one, or may be executed sequentially or simultaneously.
S102: and the first node calls the electric charge settlement intelligent contract on the blockchain to calculate the electric charge data of the electric quantity data.
When the first node acquires the electric quantity data in the block chain, the electric charge settlement intelligent contract on the block chain can be called to calculate the electric charge data of the electric quantity data, and automatic settlement of the electric charge data is achieved.
In this embodiment, the electric quantity data is classified according to the electric quantity decomposition intelligent contract of the block chain. For example, after the block link point links the electricity quantity data, the electricity quantity decomposition intelligent contract is automatically triggered to classify the electricity quantity data. Or the block chain link point calls an electric quantity decomposition intelligent contract of the block chain to classify the electric quantity data when the electric quantity data is linked. Or, the first node may also call a power decomposition intelligent contract of the block chain to classify the power data when acquiring the power data. The intelligent contract for electric quantity decomposition can realize automatic classification of electric quantity data, and the classification processing efficiency is higher and the classification accuracy is high.
In some embodiments, the power grid enterprise encodes the power decomposition rule into a power decomposition intelligent contract according to the power decomposition rule agreed with the power generation enterprise. The electric quantity decomposition intelligent contract can classify the electric quantity data according to the related information such as the identity information, the electric quantity type, the unit price of the electric quantity and the like of the power generation terminal.
The generator-side identification information is information such as the name, address, and number of the generator side. In some embodiments, when the block link point collects the electricity quantity data of the power generation ends, each power generation end can be numbered, and the collected electricity quantity data is associated with the number of the corresponding power generation end and linked up, so that the electricity quantity data of each power generation end can be effectively distinguished, and the error of the electricity quantity data is reduced. When the first node acquires the electric quantity data in the block chain, the first node can acquire the number of the power generation terminal and the associated electric quantity data.
The type of the electric energy is divided according to the power generation mode, such as wind power generation, hydraulic power generation, thermal power generation and the like. Or the electric quantity type can be divided according to the generator set attribute, such as whether to desulfate, whether to denitrate, whether to remove dust, and the like.
The unit price of electricity is, for example, the price of electricity per degree. The electric quantity data are classified according to the unit price of the electric quantity, so that the subsequent calculation of the electric charge data can be facilitated, and the efficiency of electric charge settlement is improved.
In some embodiments, the power decomposition intelligent contract can also classify the power data according to other information such as power generation time, region and the like.
In some embodiments, the power decomposition intelligent contract can further form a corresponding power data list according to the classified power data, and the power data list can be stored in the block chain. The block chain link points can synchronize the electric quantity data list from the block chain, so that the electric quantity data can be checked and settled conveniently.
The electricity rate data includes, for example, the electricity rate of each type of electricity amount and the total electricity rate of part or all of the type of electricity amount. Since the electricity charge calculation rules of different types of electricity quantity data are different, in this embodiment, the electricity charge settlement intelligent contract may include the electricity charge calculation rules of the classified multiple types of electricity quantity data. When the electricity charge data is calculated, the first node can call an electricity charge settlement intelligent contract to respectively calculate the corresponding electricity charge data according to the calculation rule of each type of electric quantity data. In some embodiments, the total amount of each type of electricity charge data of each power generation end can be calculated respectively.
For example, in one specific embodiment, the electricity fee settlement intelligent contract may include the following calculation rules:
basic electricity charge is unit price;
the total electric charge is basic electric charge, desulfurization electric charge, denitration electric charge and dedusting electric charge;
and automatically carrying out electric charge settlement on the classified electric quantity data according to the rules of the electric charge settlement intelligent contract to obtain corresponding electric charge data.
In the embodiment, the first node of the block chain acquires the electric quantity data in the block chain, and calculates the electric charge data by calling the electric charge settlement intelligent contract, so that the automatic settlement of the electric charge data can be realized, the electric charge settlement efficiency is improved, the manual settlement cost can be effectively saved, and the calculation error is greatly reduced; the electric quantity data are classified according to the electric quantity decomposition intelligent contract of the block chain before settlement, so that the workload of the first node for electric charge settlement can be effectively reduced, the electric charge settlement speed is accelerated, errors can be reduced, and the accuracy of the electric charge data is improved.
Referring to fig. 5, fig. 5 is a schematic flowchart illustrating a block chain-based electric charge settlement method according to a second embodiment of the present invention. The present embodiment takes the first node as an execution subject, which is further described on the basis of the first embodiment of the block chain-based electricity fee settlement method of the present application, and therefore, the steps of the present embodiment that are the same as those of the first embodiment of the block chain-based electricity fee settlement method of the present application are not described herein again. The embodiment comprises the following steps:
s201: the first node acquires electric quantity data in the block chain.
In this embodiment, the electric quantity data is classified according to the electric quantity decomposition intelligent contract of the block chain.
S202: and the first node calls the electric charge settlement intelligent contract on the blockchain to calculate the electric charge data of the electric quantity data.
In this embodiment, the first node may obtain the number of the power generation terminal and the associated power amount data. When the electricity charge settlement intelligent contract on the block chain is called at the first node to calculate the electricity charge data of the electricity quantity data, the electricity charge data of the electricity quantity data of each power generation end can be calculated respectively according to the serial numbers of the power generation ends, the electricity charge data of each power generation end is convenient to separate, the confusion of the electricity quantity data or the electricity charge data of a plurality of power generation ends is avoided, and the electricity charge settlement efficiency is effectively improved.
S203: the first node generates an electric charge settlement list according to the electric charge data.
In this embodiment, the first node may further generate an electric charge settlement sheet according to the electric charge data. The electricity charge settlement sheet includes, for example, electricity amount data and corresponding electricity charge data. The electric charge settlement sheet is in the form of a list or a table, for example, and is more normative and highly readable. After the electric charge settlement bill is generated, the electric charge settlement bill can be exported to a local storage or a cloud storage from a corresponding interface. The electric charge settlement list can be stored in the block chain, so that other nodes can acquire the electric charge settlement list for checking and supervision, and transparency and safety of the electric charge settlement process are improved. In some embodiments, when the first node invokes the electric charge settlement intelligent contract to calculate the electric charge data, the first node may also automatically generate the electric charge settlement list according to the electric charge settlement intelligent contract rules.
When the first node settles the electricity charge, the settlement can be separately carried out aiming at the electricity quantity data of each electricity generation end, so that the data isolation and the data differentiation are carried out, and the safety and the privacy of the transaction are ensured. In some embodiments, S203 may further include: and respectively generating corresponding electric charge settlement lists according to the identity information of the power generation end.
In this embodiment, the power data includes power generation terminal identification information. The identity information of the power generation terminal is, for example, the identity information of the power generation terminal acquired by the block chain node when acquiring the electric quantity data of the power generation terminal. When the block chain node links the electric quantity data, the power generation terminal identity information and the corresponding electric quantity data can be stored in the block chain after being linked and linked. In some embodiments, the identity information of the power generation terminal may also be corresponding identification information, such as a number, configured for the power data of each power generation terminal when the power data is collected by the block link point, where the identification information may be used to distinguish the power data of each collected power generation terminal.
When the first node calls the electricity charge settlement intelligent contract to calculate the electricity charge data, the first node can independently calculate the electric quantity data of each power generation terminal according to the identity information of the power generation terminals, and then respectively generate corresponding electricity charge settlement lists according to calculation results. Therefore, the electric quantity data and the electric charge data of each power generation terminal can be effectively distinguished. In the present embodiment, the electricity fee settlement sheet includes at least the electricity amount data and the electricity fee data corresponding to the power generation terminal identification information. The electric charge settlement list can be stored in the block chain and is associated with the corresponding power generation terminal identity information, so that the corresponding electric charge settlement list can be conveniently and quickly inquired through the power generation terminal identity information.
When the power grid enterprise settles the electric charge, the nodes of the financial department can settle the electric charge, the generated electric charge settlement list is verified by the nodes of other departments and can be sent to the power generation enterprise for verification, and the accuracy of the electric charge settlement is ensured through the cooperation of the participation of multiple parties. In some embodiments, the method may further include:
s204: the first node receives a check message of the electricity bill.
The first node receives a check message of the electricity charge settlement list, such as a check message from other nodes or a check message from the power generation end. The verification message includes, for example, a verification result of the electricity amount data and the electricity fee data.
For example, other department nodes in the power grid enterprise acquire the electric charge settlement list, check electric quantity data, electric charge data or other information in the electric charge settlement list, and generate corresponding check messages according to check results, wherein the check messages can indicate the authenticity and accuracy of the electric charge settlement list. Or, the first node may also send the electric charge settlement list to the corresponding power generation end, and the power generation end feeds back a corresponding verification message to the first node according to the verification result after verifying the electric charge settlement list. In some embodiments, the electric charge bill may have an error, and the check message may further include error information and/or a modified newly generated electric charge bill. Through the verification of the electric charge settlement list, the accuracy of electric charge settlement can be effectively improved, and the abnormal information of the electric quantity data can be found, so that the abnormal of the electric quantity data or the electric charge data can be processed in time.
S205: the first node will check the message uplink.
In this embodiment, after receiving the check message of the electric charge bill, the first node may link the check message. In some embodiments, the check message indicates that the electric charge account statement is faulty, and the first node may further send a notification after linking the check message to inform other nodes to synchronize the check message in time to update the electric charge account statement. By chaining the verification message, the block link points can timely acquire the verification results of the electric quantity data and the electric charge data and timely process the error of the electric quantity data, so that the efficiency of electric charge settlement is effectively improved, and the transparency and the accuracy of the electric charge settlement are improved.
When the power grid enterprise settles the electric charge, the power grid enterprise can inform the power generation enterprise to invoice according to the electric charge data, the power generation enterprise invoices after checking that the electric charge data is correct, and the financial department of the power grid enterprise pays the corresponding electric charge to complete the whole electric quantity transaction process. In order to improve transparency and security of the electricity fee settlement process, in some embodiments, the method may further include:
s206: the first node receives a payment message of the electricity charge settlement sheet.
The first node receives a payment message of the electricity charge settlement sheet. For example, the other nodes of the block chain form a payment message after paying according to the electric charge settlement list and send the payment message to the first node. Or the payment message can be formed after the first node pays according to the electric charge settlement list. The payment message may include payer information, payee information, payment amount, payment time, and the like. In some embodiments, the payer may pay each electric charge in the electric charge settlement list individually or in an installment payment manner, and the payment message may further include items and amounts of the electric charges paid specifically, or information of the installment payment time, the amount paid and the amount to be paid.
S207: the first node uplinks the payment message.
After the first node receives the payment message, the payment message can be linked and stored, so that other nodes of the block chain can acquire the payment result of the electric charge settlement list, the electric charge settlement result can be effectively supervised, and artificial cheating or careless mistakes can be reduced.
In this embodiment, the first node calculates the electricity fee data by calling the electricity fee settlement intelligent contract, so that the automatic settlement of the electricity fee data can be realized, the electricity fee settlement error is effectively reduced, and the settlement efficiency is improved. The first node can also store processing results of all steps in the whole process from classification, verification to settlement of the verification message and the payment message in a chaining mode, the processing results can not be tampered, and reliability and credibility of data in the service circulation and settlement process are effectively improved. And each block chain link point can effectively supervise the electric charge settlement, thereby improving the transparency and the safety of the electric charge settlement.
In the above-described embodiment, the sequence of S201 to S207 is the description sequence in the present embodiment, and is not limited to the sequence of the method in the execution process of the present embodiment. Some steps may be performed in either order or simultaneously, provided that the method is performed. This embodiment can be combined with the first embodiment of the block chain-based electricity fee settlement method of the present application.
Referring to fig. 6, fig. 6 is a schematic flowchart illustrating a third embodiment of the block chain-based electric charge settlement method according to the present invention. The present embodiment is explained in terms of multi-terminal interaction of the electric charge settlement system, and the present embodiment may refer to the description of the first embodiment and the second embodiment of the block chain-based electric charge settlement method in the present application, and the same steps are not described again. The embodiment comprises the following steps:
s301: and the second node acquires the electric quantity data of the power generation terminal.
The second node obtains corresponding electric quantity data by reading the electric quantity of a gateway meter installed at the grid connection point, for example. Or, the power generation end is provided with a corresponding data interface, and the second node can read corresponding electric quantity data from the data interface of the power generation end.
S302: and the second node uplinks the electric quantity data.
The second node uplinks the power data so that the power data is stored in the blockchain, and other nodes of the blockchain can synchronize the power data. The second node can also encrypt the electric quantity data, and then link the encrypted electric quantity data, so that the data security is improved. After the electric quantity data are linked up, the electric quantity decomposition intelligent contract of the block chain can be triggered automatically to classify the electric quantity data.
S303: the first node synchronizes the power data from the second node.
The first node synchronizes the traffic data in the blockchain by receiving a message on the traffic data link or by accessing the second node. The electric quantity data acquired by the first node is classified according to the electric quantity decomposition intelligent contract of the block chain. Or, the first node may also automatically trigger the electric quantity decomposition intelligent contract of the block chain to classify the electric quantity data when acquiring the electric quantity data. The electric quantity data classification can be specifically classified according to the identity information of the transaction terminal, the electric quantity type and the unit price of the electric quantity.
S304: and the first node calls the electric charge settlement intelligent contract on the blockchain to calculate the electric charge data of the electric quantity data.
When the first node calls the electricity charge settlement intelligent contract on the block chain to calculate the electricity charge data of the electricity quantity data, the electricity charge data of the electricity quantity data of each power generation terminal can be calculated respectively so as to separate the electricity charge data of each power generation terminal.
S305: the first node generates an electric charge settlement list according to the electric charge data.
The electricity charge settlement sheet lists the electricity quantity data and the electricity charge data of the electricity generation terminal in the form of a table, for example. The electric charge settlement list can be output to a corresponding display device for displaying. When the first node settles the electricity charge, the settlement can be separately carried out aiming at the electricity quantity data of each electricity generation end, so that the data isolation and the data differentiation are carried out, and the safety and the privacy of the transaction are ensured.
S306: the first node sends the electricity bill to the electricity generation end.
The first node sends the electricity charge settlement end to the power generation end, so that the power generation end can check the electric quantity data and the electricity charge data.
S307: the first node receives a check message of the electricity bill.
The first node receives a check message of the electric charge settlement list, wherein the check message can be a check message fed back after the power generation terminal checks the electric charge settlement list.
S308: the first node will check the message uplink.
S309: the first node receives a payment message of the electricity charge settlement sheet.
The payment message is, for example, a payment message formed after payment is made by the electricity charge settlement sheet of other nodes in the block chain. Or the payment message can be formed after the first node pays according to the electric charge settlement list.
S310: the first node uplinks the payment message.
The first node links the payment message for storage, so that other nodes of the block chain can acquire the payment result of the electric charge settlement list, the electric charge settlement result is effectively supervised, and artificial cheating or careless mistakes are reduced.
In this embodiment, the second node of the block chain stores the uplink of the electric quantity data, and other nodes of the block chain can synchronize the electric quantity data to perform data processing, so that the transfer speed of the electric quantity data is increased, the electric quantity data stored in the block chain cannot be tampered, and the reliability and the safety of the data are improved. The first node acquires the electric quantity data in the block chain, calculates the electric charge data by calling an electric charge settlement intelligent contract, can realize automatic settlement of the electric charge data, improves the electric charge settlement efficiency, can effectively save manual settlement cost, and greatly reduces calculation errors; the electric quantity data are classified according to the electric quantity decomposition intelligent contract of the block chain before settlement, so that the workload of the first node for electric charge settlement can be effectively reduced, the electric charge settlement speed is accelerated, errors can be reduced, and the accuracy of the electric charge data is improved.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an embodiment of an electronic device according to the present application. The electronic device 20 comprises a processor 21 and a memory 22. The processor 21 is coupled to a memory 22.
Memory 22 is used to store program instructions for execution by processor 21;
the processor 21 is configured to execute the program instructions to implement the steps of the first to second embodiments of the block chain-based electricity fee settlement method of the present application.
In the present embodiment, the processor 21 may also be referred to as a CPU (Central Processing Unit). The processor 21 may be an integrated circuit chip having signal processing capabilities. The processor 21 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
For more implementation procedures and contents of the electronic device 20 in this embodiment, reference may be made to the first embodiment and the second embodiment of the block chain-based electric charge settlement method in this application, which are not described herein again.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an embodiment of the memory device of the present application. The storage device 30 of the present embodiment is used for storing program instructions 31, and the program instructions 31 can be executed by a processor to implement the steps involved in the first and second embodiments of the block chain-based electricity charge settlement method of the present application. Specifically, the first embodiment and the second embodiment of the block chain-based electric charge settlement in the present application are referred to, and will not be described herein again.
The methods according to the first and second embodiments of block chain-based electricity charge settlement of the present application, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. The aforementioned storage device 30 includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, or other devices, such as a computer, including a storage medium.
The above description is only for the purpose of illustrating embodiments of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application or are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A block chain-based electricity charge settlement method, comprising:
a first node of the block chain acquires electric quantity data in the block chain;
calling an electric charge settlement intelligent contract on the block chain to calculate electric charge data of the electric quantity data;
and the electric quantity data is classified according to the electric quantity decomposition intelligent contract of the block chain.
2. The method of claim 1, wherein obtaining power data in the blockchain by a first node of the blockchain comprises:
the first node receives a message of the uplink of the electric quantity data;
synchronizing the power data from a second node of the blockchain in response to the uplink message for power data.
3. The method of claim 1, wherein obtaining power data in the blockchain by a first node of the blockchain comprises:
the first node accesses a second node of the block chain at preset intervals;
synchronizing the power level data from the second node.
4. The method of claim 3, wherein the first node accessing the second node of the block chain at preset intervals comprises:
the first node acquires a first block height of a block chain stored by the first node and a second block height of the block chain stored by the second node at preset interval time;
judging whether the second block height is larger than the first block height;
said synchronizing said power level data from said second node comprises:
if the second block height is larger than the first block height;
synchronizing the power level data from the second node.
5. The method of claim 1, wherein the invoking of the electricity charge settlement intelligent contract on the blockchain further comprises, after calculating the electricity charge data of the electricity quantity data:
and generating an electric charge settlement list according to the electric charge data.
6. The method of claim 5, wherein the power data includes power generation terminal identity information, and wherein generating a power bill settlement statement according to the power bill data includes:
and generating corresponding electric charge settlement lists respectively according to the identity information of the power generation terminals, wherein the electric charge settlement lists at least comprise electric quantity data and electric charge data corresponding to the identity information of the power generation terminals.
7. The method according to claim 5, wherein the step of generating the corresponding electricity fee settlement sheets according to the identity information of the electricity generation terminals comprises the following steps:
receiving a verification message of the electric charge settlement list;
and uplink the checking message.
8. The method according to claim 5, further comprising, after generating the corresponding electricity fee settlement sheets according to the identity information of the electricity generation terminals, respectively:
receiving a payment message of the electric charge settlement list;
and uplink the payment message.
9. An electronic device comprising a processor and a memory, the processor coupled to the memory; wherein the content of the first and second substances,
the memory is used for storing program instructions executed by the processor;
the processor is configured to execute the program instructions to implement the method according to any one of claims 1 to 8.
10. A storage device for storing program instructions executable by a processor to perform a method as claimed in any one of claims 1 to 8.
CN201910919421.7A 2019-09-26 2019-09-26 Block chain-based electric charge settlement method, electronic equipment and storage device Active CN110827007B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910919421.7A CN110827007B (en) 2019-09-26 2019-09-26 Block chain-based electric charge settlement method, electronic equipment and storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910919421.7A CN110827007B (en) 2019-09-26 2019-09-26 Block chain-based electric charge settlement method, electronic equipment and storage device

Publications (2)

Publication Number Publication Date
CN110827007A true CN110827007A (en) 2020-02-21
CN110827007B CN110827007B (en) 2024-04-19

Family

ID=69548628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910919421.7A Active CN110827007B (en) 2019-09-26 2019-09-26 Block chain-based electric charge settlement method, electronic equipment and storage device

Country Status (1)

Country Link
CN (1) CN110827007B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111798209A (en) * 2020-06-30 2020-10-20 远光软件股份有限公司 Engineering project management method based on block chain, electronic equipment and storage medium
CN114612067A (en) * 2022-03-10 2022-06-10 亚信科技(中国)有限公司 Data processing method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107578243A (en) * 2017-07-27 2018-01-12 远光软件股份有限公司 Electricity transaction method and device based on block chain technology
CN108632480A (en) * 2018-04-19 2018-10-09 北京阿尔山金融科技有限公司 Charging method based on block chain and device
US20180293557A1 (en) * 2017-04-05 2018-10-11 Samsung Sds Co., Ltd. Method of charging electronic currency automatically based on blockchain and system thereof
CN109191199A (en) * 2018-08-27 2019-01-11 国网能源研究院有限公司 Distributed energy charge settlement system and method based on block chain
CN109472593A (en) * 2018-10-10 2019-03-15 远光软件股份有限公司 A kind of settlement method based on block chain technology, device and block chain network
CN109559223A (en) * 2018-10-10 2019-04-02 远光软件股份有限公司 A kind of method of commerce based on block chain technology, device and block chain network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180293557A1 (en) * 2017-04-05 2018-10-11 Samsung Sds Co., Ltd. Method of charging electronic currency automatically based on blockchain and system thereof
CN107578243A (en) * 2017-07-27 2018-01-12 远光软件股份有限公司 Electricity transaction method and device based on block chain technology
CN108632480A (en) * 2018-04-19 2018-10-09 北京阿尔山金融科技有限公司 Charging method based on block chain and device
CN109191199A (en) * 2018-08-27 2019-01-11 国网能源研究院有限公司 Distributed energy charge settlement system and method based on block chain
CN109472593A (en) * 2018-10-10 2019-03-15 远光软件股份有限公司 A kind of settlement method based on block chain technology, device and block chain network
CN109559223A (en) * 2018-10-10 2019-04-02 远光软件股份有限公司 A kind of method of commerce based on block chain technology, device and block chain network

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111798209A (en) * 2020-06-30 2020-10-20 远光软件股份有限公司 Engineering project management method based on block chain, electronic equipment and storage medium
CN114612067A (en) * 2022-03-10 2022-06-10 亚信科技(中国)有限公司 Data processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110827007B (en) 2024-04-19

Similar Documents

Publication Publication Date Title
CN107240002B (en) Electric power transaction method and device and micro-grid system
CN107909358B (en) Energy settlement method, device and system
US11676122B2 (en) Operating smart sensors using distributed ledgers
US11748825B2 (en) Operating smart sensors using distributed ledgers
US11682086B2 (en) Operating smart sensors using distributed ledgers
CN109961365B (en) Account receiving record processing method and system based on block chain intelligent contract
CN106548402B (en) Resource transfer monitoring method and device
CN111585767B (en) Data exchange method and device for main chain and side chain
CN110599323A (en) Resource processing method and processing equipment
CN110827168A (en) Electric quantity data processing method based on block chain and electronic equipment
CN112488777B (en) Bill processing method and related device
CN111177758A (en) Distributed photovoltaic settlement method and system based on block chain
CN110827007B (en) Block chain-based electric charge settlement method, electronic equipment and storage device
CN111178887A (en) Distributed photovoltaic power generation and sale system and method based on block chain
CN108023735A (en) A kind of charging method based on dynamic resource
CN111506932A (en) Block chain calculation uplink implementation method
CN112487491A (en) Control method and related device for block chain system
CN111882273A (en) Service charge settlement method, device, equipment and storage medium based on block chain
CN107508687A (en) A kind of method, apparatus of charging, Internet of Things application platform and accounting server
CN110599133A (en) Data processing method and device based on block chain network and storage medium
CN111815444A (en) Block chain transaction method, electronic device and storage medium
CN110223132A (en) Order processing method, apparatus, terminal and storage medium based on more authorization roles
CN109598857A (en) A kind of energy storage message accounting
CN107316189B (en) User resource processing method and device
CN112270537B (en) Multi-channel bill storage method, system and storage medium

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
GR01 Patent grant
GR01 Patent grant