Automobile production data tracing method, system and device based on block chain and medium

Through the blockchain-based automotive production data traceability method, the problems of insufficient data accuracy, real-time and security in the existing technology are solved, and efficient, accurate and secure production data traceability are achieved, ensuring the integrity and privacy of the data.

CN120258837APending Publication Date: 2025-07-04GAC HONDA AUTOMOBILE CO LTD +1
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202510327907.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-19
Publication Date
2025-07-04

AI Technical Summary

Technical Problem

The existing automotive production data traceability methods have problems such as doubtful accuracy, untimely update of data, slow traceability and easy loss or damage to data, resulting in inefficient and insufficient accuracy, real-time and security of data.

Method used

The blockchain-based automobile production data traceability method is adopted, and the product identification and original production data are obtained through each production node, stored in the distributed file system and generated a unique hash value, packaged and generated data blocks and uploaded to the blockchain, and indexed the target hash value and data blocks on the blockchain in response to the traceability request, and combined with the distributed file system to find production data to generate traceability records.

Benefits of technology

It improves the traceability efficiency, accuracy and security of automobile production data, realizes real-time data and transparent traceability throughout the process, ensuring data immutability and privacy protection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120258837A_ABST
    Figure CN120258837A_ABST
Patent Text Reader

Abstract

The invention discloses an automobile production data tracing method, system and device based on a block chain and a medium, and the method comprises the steps: obtaining a product identifier of a production process, original production data and key metadata, storing the original production data to a distributed file system, and generating a unique hash value; packaging the unique hash value and the key metadata to generate a data block, generating block index information according to the unique hash value and the product identifier, and uploading the data block and the block index information to a block chain; obtaining a target hash value and a target data block through indexing on the block chain according to the target product identifier, and determining target metadata according to the target data block; and searching in the distributed file system according to the target hash value to obtain target production data, and generating a target tracing record according to the target production data and the target metadata. The automobile production data tracing efficiency and the accuracy, real-time performance and safety of the automobile production data are improved, and the automobile production data tracing method can be applied to the technical field of automobile production.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automobile production, and in particular to a method, system, device and medium for tracing automobile production data based on blockchain. Background Art

[0002] Existing methods for tracing automobile production data mainly include identification-based tracing and production record tracing. Identification-based tracing includes: 1) Component identification, that is, in the process of component production, technologies such as two-dimensional codes, barcodes, and RFID tags are used to assign a unique identifier to each component, and information such as the production batch, production date, and manufacturer of the component is recorded; 2) Vehicle identification, that is, in the process of automobile production, a unique vehicle identification number (VIN) is set for each vehicle, and the VIN is associated with the component identifier. Through the VIN, the component information used by the vehicle can be queried. Production record tracing includes: 1) Production work order record, that is, the production information of each production work order is recorded in detail, including production tasks, production time, production personnel, equipment and tooling used, etc. Through the production work order, the production process of a certain vehicle can be traced; 2) Process parameter record, that is, using the control system and data acquisition system of production equipment to record the process parameters in the production process in real time, such as welding current, torque value, painting temperature, etc. Once a quality problem occurs, the cause of the problem can be analyzed through the process parameter record.

[0003] The existing methods for tracing automobile production data have the following problems:

[0004] 1) Doubts about accuracy. Manual records are prone to clerical errors, misjudgments, etc. For example, when recording data such as production time and component numbers, errors may occur due to the negligence of staff, resulting in inaccurate basic data for tracing, affecting the judgment and positioning of problems.

[0005] 2) Data is not updated in a timely manner. The situation in the production process is changeable. If manual record updating is relied on, the latest status may not be reflected in real time. For example, when the production plan is adjusted temporarily, the relevant records may not be modified in time, resulting in the use of outdated information for tracing and making it difficult to accurately trace the source of the problem.

[0006] 3) Slow tracing speed. When tracing problems, it may be necessary to search for relevant information from a large number of paper documents or scattered electronic records. When multiple departments or links are involved, it is also necessary to communicate and coordinate one by one, consuming a large amount of time and manpower.

[0007] 4) Prone to loss or damage. Paper records are easily damaged by natural factors such as fire, flood, and insect infestation. Electronic records may also result in data loss or damage due to storage device failures, virus infections, etc. Once key tracing evidence is lost, it will bring great difficulties to problem tracing and even make it impossible to determine the root cause of the problem.

[0008] In summary, the existing methods for tracing automotive production data are inefficient, and the accuracy, timeliness, and security of the data are insufficient. Summary of the Invention

[0009] An object of the present invention is to solve at least to some extent one of the technical problems existing in the prior art.

[0010] To this end, an object of an embodiment of the present invention is to provide a method for tracing automotive production data based on a blockchain, which improves the efficiency of tracing automotive production data and improves the accuracy, timeliness, and security of automotive production data.

[0011] Another object of an embodiment of the present invention is to provide a system for tracing automotive production data based on a blockchain.

[0012] To achieve the above technical objectives, the technical solutions adopted in the embodiments of the present invention include:

[0013] In a first aspect, an embodiment of the present invention provides a method for tracing automotive production data based on a blockchain, including the following steps:

[0014] Obtain the product identifier, original production data, and key metadata of the corresponding production process through each automotive production node, store the original production data in a distributed file system, and generate a unique hash value;

[0015] Package the unique hash value and the key metadata to generate a data block, generate block index information according to the unique hash value and the product identifier, and upload the corresponding data block and block index information to the blockchain composed of all the automotive production nodes through each automotive production node;

[0016] In response to a tracing request from a target production node, index the corresponding target hash value and target data block on the blockchain according to the target product identifier, and determine the target metadata according to the target data block;

[0017] Find the corresponding target production data in the distributed file system according to the target hash value, generate a target tracing record according to the target production data and the target metadata, and then return the target tracing record to the target production node.

[0018] Further, in an embodiment of the present invention, the product identifier is a vehicle identification number or a component number corresponding to a production process, the original production data includes at least one of raw material batch information, component production parameters, production equipment operation data, environmental monitoring results, and quality inspection results, and the key metadata includes production time, production location, production batch, and operator information.

[0019] Further, in an embodiment of the present invention, storing the original production data in a distributed file system and generating a unique hash value specifically includes:

[0020] Dividing the original production data into multiple data shards according to a preset size, and determining the shard hash values of each data shard;

[0021] Determining the storage nodes corresponding to the data shards according to the shard hash values through a consistent hashing algorithm or a hash modulo method, and encrypting and storing the data shards in the storage nodes;

[0022] Aggregating each of the shard hash values layer by layer as leaf nodes to obtain the unique hash value corresponding to the root node, or concatenating each of the shard hash values in the shard order to obtain a string, and performing a hash calculation on the string to obtain the unique hash value;

[0023] Recording the shard hash values, the unique hash value, and the storage locations of the storage nodes in the distributed file system through a data server.

[0024] Further, in an embodiment of the present invention, packing the unique hash value and the key metadata to generate a data block, generating block index information according to the unique hash value and the product identifier, and uploading the corresponding data block and block index information to a blockchain composed of all the automobile production nodes through each of the automobile production nodes, which specifically includes:

[0025] Generating a current block hash value according to the unique hash value, and obtaining a previous block hash value from the blockchain through the automobile production node;

[0026] Packing the previous block hash value, the current block hash value, and the key metadata to obtain the data block;

[0027] Associating the current block hash value with the product identifier as a key to obtain a main index key-value pair, and generating auxiliary index information according to the key metadata and the current block hash value, and then generating the block index information according to the main index key-value pair and the auxiliary index information;

[0028] Uploading the data block and the block index information to the blockchain through the automobile production node, and verifying the validity of the data block through a consensus mechanism;

[0029] When the verification is passed, the data block is broadcast to all the automobile production nodes through the blockchain, and the block index information is pushed to the index service.

[0030] Further, in one embodiment of the present invention, in response to the traceability request of the target production node, the corresponding target hash value and target data block are obtained by indexing on the blockchain according to the target product identifier, and the target metadata is determined according to the target data block, which specifically includes:

[0031] When the target production node initiates a traceability request, the target production node is authenticated by using the key of the target production node;

[0032] When the identity authentication is passed, the target product identifier provided by the target production node is queried in the index service of the blockchain to obtain the target hash value, and then the target data block is obtained according to the target hash value index;

[0033] The target data block is decapsulated to obtain the target metadata.

[0034] Further, in one embodiment of the present invention, the step of obtaining corresponding target production data in the distributed file system according to the target hash value and generating a target traceability record according to the target production data and the target metadata specifically includes:

[0035] According to the target hash value, a plurality of target shard hash values ​​and corresponding target storage locations are searched in the data server of the distributed file system;

[0036] Acquire the corresponding target data shard at the target storage location according to the target shard hash value, and perform data aggregation on the target data shard to obtain the target production data;

[0037] The target production data and the target metadata are integrated to obtain the target traceability record.

[0038] Furthermore, in one embodiment of the present invention, the automobile production data tracing method further includes the following steps:

[0039] Determine the business data rules for each production link, and write the business data rules into the smart contract of the blockchain;

[0040] When the target production data does not conform to the business data rules of the corresponding production link, determine the responsible party according to the target metadata, push the responsible party to the target production node, and notify the responsible party.

[0041] In a second aspect, an embodiment of the present invention provides a blockchain-based vehicle production data traceability system, including:

[0042] A data storage module, configured to obtain product identifiers, original production data, and key metadata of corresponding production processes through each vehicle production node, store the original production data in a distributed file system, and generate a unique hash value;

[0043] A data on-chain module, configured to package the unique hash value and the key metadata to generate a data block, generate block index information according to the unique hash value and the product identifier, and upload the corresponding data block and the block index information to a blockchain composed of all the vehicle production nodes through each vehicle production node;

[0044] A data index module, configured to, in response to a traceability request of a target production node, index a corresponding target hash value and a target data block on the blockchain according to a target product identifier, and determine target metadata according to the target data block;

[0045] A traceability record generation module, configured to find corresponding target production data in the distributed file system according to the target hash value, generate a target traceability record according to the target production data and the target metadata, and then return the target traceability record to the target production node.

[0046] In a third aspect, an embodiment of the present invention provides a blockchain-based vehicle production data traceability device, including:

[0047] At least one processor;

[0048] At least one memory, configured to store at least one program;

[0049] When the at least one program is executed by the at least one processor, the at least one processor is caused to implement the above-mentioned blockchain-based vehicle production data traceability method.

[0050] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, in which a processor-executable program is stored, and the processor-executable program is used to execute the above-mentioned blockchain-based vehicle production data traceability method when executed by a processor.

[0051] The advantages and beneficial effects of the present invention will be partially given in the following description, partially become apparent from the following description, or be understood through the practice of the present invention:

[0052] In the embodiment of the present invention, product identifiers, original production data, and key metadata of corresponding production processes are obtained through each automobile production node. The original production data is stored in a distributed file system and a unique hash value is generated. The unique hash value and key metadata are packaged to generate a data block. Block index information is generated based on the unique hash value and product identifier. The corresponding data block and block index information are uploaded to the blockchain composed of all automobile production nodes through each automobile production node. In response to a traceability request from a target production node, the corresponding target hash value and target data block are indexed on the blockchain according to the target product identifier, and the target metadata is determined according to the target data block. The corresponding target production data is found in the distributed file system according to the target hash value, and a target traceability record is generated based on the target production data and target metadata, and then the target traceability record is returned to the target production node. In the embodiment of the present invention, the original production data is stored in a distributed file system, and the unique hash value of the original production data and key metadata are packaged and uploaded to the blockchain composed of all automobile production nodes, so that the production data of each production link can be accurately recorded and quickly traced, improving the efficiency of automobile production data traceability, and improving the accuracy, real-time performance, and security of automobile production data. Description of the Drawings

[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following introduces the drawings required to be used in the embodiments of the present invention. It should be understood that the drawings introduced below are only for conveniently and clearly presenting some embodiments of the technical solutions in the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative efforts.

[0054] Figure 1 It is a flowchart of the steps of a method for tracing automobile production data based on blockchain provided by an embodiment of the present invention;

[0055] Figure 2 It is a structural block diagram of a system for tracing automobile production data based on blockchain provided by an embodiment of the present invention;

[0056] Figure 3 It is a structural block diagram of a device for tracing automobile production data based on blockchain provided by an embodiment of the present invention. Detailed Embodiments

[0057] Embodiments of the present invention will be described in detail below. Examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the accompanying drawings are exemplary and are only used to explain the present invention and should not be construed as a limitation to the present invention. For the step numbers in the following embodiments, they are only set for the convenience of description and illustration, and no limitation is imposed on the order between the steps. The execution order of each step in the embodiments can be adaptively adjusted according to the understanding of those skilled in the art.

[0058] In the description of the present invention, the meaning of "a plurality of" is two or more. If the first and second are described, it is only for the purpose of distinguishing technical features and should not be construed as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features or implicitly indicating the sequence of the indicated technical features. In addition, unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art of this technology.

[0059] Referring to Figure 1 , an embodiment of the present invention provides a method for tracing automobile production data based on a blockchain, specifically including the following steps:

[0060] S101. Obtain the product identifier, original production data, and key metadata of the corresponding production process through each automobile production node, store the original production data in a distributed file system, and generate a unique hash value;

[0061] S102. Package the unique hash value and key metadata to generate a data block, generate block index information according to the unique hash value and product identifier, and upload the corresponding data block and block index information to the blockchain composed of all automobile production nodes through each automobile production node;

[0062] S103. In response to a tracing request from a target production node, index the corresponding target hash value and target data block on the blockchain according to the target product identifier, and determine the target metadata according to the target data block;

[0063] S104. Find the corresponding target production data in the distributed file system according to the target hash value, generate a target tracing record according to the target production data and target metadata, and then return the target tracing record to the target production node.

[0064] Specifically, a consortium blockchain network is constructed, which consists of relevant parties from various departments of the automobile manufacturing enterprise. Each participant serves as an automobile manufacturing node in the network and has its own private key for identity authentication and data signature. The automobile manufacturing nodes are connected through the network to jointly maintain the operation of the blockchain and data consistency. A primary node and a backup node are set up at each automobile manufacturing node. The primary node is responsible for data verification, packaging, and block generation, and the backup node can quickly take over the work when the primary node fails to ensure the stable operation of the blockchain network.

[0065] The blockchain mainly stores the hash values of data, key metadata, and index information to reduce the storage pressure on the chain and improve the operation efficiency of the blockchain. The original production data is stored in a distributed file system (such as IPFS), and an association is established with the information on the blockchain through the hash value. This not only ensures the security and immutability of the data but also realizes the efficient storage and management of the data. At the same time, to protect data privacy, sensitive data is encrypted and stored, and only authorized nodes can decrypt and access it.

[0066] A traceability query system is developed for users of each automobile manufacturing node, providing a friendly interaction interface. Users (such as enterprise managers and quality inspectors) can initiate a traceability request in the traceability query system by inputting key information such as vehicle identification number (VIN) and part number. The system queries the relevant block information on the blockchain according to the information input by the user and obtains detailed production data and traceability records through interaction with the distributed file system. The query results are presented to the user in a visual manner to facilitate the user's quick understanding of the production process and quality situation of the product.

[0067] In the embodiment of the present invention, the original production data is stored in the distributed file system, and the unique hash value and key metadata of the original production data are packaged and uploaded to the blockchain composed of all automobile manufacturing nodes, so that the production data of each production link can be accurately recorded and quickly traced, improving the efficiency of automobile production data traceability, and enhancing the accuracy, timeliness, and security of automobile production data.

[0068] Further as an optional implementation manner, the product identifier is the vehicle identification number or part number corresponding to the production process, the original production data includes at least one of raw material batch information, part production parameters, production equipment operation data, environmental monitoring results, and quality inspection results, and the key metadata includes production time, production location, production batch, and operator information.

[0069] Specifically, in all aspects of automobile production, such as raw material in-plant inspection, component processing, vehicle assembly, quality inspection, etc., sensors, Internet of Things devices, and data acquisition terminals are deployed to collect data during the production process in real time, including raw material batch information, component production parameters, production equipment operation data, operator information, environmental monitoring results, quality inspection results, etc., to generate original production data. At the same time, key information such as production time, production location, production batch, and operator information is extracted to form key metadata. In addition, the vehicle identification number of the currently produced vehicle or the component number of the component is obtained as the product identifier.

[0070] Further as an optional implementation manner, store the original production data in a distributed file system and generate a unique hash value, which specifically includes:

[0071] S1011. Split the original production data into multiple data shards according to a preset size, and determine the shard hash value of each data shard;

[0072] S1012. Determine the storage node corresponding to the data shard according to the shard hash value through the consistent hashing algorithm or the hash modulo method, and encrypt and store the data shard in the storage node;

[0073] S1013. Aggregate each shard hash value layer by layer as leaf nodes to obtain the unique hash value corresponding to the root node, or splice each shard hash value in the shard order to obtain a string, and perform hash calculation on the string to obtain the unique hash value;

[0074] S1014. Record the shard hash value, the unique hash value, and the storage location of the storage node in the distributed file system through the data server.

[0075] Specifically, the original production data is stored in a distributed file system (such as IPFS), and these production data cover detailed production process records, quality inspection reports, etc. When storing, a corresponding hash value will be generated for these original data, and this hash value is like the "ID card" of the data, which is used to establish an association on the blockchain. The specific process is as follows:

[0076] 1) Split the original production data into multiple data shards according to a fixed size (such as 128MB), so as to improve the parallel processing efficiency and adapt to the capacity of the distributed storage node.

[0077] 2) Determine the storage node through the consistent hashing algorithm or the hash modulo method:

[0078] (a) Consistent hashing algorithm: Map the data block hash value to a virtual ring structure, and select the nearest physical node for storage to ensure that only a small amount of data needs to be migrated during expansion / contraction;

[0079] (b) Hash modulo method: After calculating the hash value of the data block, take the modulo of the total number of nodes to determine the target node (applicable to static clusters).

[0080] 3) Generate a unique hash value by concatenating tree hashing or sequential hashing.

[0081] (a) Tree hashing: Each data shard independently calculates a hash value (such as SHA-256), which serves as a leaf node of the Merkle tree. Concatenate the hash values of adjacent shards and then hash them again to generate a parent node. Finally, aggregate to obtain the root node. For example:

[0082] A 1GB file is divided into 4 shards of 256MB each, and each shard generates hash values H1 - H4 respectively;

[0083] Middle layer: Hash(H1 + H2) → H12, Hash(H3 + H4) → H34;

[0084] Root node: Hash(H12 + H34) → unique hash value.

[0085] (b) Sequential hash concatenation: Append a sequence number (such as offset or shard ID) to each shard to ensure that the concatenation order is consistent with the original file. For example:

[0086] Shard 1: Hash(offset = 0, data) → H1;

[0087] Shard 2: Hash(offset = 256MB, data) → H2.

[0088] Concatenate all shard hashes into a string in order and then calculate the hash again to obtain the unique hash value.

[0089] 4) Bind the shard hash value, unique hash value, and the storage location of the storage node in the distributed file system, and store them in the data server or database of the distributed system.

[0090] Furthermore, as an optional implementation method, pack the unique hash value and key metadata to generate a data block, generate block index information according to the unique hash value and product identifier, and upload the corresponding data block and block index information to the blockchain composed of all automobile production nodes through each automobile production node. Specifically, it includes:

[0091] S1021. Generate the current block hash value according to the unique hash value, and obtain the previous block hash value from the blockchain through the automobile production node;

[0092] S1022. Pack the previous block hash value, current block hash value, and key metadata to obtain a data block;

[0093] S1023, using the product identifier as a key to associate with the current block hash value, obtaining a primary index key-value pair, and generating auxiliary index information according to the key metadata and the current block hash value, and then generating block index information according to the primary index key-value pair and the auxiliary index information;

[0094] S1024. Upload the data block and block index information to the blockchain through the automobile production node, and verify the validity of the data block through the consensus mechanism;

[0095] S1025. When the verification is passed, the data block is broadcast to all automobile production nodes through the blockchain, and the block index information is pushed to the index service.

[0096] Specifically, the blockchain is mainly responsible for storing the hash value, key metadata and index information of the data. The hash value is a fixed-length value calculated by a specific hash algorithm on the original production data. It is unique and irreversible. Key metadata includes important information such as production time, location, and production batch, while index information is used to quickly locate related data. By storing only this key information, the storage pressure on the chain is greatly reduced, which helps to improve the overall operation efficiency of the blockchain.

[0097] The unique hash value generated in the above steps is used as the hash value of the current block, and the hash value of the previous block in the existing chain data structure is obtained through the blockchain as the hash value of the previous block; the hash value of the previous block, the hash value of the current block and the key metadata are packaged to obtain a data block. It can be seen that each block contains the hash value of the previous block, forming an unalterable chain data structure; the product identifier (such as a unique ID or serial number) is used as the key to associate the corresponding current block hash value to obtain the primary index key-value pair, and the association between the time range, operation type and other dimensions and the block hash value is established according to the key metadata to generate auxiliary index information, and the block index information is generated according to the primary index key-value pair and the auxiliary index information; after verifying the validity of the block through a consensus algorithm (such as PoW / PoS), the block is broadcast to all automobile production nodes, and at the same time, the block index information is pushed to the index service through the publish-subscribe mode to ensure the consistency of the index with the on-chain data.

[0098] As an optional implementation, in response to the traceability request of the target production node, the corresponding target hash value and target data block are obtained by indexing on the blockchain according to the target product identifier, and the target metadata is determined according to the target data block, which specifically includes:

[0099] S1031. When the target production node initiates a traceability request, the target production node is authenticated by using the key of the target production node;

[0100] S1032. When the identity authentication is passed, query in the index service of the blockchain according to the target product identifier provided by the target production node to obtain the target hash value, and then index the target data block according to the target hash value;

[0101] S1033. Unpackage the target data block to obtain the target metadata.

[0102] Specifically, users such as production enterprise managers and quality inspectors, if they need to understand product-related information, can initiate a traceability request through the traceability query system, that is, enter key information such as vehicle identification number (VIN) and parts number in the traceability query system of the vehicle production node to which the user belongs to initiate traceability. These information are the unique identifiers of the product and can accurately locate the product to be queried.

[0103] After the traceability query system receives the key information input by the user, it will perform a query operation on the blockchain. The system uses the index information stored on the blockchain based on the identification information provided by the user to quickly locate the relevant block. Then, obtain the hash value of the corresponding data and the key metadata from this block. These information are important clues for further obtaining detailed production data.

[0104] Further as an optional implementation method, by searching in the distributed file system according to the target hash value to obtain the corresponding target production data, and generating a target traceability record according to the target production data and the target metadata, it specifically includes:

[0105] S1041. Search in the data server of the distributed file system according to the target hash value to obtain multiple target shard hash values and the corresponding target storage locations;

[0106] S1042. Obtain the corresponding target data shard at the target storage location according to the target shard hash value, and perform data aggregation on the target data shard to obtain the target production data;

[0107] S1043. Integrate the target production data and the target metadata to obtain the target traceability record.

[0108] Specifically, the traceability query system interacts with the distributed file system (such as IPFS) by virtue of the hash value obtained from the blockchain. The distributed file system will search for the corresponding original production data among its many nodes according to this hash value. Due to the uniqueness of the hash value, it can ensure that the required detailed production data and traceability records are found accurately.

[0109] Once the required detailed data is found in the distributed file system, the system integrates this data with the key metadata queried on the blockchain and feeds it back to the user in a clear and understandable manner. The user can then view the detailed production data and traceability records of the product through the traceability query system, thereby achieving information traceability throughout the product's life cycle.

[0110] Further as an optional implementation, the method for tracing automotive production data further includes the following steps:

[0111] S201. Determine the business data rules for each production link and write the business data rules into the smart contract of the blockchain;

[0112] S202. When the target production data does not conform to the business data rules of the corresponding production link, determine the responsible party according to the target metadata, push the responsible party to the target production node, and notify the responsible party.

[0113] Specifically, pre-write a smart contract to define the business rules and traceability logic in the production process. For example, in the quality inspection link, when the inspection result does not meet the preset standard, the smart contract automatically starts the problem traceability process, notifies the relevant responsible parties, and records the detailed information of the problem. The smart contract is deployed on the blockchain, ensuring the automatic execution and immutability of the rules through code.

[0114] The above describes the method steps of the embodiments of the present invention. It can be understood that in the embodiments of the present invention, the original production data is stored in the distributed file system, and the unique hash value of the original production data and the key metadata are packaged and uploaded to the blockchain composed of all automotive production nodes, enabling the production data of each production link to be accurately recorded and quickly traced, improving the efficiency of automotive production data traceability, and enhancing the accuracy, real-time performance, and security of automotive production data.

[0115] Compared with the prior art, the embodiments of the present invention also have the following advantages:

[0116] 1) Higher data credibility and security

[0117] Immutability: The blockchain uses distributed ledger technology. Once data is verified by multiple nodes and recorded on the blockchain, tampering would require controlling the computing power of most nodes in the network, which is extremely costly and almost impossible to achieve, ensuring the authenticity and integrity of production data.

[0118] Encryption security: Encryption technology is used for data encryption during transmission and storage. Only through the authorized private key can data be accessed and operated, effectively protecting the privacy and security of production data, preventing data leakage and illegal use.

[0119] 2) Stronger traceability efficiency and accuracy

[0120] Quick positioning: Due to the chain data structure and distributed storage characteristics of the blockchain, every link and piece of data in the production process can be accurately recorded and quickly traced. Users can quickly locate the specific link and time point where the problem occurs by simply querying the relevant information on the blockchain.

[0121] Full-process traceability: It can achieve full-process traceability from raw material procurement, component production, assembly to finished product delivery. The data of each link is closely connected to form a complete traceability chain.

[0122] 3) Better collaboration and transparency

[0123] Multi-party sharing: The distributed ledger of the blockchain can be shared and synchronized by all participating parties on the chain. All parties can view and obtain the data in the production process in real time, improving the transparency of information and the collaboration efficiency.

[0124] Consensus mechanism guarantee: Through the consensus mechanism, it ensures that all parties recognize the data consistency, avoiding traceability disputes caused by information asymmetry and interest conflicts.

[0125] Refer to Figure 2 , an embodiment of the present invention provides a blockchain-based automotive production data traceability system, including:

[0126] A data storage module, configured to obtain the product identifier, original production data, and key metadata of the corresponding production process through each automotive production node, store the original production data in a distributed file system, and generate a unique hash value;

[0127] A data on-chain module, configured to package the unique hash value and key metadata to generate a data block, generate block index information according to the unique hash value and product identifier, and upload the corresponding data block and block index information to the blockchain composed of all automotive production nodes through each automotive production node;

[0128] A data index module, configured to respond to a traceability request of a target production node, index the corresponding target hash value and target data block on the blockchain according to the target product identifier, and determine the target metadata according to the target data block;

[0129] A traceability record generation module, configured to find the corresponding target production data in the distributed file system according to the target hash value, generate a target traceability record according to the target production data and target metadata, and then return the target traceability record to the target production node.

[0130] The content in the above method embodiments is applicable to the system embodiments of the present invention. The functions specifically implemented by the system embodiments of the present invention are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those of the above method embodiments.

[0131] Referring to Figure 3 , an embodiment of the present invention provides a blockchain-based vehicle production data traceability device, including:

[0132] At least one processor;

[0133] At least one memory for storing at least one program;

[0134] When the above at least one program is executed by the above at least one processor, the above at least one processor implements the above blockchain-based vehicle production data traceability method.

[0135] The content in the above method embodiments is applicable to the device embodiments of the present invention. The functions specifically implemented by the device embodiments of the present invention are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those of the above method embodiments.

[0136] An embodiment of the present invention also provides a computer-readable storage medium, in which a processor-executable program is stored. The processor-executable program, when executed by a processor, is used to execute the above blockchain-based vehicle production data traceability method.

[0137] A computer-readable storage medium according to an embodiment of the present invention can execute a blockchain-based vehicle production data traceability method provided by an embodiment of the method of the present invention, can execute any combination of implementation steps of the method embodiment, and has the corresponding functions and beneficial effects of the method.

[0138] An embodiment of the present invention also discloses a computer program product or a computer program. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device can read the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes Figure 1 the method shown.

[0139] In some alternative embodiments, the functions / operations recited in the block diagrams may not occur in the order presented in the operational illustrations. For example, depending on the functions / operations involved, two blocks shown in succession may in fact be executed substantially simultaneously or the blocks may sometimes be executed in reverse order. Additionally, the embodiments presented and described in the flowcharts of the present invention are provided by way of example in order to provide a more comprehensive understanding of the technology. The disclosed methods are not limited to the operations and logical flows presented herein. Alternative embodiments are contemplated in which the order of various operations is altered and in which sub-operations described as part of a larger operation are performed independently.

[0140] Furthermore, although the present invention has been described in the context of functional modules, it should be understood that, unless otherwise stated to the contrary, one or more of the above-described functions and / or features may be integrated in a single physical device and / or software module, or one or more functions and / or features may be implemented in separate physical devices or software modules. It should also be understood that a detailed discussion of the actual implementation of each module is not necessary for an understanding of the present invention. Rather, given the attributes, functions, and internal relationships of the various functional modules in the devices disclosed herein, the actual implementation of the modules will be understood within the ordinary skill of an engineer. Accordingly, those of ordinary skill in the art will be able to implement the present invention as set forth in the claims without undue experimentation. It should also be understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.

[0141] If the above functions are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the above methods in various embodiments of the present invention. The foregoing storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc.

[0142] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a definitional sequence of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, a system including a processor, or other systems that can fetch and execute instructions from the instruction execution system, apparatus, or device. As used in this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.

[0143] More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection part (electronic device) having one or more wirings, a portable computer diskette (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium can even be paper or other suitable media on which the above program can be printed, because the above program can be obtained electronically, for example, by optically scanning the paper or other media, then editing, interpreting, or otherwise processing it as appropriate, and then storing it in a computer memory.

[0144] It should be understood that various parts of the present invention can be implemented by hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, any one or a combination of the following techniques well known in the art can be used: discrete logic circuits having logic gate circuits for implementing logical functions on data signals, application specific integrated circuits having appropriate combinational logic gate circuits, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.

[0145] In the above description of this specification, the descriptions referring to the terms "one embodiment / example", "another embodiment / example", or "certain embodiments / examples", etc. mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0146] Although embodiments of the present invention have been shown and described, those of ordinary skill in the art will understand that various changes, modifications, substitutions and variations can be made to these embodiments without departing from the principles and spirit of the present invention. The scope of the present invention is defined by the claims and their equivalents.

[0147] The above has specifically described the preferred embodiments of the present invention. However, the present invention is not limited to the above embodiments. Those skilled in the art can make various equivalent deformations or substitutions without departing from the spirit of the present invention. These equivalent deformations or substitutions are all included within the scope defined by the claims of this application.

Claims

1. A method for tracing automobile production data based on blockchain, characterized in that, Including the following steps: Obtain the product identifier, original production data, and key metadata of the corresponding production process through each automobile production node, store the original production data in a distributed file system, and generate a unique hash value; Package the unique hash value and the key metadata to generate a data block, generate block index information according to the unique hash value and the product identifier, and upload the corresponding data block and block index information to the blockchain composed of all the automobile production nodes through each automobile production node; In response to the traceability request of the target production node, index the corresponding target hash value and target data block on the blockchain according to the target product identifier, and determine the target metadata according to the target data block; Find the corresponding target production data in the distributed file system according to the target hash value, generate a target traceability record according to the target production data and the target metadata, and then return the target traceability record to the target production node.

2. The method for tracing automobile production data based on blockchain according to claim 1, wherein, The product identifier is the vehicle identification code or part number corresponding to the production process. The original production data includes at least one of raw material batch information, part production parameters, production equipment operation data, environmental monitoring results, and quality inspection results. The key metadata includes production time, production location, production batch, and operator information.

3. A method for tracing automobile production data based on blockchain according to claim 1, characterized in that, The storing the original production data in the distributed file system and generating a unique hash value specifically includes: Slice the original production data into multiple data slices according to a preset size, and determine the slice hash value of each data slice; Determine the storage node corresponding to the data slice according to the slice hash value through the consistent hashing algorithm or the hash modulo method, and encrypt and store the data slice to the storage node; Aggregate each slice hash value layer by layer as leaf nodes to obtain the unique hash value corresponding to the root node, or splice each slice hash value in the slice order to obtain a string, and perform a hash calculation on the string to obtain the unique hash value; Record the slice hash value, the unique hash value, and the storage location of the storage node in the distributed file system through a data server.

4. A method for tracing automobile production data based on blockchain according to claim 1, characterized in that, The packaging the unique hash value and the key metadata to generate a data block, generating block index information according to the unique hash value and the product identifier, and uploading the corresponding data block and block index information to the blockchain composed of all the automobile production nodes through each automobile production node specifically includes: Generate the current block hash value according to the unique hash value, and obtain the previous block hash value from the blockchain through the automobile production node; Package the previous block hash value, the current block hash value, and the key metadata to obtain the data block; Associate the product identifier as the key with the current block hash value to obtain the main index key-value pair, generate auxiliary index information based on the critical metadata and the current block hash value, and then generate the block index information based on the main index key-value pair and the auxiliary index information; Upload the data block and the block index information to the blockchain through the automotive production node, and verify the validity of the data block through the consensus mechanism; When the verification passes, broadcast the data block to all the automotive production nodes through the blockchain, and push the block index information to the index service.

5. The method for tracing automobile production data based on blockchain according to claim 1, wherein In response to the traceability request of the target production node, index the corresponding target hash value and target data block on the blockchain according to the target product identifier, and determine the target metadata according to the target data block. Specifically, it includes: When the target production node initiates a traceability request, authenticate the target production node through the key of the target production node; When the identity authentication passes, query in the index service of the blockchain according to the target product identifier provided by the target production node to obtain the target hash value, and then index the target data block according to the target hash value; Unpackage the target data block to obtain the target metadata.

6. The method for tracing automobile production data based on blockchain according to claim 1, wherein By searching in the distributed file system according to the target hash value to obtain the corresponding target production data, and generating a target traceability record according to the target production data and the target metadata. Specifically, it includes: Search in the data server of the distributed file system according to the target hash value to obtain multiple target shard hash values and corresponding target storage locations; Obtain the corresponding target data shards at the target storage locations according to the target shard hash values, and perform data aggregation on the target data shards to obtain the target production data; Integrate the target production data and the target metadata to obtain the target traceability record.

7. A method for tracing automobile production data based on blockchain according to any one of claims 1 to 6, characterized in that, The automotive production data traceability method further includes the following steps: Determine the business data rules for each production link, and write the business data rules into the smart contract of the blockchain; When the target production data does not conform to the business data rules of the corresponding production link, determine the responsible party according to the target metadata, push the responsible party to the target production node, and notify the responsible party.

8. A blockchain-based vehicle production data traceability system, characterized in that, It includes: A data storage module, which is used to obtain the product identifier, original production data, and critical metadata of the corresponding production process through each automotive production node, store the original production data in the distributed file system, and generate a unique hash value; A data on-chain module, which is used to package the unique hash value and the critical metadata to generate a data block, generate block index information according to the unique hash value and the product identifier, and upload the corresponding data block and block index information to the blockchain composed of all the automotive production nodes through each automotive production node; A data indexing module, configured to, in response to a traceability request from a target production node, index a corresponding target hash value and a target data block on the blockchain according to a target product identifier, and determine target metadata based on the target data block; A traceability record generation module, configured to find corresponding target production data in the distributed file system according to the target hash value, generate a target traceability record based on the target production data and the target metadata, and then return the target traceability record to the target production node.

9. An automobile production data traceability device based on blockchain, characterized in that, Comprising: At least one processor; At least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements a blockchain-based method for tracing automotive production data according to any one of claims 1 to 7.

10. A computer-readable storage medium storing a program executable by a processor, characterized in that, The program executable by the processor, when executed by the processor, is used to execute a blockchain-based method for tracing automotive production data according to any one of claims 1 to 7.

Citation Information

Cited By

  • Engineering detection data tracing method based on block chain

    CN121258326A

  • Automobile part full life cycle quality tracing management system based on block chain

    CN121810105A

  • A blockchain-based automobile accessory whole life cycle quality traceability management system

    CN121810105B