Electronic tag dangerous chemical alliance chain traceability data generation method and system
By using electronic tags and blockchain technology, the problem of information sharing in the supervision of massive amounts of hazardous chemicals has been solved, enabling traceability and information sharing in the transfer process of hazardous chemicals, and improving the level of automation and intelligence in supervision.
Patent Information
- Application Number
- CN202111565088.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-20
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2041-12-20
AI Technical Summary
The massive amount of hazardous chemical regulatory information makes it difficult to achieve accurate supervision and information sharing, and traditional manual supervision methods cannot meet the needs of automation and intelligence in safety production information.
The method of generating traceability data for hazardous chemicals using electronic tags and blockchain technology is adopted. It monitors and records the transfer process of hazardous chemicals in real time, generates and broadcasts order information and collected information, and forms reliable traceability data.
It has improved the authenticity and reliability of data in the supervision of hazardous chemicals, realized the traceability and sharing of hazardous chemical information throughout the entire process, and supported the intelligent management of safe production.
Smart Images

Figure CN116308407B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of petrochemicals, specifically to a method and system for generating traceability data for electronically tagged hazardous chemicals in a consortium. Background Technology
[0002] To prevent and mitigate risks in the safe production of hazardous chemicals, clear requirements have been put forward for the safety supervision of hazardous chemicals. The safety supervision of hazardous chemicals needs to improve the level of science and technology and information technology, carry out full-process information management and monitoring, and realize the traceability of the source, destination, and status of hazardous chemicals.
[0003] The sheer size of the industry makes it difficult to fully grasp the current state of safe production of hazardous chemicals. Traditional methods of supervision relying on manual processes are insufficient for precise oversight, which also places higher demands on the automation and intelligence of safety production information collection and analysis. Summary of the Invention
[0004] The purpose of this invention is to provide a method and system for generating traceability data for electronically tagged hazardous chemicals in a consortium, which mainly solves the problem of sharing large amounts of regulatory information on hazardous chemicals.
[0005] To achieve the above objectives, embodiments of the present invention provide a method for generating traceability data for electronically tagged hazardous chemicals consortium chains, the method comprising:
[0006] In response to the service node confirmation command, upon receiving a hazardous chemical transfer request, the system obtains and verifies the content information corresponding to the hazardous chemical transfer request.
[0007] If the content information corresponding to the hazardous chemical transfer request is verified, an order number is generated and the order number is used to form an original order block. The original order block is then broadcast to the remaining nodes in the consortium blockchain, which are the nodes in the consortium blockchain that have not received the hazardous chemical transfer request.
[0008] If consensus logic is used to determine that the original block of the order meets the first preset condition, an information collection instruction is generated, and the original blockchain ledger block of the order is broadcast to the remaining nodes in the consortium blockchain;
[0009] In response to the information collection command, before receiving the request to stop the transfer of hazardous chemicals, the electronic tag information associated with the hazardous chemicals in the transfer process or the collection information of the hazardous chemicals in the transfer process is obtained, and the electronic tag information associated with the hazardous chemicals in the transfer process or the collection information of the hazardous chemicals in the transfer process is formed into a new block;
[0010] If consensus logic determines that the new block meets the first preset condition, it is added to the blockchain and broadcast.
[0011] Optionally, the generation method further includes:
[0012] The hazardous chemicals transfer request is broadcast to the node in the consortium blockchain corresponding to the hazardous chemicals transfer request.
[0013] Obtain node feedback information from the node in the consortium blockchain corresponding to the hazardous chemical transfer request;
[0014] Calculate the distance information of all broadcast request terminals corresponding to the hazardous chemical transfer request based on the node feedback information;
[0015] The node corresponding to the distance information that satisfies the second preset condition is determined as the service node;
[0016] Send a service node confirmation command to the service node.
[0017] Optionally, obtaining node feedback information from the node corresponding to the hazardous chemical transfer request in the consortium blockchain includes:
[0018] Receive the location information fed back by the node corresponding to the hazardous chemical transfer request based on the hazardous chemical transfer request;
[0019] The location information is used as the node feedback information.
[0020] Optionally, forming a new block from the electronic tag information associated with hazardous chemicals in the hazardous chemical transfer process or the hazardous chemical collection information in the hazardous chemical transfer process includes:
[0021] The order number information in the original order block, the electronic tag information associated with the hazardous chemicals in the hazardous chemicals transfer process or the hazardous chemicals collection information in the hazardous chemicals transfer process, and the timestamp are hashed, and the resulting hash value is used as the header of the new block.
[0022] The electronic tag information associated with hazardous chemicals in the hazardous chemical transfer process or the hazardous chemical collection information in the hazardous chemical transfer process will be used as the information of the new block.
[0023] Optionally, the step of using consensus logic to determine that the transfer request content information meets the first preset condition includes:
[0024] Obtain the verification results of all nodes for the new block or the original block of the order. The verification results include correct results and incorrect results.
[0025] Calculate the ratio of the correct results to the verification results information;
[0026] If the ratio is greater than a set value, it is determined that the transfer request content information meets the first preset condition.
[0027] This invention also provides a system for generating traceability data for electronically tagged hazardous chemicals consortium chains, the system comprising:
[0028] Server nodes are used for:
[0029] In response to the service node confirmation command, upon receiving a hazardous chemical transfer request, the system obtains and verifies the content information corresponding to the hazardous chemical transfer request.
[0030] Once the content information corresponding to the hazardous chemical transfer request is verified, an order number is generated and the order number is used to form the original order block; the original order block is then broadcast to the remaining nodes in the consortium blockchain, which are the nodes in the consortium blockchain that have not received the hazardous chemical transfer request.
[0031] The consensus module is used for:
[0032] If the consensus logic determines that the original block of the order meets the first preset condition, an information collection instruction is generated, and the original blockchain ledger block of the order is broadcast to the remaining nodes in the consortium blockchain.
[0033] Data module, used for:
[0034] In response to the information collection command, before receiving the request to stop the transfer of hazardous chemicals, the electronic tag information associated with the hazardous chemicals in the transfer process or the collection information of the hazardous chemicals in the transfer process is obtained, and the electronic tag information associated with the hazardous chemicals in the transfer process or the collection information of the hazardous chemicals in the transfer process is formed into a new block;
[0035] If the consensus logic determines that the new block meets the first preset condition, it is added to the blockchain and broadcast.
[0036] Optionally, the generation system further includes:
[0037] Request terminal, used for:
[0038] The hazardous chemicals transfer request is broadcast to the node in the consortium blockchain corresponding to the hazardous chemicals transfer request.
[0039] Obtain node feedback information from the node in the consortium blockchain corresponding to the hazardous chemical transfer request;
[0040] Calculate the distance information of all broadcast request terminals corresponding to the hazardous chemical transfer request based on the node feedback information;
[0041] The node corresponding to the distance information that satisfies the second preset condition is determined as the service node;
[0042] Send a service node confirmation command to the service node.
[0043] Optionally, obtaining node feedback information from the node corresponding to the hazardous chemical transfer request in the consortium blockchain includes:
[0044] Receive the location information fed back by the node corresponding to the hazardous chemical transfer request based on the hazardous chemical transfer request;
[0045] The location information is used as the node feedback information.
[0046] Optionally, forming a new block from the electronic tag information associated with hazardous chemicals in the hazardous chemical transfer process or the hazardous chemical collection information in the hazardous chemical transfer process includes:
[0047] The order number information in the original order block, the electronic tag information associated with the hazardous chemicals in the hazardous chemicals transfer process or the hazardous chemicals collection information in the hazardous chemicals transfer process, and the timestamp are hashed, and the resulting hash value is used as the header of the new block.
[0048] The electronic tag information associated with hazardous chemicals in the hazardous chemical transfer process or the hazardous chemical collection information in the hazardous chemical transfer process will be used as the information of the new block.
[0049] Optionally, the step of using consensus logic to determine that the transfer request content information meets the first preset condition includes:
[0050] Obtain the verification results of all nodes for the new block or the original block of the order. The verification results include correct results and incorrect results.
[0051] Calculate the ratio of the correct results to the verification results information;
[0052] If the ratio is greater than a set value, it is determined that the transfer request content information meets the first preset condition.
[0053] The present invention also provides a machine-readable storage medium storing instructions for causing a machine to execute the above-described method for generating electronically tagged hazardous chemicals chain traceability data.
[0054] Through the above technical solution, this invention can store information on the blockchain regarding hazardous chemical cargo transfer orders and actual cargo transfer processes, thereby improving the authenticity and reliability of the data to a certain extent and providing strong support for the safety supervision of hazardous chemicals. The electronic tag-based hazardous chemical blockchain traceability data can form shared data for hazardous chemical safety supervision information.
[0055] Other features and advantages of the embodiments of the present invention will be described in detail in the following detailed description section. Attached Figure Description
[0056] The accompanying drawings are provided to further illustrate embodiments of the present invention and form part of the specification. They are used together with the following detailed description to explain the embodiments of the present invention, but do not constitute a limitation thereof. In the drawings:
[0057] Figure 1 This is a schematic diagram of the method for generating traceability data for electronically tagged hazardous chemicals consortiums provided in the embodiments of this application. Detailed Implementation
[0058] The specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for illustration and explanation only and are not intended to limit the scope of the present invention.
[0059] This invention provides a method for generating traceability data for an electronically tagged hazardous chemicals consortium blockchain. The method includes: responding to a service node confirmation instruction, upon receiving a hazardous chemicals transfer request, acquiring and verifying the content information corresponding to the hazardous chemicals transfer request; if the content information corresponding to the hazardous chemicals transfer request is verified, generating order number information and forming an original order block from the order number information, and broadcasting the original order block to the remaining nodes in the consortium blockchain, wherein the remaining nodes are nodes in the consortium blockchain that have not received the hazardous chemicals transfer request; if consensus logic determines that the original order block meets a first preset condition, generating an information collection instruction, and broadcasting the original order blockchain ledger block to the remaining nodes in the consortium blockchain; responding to the information collection instruction, before receiving a hazardous chemicals stop transfer request, acquiring electronic tag information associated with the hazardous chemicals in the hazardous chemicals transfer process or hazardous chemicals collection information in the hazardous chemicals transfer process, and forming a new block from the electronic tag information associated with the hazardous chemicals in the hazardous chemicals transfer process or hazardous chemicals collection information in the hazardous chemicals transfer process; if consensus logic determines that the new block meets the first preset condition, uploading it to the blockchain and broadcasting it. Figure 1 As shown, in this embodiment, the electronic tag information is an RFID electronic tag. RFID electronic tags can read and write data information, which includes the tag's unique identification code. After identifying the unique identification code through a reader / writer, the information of the identified hazardous chemical goods can be queried by connecting to the consortium blockchain platform. The hazardous chemical goods information includes the name of the hazardous chemical, the hazardous chemical registration number, the issuing unit information and unified social credit code, the receiving unit information and unified social credit code, the production or import date of the product, the emergency response method for the identified hazardous chemical, and a verification code (to prevent unauthorized writing devices from writing information). The specific process of obtaining and verifying the content information corresponding to the hazardous chemical transfer request is as follows: a hazardous chemical transfer request order needs to be initiated on the consortium blockchain client, and the corresponding content information needs to be entered. The corresponding content information includes information about the issuing company, the issuance date, the expected receipt date, information about the transferred hazardous chemicals, the transfer method, information about the receiving company, information about the carrier company, vehicle information, and information about the driver and carrier. If all companies involved in the entire transfer process have valid qualifications, and all transferred hazardous chemicals have valid registration information, the order can be established and given a unique order number. If the companies and personnel involved do not have the relevant qualifications or their qualifications have expired, or if the transferred hazardous chemicals have not been registered and identified, no order number will be generated; the request to create an order will be rejected.
[0060] The acquisition and processing of electronic tag information associated with hazardous chemicals during the transfer process is achieved through RFID reader / writer devices. These devices utilize radio frequency technology to read and write information to electronic tags, possessing two functions: writing information to RFID tags and reading the information already written to them and uploading it to a blockchain platform. The device consists of a read / write control module, a radio frequency module, a power management module, and an antenna. It employs a non-contact read / write method, operates at a frequency of 902-928MHz, and can simultaneously read data from multiple RFID tags. RFID reader / writer devices are available in handheld and fixed versions. Handheld devices are equipped with rechargeable batteries and have a reading / writing range of less than 1 meter; fixed devices require power and have a reading / writing range of more than 5 meters. For example, for individually packaged hazardous chemicals, such as solid packages or gas storage tanks, RFID tags are affixed to the surface of the packaging. Each individually packaged item requires a semi-active RFID tag. When transporting multiple individually packaged hazardous chemicals in containers, active RFID tags must be affixed to the container surface in addition to the RFID tags affixed to the hazardous chemicals inside the container. For containers such as shipping containers and tanks, the active RFID tags assigned to these containers must be explosion-proof and corrosion-resistant, and identified using container codes in a distributed ledger. The identification of individually packaged hazardous chemicals within the containers will be linked to and recorded with the container identification. Similarly, all vehicles involved in the transfer of hazardous chemicals will be equipped with active RFID tags for unique identification. Furthermore, handheld RFID readers will be distributed to operators at hazardous chemical-related companies and law enforcement personnel responsible for the supervision of hazardous chemical safety production. Fixed RFID readers will be installed at the entrances and exits of hazardous chemical-related companies, warehouse entrances and exits, and highway entrances and exits where hazardous chemical transport vehicles are permitted by relevant regulations. The electronic tag information associated with hazardous chemicals in the hazardous chemical transfer process includes hazardous chemical cargo information, transport vehicle information, transport container information, and the location and coding information of the fixed RFID readers. Specifically, before commencing the transport of hazardous chemical cargo by vehicle, the sending company needs to input the order number into the handheld RFID reader to scan all individually packaged hazardous chemical cargo, transport vehicles, and transport containers. The consortium blockchain platform links orders with information about the hazardous chemicals obtained through scanning. During transport, when the transport vehicle reaches a location equipped with a fixed RFID reader, the RFID tags on the vehicle and container are read. This information, along with the location and coding information of the fixed RFID reader, is sent to the consortium blockchain platform and added to the hazardous chemicals transfer order.
[0061] Hazardous chemical collection information during the transfer process is obtained through flow sensors on the pipeline. In response to the generation of information collection commands, the consortium blockchain platform will collect data on the amount of material transported within the pipeline management system every 24 hours via a software interface before receiving a request to stop the transfer of hazardous chemicals.
[0062] Optionally, to improve service and computational efficiency, a service node selection scheme is added. The generation method further includes: broadcasting a hazardous chemical transfer request to the corresponding node in the consortium blockchain; obtaining node feedback information from the corresponding node in the consortium blockchain; calculating distance information for all broadcast request terminals corresponding to the hazardous chemical transfer request based on the node feedback information; determining the node corresponding to the distance information that meets a second preset condition as the service node; and sending a service node confirmation command to the service node.
[0063] Optionally, obtaining node feedback information from the node corresponding to the hazardous chemical transfer request in the consortium blockchain includes: receiving location information fed back by the node corresponding to the hazardous chemical transfer request based on the hazardous chemical transfer request; and using the location information as the node feedback information. Specifically, the requesting terminal, such as a mobile phone, first sends a hazardous chemical transfer request to each node in the consortium blockchain via a P2P network, and each node in the consortium blockchain sends feedback information to the requesting terminal. Further, to reduce computational pressure, the node corresponding to the hazardous chemical transfer request is pre-defined (multiple nodes are specified in the service nodes during transportation). The requesting terminal transmits the hazardous chemical transfer request to the node corresponding to the hazardous chemical transfer request; receives location information fed back by the node corresponding to the hazardous chemical transfer request based on the hazardous chemical transfer request; and uses the location information as the node feedback information. In this embodiment, satisfying the second preset condition specifically means that the distance between the requesting terminal and the requesting terminal corresponding to the hazardous chemical transfer request is minimized. This can be considered a preferred method for selecting the best server.
[0064] Optionally, forming a new block from the electronic tag information associated with hazardous chemicals in the hazardous chemical transfer process or the hazardous chemical collection information in the hazardous chemical transfer process includes:
[0065] The order number information in the original order block, the electronic tag information associated with the hazardous chemicals in the hazardous chemicals transfer process or the hazardous chemicals collection information in the hazardous chemicals transfer process, and the timestamp are hashed, and the resulting hash value is used as the header of the new block.
[0066] The electronic tag information associated with hazardous chemicals in the hazardous chemical transfer process or the hazardous chemical collection information in the hazardous chemical transfer process will be used as the information of the new block.
[0067] The consortium blockchain comprises companies involved in hazardous chemicals and regulatory bodies. Each regulatory node is required to set up a server and be authorized to install the consortium blockchain platform software. Company nodes with fewer orders only need to install the platform software. Only authorized devices can access the server; users outside the consortium cannot access the platform. Hazardous chemical transfer requests and updates initiated by company nodes are processed by the nearest node with a server. Every 15 minutes, the distributed ledger packages all orders and their changes nationwide into blocks and uploads them to the consortium blockchain, which is then broadcast to all nodes for data synchronization. All nodes can access and query all historical data on the consortium blockchain.
[0068] The generated block header, generated using order number information, links all information within the transshipment process to the order number. Distributed ledgers can associate hazardous chemical transfer orders with information throughout the transshipment process (company, vehicle RFID tags, cargo RFID tags, RFID tags along the route, pipeline flow). Using the RFID tag's identification code, one can query all transshipment orders it has experienced, and from the orders, one can understand the companies involved; using the company information, one can query the orders it initiated and the destination of all hazardous chemical goods.
[0069] When nodes in the aforementioned consortium blockchain send or broadcast messages, they encrypt the messages using the sending node's private key before sending them to other nodes in the blockchain. Other nodes then decrypt the messages using the sending node's public key to verify the source. The encryption and decryption process can utilize the SHA256 algorithm for asymmetric encryption and decryption. Only after successful verification will the message undergo further processing.
[0070] Optionally, the step of using consensus logic to determine that the transfer request content information meets the first preset condition includes:
[0071] The system retrieves verification result information from all nodes for the new block or the original order block; the verification result information includes correct results and incorrect results; it calculates the ratio of correct results in the verification result information; and determines that the transfer request content information meets a first preset condition when the ratio is greater than a set value. Each node in the consortium blockchain performs data verification on the source-verified new block or the original order block, compares the data in the new block or the original order block with the data in the stored ledger information, and outputs verification result information; after receiving the verification result information, the service node calculates the ratio of correct results in the verification result information; and determines that the process request content information meets the first preset condition when the ratio is greater than a set value, such as 70%.
[0072] This invention also provides a system for generating traceability data for electronically tagged hazardous chemicals consortium chains, characterized in that the generation system comprises:
[0073] Server nodes are used for:
[0074] In response to the service node confirmation command, upon receiving a hazardous chemical transfer request, the system obtains and verifies the content information corresponding to the hazardous chemical transfer request.
[0075] Once the content information corresponding to the hazardous chemical transfer request is verified, an order number is generated and the order number is used to form the original order block; the original order block is then broadcast to the remaining nodes in the consortium blockchain, which are the nodes in the consortium blockchain that have not received the hazardous chemical transfer request.
[0076] The consensus module is used for:
[0077] If the consensus logic determines that the original block of the order meets the first preset condition, an information collection instruction is generated, and the original blockchain ledger block of the order is broadcast to the remaining nodes in the consortium blockchain.
[0078] Data module, used for:
[0079] In response to the information collection command, before receiving the request to stop the transfer of hazardous chemicals, the electronic tag information associated with the hazardous chemicals in the transfer process or the collection information of the hazardous chemicals in the transfer process is obtained, and the electronic tag information associated with the hazardous chemicals in the transfer process or the collection information of the hazardous chemicals in the transfer process is formed into a new block;
[0080] If the consensus logic determines that the new block meets the first preset condition, it is added to the blockchain and broadcast.
[0081] Optionally, the generation system further includes:
[0082] Request terminal, used for:
[0083] The hazardous chemicals transfer request is broadcast to the node in the consortium blockchain corresponding to the hazardous chemicals transfer request.
[0084] Obtain node feedback information from the node in the consortium blockchain corresponding to the hazardous chemical transfer request;
[0085] Calculate the distance information of all broadcast request terminals corresponding to the hazardous chemical transfer request based on the node feedback information;
[0086] The node corresponding to the distance information that satisfies the second preset condition is determined as the service node;
[0087] Send a service node confirmation command to the service node.
[0088] Optionally, obtaining node feedback information from the node corresponding to the hazardous chemical transfer request in the consortium blockchain includes:
[0089] Receive the location information fed back by the node corresponding to the hazardous chemical transfer request based on the hazardous chemical transfer request;
[0090] The location information is used as the node feedback information.
[0091] Optionally, forming a new block from the electronic tag information associated with hazardous chemicals in the hazardous chemical transfer process or the hazardous chemical collection information in the hazardous chemical transfer process includes:
[0092] The order number information in the original order block, the electronic tag information associated with the hazardous chemicals in the hazardous chemicals transfer process or the hazardous chemicals collection information in the hazardous chemicals transfer process, and the timestamp are hashed, and the resulting hash value is used as the header of the new block.
[0093] The electronic tag information associated with hazardous chemicals in the hazardous chemical transfer process or the hazardous chemical collection information in the hazardous chemical transfer process will be used as the information of the new block.
[0094] Optionally, the step of using consensus logic to determine that the transfer request content information meets the first preset condition includes:
[0095] Obtain the verification results of all nodes for the new block or the original block of the order. The verification results include correct results and incorrect results.
[0096] Calculate the ratio of the correct results to the verification results information;
[0097] If the ratio is greater than a set value, it is determined that the transfer request content information meets the first preset condition. The implementation process has already been explained in the method for generating traceability data for electronically tagged hazardous chemicals consortium chains, and will not be repeated here.
[0098] The present invention also provides a machine-readable storage medium storing instructions for causing a machine to execute the above-described method for generating electronically tagged hazardous chemicals chain traceability data.
[0099] Those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program instructing related hardware. This program is stored in a storage medium and includes several instructions to cause a microcontroller, chip, or processor to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0100] The optional embodiments of the present invention have been described in detail above with reference to the accompanying drawings. However, the embodiments of the present invention are not limited to the specific details described above. Within the scope of the technical concept of the embodiments of the present invention, various simple modifications can be made to the technical solutions of the embodiments of the present invention, and these simple modifications all fall within the protection scope of the embodiments of the present invention. It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. To avoid unnecessary repetition, the embodiments of the present invention will not further describe the various possible combinations.
[0101] Furthermore, various different embodiments of the present invention can be combined in any way, as long as they do not violate the spirit of the embodiments of the present invention, they should also be regarded as the content disclosed by the embodiments of the present invention.
Claims
1. A method for generating traceability data for an electronically tagged hazardous chemicals consortium, characterized in that, The method includes: In response to the service node confirmation command, upon receiving a hazardous chemical transfer request, the system obtains and verifies the content information corresponding to the hazardous chemical transfer request. If the verification of the content information corresponding to the hazardous chemical transfer request is successful, including: all enterprises involved in the entire transfer process have valid qualifications, and all transferred hazardous chemicals have valid registration information; generate order number information and form the order number information into an original order block, and broadcast the original order block to the remaining nodes in the consortium blockchain, wherein the remaining nodes are the nodes in the consortium blockchain that have not received the hazardous chemical transfer request; If consensus logic is used to determine that the original block of the order meets the first preset condition, an information collection instruction is generated, and the original blockchain ledger block of the order is broadcast to the remaining nodes in the consortium blockchain; In response to the information collection command, before receiving a request to stop the transfer of hazardous chemicals, the system acquires electronic tag information associated with hazardous chemicals during the transfer process or hazardous chemical collection information during the transfer process, and forms a new block from the electronic tag information associated with hazardous chemicals during the transfer process or the hazardous chemical collection information during the transfer process. The electronic tag information associated with hazardous chemicals during the transfer process is read by RFID readers and includes hazardous chemical cargo information, transport vehicle information, transport container information, hazardous chemical cargo information, and location and coding information of fixed RFID readers. The hazardous chemical collection information during the transfer process is acquired by flow sensors on the pipeline. The electronic tags include: vehicle RFID electronic tags, cargo RFID electronic tags, and RFID electronic tags along the route. If consensus logic determines that the new block meets the first preset condition, it is added to the blockchain and broadcast. The step of forming a new block from the electronic tag information associated with hazardous chemicals in the hazardous chemical transfer process or the hazardous chemical collection information in the hazardous chemical transfer process includes: The order number information in the original order block, the electronic tag information associated with the hazardous chemicals in the hazardous chemicals transfer process or the hazardous chemicals collection information in the hazardous chemicals transfer process, and the timestamp are hashed, and the resulting hash value is used as the header of the new block. The electronic tag information associated with hazardous chemicals in the hazardous chemical transfer process or the hazardous chemical collection information in the hazardous chemical transfer process will be used as the information of the new block.
2. The generation method according to claim 1, characterized in that, The generation method further includes: The hazardous chemicals transfer request is broadcast to the node in the consortium blockchain corresponding to the hazardous chemicals transfer request. Obtain node feedback information from the node in the consortium blockchain corresponding to the hazardous chemical transfer request; Calculate the distance information of all broadcast request terminals corresponding to the hazardous chemical transfer request based on the node feedback information; The node corresponding to the distance information that satisfies the second preset condition is determined as the service node; Send a service node confirmation command to the service node.
3. The generation method according to claim 2, characterized in that, The step of obtaining node feedback information from the node corresponding to the hazardous chemical transfer request in the consortium blockchain includes: Receive the location information fed back by the node corresponding to the hazardous chemical transfer request based on the hazardous chemical transfer request; The location information is used as the node feedback information.
4. The generation method according to claim 1, characterized in that, The step of using consensus logic to determine that the transfer request content information meets the first preset condition includes: Obtain the verification results of all nodes for the new block or the original block of the order. The verification results include correct results and incorrect results. Calculate the ratio of the correct results to the verification results information; If the ratio is greater than a set value, it is determined that the transfer request content information meets the first preset condition.
5. A system for generating traceability data for electronically tagged hazardous chemicals consortium chains, characterized in that, The generation system includes: Server nodes are used for: In response to the service node confirmation command, upon receiving a hazardous chemical transfer request, the system obtains and verifies the content information corresponding to the hazardous chemical transfer request. If the verification of the content information corresponding to the hazardous chemical transfer request is successful, the process includes: all enterprises involved in the entire transfer process have valid qualifications, and all hazardous chemicals transferred have valid registration information; generating order number information and forming the order original block; broadcasting the order original block to the remaining nodes in the consortium blockchain, where the remaining nodes are the nodes in the consortium blockchain that have not received the hazardous chemical transfer request; The consensus module is used for: If the consensus logic determines that the original block of the order meets the first preset condition, an information collection instruction is generated, and the original blockchain ledger block of the order is broadcast to the remaining nodes in the consortium blockchain. Data module, used for: In response to the information collection command, before receiving a request to stop the transfer of hazardous chemicals, the system acquires electronic tag information associated with hazardous chemicals during the transfer process or hazardous chemical collection information during the transfer process, and forms a new block from the electronic tag information associated with hazardous chemicals during the transfer process or the hazardous chemical collection information during the transfer process. The electronic tag information associated with hazardous chemicals during the transfer process is read by RFID readers and includes hazardous chemical cargo information, transport vehicle information, transport container information, hazardous chemical cargo information, and location and coding information of fixed RFID readers. The hazardous chemical collection information during the transfer process is acquired by flow sensors on the pipeline. The electronic tags include: vehicle RFID electronic tags, cargo RFID electronic tags, and RFID electronic tags along the route. If the consensus logic determines that the new block meets the first preset condition, it is uploaded to the blockchain and broadcast. The step of forming a new block from the electronic tag information associated with hazardous chemicals in the hazardous chemical transfer process or the hazardous chemical collection information in the hazardous chemical transfer process includes: The order number information in the original order block, the electronic tag information associated with the hazardous chemicals in the hazardous chemicals transfer process or the hazardous chemicals collection information in the hazardous chemicals transfer process, and the timestamp are hashed, and the resulting hash value is used as the header of the new block. The electronic tag information associated with hazardous chemicals in the hazardous chemical transfer process or the hazardous chemical collection information in the hazardous chemical transfer process will be used as the information of the new block.
6. The generation system according to claim 5, characterized in that, The generation system also includes: Request terminal, used for: The hazardous chemicals transfer request is broadcast to the node in the consortium blockchain corresponding to the hazardous chemicals transfer request. Obtain node feedback information from the node in the consortium blockchain corresponding to the hazardous chemical transfer request; Calculate the distance information of all broadcast request terminals corresponding to the hazardous chemical transfer request based on the node feedback information; The node corresponding to the distance information that satisfies the second preset condition is determined as the service node; Send a service node confirmation command to the service node.
7. The generation system according to claim 6, characterized in that, The step of obtaining node feedback information from the node corresponding to the hazardous chemical transfer request in the consortium blockchain includes: Receive the location information fed back by the node corresponding to the hazardous chemical transfer request based on the hazardous chemical transfer request; The location information is used as the node feedback information.
8. The generation system according to claim 5, wherein determining that the transfer request content information satisfies the first preset condition using consensus logic includes: Obtain the verification results of all nodes for the new block or the original block of the order. The verification results include correct results and incorrect results. Calculate the ratio of the correct results to the verification results information; If the ratio is greater than a set value, it is determined that the transfer request content information meets the first preset condition.
9. A machine-readable storage medium storing instructions for causing a machine to perform the method for generating electronically tagged hazardous chemicals chain traceability data as described in any one of claims 1-4.
Citation Information
Patent Citations
Real-time dangerous chemical transportation inherent risk monitoring device and method
CN109383359A
Hazardous waste processing method based on block chain network and node of block chain network
CN110599095A
Beidou positioning information security encryption method and device based on alliance block chain
CN111191283A
Express logistics management method and system based on block chain technology
CN112732840A
