CN112988895A - Industrial equipment fault positioning and tracing method and system based on block chain - Google Patents

Industrial equipment fault positioning and tracing method and system based on block chain Download PDF

Info

Publication number
CN112988895A
CN112988895A CN202110324810.2A CN202110324810A CN112988895A CN 112988895 A CN112988895 A CN 112988895A CN 202110324810 A CN202110324810 A CN 202110324810A CN 112988895 A CN112988895 A CN 112988895A
Authority
CN
China
Prior art keywords
block
industrial equipment
block chain
data
operation data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110324810.2A
Other languages
Chinese (zh)
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 University of Technology
Original Assignee
Guangdong University of Technology
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 University of Technology filed Critical Guangdong University of Technology
Priority to CN202110324810.2A priority Critical patent/CN112988895A/en
Publication of CN112988895A publication Critical patent/CN112988895A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Bioethics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

The invention provides a block chain-based industrial equipment fault positioning and tracing method and system for solving the problems that the quality data of industrial equipment is easy to lose, damage and tamper, the reliability is low and the like; the method comprises the following steps: the method comprises the following steps that a sensor additionally or internally arranged on the industrial equipment collects operation data of the industrial equipment and uploads the operation data to a P2P network through a communication protocol, and a block link point packs the operation data and stores the operation data in a block; the block link points which acquire the accounting right broadcast the blocks; when other block chain link points judge that the blocks meet the mining difficulty condition and the data in the blocks meet the preset protocol specification, connecting the blocks to respective block chains; when industrial equipment fails, the intelligent contract accesses the operation data of the industrial equipment on the block chain and analyzes whether the data are in a safety data range preset by the intelligent contract, if yes, the industrial equipment is indicated to normally operate, otherwise, abnormal operation data and sensor ID are output, and the fault position of the industrial equipment is positioned and traced.

Description

Industrial equipment fault positioning and tracing method and system based on block chain
Technical Field
The invention relates to the technical field of block chains, in particular to a block chain-based industrial equipment fault positioning and tracing method and system.
Background
The failure or quality problem of industrial equipment sometimes makes it difficult to find the place where the equipment fails or the cause of the failure, such as wear and aging of parts, too high working temperature, misoperation of personnel, and the like.
It is currently common to deploy massive sensors on industrial equipment or to utilize built-in sensors, and to deploy video surveillance, imaging equipment and audio equipment on an industrial site to transmit generated quality data of the industrial equipment during its working life cycle and video of the working site and operation of operators, such as an industrial internet of things based MES surveillance system proposed by publication No. CN110262423A (published 2019-09-20). The equipment such as the sensor transmits data to the connected industrial Internet of things platform in real time through the data terminal, the Internet of things platform uploads the data to the server through real-time data circulation, and the server stores the data to the corresponding centralized database. Due to centralized data storage, a centralized system is easy to attack and tamper, so that the problems of data loss, damage, low reliability and the like are caused, and the fault problem is difficult to find. And the quality data of the industrial equipment should be completely and transparently stored and not artificially tampered, and the fault reason can be positioned and traced back to investigate the related responsibility.
Disclosure of Invention
In order to solve the problems that the quality data of the industrial equipment is easy to lose, damage or be tampered, the reliability of the data is low and the like in the prior art, the invention provides a block chain-based industrial equipment fault positioning and tracing method and a block chain-based industrial equipment fault positioning and tracing system.
In order to solve the technical problems, the technical scheme of the invention is as follows:
a block chain-based industrial equipment fault positioning and tracing method specifically comprises the following steps:
the method comprises the following steps that a sensor arranged on the industrial equipment or built in the industrial equipment collects operation data of the industrial equipment, the operation data of the industrial equipment is uploaded to a P2P network through a communication protocol, and a block link point packs and stores the operation data in a block;
the block chain nodes work and acquire block chain accounting rights, and the block chain nodes acquiring the accounting rights broadcast the blocks;
verifying other block chain nodes in the block chain network on the block, judging whether the block meets the mining difficulty condition and whether data in the block meets a preset protocol specification, if so, connecting the block to the respective block chain by the other block chain nodes, and otherwise, not executing operation;
when industrial equipment faults occur, the intelligent contract accesses operation data of the industrial equipment on the block chain, whether the operation data are within a safety data range preset in the intelligent contract or not is analyzed, if yes, the industrial equipment is indicated to normally operate, otherwise, abnormal operation data of the industrial equipment and the ID of a source sensor of the industrial equipment are output, and the fault position of the industrial equipment is located and traced.
As a preferred scheme, the block link point works based on the principle of the POW consensus mechanism, the existing industrial equipment operation data which is not recorded on the P2P network is packaged and stored in a block, and then a random number is continuously searched in a traversing manner, so that the hash value of the new block and the random number meets a certain difficulty condition, that is, the latest block in the block link network is determined, and the accounting right of the block chain in the current round is obtained.
Preferably, the block link points are used for packaging and storing existing data which are not recorded on the P2P network in one block by using a Merkle tree.
Preferably, the block link point uses a Merkle tree to store the existing data that is not recorded on the P2P network in a block in a package manner, and the specific steps include: and combining the hash values of the existing data by the block link points in pairs, performing hash operation on the combined body, performing upward continuous recursive operation to form a complete binary tree, converting the complete binary tree into a Merkle tree, and packaging and storing the Merkle tree in a block.
Preferably, the method further comprises the following steps: when the block chain node obtaining the accounting right of the current block chain round adds a time stamp in the block head of the block chain node when the block is connected, and the time stamp records the writing time of the current block data.
As a preferred scheme, the block link points calculate the hash value of the block head by using an SHA256 hash algorithm, and the block link points use the block head as the input of the SHA256 hash algorithm, and traverse the random number until the output hash value meets the preset difficulty condition.
Preferably, the contract rules of the intelligent contract comprise legal regulations, technical standards and operation standards for quality safety of industrial equipment.
Preferably, the operation data of the industrial equipment comprises the ID of the sensor device, the data collected by the sensor and the data collecting time.
The invention also provides a block chain-based industrial equipment fault positioning and tracing system, which is applied to the industrial equipment fault positioning and tracing method provided by any technical scheme, and the system specifically comprises a sensor node, a block chain network module and an application module, wherein:
the sensor nodes are block chain nodes which are deployed outside the industrial equipment and registered by using the computing power of the edge nodes at a certain distance; the sensor nodes acquire industrial equipment operation data, upload the industrial equipment operation data to the block chain network module and package and store the industrial equipment operation data in the blocks;
the block chain network module comprises an ABI interface, an API interface and a plurality of blocks, the blocks store industrial equipment operation data uploaded by each sensor node, and each industrial equipment operation data is marked with a sensor ID of corresponding industrial equipment; the block chain network module publicizes the address and ABI interface of the intelligent contract; the block chain network module stores an intelligent contract in a coding form;
the application module accesses the intelligent contract through an ABI interface, and the application module is connected with the blockchain network module through an API interface.
As a preferred scheme, the block includes a block header and a block body, and the block header encapsulates a hash value, a timestamp, a random number, and a Merkle root of a previous block; the block body is a Merkle tree, and the generated Merkle root is stored in the block head of the same block.
As a preferred scheme, the system further comprises an industrial internet of things platform for managing and controlling sensor equipment deployed on the industrial equipment, wherein the sensor node is connected with the industrial internet of things platform by using an mqtt (message Queuing Telemetry transport) message queue Telemetry transmission protocol; the industrial Internet of things platform is connected with the intelligent contract through the ABI interface.
Compared with the prior art, the technical scheme of the invention has the beneficial effects that: the invention uses the block chain technology, removes the centralized server, saves the cost of the central server and the operation and maintenance cost; the safety and the reliability of the operation data of the industrial equipment are improved by utilizing the characteristic that the block chain data cannot be tampered; by utilizing the traceability of block chain data, equipment faults and reasons thereof are positioned and traced more conveniently and efficiently, the time for troubleshooting is saved, the equipment is put into operation as soon as possible, and the operation and maintenance efficiency of the industrial equipment is improved.
Drawings
Fig. 1 is a flowchart of a block chain-based industrial equipment fault location tracing method of the present invention.
Fig. 2 is a schematic diagram of a P2P network structure according to the present invention.
FIG. 3 is a block-chain network architecture diagram according to the present invention.
Fig. 4 is a schematic structural diagram of the block chain-based industrial equipment fault location traceability system of the present invention.
FIG. 5 is a block diagram illustrating the structure of the present invention.
Detailed Description
The drawings are for illustrative purposes only and are not to be construed as limiting the patent;
for the purpose of better illustrating the embodiments, certain features of the drawings may be omitted, enlarged or reduced, and do not represent the size of an actual product;
it will be understood by those skilled in the art that certain well-known structures in the drawings and descriptions thereof may be omitted.
The technical solution of the present invention is further described below with reference to the accompanying drawings and examples.
Example 1
The present embodiment provides a block chain-based industrial equipment fault location tracing method, and as shown in fig. 1, the method is a flowchart of the block chain-based industrial equipment fault location tracing method of the present embodiment.
The block chain-based industrial equipment fault location tracing method provided by the embodiment comprises the following steps:
s1: the sensors arranged on or in the industrial equipment collect the operation data of the industrial equipment and upload the operation data to the P2P network through a communication protocol, and the block link points pack and store the operation data in the blocks.
The P2P network in this embodiment is composed of a plurality of interconnected block chain nodes, and the block chain nodes help the sensors to perform "mining" by using their storage capacity and computing capacity for edge nodes deployed at a distance outside the industrial equipment, so as to achieve block chain network consensus, obtain accounting rights, and register as block chain nodes.
In the P2P network of this embodiment, the plurality of blockchain nodes connected to each other are all in a peer-to-peer status, there is no specialized central node or hierarchical structure, and each blockchain node will assume functions of network routing, data block verification, and the like, and each blockchain node is both a provider and a requester of a service. Fig. 2 is a schematic diagram of a P2P network structure according to this embodiment.
Further, in this step, the block link points use a Merkle (Merkle) tree to store the existing data that is not recorded on the P2P network in a block in a packed manner, the Merkle tree is used for rapidly summarizing and checking the integrity of the block data, hash operations are performed on the data packets in the block link, new hash nodes are generated by upward continuous recursive operations, and finally only one Merkle root is left to be stored in the block header. The method comprises the following specific steps: and combining the hash values of the existing data by the block link nodes in pairs, performing hash operation on the combined body, performing upward continuous recursive operation to form a complete binary tree, converting the complete binary tree into a Merkle tree, and packaging and storing the Merkle tree in a block.
In this embodiment, SHA256 hash algorithm is used for hash operation. Specifically, the block link point calculates a hash value of each piece of collected industrial equipment operation data, converts each piece of data into n 512-bit data blocks, and then processes each data block by using an SHA256 compression function. The calculation flow is an iterative calculation process, and after the last data block (nth block) is processed, the final output value is the hash value of the original data.
In the embodiment, due to the fact that different data of the SHA256 algorithm are used to obtain the characteristics of different hash values and the Merkle tree structure, when certain data is tampered, the Merkle tree can verify whether the data is tampered, so that the operation data of the industrial equipment stored in the block chain link point is real and reliable, and basic conditions are provided for comprehensively positioning and tracing faults and reasons of the faults.
S2: and the block chain nodes work and acquire block chain accounting rights, and the block chain nodes acquiring the accounting rights broadcast the blocks.
In this step, the block link points work based on the principle of the POW consensus mechanism, and after the operation data of the existing industrial equipment, which is not recorded on the P2P network, is packaged and stored, a random number is continuously searched in a traversing manner, so that the hash value of the new block and the random number meets a certain difficulty condition, that is, the latest block in the block chain network is determined, and the accounting right of the block chain in the current round is obtained.
Further, in the embodiment, the block link point calculates the hash value of the block head by using the SHA256 hash algorithm, the block link point uses the block head as the input of the SHA256 hash algorithm, and the random number is traversed until the output hash value meets the preset difficulty condition.
S3: and verifying the block by other block chain nodes in the block chain network, judging whether the block meets the mining difficulty condition and whether the data in the block meets the preset protocol specification, if so, connecting the block to the respective block chain by the other block chain nodes, and otherwise, not executing the operation.
In this step, the block link points which obtain the accounting right of the round broadcast the blocks which meet the mining difficulty degree condition in the P2P network, and other block link nodes in the P2P network verify whether the blocks meet the mining difficulty degree condition and verify whether the operation data in the blocks meet the preset protocol specification. The verified blockchain network connects the block to the blockchain of the version thereof, so that the whole network forms a consensus of the current network state.
At the moment, each blockchain node on the blockchain network stores a copy of operation data of the industrial equipment, and any node is attacked, so that other nodes cannot be influenced, and the fault tracing safety and reliability of the industrial equipment are guaranteed.
Further, in this embodiment, when the blockchain node that obtains the current round of accounting right of the blockchain connects blocks, a timestamp is added to the block header of the blockchain node, and the timestamp records the writing time of the current block data. Further, the method also comprises the following steps: when the block chain node obtaining the accounting right of the current block chain round adds a time stamp in the block head of the block chain node when the block is connected, and the time stamp records the writing time of the current block data.
The time stamp is the total number of seconds from 1970, 01, 0, 00 min and 00 seconds to the present, is usually a character sequence, and uniquely identifies the time of a certain moment. The node that obtains the accounting right needs to stamp in the block header when linking the blocks for recording the writing time of the current block data. The timestamp in each block is enhanced for the timestamp of the previous block to form a chain of time increments.
S4: when industrial equipment faults occur, the intelligent contract accesses operation data of the industrial equipment on the block chain, whether the operation data are within a safety data range preset in the intelligent contract or not is analyzed, if yes, the industrial equipment is indicated to normally operate, otherwise, abnormal operation data of the industrial equipment and the ID of a source sensor of the industrial equipment are output, and the fault position of the industrial equipment is located and traced.
In this embodiment, the operation data of the industrial equipment includes ID of the sensor device, data collected by the sensor, and time for collecting the data; intelligent contracts include laws and regulations, technical standards, and operating standards for quality security of industrial equipment. Wherein the IDs of sensor devices on the same industrial equipment are all secondary IDs of the equipment.
In this embodiment, SHA256 hash algorithm is used for hash operation used for multiple times. The algorithm compresses data with any length into a binary string with a fixed length, the output value of the binary string becomes a hash value, the hash value is commonly used for realizing data integrity and entity authentication, and meanwhile, the hash value also forms the safety guarantee of various cryptosystems and protocols.
The blockchain network constructed by the industrial equipment fault location tracing method provided by the embodiment can be understood as a seven-layer architecture, as shown in fig. 3, which is a schematic view of the blockchain network architecture of the embodiment.
The device layer mainly comprises sensors, video monitoring of an industrial field, image equipment, audio equipment, edge nodes and the like which are arranged on industrial equipment, and are respectively used for collecting operation data of the industrial equipment and uploading the operation data to the data layer, wherein the edge nodes provide storage capacity and computing capacity; the second layer is a data layer, and the layer is a block link point which packs the running data into a block through a Hash algorithm and a Merkle tree; the third layer is a network layer which propagates and verifies the operation data and the blocks; the fourth layer is a consensus layer, which selects the block accounting right node by using a POW (workload proof) mechanism; the fifth layer is an incentive layer which prompts the nodes to continuously dig mines and compete for the accounting right through a reward mechanism; the sixth layer is a contract layer which writes intelligent contracts on the block chains through script codes; the top-most layer (seventh layer) is an application layer, and the application layer calls an intelligent contract through an API interface connection block chain and ABI to realize data access and block chain tracing.
The industrial equipment fault positioning and tracing method provided by the embodiment utilizes a block chain technology, removes a centralized server, and saves the cost of the central server and the operation and maintenance cost. The safety of the operation data of the industrial equipment is improved by utilizing the characteristic that the block chain data cannot be tampered, the equipment fault and the reason of the equipment fault are located and traced more conveniently and efficiently by utilizing the traceability of the block chain data, the fault troubleshooting time is saved, the equipment is put into operation as soon as possible, and the operation and maintenance efficiency of the industrial equipment is improved.
Example 2
The embodiment provides an industrial equipment fault location tracing system based on a block chain, which is applied to the industrial equipment fault location tracing method provided in embodiment 1. Fig. 4 is a schematic structural diagram of the industrial equipment fault location and tracing system of this embodiment.
In the industrial equipment fault location system of traceing back that this embodiment provided, including sensor node 1, block chain network module 2 and application module 3, wherein:
the sensor node 1 is a block chain node which is deployed outside the industrial equipment and registered by the edge node 101 at a certain distance by utilizing the storage capacity and the computing capacity of the edge node; the sensor node 1 acquires industrial equipment operation data, uploads the industrial equipment operation data to the block chain network module 2, and packages and stores the industrial equipment operation data in a block;
the block chain network module 2 comprises an ABI interface, an API interface and a plurality of blocks, wherein the blocks store industrial equipment operation data uploaded by each sensor node 1 within a period of time, and each industrial equipment operation data is marked with a sensor ID of corresponding industrial equipment; the block chain network module 2 publicizes the address and ABI interface of the intelligent contract, so that each sensor node 1 can be connected to the same block chain network; the block chain network module 2 stores an intelligent contract in a coding form;
the application module 3 accesses the intelligent contract through the ABI interface, and the application module 3 is connected with the blockchain network module 2 through an API interface.
The block in this embodiment includes a block header and a block body, and the block header encapsulates the hash value, the timestamp, the random number, and the Merkle root of the previous block. Fig. 5 is a schematic structural diagram of the block of the present embodiment. The block header encapsulates information such as the hash value, the timestamp, the random number, and the Merkle root of the previous block, and the hash value of the previous block is used for realizing the connection of the blocks. The block body uses a Merkle tree, the main function of the Merkle tree is to quickly summarize and check the integrity of block data, the Merkle tree can carry out Hash operation on data packets in a block chain, new Hash nodes are generated by upward continuous recursive operation, and only one Merkle root is finally left to be stored in a block head.
In this embodiment, the sensor node 1 uses the block header as an input of the SHA256 algorithm, and continuously tries to traverse the random number until the output hash value meets a certain difficulty condition, where the difficulty condition is actually a numerical value, and the difficulty condition in this embodiment is set by itself according to an actual block output speed requirement, and requires that at least N0 s are in front of the hexadecimal form of the obtained hash value. Wherein, N is the target value, and the larger the N value is, the greater the difficulty is.
The block head of each new block contains a hash value pointing to the previous block, and the hash pointer can point to the previous block, so that a block chain is formed and stored in each node of the block chain, and therefore the consensus on the current network state is formed in the whole network. Blocks are connected through hash values, each block stores the hash value of the previous block, and even if a tiny data is tampered, the chain breaking of a block chain can be caused, and therefore the fact that data stored by a certain sensor node 1 is wrong can be perceived. The block chain in this embodiment is stored in a distributed manner, and each sensor node 1 stores a block chain recognized in the whole network, so that tampering with data of a single sensor node 1 does not affect the system operation of locating and tracing the industrial equipment fault and its cause.
The blockchain network module 2 in this embodiment is a P2P network; an intelligent contract is a computer program that automatically executes all or part of a contract and can generate corresponding proof that can be verified to demonstrate the effectiveness of executing the contract's operations.
Further, the system of the embodiment further comprises an industrial internet of things platform 4 for managing and controlling devices such as sensors deployed on industrial equipment, wherein the sensor node 1 is connected with the industrial internet of things platform 4 by adopting an MQTT message queue telemetry transmission protocol; the industrial internet of things platform 4 is connected with the intelligent contract through the ABI interface, so that devices such as sensors can know the position of the intelligent contract and can perform data interaction, and the devices such as the sensors can autonomously find other devices and start data transaction between the sensor nodes 1. The industrial internet of things platform 4 in this embodiment is connected to a sensor, a video monitoring device, an image device, an audio device, and the like deployed on each industrial device in the form of internet of things middleware, and is responsible for starting, registering, and initializing each device and energy saving management of each device, such as wakeup and sleep scheduling.
In a specific implementation process, an edge node 101 deployed at a certain distance outside an industrial device collects operation data by loading a multi-modal sensor, the sensor is registered as a sensor node 1 (i.e., a block chain node) by using the computing power of the edge node 101, and the sensor nodes 1, such as sensors, video monitoring devices, image devices, audio devices and the like, arranged on the industrial device or built-in the industrial device respectively upload the acquired operation data to a block chain network module 2 and package and store the operation data in a block. The operation data comprises the ID of the sensor equipment, the data collected by the sensor and the data collecting time.
All the sensor nodes 1 are connected to the same block chain network according to the published ABI interfaces, after the sensor nodes 1 which acquire the accounting right broadcast the blocks, the other sensor nodes 1 verify the blocks, judge whether the blocks meet mining difficulty conditions and whether data in the blocks meet preset protocol specifications, if so, the other sensor nodes 1 connect the blocks to respective block chains, otherwise, the operation is not executed.
An administrator inputs an industrial equipment ID through the application module 3 to check corresponding equipment operation data, the application module 3 is connected with the block chain network module 2 through an API interface, and an intelligent contract is called through an ABI interface to achieve data access and block chain tracing. Furthermore, an administrator can be connected with the industrial internet of things platform 4 through the ABI interface through the application module 3, so that the management and control of the sensors, the video monitoring equipment, the image equipment, the audio equipment and the like deployed on the industrial equipment are realized.
When the industrial equipment fails, the intelligent contract accesses the operation data of the industrial equipment on the block chain, analyzes whether the operation data is in a safety data range preset in the intelligent contract or not, if so, indicates that the industrial equipment normally operates, otherwise, outputs the operation data of the industrial equipment and the ID of a source sensor thereof to the application layer 7, and positions and traces the fault position of the industrial equipment.
The same or similar reference numerals correspond to the same or similar parts;
the terms describing positional relationships in the drawings are for illustrative purposes only and are not to be construed as limiting the patent;
it should be understood that the above-described embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the claims of the present invention.

Claims (10)

1. A fault location tracing method for industrial equipment based on a block chain is characterized by comprising the following steps:
the method comprises the following steps that a sensor arranged on the industrial equipment or built in the industrial equipment collects operation data of the industrial equipment and uploads the operation data to a P2P network through a communication protocol, and a block link point packs the operation data and stores the operation data in a block;
the block chain nodes work and acquire block chain accounting rights, and the block chain nodes acquiring the accounting rights broadcast the blocks;
verifying other block chain nodes in the block chain network on the block, judging whether the block meets the mining difficulty condition and whether data in the block meets a preset protocol specification, if so, connecting the block to the respective block chain by the other block chain nodes, and otherwise, not executing operation;
when industrial equipment faults occur, the intelligent contract accesses operation data of the industrial equipment on the block chain, whether the operation data are within a safety data range preset in the intelligent contract or not is analyzed, if yes, the industrial equipment is indicated to normally operate, otherwise, abnormal operation data of the industrial equipment and the ID of a source sensor of the industrial equipment are output, and the fault position of the industrial equipment is located and traced.
2. The industrial equipment fault location tracing method according to claim 1, wherein the block chain node operates based on the principle of the POW consensus mechanism, and packs and stores existing industrial equipment operation data that is not recorded on the P2P network into a block, and then continuously searches for a random number in a traversal manner, so that the hash value of the new block and the random number satisfies a certain difficulty condition, that is, determines a latest block in the block chain network, and obtains the current round of accounting right of the block chain.
3. The industrial equipment fault location tracing method according to claim 2, wherein the block chain node uses a Merkle tree to pack and store existing data which is not recorded on the P2P network into one block; and combining the hash values of the existing data by the block link points in pairs, performing hash operation on the combined body, performing upward continuous recursive operation to form a complete binary tree, converting the complete binary tree into a Merkle tree, and packaging and storing the Merkle tree in a block.
4. The industrial equipment fault location tracing method of claim 2, further comprising the steps of: when the block chain node obtaining the accounting right of the current block chain round adds a time stamp in the block head of the block chain node when the block is connected, and the time stamp records the writing time of the current block data.
5. The industrial equipment fault location tracing method according to claim 4, wherein the blockchain node calculates the hash value of the block header by using SHA256 hash algorithm, the blockchain node takes the block header as the input of the SHA256 hash algorithm, and traverses the random number until the output hash value meets the preset difficulty condition.
6. The industrial equipment fault location tracing method of any one of claims 1 to 5, wherein the intelligent contract comprises legal regulations, technical standards and operating standards for quality safety of industrial equipment.
7. The industrial equipment fault location tracing method of any one of claims 1 to 5, wherein the operation data of the industrial equipment comprises an ID of a sensor device, data collected by the sensor, and time of data collection.
8. An industrial equipment fault location tracing system based on a block chain is applied to the industrial equipment fault location tracing method of any one of claims 1 to 7, and is characterized by comprising a sensor node, a block chain network module and an application module, wherein:
the sensor nodes are block chain nodes which are deployed outside the industrial equipment and registered by using the computing power of the edge nodes at a certain distance; the sensor nodes acquire industrial equipment operation data, upload the industrial equipment operation data to the block chain network module and package and store the industrial equipment operation data in the blocks;
the block chain network module comprises an ABI interface, an API interface and a plurality of blocks, the blocks store industrial equipment operation data uploaded by each sensor node, and each industrial equipment operation data is marked with a sensor ID of corresponding industrial equipment; the block chain network module publicizes the address and ABI interface of the intelligent contract; the block chain network module stores an intelligent contract in a coding form;
the application module accesses the intelligent contract through an ABI interface, and the application module is connected with the blockchain network module through an API interface.
9. The industrial equipment fault location traceability system of claim 8, wherein the block comprises a block header and a block body, the block header encapsulating a hash value, a timestamp, a random number, a Merkle root of a previous block; the block body is a Merkle tree, and the generated Merkle root is stored in the block head of the same block.
10. The industrial equipment fault locating and tracing system of claim 8, wherein the system further comprises an industrial internet of things platform for managing and controlling sensor devices deployed on industrial equipment, the sensor nodes being connected to the industrial internet of things platform using MQTT message queue telemetry transport protocol; the industrial Internet of things platform is connected with the intelligent contract through the ABI interface.
CN202110324810.2A 2021-03-26 2021-03-26 Industrial equipment fault positioning and tracing method and system based on block chain Pending CN112988895A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110324810.2A CN112988895A (en) 2021-03-26 2021-03-26 Industrial equipment fault positioning and tracing method and system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110324810.2A CN112988895A (en) 2021-03-26 2021-03-26 Industrial equipment fault positioning and tracing method and system based on block chain

Publications (1)

Publication Number Publication Date
CN112988895A true CN112988895A (en) 2021-06-18

Family

ID=76333782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110324810.2A Pending CN112988895A (en) 2021-03-26 2021-03-26 Industrial equipment fault positioning and tracing method and system based on block chain

Country Status (1)

Country Link
CN (1) CN112988895A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113328920A (en) * 2021-08-04 2021-08-31 成都飞机工业(集团)有限责任公司 Method for collecting and storing equipment data
CN114531688A (en) * 2022-01-04 2022-05-24 宜兴市苏信智能技术发展研究中心 Wireless networking method based on 5G and block chain
CN114528548A (en) * 2022-02-14 2022-05-24 国网安徽省电力有限公司电力科学研究院 Network security threat tracing device for power monitoring system
CN114567673A (en) * 2022-01-25 2022-05-31 浙江数秦科技有限公司 Method for quickly broadcasting block by block chain node
CN115034796A (en) * 2022-05-30 2022-09-09 四川大学 Multi-chain tracing method and device based on Merkle mountains and storage medium
CN117172802A (en) * 2023-09-05 2023-12-05 湖南丰乐新材料有限公司 Product tracing system and method based on information carried by food package

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018167253A1 (en) * 2017-03-17 2018-09-20 Bundesdruckerei Gmbh Logging of condition data of a device in a blockchain
CN109302491A (en) * 2018-11-13 2019-02-01 爱普(福建)科技有限公司 A kind of industry internet framework and its operation method based on block chain
CN109598135A (en) * 2018-12-10 2019-04-09 北京八分量信息科技有限公司 A kind of industrial control equipment O&M information storage means, apparatus and system
CN110287186A (en) * 2019-05-31 2019-09-27 武汉大学 A kind of smart grid data management system and method based on block chain technology with sovereign right
CN111737367A (en) * 2020-07-24 2020-10-02 国网区块链科技(北京)有限公司 Chain network fused distributed energy station information processing method and device
CN112529751A (en) * 2020-11-20 2021-03-19 杭州趣链科技有限公司 Block chain-based environmental purification monitoring method and device and related equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018167253A1 (en) * 2017-03-17 2018-09-20 Bundesdruckerei Gmbh Logging of condition data of a device in a blockchain
CN109302491A (en) * 2018-11-13 2019-02-01 爱普(福建)科技有限公司 A kind of industry internet framework and its operation method based on block chain
CN109598135A (en) * 2018-12-10 2019-04-09 北京八分量信息科技有限公司 A kind of industrial control equipment O&M information storage means, apparatus and system
CN110287186A (en) * 2019-05-31 2019-09-27 武汉大学 A kind of smart grid data management system and method based on block chain technology with sovereign right
CN111737367A (en) * 2020-07-24 2020-10-02 国网区块链科技(北京)有限公司 Chain network fused distributed energy station information processing method and device
CN112529751A (en) * 2020-11-20 2021-03-19 杭州趣链科技有限公司 Block chain-based environmental purification monitoring method and device and related equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
朱智燊等: "基于隐蔽信道的工控系统数据完整性校验方法", 《计算机工程与应用》, vol. 56, no. 9, 1 May 2020 (2020-05-01), pages 125 - 130 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113328920A (en) * 2021-08-04 2021-08-31 成都飞机工业(集团)有限责任公司 Method for collecting and storing equipment data
CN113328920B (en) * 2021-08-04 2021-10-29 成都飞机工业(集团)有限责任公司 Method for collecting and storing equipment data
CN114531688A (en) * 2022-01-04 2022-05-24 宜兴市苏信智能技术发展研究中心 Wireless networking method based on 5G and block chain
CN114567673A (en) * 2022-01-25 2022-05-31 浙江数秦科技有限公司 Method for quickly broadcasting block by block chain node
CN114567673B (en) * 2022-01-25 2024-04-05 浙江数秦科技有限公司 Method for quickly broadcasting blocks by block chain nodes
CN114528548A (en) * 2022-02-14 2022-05-24 国网安徽省电力有限公司电力科学研究院 Network security threat tracing device for power monitoring system
CN114528548B (en) * 2022-02-14 2023-08-22 国网安徽省电力有限公司电力科学研究院 Network security threat traceability device for power monitoring system
CN115034796A (en) * 2022-05-30 2022-09-09 四川大学 Multi-chain tracing method and device based on Merkle mountains and storage medium
CN115034796B (en) * 2022-05-30 2024-05-24 四川大学 Multi-chain tracing method and device based on Merkle mountain range and storage medium
CN117172802A (en) * 2023-09-05 2023-12-05 湖南丰乐新材料有限公司 Product tracing system and method based on information carried by food package

Similar Documents

Publication Publication Date Title
CN112988895A (en) Industrial equipment fault positioning and tracing method and system based on block chain
US10805393B2 (en) System and method for data management structure using auditable delta records in a distributed environment
CN110278211B (en) Data inspection method and device based on block chain
CN111125468A (en) Structural health monitoring system and method based on block chain technology and intelligent contract
CN113674509B (en) Edge node disaster monitoring and early warning system and method based on block chain
CN110164101A (en) A kind of method and apparatus handling warning message
CN103607291A (en) Alarm analysis merging method for power secondary system intranet security monitoring platform
CN112527484A (en) Workflow breakpoint continuous running method and device, computer equipment and readable storage medium
CN116257021A (en) Intelligent network security situation monitoring and early warning platform for industrial control system
CN110908910B (en) Block chain-based test monitoring method and device and readable storage medium
CN111586022A (en) Firewall opening verification method, electronic device, computer equipment and storage medium
US8136012B2 (en) Method and system for updating topology changes of a computer network
US11736504B2 (en) Method and system to detect abnormal message transactions on a network
CN117271222A (en) Cloud disaster recovery backup method and system for big data
JP2020035297A (en) Apparatus state monitor and program
CN114363347A (en) Self-adaptive industrial equipment data acquisition method and system
CN113726865B (en) Data transmission and collaboration system based on edge calculation
CN116684303B (en) Digital twinning-based data center operation and maintenance method and system
CN116881089B (en) Buried point and buried point management method for calling chain state feedback state
US11870659B1 (en) Industrial equipment diagnostic system
KR102529672B1 (en) Data collection method and data collection system applied thereto
Lesi et al. Towards Resilient and Reliable Distributed Automation for Smart Manufacturing Systems
CN110413431B (en) Intelligent identification early warning method for large data platform fault
CN116192620A (en) Fault detection model training method, fault detection method, device and system
CN105933177A (en) Business error correcting method and device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210618

RJ01 Rejection of invention patent application after publication