Product identification tracking management method and system based on two-dimensional code, and storage medium
By updating the QR code information during the production process and using blockchain storage, the problem of static QR codes being unable to be dynamically updated is solved, real-time recording and responsibility traceability of product information are achieved, and the efficiency and accuracy of production management are improved.
Patent Information
- Application Number
- CN202510733501.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-04
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2045-06-04
Smart Images

Figure CN120707161A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a product identification, tracking and management method, system and storage medium based on QR codes. Background Art
[0002] Currently, in the manufacturing industry, product identification and tracking are critical links in ensuring product quality and production efficiency. Traditional product identification and tracking management methods primarily utilize barcode or static QR code technology. This means that once a product enters the production process, information updates at each processing node must be manually entered into the system, and the information of product processing users is also recorded manually or in simple spreadsheets. On the one hand, static QR codes store limited information and cannot be dynamically updated. This results in the inability to record and reflect the product's latest status and processing information in real time as the production process progresses. On the other hand, the incomplete operation records of processing users lack an effective linkage mechanism, making it difficult to quickly and accurately trace back to the specific processing link and responsible personnel when product quality issues or anomalies arise. Summary of the Invention
[0003] The present invention provides a product identification and tracking management method, system and storage medium based on QR codes, aiming to solve the problem of being unable to dynamically update QR code information and to improve the efficiency and accuracy of responsibility tracing.
[0004] In a first aspect, the present invention provides a product identification, tracking and management method based on a QR code, comprising: Generate a QR code based on product information of the product to be processed, and package the QR code on the surface of a carrier corresponding to the product to be processed using a QR code device; The carrier is transported to a processing device for product processing according to a preset production process node, and the initial information of the QR code is updated based on a first processing result preset at the production process node and a second processing result of the processing device to obtain first target information; The first target information is updated based on a first processing user preset in the production process node and a second processing user who operates the processing equipment to process the product, to obtain second target information; After the processing of the carrier is completed, a product tracking management tree for the carrier is generated based on the second target information, and the product tracking management tree is encrypted and uploaded to the blockchain platform; If the product to be processed has an abnormality, the QR code is scanned by the QR code device to track the corresponding processing user through a product tracking management tree based on the QR code.
[0005] According to the QR code-based product identification, tracking and management method provided by the present invention, the product information includes product coding information and production information; The generating of the product tracking management tree of the carrier based on the second target information includes: Creating a root node based on the product code information, and creating multiple child nodes of the root node; the multiple child nodes include a production information node, a first processing node, a second processing node, a processing comparison node, an equipment information node, a processing route node, a first user node, a second user node, and a user association node; Determining a processing comparison result based on the first processing result and the second processing result, and determining a user comparison result based on the first processing user and the second processing user; Establishing a processing node connection relationship between the first processing node, the second processing node, and the processing comparison node based on the processing comparison result, and establishing a user node connection relationship between the first user node, the second user node, and the user association node based on the user comparison result; establishing a processing route node connection relationship between the first processing node, the second processing node, and the processing route node based on the processing route of the carrier; A product tracking management tree for the carrier is generated based on the various sub-nodes and the connection relationship between the processing nodes, the connection relationship between the user nodes, and the connection relationship between the processing route nodes.
[0006] According to the QR code-based product identification, tracking and management method provided by the present invention, establishing a processing node connection relationship between the first processing node, the second processing node and the processing comparison node based on the processing comparison result includes: Creating a processing result node; the processing result node is used to store the processing comparison result; If the processing comparison result shows that the first processing result and the second processing result are consistent, a bidirectional node connection relationship is established with the processing result node as a child node of the first processing node, the second processing node, and the processing comparison node, and a bidirectional node connection relationship is established between the first processing node and the second processing node and the processing comparison node respectively; or, If the processing comparison result is that the first processing result and the second processing result are inconsistent, a processing difference node is created, a bidirectional node connection relationship is established with the processing difference node as a child node of the first processing node and the second processing node, and a unidirectional node connection relationship is established in which the first processing node and the second processing node point to the processing comparison node respectively.
[0007] According to the QR code-based product identification, tracking and management method provided by the present invention, establishing a user node connection relationship between the first user node, the second user node and the user association node based on the user comparison result includes: Creating a user result node; the user result node is used to store the user comparison result; If the user comparison result shows that the first processed user and the second processed user are consistent, a bidirectional node connection relationship is established with the user result node as a child node of the first user node, the second user node, and the user association node, and a bidirectional node connection relationship is established between the first user node and the second user node and the user association node respectively; or If the user comparison result is that the first processing result and the second processing result are inconsistent, a user difference node is created, a bidirectional node connection relationship is established with the user difference node as a child node of the first user node and the second user node, and a unidirectional node connection relationship is established with the first user node and the second user node pointing to the user association node respectively.
[0008] According to the QR code-based product identification, tracking and management method provided by the present invention, establishing a processing route node connection relationship between the first processing node, the second processing node and the processing route node based on the processing route of the carrier includes: The processing route is segmented based on the processing method, processing area and processing sequence of the processing route, and a sub-route node is created for each route segment; each sub-route node includes a route number, a starting position, an ending position, an estimated time and an actual time; Establishing a bidirectional node connection relationship with each sub-route node as a sub-node of the processing route node; For any target sub-route node, if the sub-route node is associated with the first processing result and / or the second processing result, a bidirectional node connection relationship is established with the sub-route node as a child node of the first processing node and / or the second processing node.
[0009] According to the QR code-based product identification and tracking management method provided by the present invention, the specific process of encrypting the product tracking management tree includes: Splitting the product code information of the product to be processed according to a preset length to obtain grouped number information, and encoding each grouped number information based on a random base code to obtain a converted code of the product code information; Performing a hash operation on the product code information to obtain a hash value, and obtaining a hash string of corresponding digits in the hash value according to the length of the product code information; Determine the number of nodes connected to each target node in the product tracking management tree, and obtain a first encryption key at a corresponding position in the converted code according to the number of nodes, and obtain a second encryption key at a corresponding position in the hash string; The target node is encrypted based on the first encryption key and the second encryption key to obtain an encrypted tracking management tree.
[0010] According to the QR code-based product identification and tracking management method provided by the present invention, encrypting the target node based on the first encryption key and the second encryption key to obtain an encrypted tracking management tree includes: converting the second encryption key into a corresponding key number based on a character encoding table, and performing binary conversion on the first encryption key and the key number to obtain a first converted value and a second converted value; After performing a phase shift operation on each bit of the first conversion value and the corresponding bit of the second conversion value, the phase shift operation is performed and the resultant bits are superimposed with the second conversion value to obtain a mixed key; The mixed key is used as a chaotic initial value, and after a preset number of chaotic iterations, the results of each chaotic iteration are combined to obtain an expanded mixed key; The expanded mixed key is associated with the target node to obtain an encrypted tracking management tree.
[0011] In a second aspect, the present invention further provides a QR code-based product identification and tracking management system, which is applied to the QR code-based product identification and tracking management method according to any one of the first aspects. The QR code-based product identification and tracking management system includes: A QR code generation module, configured to generate a QR code based on the product information of the product to be processed, and package the QR code onto the surface of a carrier corresponding to the product to be processed based on a QR code device; A first information updating module is configured to transport the carrier to a processing device for product processing according to a preset production process node, and update the initial information of the QR code based on a first processing result preset at the production process node and a second processing result of the processing device to obtain first target information; A second information updating module is configured to update the first target information based on a first processing user preset in the production process node and a second processing user operating the processing equipment to process the product, thereby obtaining second target information; A product tracking management tree generation module is configured to generate a product tracking management tree for the carrier based on the second target information after the carrier is processed, and to encrypt the product tracking management tree and upload it to the blockchain platform; The user tracking module is used to scan the QR code based on the QR code device if there is an abnormality in the product to be processed, and track the corresponding processing user based on the product tracking management tree based on the QR code.
[0012] The present invention also provides an electronic device, comprising: a memory for storing a computer software program; a processor for reading and executing the computer software program, thereby implementing the product identification, tracking and management method based on the QR code as described above.
[0013] The present invention also provides a non-transitory computer-readable storage medium, in which a computer software program is stored. When the computer software program is executed by a processor, the product identification, tracking and management method based on the QR code as described above is implemented.
[0014] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements the above-mentioned product identification, tracking and management method based on the QR code.
[0015] The QR code-based product identification, tracking and management method provided by the embodiment of the present invention, on the one hand, solves the problem that traditional static QR code information cannot dynamically update QR code information by updating the initial information of the QR code at each production process node based on the preset first processing result and the actual second processing result, as well as the preset first processing user at the production process node and the second processing user who operates the processing equipment to process the product. On the other hand, by associating the preset first processing user and the actual second processing user information with the product information and updating them into the QR code, a complete personnel operation record is established. When an abnormality occurs in the product, the corresponding processing user information can be directly obtained by scanning the QR code, and the specific processing link and responsible personnel can be quickly and accurately traced back, thereby improving the efficiency and accuracy of responsibility tracing. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 Schematic diagram of the process of the product identification, tracking and management method based on QR code provided by the present invention; Figure 2 This is a schematic diagram of the structure of the product identification and tracking management system based on QR codes provided by the present invention; Figure 3 A schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0017] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making any creative efforts shall fall within the scope of protection of the present invention.
[0018] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of the technical features indicated. Therefore, a feature specified as "first" or "second" may explicitly or implicitly include one or more of the specified features. In the description of the present invention, "plurality" means two or more, unless otherwise specifically defined.
[0019] In the description of the present invention, the term "for example" is used to mean "used as an example, illustration or illustration". Any embodiment of the present invention described as "for example" is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is given to enable any person skilled in the art to implement and use the present invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present invention can be implemented without using these specific details. In other examples, well-known structures and processes are not elaborated in detail to avoid obscuring the description of the present invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed herein.
[0020] Optional, see Figure 1 , Figure 1 : This is a flowchart of the QR code-based product identification, tracking and management method provided by the present invention. In the embodiment of the present invention, the execution subject of the QR code-based product identification, tracking and management method is the product tracking management system. Therefore, the QR code-based product identification, tracking and management method includes: Step 10: Generate a QR code based on the product information of the product to be processed, and package the QR code on the surface of a carrier corresponding to the product to be processed using a QR code device.
[0021] Optionally, product information typically includes basic data such as product model, specifications, raw material batch, and production date. The product tracking management system encodes this information and generates a QR code that meets specific standards. The product tracking management system then controls a QR code device, such as an industrial QR code printer or inkjet printer, to attach the generated QR code to the surface of the carrier corresponding to the product to be processed.
[0022] In one embodiment, for example, the product to be processed is a smartphone motherboard of a certain model. Its product information includes the model number "SMB-001," dimensions "10cm x 8cm," raw material batch number "RB-202401," and production date "2024-01-01." The product tracking management system encodes this information and generates a QR code. The product tracking management system then controls an industrial-grade QR code printer in the workshop to print the QR code on the surface of a dedicated tray carrying the smartphone motherboard, thereby completing the carrier identification process.
[0023] In step 20, the carrier is transported to the processing equipment for product processing according to the preset production process node, and the initial information of the QR code is updated based on the first processing result preset in the production process node and the second processing result of the processing equipment to obtain the first target information.
[0024] Furthermore, the product tracking management system controls the conveying equipment to sequentially transport the carriers to various processing equipment according to pre-set production process nodes. At each production process node, the product tracking management system compares and analyzes the preset first processing results (such as processing process standards and quality requirements) with the second processing results (such as actual processing parameters and test data) actually generated by the processing equipment. Furthermore, based on the comparison results, the product tracking management system updates the initial information contained in the QR code, adding or modifying relevant processing data to obtain the first target information. The updated information accurately reflects the actual status of the product at that processing stage.
[0025] Continuing with the above example, in the smartphone motherboard production process, there is a production process node for soldering chips. The preset first processing result is that the soldering temperature must be maintained at 250°C ± 5°C, and the soldering time must be 3-5 seconds. After the carrier is transported to the soldering equipment and the soldering is completed, the second processing result recorded by the equipment shows a soldering temperature of 252°C and a soldering time of 4 seconds. These two results are compared to confirm that they meet the standards. The actual processing data, such as soldering temperature and soldering time, is added to the initial information of the QR code to update the first target information, such as "Model: SMB-001, Specifications: 10cm × 8cm, Raw Material Batch: RB-202401, Production Date: 2024-01-01, Soldering Temperature: 252°C, Soldering Time: 4 seconds."
[0026] Step 30 : Based on the first processing user preset in the production process node and the second processing user who operates the processing equipment to process the product, the first target information is updated to obtain the second target information.
[0027] Furthermore, the product tracking management system obtains information about the primary processing user (e.g., a designated operator or team) preset at each production process node, as well as the secondary processing user who actually operates the processing equipment to process the product. Furthermore, the product tracking management system integrates these two types of user information with the primary target information and further updates the information contained in the QR code to obtain the secondary target information. Therefore, the secondary target information not only contains the product processing data but also links it to the specific processing operator, achieving a one-to-one correspondence between the product processing process and the operator.
[0028] Continuing with the above example, at the production process node for soldering chips to smartphone motherboards, the preset first processing user is "Welding Team A," and the second processing user actually operating the welding equipment is operator "Zhang San." The product tracking management system adds the user information of "Welding Team A" and "Zhang San" to the first target information, updating the second target information to "Model: SMB-001, Specifications: 10 cm × 8 cm, Raw Material Batch: RB-202401, Production Date: 2024-01-01, Soldering Temperature: 252°C, Soldering Time: 4 seconds, Processing Team: Welding Team A, Operator: Zhang San."
[0029] Step 40: After the carrier is processed, a product tracking management tree for the carrier is generated based on the second target information, and the product tracking management tree is encrypted and uploaded to the blockchain platform.
[0030] Furthermore, when the product on the carrier completes all processing steps, the product tracking management system constructs a product tracking management tree for the carrier based on the second target information in the QR code. The product tracking management tree organizes and links all information from the entire production process, from raw material input to finished product output, in a tree-like structure. This includes information on each processing step and the corresponding processing user information, as described in steps 401 to 405.
[0031] Furthermore, the product tracking management system uses an encryption algorithm to encrypt the product tracking management tree to ensure the security and integrity of the information. Finally, the encrypted product tracking management tree is uploaded to the blockchain platform to achieve distributed storage and non-tamperability of product information, as shown in steps 406 to 409.
[0032] Continuing with the above example, for a fully processed smartphone motherboard carrier, the product tracking management system constructs a product tracking management tree based on the secondary target information in its QR code. The tree's root node contains basic product information, such as model and specifications; its child nodes contain information about each processing step (welding, assembly, testing, etc.), and each processing step node is associated with the corresponding processing user information. The system encrypts this product tracking management tree using the AES encryption algorithm and then uploads the encrypted information to a blockchain platform, such as Ethereum, for on-chain storage of the product information.
[0033] Step 50: If there is an abnormality in the product to be processed, the QR code is scanned by the QR code device, and the corresponding processing user is tracked using the product tracking management tree based on the QR code.
[0034] Furthermore, if an abnormality occurs during subsequent use, sales, or quality inspection of a product to be processed, staff members use a QR code scanner to scan the QR code on the surface of the product carrier. After reading the QR code, the product tracking management system retrieves the corresponding product tracking management tree from the blockchain platform. By parsing and querying the product tracking management tree, it locates the various processing steps related to the abnormal product and the corresponding processing user information, thereby identifying the root cause of the problem and clarifying responsibility. Continuing with the above example, if a smartphone sold on the market experiences a motherboard failure, after-sales staff use a QR code scanner to scan the QR code on the motherboard carrier of the phone. After reading the QR code, the product tracking management system downloads the corresponding product tracking management tree from the blockchain platform. After parsing, it discovers that the motherboard was welded by operator "Zhang San" and that some data from the inspection process contains marginal values. With this information, manufacturers can further investigate whether there are any problems with the welding process or inspection process and clarify the responsible party.
[0035] The embodiment of the present invention solves the problem that traditional static QR code information cannot dynamically update QR code information by updating the initial information of the QR code at each production process node based on the preset first processing result and the actual second processing result, as well as the preset first processing user at the production process node and the second processing user who operates the processing equipment to process the product. On the one hand, by associating the preset first processing user and the actual second processing user information with the product information and updating them into the QR code, a complete personnel operation record is established. When a product abnormality occurs, the corresponding processing user information can be directly obtained by scanning the QR code, and the specific processing link and responsible personnel can be quickly and accurately traced back, thereby improving the efficiency and accuracy of responsibility tracing.
[0036] In one embodiment, steps 401 to 405 are described as follows: Step 401: Create a root node based on product code information, and create multiple child nodes of the root node. The multiple child nodes include a production information node, a first processing node, a second processing node, a processing comparison node, a device information node, a processing route node, a first user node, a second user node, and a user association node.
[0037] Optionally, the product tracking management system extracts product coding information from the second target information, such as key data with unique identification such as product model and specifications, to create the root node of the product tracking management tree as the starting point of the entire tree structure. Furthermore, the product tracking management system creates multiple child nodes according to pre-set classification rules. Among them, the production information node is used to store basic production data of the product, such as raw material batch and production date; the first processing node and the second processing node correspond to information of different processing stages; the processing comparison node is used to record comparison data of processing results; the equipment information node stores parameters related to processing equipment; the processing route node marks the flow path of the carrier between various processing equipment; the first user node and the second user node respectively store the preset processing user and actual processing user information; and the user association node is used to establish a correspondence between the two types of user information.
[0038] Continuing with the example of the smartphone motherboard "SMB-001," the product tracking management system extracts the model number "SMB-001" and the dimensions "10cm x 8cm" as the root node information. Next, child nodes are created: the production information node stores the raw material batch number "RB-202401" and the production date "2024-01-01"; the first processing node (welding) stores the soldering temperature and time standards; the second processing node (assembly) stores the assembly process standards; and the processing comparison node, equipment information node, processing route node, first user node, second user node, and user association node are created and data entry space is reserved.
[0039] Step 402 : determining a processing comparison result based on the first processing result and the second processing result, and determining a user comparison result based on the first processing user and the second processing user.
[0040] Furthermore, the product tracking and management system compares the first processing result (preset processing standard) with the second processing result (actual processing data) parameter by parameter to determine whether the actual parameters are within the tolerance range of the standard parameters, and determines the processing comparison results, that is, whether the processing is qualified and the degree of deviation.
[0041] Furthermore, the product tracking management system matches and analyzes the information of the first processing user (preset operator or team) and the second processing user (actual operator) to determine whether the two are consistent and what kind of relationship exists, and obtains the user comparison result.
[0042] Continuing with the smartphone motherboard soldering process, the preset soldering temperature of 250°C ± 5°C (first processing result) was compared with the actual soldering temperature of 252°C (second processing result), and it was determined that the actual temperature was within the standard range, resulting in the processing comparison result being "the soldering temperature was qualified." By comparing the preset processing user "welding team A" (first processing user) and the actual processing user "Zhang San" (second processing user), the user comparison result was determined to be "Zhang San belongs to welding team A."
[0043] Step 403 : establishing a processing node connection relationship among the first processing node, the second processing node, and the processing comparison node based on the processing comparison result, and establishing a user node connection relationship among the first user node, the second user node, and the user association node based on the user comparison result.
[0044] Furthermore, the product tracking management system establishes a processing node connection relationship between the first processing node, the second processing node, and the processing comparison node based on the processing comparison results, as specifically described in steps 4031 to 4033. Furthermore, the product tracking management system establishes a user node connection relationship between the first user node, the second user node, and the user association node based on the user comparison results, as specifically described in steps 4034 to 4036.
[0045] Step 404 : establishing a processing route node connection relationship between the first processing node, the second processing node, and the processing route node based on the processing route of the vehicle.
[0046] Furthermore, the product tracking management system establishes a processing route node connection relationship between the first processing node, the second processing node, and the processing route node according to the processing route of the carrier, as specifically described in steps 4041 to 4043 .
[0047] Step 405 : Generate a product tracking management tree for the carrier based on the connection relationship between each child node and the processing node, the connection relationship between the user node, and the connection relationship between the processing route node.
[0048] Furthermore, the product tracking management system integrates the created sub-nodes with the established processing node connection relationships, user node connection relationships, and established processing route node connection relationships. Through the tree structure construction algorithm, these nodes and connection relationships are combined into a product tracking management tree. Each node and connection in the tree carries key information in the product production process, which is convenient for subsequent query and traceability.
[0049] Continuing with the above example, the root node (such as the SMB-001 model), its child nodes (production information, processing nodes, user nodes, etc.), and the various connections established above are integrated to create a product tracking management tree with the root node at the top and its child nodes organized in an orderly fashion through different connections. For example, starting from the root node, you can use the production information nodes to view raw material batches, trace the welding to assembly process along the processing route connections, and identify the operators at each stage along the user connections.
[0050] The embodiment of the present invention constructs a product tracking management tree, so that the problem link can be quickly located by traversing the tree structure. For example, starting from the root node, according to the connection relationship of the processing route and the connection relationship of the processing node, it can be traced back to the specific processing equipment, operator and processing parameters, thereby improving the efficiency and accuracy of responsibility tracing.
[0051] In one embodiment, steps 4031 to 4033 are described as follows: Step 4031: Create a processing result node. The processing result node is used to store the processing comparison result.
[0052] Optionally, when establishing connections between processing nodes, the product tracking management system creates a processing result node. This node serves as an independent data storage unit for storing the processing comparison results obtained in step 402, including key information such as whether the processing is qualified and the deviation between actual and standard parameters. This node centrally manages processing comparison results, facilitates the subsequent establishment of node connections based on these results, and provides a clearer and more organized information structure related to processing results within the product tracking management tree.
[0053] Continuing with the soldering process of the smartphone motherboard, the product tracking management system obtains the soldering temperature processing comparison result "the soldering temperature is qualified, the actual temperature is 252°C, within the standard range of 250°C±5°C", creates a processing result node, and stores the above processing comparison result in its entirety in the node.
[0054] Step 4032: If the processing comparison result shows that the first processing result and the second processing result are consistent, a bidirectional node connection relationship is established with the processing result node as a child node of the first processing node, the second processing node and the processing comparison node, and a bidirectional node connection relationship is established between the first processing node and the second processing node and the processing comparison node respectively.
[0055] Furthermore, when the processing comparison results indicate that the first processing result (preset processing standard) and the second processing result (actual processing data) are consistent, the product tracking management system establishes a bidirectional node connection between the first processing node, the second processing node, and the processing comparison node, using the processing result node as the hub. Bidirectional connections mean that from any node, the other two nodes can be accessed through the connection path, demonstrating the close connection between the standards, actual conditions, and the results of the processing process. Simultaneously, the product tracking management system also establishes bidirectional node connections between the first processing node and the second processing node and the processing comparison node, further strengthening data exchange and traceability between nodes. This allows for rapid access to complete processing information from multiple perspectives within the product tracking management tree.
[0056] Continuing with the smartphone motherboard soldering process, since the soldering temperature comparison results indicate that the actual temperature is consistent with the standard temperature, the product tracking management system uses the "Qualified Soldering Temperature" processing result node as a child node. Bidirectional connections are established between the first processing node (preset soldering standard: 250°C ± 5°C), the second processing node (the starting point for subsequent assembly), and the processing comparison node: first processing node ⇄ processing result node ⇄ second processing node, first processing node ⇄ processing comparison node, and second processing node ⇄ processing comparison node. This allows for quick access to comprehensive information on standards, actual conditions, and result judgments when tracing soldering steps through these bidirectional connections.
[0057] Step 4033: If the processing comparison result shows that the first processing result and the second processing result are inconsistent, a processing difference node is created, a bidirectional node connection relationship is established with the processing difference node as a child node of the first processing node and the second processing node, and a unidirectional node connection relationship is established with the first processing node and the second processing node pointing to the processing comparison node respectively.
[0058] Furthermore, if the processing comparison result is determined to be inconsistent between the first processing result and the second processing result, the product tracking management system creates a new processing difference node, which is used to record the specific differences between the actual processing results and the preset standards, such as parameter values that exceed the standard range, difference types, etc.
[0059] Furthermore, the product tracking management system establishes a bidirectional node connection between the first and second processing nodes, using the processing difference node as a child node. This connection indicates the relationship between the two processing stages due to the processing difference. Furthermore, a unidirectional node connection is established, with the first and second processing nodes pointing to the processing comparison node, clarifying the information flow from the processing process to the result judgment.
[0060] Continuing with the smartphone motherboard soldering process, the actual soldering temperature reached 260°C, exceeding the standard range of 250°C ± 5°C. The product tracking and management system created a process difference node, recording "Abnormal soldering temperature, actual temperature 260°C, exceeding the standard range." Then, using the process difference node as a child, a bidirectional connection was established between the first process node (the preset soldering standard) and the second process node (the starting point for the subsequent assembly process): first process node ⇄ process difference node ⇄ second process node. Simultaneously, a unidirectional connection was established: first process node → process comparison node, and second process node → process comparison node. These connections allow for intuitive tracking of abnormal soldering temperatures and their relationship to subsequent steps.
[0061] The embodiment of the present invention constructs a dynamic and logically rigorous processing node connection network through processing comparison results. Therefore, when the processing results are normal, the closed-loop structure formed by the bidirectional connection ensures efficient data interaction and traceability between the processing standards, actual conditions, and result judgments. When processing discrepancies occur, the introduction of processing difference nodes and the design of one-way connections accurately locate the source of the anomaly and clearly present the impact path. Therefore, when product quality problems occur, it is possible to quickly locate the anomaly point in the specific processing link, such as the path from the root node to the processing comparison node. Combined with the node connection relationship, it is quickly determined which processing stage's actual results do not meet the standards, thereby improving the efficiency and accuracy of product quality problem tracing.
[0062] In one embodiment, steps 4034 to 4036 are described as follows: Step 4034: Create a user result node. The user result node is used to store the user comparison result.
[0063] Optionally, when processing the user node connection relationship, the product tracking management system first creates a user result node, which serves as a special data storage unit for storing the user comparison results obtained in step 402, including key information such as whether the preset processing user is consistent with the actual processing user, and the associated attributes of the two (such as the team to which they belong, division of responsibilities, etc.).
[0064] Therefore, it can be understood that the embodiment of the present invention centrally manages user comparison information by establishing an independent user result node, providing a clear data basis for the subsequent construction of connection relationships between nodes, and making the user-related information structure in the product tracking management tree more regular and easy to trace.
[0065] Continuing in the soldering process of the smartphone motherboard, after the product tracking management system obtains the user comparison result "actual processing user Zhang San belongs to the preset processing user welding team A", it creates a user result node and stores the user comparison result in its entirety in the node.
[0066] Step 4035: If the user comparison result shows that the first processing user and the second processing user are consistent, a bidirectional node connection relationship is established with the user result node as a child node of the first user node, the second user node and the user association node, and a bidirectional node connection relationship is established between the first user node and the second user node and the user association node respectively.
[0067] Furthermore, when the user comparison result indicates that the first processing user (predetermined processing user) and the second processing user (actual processing user) are consistent, the product tracking management system establishes a bidirectional node connection between the first user node, the second user node, and the user-related node, using the user result node as the hub. A bidirectional connection means that from any node, the other two nodes can be accessed through the connection path, demonstrating the close connection between the predetermined user, the actual user, and their relationship. Simultaneously, the product tracking management system also establishes a bidirectional node connection between the first user node and the second user node and the user-related node, further strengthening data exchange and traceability between nodes. This allows for rapid access to comprehensive information about the user's involvement in the processing process from multiple perspectives within the product tracking management tree.
[0068] Continuing with the smartphone motherboard soldering process, if the pre-defined processing user is "Welding Team A," and the actual processing user, "Zhang San," belongs to "Welding Team A," the two are identical. The product tracking management system uses the user result node storing "Zhang San belongs to Welding Team A" as a child node and establishes bidirectional connections between the first user node (Welding Team A), the second user node (Zhang San), and the user-related node: first user node ⇄ user result node ⇄ second user node, first user node ⇄ user-related node, and second user node ⇄ user-related node. This allows for quick access to comprehensive information on the pre-defined user, actual user, and their relationships when tracing user information during the soldering process.
[0069] Step 4036: If the user comparison result shows that the first processing result and the second processing result are inconsistent, a user difference node is created, a bidirectional node connection relationship is established with the user difference node as a child node of the first user node and the second user node, and a unidirectional node connection relationship is established with the first user node and the second user node pointing to the user association node respectively.
[0070] Furthermore, if the user comparison result shows that the first processing user and the second processing user are inconsistent, a new user difference node is created. This node is used to record the specific differences between the preset processing user and the actual processing user, such as the actual user does not belong to the preset team, the user's responsibilities are inconsistent with the preset, etc.
[0071] Furthermore, the product tracking management system establishes a bidirectional node connection between the first and second user nodes, using the user difference node as a child node. This connection indicates that the two user nodes are associated due to user differences. Simultaneously, the product tracking management system establishes a unidirectional node connection between the first and second user nodes, each pointing to the user association node. This clarifies the information flow from the user's actual situation to the association between the two. This allows the product tracking management tree to clearly present the specific circumstances of user differences and the association determination process, facilitating subsequent accountability and personnel management.
[0072] Continuing with the smartphone motherboard soldering process, the pre-defined processing user is "Welding Team A," but the actual processing user is "Li Si," who does not belong to "Welding Team A." Therefore, the product tracking management system creates a user difference node, recording that "the actual processing user, Li Si, does not belong to the pre-defined processing user, Welding Team A." Then, with the user difference node as a child, a bidirectional connection is established between the first user node (Welding Team A) and the second user node (Li Si): first user node ⇄ user difference node ⇄ second user node. Unidirectional connections are also established: first user node → user association node, second user node → user association node. These connections enable intuitive identification of user differences in the welding process and their connection to association determination during traceability.
[0073] The embodiment of the present invention constructs a flexible and logically rigorous user node connection system through user comparison results. When the user comparison results are consistent, the closed network formed by the two-way connection ensures efficient information interaction and traceability between the preset user, the actual user and their associated relationships; when differences occur among users, the introduction of user difference nodes and the one-way connection design accurately locate the source of user differences and clearly present the impact path. Therefore, when product quality problems or responsibility definition needs occur, user information of specific processing links can be quickly located, such as the path from the root node to the user-related node. Combined with the node connection relationship, it can be quickly determined which processing stage the actual operating user does not match the preset user, thereby improving the efficiency and accuracy of locating personnel factors in product quality traceability and improving the efficiency and accuracy of responsibility tracing.
[0074] In one embodiment, steps 4041 to 4043 are described as follows: Step 4041: The processing route is segmented based on the processing method, processing area, and processing sequence of the processing route, and a sub-route node is created for each route segment. Each sub-route node includes a route number, a starting position, an ending position, an estimated time, and an actual time.
[0075] Optionally, the product tracking management system obtains information about the carrier's processing route, including the processing methods used during the process (such as welding, assembly, and testing), the processing areas passed through (different workshops or workstations), and the processing sequence. Furthermore, based on this information, the product tracking management system segments the processing route according to certain logical rules, dividing the continuous processing process into multiple sub-routes with independent characteristics. For each sub-route, the product tracking management system creates a corresponding sub-route node and assigns detailed attributes to each sub-route node. The route number is used to uniquely identify the sub-route; the starting and ending positions specify the spatial scope of the sub-route; the estimated time sets the theoretical processing time required for the sub-route based on the process standards; and the actual time records the time consumed by the sub-route in actual production. In this way, complex processing routes are broken down into a structured set of sub-route nodes.
[0076] Continuing with the smartphone motherboard production process, the carrier processing route is "chip soldering in Welding Workshop A → motherboard assembly in Assembly Workshop B → functional testing in Inspection Workshop C." The product tracking management system divides this route into three subroutes based on processing methods and regions: the first segment is chip soldering in Welding Workshop A, the second segment is motherboard assembly in Assembly Workshop B, and the third segment is functional testing in Inspection Workshop C. The system creates sub-route nodes for these three sub-routes respectively: the route number of sub-route node 1 is "R01", the starting position is welding station 1 of welding workshop A, and the end position is welding station 5 of welding workshop A. It is expected to take 30 minutes and actually took 28 minutes; the route number of sub-route node 2 is "R02", the starting position is assembly station 1 of assembly workshop B, and the end position is assembly station 8 of assembly workshop B. It is expected to take 40 minutes and actually took 42 minutes; the route number of sub-route node 3 is "R03", the starting position is inspection station 1 of inspection workshop C, and the end position is inspection station 3 of inspection workshop C. It is expected to take 20 minutes and actually took 22 minutes.
[0077] Step 4042: establish a bidirectional node connection relationship with each sub-route node as a sub-node of the processing route node.
[0078] Furthermore, the product tracking management system treats each sub-route node as a child of the processing route node, establishing a bidirectional node connection between them. This bidirectional connection allows the processing route node and its sub-route nodes to access each other, allowing the processing route node to manage the information of all sub-route nodes, while the sub-route nodes can also feed their detailed data back to the processing route node.
[0079] Continuing with the three sub-route nodes (R01, R02, and R03) for the smartphone motherboard production process, we've made them sub-nodes of the processing route node, establishing bidirectional connections: processing route node ⇄ sub-route node 1 (R01), processing route node ⇄ sub-route node 2 (R02), and processing route node ⇄ sub-route node 3 (R03). Clicking a processing route node will expand it to view detailed information about each sub-route node, including route number, location, and time consumption. From a sub-route node, we can quickly trace back to the processing route node, understanding its position and subordinate relationships within the entire processing route.
[0080] Step 4043: For any target sub-route node, if the sub-route node is associated with the first processing result and / or the second processing result, a bidirectional node connection relationship is established with the sub-route node as a child node of the first processing node and / or the second processing node.
[0081] Furthermore, the product tracking management system traverses all sub-route nodes. For any target sub-route node, it determines whether it has an association with the first processing result (preset processing standard) and / or the second processing result (actual processing data). If so, the product tracking management system establishes a bidirectional node connection with the sub-route node as a child of the first processing node and / or the second processing node. This connection closely integrates the specific sub-routes within the processing route with the standards and actual conditions of the processing process. This allows the product tracking management tree to quickly locate relevant processing link information from the perspective of the processing route, and vice versa, from the processing link to its location on the processing route, achieving deep integration and bidirectional traceability of processing route and process information.
[0082] Continuing with the smartphone motherboard production, sub-route node 1 (R01) corresponds to the chip soldering process. The actual soldering temperature (second processing result) in this process is data-linked to the preset soldering temperature standard (first processing result). The product tracking management system uses sub-route node 1 (R01) as a sub-node of both the first processing node (preset soldering standard) and the second processing node (actual soldering data), establishing a bidirectional connection: first processing node ⇄ sub-route node 1 (R01) ⇄ second processing node. This allows the user to trace the soldering process, not only viewing the standard and actual processing data for that process, but also quickly locating the sub-route node 1 (R01) within the process route through this connection, understanding the soldering process's position within the overall process and its connection to the preceding and following processes. Conversely, detailed information about the associated soldering process can be retrieved from sub-route node 1 (R01).
[0083] The embodiment of the present invention utilizes route segmentation and sub-route node creation to convert complex processing routes into structured data. By establishing a bidirectional node connection relationship, a multi-dimensional association is achieved between processing route nodes and sub-route nodes, and between sub-route nodes and processing link nodes. Therefore, it is possible to efficiently achieve bidirectional traceability of processing routes and processing process information. When a product has a quality problem, by searching the processing route node and combining the connection relationship between the sub-route node and the processing link node, the specific processing route location and the corresponding processing link where the problem occurred can be quickly located. At the same time, the standard and actual processing data, expected and actual time consumption, and other information of the link can be obtained. Conversely, the processing link node can also be traced back to the processing route where it is located, facilitating analysis of whether the problem is related to factors such as route arrangement and process connection, thereby providing comprehensive and efficient data support for production process optimization, quality problem investigation, and responsibility definition.
[0084] In one embodiment, steps 406 to 409 are described as follows: Step 406 : split the product code information of the product to be processed according to a preset length to obtain grouped number information, and encode each grouped number information based on a random base code to obtain a converted code of the product code information.
[0085] Optionally, the product tracking management system can split the product code information into multiple groups according to a pre-set length, and then randomly select a base (such as binary, octal, or hexadecimal) for each group to convert the code into the converted code. Random base encoding increases the complexity and randomness of the encryption, making the code more difficult to crack. Furthermore, by maintaining a random number generator and base mapping table, the base selection for each encryption is ensured to be random and traceable.
[0086] Continuing with the aforementioned smartphone model X100, its product code is "X100-20241201-001." Using a default split length of 4 digits, the code is split into four groups: "X100," "2024," "1201," and "001." Each group is randomly assigned a base: the first group uses hexadecimal, the second uses binary, the third uses octal, and the fourth uses decimal. After code conversion, the resulting codes are "3334," "11111100100," "2701," and "1."
[0087] Step 407 : Perform a hash operation on the product code information to obtain a hash value, and obtain a hash string of corresponding digits in the hash value according to the length of the product code information.
[0088] Furthermore, the product tracking management system hashes the original product code information, using a secure hash algorithm (such as SHA-256) to generate a fixed-length hash value. Furthermore, the product tracking management system truncates the corresponding number of bits of the hash string from the hash value based on the length (number of characters) of the product code information. This truncation method links the hash string to the length of the product code, increasing the relevance and complexity of the encryption. Therefore, the product tracking management system calculates the number of characters in the product code to determine the starting position and length of the truncation, ensuring consistency and repeatability of each truncation.
[0089] Continuing with the above example, for the 16-character product code "X100-20241201-001," a hash operation is performed using the SHA-256 algorithm, resulting in a hash value of "b1e7d9a8f3c6e2b5d7a9c8d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9." Therefore, based on the code length of 16, starting from the 16th bit of the hash value, 16 characters are truncated from the hash value to obtain the hash string "e2b5d7a9c8d1e2f3."
[0090] Step 408: Determine the number of nodes connected to each target node in the product tracking management tree, and obtain the first encryption key at the corresponding position in the converted code according to the number of nodes, and obtain the second encryption key at the corresponding position in the hash string.
[0091] Furthermore, the product tracking management system traverses each target node in the product tracking management tree and counts the number of connected nodes. For each target node, the character or number at the corresponding position in the converted encoding, based on the number of connections to the node, is used as the first encryption key. Simultaneously, the character at the corresponding position in the hash string is used as the second encryption key. This ties the encryption key for each node to the tree structure, increasing the targetedness and security of the encryption.
[0092] Continuing with the above example, in the product tracking management tree, for example, the "first processing node" is connected to three nodes. Based on the number of connections (3), the character "3" is extracted from the third position of the first group "3334" in the converted code "3334," "11111100100," "2701," and "1" to serve as the first encryption key. The character "b" is extracted from the third position of the hash string "e2b5d7a9c8d1e2f3" to serve as the second encryption key. Similarly, for other target nodes, the corresponding characters are extracted from the converted code and hash string based on the number of connected nodes to generate their respective encryption keys.
[0093] Step 409: Encrypt the target node based on the first encryption key and the second encryption key to obtain an encrypted tracking management tree.
[0094] Furthermore, the product tracking management system encrypts the target node according to the first encryption key and the second encryption key to obtain an encrypted tracking management tree, as specifically described in steps 4091 to 4094 .
[0095] The embodiment of the present invention combines the split encoding of the product code with a hash operation to generate an encryption key related to the tree structure, which greatly improves the security and anti-cracking ability of the encryption. Even if part of the key or data is stolen, the attacker cannot restore the complete information, effectively protecting sensitive data in the product processing process and providing reliable security for product tracking and management.
[0096] In one embodiment, steps 4091 to 4094 are described as follows: Step 4091: Convert the second encryption key into a corresponding key number based on the character encoding table, and perform binary conversion on the first encryption key and the key number to obtain a first converted value and a second converted value.
[0097] Optionally, the product tracking management system uses a character encoding table (such as ASCII, Unicode) to convert the characters corresponding to the second encryption key into numerical form to obtain a key number. It should be noted that if the second encryption key is a number, it does not need to be converted through the character encoding table and can be used directly.
[0098] Furthermore, the product tracking and management system performs binary conversion on the first encryption key and the converted key number, converting them from their original numerical or character form into binary data, to obtain a first converted value and a second converted value, respectively. Continuing with the above embodiment, the first encryption key for the "first processing node" is "3" and the second encryption key is "b." Using the ASCII encoding table, the character "b" is converted to its corresponding value 98 to obtain the key number. The first encryption key "3" is converted to the binary value "0011" to obtain the first converted value. The key number 98 is converted to the binary value "01100010" to obtain the second converted value.
[0099] Step 4092: Perform a phase shift operation on each bit in the first conversion value and the corresponding bit in the second conversion value, and then perform bit superposition with the second conversion value to obtain a mixed key.
[0100] Furthermore, the product tracking and management system performs a phase shift operation on each bit in the first converted value and the corresponding bit in the second converted value, thereby changing the position of each bit in the first converted value according to a specific rule. Furthermore, the product tracking and management system performs a bitwise addition operation on the first converted value after the phase shift operation and the second converted value, adding the values of the corresponding bits (if the result is greater than 1, a modulo operation is performed) to generate a mixed key, fully integrating the two keys and increasing the complexity and randomness of the key.
[0101] Continuing with the above example, for the first converted value "0011" and the second converted value "01100010", the phase shift rule is to swap the first two bits with the last two bits of the first converted value, resulting in "1100". Next, a bit addition operation is performed, calculating from the lowest bit to the highest bit: 0+0=0, 0+1=1, 1+0=1, 1+1=10 (modulo 0, carry 1), 1+0+1 (carry)=10 (modulo 0, carry 1), 0+0+1 (carry)=1, 1+1=10 (modulo 0, carry 1), 0+0+1 (carry)=1, 0+0+1 (carry)=1, resulting in the mixed key "10000101".
[0102] In step 4093, the mixed key is used as the chaotic initial value, and after a preset number of chaotic iterations, the results of each chaotic iteration are combined to obtain an expanded mixed key.
[0103] Furthermore, the product tracking and management system uses the mixed key as the initial value of a chaotic system. The chaotic system uses a chaotic algorithm, such as the logistic map, and iterates for a predetermined number of times. Each iteration produces a new numerical result, which the product tracking and management system combines in a specific order to form an expanded mixed key. Due to the chaotic system's sensitivity to initial values and the complexity of its iterations, the expanded mixed key is highly random and unpredictable.
[0104] Continuing with the above embodiment, taking the Logistic mapping chaos algorithm as an example, its formula is ,in, For control parameters (such as =3.9), For the The value of the iteration. Convert the mixed key "10000101" to the decimal number 133, and then normalize it to the interval [0, 1] (such as 133 / 256≈0.52) as the initial value of chaos The number of iterations is preset to 5, and the iterations are performed: =3.9*0.52*(1-0.52)≈0.97. =3.9*0.97*(1-0.97)≈0.11. =3.9*0.11*(1-0.11)≈0.38. =3.9*0.38*(1-0.38)≈0.91. =3.9*0.91*(1-0.91)≈0.32, convert each iteration result into binary and combine them to obtain the expanded mixed key (for example, "1100101011110010").
[0105] Step 4094: associate the expanded mixed key with the target node to obtain an encrypted tracking management tree.
[0106] Furthermore, the product tracking management system associates the expanded mixed key with the original data of the target node. Specifically, this can be done by performing an XOR operation, permutation, or direct fusion on the target node data to integrate the expanded mixed key into the target node data, completing the encryption of the target node. This process is repeated for all target nodes in the product tracking management tree to obtain the encrypted tracking management tree.
[0107] Continuing with the above example, for the "first processing node," the original data is "XX," which is converted to binary data (for example, "0101001..."). The expanded mixed key "1100101011110010" is XORed with this binary data to obtain the encrypted data. The same operation is repeated for the remaining target nodes in the product tracking management tree, completing the encryption of the entire tree and obtaining the encrypted tracking management tree.
[0108] The embodiment of the present invention greatly improves the security of the encrypted tracking management tree through multi-step transformation and chaotic expansion of the key. Even if an attacker obtains part of the encrypted data and algorithm, it is difficult to crack the original information, providing reliable protection for the safe storage and transmission of product processing information.
[0109] Furthermore, the QR code-based product identification and tracking management system provided by the present invention is described below. The QR code-based product identification and tracking management system described below and the QR code-based product identification and tracking management method described above can refer to each other.
[0110] Optional, see Figure 2 , Figure 2 This is a schematic diagram of the structure of the product identification and tracking management system based on the QR code provided by the present invention. The product identification and tracking management system based on the QR code includes: A QR code generation module 210 is configured to generate a QR code based on the product information of the product to be processed, and package the QR code onto the surface of a carrier corresponding to the product to be processed using a QR code device; The first information updating module 220 is configured to transport the carrier to the processing equipment for product processing according to a preset production process node, and update the initial information of the QR code based on the first processing result preset at the production process node and the second processing result of the processing equipment to obtain the first target information; The second information updating module 230 is configured to update the first target information based on the first processing user preset in the production process node and the second processing user operating the processing equipment to process the product, thereby obtaining the second target information; The product tracking management tree generation module 240 is used to generate a product tracking management tree for the carrier based on the second target information after the carrier is processed, encrypt the product tracking management tree, and upload it to the blockchain platform; The user tracking module 250 is used to track the corresponding processing user by scanning the QR code based on the QR code-based product tracking management tree if there is an abnormality in the product to be processed.
[0111] The embodiment of the present invention solves the problem that traditional static QR code information cannot dynamically update QR code information by updating the initial information of the QR code at each production process node based on the preset first processing result and the actual second processing result, as well as the preset first processing user at the production process node and the second processing user who operates the processing equipment to process the product. On the one hand, by associating the preset first processing user and the actual second processing user information with the product information and updating them into the QR code, a complete personnel operation record is established. When a product abnormality occurs, the corresponding processing user information can be directly obtained by scanning the QR code, and the specific processing link and responsible personnel can be quickly and accurately traced back, thereby improving the efficiency and accuracy of responsibility tracing.
[0112] See also Figure 3 , Figure 3 Schematic diagram of an embodiment of an electronic device provided by an embodiment of the present invention. Figure 3 As shown, an embodiment of the present invention provides an electronic device 300, including a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and executable on the processor 320. When the processor 320 executes the computer program 311, the following steps are implemented: Generate a QR code based on the product information of the product to be processed, and package the QR code on the surface of a carrier corresponding to the product to be processed using a QR code device; The carrier is transported to the processing equipment for product processing according to the preset production process node, and the initial information of the QR code is updated based on the first processing result preset in the production process node and the second processing result of the processing equipment to obtain the first target information; The first target information is updated based on a first processing user preset in a production process node and a second processing user operating processing equipment to process the product, thereby obtaining second target information; After the vehicle is processed, a product tracking management tree for the vehicle is generated based on the second target information, and the product tracking management tree is encrypted and uploaded to the blockchain platform; If there is an abnormality in the product to be processed, the QR code is scanned by the QR code device and the corresponding processing user is tracked using the QR code-based product tracking management tree.
[0113] It should be noted that, in the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.
[0114] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0115] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A system that specifies the functions of a box or boxes.
[0116] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction system that is implemented in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0117] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0118] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0119] Obviously, those skilled in the art may make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if such changes and modifications fall within the scope of the claims and their equivalents, the present invention is intended to include such changes and modifications.
Claims
1. A product identification and tracking management method based on QR code, characterized in that: include; Generate a QR code based on product information of the product to be processed, and package the QR code on the surface of a carrier corresponding to the product to be processed using a QR code device; The carrier is transported to a processing device for product processing according to a preset production process node, and the initial information of the QR code is updated based on a first processing result preset at the production process node and a second processing result of the processing device to obtain first target information; The first target information is updated based on a first processing user preset in the production process node and a second processing user who operates the processing equipment to process the product, to obtain second target information; After the processing of the carrier is completed, a product tracking management tree for the carrier is generated based on the second target information, and the product tracking management tree is encrypted and uploaded to the blockchain platform; If the product to be processed has an abnormality, the QR code is scanned by the QR code device to track the corresponding processing user through a product tracking management tree based on the QR code.
2. The product identification, tracking and management method based on QR code according to claim 1, characterized in that: The product information includes product coding information and production information; The generating of the product tracking management tree of the carrier based on the second target information includes: Creating a root node based on the product code information, and creating multiple child nodes of the root node; the multiple child nodes include a production information node, a first processing node, a second processing node, a processing comparison node, an equipment information node, a processing route node, a first user node, a second user node, and a user association node; Determining a processing comparison result based on the first processing result and the second processing result, and determining a user comparison result based on the first processing user and the second processing user; Establishing a processing node connection relationship between the first processing node, the second processing node, and the processing comparison node based on the processing comparison result, and establishing a user node connection relationship between the first user node, the second user node, and the user association node based on the user comparison result; establishing a processing route node connection relationship between the first processing node, the second processing node, and the processing route node based on the processing route of the carrier; A product tracking management tree for the carrier is generated based on the various sub-nodes and the connection relationship between the processing nodes, the connection relationship between the user nodes, and the connection relationship between the processing route nodes.
3. The product identification, tracking and management method based on QR code according to claim 2, characterized in that: The establishing of a processing node connection relationship among the first processing node, the second processing node, and the processing comparison node based on the processing comparison result includes: Creating a processing result node; the processing result node is used to store the processing comparison result; If the processing comparison result shows that the first processing result and the second processing result are consistent, a bidirectional node connection relationship is established with the processing result node as a child node of the first processing node, the second processing node, and the processing comparison node, and a bidirectional node connection relationship is established between the first processing node and the second processing node and the processing comparison node respectively; or, If the processing comparison result is that the first processing result and the second processing result are inconsistent, a processing difference node is created, a bidirectional node connection relationship is established with the processing difference node as a child node of the first processing node and the second processing node, and a unidirectional node connection relationship is established in which the first processing node and the second processing node point to the processing comparison node respectively.
4. The product identification, tracking and management method based on QR code according to claim 2, characterized in that: The establishing a user node connection relationship between the first user node, the second user node, and the user association node based on the user comparison result includes: Creating a user result node; the user result node is used to store the user comparison result; If the user comparison result shows that the first processed user and the second processed user are consistent, a bidirectional node connection relationship is established with the user result node as a child node of the first user node, the second user node, and the user association node, and a bidirectional node connection relationship is established between the first user node and the second user node and the user association node respectively; or If the user comparison result is that the first processing result and the second processing result are inconsistent, a user difference node is created, a bidirectional node connection relationship is established with the user difference node as a child node of the first user node and the second user node, and a unidirectional node connection relationship is established with the first user node and the second user node pointing to the user association node respectively.
5. The product identification, tracking and management method based on QR code according to claim 2, characterized in that: The establishing a processing route node connection relationship between the first processing node, the second processing node, and the processing route node based on the processing route of the carrier includes: The processing route is segmented based on the processing method, processing area and processing sequence of the processing route, and a sub-route node is created for each route segment; each sub-route node includes a route number, a starting position, an ending position, an estimated time and an actual time; Establishing a bidirectional node connection relationship with each sub-route node as a sub-node of the processing route node; For any target sub-route node, if the sub-route node is associated with the first processing result and / or the second processing result, a bidirectional node connection relationship is established with the sub-route node as a child node of the first processing node and / or the second processing node.
6. The product identification, tracking and management method based on QR codes according to any one of claims 1 to 5, characterized in that: The specific process of encrypting the product tracking management tree includes: Splitting the product code information of the product to be processed according to a preset length to obtain grouped number information, and encoding each grouped number information based on a random base code to obtain a converted code of the product code information; Performing a hash operation on the product code information to obtain a hash value, and obtaining a hash string of corresponding digits in the hash value according to the length of the product code information; Determine the number of nodes connected to each target node in the product tracking management tree, and obtain a first encryption key at a corresponding position in the converted code according to the number of nodes, and obtain a second encryption key at a corresponding position in the hash string; The target node is encrypted based on the first encryption key and the second encryption key to obtain an encrypted tracking management tree.
7. The product identification, tracking and management method based on QR code according to claim 6, characterized in that: The encrypting the target node based on the first encryption key and the second encryption key to obtain an encrypted tracking management tree includes: converting the second encryption key into a corresponding key number based on a character encoding table, and performing binary conversion on the first encryption key and the key number to obtain a first converted value and a second converted value; After performing a phase shift operation on each bit of the first conversion value and the corresponding bit of the second conversion value, the phase shift operation is performed and the resultant bits are superimposed with the second conversion value to obtain a mixed key; The mixed key is used as a chaotic initial value, and after a preset number of chaotic iterations, the results of each chaotic iteration are combined to obtain an expanded mixed key; The expanded mixed key is associated with the target node to obtain an encrypted tracking management tree.
8. A product identification and tracking management system based on QR code, characterized in that: Applied to the implementation of the QR code-based product identification and tracking management method according to any one of claims 1 to 7, the QR code-based product identification and tracking management system comprises: A QR code generation module, configured to generate a QR code based on the product information of the product to be processed, and package the QR code onto the surface of a carrier corresponding to the product to be processed based on a QR code device; A first information updating module is configured to transport the carrier to a processing device for product processing according to a preset production process node, and update the initial information of the QR code based on a first processing result preset at the production process node and a second processing result of the processing device to obtain first target information; A second information updating module is configured to update the first target information based on a first processing user preset in the production process node and a second processing user operating the processing equipment to process the product, thereby obtaining second target information; A product tracking management tree generation module is configured to generate a product tracking management tree for the carrier based on the second target information after the carrier is processed, and to encrypt the product tracking management tree and upload it to the blockchain platform; The user tracking module is used to scan the QR code based on the QR code device if there is an abnormality in the product to be processed, and track the corresponding processing user based on the product tracking management tree based on the QR code.
9. An electronic device, characterized in that: The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the QR code-based product identification, tracking, and management method as described in any one of claims 1 to 7 when executing the program.
10. A non-transitory computer-readable storage medium storing a computer software program, wherein: When the processor executes the program, the product identification, tracking and management method based on the QR code is implemented as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Data verification method, device and apparatus and storage medium
CN112363697A
Enterprise product quality closed-loop tracing management system
CN115983726A
Key management protocol
US20050271210A1
Multi-node architecture with daisy chain communication link configurable to operate in unidirectional and bidirectional modes
US20060020740A1
KR20220061296A
Cited By
Wood floor production process tracing method
CN121936879A