CN110290157B - Metering terminal trusted access device and method for power distribution and utilization scene - Google Patents

Metering terminal trusted access device and method for power distribution and utilization scene Download PDF

Info

Publication number
CN110290157B
CN110290157B CN201910774470.6A CN201910774470A CN110290157B CN 110290157 B CN110290157 B CN 110290157B CN 201910774470 A CN201910774470 A CN 201910774470A CN 110290157 B CN110290157 B CN 110290157B
Authority
CN
China
Prior art keywords
terminal
data
trusted access
metering
metering terminal
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
CN201910774470.6A
Other languages
Chinese (zh)
Other versions
CN110290157A (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.)
Guangdong Power Grid Co Ltd
Dongguan Power Supply Bureau of Guangdong Power Grid Co Ltd
Original Assignee
Guangdong Power Grid Co Ltd
Dongguan Power Supply Bureau of Guangdong Power Grid 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 Guangdong Power Grid Co Ltd, Dongguan Power Supply Bureau of Guangdong Power Grid Co Ltd filed Critical Guangdong Power Grid Co Ltd
Priority to CN201910774470.6A priority Critical patent/CN110290157B/en
Publication of CN110290157A publication Critical patent/CN110290157A/en
Application granted granted Critical
Publication of CN110290157B publication Critical patent/CN110290157B/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
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0823Network architectures or network communication protocols for network security for authentication of entities using certificates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Abstract

the invention discloses a metering terminal trusted access device and method facing an electricity distribution scene, and the metering terminal trusted access device comprises a metering terminal trusted access module, a terminal data trusted access module and a block transaction module; the metering terminal trusted access module comprises public and private key registration, equipment information uplink and verification equipment information; the terminal data trusted access module comprises data private key encryption, uploading to a block chain and consensus storage; the block transaction module comprises an initiating transaction module, a block consensus module and a transaction storage module; by adopting the block chain as a trusted access third party, the traceable transaction information stored in a distributed manner is realized, the safety of the equipment information and data is guaranteed, and the problem of non-trust of safety caused by a centralized mechanism in the prior art is solved.

Description

Metering terminal trusted access device and method for power distribution and utilization scene
Technical Field
The embodiment of the invention relates to the technical field of network security, in particular to a metering terminal trusted access device and method for a power distribution and utilization scene.
Background
with the gradual complexity of power distribution and utilization information in China, the number of manufacturers of the metering terminals is large at present, and huge economic loss is brought to a power grid by using the loopholes of equipment to steal and leak power. Therefore, how to perform access authentication on the metering terminal and how to ensure the credible storage of the power distribution and utilization data is a safety problem which needs to be solved urgently.
the traditional trusted access of the terminal equipment mainly adopts third-party security authentication, and has the security and trust problems commonly existing in a centralized mechanism. With the increasing of terminal devices, trusted access becomes an urgent problem to be solved. The block chain provides a solution for the problems by the characteristics of non-tampering, traceability, programmability and decentralization, and can ensure the trusted access of the metering terminal and the decentralization trust mechanism.
however, the trusted access device in the prior art has the following disadvantages:
(1) The patent number CN104735054A discloses a trusted access platform and an authentication method for digital home equipment, which are used for unified access of various heterogeneous equipment of a digital home, and on the basis that a trusted module built in the home equipment measures the integrity of the equipment, the integrity verification of the equipment to be accessed into the home equipment is realized; meanwhile, the joint equipment manufacturer completes the verification of the authenticity and the legality of the equipment through the equipment manufacturer server owned by the joint equipment manufacturer. However, this solution cannot guarantee that the trustfully accessed device is not counterfeited by other malicious devices, thereby generating false data;
(2) the patent number CN106331206A, "a trusted access authentication method for user equipment based on proxy", proposes to perform bidirectional verification with an authentication server and perform authority judgment at a parent node, but the connection mode is similar to TCP, and three handshakes are required, which greatly increases the time overhead, although trusted access can be ensured, the steps are complicated in the past and also increase the difficulty of trusted access;
(3) the patent No. CN102904731A discloses a "mobile device trusted access method based on digital certificate", which is trusted access for mobile devices, and solves the problem of counterfeit identity of a master station, but the issuance of the certificate is issued by a centralized CA system, and a centralized mechanism still has certain security problems, and does not get rid of the security problems of the traditional centralized server.
disclosure of Invention
The invention provides a metering terminal trusted access device and method for a power distribution and utilization scene, and aims to overcome the defects in the prior art.
In order to achieve the above purpose, the present invention provides the following technical solutions:
In a first aspect, an embodiment of the present invention provides a metering terminal trusted access method for an electricity distribution scenario, including the following steps:
S100, starting the data communication gateway, sending a datagram for reading and metering a terminal ID to each terminal device connected with the data communication gateway, and returning an effective return value to the data communication gateway by the terminal device;
s200, the data communication gateway continuously sends a request for reading the datagram to a terminal device port connected with the data communication gateway, and stores the returned data information in a local Redis database;
S300, the data communication gateway inquires whether a local Redis database has a record of the metering terminal ID, if so, step S500 is executed, and if not, step S400 is executed;
S400, the data communication gateway stores the received data in a local Redis database, simultaneously registers a public and private key and submits a request for registering a metering terminal ID to an HTTP server, after the registration is successful, the data communication gateway records the public and private key in the Redis database, and then the step S100 is continuously executed;
S500, the user carries out transaction to the service system through the HTTP server.
further, in the metering terminal trusted access method for the power distribution and utilization scene, the data communication gateway encrypts the collected data information by using a private key and sends the encrypted data information to the HTTP server, and the HTTP server sends a data reading request to the metering terminal at regular time and uploads the data to the block chain.
Further, in the metering terminal trusted access method for the power distribution and utilization scenario, the data communication gateway in S400 stores the received data as a key value of the data in a Redis database, and the data of each terminal device as a real value is stored in a corresponding key value.
in a second aspect, based on a metering terminal trusted access method, an embodiment of the present invention provides a metering terminal trusted access device for a power distribution scenario, including a metering terminal trusted access module, a terminal data trusted access module, and a block transaction module;
the metering terminal trusted access module comprises public and private key registration, equipment information uplink and verification equipment information;
The terminal data trusted access module comprises data private key encryption, uploading to a block chain and consensus storage;
The block transaction module comprises an initiating transaction, a block consensus and a transaction storage.
furthermore, in the metering terminal trusted access device facing the electricity distribution scene, the metering terminal trusted access device enters a block transaction module of the system after passing through the metering terminal trusted access module and the terminal data trusted access module.
Furthermore, in the metering terminal trusted access device for the electricity distribution scene, a system architecture attached to the metering terminal trusted access device comprises a metering terminal, a block chain and a service system, and the metering terminal, the block chain and the service system are interacted through an HTTP server.
further, in the metering terminal trusted access device facing the electricity distribution scene, the metering terminal trusted access module initiates public and private key registration to a CA certificate mechanism of a service system through the metering terminal, the metering terminal stores the private key, the metering terminal uploads the public key and equipment information to a block chain for equipment information uplink, and the block chain transmits the equipment information to an equipment manufacturer for equipment information verification.
Furthermore, in the metering terminal trusted access device facing the electricity distribution scene, the terminal data trusted access module encrypts collected data information through a private key of the metering terminal by the metering terminal and uploads the encrypted data information to the block chain, and the block chain decrypts the data through a stored public key to realize consensus storage.
further, in the metering terminal trusted access device for the distribution and utilization scenario, the terminal includes a data communication gateway and a metering terminal, and each data communication gateway may be connected to a plurality of metering terminals.
The embodiment of the invention has the following advantages:
(1) The block chain is used as a data platform at the bottom layer, so that data are stored on each node of the block chain platform in a distributed mode, and the safety of equipment information and data is guaranteed by the aid of the non-tampering property of the block chain;
(2) The invention enables the user to customize the data format and the data uploading time acquired by the metering terminal, and improves the autonomy of the metering terminal;
(3) Aiming at the problem of trusted access of the metering terminal and data, the flow of the metering terminal trusted access device is reduced and stored in a block chain, all the steps are automatically triggered and executed in an intelligent contract mode, the problems of high labor cost and complex flow in the traditional management are effectively solved, the efficiency of trusted access of the metering terminal and the data is effectively improved, and the cost is reduced.
drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
The structures, ratios, sizes, and the like shown in the present specification are only used for matching with the contents disclosed in the specification, so as to be understood and read by those skilled in the art, and are not used to limit the conditions that the present invention can be implemented, so that the present invention has no technical significance, and any structural modifications, changes in the ratio relationship, or adjustments of the sizes, without affecting the effects and the achievable by the present invention, should still fall within the range that the technical contents disclosed in the present invention can cover.
Fig. 1 is a system architecture diagram of a trusted access device of a metering terminal according to the present invention;
fig. 2 is a system series diagram of a trusted access device of a metering terminal provided by the present invention;
Fig. 3 is a flowchart of a trusted access module of a metering terminal according to the present invention;
Fig. 4 is a flowchart of a trusted terminal data access module provided in the present invention;
Fig. 5 is a system module block diagram of a metering terminal trusted access device provided by the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the embodiments described below are only a part of the embodiments of the present invention, 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 invention.
in the description of the present invention, it is to be understood that when an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. When a component is referred to as being "disposed on" another component, it can be directly on the other component or intervening components may also be present.
Furthermore, the terms "long", "short", "inner", "outer", and the like indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience of describing the present invention, but do not indicate or imply that the referred devices or elements must have the specific orientations, be configured to operate in the specific orientations, and thus are not to be construed as limitations of the present invention.
The technical scheme of the invention is further explained by the specific implementation mode in combination with the attached drawings.
as shown in fig. 1 to 5, in the embodiment of the present invention, a block chain is used as a trusted access third party, so as to implement traceable transaction information stored in a distributed manner, ensure the security of device information and data, and solve the problem of security untrusted caused by a centralized mechanism in the prior art.
As shown in fig. 5, in combination with demand analysis and system architecture design, a metering terminal trusted access client in a power distribution and utilization scenario can be divided into three functional modules, namely a metering terminal trusted access module, a terminal data trusted access module, and a block transaction module, where the metering terminal trusted access module includes: public and private key registration, equipment information uplink and equipment information verification. The terminal data trusted access module comprises three sub-modules of data private key encryption, uploading to a block chain and consensus storage; the block transaction module is divided into three sub-modules of transaction initiation, block consensus and transaction storage.
aiming at the problem of trusted access of the metering terminal and data, the flow of the metering terminal trusted access device is reduced and stored in a block chain, all the steps are automatically triggered and executed in an intelligent contract mode, the problems of high labor cost and complex flow in the traditional management are effectively solved, the efficiency of trusted access of the metering terminal and the data is effectively improved, and the cost is reduced.
As shown in fig. 3, a metering terminal trusted access module firstly applies for a public and private key from a CA certificate system before a terminal device accesses the system, then locally stores the private key, and uploads the public key and physical information (ID, MAC address, version number, etc.) of the device to a block chain for authentication. After receiving the authentication information, the block chain calls an intelligent contract, extracts the equipment information, then forwards the information to an equipment manufacturer for comparison, if the manufacturer comparison is successful, the metering terminal information is correct, the correct information is returned to the block chain node, and after receiving the information, the block chain node performs consensus and stores the metering terminal information on the block chain. And sending registration success information to the metering terminal.
as shown in fig. 4, the terminal data trusted access module collects data information from a metering terminal, and sends the data to a block chain according to a specified format, so as to ensure the trustworthiness of a data source, a private key of a metering terminal device is used for encryption, a corresponding public key stored in the block chain is used for decryption, and data can be obtained from the corresponding device only if the private key of the public key is matched with the private key of the public key. The trusted access of the terminal data is ensured, and the tracing of the data is also ensured.
as shown in fig. 1, the present invention includes three major parts, namely, a service system, a block chain platform, and a terminal, wherein the three major parts interact with each other through an HTTP server; the terminal is used as a physical layer and is responsible for equipment access and data collection; the business system is used as a front end, and a user can interact with the system through the operation of a visual interface; the blockchain platform serves as a back-end service, and runs the core functions (trusted authentication, storage and transaction) of the system.
The terminal is mainly divided into two modules, one is metering terminal equipment, and the other is a data communication gateway.
Metering terminal equipment: the intelligent power distribution and utilization system is used for collecting various power distribution and utilization information, and various metering terminal equipment types comprise an electric meter, a controller, an intelligent lock and the like. The system mainly uses two metering terminals, namely an ammeter and a controller. The controller is a device capable of measuring the wind power generation or photovoltaic power generation. The data collected by the system from the metering terminal is not single data, and various types of data can be collected. Such as: power consumption, power generation, active power, voltage, current, etc. The metering terminal can collect user load electricity consumption, wind power generation data, transmission electricity quantity and the like. Substantially covers all traffic related to power traffic and data.
A data communication gateway: each data communication gateway collects the collected data on all the terminal devices connected with the data communication gateway. The industrial personal computer can be connected with the terminal equipment in a wired mode or in a wireless mode, and the connection is determined by what transmission mode the terminal equipment supports. The data communication gateway performs secondary processing on the original data after collecting the data, and a Redis database caches the processed data.
An HTTP server: the method is used for interaction among the metering terminal, the block chain platform and the service system.
A block chain platform: the super account book is used for confirming whether the front-end display data are correct or not through the intelligent contract, storing transaction information and electric quantity information, carrying out credible access and safety detection on the metering terminal, and displaying abnormal information through abnormal data.
a service system: displaying a system page; the electric quantity information, the transaction information, the equipment information, the block monitoring and the like can be seen.
In the embodiment of the invention, in the blockchain platform, the intelligent contract is written by using go language (a static strong type, a compiling type and a concurrent type developed by Google and a programming language with a garbage collection function), and each blockchain node is physically an independent device. The main code is downloaded from the hyper bridge fabric source code in github. The API that calls the blockchain smart contract is stored in the HTTP server and written using node. The data information is stored in the database level db of the blockchain itself in order to prevent the blockchain from being too large in memory. The information collected from the terminal is set up to be uploaded once a day (also meeting the requirements of the system).
The block chain is used as a bottom data platform, data are stored on each node of the block chain platform in a distributed mode, safety of equipment information and data is guaranteed by means of non-tampering of the block chain, a user can customize a data format and data uploading time collected by the metering terminal, and autonomy of the metering terminal is improved.
In the terminal, RS485 switching USB connection (one-to-one or many-to-one) is adopted between the data communication gateway and the terminal equipment, and serial port communication is realized. Each data communication gateway may be connected to a plurality of terminal devices. The program for collecting data by the data communication gateway is written by using python language, and the data is uploaded to a Redis database immediately after being collected. The data format is: key value meterID: timestamp; value is power control # power remaining # generated energy # meter type # voltage # current.
In the business system, the display form is displayed in the form of a webpage (also made into a corresponding app); a bootstrap framework is used for fusing HTML, css and JavaScript multiple front-end languages, and codes for making the webpage and interacting with the back end are written by the JavaScript. The user may make a power purchase request to generate a transaction. The administrator user can monitor the block chain (the number of the block chain link points, the number of the chain codes and the like) in real time, and also can look up the terminal information inside the block chain to monitor the abnormity.
as shown in fig. 2, after the data communication gateway is started, firstly, a datagram for reading a metering terminal ID is sent to each port, if a valid return value is received, a new process is started for the corresponding port, a request for reading data is continuously sent to the port, after receiving terminal device data, whether a record of the metering terminal ID exists in a local Redis database is queried, and if not, the metering terminal ID and a timestamp are stored in the Redis as a key value of the data; the data of each terminal device is stored as value in the corresponding key value.
Meanwhile, the public and private keys are registered locally, a request (registration request, public key, metering terminal ID and timestamp) for registering the metering terminal ID is submitted to the server, and after the HTTP server registers to the blockchain, the information is returned to the gateway, and the public and private keys are recorded in a local Redis database.
every other day, the data communication gateway sends the ID and the timestamp of the metering terminal table collected at the moment and the data collected in the metering terminal to the HTTP server after using a private key signature.
The main functions implemented by the HTTP server (i.e. tomcat) are: sending read data requests to the terminal at regular time (every 24 hours), and uploading the data to a block chain; the format is as follows: write request, data (signed), timestamp.
the above are all programs automatically executed by the system, and are all transparent to the user. The only interactive position of the user and the system is a service system, and when the user clicks the ID of the metering terminal, the front end sends a request to the server to request all data information related to the metering terminal in the block chain. And after receiving the request, the server executes an interface program interacting with the block chain, sends a read data request to the block chain and calls an intelligent contract. And returning the data to the front-end for display.
When a user needs to perform electricity purchasing operation, the electricity purchasing amount is input and paid in a business system, a transaction request is sent to a server, the server preprocesses the transaction, then a fabric intelligent contract is called, the transaction is stored in an account book, and the consensus in the accounting process is a PBFT consensus algorithm. After the transaction is successfully linked up, the transaction information is returned to the HTTP server, and the server returns the data to the front end and displays the data after receiving the returned data.
according to the embodiment of the invention, a specific simulation experiment is carried out, wherein a service gateway comprises a data query and transaction power function, a super account book is used as a bottom block chain to provide data and safety service, firstly, a metering terminal is adopted, two unidirectional electric meters and one bidirectional electric meter are adopted in the experiment, the unidirectional electric meter can only measure the power consumption of a user side, and the bidirectional electric meter can measure the generated energy and the power consumption of the node by connecting a user load and a power generation device or a storage battery; the three electric meters are connected to a communication terminal through RS485 lines at the same time, and a metering terminal acquisition program and a block chain interaction program run on the communication terminal. The configuration of the communication terminal is as follows: hardware aspect: 64-bit computers, 4-core main frequency 2.66GHzCPU, 8GB memory and 64GB hard disks; software aspect: ubuntu 16.04 (64-bit version).
The blockchain system is composed of five nodes in total, wherein 4 PCs are used, three PCs are used, one PC represents one blockchain node, and the rest is operated with two virtual machines, wherein each virtual machine represents one node. The hardware configuration of the PC is as follows: 64-bit computers, 6-core main frequency of 2.66GHzCPU, 16GB memory and 512GBSSD hard disks; the software configuration is as follows: ubuntu 16.04 (64-bit version). The whole system continuously runs for one month during the test period, and no fault or accidental termination occurs in the middle.
After the electric meter accesses the system, the electric meter firstly applies for registration in the blockchain network, and relevant data can be transmitted to the blockchain after the registration is successful. The terminal data is divided into power generation measurement data, power utilization side data and power generation side data displayed on the interface. Each piece of terminal data information displayed at the front end mainly comprises six parts, namely a sequence number, a calculation hash, an ammeter number, generated energy, power consumption, acquisition time and a data source node. The calculated hash represents the hash value of the data in the block chain, and if the data is to be checked to determine whether the data is tampered, the calculated hash value can be compared with the hash value stored in the chain; the electric meter number is the number of the terminal, is equivalent to the physical address of the terminal, is unique, and can also ensure the credibility of the information of the metering terminal. The generated energy and the power consumption are data collected on the terminal; the acquisition time is calculated according to the field of the timestamp in the data uploaded by the communication terminal; the data source node is the node that indexes through which block link to return data to the front end.
Preferably, an embodiment of the present invention provides a metering terminal trusted access method for an electricity distribution scenario, including the following steps:
S100, starting the data communication gateway, sending a datagram for reading and metering a terminal ID to each terminal device connected with the data communication gateway, and returning an effective return value to the data communication gateway by the terminal device;
S200, the data communication gateway continuously sends a request for reading the datagram to a terminal device port connected with the data communication gateway, and stores the returned data information in a local Redis database;
S300, the data communication gateway inquires whether a local Redis database has a record of the metering terminal ID, if so, step S500 is executed, and if not, step S400 is executed;
S400, the data communication gateway stores the received data in a local Redis database, simultaneously registers a public and private key and submits a request for registering a metering terminal ID to an HTTP server, after the registration is successful, the data communication gateway records the public and private key in the Redis database, and then the step S100 is continuously executed;
S500, the user carries out transaction to the service system through the HTTP server.
Preferably, the data communication gateway sends the collected data information to the HTTP server after encrypting the data information by using a private key, and the HTTP server sends a read data request to the metering terminal at regular time and uploads the data to the block chain.
preferably, the data communication gateway described in S400 stores the received data in the Redis database as a key value of the data, and the data of each of the terminal devices is stored in a corresponding key value as a real value.
The above embodiments are merely to illustrate the technical solutions of the present invention, and not to limit the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (6)

1. a metering terminal trusted access method facing an electricity distribution scene is characterized in that a block chain is adopted as a third party of trusted access, and the trusted access method is realized through a metering terminal trusted access device facing the electricity distribution scene, wherein the metering terminal trusted access device facing the electricity distribution scene comprises a metering terminal trusted access module, a terminal data trusted access module and a block transaction module;
the metering terminal trusted access module comprises public and private key registration, equipment information uplink and verification equipment information;
The terminal data trusted access module comprises data private key encryption, uploading to a block chain and consensus storage;
The block transaction module comprises an initiating transaction module, a block consensus module and a transaction storage module;
The system architecture to which the metering terminal trusted access device is attached comprises a terminal, a block chain and a service system, wherein the terminal, the block chain and the service system are interacted through an HTTP server;
The terminal comprises data communication gateways and metering terminals, and each data communication gateway can be connected with a plurality of metering terminals;
the method comprises the following steps:
s100, starting the data communication gateway, sending a datagram for reading and metering a terminal ID to each terminal device connected with the data communication gateway, and returning an effective return value to the data communication gateway by the terminal device;
S200, the data communication gateway continuously sends a request for reading the datagram to a terminal device port connected with the data communication gateway, and stores the returned data information in a local Redis database;
S300, the data communication gateway inquires whether a local Redis database has a record of the metering terminal ID, if so, step S500 is executed, and if not, step S400 is executed;
s400, the data communication gateway stores the received data in a local Redis database, simultaneously registers a public and private key and submits a request for registering a metering terminal ID to an HTTP server, after the registration is successful, the data communication gateway records the public and private key in the Redis database, and then the step S100 is continuously executed;
S500, the user carries out transaction to the service system through the HTTP server.
2. The metering terminal trusted access method oriented to the power distribution and utilization scenario as claimed in claim 1, wherein the data communication gateway sends the collected data information to the HTTP server after encrypting the collected data information by using a private key, and the HTTP server sends a read data request to the metering terminal at regular time and uploads the data to a block chain.
3. The metering terminal trusted access method oriented to the distribution power utilization scenario, according to claim 1, wherein the data communication gateway in S400 stores the received data as a key value of the data in a Redis database, and the data of each of the terminal devices as a real value exists in a corresponding key value.
4. the metering terminal trusted access method oriented to the power distribution and utilization scenario is characterized in that the metering terminal trusted access module and the terminal data trusted access module enter a block transaction module of a system.
5. The metering terminal trusted access method oriented to the power distribution and utilization scenario of claim 1, wherein the metering terminal trusted access module initiates public and private key registration to a CA certificate authority of a service system through the metering terminal, the metering terminal stores the private key, the metering terminal uploads the public key and device information to a block chain for device information uplink, and the block chain transmits the device information to a device manufacturer for verification of the device information.
6. the metering terminal trusted access method oriented to the power distribution and utilization scenario as claimed in claim 1, wherein the terminal data trusted access module uploads the acquired data information to the block chain after being encrypted by a private key of the metering terminal through the metering terminal, and the block chain decrypts the data through the stored public key to realize consensus storage.
CN201910774470.6A 2019-08-21 2019-08-21 Metering terminal trusted access device and method for power distribution and utilization scene Active CN110290157B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910774470.6A CN110290157B (en) 2019-08-21 2019-08-21 Metering terminal trusted access device and method for power distribution and utilization scene

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910774470.6A CN110290157B (en) 2019-08-21 2019-08-21 Metering terminal trusted access device and method for power distribution and utilization scene

Publications (2)

Publication Number Publication Date
CN110290157A CN110290157A (en) 2019-09-27
CN110290157B true CN110290157B (en) 2019-12-13

Family

ID=68025201

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910774470.6A Active CN110290157B (en) 2019-08-21 2019-08-21 Metering terminal trusted access device and method for power distribution and utilization scene

Country Status (1)

Country Link
CN (1) CN110290157B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111478948B (en) * 2020-03-20 2023-02-17 深圳市芯链科技有限公司 Block chain access method, internet of things equipment and storage medium
CN112685717A (en) * 2020-12-29 2021-04-20 山东钢铁集团日照有限公司 Metering electronic certificate verification management system based on block chain
CN113158248B (en) * 2021-04-27 2022-09-23 杭州宇链科技有限公司 Method for credible data acquisition and evidence coexistence of electronic equipment based on block chain technology

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105591753A (en) * 2016-01-13 2016-05-18 杭州复杂美科技有限公司 Application method of CA certificate on block chain
CN106506638B (en) * 2016-11-04 2020-01-07 江苏通付盾科技有限公司 Block storage method and device in block chain
CN107547514A (en) * 2017-07-17 2018-01-05 招商银行股份有限公司 Identity identifying method, system and computer-readable recording medium
CN107426250A (en) * 2017-09-12 2017-12-01 大唐广电科技(武汉)有限公司 A kind of industrial digital information network platform based on block chain
CN107729770A (en) * 2017-10-09 2018-02-23 深圳市轱辘车联数据技术有限公司 The management method and system of a kind of vehicle data
CN109544331B (en) * 2018-10-12 2022-11-22 深圳壹账通智能科技有限公司 Supply chain financial application method and device based on block chain, terminal equipment and storage medium
CN109981582B (en) * 2019-02-26 2021-11-23 重庆邮电大学 Internet of things equipment identity authentication method based on block chain

Also Published As

Publication number Publication date
CN110290157A (en) 2019-09-27

Similar Documents

Publication Publication Date Title
Bodkhe et al. Blockchain for industry 4.0: A comprehensive review
CN110290157B (en) Metering terminal trusted access device and method for power distribution and utilization scene
CN111259070B (en) Method and related device for storing and acquiring service data
TWI524806B (en) Systems, methods, and/or apparatus for enabling communication between devices using different communication protocols
Berthier et al. Specification-based intrusion detection for advanced metering infrastructures
CN104506487B (en) The credible execution method of privacy policy under cloud environment
CN103795786A (en) Embedded concentrator system with web service function
Giani et al. The VIKING project: An initiative on resilient control of power networks
CN110535648A (en) Electronic certificate is generated and verified and key controlling method, device, system and medium
CN107885658B (en) Test preposition implementation method, device, terminal device and storage medium
CN108600163A (en) A kind of cloud environment distributed hash chain framework and cloud data integrity verification method
CN109828924A (en) Test method, device and calculating equipment and medium
CN106603488A (en) Safety system based on power grid statistical data searching method
Tweneboah-Koduah et al. Evaluation of cybersecurity threats on smart metering system
CN101923465A (en) Embedded application-oriented scalable web service system
Liu et al. BCmaster: a compatible framework for comprehensively analyzing and monitoring blockchain systems in IoT
CN105227532A (en) A kind of blocking-up method of malicious act and device
CN116594989A (en) Power exchange sharing data quality assessment method, medium and system based on blockchain intelligent contract
CN114236447A (en) PMU detection and calibration method and device for transformer substation, computer equipment and storage medium
TWI472189B (en) Network monitoring system and method for managing key
CN109672542A (en) A kind of Internet Instant Message Tool system and method
Yuan et al. A Metering Terminal Trusted Access Method for Power Distribution and Consumption Scenes
Cardenas Cyber risk analysis and threat mitigation strategies against Distributed Energy Resources and Internet of Things infrastructure attacks
Costantino et al. Privacy-preserving energy-reading for smart meter
Dbabseh et al. Framework for securing automatic meter reading using Blockchain technology

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