Blockchain-based Measurement Device Rental Method and Device
Through blockchain technology, the storage and management of measurement equipment status information is solved, and the concealment and trust problems in traditional equipment leasing are achieved, and the transparency and fairness of the equipment leasing process are achieved.
Patent Information
- Application Number
- CN202010089035.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-12
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2040-12-23
AI Technical Summary
During the traditional equipment rental process, there are problems such as hidden dangers of concealing equipment problems, damage caused by abnormal use, untimely payments and intermediary fraud, which lead to difficulties in trust and contract execution.
The blockchain-based measurement equipment leasing method is adopted to store the existing status information of the measurement equipment through the blockchain system, realize device status detection, lease contract creation and virtual resource storage, and ensure transparent information and fair contract execution.
Reduce rental risks, prevent concealing equipment issues, ensure trust between the lessee and the lessor, and improve transparency and impartiality of the rental process.
Smart Images

Figure CN113256278B_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 method and device for leasing measurement equipment based on blockchain. Background Art
[0002] In the traditional equipment leasing process, there are many problems: the lessee damages the leased equipment due to abnormal use but refuses to admit it and refuses to compensate; the lessor conceals the potential problems of the equipment when lending it out, and when the lessee discovers the problems after signing the lease agreement, the lessor denies and refuses to compensate; during the leasing process, the lease agreement cannot be executed truthfully, the lessee pays the rent late, and when terminating the contract, the lessor deducts the deposit on some pretext; the intermediary service provider deceives both the upper and lower parties and makes profits from both sides. Summary of the Invention
[0003] In view of this, one or more embodiments of this specification provide a method, device, computer device, and computer-readable storage medium for leasing measurement equipment based on blockchain.
[0004] To achieve the above object, one or more embodiments of this specification provide a method for leasing measurement equipment based on blockchain. The blockchain system includes a leasing platform node device, a lessor client, and a lessee client; the lessor client and the lessee client are connected to the leasing platform node device; the existing state information of the measurement equipment is stored in the blockchain; the method is executed by the leasing platform node device and includes:
[0005] Receiving a lease order for the measurement equipment sent by the lessee client;
[0006] Sending a lease notice based on the above measurement equipment to the lessor client to notify the lessor to send the measurement equipment to the lessee;
[0007] After the lessee receives the measurement equipment sent by the lessor, receiving a device status detection application sent by the lessee client or the measurement equipment, where the device status detection application includes the first current state information of the measurement equipment;
[0008] Detecting whether the first current state information matches the existing state information;
[0009] If so, creating a lease contract for the measurement equipment based on the lease confirmation notice sent by the received lessee client, and sending the lease contract to the blockchain.
[0010] In another illustrated embodiment, the existing state information includes: a unique identification code corresponding to the measurement equipment, or a unique identification code corresponding to some components of the measurement equipment.
[0011] In another illustrated embodiment, the existing status information further includes status information that can characterize normal or abnormal use of the measurement device.
[0012] In another illustrated embodiment, the existing status information further includes one or more of the production information of the measurement device, metrology certification information, transportation and logistics information, historical lease record information, or historical maintenance record information, historical operation information, etc.
[0013] In another illustrated embodiment, the lease notice includes a first quantity of virtual resources that the lessee has paid based on the lease order;
[0014] The method further includes: receiving a first quantity of virtual resources paid by the lessee client;
[0015] Sending a first deposit transaction to the blockchain, where the first deposit transaction is for depositing the first quantity of virtual resources paid by the lessee.
[0016] In another illustrated embodiment, the lease contract includes a second quantity of virtual resources that the lessee should pay based on the lease contract;
[0017] The method further includes: sending a second deposit transaction to the blockchain, where the second deposit transaction is for depositing the second quantity of virtual resources paid by the lessee.
[0018] In another illustrated embodiment, the method further includes:
[0019] Receiving a device usage record sent by the lessee client or the measurement device;
[0020] Based on the device usage record, constructing a device usage record deposit transaction and sending the device usage record deposit transaction to the blockchain.
[0021] In another illustrated embodiment, a smart contract for device status management is deployed on the blockchain, and the processing logic corresponding to the contract code of the smart contract includes device status management logic;
[0022] The method further includes:
[0023] In response to the device usage record deposit transaction, invoking the device status management logic of the smart contract to perform device status management on the measurement device.
[0024] In another illustrated embodiment, the existing status information includes the standard status data of the anti-cheating object included in the measuring device; the device usage record deposit transaction includes the current status data of the anti-cheating object included in the measuring device; the blockchain further includes a measuring device certification agency node device;
[0025] In response to the device usage record deposit transaction, invoking the device status management logic of the smart contract to perform device status management on the measuring device, including:
[0026] Verifying whether the current status data matches the standard status data;
[0027] If not, outputting the current status data, or a preset cheating prompt message, or an alarm message, so that the measuring device certification agency node device, or the lessee node, or the lessor node can obtain the current status data, or the preset cheating prompt message, or the alarm message.
[0028] In another illustrated embodiment, the existing status information includes the metrological performance standard data of the measuring device; the device usage record deposit transaction includes the current metrological performance data of the measuring device; the blockchain further includes a measuring device certification agency node device;
[0029] In response to the device usage record deposit transaction, invoking the device status management logic of the smart contract to perform device status management on the measuring device, including:
[0030] Verifying whether the current metrological performance data matches the metrological performance standard data;
[0031] If not, outputting the current metrological performance data, or a preset metrological performance loss prompt message, so that the measuring device certification agency node device, or the lessee node, or the lessor node can obtain the current metrological performance data, or the metrological performance loss prompt message.
[0032] In another illustrated embodiment, the method further includes:
[0033] Locking the measuring device so that the measuring device can only be unlocked by a node authenticated by the rental platform node device.
[0034] In another illustrated embodiment, the device usage record deposit transaction includes the operation information of the measuring device;
[0035] In response to the device usage record deposit transaction, invoking the device status management logic of the smart contract to perform device status management on the measuring device, including:
[0036] Output the cause of the failure or the symptom of the failure of the measuring device based on the operation information of the measuring device.
[0037] In another illustrated embodiment, the device usage record and evidence transaction includes the operation information of the measuring device;
[0038] In response to the device usage record and evidence transaction, call the device status management logic of the smart contract to perform device status management on the measuring device, including:
[0039] Perform a preset device service life assessment based on the operation information of the measuring device; before the measuring device reaches the device service life, output a life expiration reminder for the measuring device.
[0040] In another illustrated embodiment, the blockchain system further includes a repair party client; the method further includes:
[0041] Receive a device repair application sent by the lessee client;
[0042] When the cause of the failure of the measuring device is a non-human damage failure, receive the device repair record sent by the repair party client and generate a device usage record and evidence transaction based on the device repair record;
[0043] When the cause of the failure of the measuring device is a human damage failure, receive the device repair record sent by the repair party client and the device damage claim application sent by the lessor client, and generate the device usage record based on the device repair record.
[0044] In another illustrated embodiment, the method further includes:
[0045] After the lessor receives the measuring device returned by the lessee, receive a device status detection application sent by the lessor client or the measuring device; the device status detection application includes the second current status information of the measuring device;
[0046] Detect whether the second current status information matches the existing status information stored in the blockchain;
[0047] If so, return no more than the first quantity of virtual resources to the lessee and send a third record and evidence transaction to the blockchain to record and evidence the return of no more than the first quantity of virtual resources by the leasing platform to the lessee;
[0048] If not, receive the device damage claim application sent by the lessor client.
[0049] In another illustrated embodiment, the method further includes:
[0050] Generate a damage certificate for the measuring device based on the second current state information, the device usage record, and the existing state information.
[0051] This specification also provides a blockchain-based method for leasing measuring devices. The blockchain system includes a leasing platform node device, a lessor client, and a lessee client. The existing state information of the measuring device is stored in the blockchain. A smart contract for leasing management of the measuring device is deployed in the blockchain, and the processing logic corresponding to the contract code of the smart contract includes the steps of the method for leasing measuring devices provided in the above embodiments.
[0052] Correspondingly, this specification also provides a blockchain-based device for leasing measuring devices. The blockchain system includes a leasing platform node device, a lessor client, and a lessee client. The lessor client and the lessee client are connected to the leasing platform node device. The existing state information of the measuring device is stored in the blockchain. The device is applied to the leasing platform node device side and includes:
[0053] A receiving unit, configured to receive a lease order for the measuring device sent by the lessee client;
[0054] A sending unit, configured to send a lease notice for the above-mentioned measuring device to the lessor client to notify the lessor to send the measuring device to the lessee;
[0055] The receiving unit is further configured to, after the lessee receives the measuring device sent by the lessor, receive a device status detection application sent by the lessee client or the measuring device, where the device status detection application includes first current state information of the measuring device;
[0056] A detection unit, configured to detect whether the first current state information matches the existing state information;
[0057] A lease contract creation unit, configured to create a lease contract for the measuring device based on the lease confirmation notice received from the lessee client;
[0058] The sending unit is further configured to send the lease contract to the blockchain.
[0059] In an illustrated embodiment, the existing state information includes: a unique identification code corresponding to the measuring device, or a unique identification code corresponding to a part component of the measuring device.
[0060] In another illustrated embodiment, the existing state information further includes state information that can characterize normal or abnormal use of the measuring device.
[0061] In yet another illustrated embodiment, the existing status information further includes one or more of the production information of the measuring device, metrological certification information, transportation and logistics information, historical lease record information, or historical maintenance record information, historical operation information, etc.
[0062] In yet another illustrated embodiment, the lease notice includes the first quantity of virtual resources that the lessee has paid based on the lease order;
[0063] The receiving unit is further configured to receive the first quantity of virtual resources paid by the lessee client.
[0064] The sending unit is further configured to send a first deposit transaction to the blockchain, where the first deposit transaction is for depositing the first quantity of virtual resources paid by the lessee.
[0065] In yet another illustrated embodiment, the lease contract includes the second quantity of virtual resources that the lessee should pay based on the lease contract;
[0066] The sending unit is further configured to: send a second deposit transaction to the blockchain, where the second deposit transaction is for depositing the second quantity of virtual resources paid by the lessee.
[0067] In yet another illustrated embodiment, the receiving unit is further configured to: receive the device usage record sent by the lessee client or the measuring device;
[0068] The sending unit is further configured to: construct a device usage record deposit transaction based on the device usage record, and send the device usage record deposit transaction to the blockchain.
[0069] In yet another illustrated embodiment, a smart contract for device status management is deployed on the blockchain, and the processing logic corresponding to the contract code of the smart contract includes device status management logic;
[0070] The apparatus further includes an execution unit configured to: in response to the device usage record deposit transaction, call the device status management logic of the smart contract to perform device status management on the measuring device.
[0071] In yet another illustrated embodiment, the existing status information includes the standard status data of the anti-cheating object included in the measuring device; the device usage record deposit transaction includes the current status data of the anti-cheating object included in the measuring device; the blockchain further includes a measuring device certification agency node device;
[0072] The execution unit is further configured to: verify whether the current status data matches the standard status data;
[0073] If not, output the current status data, or a preset cheating prompt message, or an alarm message, so that the measurement device certification agency node device, or the lessee node, or the lessor node can obtain the current status data, or the preset cheating prompt message, or the alarm message.
[0074] In another illustrated embodiment, the existing status information includes the metrological performance standard data of the measurement device; the device usage record deposit transaction includes the current metrological performance data of the measurement device; the blockchain further includes a measurement device certification agency node device;
[0075] The execution unit is further configured to:
[0076] Verify whether the current metrological performance data matches the metrological performance standard data;
[0077] If not, output the current metrological performance data, or a preset metrological performance loss prompt message, so that the measurement device certification agency node device, or the lessee node, or the lessor node can obtain the current metrological performance data, or the metrological performance loss prompt message.
[0078] In another illustrated embodiment, the device further includes:
[0079] A locking unit, configured to lock the measurement device so that the measurement device can only be unlocked by a node authenticated by the rental platform node device.
[0080] In another illustrated embodiment, the device usage record deposit transaction includes the operation information of the measurement device;
[0081] The execution unit is further configured to:
[0082] Based on the operation information of the measurement device, output the cause of the failure or the failure phenomenon of the measurement device.
[0083] In another illustrated embodiment, the device usage record deposit transaction includes the operation information of the measurement device;
[0084] The execution unit is further configured to:
[0085] Based on the operation information of the measurement device, perform a preset device service life assessment; before the measurement device reaches the device service life, output a life expiration prompt for the measurement device.
[0086] In another illustrated embodiment, the blockchain system further includes a maintenance party client;
[0087] The receiving unit is further configured to: receive a device maintenance application sent by the lessee client;
[0088] When the cause of the failure of the measuring device is a non-human damage failure, receive the device maintenance record sent by the maintenance party client, and generate a device usage record deposit transaction based on the device maintenance record;
[0089] When the cause of the failure of the measuring device is a human damage failure, receive the device maintenance record sent by the maintenance party client and the device damage claim application sent by the lessor client, and generate the device usage record based on the device maintenance record.
[0090] In another illustrated embodiment, the receiving unit is further configured to:
[0091] After the lessor receives the measuring device returned by the lessee, receive a device status detection application sent by the lessor client or the measuring device; the device status detection application includes second current status information of the measuring device;
[0092] The detecting unit is further configured to detect whether the second current status information matches the existing status information stored in the blockchain;
[0093] If so, return to the lessee virtual resources not greater than the first quantity, and send a third deposit transaction to the blockchain to deposit the virtual resources not greater than the first quantity returned by the leasing platform to the lessee;
[0094] If not, receive a device damage claim application sent by the lessor client.
[0095] In another illustrated embodiment, the device further includes:
[0096] A generating unit, configured to generate a damage certificate of the measuring device based on the second current status information, the device usage record, and the existing status information.
[0097] Correspondingly, the present specification further provides a computer device, including: a memory and a processor; a computer program executable by the processor is stored on the memory; when the processor runs the computer program, it executes the blockchain-based measuring device leasing method according to the embodiments of the present specification.
[0098] Accordingly, this specification also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is run by a processor, it executes the blockchain-based measurement device leasing method described in the various embodiments of this specification.
[0099] As can be seen from the above technical solutions, the blockchain-based measurement device leasing method and device provided in this specification not only decentralize and store the existing state information of the measurement device in the blockchain to prevent information from being tampered with, thereby overcoming the fraud behavior of the platform or intermediary agency hiding the information of the leased device; but also can perform device state detection on the measurement device based on this existing state information. When the existing state information of the measurement device matches the state information stored on the blockchain, the lessee can choose to lease the above measurement device, thereby reducing the leasing risk of the lessee. BRIEF DESCRIPTION OF THE DRAWINGS
[0100] Figure 1 is a flowchart of the blockchain-based measurement device leasing method provided by an exemplary embodiment;
[0101] Figure 2 is a schematic diagram of the blockchain-based measurement device leasing device provided by an exemplary embodiment;
[0102] Figure 3 is a hardware structure diagram of running the embodiment of the blockchain-based measurement device leasing device provided in this specification. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0103] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with one or more embodiments of this specification. On the contrary, they are merely examples of devices and methods consistent with some aspects of one or more embodiments of this specification as detailed in the appended claims.
[0104] It should be noted that: in other embodiments, the steps of the corresponding methods are not necessarily executed in the order shown and described in this specification. In some other embodiments, the steps included in the method may be more or less than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may also be combined into a single step for description in other embodiments.
[0105] During the traditional equipment leasing process, there are many problems: the lessee damages the leased equipment due to abnormal use but refuses to admit it and refuses to compensate; when the lessor lends out the equipment, it conceals the potential problems of the equipment, and when the lessee discovers the problems after signing the lease agreement, the lessor denies it and refuses to compensate; during the lease process, the lease agreement cannot be executed as promised, the lessee pays the rent late, and when terminating the contract, the lessor deducts the deposit on some pretext; the intermediary service providers deceive both the upper and lower parties and make profits from both sides.
[0106] As a special type of equipment, measuring equipment is more likely to have problems such as inaccurate measurement results or low precision during the leasing process. Moreover, for large or precision measuring equipment, when there are problems with the equipment performance, tracing the cause of the equipment performance damage is also an urgent need in the measuring equipment leasing industry.
[0107] In view of this, this specification provides a blockchain-based method for leasing measuring equipment. The blockchain system includes a leasing platform node device, a lessor client, and a lessee client; the existing state information of the measuring equipment is stored in the blockchain.
[0108] This specification does not limit the specific type of measuring equipment. Any equipment, device, or equipment / device module that can perform measurement or calibration functions can be included in the scope of the measuring equipment described in this specification.
[0109] The blockchain described in one or more embodiments of this specification may specifically refer to a P2P network system with a distributed data storage structure achieved by each node device through a consensus mechanism. The data in this blockchain is distributed within a series of "blocks" connected in time. The latter block contains the data digest of the previous block, and depending on the specific consensus mechanism (such as POW, POS, DPOS, or PBFT, etc.), full or partial data backups of all nodes are achieved. Those skilled in the art are familiar with the fact that since the blockchain system operates under the corresponding consensus mechanism, it is very difficult for the data already stored in the blockchain database to be tampered with by any arbitrary node. For example, in a blockchain using the Pow consensus, at least an attack with 51% of the computing power of the entire network is required to possibly tamper with the existing data. Therefore, the blockchain system has the characteristics of ensuring data security and preventing attack and tampering that cannot be compared by other centralized database systems. From this, it can be seen that in the embodiments provided in this specification, the data stored in the distributed ledger of the blockchain will not be attacked or tampered with, thus ensuring the authenticity and fairness of data management or applications based on the data stored in the blockchain.
[0110] The service device terminal of the above-mentioned rental platform joins the blockchain by following the corresponding node protocol and installing and running the node protocol program. As a node device of the blockchain, it can upload data transactions to the distributed database of the blockchain and download data from the distributed database of the blockchain. The above-mentioned lessor or lessee becomes a user of the above-mentioned rental platform by registering and joins the above-mentioned blockchain network by running the client installation program on the terminal. The lessor or lessee client can be a node of the above-mentioned blockchain; when the above-mentioned rental platform is a consortium member node of the consortium chain, the lessor or lessee client can also be a blockchain user client program connected to the consortium member node and with restricted access rights; therefore, this specification does not limit whether the lessor or lessee client is a node device of the above-mentioned blockchain.
[0111] When the above-mentioned lessee or lessor user registers as a user of the rental platform, they can submit their own identity information to the rental platform, such as name, address, ID number, payment, etc.; the rental platform can configure different platform usage or information acquisition rights for different lessees or lessors according to different user types, which will not be elaborated in detail here.
[0112] The lessor client can publicly display the existing status information of the measuring devices it holds on the above-mentioned rental platform for lessee users to view and screen (here, different levels of status information content can be displayed for lessee users with different information acquisition rights). The above-mentioned existing status information can include status information such as the identity identification information of the measuring device and the index data of the performance of the measuring device that can characterize the normal use of the measuring device.
[0113] The identity identification information of the measuring device can include a unique identification code corresponding to the measuring device. For the convenience of managing the measuring device, the measuring device can have a unique identification code corresponding to it within the above-mentioned rental platform. This unique identification code can be allocated by the rental platform itself or the unique identification information of the measuring device itself, such as the electronic seal code or product serial number of the measuring device.
[0114] To prevent lessee or lessor users from privately replacing components of the measuring device, the identity identification information of the above-mentioned measuring device can also include a unique identification code corresponding to some components of the measuring device, such as the electronic seal code, product serial number, anti-counterfeiting identification code, etc. corresponding to the key or important components of the measuring device, so as to facilitate the inspection and verification of the measuring device.
[0115] The status information indicating whether the measurement device can be used normally or abnormally may include index data of the operating environment of the measurement device (such as voltage, current, temperature, humidity, etc.), operating conditions (such as rotation speed, whether the sensor signal is connected), certification standard data (such as accuracy standard, certification level), or abnormal prompt information, etc. For some large or precision measurement devices, corresponding certification standard data from a certification agency with specific qualifications is required for circulation and use.
[0116] Optionally, to facilitate the lessee user to more comprehensively understand the status of the measurement device, the above-mentioned existing status information may further include one or more of the production information of the measurement device (such as manufacturer, production batch, production process flow, etc.), metrology certification information (such as certification agency name, certification level standard, etc.), transportation logistics information during shipment or return, historical lease record information, historical maintenance record information, historical operation information, etc. Data personnel in this field can add the content or data of the existing status information of the measurement device based on specific business requirements, which all belong to the protection scope of the status information defined in this specification.
[0117] To ensure that the above-mentioned existing status information of the measurement device is not maliciously tampered with by the leasing platform or other parties, the above-mentioned existing status information can be stored in the distributed database of the blockchain, and based on the anti-tampering mechanism of the blockchain, evidence is stored for the existing status information of the measurement device. This specification does not limit the specific sender of the above-mentioned existing status information, which can be the lessor client, the leasing platform node device, or any fourth-party node device or client entrusted by the lessor to manage the measurement device to be leased.
[0118] The specific storage location of the above-mentioned existing status information of the measurement device in the blockchain can be determined according to the type and settings of the blockchain. It can be stored in the block of the blockchain in the form of a transaction, or stored in the account storage space set for the measurement device in the blockchain in the form of account content, or stored in the storage space corresponding to the contract account of the smart contract. This is not limited in this specification.
[0119] Figure 1 Schematically shows a blockchain-based measurement device leasing method provided by an exemplary embodiment of this specification, which is executed by the leasing platform node device and includes the following steps:
[0120] Step 102, lease order receiving step - receive the lease order for the measurement device sent by the lessee client.
[0121] The lessee's client can browse the measuring devices available for lease on the lease platform or query based on the retrieval criteria or conditions for the measuring devices to be leased. The lease platform can display a list of measuring devices that meet the retrieval criteria or conditions to the lessee's client for the lessee's client to select, and after selection, send a lease order for the expected leased measuring device to the lease platform.
[0122] Step 104, lease notice sending step - send a lease notice based on the above-mentioned measuring device to the lessor's client to notify the lessor to send the measuring device to the lessee.
[0123] In another illustrated embodiment, to prevent the lessee from placing malicious orders or damaging or replacing the measuring device after receiving the leased measuring device subsequently, when sending a lease order to the lease platform, the lessee may also be required to pay a first quantity of virtual resources based on the lease order sent by it. The above-mentioned first quantity of virtual resources can be used as a lease deposit (or security deposit) and paid into the account of the above-mentioned lease platform or other fourth-party neutral institutions.
[0124] In this embodiment, the specific manifestation type of the above-mentioned virtual resources is not limited, and it can be monetary funds, points circulating on the lease platform, or the credit score of the lessee on the lease platform, etc.
[0125] When the above-mentioned first quantity of virtual resources is paid into the virtual resource account held by the above-mentioned lease platform, the above-mentioned platform node device shall send a first deposit transaction to the blockchain. The first deposit transaction is to deposit the first quantity of virtual resources paid by the lessee. At this time, the above-mentioned lease notice may include the first quantity of virtual resources that the lessee has paid based on the above-mentioned lease order, thereby reducing the economic risk borne by the lessor after sending the measuring device due to damage, refusal to return, or refusal to pay rent by the lessee.
[0126] After obtaining the above-mentioned lease notice, the lessor's client can send the above-mentioned measuring device to the address provided by the lessee. The above-mentioned lease platform node device can be connected to the server of the logistics institution and display the transportation logistics information of the measuring device on the lease platform. Optionally, the server of the above-mentioned logistics institution can be used as a node device of the above-mentioned blockchain, send the transportation logistics information of the above-mentioned measuring device to the blockchain, and deposit the above-mentioned logistics information based on the anti-tampering mechanism of the blockchain.
[0127] Step 106, device status detection application receiving step - after the lessee receives the measuring device sent by the lessor, receive a device status detection application sent by the lessee's client or the measuring device; the device status detection application includes the first current status information of the measuring device.
[0128] The first current state information of the measuring device refers to the state information of the measuring device when the lessee receives it. This information can be obtained by the lessee through inspecting or operating the measuring device and transmitted to the lessee's client in the form of manual input or communication with the measuring device. By detecting the device state, it can be checked whether the first current state information matches the existing state information stored in the blockchain, which can prevent the measuring device sent by the lessor from not matching the existing state information displayed on the rental platform, such as the lessor sending inferior measuring devices, or prevent the measuring device from being damaged or maliciously replaced during transportation, reducing the rental risk of the lessee.
[0129] Optionally, the above-mentioned measuring device can be configured with a networking module. The measuring device collects its own first current state information and sends the above-mentioned device state detection application to the rental platform node device. Compared with the lessee's client sending the device state detection application, this implementation method can obtain the first current state information of the measuring device more accurately.
[0130] Step 108, information detection step - check whether the first current state information matches the existing state information.
[0131] The above-mentioned first current state information matching the existing state information means that the information such as the unique identification code or operating parameters included in the first current state information conforms to the unique identification code or device performance indicators included in the existing state information. This specification does not limit the specific state information content referred to when matching the above-mentioned first current state information with the existing state information. Those skilled in the art can set corresponding comparison reference content according to the type of the measuring device when detecting whether the above-mentioned first current state information matches the existing state information.
[0132] In an illustrated implementation method, the existing state information stored in the above-mentioned blockchain may include not only the unique identification code of the measuring device, but also the unique identification codes of the key components of the measuring device, such as the unique identification codes of components such as the main board, display screen, and communication board card. After the lessee receives the measuring device, the lessee can independently query or the measuring device can automatically read out the unique identification codes of the above-mentioned key components as the above-mentioned first current state information. The rental platform checks whether the current state data matches the standard state data by comparing the unique identification codes of the above-mentioned key components.
[0133] In another illustrated implementation method, the existing state information stored in the above-mentioned blockchain may include the existing accuracy of the measuring device. After the lessee receives the measuring device, the current accuracy of the measuring device can be detected by a standard accuracy detection method. For example, for a weighing device, its accuracy can be obtained based on weighing with weights to verify whether the above-mentioned first current state information matches the existing state information.
[0134] In another illustrated embodiment, the existing state information stored in the blockchain may include the standard working metrics of the measuring device (as the existing state data); after the lessee receives the measuring device, the current working metrics of the measuring device can be verified and obtained (as the current state data). For example, it can be detected whether the working voltage and current of the measuring device meet the rated voltage and current ranges stored on the blockchain to verify whether the above first current state information matches the existing state information.
[0135] Step 110, lease confirmation notice receiving step - Based on the received lease confirmation notice sent by the lessee client, create a lease contract based on the measuring device and send the lease contract to the blockchain.
[0136] After the lessee client and the lease platform interact with each other, when it is detected that the first current state information matches the existing state information, the lessee client can confirm this lease and send a lease confirmation notice to the lease platform, so that the lease platform can create a lease contract based on the measuring device and send the above lease contract to the blockchain for deposit.
[0137] The above lease contract may include status information such as the identity information of the lessor and lessee, the unique identification code of the measuring device, etc., and may also include the second quantity of virtual resources that the lessee should pay based on the lease contract. To further deposit the payment behavior of the lessor, the above lease platform node device can send a second deposit transaction to the blockchain to deposit the payment of the second quantity of virtual resources by the lessee.
[0138] It should be noted that this specification does not limit the magnitude relationship between the first quantity and the second quantity of virtual resources paid by the above lessee.
[0139] The lessee can pay a first quantity of virtual resources not less than the second quantity when sending a lease order. The first quantity of virtual resources is temporarily collected by the lease platform or a fourth-party neutral institution, and after the lease contract is established, the lease platform or the fourth-party neutral institution will send the second quantity of virtual resources to the lessor's account.
[0140] The lessee can also pay a first quantity of virtual resources less than the second quantity when sending a lease order. The first quantity of virtual resources is temporarily collected by the lease platform or a fourth-party neutral institution and used as compensation for the lessor when the lessee defaults or damages the measuring device; after the lease contract is established, the lessee should also pay the lessor a second quantity of virtual resources as the rent for the measuring device.
[0141] This specification does not limit the process sequence or method of the lessee paying virtual resources. Those skilled in the art can set corresponding processes for the lessee to pay based on specific business scenarios.
[0142] The above lease contract may be an electronic contract signed by the lessee and the lessor, or a smart contract collecting the digital signatures of the lessee and the lessor, which is not limited herein.
[0143] Step 112, device usage record receiving step - receive the device usage record sent by the lessee client or the measuring device; based on the device usage record, construct a device usage record deposit transaction, and send the device usage record deposit transaction to the blockchain.
[0144] The device usage record described in this embodiment may include any data input, self - collected, or generated by the measuring device during use. For example, it may include information such as images, temperature, three - dimensional dimensions, weight, etc. collected by the measuring device, measurement data records generated during normal use, error messages when anomalies occur (such as abnormal temperature, overload shock, etc.), measuring device operation information (which may include information such as the operator information of the measuring device, or the operation location information, or the operation time information, or the operation content information, etc.), software information carried by the device, standard operation procedure (SOP) information data, and so on. The leasing platform may construct a device usage record deposit transaction based on the above device usage record and send it to the above - mentioned blockchain. The above device usage record deposit transaction may contain some device status information. Since the existing status information of the measuring device has been stored in the above - mentioned blockchain, the above device usage record deposit transaction can be used to update the above existing status information or compare it with the above existing status information to manage the status of the measuring device.
[0145] Since the credibility of the device usage record data self - collected by the measuring device is significantly greater than that of the device usage record data independently input and edited by the lessee client, as a preferred embodiment of the present invention, the measuring device may be configured with a networking module to automatically transmit the device usage record data to the leasing platform during use.
[0146] For some measuring devices without a configured networking module, a data storage module may also be provided inside the device to save the above - mentioned device usage record data in real - time. This data storage module needs to be protected by a lead seal, and the lessee cannot damage it. Once damaged, the lessee's relevant responsibilities can be investigated. The lessor or the maintenance party designated by the lessor can regularly visit the site for routine maintenance of the measuring device, and send the information saved in the data storage module of the measuring device to the leasing platform during the maintenance process, and upload it to the blockchain through the leasing platform node device.
[0147] In another illustrated embodiment, a smart contract for device status management is deployed on the above blockchain, and the processing logic corresponding to the contract code of the smart contract includes device status management logic;
[0148] The method further includes: in response to the device usage record deposit transaction, invoking the device status management logic of the smart contract to perform device status management on the measurement device.
[0149] In the above embodiment, at any time, by publishing the above device usage record deposit transaction to the blockchain, the smart contract can be invoked to automatically perform the status management of the measurement device, greatly improving the efficiency of the status management of the measurement device; moreover, the code of the smart contract and the operation of the smart contract can be made public to the node devices of the blockchain, and the operation result needs to be verified by the consensus of the blockchain nodes. Compared with the centralized execution of the status management of the measurement device by the rental platform, the fairness and accuracy of the device status management are improved. The lessor can accurately obtain the operating status of the leased measurement device through the blockchain, overcoming the disadvantages that the lessee or the rental platform conceal the device operating status and damage the interests of the lessor.
[0150] It should be noted that the various embodiments provided in this specification do not limit the number of the above device usage record deposit transactions. Those skilled in the art can design the number of device usage record deposit transactions and the sending timing in the business process according to the actual business needs, which are all within the scope protected by this specification.
[0151] Hereinafter, based on the differences in the content included in the device usage record, this specification will list several embodiments of implementing the status management of the leased measurement device based on the smart contract.
[0152]
Anti-cheating management of measurement devices based on smart contracts
[0153] In an illustrated embodiment, the existing status information stored in the above blockchain includes the standard status data of the anti-cheating object included in the measurement device; the device usage record includes the current status data of the anti-cheating object included in the measurement device; the blockchain further includes a measurement device certification agency node device;
[0154] The above-mentioned in response to the device usage record deposit transaction, invoking the device status management logic of the smart contract to perform device status management on the measurement device includes:
[0155] Verifying whether the current status data matches the standard status data;
[0156] If not, output the current status data, or a preset cheating prompt message, or an alarm message, so that the measurement device authentication agency node device, or the lessee node, or the lessor node can obtain the current status data, or the preset cheating prompt message, or the alarm message.
[0157] For example, a measurement device for weighing is often used in trade settlement scenarios, such as the cash registers in supermarkets and the weight-based toll collection scales on highways. To prevent the above measurement devices from being damaged artificially for improper benefits, anti-cheating objects can be configured inside the measurement devices. For example, a certain amount of gas can be stored inside the weighing device, and the gas concentration in the initial state (standard status data) is saved in the blockchain as part of the above existing status information; the weighing device will monitor the concentration of the above gas in real time or periodically, and transmit the above concentration value (current status data) to the leasing platform as part of the usage record of the above device.
[0158] The leasing platform packs the received gas concentration value into a usage record certification transaction of the above device and publishes it to the above blockchain to call the above smart contract to execute the device status management logic, and checks whether the current gas concentration value is the same as the gas concentration value in the initial state stored in the blockchain or within a preset fluctuation range. If not, the above smart contract can output the current status data, or a preset cheating prompt message, or an alarm message, so that the measurement device authentication agency node device, or the lessee node, or the lessor node can obtain the current status data, or the preset cheating prompt message, or the alarm message.
[0159] Those skilled in the art should know that the execution result of the smart contract is usually saved in the transaction log corresponding to the call transaction of the smart contract. The above transaction log (which can be encoded by a preset encoding, such as rlp encoding) is saved in the receipts tree in the form of a transaction receipt. The authentication agency node device can obtain the cheating prompt message output by the above smart contract based on the mismatch between the current status data and the standard status data by listening to the receipts tree maintained locally, so as to know that the authentication qualification of the above measurement device needs to be changed or revoked.
[0160] When the leasing platform node device obtains the above cheating prompt message, it can lock the above measurement device in a remote locking manner so that the above measurement device can only be unlocked by the nodes authenticated by the leasing platform node device. The specific unlocking method is not limited to key unlocking.
[0161]
Measurement performance management of measurement devices based on smart contracts
[0162] The metrological performance data of measuring equipment is usually issued by an institution with certification qualifications. However, during the use of leased measuring equipment, the metrological performance data may deviate and no longer meet the equipment metrological qualifications issued by the original metrological certification institution.
[0163] In another illustrated embodiment, the existing state information stored in the blockchain includes the metrological performance standard data of the measuring equipment; this metrological performance standard data is issued by a certification institution after metrological certification of the measuring equipment; the equipment usage records generated during the lease use of the measuring equipment include the current metrological performance data of the measuring equipment; this current metrological performance data can be directly obtained from the measuring equipment or obtained by the lessee through calculation and analysis of the measurement process data of the measuring equipment. The blockchain also includes a measuring equipment certification institution node device;
[0164] In response to the equipment usage record deposit transaction, the device state management logic of the smart contract is called to perform device state management on the measuring equipment, including:
[0165] Verify whether the current metrological performance data matches the metrological performance standard data;
[0166] If not, output the current metrological performance data or a preset metrological performance loss prompt message so that the measuring equipment certification institution node device, or the lessee node, or the lessor node can obtain the current metrological performance data or the metrological performance loss prompt message.
[0167] Those skilled in the art should know that the execution result of the smart contract is usually saved in the transaction log corresponding to the call transaction of the smart contract. The above transaction log (which can be encoded through a preset encoding, such as rlp encoding) is saved in the receipts tree in the form of a transaction receipt. The certification institution node device can obtain the metrological performance loss prompt message output by the above smart contract based on verifying whether the current metrological performance data matches the metrological performance standard data by listening to the receipts tree maintained locally, so as to know that the certification qualification of the above measuring equipment needs to be changed or revoked.
[0168] When the lease platform node device obtains the above metrological performance loss prompt message, it can lock the above measuring equipment through a remote locking method so that the above measuring equipment can only be unlocked by a node certified by the lease platform node device. The specific unlocking method is not limited to key unlocking.
[0169]
Fault Cause Diagnosis and Management of Measuring Equipment Based on Smart Contracts
[0170] The faults that occur during the use of the measuring device may be caused by improper operation. Therefore, it is of great significance to save the operation information of the measuring device in the above-mentioned device usage record deposit transactions stored on the blockchain for identifying the causes of faults in the measuring device. The operation information of the measuring device described in this embodiment may include information about the operator of the measuring device, or the operation location information, or the operation time information, or the operation content information, or the operation environment information, etc.
[0171] In response to the above-mentioned device usage record deposit transaction, the device status management logic of the smart contract is called to perform device status management on the measuring device, including: based on the operation information of the measuring device, outputting the cause of the fault or the fault phenomenon of the measuring device.
[0172] The processing logic corresponding to the contract code of the above-mentioned smart contract may include the logic for diagnosing the cause of the fault based on the operation information of the measuring device. Through this embodiment, the lessee's user can obtain the cause of the fault of the measuring device (and even the fault response strategy) through information interaction with the rental platform without the presence of professional maintenance personnel; thus greatly saving the cost of fault analysis of the measuring device by professional fault repair or analysis personnel on-site.
[0173] When the specific cause of the fault of the measuring device is diagnosed, the lessee's client can initiate a device repair application to the rental platform; the above-mentioned blockchain system may also include a repair party client; correspondingly, the blockchain-based measuring device rental method executed by the rental platform node device provided in this embodiment may further include:
[0174] Receiving the device repair application sent by the lessee's client;
[0175] When the cause of the fault of the measuring device is a non-human damage fault, receiving the device repair record sent by the repair party client and generating a new device usage record deposit transaction based on the device repair record;
[0176] When the cause of the fault of the measuring device is a human damage fault, receiving the device repair record sent by the repair party client and the device damage claim application sent by the lessor's client, and generating a new device usage record deposit transaction based on the device repair record.
[0177] This embodiment does not limit the specific process of the above-mentioned device damage claim. For example, when the lessee approves the compensation request applied by the lessor, it can be confirmed through the rental platform; the rental platform or the fourth-party neutral institution that has received the first quantity of virtual resources can transfer the requested quantity of virtual resources to the lessor's account based on the above-mentioned compensation request and deposit the virtual resource transfer process on the above-mentioned blockchain.
[0178] When the lessee does not recognize the compensation request applied by the lessor, the claim application for equipment damage can be rejected. The rental platform can provide business processes such as compensation pleadings for both parties or the intervention of a third party, or the lessor can initiate a recovery of equipment damage compensation to the lessee outside the system, such as recovering losses through judicial litigation procedures. At this time, as a third-party intermediary, the rental platform can provide a damage certificate for the measuring equipment based on the equipment usage records (including maintenance records) and the existing status information. Since the above-mentioned equipment usage records and existing status information are stored on the blockchain and are difficult to be tampered with by any party, the fairness of the above-mentioned damage certificate is ensured.
[0179] Therefore, in the method for diagnosing the cause of failure of a measuring device based on a smart contract provided in this embodiment, since the cause of failure obtained by the smart contract is stored in the blockchain, the lessee cannot deny the equipment failure caused by it, thus better protecting the user rights and interests of the lessor.
[0180]
Lifetime management of measuring equipment based on smart contract
[0181] The lifetime of a measuring device is closely related to the way it is used. By using big data analysis to establish an artificial intelligence model, the service life of the measuring device can be calculated by obtaining the usage information of the measuring device. In this embodiment, the processing logic corresponding to the contract code of the smart contract may include logic for judging and evaluating the measuring device based on the operation information of the measuring device.
[0182] Therefore, in this embodiment, the above-mentioned equipment usage record deposit transaction may include the operation information of the measuring device; in response to the equipment usage record deposit transaction, the device status management logic of the smart contract is called to perform device status management on the measuring device, including: performing a preset evaluation of the service life of the equipment based on the operation information of the measuring device; it may also include outputting a prompt for the expiration of the service life of the measuring device before the measuring device reaches the service life.
[0183] The lessee's client can receive the above-mentioned prompt for the expiration of the service life of the equipment during the information interaction with the node device of the rental platform, so as to apply for ending the lease contract before the expiration of the service life.
[0184] The above examples list the device status management of the measuring equipment leased by the lessee by the node device of the rental platform through the smart contract deployed on the blockchain in various usage scenarios. Those skilled in the art can deploy a smart contract that can achieve the corresponding measuring device status management according to the specific rental needs of the lessee, so as to provide more comprehensive and convenient services for the lessee to use the measuring equipment. This specification will not give detailed examples.
[0185] Step 114, Device Status Detection Application Receiving Step - After the lessor receives the measuring device returned by the lessee, receive the device status detection application sent by the lessor's client or the measuring device; the device status detection application includes the second current status information of the measuring device.
[0186] Step 116, Information Detection Step - Detect whether the second current status information matches the existing status information stored in the blockchain.
[0187] If so, Step 118, End Step - This lease can be ended.
[0188] Optionally, before ending this lease, the leasing platform can return virtual resources not greater than the first quantity to the lessee and send a third notarization transaction to the blockchain to notarize the return of virtual resources not greater than the first quantity by the leasing platform to the lessee.
[0189] If not, Step 120, Claim Application Receiving Step - Receive the device damage claim application sent by the lessor's client.
[0190] This specification does not limit the time and conditions for ending the lease. The lessee can apply to end the lease or reject the lease based on the mismatch between the first current status information and the existing status information of the measuring device, or any other reason, before signing the lease contract with the lessor after receiving the measuring device. The lessee can also end the lease when the time limit specified in the lease contract expires, or end the lease in advance due to reasons such as measuring device failure or end of life during the lease. The lessor can execute the lease ending procedure after learning of damage to the measuring device, and so on.
[0191] After the lessee's user chooses to end the lease, the leased measuring device should be returned to the lessor's user. The second current status information of the measuring device refers to the status information of the measuring device when the lessor receives it. This information can be obtained by the lessor through inspection or operation of the measuring device and transmitted to the lessor's client in the form of manual entry or communication with the measuring device. By performing device status detection and detecting whether the second current status information matches the existing status information notarized in the blockchain, it is possible to prevent the measuring device sent by the lessee from not matching the existing status information of the measuring device displayed by the leasing platform. For example, it can prevent the lessee from replacing the measuring device or important components of the measuring device, or prevent the measuring device from being damaged or maliciously replaced during transportation, further protecting the rights and interests of the lessor.
[0192] Optionally, the above-mentioned measuring device can be configured with a networking module, and the measuring device collects its own second current state information and sends the above-mentioned device state detection application to the leasing platform node device. Compared with the device state detection application sent by the lessee client, this implementation method can obtain the second current state information of the measuring device more accurately.
[0193] The second current state information matches the existing state information, which means that the unique identification code, operating parameters and other information contained in the second current state information match the unique identification code, or equipment performance indicators contained in the existing state information. This specification does not limit the specific state information content referenced when matching the second current state information with the existing state information. Those skilled in the art can set corresponding comparison reference content when detecting whether the second current state information matches the existing state information based on the type of measuring equipment. For example, the state information content referenced when comparing the first current state information with the existing state information can be selected.
[0194] Optionally, the above-mentioned measuring device can be configured with a networking module, and the measuring device collects its own first current status information and sends the above-mentioned device status detection application to the leasing platform node device. Compared with the device status detection application sent by the lessee client, this implementation method can more accurately obtain the second current status information of the measuring device.
[0195] When the second current state information matches the existing state information stored on the blockchain, since the first amount of virtual resources is the security deposit or deposit paid by the lessee for this leasing behavior, the leasing platform or the fourth-party neutral institution that collected the first amount of virtual resources may return the virtual resources not exceeding the first amount to the lessee's account. To prevent user denial, the leasing platform may send a third evidence transaction to the blockchain to return the virtual resource evidence not exceeding the first amount to the lessee for the leasing platform or the fourth-party neutral institution.
[0196] When the second current state information does not match the existing state information stored on the blockchain, the measuring device may be damaged, such as failure or missing important parts. At this time, the lessor client can initiate an equipment damage claim application to the lessee client through the leasing platform.
[0197] This implementation does not limit the specific process of the equipment damage claim. For example, when the lessee approves the compensation request filed by the lessor, it can be confirmed through the leasing platform; the leasing platform or the fourth-party neutral institution that has received the first amount of virtual resources can transfer the requested amount of virtual resources to the lessor's account based on the compensation request, and store the virtual resource transfer process in the blockchain.
[0198] When the lessee does not recognize the compensation request applied by the lessor, the compensation application can be rejected. The rental platform can provide business processes such as compensation pleadings for both parties or the intervention of a third party, or the lessor can initiate the recovery of equipment damage compensation from the lessee outside the system, such as recovering losses through judicial litigation procedures. At this time, as a third-party intermediary, the rental platform can generate a damage certificate for the measuring device based on the second existing state information, the equipment usage record, and the existing state information. Since the above-mentioned second existing state information, equipment usage record, and existing state information are all stored on the blockchain and are difficult to be tampered with by any party, the fairness of the above-mentioned damage certificate is guaranteed.
[0199] The business processes of the above steps 102 to 120 can be created and executed by the server terminal locally deployed by the rental platform node device, or can be executed by the smart contract deployed by the rental platform node device on the above blockchain. This is not limited in this specification.
[0200] Corresponding to the implementation of the above process, the embodiment of this specification also provides a blockchain-based measuring device rental device 20. The device 20 can be implemented by software, or can be implemented by hardware or a combination of software and hardware. Taking software implementation as an example, as a logically meaningful device, it is formed by the CPU (Central Process Unit) of the device reading the corresponding computer program instructions into the memory and running. From the hardware level, in addition to Figure 3 the CPU, memory, and storage shown, the device where the above device is located usually also includes other hardware such as chips for wireless signal transceiver, and / or other hardware such as boards for implementing network communication functions.
[0201] As Figure 2 shown, this specification also provides a blockchain-based measuring device rental device 20. The blockchain system includes a rental platform node device, a lessor client, and a lessee client; the lessor client and the lessee client are connected to the rental platform node device; the existing state information of the measuring device is stored in the blockchain; the device 20 is applied to the rental platform node device side and includes:
[0202] A receiving unit 202, configured to receive a rental order for the measuring device sent by the lessee client;
[0203] A sending unit 204, configured to send a rental notice based on the above-mentioned measuring device to the lessor client to notify the lessor to send the measuring device to the lessee;
[0204] The receiving unit 202 is further configured to, after the lessee receives the measuring device sent by the lessor, receive a device status detection application sent by the lessee client or the measuring device, where the device status detection application includes first current status information of the measuring device;
[0205] The detection unit 206 is configured to detect whether the first current status information matches the existing status information;
[0206] The lease contract creation unit 208 is configured to create a lease contract for the measuring device based on the lease confirmation notice received from the lessee client;
[0207] The sending unit 204 is further configured to send the lease contract to the blockchain.
[0208] In another illustrated embodiment, the existing status information includes: a unique identification code corresponding to the measuring device, or a unique identification code corresponding to some components of the measuring device.
[0209] In another illustrated embodiment, the existing status information further includes status information that can characterize normal or abnormal use of the measuring device.
[0210] In another illustrated embodiment, the existing status information further includes one or more of the production information, metrology certification information, transportation and logistics information, historical lease record information, or historical maintenance record information, historical operation information, etc. of the measuring device.
[0211] In another illustrated embodiment, the lease notice includes a first quantity of virtual resources paid by the lessee based on the lease order;
[0212] The receiving unit 202 is further configured to receive a first quantity of virtual resources paid by the lessee client;
[0213] The sending unit 204 is further configured to send a first deposit transaction to the blockchain, where the first deposit transaction is for depositing the first quantity of virtual resources paid by the lessee.
[0214] In another illustrated embodiment, the lease contract includes a second quantity of virtual resources that the lessee should pay based on the lease contract;
[0215] The sending unit 204 is further configured to: send a second deposit transaction to the blockchain, where the second deposit transaction is for depositing the second quantity of virtual resources paid by the lessee.
[0216] In another illustrated embodiment, the receiving unit 202 is further configured to: receive the device usage record sent by the lessee client or the measuring device;
[0217] The sending unit 204 is further configured to: construct a device usage record deposit transaction based on the device usage record, and send the device usage record deposit transaction to the blockchain.
[0218] In another illustrated embodiment, a smart contract for device status management is deployed on the blockchain, and the processing logic corresponding to the contract code of the smart contract includes device status management logic;
[0219] The apparatus further includes an execution unit 210, configured to: in response to the device usage record deposit transaction, invoke the device status management logic of the smart contract to perform device status management on the measuring device.
[0220] In another illustrated embodiment, the existing status information includes the standard status data of the anti-cheating object included in the measuring device; the device usage record deposit transaction includes the current status data of the anti-cheating object included in the measuring device; the blockchain further includes a measuring device certification agency node device;
[0221] The execution unit 210 is further configured to: verify whether the current status data matches the standard status data;
[0222] If not, output the current status data, or a preset cheating prompt message, or an alarm message, so that the measuring device certification agency node device, or the lessee node, or the lessor node can obtain the current status data, or the preset cheating prompt message, or the alarm message.
[0223] In another illustrated embodiment, the existing status information includes the metrological performance standard data of the measuring device; the device usage record deposit transaction includes the current metrological performance data of the measuring device; the blockchain further includes a measuring device certification agency node device;
[0224] The execution unit 210 is further configured to:
[0225] Verify whether the current metrological performance data matches the metrological performance standard data;
[0226] If not, output the current metrological performance data, or a preset metrological performance loss prompt message, so that the measuring device certification agency node device, or the lessee node, or the lessor node can obtain the current metrological performance data, or the metrological performance loss prompt message.
[0227] In yet another illustrated embodiment, the device 20 further includes:
[0228] a locking unit 212 ( Figure 2 not shown in the figure) for locking the measuring device so that the measuring device can only be unlocked by a node authenticated by the rental platform node device.
[0229] In yet another illustrated embodiment, the device usage record deposit transaction includes operation information of the measuring device;
[0230] The execution unit 210 is further configured to:
[0231] Based on the operation information of the measuring device, output the cause of the failure or the failure phenomenon of the measuring device.
[0232] In yet another illustrated embodiment, the device usage record deposit transaction includes operation information of the measuring device;
[0233] The execution unit 210 is further configured to:
[0234] Based on the operation information of the measuring device, perform a preset device service life assessment; before the measuring device reaches the device service life, output a life expiration reminder of the measuring device.
[0235] In yet another illustrated embodiment, the blockchain system further includes a repair party client;
[0236] The receiving unit 202 is further configured to: receive a device repair application sent by the lessee client;
[0237] When the cause of the failure of the measuring device is a non-human damage failure, receive a device repair record sent by the repair party client, and generate a device usage record deposit transaction based on the device repair record;
[0238] When the cause of the failure of the measuring device is a human damage failure, receive a device repair record sent by the repair party client and a device damage claim application sent by the lessor client, and generate the device usage record based on the device repair record.
[0239] In yet another illustrated embodiment, the receiving unit 202 is further configured to:
[0240] After the lessor receives the measuring device returned by the lessee, receive a device status detection application sent by the lessor client or the measuring device; the device status detection application includes second current status information of the measuring device;
[0241] The detection unit 206 is further configured to detect whether the second current status information matches the existing status information stored in the blockchain;
[0242] If so, return virtual resources not greater than the first quantity to the lessee, and send a third deposit transaction to the blockchain to deposit the return of virtual resources not greater than the first quantity from the leasing platform to the lessee;
[0243] If not, receive a device damage claim application sent by the lessor client.
[0244] In another illustrated embodiment, the device 20 further includes:
[0245] A generation unit 214, configured to generate a damage certificate of the measuring device based on the second current status information, the device usage record, and the existing status information.
[0246] For the specific implementation process of the functions and roles of each unit in the above device 20, refer to the implementation process of the corresponding steps in the blockchain-based measuring device leasing method executed by the above leasing platform node device. For the relevant parts, refer to the description of the method embodiment, and details will not be repeated here.
[0247] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical modules, that is, they may be located in one place or distributed to multiple network modules. Some or all of the units or modules can be selected according to actual needs to achieve the purpose of the solution in this specification. Those of ordinary skill in the art can understand and implement it without creative work.
[0248] The devices, units, and modules described in the above embodiments can be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, and the specific form of the computer can be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver device, a game console, a tablet computer, a wearable device, or a combination of any several of these devices.
[0249] Corresponding to the above method embodiments, the embodiments of this specification also provide a computer device, such as Figure 3As shown, the computer device includes a memory and a processor. Among them, a computer program capable of being run by the processor is stored on the memory; when the processor runs the stored computer program, it executes each step of the blockchain-based measurement device leasing method performed by the leasing platform node device in the embodiments of this specification. For a detailed description of each step of the blockchain-based measurement device leasing method performed by the above-mentioned leasing platform node device, please refer to the previous content and will not be repeated.
[0250] Corresponding to the above method embodiments, an embodiment of this specification also provides a computer-readable storage medium. A computer program is stored on this storage medium. When these computer programs are run by the processor, they execute each step of the blockchain-based measurement device leasing method performed by the above-mentioned leasing platform node device in the embodiments of this specification. For a detailed description of each step of the blockchain-based measurement device leasing method performed by the above-mentioned leasing platform node device, please refer to the previous content and will not be repeated.
[0251] The above 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 principle of this specification shall be included within the scope protected by this specification.
[0252] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and memory.
[0253] The memory may include non-permanent memory in the computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of, for example, read-only memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
[0254] The computer-readable medium includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data.
[0255] 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 disk read-only memory (CD-ROM), digital versatile disk (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.
[0256] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0257] It will be appreciated by those skilled in the art that the embodiments of the present specification may be provided as methods, systems or computer program products. Therefore, the embodiments of the present specification may be implemented in the form of a complete hardware implementation, a complete software implementation or an implementation combining software and hardware. Moreover, the embodiments of the present specification may be implemented in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
Claims
1. A blockchain-based measurement device leasing method, where the blockchain system includes a leasing platform node device, a lessor client, and a lessee client; the lessor client and the lessee client are connected to the leasing platform node device; the existing status information of the measurement device is stored in the blockchain; The method is executed by the node device of the rental platform and includes: Receiving a rental order for the measuring device sent by the lessee client; Sending a rental notice based on the above-mentioned measuring device to the lessor client to notify the lessor to send the measuring device to the lessee; After the lessee receives the measuring device sent by the lessor, receiving a device status detection application sent by the lessee client or the measuring device, where the device status detection application includes first current status information of the measuring device; Detecting whether the first current status information matches the existing status information; If so, creating a rental contract for the measuring device based on the received rental confirmation notice sent by the lessee client and sending the rental contract to the blockchain; Receiving a device usage record sent by the lessee client or the measuring device; Constructing a device usage record deposit transaction based on the device usage record and sending the device usage record deposit transaction to the blockchain; where a smart contract for device status management is deployed on the blockchain, and the processing logic corresponding to the contract code of the smart contract includes device status management logic; In response to the device usage record deposit transaction, invoking the device status management logic of the smart contract to perform device status management on the measuring device; Wherein, the measuring device includes a weighing device for weighing weight, a certain amount of gas is stored inside the measuring device, and the gas concentration value in the initial state of the gas is saved on the blockchain as part of the existing status information, and the current gas concentration value of the gas monitored by the measuring device is included in the device usage record; The invoking the device status management logic of the smart contract to perform device status management on the measuring device in response to the device usage record deposit transaction includes: Verifying whether the current gas concentration value is the same as the gas concentration value in the initial state stored on the blockchain or within a preset fluctuation range; If not, the above smart contract outputs current status data, or a preset cheating prompt message, or an alarm message.
2. According to the method described in claim 1, the existing status information includes: The unique identification code corresponding to the measuring device, or the unique identification code corresponding to some components of the measuring device.
3. The method according to claim 2, wherein the existing status information further includes status information that can characterize normal or abnormal use of the measuring device.
4. The method according to claim 2 or 3, wherein the existing status information further includes one or more of production information, metrology certification information, transportation and logistics information, historical lease record information, or historical maintenance record information, historical operation information of the measuring device.
5. The method according to claim 1, wherein the rental notice includes a first quantity of virtual resources paid by the lessee based on the rental order; The method further includes: Receiving a first quantity of virtual resources paid by the lessee client; Sending a first deposit transaction to the blockchain, where the first deposit transaction is for depositing the first quantity of virtual resources paid by the lessee.
6. The method according to claim 5, wherein the lease contract includes a second quantity of virtual resources that the lessee should pay based on the lease contract; The method further includes: Sending a second deposit transaction to the blockchain, where the second deposit transaction is for depositing the second quantity of virtual resources paid by the lessee.
7. The method according to claim 1, wherein the existing status information further includes metrological performance standard data of the measuring device; the device usage record deposit transaction includes current metrological performance data of the measuring device; and the blockchain further includes a measuring device certification agency node device; In response to the device usage record deposit transaction, invoking the device status management logic of the smart contract to perform device status management on the measuring device, including: Verifying whether the current metrological performance data matches the metrological performance standard data; If not, outputting the current metrological performance data or a preset metrological performance loss prompt message so that the measuring device certification agency node device, or the lessee node, or the lessor node can obtain the current metrological performance data or the metrological performance loss prompt message.
8. The method according to claim 1 or 7, further comprising: Locking the measuring device so that the measuring device can only be unlocked by a node authenticated by the lease platform node device.
9. The method according to claim 1, wherein the device usage record deposit transaction includes operation information of the measuring device; In response to the device usage record deposit transaction, invoking the device status management logic of the smart contract to perform device status management on the measuring device, including: Based on the operation information of the measuring device, outputting the cause of the failure or the failure phenomenon of the measuring device.
10. The method according to claim 1, wherein the device usage record deposit transaction includes operation information of the measuring device; In response to the device usage record deposit transaction, invoking the device status management logic of the smart contract to perform device status management on the measuring device, including: Performing a preset device service life assessment based on the operation information of the measuring device; Before the measuring device reaches the device service life, outputting a life expiration prompt for the measuring device.
11. The method according to claim 9, wherein the blockchain system further includes a repair party client; the method further comprises: Receiving a device repair application sent by the lessee client; When the cause of the failure of the measuring device is a non-human damage failure, receiving a device repair record sent by the repair party client and generating a device usage record deposit transaction based on the device repair record; When the cause of the failure of the measuring device is a human damage failure, receiving a device repair record sent by the repair party client and a device damage claim application sent by the lessor client, and generating the device usage record based on the device repair record.
12. The method according to claim 5, the method further comprising: After the lessor receives the measuring device returned by the lessee, receiving a device status detection application sent by the lessor client or the measuring device; The device status detection application includes the second current status information of the measuring device; Detect whether the second current status information matches the existing status information stored in the blockchain; If so, return no more than a first quantity of virtual resources to the lessee and send a third deposit transaction to the blockchain to deposit the return of no more than the first quantity of virtual resources from the leasing platform to the lessee; If not, receive the equipment damage claim application sent by the lessor client.
13. The method according to claim 12, further comprising: Generate a damage certificate for the measuring device based on the second current status information, the equipment usage record, and the existing status information.
14. A method for leasing a measuring device based on a blockchain, wherein the blockchain system includes a leasing platform node device, a lessor client, and a lessee client; the existing status information of the measuring device is stored in the blockchain; a smart contract for leasing management of the measuring device is deployed inside the blockchain, and the processing logic corresponding to the contract code of the smart contract includes the steps of the method for leasing a measuring device according to any one of claims 1 to 13.
15. A blockchain-based measurement device leasing device, where the blockchain system includes a leasing platform node device, a lessor client, and a lessee client; the lessor client and the lessee client are connected to the leasing platform node device; The existing status information of the measuring device is stored in the blockchain; The device is applied to the leasing platform node device side and includes: A receiving unit, configured to receive a lease order for the measuring device sent by the lessee client; A sending unit, configured to send a lease notice based on the above-mentioned measuring device to the lessor client to notify the lessor to send the measuring device to the lessee; The receiving unit is further configured to, after the lessee receives the measuring device sent by the lessor, receive a device status detection application sent by the lessee client or the measuring device, where the device status detection application includes the first current status information of the measuring device; A detection unit, configured to detect whether the first current status information matches the existing status information; A lease contract creation unit, configured to create a lease contract for the measuring device based on the lease confirmation notice sent by the received lessee client; The sending unit is further configured to send the lease contract to the blockchain; The receiving unit is further configured to receive an equipment usage record sent by the lessee client or the measuring device; The sending unit is further configured to construct an equipment usage record deposit transaction based on the equipment usage record and send the equipment usage record deposit transaction to the blockchain; wherein, a smart contract for equipment status management is deployed on the blockchain, and the processing logic corresponding to the contract code of the smart contract includes equipment status management logic; An execution unit, configured to, in response to the equipment usage record deposit transaction, invoke the equipment status management logic of the smart contract and execute equipment status management of the measuring device; The measurement device includes a weighing device for weighing, and a certain amount of gas is stored inside the measurement device. The gas concentration value in the initial state of the gas is stored on the blockchain as part of the existing state information. The device usage record includes the current gas concentration value of the gas monitored by the measurement device. The execution unit is further configured to verify whether the current gas concentration value is the same as the gas concentration value in the initial state stored on the blockchain or within a preset fluctuation range; if not, output the current state data, or a preset cheating prompt message, or an alarm message.
16. The device according to claim 15, wherein the existing state information includes: The unique identification code corresponding to the measurement device, or the unique identification code corresponding to some components of the measurement device.
17. The device according to claim 16, wherein the existing state information further includes state information that can characterize the normal or abnormal use of the measurement device.
18. The device according to claim 16 or 17, wherein the existing state information further includes one or more of the production information, metrology certification information, transportation and logistics information, historical lease record information, or historical maintenance record information, historical operation information of the measurement device.
19. The device according to claim 15, wherein the lease notice includes the first quantity of virtual resources paid by the lessee based on the lease order. The receiving unit is further configured to receive the first quantity of virtual resources paid by the lessee client. The sending unit is further configured to send a first deposit transaction to the blockchain, and the first deposit transaction is for depositing the first quantity of virtual resources paid by the lessee.
20. The device according to claim 19, wherein the lease contract includes the second quantity of virtual resources that the lessee should pay based on the lease contract. The sending unit is further configured to: send a second deposit transaction to the blockchain, and the second deposit transaction is for depositing the second quantity of virtual resources paid by the lessee.
21. The device according to claim 15, wherein the existing state information includes the metrological performance standard data of the measurement device; the device usage record deposit transaction includes the current metrological performance data of the measurement device; the blockchain further includes a measurement device certification agency node device. The execution unit is further configured to: Verify whether the current metrological performance data matches the metrological performance standard data; If not, output the current metrological performance data, or a preset metrological performance loss prompt message, so that the measurement device certification agency node device, or the lessee node, or the lessor node can obtain the current metrological performance data, or the metrological performance loss prompt message.
22. The device according to claim 15 or 21, further comprising: A locking unit for locking the measurement device so that the measurement device can only be unlocked by a node certified by the lease platform node device.
23. The device according to claim 15, wherein the device usage record deposit transaction includes the operation information of the measurement device. The execution unit is further configured to: Output the cause or symptom of the failure of the measuring device based on the operation information of the measuring device.
24. The device according to claim 15, wherein the device usage record for evidence storage transactions includes the operation information of the measuring device; The execution unit is further configured to: Perform a preset device service life assessment based on the operation information of the measuring device; before the measuring device reaches the device service life, output a life expiration prompt for the measuring device.
25. The device according to claim 23, wherein the blockchain system further includes a repair party client; The receiving unit is further configured to: receive a device repair application sent by the lessee client; When the cause of the failure of the measuring device is a non-human damage failure, receive the device repair record sent by the repair party client, and generate a device usage record for evidence storage transaction based on the device repair record; When the cause of the failure of the measuring device is a human damage failure, receive the device repair record sent by the repair party client and the device damage claim application sent by the lessor client, and generate the device usage record based on the device repair record.
26. The device according to claim 19, wherein the receiving unit is further configured to: After the lessor receives the measuring device returned by the lessee, receive a device status detection application sent by the lessor client or the measuring device; the device status detection application includes the second current status information of the measuring device; The detection unit is further configured to detect whether the second current status information matches the existing status information stored in the blockchain; If so, return no more than a first quantity of virtual resources to the lessee, and send a third evidence storage transaction to the blockchain to evidence the return of no more than the first quantity of virtual resources by the leasing platform to the lessee; If not, receive the device damage claim application sent by the lessor client.
27. The device according to claim 26, further comprising: A generation unit, configured to generate a damage certificate for the measuring device based on the second current status information, the device usage record, and the existing status information.
28. A computer device, comprising: A memory and a processor; A computer program executable by the processor is stored on the memory; When the processor runs the computer program, it executes the method according to any one of claims 1 to 13.
29. A computer-readable storage medium, on which a computer program is stored, and 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
Equipment leasing method and device, equipment and storage medium
CN110009388A