Blockchain-based measurement equipment management method and device
By using blockchain technology in measurement device management to construct and store target transactions for device status data, the problem of insufficient security in device status information storage management in the existing technology is solved, and efficient and secure life cycle management is achieved.
Patent Information
- Application Number
- CN202010001674.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-02
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2040-01-02
AI Technical Summary
The status information storage management of existing measurement equipment is insufficient in security, there is a risk of abnormal information modification, and the degree of application is not high.
The measurement device management method based on blockchain is adopted to build target transactions by obtaining device status data, send them to the blockchain network for consensus processing, and store them in a distributed ledger to realize device life cycle management.
Improve the authenticity and security of device status data, avoid data tampering, and enhance the accuracy and efficiency of life cycle management.
Smart Images

Figure CN113065727B_ABST
Abstract
Description
Technical Field
[0001] One or more embodiments of this specification relate to the field of blockchain technology, and in particular, to a blockchain-based measurement equipment management method and apparatus. Background Art
[0002] Measuring equipment and devices are widely used across various industries. Throughout their lifecycle, including production, logistics, installation, use, and maintenance, various device status information is generated. This information is crucial for the correct and proper use of the measuring equipment. Currently, the storage and management of this information is insecure, posing the risk of abnormal modification and is not widely used.
[0003] Current methods for managing the storage of various status information of measurement equipment typically include decentralized physical storage and database- or cloud-based storage. Decentralized physical storage methods cannot efficiently retrieve information or apply it in a versatile manner, and information may be lost due to storage device failures. Database- or cloud-based storage improves the efficiency of information retrieval and application, but the security of information management remains insufficient. Summary of the Invention
[0004] In view of this, one or more embodiments of this specification provide a blockchain-based measurement equipment management method, apparatus, computer device, and computer-readable storage medium.
[0005] To achieve the above objectives, one or more embodiments of this specification provide a blockchain-based measurement device management method, which is applied to node devices in a blockchain network; including:
[0006] Acquiring device status data of the measuring device at each stage of its life cycle;
[0007] Constructing a target transaction based on the acquired device status data, and sending the target transaction to other node devices in the blockchain network to perform consensus processing on the target transaction;
[0008] When the target transaction consensus is passed, the target transaction is stored in the distributed ledger of the blockchain network; wherein the target transaction stored in the distributed ledger of the blockchain network is used to perform lifecycle management of the measuring device.
[0009] In yet another illustrated embodiment, the target transaction includes the device status data or a ciphertext of the device status data; the life cycle includes multiple stages in the cycle of the measuring device from production to retirement;
[0010] The life cycle includes any combination of the following stages:
[0011] Production stage, logistics stage, installation stage, use stage, and maintenance stage.
[0012] In another illustrated embodiment, a smart contract for lifecycle management of the measuring device is deployed in the blockchain; the process of lifecycle management of the measuring device includes:
[0013] In response to a target call transaction for lifecycle management of the measuring device sent by a management client, the lifecycle management logic declared in the smart contract is called, and lifecycle management of the measuring device is performed based on the device status data.
[0014] In yet another illustrated embodiment, the device status data corresponding to the installation phase includes: device calibration information data; the lifecycle management logic includes measurement device calibration logic;
[0015] The measurement device calibration logic includes:
[0016] Step A, calibrating the measuring device;
[0017] Step B: obtaining the target transaction from the distributed ledger of the blockchain, wherein the target transaction includes the latest calibration information data corresponding to the measuring device;
[0018] Step C, obtaining existing calibration information data of the measuring device;
[0019] Step D, determining whether the latest calibration information data is identical to the existing calibration information data; when the latest calibration information is different from the existing calibration information, executing steps A to D again until the latest calibration information is identical to the existing calibration information.
[0020] In yet another illustrated embodiment, the device status data corresponding to the usage stage includes: a seal identification code; the lifecycle management logic includes measurement device electronic seal status management logic;
[0021] The electronic seal status management logic includes:
[0022] Step A: obtaining the target transaction from the distributed ledger of the blockchain, wherein the target transaction includes the latest seal identification code corresponding to the measuring device;
[0023] Step B, obtaining the existing seal identification code of the measuring device;
[0024] Step C, determining whether the latest seal identification code is the same as the existing seal identification code;
[0025] When the latest seal identification code is different from the existing identification code,
[0026] Step D: Execute the preset prompt or alarm operation.
[0027] In yet another illustrated embodiment, the device status data corresponding to the use phase includes: abnormal state information data; the lifecycle management logic includes abnormal state management logic for measuring the device;
[0028] The abnormal state management logic includes:
[0029] Step A: obtaining the target transaction from the distributed ledger of the blockchain, wherein the target transaction includes abnormal state information corresponding to the measuring device;
[0030] Step B: executing preset fault analysis logic based on the abnormal status information.
[0031] In yet another illustrated embodiment, the device status data corresponding to the usage phase includes: device performance indicator data; the lifecycle management logic includes measurement device device performance status management logic;
[0032] The device performance status management logic includes:
[0033] Step A: obtaining the target transaction from the distributed ledger of the blockchain, wherein the target transaction includes device performance indicator data corresponding to the initial state of the measuring device;
[0034] Step B, obtaining device performance indicator data of the current state of the measuring device;
[0035] Step C, determining whether the device performance index data in the initial state is the same as the device performance index data in the current state;
[0036] When the device performance index data of the initial state is different from the device performance index data of the current state,
[0037] Step D: Execute the preset performance difference processing logic.
[0038] In another illustrated embodiment, the performance index data includes one or more of metrological performance index data, measurement accuracy index data, creep index data, measurement repeatability index data, operating environment index data, and electromagnetic compatibility index data.
[0039] In another illustrated embodiment, the device status data corresponding to the usage phase includes device operating environment data, and the device operating environment data includes one or more of temperature, humidity, air pressure, impact, load, and device inclination data.
[0040] In yet another illustrated embodiment, the equipment status data corresponding to the maintenance stage includes one or more of maintenance service personnel data, maintenance time data, and maintenance equipment identification data.
[0041] In yet another illustrated embodiment, the node device that performs lifecycle management on the measuring device includes a measurement supervision agency node device.
[0042] In yet another illustrated embodiment, the target transaction includes a classification index value, where the classification index value is used to identify a category of the device status data.
[0043] In yet another illustrated embodiment, the node device includes the measurement device.
[0044] In another illustrated embodiment, the blockchain is a consortium blockchain, and the process of the measuring device joining the blockchain network includes:
[0045] The alliance member node device of the alliance chain obtains the application for joining the chain by the measurement device;
[0046] Determine whether the measuring device meets the preset entry node conditions;
[0047] in the case of,
[0048] Send the alliance chain node device chain entry permission verification to the measuring device, so that the measuring device joins the blockchain network after the chain entry permission verification passes.
[0049] In another illustrated embodiment, the distributed ledger of the blockchain includes a local storage database of a node device of the blockchain network, or a database of a cloud storage server connected to the node device of the blockchain network.
[0050] Accordingly, this specification also provides a blockchain-based measurement equipment management device, which is applied to node devices in a blockchain network; including:
[0051] an acquisition unit, configured to acquire device status data of the measuring device at each stage in its life cycle;
[0052] a sending unit, configured to construct a target transaction based on the acquired device status data, and send the target transaction to other node devices in the blockchain network to perform consensus processing on the target transaction;
[0053] A storage unit is configured to store the target transaction in a distributed ledger of the blockchain network after the target transaction consensus is passed; wherein the target transaction stored in the distributed ledger of the blockchain network is used to perform lifecycle management of the measuring device.
[0054] In yet another illustrated embodiment, the target transaction includes the device status data or a ciphertext of the device status data; the life cycle includes multiple stages in the cycle of the measuring device from production to retirement;
[0055] The life cycle includes any combination of the following stages:
[0056] Production stage, logistics stage, installation stage, use stage, and maintenance stage.
[0057] In another illustrated embodiment, a smart contract for lifecycle management of the measuring device is deployed in the blockchain; the process of lifecycle management of the measuring device includes:
[0058] In response to a target call transaction for lifecycle management of the measuring device sent by a management client, the lifecycle management logic declared in the smart contract is called, and lifecycle management of the measuring device is performed based on the device status data.
[0059] In yet another illustrated embodiment, the device status data corresponding to the installation phase includes: device calibration information data; the lifecycle management logic includes measurement device calibration logic;
[0060] The measurement device calibration logic includes:
[0061] Step A, calibrating the measuring device;
[0062] Step B: obtaining the target transaction from the distributed ledger of the blockchain, wherein the target transaction includes the latest calibration information data corresponding to the measuring device;
[0063] Step C, obtaining existing calibration information data of the measuring device;
[0064] Step D, determining whether the latest calibration information data is identical to the existing calibration information data; when the latest calibration information is different from the existing calibration information, executing steps A to D again until the latest calibration information is identical to the existing calibration information.
[0065] In yet another illustrated embodiment, the device status data corresponding to the usage stage includes: a seal identification code; the lifecycle management logic includes measurement device electronic seal status management logic;
[0066] The electronic seal status management logic includes:
[0067] Step A: obtaining the target transaction from the distributed ledger of the blockchain, wherein the target transaction includes the latest seal identification code corresponding to the measuring device;
[0068] Step B, obtaining the existing seal identification code of the measuring device;
[0069] Step C, determining whether the latest seal identification code is the same as the existing seal identification code;
[0070] When the latest seal identification code is different from the existing identification code,
[0071] Step D: Execute the preset alarm operation.
[0072] In yet another illustrated embodiment, the device status data corresponding to the use phase includes: abnormal state information data; the lifecycle management logic includes abnormal state management logic for measuring the device;
[0073] The abnormal state management logic includes:
[0074] Step A: obtaining the target transaction from the distributed ledger of the blockchain, wherein the target transaction includes abnormal state information corresponding to the measuring device;
[0075] Step B: executing preset fault analysis logic based on the abnormal status information.
[0076] In yet another illustrated embodiment, the device status data corresponding to the usage phase includes: device performance indicator data; the lifecycle management logic includes measurement device device performance status management logic;
[0077] The device performance status management logic includes:
[0078] Step A: obtaining the target transaction from the distributed ledger of the blockchain, wherein the target transaction includes device performance indicator data corresponding to the initial state of the measuring device;
[0079] Step B, obtaining device performance indicator data of the current state of the measuring device;
[0080] Step C, determining whether the device performance index data in the initial state is the same as the device performance index data in the current state;
[0081] When the device performance index data of the initial state is different from the device performance index data of the current state,
[0082] Step D: Execute the preset performance difference processing logic.
[0083] In another illustrated embodiment, the performance index data includes one or more of metrological performance index data, measurement accuracy index data, creep index data, measurement repeatability index data, operating environment index data, and electromagnetic compatibility index data.
[0084] In another illustrated embodiment, the device status data corresponding to the usage phase includes device operating environment data, and the device operating environment data includes one or more of temperature, humidity, air pressure, impact, load, and device inclination data.
[0085] In yet another illustrated embodiment, the equipment status data corresponding to the maintenance stage includes one or more of maintenance service personnel data, maintenance time data, and maintenance equipment identification data.
[0086] In yet another illustrated embodiment, the node device that performs lifecycle management on the measuring device includes a measurement supervision agency node device.
[0087] In yet another illustrated embodiment, the target transaction includes a classification index value, where the classification index value is used to identify a category of the device status data.
[0088] In yet another illustrated embodiment, the node device includes the measurement device.
[0089] In another illustrated embodiment, the blockchain is a consortium blockchain, and the process of the measuring device joining the blockchain network includes:
[0090] The alliance member node device of the alliance chain obtains the application for joining the chain by the measurement device;
[0091] Determine whether the measuring device meets the preset entry node conditions;
[0092] in the case of,
[0093] Send the alliance chain node device chain entry permission verification to the measuring device, so that the measuring device joins the blockchain network after the chain entry permission verification passes.
[0094] In another illustrated embodiment, the distributed ledger of the blockchain includes a local storage database of a node device of the blockchain network, or a database of a cloud storage server connected to the node device of the blockchain network.
[0095] Accordingly, this specification also provides a computer device, comprising: a memory and a processor; the memory stores a computer program that can be executed by the processor; when the processor runs the computer program, it executes the blockchain-based measurement equipment management method described in the above-mentioned embodiments.
[0096] Accordingly, this specification also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it executes the blockchain-based measurement equipment management method as described in the above embodiments.
[0097] As can be seen from the above technical solutions, the blockchain-based measurement equipment management method and device provided in this specification, based on the distributed ledger storage mechanism of blockchain technology, stores or records the target transaction in a decentralized manner (when the device status data is encrypted) in all node devices, which are jointly maintained by the node devices of the participating parties of the blockchain, and all records are traceable. Moreover, based on the consensus mechanism of the blockchain, the target transaction provided by each node device will not be tampered with after it is provided, thereby ensuring the authenticity and security of the device status data that is the basis of the target transaction. Furthermore, by reading the real and valid target transaction from the blockchain and performing life cycle management on the measurement device based on the device status data, management errors or losses that may be caused by tampering with the device status data can be avoided. BRIEF DESCRIPTION OF THE DRAWINGS
[0098] Figure 1 This is a flowchart of a blockchain-based measurement equipment management method provided by an exemplary embodiment;
[0099] Figure 2 This is a schematic diagram of a process for applying for a measurement device to join a chain, provided by an exemplary embodiment;
[0100] Figure 3 is a schematic diagram of block content provided by an exemplary embodiment;
[0101] Figure 4 is a flowchart of a blockchain-based measurement equipment calibration management method provided by another exemplary embodiment;
[0102] Figure 5 is a flowchart of a blockchain-based electronic seal status management method for a measuring device provided by another exemplary embodiment;
[0103] Figure 6 is a flowchart of a method for managing device performance indicators of a measuring device based on blockchain provided by another exemplary embodiment;
[0104] Figure 7is a schematic diagram of a blockchain-based measurement equipment management apparatus provided by an exemplary embodiment;
[0105] Figure 8 This is a hardware structure diagram for running the blockchain-based measurement equipment management device implementation provided in this specification. DETAILED DESCRIPTION
[0106] Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, identical numerals in different figures represent identical or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with one or more embodiments of this specification. Rather, they are merely examples of apparatuses and methods consistent with certain aspects of one or more embodiments of this specification, as detailed in the appended claims.
[0107] It should be noted that in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the method may include more or fewer steps than those described in this specification. In addition, a single step described in this specification may be broken down into multiple steps for description in other embodiments; and multiple steps described in this specification may be combined into a single step for description in other embodiments.
[0108] Measuring equipment is widely used in various industries. The life cycle of measuring equipment can include the production stage, logistics stage, installation stage, use stage, maintenance stage, or any combination of these stages. During the life cycle of measuring equipment, various equipment status information data can be generated, such as equipment production environment data generated during the production stage (including production parameters and adjustment parameters of equipment such as temperature and humidity, acid and alkaline conditions, and processing machine tools); logistics circulation data generated during the logistics stage (including time information such as entry and exit of logistics stations, environmental information along the way, and abnormal logistics transit information); adjustment and installation data generated during the installation stage (including electronic seal status, equipment calibration information, starting parameters, etc.); normal or abnormal usage data generated during the use stage (including measurement data generated during normal use, error information when anomalies occur, and software information on the equipment); and information data generated during the maintenance stage (including maintenance records, accuracy information of the equipment after maintenance, software update version numbers, etc.).
[0109] The device status data generated during the life cycle of the above-mentioned measuring equipment is of great significance to the normal use of the measuring equipment. At present, the storage management methods for various status information of measuring equipment usually include decentralized physical storage information management, that is, the above-mentioned device status data is stored separately in the manufacturer, logistics provider, and the computing server of the user client, or the above-mentioned multiple parties perform cloud storage data management. The storage management of these device status data is not secure enough and there is a risk of abnormal data modification. In addition, the decentralized physical storage information management method cannot efficiently retrieve information and multi-functional information applications, and information may be lost due to storage device failure.
[0110] Furthermore, the dispersed physical storage is not conducive to the coordinated management and application of the above-mentioned device status data generated during the life cycle of the measuring device.
[0111] In view of this, this specification provides a blockchain-based measurement device management method, which is applied to node devices in a blockchain network.
[0112] The blockchain network system described in one or more embodiments of this specification may specifically refer to a P2P network system with a distributed data storage structure, where each node device reaches consensus through a consensus mechanism. The data within the blockchain is distributed within a series of "blocks" that are connected in time, with each subsequent block containing a summary of the data of the previous block. Depending on the specific consensus mechanism (such as POW, POS, DPOS, or PBFT, etc.), full data backup is achieved for all or some nodes. It is well known to those skilled in the art that because blockchain systems operate under corresponding consensus mechanisms, data stored in the blockchain database is difficult to be tampered with by any node. For example, a blockchain using POW consensus requires an attack of at least 51% of the total computing power of the entire network to tamper with the existing data. Therefore, the blockchain system has the characteristics of ensuring data security and anti-tampering attacks that other centralized database systems cannot match. Therefore, in the embodiments provided in this specification, the data stored in the distributed ledger of the blockchain cannot be attacked or tampered with, thereby ensuring the authenticity and fairness of data management or applications based on the data stored in the blockchain.
[0113] Figure 1 The following illustrates the process steps of a blockchain-based measurement equipment management method provided in an exemplary embodiment of this specification, including:
[0114] Step 101 : Acquire device status data of a measuring device at each stage in its life cycle.
[0115] This specification does not limit the specific type of measuring equipment. Equipment, devices or equipment and device modules that can perform measurement or calibration functions can be included in the scope of the measuring equipment described in this specification.
[0116] The life cycle of the above-mentioned measuring equipment includes multiple stages in the cycle from the production to the retirement of the measuring equipment, such as the production stage, logistics stage, installation stage, use stage, maintenance stage, etc., or a combination of any several of the above-mentioned stages.
[0117] The equipment status data corresponding to the production stage of the measuring equipment may include: various production parameters recorded during the production process of the measuring equipment, such as the production date of the measuring equipment, production raw materials, production process, product serial number, production environment, production equipment parameters and other information data of various production links.
[0118] The equipment status data corresponding to the logistics stage of the measuring equipment may include information data generated by the measuring equipment during the circulation process after production, such as time and location information of entering and leaving the logistics station, environmental information along the way, abnormal logistics transit information, etc.; for more precise or valuable measuring equipment, the equipment status data in the logistics stage has a more important evidentiary significance in the traceability management of the measuring equipment.
[0119] Measuring equipment, especially large or precision measuring equipment, usually needs to be installed and debugged before it is put into use. Therefore, the equipment status data corresponding to the installation phase of the measuring equipment may include calibration parameters required for the measuring equipment during the installation phase, or error probability parameters generated during the installation phase, installation status description, parameter backup or recovery information (such as factory setting parameters), and other data.
[0120] The device status data corresponding to the usage phase of the measuring device may include any information data generated by the measuring device during use or required for reference, such as measurement data records generated by normal use, error information when an abnormality occurs (abnormal temperature, overload shock, etc.), software information installed on the device, standard operating procedure (SOP) information data, etc.
[0121] The electronic seal information data of the measuring device is information data reflecting whether the measuring device has been subjected to unknown unsealing or abnormal damage, etc. Therefore, the device status data corresponding to the usage stage may also include the electronic seal information data of the measuring device (or specific components or modules of the measuring device).
[0122] The performance index data of the measuring equipment also belongs to the equipment status data corresponding to the usage stage. Based on the specific type and attributes of the measuring equipment, the above-mentioned equipment performance index data may include one or more of the following data: metrological performance index data, measurement accuracy index data, creep index data, measurement repeatability index data, operating environment index data, electromagnetic compatibility index data, etc.
[0123] When the measuring device is in use, its operating status and measurement results are often affected by the operating environment. Therefore, the device status data corresponding to the usage node may also include device operating environment data, such as the temperature, humidity, air pressure when the device is in operation, the weight or load carried by the device during operation, the impact it receives, the inclination of the device during operation, and one or more other data.
[0124] The equipment status data corresponding to the maintenance stage of the measuring equipment may include any information data generated by the measuring equipment during the maintenance process or used as a reference, such as recovery data (factory setting data), fault detection program data, maintenance records, information of service personnel involved in the maintenance, maintenance time, identification of the maintenance equipment, etc.
[0125] The node device can be a computer device that manages the production, logistics, installation, use, or maintenance process of the measuring device, or a computer device that is connected to the measuring device for communication, or the measuring device itself, and this is not limited in this specification. Therefore, the specific method of obtaining the device status data can be that the node device obtains the data by inputting information about the production, logistics, installation, use, or maintenance process of the measuring device, or by communicating with the measuring device, or by generating the data itself (when the node device is a measuring device), and this is not limited in this specification.
[0126] The measuring device directly obtains device status data as a node device, such as the device status data generated by the measuring device during the installation, use or maintenance phase. Compared with the method of transmitting data from the measuring device to the management computing device or the device status data directly entered by the management computing device, this method simplifies the data transmission process, improves data processing efficiency, and to a certain extent avoids possible data errors or malicious modifications.
[0127] exist Figure 2 In the illustrated embodiment, in a blockchain network system based on a consortium chain architecture, the process of the measurement device joining the blockchain network to serve as a node device of the blockchain network may include:
[0128] Step 201: The alliance member node device of the alliance chain obtains the application for joining the chain of the measurement device;
[0129] In step 202, the alliance member node device of the alliance chain determines whether the measuring device meets the preset entry node conditions; the above-mentioned entry node conditions are physical conditions that the computing device should meet to serve as a node device of the above-mentioned blockchain network system. For example, the above-mentioned preset entry node conditions may include a preset storage capacity threshold, or a preset processor operation frequency threshold, etc.
[0130] in the case of,
[0131] In step 203, the alliance member node device of the alliance chain sends the alliance chain node device entry permission verification to the measuring device; the above-mentioned entry permission verification is the permission verification that the measuring device needs to pass in order to join the above-mentioned blockchain network system as a node device. After the verification is passed, the above-mentioned measuring device can join the above-mentioned blockchain network as a node device, and can initiate a data synchronization request to the neighboring node devices to obtain the existing data in the distributed ledger of the blockchain.
[0132] If not, step 204 sends the alliance member's client access permission verification to the measuring device; the above-mentioned client permission verification is the permission verification that the measuring device needs to pass in order to join the above-mentioned blockchain network system as a client of the alliance member node. After the verification is passed, the above-mentioned measuring device can send status data to the distributed ledger of the above-mentioned blockchain by communicating with the above-mentioned alliance member node device, or obtain data stored in the distributed ledger of the above-mentioned blockchain by communicating with the above-mentioned alliance member node device.
[0133] pass Figure 2 The illustrated management of the access permissions of measuring devices to the blockchain allows the measuring devices to be directly or indirectly connected to the blockchain network system and store the status data of the measuring devices directly or indirectly in the blockchain distributed ledger. This not only improves the efficiency of data storage and backup, but also improves the timeliness, effectiveness and authenticity of the above-mentioned status data storage based on the blockchain's tamper-proof mechanism.
[0134] Step 102: construct a target transaction based on the acquired device status data, and send the target transaction to other node devices in the blockchain network to perform consensus processing on the target transaction.
[0135] Real data generated in the physical world can be constructed into a standard transaction format supported by the blockchain, and then published to the blockchain. The node devices in the blockchain will conduct consensus processing on the received transactions. After reaching a consensus, the node devices in the blockchain that serve as accounting nodes will package the transactions into blocks and store them persistently in the blockchain (this process can be called "evidence storage").
[0136] The above-mentioned target transaction constructed based on the device status data may include the original text of the above-mentioned device status data; since the data stored in the distributed ledger of the blockchain are backed up in its multiple node devices, in order to protect data privacy and security, the above-mentioned target transaction may also include the encrypted above-mentioned device status data, or the evidence data of the above-mentioned device status data (such as the hash summary value of the device status data), etc.
[0137] In this embodiment, the specific consensus algorithm used in the above consensus processing is not limited. Currently, the consensus algorithms supported in blockchain can include:
[0138] The first type of consensus algorithm is a consensus algorithm in which node devices need to compete for the right to record accounts in each accounting cycle; for example, consensus algorithms such as Proof of Work (POW), Proof of Stake (POS), and Delegated Proof of Stake (DPOS);
[0139] The second type of consensus algorithm is a consensus algorithm that pre-selects accounting nodes for each accounting cycle (without the need to compete for accounting rights); for example, consensus algorithms such as Practical Byzantine Fault Tolerance (PBFT).
[0140] In a blockchain network using the first type of consensus algorithm, all nodes competing for the right to record transactions can execute them upon receiving them. One of these nodes may emerge victorious in this round of competition, becoming the record-keeping node. The record-keeping node can bundle the received transaction with other transactions to generate a new block and send the generated new block, or its header, to other nodes for consensus.
[0141] In blockchain networks using the second-type consensus algorithm, the node devices with accounting rights are determined before the current accounting round. Therefore, after receiving a transaction, if the node device itself is not the accounting node for this round, it can send the transaction to the accounting node. The accounting node for this round can execute the transaction before or during the process of packaging it with other transactions to generate the latest block. After generating the latest block, the accounting node can send the latest block or its block header to other node devices for consensus.
[0142] Figure 3 Schematic diagram of an exemplary block containing one or more target transactions. Figure 3 As shown, the device status data contained in the block body of this block may include: the measuring device's product serial number, production parameter information, logistics transit information, measurement calibration information, electronic seal information, abnormal status information, measurement software version information, and other status data. It is worth noting that the above information data can be included in a single target transaction or in multiple target transactions.
[0143] In order to further facilitate the statistics, retrieval and other applications of equipment status data, such as Figure 3As shown, the target transaction may further include a classification index value to identify the category of the status data. For example, classification index values
[001] ,
[002] ,
[003] ,
[004] ,
[005] , etc. may be set for the equipment status data corresponding to the production stage, logistics stage, installation stage, use stage, and maintenance stage, respectively.
[0144] Step 103: When the target transaction consensus is passed, the target transaction is stored in the distributed ledger of the blockchain network; wherein the target transaction stored in the distributed ledger of the blockchain network is used to perform lifecycle management of the measuring device.
[0145] As described above, regardless of the consensus algorithm used by the blockchain, the accounting node in this round can package the received transactions to generate a new block and send the generated new block or its header to other node devices for consensus verification. If the other node devices receive the new block or its header and verify that there are no problems, they can append the new block to the end of the existing blockchain, thus completing the blockchain accounting process. While other nodes are verifying the new block or header sent by the accounting node, they can also execute the transactions contained in the block.
[0146] It is worth noting that the distributed ledger of the blockchain described in this specification includes the local storage database of the node device in the above-mentioned blockchain network system, and may also include the database of the cloud storage server that is communicatively connected to the node device in the above-mentioned blockchain network system.
[0147] Based on the blockchain-based measurement equipment management method provided by one or more of the above-mentioned embodiments, the distributed ledger storage mechanism based on blockchain technology stores the target transaction in a decentralized manner in all node devices, which are jointly maintained by the node devices of the participating parties of the blockchain, and all records are traceable. Moreover, based on the consensus mechanism of the blockchain, the target transaction provided by each node device will not be tampered with after it is provided, thereby ensuring the authenticity and security of the device status data that serves as the basis for the target transaction. Since the above-mentioned device status data may include information data corresponding to the life cycle stages of the measurement equipment, such as production, logistics, installation, use, and maintenance, the blockchain-based data storage method provided by one or more of the above-mentioned embodiments improves the security and privacy of the life cycle management of the measurement equipment (when the target transaction contains encrypted device status data), and improves the efficiency of data management.
[0148] As measuring equipment circulates and grows in use, the amount of device status data stored in the blockchain's distributed ledger will continue to grow. This data can be used to analyze and apply various aspects of the device's status. For example, big data analysis or artificial intelligence can be used to analyze the entire lifecycle of measuring equipment, including traceability, calibration, seal status determination, and diagnostics.
[0149] In one illustrated embodiment, any node device in the blockchain network system can obtain the target transaction from the blockchain's distributed ledger and, locally on the node device, perform lifecycle management of the measurement device based on the device state data or encrypted device state data included in the target transaction. The node device that obtains the target transaction and performs lifecycle management of the measurement device can be referred to as a management client.
[0150] In another embodiment shown, a smart contract for lifecycle management of the measuring device is deployed in the blockchain; the blockchain network can be configured with a management client that is in communication with the node device to perform lifecycle management of the measuring device. The process of lifecycle management of the measuring device includes: responding to a target call transaction sent by the management client for lifecycle management of the measuring device, calling the lifecycle management logic declared in the smart contract, and performing lifecycle management of the measuring device based on the device status data. Compared to the centralized management client's local operation mode of lifecycle management, the smart contract should be called at any time in response to the target call transaction sent by the management client, which greatly improves the efficiency of lifecycle management; and the execution of smart contracts has the advantages of low human intervention and decentralized authority, which further increases the fairness of lifecycle management behavior.
[0151] Hereinafter, this specification will provide multiple implementation methods for lifecycle management of measurement equipment based on the above-mentioned target transactions.
[0152] [Implementation method 1: Calibration management method for measuring equipment]
[0153] Calibration refers to the use of standard metrological parameters to verify the accuracy (precision) of a measured device. It is primarily used for high-precision measuring devices and can also be considered calibration. To ensure the accuracy of measurement results produced by a measuring device during use, the device typically requires calibration before use (which can be understood as the installation phase). The calibration information described in this embodiment may include the standard metrological parameters used during the calibration process.
[0154] Measuring equipment can undergo initial calibration before use. The calibration information generated or used during this initial calibration phase can be uploaded to the blockchain's distributed ledger in the form of a transaction by the measuring device (as a node device) or a node device connected to the measuring device. It is worth noting that the aforementioned transaction may also include a classification index value corresponding to the calibration information. If a measuring device malfunctions during use, the calibration information may need to be updated again, and this updated calibration information will also need to be uploaded to the blockchain's distributed ledger in the form of a transaction.
[0155] Figure 4 This section illustrates the calibration management of measuring equipment based on the measuring equipment management method provided in this specification. The management process includes:
[0156] Step 401, calibrating the measuring device;
[0157] Step 402: Obtain a calibration evidence transaction from the distributed ledger of the blockchain, wherein the calibration evidence transaction includes the latest calibration information corresponding to the calibration process;
[0158] Step 403: Obtain existing calibration information of the measuring device;
[0159] Step 404, determine whether the latest calibration information is the same as the existing calibration information; when the latest calibration information is the same as the existing calibration information, it can be known that the calibration status of the measuring device is normal; when the latest calibration information is different from the existing calibration information, execute steps 401 to 404 again until the latest calibration information is the same as the existing calibration information.
[0160] Through the calibration management process of the measuring equipment described in steps 401 to 404, the above-mentioned measuring equipment can be debugged to the calibration state corresponding to the latest calibration information, and the blockchain-based anti-tampering mechanism can store the latest calibration information as evidence, which can prevent the above-mentioned latest calibration information from being maliciously tampered with, and ensure that the measuring equipment is operated and used in the calibration state corresponding to the latest calibration information.
[0161] [Implementation Method 2: Calibration Management Method for Measuring Equipment Using Smart Contract Calls]
[0162] In this embodiment, a smart contract for calibration management of measuring devices is declared in the blockchain network. This smart contract may declare the calibration management logic of the measuring device described in steps 401 to 404. The measuring device may be communicatively connected to the management client of the blockchain, or the measuring device may serve as the management client of the blockchain. The calibration management method for measuring devices described in this embodiment may include:
[0163] In response to a call transaction sent by the management client to perform calibration management on the measuring device, the calibration management logic of the measuring device declared in the above-mentioned smart contract is called, and based on the latest calibration information stored on the blockchain, the above-mentioned measuring device is calibrated so that the above-mentioned measuring device reaches a device calibration state that complies with the above-mentioned latest calibration information.
[0164] By sending smart contract call transactions to the blockchain through the management client, the calibration management of the measuring equipment can be automatically completed, eliminating the time and economic costs required for professional technicians to perform on-site calibration of the measuring equipment. The blockchain-based anti-tampering mechanism prevents the latest calibration information from being maliciously tampered with, ensuring that the measuring equipment reaches an accurate calibration state corresponding to the latest calibration information.
[0165] [Implementation Method 3: Electronic Seal Status Management Method for Measuring Equipment]
[0166] To ensure the security and accuracy of measuring equipment and prevent unauthorized access or parameter modification, an electronic seal module is often installed to protect the measuring equipment. This electronic seal module (such as an RFID chip) is equipped with a unique seal identification code that corresponds to the measuring equipment's product serial number or other identification. In this embodiment, the device status data may include this seal identification code.
[0167] When the measuring device is in use, the seal identification code of the measuring device can be obtained through the data acquisition device. The measuring device (as a node device) or the node device connected to the measuring device uploads the seal identification code and the measuring device's product serial number and other identification identifiers to the distributed ledger of the blockchain in the format of a transaction. It is worth noting that the above transaction may also include a classification index value corresponding to the seal identification code. If the measuring device fails during use or requires regular maintenance and updates, the electronic seal module may be reconfigured or replaced. At this time, the measuring device (as a node device) or the node device connected to the measuring device uploads the updated seal identification code and the measuring device's product serial number and other identification identifiers to the distributed ledger of the blockchain in the format of a transaction, thereby ensuring that the distributed ledger of the blockchain contains the latest and valid seal identification code corresponding to the measuring device.
[0168] Figure 5 This section illustrates the management of the electronic seal status of measuring equipment based on the measuring equipment management method provided in this specification. The management process includes:
[0169] Step 501: Obtain a seal identification code evidence transaction from the distributed ledger of the blockchain, wherein the seal identification code evidence transaction includes the latest seal identification code corresponding to the measuring device;
[0170] Step 502: Obtain the existing seal identification code of the measuring device;
[0171] Step 503, determine whether the latest seal identification code and the existing seal identification code are the same; when the latest calibration information and the existing calibration information are the same, it can be known that the seal status of the measuring device is normal, and no abnormal opening or parameter change has occurred; when the latest seal identification code and the existing seal identification code are different, it can be known that the seal status of the above-mentioned measuring device is abnormal, and unauthorized opening or parameter change may have occurred. At this time, a preset prompt or alarm operation can be executed as shown in step 504, such as sending a prompt on the user interface of the management client, or remotely sending an alarm signal to the management device of the measuring device to notify relevant personnel to pay attention.
[0172] Through the electronic seal status management process of the measuring device described in steps 501 to 504, the blockchain-based tamper-proof mechanism can store the latest valid seal identification code of the measuring device. When the existing seal identification code of the measuring device is different from the seal identification code stored in the blockchain, it can be accurately known that the measuring device has been opened or changed without authorization, thereby facilitating relevant personnel to promptly know the abnormal status of the measuring device and take corresponding measures.
[0173] Implementation 4: Method for managing the electronic seal status of measuring equipment using smart contract calls
[0174] In this embodiment, a smart contract for managing the electronic seal status of a measuring device is declared in the blockchain network. This smart contract may declare the electronic seal status management logic for the measuring device described in steps 501 to 504. The measuring device may be communicatively connected to the management client of the blockchain, or the measuring device may serve as the management client of the blockchain. The method for managing the electronic seal status of a measuring device described in this embodiment may include:
[0175] In response to the call transaction sent by the management client to manage the electronic seal status of the measuring device, the electronic seal status management logic of the measuring device declared in the above smart contract is called. Based on the latest seal identification code stored on the blockchain, it is compared with the existing seal identification code of the measuring device to accurately determine whether any unauthorized abnormal changes have occurred to the measuring device.
[0176] By sending smart contract call transactions to the blockchain through the management client, the electronic seal status management of the measuring equipment can be automatically completed, eliminating the time and economic costs required for professional technicians to conduct on-site electronic seal status inquiries on the measuring equipment; the blockchain-based anti-tampering mechanism prevents the above-mentioned latest seal identification code from being maliciously tampered with, ensuring the accuracy of the latest seal identification code; and based on the preset alarm or prompt operation logic, it automatically completes the alarm operation or record.
[0177] [Implementation 5: Device Performance Status Management Method for Measuring Equipment]
[0178] When measuring equipment is in use, many performance indicators are often used to characterize its performance, such as metrological performance indicators, measurement accuracy indicators, creep indicators, measurement repeatability indicators, operating environment indicators, and electromagnetic compatibility indicators. After a period of use, the performance of the measuring equipment will change, and the above indicators may also change accordingly.
[0179] Before the measuring device begins to be used, it can obtain the device performance indicator data of the measuring device in its initial state through a data acquisition device or a standard mold. The measuring device (as a node device) or a node device connected to the measuring device uploads the above-mentioned device performance indicator data in the initial state and the identification identifiers such as the product serial number of the measuring device to the distributed ledger of the blockchain in the format of a transaction. It is worth noting that the above-mentioned transaction may also include a classification index value corresponding to the device performance indicator data. After the measuring device has been used for a certain period of time or a specific number of times, the above-mentioned device performance indicators may change. At this time, the data acquisition device, the standard mold, or the measuring device itself will measure and calculate to obtain the existing device performance indicator data of the measuring device.
[0180] Figure 6 This section illustrates the management of the device performance indicator status of a measuring device based on the measuring device management method provided in this specification. The management process includes:
[0181] Step 601: Obtain a device performance indicator evidence transaction from the distributed ledger of the blockchain, wherein the device performance indicator evidence transaction includes device performance indicator data corresponding to the initial state of the measuring device;
[0182] Step 602: Obtain device performance indicator data of the current state of the measuring device;
[0183] Step 603, determine whether the device performance indicator data of the initial state is the same as the device performance indicator data of the current state; when the device performance indicator data of the initial state is the same as the device performance indicator data of the current state, it can be known that the performance state of the measuring device is normal and the device measurement state is good; when the device performance indicator data of the initial state is different from the device performance indicator data of the current state, it can be known that the operating state of the above-mentioned measuring device or the accuracy of the measurement result is abnormal. At this time, the preset performance difference processing logic can be executed as shown in step 604, such as sending a performance difference prompt or a device adjustment prompt on the user interface of the management client to notify relevant personnel to pay attention, or the measuring device (as a node device) or the node device connected to the measuring device uploads the device performance indicator data of the current state, or the difference between the device performance indicators of the initial state and the current state to the distributed ledger of the blockchain in a transaction format to record or store the above-mentioned difference.
[0184] After a certain period of use, the performance status of the measuring device may decline. Through the device performance status management process of the measuring device described in steps 601 to 604, the anti-tampering mechanism based on the blockchain can store the device performance indicators of the initial state of the measuring device and manage the performance status of the measuring device, thereby facilitating relevant personnel to promptly learn of the performance status differences of the measuring device and take corresponding measures.
[0185] Implementation 6: Method for managing the performance status of measurement equipment using smart contract calls
[0186] In this embodiment, a smart contract for managing the device performance status of the measuring device is declared in the blockchain network. The smart contract may declare the device performance status management logic of the measuring device as described in steps 601 to 604. The measuring device may be communicatively connected to the management client of the blockchain, or the measuring device may serve as the management client of the blockchain. The method for managing the device performance status of the measuring device described in this embodiment may include:
[0187] In response to a call transaction sent by the management client to manage the device performance status of the measuring device, the device performance status management logic of the measuring device declared in the above-mentioned smart contract is called, and the device performance indicator data of the initial state stored on the blockchain is compared with the device performance indicator data of the current state of the measuring device. When the device performance indicator of the measuring device undergoes abnormal changes, the preset performance difference processing logic is adopted.
[0188] By sending smart contract call transactions to the blockchain through the management client, the performance status management of the measuring equipment can be automatically completed, eliminating the time and economic costs required for professional technicians to conduct on-site performance indicator status inquiries on the measuring equipment; the blockchain-based tamper-proof mechanism prevents the above-mentioned original performance indicator data from being tampered with or lost, ensuring the accuracy of the data; and based on the preset performance difference processing logic, performance difference processing is automatically completed.
[0189] [Implementation 7: Abnormal State Management Method for Measuring Equipment]
[0190] Measuring equipment is often equipped with various sensors to collect data signals or monitor the environmental status of the equipment. In this embodiment, when the measuring device or the sensor module configured for the measuring device senses abnormal status information, such as abnormal temperature information, humidity information, impact information, etc., the measuring device (as a node device) or the node device connected to the measuring device can upload the above abnormal status information to the distributed ledger of the blockchain in the format of a transaction, thereby storing the above abnormal status information on the blockchain. It is worth noting that the above transaction can also include a classification index value corresponding to the abnormal status information, or set corresponding classification index values for different types of abnormal status information to facilitate retrieval and query of abnormal status information.
[0191] When performing fault analysis on measuring equipment, various types of abnormal status information stored in the blockchain can be read according to the classification index value, and then the fault analysis of the measuring device can be performed based on this abnormal status information.
[0192] Optionally, the logic for obtaining abnormal status information from the blockchain's distributed ledger and performing fault analysis on the measurement device based on pre-defined fault analysis logic can be declared in a smart contract. The measurement device can communicate with the blockchain's management client, or the measurement device can serve as the blockchain's management client.
[0193] In response to a transaction sent by the management client requesting fault analysis and management of the measuring device, the management logic declared in the smart contract is invoked, abnormal status information is retrieved from the blockchain's distributed ledger, and fault analysis of the measuring device is performed based on the pre-set fault analysis logic. The management client can obtain the results of the smart contract's execution by monitoring or querying the blockchain's transaction log.
[0194] By sending a call transaction through the management client, any manager of the measuring equipment can quickly and easily complete fault analysis of the measuring equipment based on the smart contract. Since the smart contract can be called and run at any time, this implementation method greatly saves the cost of professional fault maintenance or analysis personnel performing fault analysis or repair of the measuring equipment on site.
[0195] In another illustrated embodiment, the device status data may include logistics and circulation information. The lifecycle management logic declared in the smart contract may include tracing the distribution process of the measuring device based on the logistics and circulation information stored in the blockchain's distributed ledger. The blockchain-based tamper-proof mechanism, invoked by the management client, allows for quick and accurate traceability of the measuring device's distribution, effectively preventing the circulation of counterfeit measuring devices.
[0196] In another illustrated embodiment, the device status data may include software information data (such as a software version number) installed on the measuring device. The lifecycle management logic declared in the smart contract may include managing software updates for the measuring device based on the software information data stored in the blockchain's distributed ledger. For example, when the measuring device's current software version number is lower than the software version number stored in the blockchain, a software upgrade is performed on the measuring device; when the measuring device's current software version number is higher than the software version number stored in the blockchain, a transaction documenting the current software version number is sent to the blockchain's distributed ledger. Based on the blockchain's tamper-proof mechanism, the management client can quickly and accurately manage the measuring device's software status.
[0197] In another illustrated embodiment, the device status data may also include factory settings or system backup parameters for the measuring device. The lifecycle management logic declared in the smart contract may include restoring the measuring device to the factory settings or system backup parameters stored in the blockchain's distributed ledger. Using blockchain-based tamper-proof mechanisms, the management client can quickly and accurately restore the measuring device to the desired settings.
[0198] In another embodiment, the device status data may also include Standard Operating Procedure (SOP) information. The lifecycle management logic declared in the smart contract may include using the SOP data stored in the blockchain-based distributed ledger to place the measuring device within the SOP. Using the blockchain's tamper-proof mechanism, the management client can quickly and accurately use the measuring device according to the SOP.
[0199] It can be seen that in the multiple implementations provided in this specification, the node devices of the blockchain can send various device status data of the measuring device during its life cycle to the distributed ledger of the blockchain network for evidence storage, so that the life cycle management of the measuring device can be carried out in aspects such as information evidence storage, information tracing, information backup and reuse, or other information applications based on the above-mentioned multiple device status data. Due to the anti-tampering mechanism of the blockchain, the life cycle management logic described in each of the above-mentioned implementations is based on accurate data, thereby improving the accuracy of measuring device management; because the various status data of the measuring device such as the production process, logistics circulation, installation and debugging, use process, and maintenance stage are all stored in the distributed ledger of the blockchain, compared with distributing the above-mentioned various management information in the manufacturer's terminal, logistics company terminal, and user terminal, it not only improves the security of the device status data storage, but also improves the application rate based on the above-mentioned various device status data and the efficiency of measuring device management. Moreover, based on the measurement equipment management method provided in this specification, the metrology regulatory agency of the measurement industry can act as a node device of the above-mentioned blockchain (for example, as an alliance member node device of the alliance chain) to obtain equipment status data corresponding to each stage of the life cycle of the measurement equipment, thereby quickly and accurately realizing the supervision of the production, circulation, use and maintenance of the measurement equipment.
[0200] In order to further improve the security of the above-mentioned measurement device management and prevent the status data information of the measurement device from being known by unauthorized client terminals or node devices, the node device may encrypt the above-mentioned device status data when constructing the above-mentioned target transaction.
[0201] For example, a node device used to send a target transaction can encrypt the device status data using the authorized client's public key and package the ciphertext into the target transaction. A node device or blockchain client acting as an authorized client terminal can decrypt the ciphertext included in the target transaction using the authorized client's private key, thereby obtaining the original device status data. For an unauthorized client terminal, even if it receives the target transaction as a node device in the blockchain, it cannot decrypt the ciphertext and therefore cannot obtain the original device status data.
[0202] Corresponding to the above process implementation, the embodiment of this specification also provides a blockchain-based measurement equipment management device 70. The device 70 can be implemented by software, hardware, or a combination of software and hardware. Taking software implementation as an example, as a device in the logical sense, it is formed by the CPU (Central Process Unit) of the device reading the corresponding computer program instructions into the memory and running them. From the hardware level, in addition to Figure 8In addition to the CPU, memory and storage shown, the device where the above-mentioned device is located generally also includes other hardware such as a chip for transmitting and receiving wireless signals, and / or other hardware such as a board for realizing network communication functions.
[0203] like Figure 7 As shown, this specification also provides a blockchain-based measurement equipment management device 70, which is applied to node devices in a blockchain network; including:
[0204] An acquiring unit 701 is configured to acquire device status data of a measuring device at each stage in its life cycle;
[0205] A sending unit 702 is configured to construct a target transaction based on the acquired device status data, and send the target transaction to other node devices in the blockchain network to perform consensus processing on the target transaction;
[0206] The storage unit 703 is configured to store the target transaction in the distributed ledger of the blockchain network after the target transaction consensus is passed; wherein the target transaction stored in the distributed ledger of the blockchain network is used to perform lifecycle management of the measuring device.
[0207] In yet another illustrated embodiment, the target transaction includes the device status data or a ciphertext of the device status data; the life cycle includes multiple stages in the cycle of the measuring device from production to retirement;
[0208] The life cycle includes any combination of the following stages:
[0209] Production stage, logistics stage, installation stage, use stage, and maintenance stage.
[0210] In another illustrated embodiment, a smart contract for lifecycle management of the measuring device is deployed in the blockchain; the process of lifecycle management of the measuring device includes:
[0211] In response to a target call transaction for lifecycle management of the measuring device sent by a management client, the lifecycle management logic declared in the smart contract is called, and lifecycle management of the measuring device is performed based on the device status data.
[0212] In yet another illustrated embodiment, the device status data corresponding to the installation phase includes: device calibration information data; the lifecycle management logic includes measurement device calibration logic;
[0213] The measurement device calibration logic includes:
[0214] Step A, calibrating the measuring device;
[0215] Step B: obtaining the target transaction from the distributed ledger of the blockchain, wherein the target transaction includes the latest calibration information data corresponding to the measuring device;
[0216] Step C, obtaining existing calibration information data of the measuring device;
[0217] Step D, determining whether the latest calibration information data is identical to the existing calibration information data; when the latest calibration information is different from the existing calibration information, executing steps A to D again until the latest calibration information is identical to the existing calibration information.
[0218] In yet another illustrated embodiment, the device status data corresponding to the usage stage includes: a seal identification code; the lifecycle management logic includes measurement device electronic seal status management logic;
[0219] The electronic seal status management logic includes:
[0220] Step A: obtaining the target transaction from the distributed ledger of the blockchain, wherein the target transaction includes the latest seal identification code corresponding to the measuring device;
[0221] Step B, obtaining the existing seal identification code of the measuring device;
[0222] Step C, determining whether the latest seal identification code is the same as the existing seal identification code;
[0223] When the latest seal identification code is different from the existing identification code,
[0224] Step D: Execute the preset alarm or prompt operation.
[0225] In yet another illustrated embodiment, the device status data corresponding to the use phase includes: abnormal state information data; the lifecycle management logic includes abnormal state management logic for measuring the device;
[0226] The abnormal state management logic includes:
[0227] Step A: obtaining the target transaction from the distributed ledger of the blockchain, wherein the target transaction includes abnormal state information corresponding to the measuring device;
[0228] Step B: executing preset fault analysis logic based on the abnormal status information.
[0229] In yet another illustrated embodiment, the device status data corresponding to the usage phase includes: device performance indicator data; the lifecycle management logic includes measurement device device performance status management logic;
[0230] The device performance status management logic includes:
[0231] Step A: obtaining the target transaction from the distributed ledger of the blockchain, wherein the target transaction includes device performance indicator data corresponding to the initial state of the measuring device;
[0232] Step B, obtaining device performance indicator data of the current state of the measuring device;
[0233] Step C, determining whether the device performance index data in the initial state is the same as the device performance index data in the current state;
[0234] When the device performance index data of the initial state is different from the device performance index data of the current state,
[0235] Step D: Execute the preset performance difference processing logic.
[0236] In another illustrated embodiment, the performance index data includes one or more of metrological performance index data, measurement accuracy index data, creep index data, measurement repeatability index data, operating environment index data, and electromagnetic compatibility index data.
[0237] In another illustrated embodiment, the device status data corresponding to the usage phase includes device operating environment data, and the device operating environment data includes one or more of temperature, humidity, air pressure, impact, load, and device inclination data.
[0238] In yet another illustrated embodiment, the equipment status data corresponding to the maintenance stage includes one or more of maintenance service personnel data, maintenance time data, and maintenance equipment identification data.
[0239] In yet another illustrated embodiment, the node device that performs lifecycle management on the measuring device includes a measurement supervision agency node device.
[0240] In yet another illustrated embodiment, the target transaction includes a classification index value, where the classification index value is used to identify a category of the device status data.
[0241] In yet another illustrated embodiment, the node device includes the measurement device.
[0242] In another illustrated embodiment, the blockchain is a consortium blockchain, and the process of the measuring device joining the blockchain network includes:
[0243] The alliance member node device of the alliance chain obtains the application for joining the chain by the measurement device;
[0244] Determine whether the measuring device meets the preset entry node conditions;
[0245] in the case of,
[0246] Send the alliance chain node device chain entry permission verification to the measuring device, so that the measuring device joins the blockchain network after the chain entry permission verification passes.
[0247] In another illustrated embodiment, the distributed ledger of the blockchain includes a local storage database of a node device of the blockchain network, or a database of a cloud storage server connected to the node device of the blockchain network.
[0248] The implementation process of the functions and effects of each unit in the above-mentioned device 70 is specifically detailed in the implementation process of the corresponding steps in the blockchain-based measurement equipment management method executed by the above-mentioned blockchain node device. For relevant matters, please refer to the partial description of the method implementation method, which will not be repeated here.
[0249] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of the units or modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. Those of ordinary skill in the art can understand and implement the present invention without inventive effort.
[0250] The devices, units, and modules described in the above embodiments may be implemented by computer chips or entities, or by products having certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email transceiver, game console, tablet computer, wearable device, or any combination of these devices.
[0251] Corresponding to the above method implementation, the implementation of this specification also provides a computer device, such as Figure 8As shown, the computer device includes a memory and a processor. The memory stores a computer program executable by the processor. When the processor executes the stored computer program, it executes each step of the blockchain-based measurement device management method performed by the blockchain node device described above in the embodiments of this specification. A detailed description of each step of the blockchain-based measurement device management method performed by the node device is provided above and will not be repeated here.
[0252] Corresponding to the above-described method implementation, embodiments of this specification also provide a computer-readable storage medium storing a computer program. When executed by a processor, these computer programs execute the various steps of the blockchain-based measurement device management method performed by the blockchain node device in the embodiments of this specification. A detailed description of the various steps of the blockchain-based measurement device management method performed by the blockchain node device is provided above and will not be repeated here.
[0253] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.
[0254] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0255] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0256] Computer-readable media include permanent and non-permanent, removable and non-removable media that can store information using any method or technology. The information can be computer-readable instructions, data structures, program modules or other data.
[0257] Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory media such as modulated data signals and carrier waves.
[0258] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0259] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Thus, the embodiments of this specification may take the form of a complete hardware implementation, a complete software implementation, or an implementation combining software and hardware aspects. Furthermore, the embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
Claims
1. A blockchain-based measurement equipment management method, applied to node devices in a blockchain network; comprising: Acquire device status data of the measuring device at each stage in the life cycle of the measuring device; Constructing a target transaction based on the acquired device status data, and sending the target transaction to other node devices in the blockchain network to perform consensus processing on the target transaction; When the target transaction consensus is passed, the target transaction is stored in the distributed ledger of the blockchain network; wherein the target transaction stored in the distributed ledger of the blockchain network is used to perform life cycle management on the measuring device; A smart contract for lifecycle management of the measuring device is deployed in the blockchain; the process of lifecycle management of the measuring device includes: In response to a target call transaction for lifecycle management of the measuring device sent by a management client, the lifecycle management logic declared in the smart contract is called to perform lifecycle management on the measuring device based on the device status data; wherein the lifecycle includes any combination of a production stage, a logistics stage, an installation stage, a use stage, and a maintenance stage; The equipment status data corresponding to the installation phase includes: equipment calibration information data; the life cycle management logic includes measurement equipment calibration logic; The measurement device calibration logic includes: Step A, calibrating the measuring device; Step B, obtaining the target transaction from the distributed ledger of the blockchain, wherein the target transaction includes the latest calibration information data corresponding to the measuring device; Step C, obtaining existing calibration information data of the measuring device; Step D, determining whether the latest calibration information data is the same as the existing calibration information data; when the latest calibration information is different from the existing calibration information, executing steps A to D again until the latest calibration information is the same as the existing calibration information. 2 . The method according to claim 1 , wherein the target transaction includes original text of the device status data or ciphertext of the device status data.
3. The method according to claim 1, wherein the device status data corresponding to the use stage comprises: seal identification code; the life cycle management logic includes measurement equipment electronic seal status management logic; The electronic seal status management logic includes: Step A, obtaining the target transaction from the distributed ledger of the blockchain, wherein the target transaction includes the latest seal identification code corresponding to the measuring device; Step B, obtaining the existing seal identification code of the measuring device; Step C, determining whether the latest seal identification code is the same as the existing seal identification code; When the latest seal identification code is different from the existing identification code, Step D, executing the preset prompt or alarm operation.
4. The method according to claim 1, wherein the device status data corresponding to the use stage comprises: Abnormal status information data; The lifecycle management logic includes abnormal state management logic of the measuring device; The abnormal state management logic includes: Step A, obtaining the target transaction from the distributed ledger of the blockchain, wherein the target transaction includes abnormal state information corresponding to the measuring device; Step B: executing preset fault analysis logic based on the abnormal status information.
5. The method according to claim 1, wherein the device status data corresponding to the use stage comprises: Equipment performance indicator data; The lifecycle management logic includes device performance status management logic for measuring devices; The device performance status management logic includes: Step A, obtaining the target transaction from the distributed ledger of the blockchain, wherein the target transaction includes device performance indicator data of an initial state corresponding to the measuring device; Step B, obtaining equipment performance indicator data of the current state of the measuring equipment; Step C, determining whether the equipment performance index data in the initial state is the same as the equipment performance index data in the current state; When the equipment performance index data of the initial state is different from the equipment performance index data of the current state, Step D: execute the preset performance difference processing logic.
6. The method according to claim 5, wherein the performance indicator data comprises: One or more of metrological performance index data, measurement accuracy index data, creep index data, measurement repeatability index data, operating environment index data, and electromagnetic compatibility index data.
7. According to the method of claim 1 or 3 or 4 or 5, the device status data corresponding to the use stage includes device operating environment data, and the device operating environment data includes: One or more of temperature, humidity, air pressure, shock, load, and equipment tilt data.
8. The method according to claim 1, wherein the equipment status data corresponding to the maintenance stage comprises one or more of maintenance service personnel data, maintenance time data, and maintenance equipment identification data.
9. The method according to claim 1, wherein the node device that performs lifecycle management on the measuring device comprises a metering regulatory agency node device.
10. The method according to claim 1 or 2, wherein the target transaction comprises a classification index value, and the classification index value is used to identify a category of the device status data. The method according to claim 1 , wherein the node device comprises the measuring device.
12. The method according to claim 11, wherein the blockchain is a consortium blockchain, and the process of the measuring device joining the blockchain network comprises: The alliance member node device of the alliance chain obtains the application for joining the chain by the measuring device; Determine whether the measuring device meets the preset link entry node conditions; in the case of, Send the alliance chain node device entry permission verification to the measuring device, so that the measuring device joins the blockchain network after the entry permission verification passes.
13. According to the method of claim 1, the distributed ledger of the blockchain includes a local storage database of a node device of the blockchain network, or a database of a cloud storage server connected to the node device of the blockchain network.
14. A blockchain-based measurement equipment management device, applied to a node device in a blockchain network; comprising: An acquisition unit, used to acquire device status data of the measuring device at each stage in the life cycle of the measuring device; A sending unit, configured to construct a target transaction based on the acquired device status data, and send the target transaction to other node devices in the blockchain network to perform consensus processing on the target transaction; A storage unit, configured to store the target transaction in a distributed ledger of the blockchain network after the target transaction consensus is passed; wherein the target transaction stored in the distributed ledger of the blockchain network is used to perform life cycle management on the measuring device; A smart contract for lifecycle management of the measuring device is deployed in the blockchain; the process of lifecycle management of the measuring device includes: In response to a target call transaction for lifecycle management of the measuring device sent by a management client, the lifecycle management logic declared in the smart contract is called to perform lifecycle management on the measuring device based on the device status data; wherein the lifecycle includes any combination of a production stage, a logistics stage, an installation stage, a use stage, and a maintenance stage; The equipment status data corresponding to the installation phase includes: equipment calibration information data; the life cycle management logic includes measurement equipment calibration logic; The measurement device calibration logic includes: Step A, calibrating the measuring device; Step B, obtaining the target transaction from the distributed ledger of the blockchain, wherein the target transaction includes the latest calibration information data corresponding to the measuring device; Step C, obtaining existing calibration information data of the measuring device; Step D, determining whether the latest calibration information data is the same as the existing calibration information data; when the latest calibration information is different from the existing calibration information, executing steps A to D again until the latest calibration information is the same as the existing calibration information. 15 . The apparatus according to claim 14 , wherein the target transaction includes the device state data or a ciphertext of the device state data.
16. The apparatus according to claim 14, wherein the device status data corresponding to the use stage comprises: seal identification code; the life cycle management logic includes measurement equipment electronic seal status management logic; The electronic seal status management logic includes: Step A, obtaining the target transaction from the distributed ledger of the blockchain, wherein the target transaction includes the latest seal identification code corresponding to the measuring device; Step B, obtaining the existing seal identification code of the measuring device; Step C, determining whether the latest seal identification code is the same as the existing seal identification code; When the latest seal identification code is different from the existing identification code, Step D, executing the preset alarm or prompt operation.
17. The apparatus according to claim 14, wherein the device status data corresponding to the use stage comprises: Abnormal status information data; The lifecycle management logic includes abnormal state management logic of the measuring device; The abnormal state management logic includes: Step A, obtaining the target transaction from the distributed ledger of the blockchain, wherein the target transaction includes abnormal state information corresponding to the measuring device; Step B: executing preset fault analysis logic based on the abnormal status information.
18. The apparatus according to claim 14, wherein the device status data corresponding to the use stage comprises: Equipment performance indicator data; The lifecycle management logic includes device performance status management logic for measuring devices; The device performance status management logic includes: Step A, obtaining the target transaction from the distributed ledger of the blockchain, wherein the target transaction includes device performance indicator data of an initial state corresponding to the measuring device; Step B, obtaining equipment performance indicator data of the current state of the measuring equipment; Step C, determining whether the equipment performance index data in the initial state is the same as the equipment performance index data in the current state; When the equipment performance index data of the initial state is different from the equipment performance index data of the current state, Step D: execute the preset performance difference processing logic.
19. The device according to claim 18, wherein the performance indicator data comprises: One or more of metrological performance index data, measurement accuracy index data, creep index data, measurement repeatability index data, operating environment index data, and electromagnetic compatibility index data.
20. The apparatus according to claim 14, 16, 17 or 18, wherein the device status data corresponding to the use stage comprises device operating environment data, and the device operating environment data comprises: One or more of temperature, humidity, air pressure, shock, load, and equipment tilt data.
21. The apparatus according to claim 14, wherein the equipment status data corresponding to the maintenance stage comprises one or more of maintenance service personnel data, maintenance time data, and maintenance equipment identification data.
22. The apparatus according to claim 14, wherein the node device that performs lifecycle management on the measuring device comprises a metering regulatory agency node device.
23. The apparatus according to claim 14 or 15, wherein the target transaction comprises a classification index value, and the classification index value is used to identify a category of the device status data.
24. The apparatus according to claim 14, wherein the node device comprises the measuring device.
25. The apparatus according to claim 24, wherein the blockchain is a consortium blockchain, and the process of the measuring device joining the blockchain network comprises: The alliance member node device of the alliance chain obtains the application for joining the chain by the measuring device; Determine whether the measuring device meets the preset link entry node conditions; in the case of, Send the alliance chain node device entry permission verification to the measuring device, so that the measuring device joins the blockchain network after the entry permission verification passes.
26. According to the device according to claim 14, the distributed ledger of the blockchain includes a local storage database of a node device of the blockchain network, or a database of a cloud storage server connected to the node device of the blockchain network.
27. A computer device comprising: Memory and processor; The memory stores a computer program executable by the processor; When the processor runs the computer program, the processor performs the method according to any one of claims 1 to 13.
28. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 13 are implemented.
Citation Information
Patent Citations
Electronic component data management system and method based on block chains
CN109450638A
Systems and Methods for State of Data Management
US20190251295A1