CN114866245B - Power data acquisition method and system based on block chain - Google Patents

Power data acquisition method and system based on block chain Download PDF

Info

Publication number
CN114866245B
CN114866245B CN202210285086.1A CN202210285086A CN114866245B CN 114866245 B CN114866245 B CN 114866245B CN 202210285086 A CN202210285086 A CN 202210285086A CN 114866245 B CN114866245 B CN 114866245B
Authority
CN
China
Prior art keywords
electric power
power data
data acquisition
terminal
internet
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.)
Active
Application number
CN202210285086.1A
Other languages
Chinese (zh)
Other versions
CN114866245A (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.)
Shandong Luruan Digital Technology Co Ltd
Original Assignee
Shandong Luruan Digital Technology 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 Shandong Luruan Digital Technology Co Ltd filed Critical Shandong Luruan Digital Technology Co Ltd
Priority to CN202210285086.1A priority Critical patent/CN114866245B/en
Publication of CN114866245A publication Critical patent/CN114866245A/en
Application granted granted Critical
Publication of CN114866245B publication Critical patent/CN114866245B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • H04L9/3239Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0816Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
    • H04L9/0819Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
    • H04L9/0825Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) using asymmetric-key encryption or public key infrastructure [PKI], e.g. key signature or public key certificates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S40/00Systems for electrical power generation, transmission, distribution or end-user application management characterised by the use of communication or information technologies, or communication or information technology specific aspects supporting them
    • Y04S40/20Information technology specific aspects, e.g. CAD, simulation, modelling, system security

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a block chain-based power data acquisition method and system, and relates to the field of power Internet of things, wherein the method comprises the following steps: the electric power data acquisition gateway encrypts the acquired terminal ID and electric power data of the electric power internet of things sensing terminal and the gateway ID of the electric power data acquisition gateway by utilizing a public key of the electric power data acquisition gateway issued by a block chain management platform, and sends the obtained encrypted data to a block chain proxy server; the blockchain proxy server decrypts the encrypted data by utilizing a private key of the power data acquisition gateway synchronized to the blockchain proxy server by the blockchain management platform to obtain the terminal ID, the power data and the gateway ID; and the blockchain proxy server stores the terminal ID, the power data and the gateway ID on the blockchain so as to synchronize to all the blockchain consensus nodes, thereby ensuring the safety and the reliability of the data of the power Internet of things.

Description

Power data acquisition method and system based on block chain
Technical Field
The invention relates to the field of electric power Internet of things, in particular to a block chain-based electric power data acquisition method and system.
Background
Along with the promotion of the construction of the electric power Internet of things of the national power grid company, more and more terminal equipment in each link of the electric power system needs to be connected to the Internet of things, and the access safety and the trustability of terminal data are important.
Disclosure of Invention
The embodiment of the invention provides a block chain-based power data acquisition method and system, aiming at ensuring the safety and credibility of data of an electric power Internet of things.
The embodiment of the invention provides a power data acquisition method based on a block chain, which comprises the following steps of: the electric power data acquisition gateway encrypts the acquired terminal ID and electric power data of the electric power internet of things sensing terminal and the gateway ID of the electric power data acquisition gateway by utilizing a public key of the electric power data acquisition gateway issued by a block chain management platform, and sends the obtained encrypted data to a block chain proxy server; the blockchain proxy server decrypts the encrypted data by utilizing a private key of the electric power data acquisition gateway synchronized to the blockchain proxy server by the blockchain management platform to obtain a terminal ID of the electric power internet of things sensing terminal, electric power data and a gateway ID of the electric power data acquisition gateway; and the blockchain proxy server stores the terminal ID and the power data of the power internet of things sensing terminal and the gateway ID of the power data acquisition gateway onto the blockchain so as to synchronize to all the blockchain consensus nodes.
Preferably, before the electric power data acquisition gateway encrypts the acquired terminal ID and electric power data of the electric power internet of things sensing terminal and the gateway ID of the electric power data acquisition gateway by using the public key of the electric power data acquisition gateway issued by the blockchain management platform, the method further includes: and the electric power data acquisition gateway assembles the terminal ID of the electric power internet of things sensing terminal, the electric power data and the gateway ID of the electric power data acquisition gateway into a data packet, and encrypts the data packet by utilizing the public key of the electric power data acquisition gateway.
Preferably, before the power data acquisition gateway assembles the terminal ID of the power internet of things sensing terminal, the power data and the gateway ID of the power data acquisition gateway into a data packet, the method further includes: and the electric power data acquisition gateway determines whether the electric power internet of things sensing terminal is a legal terminal according to the terminal ID of the electric power internet of things sensing terminal and the terminal equipment registration information in the local configuration file so as to assemble data packets when determining that the electric power internet of things sensing terminal is the legal terminal.
Preferably, before the power data acquisition gateway determines whether the power internet of things sensing terminal is a legal terminal, the method further comprises: the security encryption chip of the electric power data acquisition gateway acquires the terminal ID and the electric power data of the electric power internet of things sensing terminal, encrypts the terminal ID and the electric power data of the electric power internet of things sensing terminal and then sends the encrypted terminal ID and the encrypted electric power data to the main control chip of the electric power data acquisition gateway; and the main control chip of the electric power data acquisition gateway obtains the terminal ID and the electric power data of the electric power internet of things sensing terminal through decryption so as to perform corresponding processing based on the terminal ID and the electric power data of the electric power internet of things sensing terminal.
Preferably, the sending the obtained encrypted data to the blockchain proxy server by the power data collection gateway includes: and the VPN encryption transmission device of the electric power data acquisition gateway distributes the encrypted data to a theme agreed by a message queue of an Internet of things management platform in an encryption transmission mode so as to enable the blockchain proxy server serving as a subscriber of the theme to acquire the encrypted data from the theme.
Preferably, before the blockchain proxy server saves the terminal ID of the power internet of things sensing terminal and the power data as well as the gateway ID of the power data acquisition gateway onto the blockchain, the method further includes: and the blockchain proxy server determines whether the electric power data acquisition gateway is a legal gateway according to the gateway ID of the electric power data acquisition gateway and gateway equipment registration information of the electric power data acquisition gateway synchronized to the blockchain proxy server by the blockchain management platform.
Preferably, the storing, by the blockchain proxy server, the terminal ID of the power internet of things sensing terminal and the power data, and the gateway ID of the power data acquisition gateway onto the blockchain includes: when the blockchain proxy server determines that the electric power data acquisition gateway is a legal gateway, acquiring the operation authority of the blockchain management platform, which is synchronized to the blockchain proxy server and corresponds to the electric power internet of things sensing terminal; and if the operation authority corresponding to the electric power internet of things sensing terminal is the operation authority, the blockchain proxy server stores the terminal ID and the electric power data of the electric power internet of things sensing terminal onto a blockchain.
Preferably, the method further comprises: and when the blockchain proxy server determines that the electric power data acquisition gateway is a legal gateway, the terminal ID of the electric power internet of things sensing terminal, the electric power data and the gateway ID of the electric power data acquisition gateway are stored in a database for business application.
Preferably, the method further comprises: and if the electric power data acquisition gateway is not a legal gateway or the operation authority corresponding to the electric power internet of things perception terminal is no operation authority, the blockchain proxy server deletes the encrypted data received from the electric power data acquisition gateway.
The embodiment of the invention also provides a power data acquisition system based on the block chain, which comprises: the system comprises an electric power data acquisition gateway, a block chain proxy server and a block chain management platform, wherein the electric power data acquisition gateway is used for encrypting the acquired terminal ID of the sensing terminal of the electric power internet of things, electric power data and the gateway ID of the electric power data acquisition gateway by utilizing a public key of the electric power data acquisition gateway issued by the block chain management platform, and sending the obtained encrypted data to the block chain proxy server; and the blockchain proxy server is used for decrypting the encrypted data by utilizing the private key of the electric power data acquisition gateway which is synchronized to the blockchain proxy server by the blockchain management platform to obtain the terminal ID and the electric power data of the electric power internet of things sensing terminal and the gateway ID of the electric power data acquisition gateway, and storing the terminal ID and the electric power data of the electric power internet of things sensing terminal and the gateway ID of the electric power data acquisition gateway on the blockchain so as to synchronize to all the blockchain consensus nodes.
According to the electric power data acquisition method and system based on the blockchain, the electric power data acquisition gateway encrypts the acquired terminal ID and electric power data of the electric power internet of things sensing terminal and the gateway ID of the electric power data acquisition gateway by utilizing the public key of the electric power data acquisition gateway issued by the blockchain management platform, and sends the obtained encrypted data to the blockchain proxy server, and the blockchain proxy server decrypts the encrypted data by utilizing the private key of the electric power data acquisition gateway synchronized to the blockchain proxy server by utilizing the blockchain management platform, so that the terminal ID, the electric power data and the gateway ID are obtained, and the terminal ID, the electric power data and the gateway ID are stored on the blockchain to be synchronized to all blockchain consensus nodes, so that the safety and the reliability of the electric power internet of things data are ensured.
Drawings
FIG. 1 is a flow chart of a blockchain-based power data collection method provided by an embodiment of the present invention;
FIG. 2 is a schematic diagram of a block chain based power data acquisition system according to an embodiment of the present invention;
fig. 3 is a process flow diagram of a blockchain-based power data collection system according to an embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention. In the following description, suffixes such as "module", "part" or "unit" for representing elements are used only for facilitating the description of the present invention, and have no particular meaning in themselves. Thus, "module," "component," or "unit" may be used in combination.
Example 1
Fig. 1 is a flowchart of a blockchain-based power data collection method according to an embodiment of the present invention, as shown in fig. 1, the method may include the following steps:
step S101: the electric power data acquisition gateway encrypts the acquired terminal ID and electric power data of the electric power internet of things sensing terminal and the gateway ID of the electric power data acquisition gateway by utilizing the public key of the electric power data acquisition gateway issued by the blockchain management platform, and sends the obtained encrypted data to the blockchain proxy server.
Step S102: and the blockchain proxy server decrypts the encrypted data by utilizing the private key of the electric power data acquisition gateway synchronized to the blockchain proxy server by the blockchain management platform to obtain the terminal ID and the electric power data of the electric power internet of things sensing terminal and the gateway ID of the electric power data acquisition gateway.
In one embodiment, the electric power data acquisition gateway may assemble the terminal ID of the electric power internet of things sensing terminal, the electric power data and the gateway ID of the electric power data acquisition gateway into a data packet, and encrypt the data packet by using the public key of the electric power data acquisition gateway. After receiving the encrypted data, the blockchain proxy server can decrypt the encrypted data by using the private key of the electric power data acquisition gateway to obtain the data packet, and the terminal ID, the electric power data and the gateway ID are obtained by analyzing the data packet. In another embodiment, the electric power data acquisition gateway may encrypt the terminal ID and the electric power data and the gateway ID by using a public key of the electric power data acquisition gateway, and then packetize the encrypted electric power data and the gateway ID. After receiving the encrypted data, the blockchain proxy server analyzes the data packet to obtain the encrypted terminal ID, the electric power data and the gateway ID, and then decrypts the encrypted terminal ID, the electric power data and the gateway ID by utilizing the private key of the electric power data acquisition gateway to obtain the terminal ID, the electric power data and the gateway ID.
Step S103: and the blockchain proxy server stores the terminal ID and the power data of the power internet of things sensing terminal and the gateway ID of the power data acquisition gateway onto the blockchain so as to synchronize to all the blockchain consensus nodes.
The electric power data acquisition gateway of the embodiment of the invention encrypts the acquired terminal ID and electric power data of the electric power internet of things sensing terminal and the gateway ID of the electric power data acquisition gateway by utilizing the public key of the electric power data acquisition gateway issued by the blockchain management platform, and sends the obtained encrypted data to a blockchain proxy server, and the blockchain proxy server decrypts the encrypted data by utilizing the private key of the electric power data acquisition gateway synchronized to the blockchain proxy server by utilizing the blockchain management platform to obtain the terminal ID and the electric power data and the gateway ID; and the blockchain proxy server stores the terminal ID, the power data and the gateway ID on the blockchain so as to synchronize to all blockchain consensus nodes, thereby ensuring the safety and the credibility of the uplink power Internet of things data.
In order to ensure the safety and the credibility of the data of the electric power Internet of things to be uplinked, firstly, the safety and the credibility of the data source are ensured, namely, the safety and the credibility of the sensing terminal of the electric power Internet of things for providing the data are ensured. Therefore, before executing the above steps S101 to S103, the power internet of things sensing terminal needs to be registered in advance on the internet of things management platform. Specifically, the electric power internet of things sensing terminal initiates registration to an internet of things management platform through the electric power data acquisition gateway, so that terminal equipment registration information of the electric power internet of things sensing terminal is obtained, and the terminal equipment registration information at least comprises a terminal ID (identity) for uniquely identifying the electric power internet of things sensing terminal. In addition, the terminal device registration information is also configured into a local configuration file of the electric power data acquisition gateway, specifically a configuration file of a data acquisition service of the electric power data acquisition gateway. In this way, before processing the electric data of the electric power internet of things sensing terminal, the electric power data acquisition gateway determines whether the electric power internet of things sensing terminal is a legal terminal according to the terminal ID of the electric power internet of things sensing terminal and the terminal equipment registration information in the local configuration file, if so, the electric power data provided by the electric power internet of things sensing terminal is indicated to be credible, processing including packaging, encryption and the like can be performed, if not, the electric power data provided by the electric power internet of things sensing terminal is indicated to be unsafe and credible, other processing is performed at the moment, for example, access to the electric power internet of things sensing terminal is refused, and related data (such as terminal ID and electric power data) of the electric power internet of things sensing terminal is deleted. It should be noted that, the terminal device registration information in the local configuration file of the power data acquisition gateway may be configured into the local configuration file when the power internet of things sensing terminal is successfully registered, or may be queried and acquired from the internet of things management platform when the terminal device registration information of the power internet of things sensing terminal does not exist in the local configuration file.
After ensuring the safety and credibility of the electric power internet of things sensing terminal, the embodiment uses a safety encryption chip in the electric power data acquisition gateway because risks such as data theft and data tampering can exist when the data reaches the electric power data acquisition gateway. Specifically, the security encryption chip of the electric power data acquisition gateway is connected with the electric power internet of things sensing terminal through RS485 to obtain the terminal ID and the electric power data of the electric power internet of things sensing terminal, then the terminal ID and the electric power data of the electric power internet of things sensing terminal are encrypted and then sent to the main control chip of the electric power data acquisition gateway, the data security and the reliability are ensured, and the main control chip of the electric power data acquisition gateway obtains the terminal ID and the electric power data of the electric power internet of things sensing terminal through decryption so as to perform corresponding processing on the safe and reliable terminal ID and the electric power data of the electric power internet of things sensing terminal. It should be noted that, the encryption and decryption algorithm adopted by the security encryption chip and the main control chip of the electric power data acquisition gateway may use a symmetric encryption algorithm, or may use an asymmetric encryption algorithm, and the specific algorithm may use a known algorithm or may use an own algorithm.
Similarly, in order to ensure the security of data transmission when transmitting data between the power data acquisition gateway and the blockchain proxy server, the embodiment uses a VPN encryption transmission device in the power data acquisition gateway. When the method is implemented, the VPN encryption transmission device of the electric power data acquisition gateway distributes the encrypted data to a theme agreed by a message queue of an Internet of things management platform in an encryption transmission mode, so that the blockchain proxy server serving as a subscriber of the theme can acquire the encrypted data from the theme. VPN encryption transmission technology is a common technical means in the art, and is not described herein.
In order to ensure the safety and the credibility of the data of the electric power internet of things to be uplink, the safety and the credibility of the electric power data acquisition gateway are also ensured. Therefore, before performing the above steps S101 to S103, the power data collection gateway needs to be registered in advance on the blockchain management platform. Specifically, the electric power data acquisition gateway utilizes the blockchain management platform to issue a public key for the electric power data acquisition gateway to initiate an on-chain user registration request to the blockchain management platform so as to acquire a gateway ID (identity) for uniquely identifying the electric power data acquisition gateway. In addition, the blockchain management platform synchronizes public keys and private keys, operation authorities (such as execution authorities of intelligent contracts) and the like signed to the electric power data acquisition gateway to the blockchain proxy server, so that the blockchain proxy server can confirm the identity of the electric power data acquisition gateway and ensure the safety and the credibility of the data to be uplink by utilizing the synchronized information. In this way, before processing the power data of the power internet of things sensing terminal, the blockchain proxy server determines whether the power data acquisition gateway is a legal gateway according to the gateway ID of the power data acquisition gateway and gateway equipment registration information of the power data acquisition gateway synchronized to the blockchain proxy server by the blockchain management platform. If the operation authority of the electric power internet of things sensing terminal is legal, the block chain proxy server stores the terminal ID and the electric power data of the electric power internet of things sensing terminal on a block chain, and can also carry out data warehousing processing, and particularly, the block chain proxy server stores the terminal ID and the electric power data of the electric power internet of things sensing terminal and the gateway ID of the electric power data acquisition gateway on a database for business application, such as data query, data analysis, data display and the like. If not, the power data collection gateway and the provided data are not trusted, other processing is performed at this time, such as deleting the related data (such as terminal ID and power data) of the power data collection gateway, adding the power data collection gateway to a blacklist, and so on. It should be noted that, if the electric power data acquisition gateway is a legal gateway and the operation authority corresponding to the electric power internet of things sensing terminal is no operation authority, the blockchain proxy server deletes the encrypted data received from the electric power data acquisition gateway.
The embodiment can ensure the safety and credibility of the electric power internet of things sensing terminal and the electric power data acquisition gateway, and the safety and credibility of the data of transmission, processing and uplink, and ensure the safety and credibility, non-falsification, safety detection and traceability of the electric power data.
Example two
The adoption of safe and reliable access measures by the electric power internet of things proxy gateway is an important ring for ensuring the safe access of the electric power terminal. At present, in the process of accessing the electric power internet of things sensing terminal by the electric power internet of things proxy gateway, the types of accessed equipment are complex and various, and the security problems that data are easy to tamper and the like can exist in terminal authentication, data encryption transmission and the like. The current common electric power internet of things proxy gateway directly registers and authenticates the accessed electric power internet of things sensing terminal on the internet of things management platform, and then directly uploads the acquired data to the internet of things management platform through the VPN encryption box, and the data is forwarded to the service application system by the internet of things management platform. In order to solve the problem of safety and reliability of data of an electric power Internet of things, for example, the safety and reliability of the electric power data of an accessed electric power Internet of things sensing terminal, the invention discloses an electric power data acquisition method and system based on a blockchain, in particular to an electric power Internet of things proxy gateway, which introduces a blockchain technology, performs identity authentication verification on the accessed electric power Internet of things sensing terminal equipment, uses a national encryption algorithm to digitally sign and uplink the acquired data, and ensures the safety and reliability of the access of the electric power Internet of things sensing terminal equipment, the safety and reliability, non-tampering, safety monitoring and traceability of the data.
Fig. 2 is a schematic architecture diagram of a blockchain-based power data collection system according to an embodiment of the present invention, where, as shown in fig. 2, the blockchain-based power data collection system includes: the system comprises an electric power internet of things sensing terminal, an electric power data acquisition gateway, an internet of things management platform and a blockchain proxy server.
The electric power data acquisition gateway is matched with the blockchain management platform, the Internet of things management platform and the service system, so that the safety and the credibility of the Internet of things data are realized. The power data acquisition gateway comprises: the system comprises a network security encryption chip (namely a security encryption chip), a main control chip and a VPN encryption transmission device. The network security encryption chip is used for accessing the electric power internet of things sensing terminal and encrypting and decrypting through a key in the memory card; the main control chip stores a data acquisition program and is mainly used for equipment registration, equipment management, gateway identity authentication, data reading, data processing and data uploading; and the VPN encryption transmission device is used for establishing a communication channel between the electric power data acquisition gateway and the electric power private network.
The Internet of things management platform is mainly used for registering the sensing terminal of the electric power Internet of things and storing and forwarding data.
The block chain proxy server is mainly used for data warehouse entry and data uplink.
Wherein the blockchain management platform is used for key issuing, gateway registration, authority control and data signature and certification
The service application system stores real-time data of the power internet of things sensing terminal and performs other service processing.
Fig. 3 is a process flow diagram of a blockchain-based power data collection system according to an embodiment of the present invention, where, as shown in fig. 3, the process may be as follows:
step one: public and private keys of the power data acquisition gateway are issued through a blockchain CA center of the blockchain management platform, on-chain user registration is carried out on the blockchain management platform by using the public keys, unique identification cid is obtained, and cid is configured into a configuration file of data acquisition service of the power data acquisition gateway.
Step two: the blockchain manager distributes the authority of reading and writing original transaction or executing contract for the gateway user, binds the mapping relation between the electric power data acquisition gateway and the cid, and synchronizes the gateway user, the authority information and the public and private key of the electric power data acquisition gateway to a server of a blockchain proxy service, hereinafter referred to as a blockchain proxy server.
Step three: 4 paths of RS485 led out by a safety encryption chip of the electric power data acquisition gateway are connected to the charging pile, the photovoltaic, the energy storage and the electric power Internet of things sensing terminal on the power grid at the charging station, and the safety encryption chip reads terminal data and encrypts and transmits the terminal data to the main control chip through an internal Ethernet interface.
Step four: the data acquisition service on the main control chip calls the safety encryption chip equipment information reading interface to read the equipment information of the electric power internet of things sensing terminal, checks whether the registration information of the terminal on the internet of things management platform exists in the local storage, applies for inquiring the registration information from the internet of things management platform if the registration information does not exist in the local storage, and stores the registration information into the local configuration file if the registration information of the sensing equipment exists in the internet of things management platform, otherwise, marks the registration information as illegal equipment.
Step five: the main control chip data acquisition service calls the security encryption chip data reading interface to acquire real-time data of the electric power internet of things sensing terminal, the legal data acquired by the electric power internet of things sensing terminal, the electric power data acquisition gateway cid and the registration id of the electric power internet of things sensing terminal are assembled into a data packet according to a self-defined data interaction protocol, HASH digital signature is carried out on the data packet (namely, encryption is carried out by adopting a public key of the electric power data acquisition gateway), and then the data packet is issued on a theme agreed by an internet of things management platform message queue, wherein the format of the data packet is as follows:
{
gatewayid:jHb9CJAWyB4jr91VRWn96DkukG4bwdtyTh
devdata:[{
devid:D11510632YVCg
voltage:220
electricity:5
power:7
electricquantity:3.5
},{
devid:D731037d6hrf
voltage:220
electricity:5
power:7
electricquantity:4.2
},...
]
}
step six: the block chain proxy server receives the information in the subject appointed by the message queue of the Internet of things management platform, verifies the HASH digital signature (namely adopts the private key of the electric power data acquisition gateway to decrypt the information), analyzes the electric power data acquisition gateway cid in the information, verifies the identity legitimacy and the data operation authority of the electric power data acquisition gateway, and discards the gateway data with illegal or no operation authority.
Step seven: the block chain proxy server analyzes the message to obtain the registration id of the electric power Internet of things sensing terminal and the acquired data of the electric power Internet of things sensing terminal, calls a data storage service to store the data in a real-time database InfluxDB, and meanwhile calls a block chain intelligent contract to store the data on a block chain for verification, and the block chain synchronizes account book information on all consensus nodes through a PBFT consensus algorithm. The account book information comprises at least one registration id of the electric power internet of things sensing terminal and acquired data, and the cid of the electric power data acquisition gateway to which the electric power internet of things sensing terminal is connected.
In summary, the invention has the following advantages:
1. and the blockchain technology is adopted in the electric power internet of things proxy gateway, the electric power internet of things proxy gateway is used as an account of the blockchain, and the collected data is subjected to HASH digital signature by using an encryption algorithm, so that the safety and the credibility of the uplink electric power internet of things data are ensured.
2. The computing and storage capacity of the blockchain is expanded through the under-chain service application system, the blockchain solves the problem of data information island of the electric power Internet of things, realizes effective collaboration of on-chain data and under-chain data, ensures the relevance and consistency of the on-chain data and the under-chain data, prevents the under-line data from being tampered, and monitors and traces the data safely.
The preferred embodiments of the present invention have been described above with reference to the accompanying drawings, and thus do not limit the scope of the claims of the present invention. Any modifications, equivalent substitutions and improvements made by those skilled in the art without departing from the scope and spirit of the present invention shall fall within the scope of the appended claims.

Claims (7)

1. A blockchain-based power data collection method, the method comprising the steps of:
the method comprises the steps that a public key and a private key are issued for an electric power data acquisition gateway by a blockchain management platform, so that on-chain user registration is conducted on the blockchain management platform by using the public key, a unique identifier cid of the electric power data acquisition gateway is obtained, and the cid of the electric power data acquisition gateway is configured into a configuration file of a data acquisition service of the electric power data acquisition gateway;
the blockchain management platform distributes the authority of read-write native transaction or contract execution for the electric power data acquisition gateway registered on the blockchain management platform, and synchronizes the cid and the authority of the electric power data acquisition gateway registered on the blockchain management platform and the public and private key of the electric power data acquisition gateway to a blockchain proxy server;
after a security encryption chip of the electric power data acquisition gateway reads a terminal ID and electric power data of an electric power internet of things sensing terminal, encrypting the terminal ID and the electric power data, and transmitting the encrypted terminal ID and the electric power data to a main control chip of the electric power data acquisition gateway through an internal Ethernet interface;
after decrypting the terminal ID and the power data, the main control chip of the power data acquisition gateway checks whether the power internet of things sensing terminal is registered on an internet of things management platform or not through the terminal ID of the power internet of things sensing terminal so as to determine whether the power internet of things sensing terminal is legal or not;
when the main control chip of the electric power data acquisition gateway determines that the electric power internet of things sensing terminal is legal, a public key issued by the blockchain management platform is utilized to carry out HASH digital signature on the legal terminal ID of the electric power internet of things sensing terminal, electric power data and cid of the electric power data acquisition gateway to obtain encrypted data, and the encrypted data is sent to the internet of things management platform through a VPN encryption transmission device of the electric power data acquisition gateway;
after the block chain proxy server receives the encrypted data from the Internet of things management platform, the block chain management platform is utilized to issue and synchronize the encrypted data to a private key of the block chain proxy server, and HASH digital signature verification is carried out on the encrypted data so as to obtain legal terminal ID and electric data of the electric power Internet of things sensing terminal and cid of the electric power data acquisition gateway;
the blockchain proxy server checks whether the electric power data acquisition gateway is a legal gateway registered on the blockchain management platform and has operation authority through the cid of the electric power data acquisition gateway;
and when the block chain proxy server determines that the electric power data acquisition gateway is legal and has an operation right, the terminal ID and the electric power data of the electric power internet of things sensing terminal and the cid of the electric power data acquisition gateway are stored in a real-time database of a service application system, and are stored in a block chain for verification so as to be synchronized to all block chain consensus nodes, so that effective coordination of the data under the chain and the data on the chain is realized.
2. The method of claim 1, wherein the performing HASH digital signature on the legal terminal ID and the power data of the power internet of things sensing terminal and the cid of the power data acquisition gateway by using the public key issued by the blockchain management platform to obtain the encrypted data comprises:
and the electric power data acquisition gateway assembles the terminal ID and the electric power data of the electric power internet of things sensing terminal and the cid of the electric power data acquisition gateway into a data packet, and encrypts the data packet by utilizing a public key issued by the blockchain management platform.
3. The method of claim 1, wherein the verifying, by the terminal ID of the power internet of things aware terminal, whether the power internet of things aware terminal is registered on an internet of things management platform to determine whether the power internet of things aware terminal is legitimate comprises:
the main control chip of the electric power data acquisition gateway inquires the registration information of the terminal equipment in a local configuration file according to the terminal ID of the electric power internet of things sensing terminal;
if the local configuration file contains the terminal equipment registration information of the electric power internet of things sensing terminal, determining that the electric power internet of things sensing terminal is legal;
if the local configuration file does not have the terminal equipment registration information of the electric power internet of things sensing terminal, inquiring whether the internet of things management platform has the terminal equipment registration information, determining that the electric power internet of things sensing terminal is legal when the internet of things management platform exists, and storing the existing terminal equipment registration information of the electric power internet of things sensing terminal into the local configuration file;
and if the local configuration file and the Internet of things management platform do not have the terminal equipment registration information of the electric power Internet of things sensing terminal, determining that the electric power Internet of things sensing terminal is illegal.
4. The method of claim 1, wherein the transmitting the encrypted data to the internet of things management platform by the VPN encrypted transmission device of the power data collection gateway comprises:
and the VPN encryption transmission device of the electric power data acquisition gateway distributes the encrypted data to a theme appointed by a message queue of an internet of things management platform in an encryption transmission mode so as to enable the blockchain proxy server serving as a subscriber of the theme to acquire the encrypted data from the theme.
5. The method of any of claims 1-4, wherein the blockchain proxy server verifying, by the cid of the power data collection gateway, whether the power data collection gateway is a legitimate gateway that has been registered on the blockchain management platform and has operational rights comprises:
the blockchain proxy server determines whether the electric power data acquisition gateway is a legal gateway according to the cid of the electric power data acquisition gateway and the cid of the electric power data acquisition gateway registered on the blockchain management platform, which are synchronized to the blockchain proxy server by the blockchain management platform;
and when the blockchain proxy server determines that the power data acquisition gateway is a legal gateway, acquiring the authority of the blockchain management platform synchronized to the blockchain proxy server so as to determine whether the legal gateway has operation authority.
6. The method of claim 5, wherein the method further comprises:
and if the electric power data acquisition gateway is not a legal gateway or the legal gateway has no operation authority, the block chain proxy server deletes the encrypted data received from the electric power data acquisition gateway.
7. A blockchain-based power data acquisition system, the system comprising:
the system comprises a block chain management platform, a block chain proxy server, a block chain management platform and a block chain proxy server, wherein the block chain management platform is used for issuing public and private keys for an electric power data acquisition gateway so as to perform on-chain user registration on the block chain management platform by using the public keys, acquiring unique identifiers cid of the electric power data acquisition gateway, configuring the cid of the electric power data acquisition gateway into a configuration file of data acquisition service of the electric power data acquisition gateway, distributing read-write native transaction or contract executing authority for the electric power data acquisition gateway registered on the block chain management platform, and synchronizing the cid and authority of the electric power data acquisition gateway registered on the block chain management platform and the public and private keys of the electric power data acquisition gateway to the block chain proxy server;
the power data acquisition gateway comprises a safety encryption chip, a main control chip and a VPN encryption transmission device, wherein the safety encryption chip is used for encrypting a terminal ID and power data of a power internet of things sensing terminal after reading the terminal ID and the power data of the power internet of things sensing terminal, transmitting the terminal ID and the power data to the main control chip of the power data acquisition gateway through an internal Ethernet interface, the main control chip is used for verifying whether the power internet of things sensing terminal is registered on an internet of things management platform or not through the terminal ID of the power internet of things sensing terminal after decrypting the terminal ID and the power data so as to determine whether the power internet of things sensing terminal is legal or not, and when determining that the power internet of things sensing terminal is legal, carrying out HASH digital signature on the legal terminal ID and the power data of the power internet of things sensing terminal and the cid of the power data acquisition gateway by utilizing the VPN encryption transmission device to send the encrypted data to the internet of things management platform;
and the blockchain proxy server is used for carrying out HASH digital signature verification on the encrypted data by utilizing a private key of the blockchain proxy server after receiving the encrypted data from the Internet of things management platform, utilizing the blockchain management platform to issue and synchronize the encrypted data to obtain legal terminal IDs and power data of the power Internet of things sensing terminals and the cid of the power data acquisition gateway, checking whether the power data acquisition gateway is a legal gateway registered on the blockchain management platform and has operation authority or not through the cid of the power data acquisition gateway, and storing the terminal IDs and the power data of the power Internet of things sensing terminals and the cid of the power data acquisition gateway to a real-time database of a service application system when determining that the power data acquisition gateway is legal and has operation authority, and simultaneously storing the certificate to synchronize to all blockchain consensus nodes so as to realize effective cooperation of the data under the chain and the data on the chain.
CN202210285086.1A 2022-03-22 2022-03-22 Power data acquisition method and system based on block chain Active CN114866245B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210285086.1A CN114866245B (en) 2022-03-22 2022-03-22 Power data acquisition method and system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210285086.1A CN114866245B (en) 2022-03-22 2022-03-22 Power data acquisition method and system based on block chain

Publications (2)

Publication Number Publication Date
CN114866245A CN114866245A (en) 2022-08-05
CN114866245B true CN114866245B (en) 2024-04-09

Family

ID=82627984

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210285086.1A Active CN114866245B (en) 2022-03-22 2022-03-22 Power data acquisition method and system based on block chain

Country Status (1)

Country Link
CN (1) CN114866245B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115314227B (en) * 2022-10-10 2023-01-20 广东电网有限责任公司江门供电局 Charging pile access authentication method, system and equipment
CN115967563B (en) * 2022-12-23 2024-05-28 四川启睿克科技有限公司 Block chain-based energy data acquisition and uplink method
CN115865538A (en) * 2023-02-24 2023-03-28 中国信息通信研究院 Block chain data uplink method, device, electronic equipment and storage medium

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205283598U (en) * 2015-12-25 2016-06-01 广东纬德信息科技有限公司 Thing networking safe gateway device
CN108632018A (en) * 2018-05-09 2018-10-09 合肥达朴汇联科技有限公司 A kind of includes the device of the block chain node as sender
CN109194761A (en) * 2018-09-18 2019-01-11 北京工业大学 A kind of acquisition of LORA environment of internet of things data and cochain implementation method based on edge calculations and block chain
CN109951286A (en) * 2018-11-15 2019-06-28 陕西医链区块链集团有限公司 A kind of encrypted authentication system and method for medical treatment block chain communication system
EP3582439A1 (en) * 2018-06-11 2019-12-18 Paradox Engineering Sa Method for providing an over the air (ota) update to devices of an internet of things (iot) platform
CN111447067A (en) * 2020-03-19 2020-07-24 江苏方天电力技术有限公司 Encryption authentication method for power sensing equipment
CN111654103A (en) * 2020-05-25 2020-09-11 江苏方天电力技术有限公司 Intelligent management and control method for power distribution station room
CN212086236U (en) * 2020-06-17 2020-12-04 中国联合网络通信有限公司广州市分公司 Environmental monitoring data acquisition and processing system based on block chain
CN112217876A (en) * 2020-09-22 2021-01-12 远光软件股份有限公司 Internet of things system, Internet of things communication method and electronic equipment
CN112600892A (en) * 2020-12-07 2021-04-02 北京邮电大学 Block chain equipment and system for Internet of things and working method
CN112804310A (en) * 2020-12-31 2021-05-14 河南中盾云安信息科技有限公司 Multi-chain intelligent security gateway for application of Internet of things and implementation method
CN213906816U (en) * 2020-07-08 2021-08-06 厦门佰马科技有限公司 Safety communication gateway with built-in encryption chip
CN113221184A (en) * 2021-03-27 2021-08-06 重庆邮电大学 Internet of things system and device based on block chain network
CN113472869A (en) * 2021-06-25 2021-10-01 国网山西省电力公司营销服务中心 Certifiable power data security management method based on block chain
WO2021219086A1 (en) * 2020-04-29 2021-11-04 青岛海尔滚筒洗衣机有限公司 Data transmission method and system based on blockchain
CN114023031A (en) * 2021-11-26 2022-02-08 河南中盾云安信息科技有限公司 Intelligent fire-fighting management system and method for small and micro-place based on 5G technology

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205283598U (en) * 2015-12-25 2016-06-01 广东纬德信息科技有限公司 Thing networking safe gateway device
CN108632018A (en) * 2018-05-09 2018-10-09 合肥达朴汇联科技有限公司 A kind of includes the device of the block chain node as sender
EP3582439A1 (en) * 2018-06-11 2019-12-18 Paradox Engineering Sa Method for providing an over the air (ota) update to devices of an internet of things (iot) platform
CN109194761A (en) * 2018-09-18 2019-01-11 北京工业大学 A kind of acquisition of LORA environment of internet of things data and cochain implementation method based on edge calculations and block chain
CN109951286A (en) * 2018-11-15 2019-06-28 陕西医链区块链集团有限公司 A kind of encrypted authentication system and method for medical treatment block chain communication system
CN111447067A (en) * 2020-03-19 2020-07-24 江苏方天电力技术有限公司 Encryption authentication method for power sensing equipment
WO2021219086A1 (en) * 2020-04-29 2021-11-04 青岛海尔滚筒洗衣机有限公司 Data transmission method and system based on blockchain
CN111654103A (en) * 2020-05-25 2020-09-11 江苏方天电力技术有限公司 Intelligent management and control method for power distribution station room
CN212086236U (en) * 2020-06-17 2020-12-04 中国联合网络通信有限公司广州市分公司 Environmental monitoring data acquisition and processing system based on block chain
CN213906816U (en) * 2020-07-08 2021-08-06 厦门佰马科技有限公司 Safety communication gateway with built-in encryption chip
CN112217876A (en) * 2020-09-22 2021-01-12 远光软件股份有限公司 Internet of things system, Internet of things communication method and electronic equipment
CN112600892A (en) * 2020-12-07 2021-04-02 北京邮电大学 Block chain equipment and system for Internet of things and working method
CN112804310A (en) * 2020-12-31 2021-05-14 河南中盾云安信息科技有限公司 Multi-chain intelligent security gateway for application of Internet of things and implementation method
CN113221184A (en) * 2021-03-27 2021-08-06 重庆邮电大学 Internet of things system and device based on block chain network
CN113472869A (en) * 2021-06-25 2021-10-01 国网山西省电力公司营销服务中心 Certifiable power data security management method based on block chain
CN114023031A (en) * 2021-11-26 2022-02-08 河南中盾云安信息科技有限公司 Intelligent fire-fighting management system and method for small and micro-place based on 5G technology

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
区块链技术在电力物联网中的应用现状与前景展望;康文博;汤卓凡;郑庆荣;茅伟杰;戴人杰;邹海涵;刘明川;罗晨曦;;电力与能源;20200428(02);全文 *

Also Published As

Publication number Publication date
CN114866245A (en) 2022-08-05

Similar Documents

Publication Publication Date Title
CN114866245B (en) Power data acquisition method and system based on block chain
CN102870093B (en) Utilize the virtual system and method with proving multiple client in remote maintenance electric network
CN101401387B (en) Access control protocol for embedded devices
CN102448061B (en) Method and system for preventing phishing attack on basis of mobile terminal
US20060206433A1 (en) Secure and authenticated delivery of data from an automated meter reading system
US8274401B2 (en) Secure data transfer in a communication system including portable meters
US20070257813A1 (en) Secure network bootstrap of devices in an automatic meter reading network
CN101447907A (en) VPN secure access method and system thereof
CN107517221B (en) Centerless safe and trusted auditing method
CN110879897A (en) Block chain-based power data security protection method
CN101388774A (en) Method for automatically authenticate and recognize customer identity between different customers and login
CN103312691A (en) Method and system for authenticating and accessing cloud platform
CN110381075B (en) Block chain-based equipment identity authentication method and device
CN113079215B (en) Block chain-based wireless security access method for power distribution Internet of things
CN105656920A (en) Method and system for encryption and decryption of mailing data based on expressage
CN113569213A (en) Industrial park application safety support system and method based on 5G technology
CN102984045A (en) Access method of Virtual Private Network and Virtual Private Network client
CN104468074A (en) Method and equipment for authentication between applications
US7941668B2 (en) Method and system for securely managing application transactions using cryptographic techniques
JPH11265349A (en) Computer system and secret protection method, transmitting/receiving log management method, mutual checking method, and a disclosed key generation management method to be applied to its system
CN101345723A (en) Management authentication method and system of client gateway
CN114172740A (en) Distribution network certificate verification-based power distribution network secure access method
CN112132581B (en) PKI identity authentication system and method based on IOTA
CN113242235A (en) System and method for encrypting and authenticating railway signal secure communication protocol RSSP-I
CN209882108U (en) Device for mobile phone terminal to safely access information network

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