A product identification tracking management method and system based on a two-dimensional code and a storage medium
By updating QR code information at each stage of the production process and storing it using blockchain, the problem of static QR codes being unable to be dynamically updated is solved, enabling real-time tracking of product information and rapid and accurate tracing of responsible personnel.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- YILIAN IND & TECH LTD
- Filing Date
- 2025-06-04
- Publication Date
- 2026-05-29
AI Technical Summary
In traditional product identification and tracking management methods, static QR codes cannot dynamically update information, resulting in insufficient real-time and accuracy of information during product processing, making it difficult to trace specific processing steps and responsible personnel.
By generating a product tracking and management method based on QR codes, information is updated at each production process node using QR code devices, and information is encrypted and stored using a blockchain platform to establish a product tracking and management tree, recording processing results and user information.
It enables dynamic updates and real-time tracking of product information, allowing for quick and accurate tracing back to specific processing stages and responsible personnel, thus improving the efficiency and accuracy of accountability.
Smart Images

Figure CN120707161B_ABST
Abstract
Description
Technical Field
[0001] This 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 Technology
[0002] Currently, in the field of manufacturing production management, product identification and tracking are crucial for ensuring product quality and production efficiency. Traditional product identification and tracking management methods mainly use barcode or static QR code technology. This means that once a product enters the production process, information updates at each processing node require manual entry into the system, and information about the product processing users is recorded manually or in simple spreadsheets. On the one hand, static QR codes have limited information storage and cannot be dynamically updated, resulting in the inability to record and reflect the latest status and processing information of the product in real time as the production process progresses. On the other hand, the operation records of processing users are incomplete and lack effective correlation mechanisms, making it difficult to quickly and accurately trace the specific processing stage and responsible personnel when product quality problems or abnormalities occur. Summary of the Invention
[0003] This invention provides a product identification, tracking and management method, system and storage medium based on QR codes, aiming to solve the problem of the inability to dynamically update QR code information, and to improve the efficiency and accuracy of responsibility traceability.
[0004] In a first aspect, the present invention provides a product identification, tracking, and management method based on QR codes, comprising:
[0005] A QR code is generated based on the product information of the product to be processed, and the QR code is packaged onto the surface of the carrier corresponding to the product to be processed using a QR code device.
[0006] The carrier is transported to the processing equipment for product processing according to the preset production process nodes. The initial information of the QR code is updated based on the first processing result preset by the production process nodes and the second processing result of the processing equipment to obtain the first target information.
[0007] The first target information is updated 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;
[0008] 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.
[0009] If the product to be processed is abnormal, the corresponding processing user is tracked by scanning the QR code using the QR code scanning device and the product tracking management tree based on the QR code.
[0010] According to the product identification and tracking management method based on QR codes provided by the present invention, the product information includes product coding information and production information;
[0011] The step of generating the product tracking management tree for the vehicle based on the second target information includes:
[0012] A root node is created based on the product coding information, and multiple child nodes are created from 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;
[0013] The processing comparison result is determined based on the first processing result and the second processing result, and the user comparison result is determined based on the first processing user and the second processing user;
[0014] Based on the processing comparison results, establish the processing node connection relationship between the first processing node, the second processing node, and the processing comparison node, and establish the user node connection relationship between the first user node, the second user node, and the user-associated node based on the user comparison results;
[0015] Based on the processing route of the vehicle, establish the processing route node connection relationship between the first processing node, the second processing node and the processing route node;
[0016] Based on the connections between each child node, processing node, user node, and processing route node, a product tracking management tree for the vehicle is generated.
[0017] According to the product identification and tracking management method based on QR codes provided by the present invention, the step of 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:
[0018] Create a processing result node; the processing result node is used to store processing comparison results.
[0019] If the processing comparison result is consistent with the first processing result and the second processing result, then 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 bidirectional node connections are established between the first processing node and the second processing node and the processing comparison node, respectively; or,
[0020] If the processing comparison result is inconsistent between the first processing result and the second processing result, 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 between the first processing node and the second processing node pointing to the processing comparison node respectively.
[0021] According to the product identification and tracking management method based on QR codes provided by the present invention, the step of establishing a user node connection relationship between the first user node, the second user node, and the user-associated node based on the user comparison result includes:
[0022] Create a user result node; the user result node is used to store user comparison results;
[0023] If the user comparison result shows that the first processing user and the second processing user are the same, then 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-associated node, and bidirectional node connections are established between the first user node and the second user node and the user-associated node respectively; or,
[0024] If the user comparison result is inconsistent between the first processing result and the second processing result, a user difference node is created. The user difference node is used as a child node of the first user node and the second user node to establish a bidirectional node connection relationship, and a unidirectional node connection relationship is established between the first user node and the second user node pointing to the user associated node respectively.
[0025] According to the product identification and tracking management method based on QR codes provided by the present invention, the step of 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 includes:
[0026] Based on the processing method, processing area, and processing sequence of the processing route, the processing route is divided into segments, and sub-route nodes are created for each segment; each sub-route node includes a route number, start position, end position, estimated time, and actual time.
[0027] Establish a bidirectional node connection relationship with each sub-route node as a child node of the processing route node;
[0028] For any target sub-route node, if the sub-route node is associated with the first processing result and / or the second processing result, then 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.
[0029] The specific process of encrypting the product tracking management tree according to the product identification and tracking management method based on QR codes provided by the present invention includes:
[0030] The product code information of the product to be processed is split according to a preset length to obtain grouped number information, and each grouped number information is encoded based on random base encoding to obtain the converted code of the product code information;
[0031] Perform a hash operation on the product coding information to obtain a hash value, and extract a hash string of the corresponding number of bits from the hash value according to the length of the product coding information;
[0032] 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 based on the number of nodes, and obtain the second encryption key at the corresponding position in the hash string;
[0033] The target node is encrypted using the first encryption key and the second encryption key to obtain an encrypted tracking management tree.
[0034] According to the product identification and tracking management method based on QR codes provided by the present invention, the step of encrypting the target node based on the first encryption key and the second encryption key to obtain an encrypted tracking management tree includes:
[0035] Based on the character encoding table, the second encryption key is converted into the corresponding key number, and the first encryption key and the key number are converted into binary to obtain the first conversion value and the second conversion value.
[0036] After performing a phase shift operation between each bit of the first converted value and the corresponding bit of the second converted value, the bits are then superimposed on the second converted value to obtain the mixed key.
[0037] Using the hybrid key as the initial value of chaos, after a preset number of chaotic iterations, the results of each chaotic iteration are combined to obtain the expanded hybrid key;
[0038] The expanded hybrid key is associated with the target node to obtain an encrypted tracking management tree.
[0039] Secondly, the present invention also provides a product identification and tracking management system based on QR codes, applied to the implementation of the product identification and tracking management method based on QR codes as described in any of the first aspects, wherein the product identification and tracking management system based on QR codes includes:
[0040] A QR code generation module is used to generate a QR code based on the product information of the product to be processed, and to package the QR code onto the surface of the carrier corresponding to the product to be processed using a QR code device.
[0041] The first information update module is used to transport the carrier to the processing equipment for product processing according to the preset production process nodes, and update the initial information of the QR code based on the preset first processing result of the production process node and the second processing result of the processing equipment to obtain the first target information;
[0042] The second information update module is used to update the first target information based on the first processing user and the second processing user who operates the processing equipment to process the product, according to the preset first processing user of the production process node, so as to obtain the second target information;
[0043] The product tracking management tree generation module is used to generate a product tracking management tree for the vehicle based on the second target information after the vehicle has been processed, and to encrypt the product tracking management tree and upload it to the blockchain platform.
[0044] The user tracking module is used to scan the QR code using the QR code device if there is an abnormality in the product to be processed, and to track the corresponding processing user based on the product tracking management tree of the QR code.
[0045] The present invention also provides an electronic device, comprising: a memory for storing computer software programs; and a processor for reading and executing the computer software programs, thereby realizing the product identification and tracking management method based on QR codes as described above.
[0046] The present invention also provides a non-transitory computer-readable storage medium storing a computer software program, which, when executed by a processor, implements the product identification and tracking management method based on QR codes as described above.
[0047] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the product identification, tracking and management method based on QR codes as described above.
[0048] The product identification and tracking management method based on QR codes provided in this invention solves the problem of traditional static QR code information not being able to be dynamically updated by updating the initial information of the QR code at each production process node based on a preset first processing result and an actual second processing result, as well as a preset first processing user and a preset second processing user operating the processing equipment. Secondly, by associating the preset first processing user and the actual second processing user information with product information and updating it in the QR code, a complete personnel operation record is established. When a product malfunctions, the corresponding processing user information can be directly obtained by scanning the QR code, quickly and accurately tracing back to the specific processing stage and responsible personnel, thus improving the efficiency and accuracy of responsibility tracing. Attached Figure Description
[0049] Figure 1 This is a flowchart illustrating the product identification, tracking, and management method based on QR codes provided by the present invention.
[0050] 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;
[0051] Figure 3 A schematic diagram of an embodiment of the electronic device provided in this invention. Detailed Implementation
[0052] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0053] In the description of this invention, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the stated features. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.
[0054] In the description of this invention, the term "for example" is used to mean "used as an example, illustration, or description." Any embodiment described as "for example" in this invention is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use the invention. Details are set forth in the following description for purposes of explanation. It should be understood that those skilled in the art will recognize that the invention can be made without using these specific details. In other instances, well-known structures and processes will not be described in detail to avoid obscuring the description of the invention with unnecessary detail. Therefore, the invention is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed herein.
[0055] Optional, see below Figure 1 , Figure 1 This is a flowchart illustrating the product identification and tracking management method based on QR codes provided by the present invention. In this embodiment, the executing entity of the product identification and tracking management method based on QR codes is the product tracking management system. Therefore, the product identification and tracking management method based on QR codes includes:
[0056] Step 10: Generate a QR code based on the product information of the product to be processed, and then use a QR code device to package the QR code onto the surface of the carrier corresponding to the product to be processed.
[0057] Optionally, product information typically includes basic data such as product model, specifications, raw material batch, and production date. The product tracking and management system encodes this information to generate a QR code that conforms to specific standards. Subsequently, the product tracking and management system controls a QR code device, such as an industrial-grade QR code printer or inkjet printer, to affix the generated QR code to the surface of the carrier corresponding to the product to be processed.
[0058] In one embodiment, for example, the product to be processed is a motherboard for a certain model of smartphone. Its product information includes model number "SMB-001", dimensions "10cm × 8cm", raw material batch "RB-202401", and production date "2024-01-01". The product tracking and management system encodes this information to generate a QR code. Then, the product tracking and management system 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 identification of the carrier.
[0059] Step 20: Transport the carrier to the processing equipment for product processing according to the preset production process nodes. Update the initial information of the QR code based on the first processing result preset by the production process nodes and the second processing result of the processing equipment to obtain the first target information.
[0060] Furthermore, the product tracking and management system controls the conveyor equipment to sequentially transport the carrier to each processing device according to pre-set production process nodes. At each production process node, the system compares and analyzes the preset first processing result (such as processing technology standards and quality requirements) with the actual second processing result (such as actual processing parameters and test data) generated by the processing device. Based on the comparison results, the 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 situation of the product at that processing stage.
[0061] Continuing with the above embodiment, in the production process of a smartphone motherboard, there is a chip welding process node. The preset first processing result is that the welding temperature should be maintained at 250℃±5℃ and the welding time should be 3-5 seconds. After the carrier is transported to the welding equipment and welding is completed, the second processing result recorded by the equipment shows that the welding temperature is 252℃ and the welding time is 4 seconds. Comparing these two results and confirming that they meet the standard, the actual processing data such as welding temperature and welding time are added to the initial information of the QR code to update the first target information, such as "Model: SMB-001, Specification: 10cm×8cm, Raw material batch: RB-202401, Production date: 2024-01-01, Welding temperature: 252℃, Welding time: 4 seconds".
[0062] Step 30: Based on the preset first processing user and the second processing user operating the processing equipment to process the product, the first target information is updated to obtain the second target information.
[0063] Furthermore, the product tracking and management system acquires information on the first processing user (such as a designated operator or work group) and the second processing user who actually operates the processing equipment to process the product at each production process node. Further, the product tracking and management system integrates these two types of user information with the first target information, further updating the information contained in the QR code to obtain the second target information. Therefore, the second target information not only contains the product processing data but also associates it with the specific processing operator, achieving a one-to-one correspondence between the product processing process and the personnel.
[0064] Continuing with the above embodiment, at the chip welding production process node of the smartphone motherboard, the preset first processing user is "Welding Team A", and the second processing user who actually operates 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 and updates it to obtain the second target information, namely "Model: SMB-001, Specification: 10cm×8cm, Raw material batch: RB-202401, Production date: 2024-01-01, Welding temperature: 252℃, Welding time: 4 seconds, Processing team: Welding Team A, Operator: Zhang San".
[0065] Step 40: 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.
[0066] Furthermore, once the product to be processed on the vehicle has completed all processing steps, the product tracking management system constructs a product tracking management tree for the vehicle based on the second target information in the QR code. The product tracking management tree organizes and associates all information throughout the entire production process, from raw material input to finished product output, in a tree structure, including information on each processing stage and corresponding processing user information, as described in steps 401 to 405.
[0067] Furthermore, the product tracking management system uses encryption algorithms 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 immutability of product information, as detailed in steps 406 to 409.
[0068] Continuing with the above embodiments, for a smartphone motherboard carrier that has completed all processing, the product tracking management system constructs a product tracking management tree based on the second target information of its QR code. The root node of the tree contains the basic information of the product, such as model and specifications; the child nodes sequentially contain information about each processing stage (welding, assembly, testing, etc.), and each processing stage node is associated with the corresponding processing user information. The system uses the AES encryption algorithm to encrypt the product tracking management tree, and then uploads the encrypted information to a blockchain platform, such as the Ethereum blockchain, to complete the on-chain storage of product information.
[0069] Step 50: If there is an abnormality in the product to be processed, the QR code is scanned by the QR code device to track the corresponding processing user using the QR code-based product tracking management tree.
[0070] Furthermore, when abnormalities occur in the subsequent use, sale, or quality inspection of a product awaiting processing, staff use a QR code scanner to scan the QR code on the surface of the product carrier. After reading the QR code information, 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 identifies each processing stage related to the abnormal product and the corresponding processing user information, thus finding the root cause of the problem and clarifying responsibility. Continuing with the above embodiment, if a smartphone sold on the market has a motherboard failure, after-sales personnel use a QR code scanner to scan the QR code on the phone's motherboard carrier. After reading the QR code information, the product tracking management system downloads the corresponding product tracking management tree from the blockchain platform. After parsing, it is found that the motherboard's soldering process was completed by operator "Zhang San," and some data in the inspection process has edge values. Through this information, the manufacturing company can further investigate whether there are problems with the soldering process or inspection procedures, and at the same time clarify the responsible party.
[0071] This invention addresses the problem of traditional static QR codes being unable to dynamically update information by updating the initial information of the QR code at each production process node based on a preset first processing result and an actual second processing result, as well as a preset first processing user and a preset second processing user operating the processing equipment. On one hand, by associating the preset first processing user and the actual second processing user information with product information and updating it in the QR code, a complete personnel operation record is established. When a product malfunctions, the corresponding processing user information can be directly obtained by scanning the QR code, quickly and accurately tracing back to the specific processing stage and responsible personnel, thus improving the efficiency and accuracy of accountability.
[0072] In one embodiment, steps 401 to 405 are described as follows:
[0073] Step 401: Create a root node based on the product coding information, and create multiple child nodes for 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.
[0074] Optionally, the product tracking management system extracts product coding information from the second target information, such as product model and specifications, which are key data with unique identifiers, to create the root node of the product tracking management tree, serving as the starting point of the entire tree structure. Further, the product tracking management system creates multiple sub-nodes according to pre-defined classification rules. Among these, the production information node stores basic production data for the product, such as raw material batches and production dates; the first and second processing nodes correspond to information about different processing stages; the processing comparison node records comparison data of processing results; the equipment information node stores relevant parameters of the processing equipment; the processing route node marks the flow path of the vehicle between various processing devices; the first and second user nodes respectively store information about preset processing users and actual processing users; and the user association node is used to establish the correspondence between the two types of user information.
[0075] Continuing with the example of the smartphone motherboard "SMB-001", the product tracking management system extracts the model "SMB-001" and specifications "10cm×8cm" as the root node information. Next, it creates sub-nodes: the production information node stores the raw material batch "RB-202401" and production date "2024-01-01"; the first processing node (welding stage) pre-stores welding temperature and time standards; the second processing node (assembly stage) reserves assembly process standards; and the processing comparison node, equipment information node, processing route node, first user node, second user node, and user-related node are created and have data entry space reserved.
[0076] Step 402: Determine the processing comparison result based on the first processing result and the second processing result, and determine the user comparison result based on the first processing user and the second processing user.
[0077] 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 to determine the processing comparison result, i.e. whether the processing is qualified and the degree of deviation.
[0078] Furthermore, the product tracking and management system performs matching analysis on 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 obtain the user comparison results.
[0079] Continuing with the smartphone motherboard soldering process, the preset soldering temperature of 250℃±5℃ (first processing result) and the actual soldering temperature of 252℃ (second processing result) were compared. It was determined that the actual temperature was within the standard range, and the processing comparison result was "soldering temperature qualified". The preset processing user "soldering team A" (first processing user) and the actual processing user "Zhang San" (second processing user) were compared, and the user comparison result was determined to be "Zhang San belongs to welding team A".
[0080] Step 403: Based on the processing comparison results, establish the processing node connection relationship between the first processing node, the second processing node and the processing comparison node, and based on the user comparison results, establish the user node connection relationship between the first user node, the second user node and the user-associated node.
[0081] Furthermore, the product tracking and management system establishes processing node connections between the first processing node, the second processing node, and the processing comparison node based on the processing comparison results, as described in steps 4031 to 4033. Furthermore, the product tracking and management system establishes user node connections between the first user node, the second user node, and the user-associated node based on the user comparison results, as described in steps 4034 to 4036.
[0082] Step 404: Establish the connection relationship between the first processing node, the second processing node, and the processing route node based on the processing route of the vehicle.
[0083] Furthermore, the product tracking and management system establishes the connection relationship between the first processing node, the second processing node, and the processing route node based on the processing route of the vehicle, as described in steps 4041 to 4043.
[0084] Step 405: Generate the product tracking management tree for the vehicle based on the connections between each sub-node, processing node, user node, and processing route node.
[0085] Furthermore, the product tracking management system integrates the created sub-nodes with the established processing node connections, user node connections, and processing route node connections. Through a tree structure construction algorithm, these nodes and connections are combined into a product tracking management tree. Each node and connection in the tree carries key information in the product production process, facilitating subsequent querying and traceability.
[0086] Continuing with the above embodiments, the root node (SMB-001 model, etc.), each child node (production information, processing node, user node, etc.), and the various connection relationships established above are integrated to ultimately generate a product tracking management tree with the root node at the top and each child node distributed in an orderly manner through different connection relationships. For example, starting from the root node, one can view raw material batches along the production information node, trace the process from welding to assembly along the processing route connection relationship, and identify the operators at each stage along the user connection relationship.
[0087] The embodiments of this invention construct a product tracking management tree, so the problem link can be quickly located by traversing the tree structure. For example, starting from the root node, the specific processing equipment, operator and processing parameters can be traced according to the processing route connection relationship and the processing node connection relationship, which improves the efficiency and accuracy of responsibility tracing.
[0088] In one embodiment, steps 4031 to 4033 are described as follows:
[0089] Step 4031: Create a processing result node. The processing result node is used to store the processing comparison results.
[0090] Optionally, when establishing the connection relationship between processing nodes, the product tracking management system creates a processing result node. This node serves as an independent data storage unit, used to store the processing comparison results obtained in step 402, including key information such as whether the processing is qualified and the deviation values between actual parameters and standard parameters. By establishing this node, the processing comparison results are centrally managed, facilitating the subsequent construction of connection relationships between nodes based on these results. This makes the information structure related to processing results in the product tracking management tree clearer and more hierarchical.
[0091] Continuing in the soldering process of the smartphone motherboard, after the product tracking management system obtains the processing comparison result of the soldering temperature, "Soldering temperature is qualified, actual temperature is 252℃, within the standard range of 250℃±5℃", it creates a processing result node and stores the above processing comparison result completely in the node.
[0092] Step 4032: If the processing comparison result is consistent with the first processing result and the second processing result, then establish a bidirectional node connection relationship with the processing result node as the child node of the first processing node, the second processing node and the processing comparison node, and establish a bidirectional node connection relationship between the first processing node and the second processing node and the processing comparison node respectively.
[0093] Furthermore, when the processing comparison result is determined to be consistent with the first processing result (preset processing standard) and the second processing result (actual processing data), the product tracking management system establishes a bidirectional node connection relationship between the first processing node, the second processing node, and the processing comparison node, using the processing result node as the hub. This bidirectional connection means that starting from any node, one can access the other two nodes through the connection path, reflecting the close correlation between standards, actual conditions, and result judgment during the processing process. Simultaneously, the product tracking management system also establishes bidirectional node connections between the first and second processing nodes and the processing comparison node, further strengthening data interaction and traceability paths between nodes. This allows for the rapid acquisition of complete processing information from multiple perspectives within the product tracking management tree.
[0094] Continuing with the smartphone motherboard soldering process, the actual soldering temperature comparison results show that the temperature matches the standard temperature. The product tracking and management system uses the processing result node storing "solder than acceptable soldering temperature" as a sub-node, establishing bidirectional connections between the first processing node (preset soldering standard: soldering temperature 250℃±5℃), the second processing node (starting point of subsequent assembly steps), and the processing comparison node: First processing node ⇄ Processing result node ⇄ Second processing node, First processing node ⇄ Processing comparison node, Second processing node ⇄ Processing comparison node. In this way, when tracing the soldering process, comprehensive information on standards, actual temperatures, and result judgments can be quickly obtained through these bidirectional connections.
[0095] Step 4033: If the processing comparison result is inconsistent between the first processing result and the second processing result, 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 between the first processing node and the second processing node pointing to the processing comparison node respectively.
[0096] 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. This node is used to record the specific differences between the actual processing result and the preset standard, such as parameter values that exceed the standard range, the type of difference, etc.
[0097] Furthermore, the product tracking and management system uses processing difference nodes as sub-nodes and establishes a bidirectional node connection between the first and second processing nodes, indicating that the two processing stages are related due to processing differences. Simultaneously, it establishes unidirectional node connections between the first and second processing nodes, each pointing to a processing comparison node, clarifying the information flow from the processing process to the result judgment.
[0098] Continuing with the smartphone motherboard soldering process, the actual soldering temperature reached 260℃, exceeding the standard range of 250℃±5℃. The product tracking and management system created a processing discrepancy node, recording "Abnormal soldering temperature, actual temperature 260℃, exceeding the standard range." Then, using the processing discrepancy node as a sub-node, a bidirectional connection was established between the first processing node (the preset soldering standard) and the second processing node (the starting point of subsequent assembly steps): First processing node ⇄ Processing discrepancy node ⇄ Second processing node; simultaneously, unidirectional connections were established: First processing node → Processing comparison node, Second processing node → Processing comparison node. Through these connections, the abnormal soldering temperature and its relationship with subsequent steps can be clearly seen during traceability.
[0099] This invention constructs a dynamic and logically rigorous processing node connection network based on processing comparison results. Therefore, when the processing result is normal, the closed-loop structure formed by bidirectional connections ensures efficient data interaction and traceability between processing standards, actual conditions, and result judgments. When discrepancies occur in the processing, the introduction of discrepancy nodes and the unidirectional connection design accurately locate the source of the anomaly and clearly present the impact path. Thus, when product quality issues arise, the anomaly point in the specific processing stage can be quickly located, such as the path from the root node to the processing comparison node. Combined with the node connection relationships, it can quickly determine which processing stage's actual result does not conform to the standard, improving the efficiency and accuracy of product quality problem traceability.
[0100] In one embodiment, steps 4034 to 4036 are described as follows:
[0101] Step 4034: Create a user results node. The user results node is used to store user comparison results.
[0102] Optionally, when processing user node connection relationships, the product tracking management system first creates a user result node. This node serves as a dedicated data storage unit to store the user comparison results obtained in step 402, including key information such as whether the preset processing user and the actual processing user are consistent, and their association attributes (such as their work group, division of responsibilities, etc.).
[0103] Therefore, it can be understood that by establishing independent user result nodes, the embodiments of the present invention centrally manage user comparison information, providing a clear data foundation for the subsequent construction of connection relationships between nodes, making the information structure related to users in the product tracking management tree more organized and easier to trace.
[0104] 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 soldering team A", it creates a user result node and stores the user comparison result completely in the node.
[0105] Step 4035: If the user comparison result is that the first processing user and the second processing user are the same, then establish a bidirectional node connection relationship with the user result node as the child node of the first user node, the second user node and the user associated node, and establish a bidirectional node connection relationship between the first user node and the second user node and the user associated node respectively.
[0106] Furthermore, when the user comparison result shows that the first processing user (the preset processing user) and the second processing user (the actual processing user) are consistent, the product tracking and management system determines that, using the user result node as the hub, a bidirectional node connection relationship is established between the first user node, the second user node, and the user's associated nodes. This bidirectional connection means that starting from any node, the other two nodes can be accessed through the connection path, reflecting the close connection between the preset user, the actual user, and their associated relationships. Simultaneously, the product tracking and management system also establishes bidirectional node connections between the first and second user nodes and the user's associated nodes, further strengthening the data interaction and traceability paths between nodes. This allows for the rapid acquisition of complete information about the user's participation in the processing process from multiple perspectives within the product tracking and management tree.
[0107] Continuing with the smartphone motherboard soldering process, if the preset processing user is "Soldering Team A," and the actual processing user "Zhang San" also belongs to "Soldering Team A," then the two are identical. The product tracking and management system uses the user result node storing "Zhang San belongs to Soldering Team A" as a child node, establishing bidirectional connections between the first user node (Soldering Team A), the second user node (Zhang San), and user-related nodes: First User Node ⇄ User Result Node ⇄ Second User Node, First User Node ⇄ User-Related Node, Second User Node ⇄ User-Related Node. In this way, when tracing user information in the soldering process, comprehensive information about the preset user, the actual user, and their relationships can be quickly obtained through these bidirectional connections.
[0108] Step 4036: If the user comparison result is inconsistent between the first processing result and the second processing result, 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 between the first user node and the second user node pointing to the user's associated node, respectively.
[0109] Furthermore, if the user comparison result indicates 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 not belonging to the preset team, or the user's responsibilities not matching the preset.
[0110] Furthermore, the product tracking and management system uses user difference nodes as child nodes and establishes a bidirectional node connection between the first user node and the second user node, indicating that the two user nodes are related due to user differences. Simultaneously, the system establishes unidirectional node connections between the first and second user nodes, each pointing to a user-related node, clearly defining the information flow from the user's actual situation to the relationship between the two. This allows the product tracking and management tree to clearly present the specific details of user differences and the process of determining the relationship, facilitating subsequent accountability and personnel management.
[0111] Continuing the smartphone motherboard soldering process, the pre-defined processing user is "Soldering Team A," while the actual processing user is "Li Si," who does not belong to "Soldering Team A." Therefore, the product tracking management system creates a user discrepancy node, recording "The actual processing user, Li Si, does not belong to the pre-defined processing user, Soldering Team A." Then, using the user discrepancy node as a child node, a bidirectional connection is established between the first user node (Soldering Team A) and the second user node (Li Si): First User Node ⇄ User Discrepancy Node ⇄ Second User Node; simultaneously, unidirectional connections are established: First User Node → User Association Node, Second User Node → User Association Node. Through these connections, during traceability, the discrepancy between users in the soldering process and the relationship determination can be clearly seen.
[0112] This invention constructs a flexible and logically rigorous user node connection system based on user comparison results. When user comparison results are consistent, the closed network formed by bidirectional connections ensures efficient information exchange and traceability between the preset user, the actual user, and their associated relationships. When user discrepancies occur, the introduction of user discrepancy nodes and the unidirectional connection design accurately locate the source of the user discrepancy and clearly present the impact path. Therefore, when product quality problems or responsibility determination are needed, user information at specific processing stages can be quickly located, such as the path from the root node to the user's associated node. Combined with node connection relationships, it can be quickly determined which processing stage's actual operating user does not match the preset user, improving the efficiency and accuracy of locating personnel factors in product quality traceability and enhancing the efficiency and accuracy of responsibility tracing.
[0113] In one embodiment, steps 4041 to 4043 are described as follows:
[0114] Step 4041: Based on the processing method, processing area, and processing sequence of the processing route, the processing route is segmented into segments, and sub-route nodes are created for each segment. Each sub-route node includes a route number, start position, end position, estimated time, and actual time.
[0115] Optionally, the product tracking and management system acquires the processing route information of the vehicle, including the processing methods used (such as welding, assembly, and testing), the processing areas traversed (different workshops or workstations), and the processing sequence. Further, based on this information, the product tracking and 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 and 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 start and end positions define the spatial range of the sub-route; the estimated time is set according to the process standards, indicating the theoretically required processing time for the sub-route; and the actual time is recorded as the time consumed by the sub-route in actual production. In this way, the complex processing route is decomposed into a structured set of sub-route nodes.
[0116] Continuing in the smartphone motherboard production process, the carrier's processing route is: "Chip soldering in soldering workshop A → Motherboard assembly in assembly workshop B → Functional testing in testing workshop C." The product tracking and management system divides this into three sub-routes based on the processing method and area: the first segment is chip soldering in soldering workshop A, the second segment is motherboard assembly in assembly workshop B, and the third segment is functional testing in testing workshop C. The system created sub-route nodes for these three sub-routes: Sub-route node 1, with route number "R01", starts at welding station 1 in welding workshop A and ends at welding station 5 in welding workshop A, with an estimated time of 30 minutes and an actual time of 28 minutes; Sub-route node 2, with route number "R02", starts at assembly station 1 in assembly workshop B and ends at assembly station 8 in assembly workshop B, with an estimated time of 40 minutes and an actual time of 42 minutes; Sub-route node 3, with route number "R03", starts at inspection station 1 in inspection workshop C and ends at inspection station 3 in inspection workshop C, with an estimated time of 20 minutes and an actual time of 22 minutes.
[0117] Step 4042: Establish a bidirectional node connection relationship with each sub-route node as a child node of the processing route node.
[0118] Furthermore, the product tracking and management system treats each sub-route node as a child node of the processing route node, establishing a bidirectional node connection between them. This bidirectional connection means that the processing route node and each sub-route node can access each other, allowing the processing route node to oversee all sub-route node information, while the sub-route nodes can also provide detailed data back to the processing route node.
[0119] Continuing with the three sub-route nodes (R01, R02, R03) of the aforementioned smartphone motherboard production, they are treated as child nodes of the processing route node, and a bidirectional connection is established: Processing route node ⇄ Sub-route node 1 (R01), Processing route node ⇄ Sub-route node 2 (R02), Processing route node ⇄ Sub-route node 3 (R03). Therefore, by clicking on the processing route node, detailed information about each sub-route node can be viewed, including route number, location, and time consumption; one can also quickly trace back to the processing route node from the sub-route node to understand its position and subordinate relationship in the entire processing route.
[0120] 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, then establish a bidirectional node connection relationship with the sub-route node as a child node of the first processing node and / or the second processing node.
[0121] Furthermore, the product tracking and management system traverses all sub-route nodes. For any target sub-route node, it determines whether there is a correlation between that sub-route node and the first processing result (preset processing standard) and / or the second processing result (actual processing data). If a correlation exists, the product tracking and management system establishes a bidirectional node connection relationship by using that sub-route node as a child node of the first processing node and / or the second processing node. This connection relationship tightly integrates the specific sub-routes in the processing route with the standards and actual conditions during the processing process. This allows for rapid location of related processing stage information from the perspective of the processing route within the product tracking and management tree, and conversely, it also allows tracing back from the processing stage to its location on the processing route, achieving deep integration and bidirectional traceability of processing route and processing process information.
[0122] Continuing in the production of smartphone motherboards, sub-route node 1 (R01) corresponds to the chip soldering stage. The actual soldering temperature (second processing result) of this stage is correlated with the preset soldering temperature standard (first processing result). The product tracking and management system establishes a bidirectional connection relationship between sub-route node 1 (R01) and the first processing node (preset soldering standard) and the second processing node (actual soldering data): First processing node ⇄ Sub-route node 1 (R01) ⇄ Second processing node. In this way, when tracing the processing status of the soldering stage, not only can the standard and actual processing data of this stage be viewed, but the sub-route node 1 (R01) in the processing route can also be quickly located through the connection relationship to understand the position of the soldering stage in the entire processing route and the connection between the preceding and following processes; conversely, detailed information about the related soldering processing stages can also be traced from sub-route node 1 (R01).
[0123] This invention utilizes route segmentation and sub-route node creation to transform complex processing routes into structured data. By establishing bidirectional node connections, multi-dimensional associations are achieved between processing route nodes and sub-route nodes, and between sub-route nodes and processing stage nodes. Therefore, it enables efficient bidirectional traceability of processing routes and process information. When product quality issues arise, by searching processing route nodes and combining the connections between sub-route nodes and processing stage nodes, the specific processing route location and corresponding processing stage where the problem occurred can be quickly pinpointed. Simultaneously, information such as standard and actual processing data, estimated and actual processing time, etc., for that stage can be obtained. Conversely, the processing route can also be traced back from the processing stage node, facilitating analysis of whether the problem is related to route arrangement, process connection, or other factors. This provides comprehensive and efficient data support for production process optimization, quality problem investigation, and responsibility determination.
[0124] In one embodiment, steps 406 to 409 are described as follows:
[0125] Step 406: The product code information of the product to be processed is split according to a preset length to obtain grouped number information, and each grouped number information is encoded based on random base encoding to obtain the converted code of the product code information.
[0126] Optionally, the product tracking management system splits the product coding information into multiple groups according to a pre-set length, and then randomly selects a base (such as binary, octal, hexadecimal, etc.) for each group to convert the encoding, resulting in a converted code. This random base encoding method increases the complexity and randomness of encryption, making the code more difficult to crack. Simultaneously, by maintaining a random number generator and a base mapping table, it ensures that the base selection during each encryption is random and traceable.
[0127] Continuing with the X100 smartphone, its product code is "X100-20241201-001". The preset split length is 4 digits, dividing the code into four groups: "X100", "2024", "1201", and "001". A base is randomly assigned to each group: the first group uses hexadecimal encoding, the second uses binary encoding, the third uses octal encoding, and the fourth uses decimal encoding. After encoding conversion, the resulting codes are "3334", "11111100100", "2701", and "1".
[0128] Step 407: Perform a hash operation on the product code information to obtain a hash value, and retrieve the corresponding number of bits of the hash string from the hash value according to the length of the product code information.
[0129] Furthermore, the product tracking and management system performs a hash operation on the original product code information, generating a fixed-length hash value using a secure hash algorithm (such as SHA-256). Further, based on the length (number of characters) of the product code information, the system extracts a hash string of a corresponding length from the hash value. This extraction method associates the hash string with the product code length, increasing the encryption's relevance and complexity. Therefore, the product tracking and management system determines the starting position and length of the extraction by calculating the number of characters in the product code, ensuring consistency and repeatability of each extraction.
[0130] Continuing with the above embodiment, for the product code information "X100-20241201-001", its length is 16 characters. Using the SHA-256 algorithm to hash this product code information yields 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 extracted to obtain the hash string "e2b5d7a9c8d1e2f3".
[0131] 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 encoding based on the number of nodes, and obtain the second encryption key at the corresponding position in the hash string.
[0132] Furthermore, the product tracking management system traverses each target node in the product tracking management tree, counting the number of nodes it connects to. For each target node, based on the number of connections, the system extracts the character or number at the corresponding position in the converted encoding as the first encryption key. Simultaneously, it extracts the character at the corresponding position in the hash string as the second encryption key, thus associating the encryption key of each node with the tree structure, increasing the specificity and security of the encryption.
[0133] Continuing with the above embodiment, in the product tracking management tree, for example, the "first processing node" connects to 3 nodes. Based on the connection count of 3, the character "3" is extracted from the 3rd position of the first group "3334" in the converted encoding "3334", "11111100100", "2701", and "1", and used as the first encryption key. The character "b" is extracted from the 3rd position of the hash string "e2b5d7a9c8d1e2f3" and used as the second encryption key. For other target nodes, the corresponding characters are extracted from the converted encoding and hash string according to the number of nodes they are connected to, and their respective encryption keys are generated.
[0134] Step 409: Encrypt the target node based on the first encryption key and the second encryption key to obtain the encrypted tracking management tree.
[0135] Furthermore, the product tracking management system encrypts the target node according to the first encryption key and the second encryption key to obtain the encrypted tracking management tree, as described in steps 4091 to 4094.
[0136] This invention combines product coding splitting with hash operations to generate encryption keys related to tree structures, which greatly improves encryption security and anti-cracking capabilities. Even if some keys or data are stolen, attackers cannot recover the complete information, effectively protecting sensitive data in the product processing process and providing reliable security for product tracking and management.
[0137] In one embodiment, steps 4091 to 4094 are described as follows:
[0138] Step 4091: Based on the character encoding table, convert the second encryption key into the corresponding key number, and convert the first encryption key and the key number into binary to obtain the first converted value and the second converted value.
[0139] Optionally, the product tracking management system uses a character encoding table (such as ASCII or Unicode) to convert the characters corresponding to the second encryption key into numerical form to obtain the key number. It should be noted that if the second encryption key is a number, it does not need to be converted through a character encoding table and can be used directly.
[0140] 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 forms into binary data to obtain the first converted value and the second converted value, respectively. Continuing with the above embodiment, the first encryption key of the "first processing node" is "3", and the second encryption key is "b". Using the ASCII encoding table, the character "b" is converted into the corresponding value 98 to obtain the key number. The first encryption key "3" is converted into binary "0011" to obtain the first converted value. The key number 98 is converted into binary "01100010" to obtain the second converted value.
[0141] Step 4092: After performing a phase shift operation on each bit of the first converted value and the corresponding bit of the second converted value, the bits are superimposed on the second converted value to obtain the mixed key.
[0142] Furthermore, the product tracking and management system performs a phase shift operation on each bit of the first transformed value and the corresponding bit of the second transformed value, that is, changes the position of each bit of the first transformed value according to a specific rule. Further, the product tracking and management system performs a bit-by-bit superposition operation on the first transformed value after the phase shift operation and the second transformed value, adding the values of corresponding bits (if the result is greater than 1, a modulo operation is performed), thereby generating a hybrid key. This fully integrates the two keys, increasing the complexity and randomness of the key.
[0143] Continuing with the above embodiment, for the first converted value "0011" and the second converted value "01100010", the phase offset rule is to swap the first two bits and the last two bits of the first converted value to obtain "1100". Then, bit superposition operation is performed, calculated sequentially from the least significant bit to the most significant bit: 0+0=0, 0+1=1, 1+0=1, 1+1=10 (0 after modulo, carry 1), 1+0+1 (carry)=10 (0 after modulo, carry 1), 0+0+1 (carry)=1, 1+1=10 (0 after modulo, carry 1), 0+0+1 (carry)=1, resulting in the mixed key "10000101".
[0144] Step 4093: Using the hybrid key as the initial value of chaos, after a preset number of chaotic iterations, the results of each chaotic iteration are combined to obtain the expanded hybrid key.
[0145] Furthermore, the product tracking and management system uses the hybrid key as the initial value of the chaotic system. This chaotic system employs chaotic algorithms such as the Logistic mapping, performing iterative calculations according to a preset number of iterations. Each iteration generates a new numerical result, and the product tracking and management system combines these results in a specific order to form the expanded hybrid key. Due to the initial value sensitivity and iterative complexity of the chaotic system, the expanded hybrid key exhibits high randomness and unpredictability.
[0146] Continuing with the above embodiments, taking the Logistic Mapping Chaos Algorithm as an example, its formula is: ,in, For control parameters (such as) =3.9), For the first The value of the next iteration. Convert the mixed key "10000101" to the decimal number 133, and then normalize it to the interval [0, 1] (e.g., 133 / 256 ≈ 0.52), which is used as the initial value for chaos. The preset number of iterations is 5. The iterations will proceed as follows: =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 the result of each iteration into binary and combine them to obtain the expanded mixed key (e.g., "1100101011110010").
[0147] Step 4094: Associate the expanded hybrid key with the target node to obtain the encrypted tracking management tree.
[0148] Furthermore, the product tracking and management system associates the expanded hybrid key with the original data of the target node. Specifically, this can be achieved through encryption methods such as XOR operations, permutations, or direct fusion of the target node data, integrating the expanded hybrid key into the target node data to encrypt the target node. This process is repeated for all target nodes in the product tracking and management tree to obtain the encrypted tracking and management tree.
[0149] Continuing with the above embodiment, for the "first processing node," its original data is "XX," which is converted into binary data (e.g., "0101001..."). The expanded mixing key "1100101011110010" is XORed with this binary data to obtain the encrypted data. The same operation is performed on other target nodes in the product tracking management tree to complete the encryption of the entire tree, resulting in the encrypted tracking management tree.
[0150] The embodiments of the present invention significantly improve the security of the encrypted tracking management tree through multi-step key transformation and chaotic expansion. Even if an attacker obtains part of the encrypted data and algorithm, it is difficult to crack the original information, thus providing a reliable guarantee for the secure storage and transmission of product processing information.
[0151] Furthermore, the product identification and tracking management system based on QR codes provided by the present invention will be described below. The product identification and tracking management system based on QR codes described below can be referred to in correspondence with the product identification and tracking management method based on QR codes described above.
[0152] Optional, refer to Figure 2 , Figure 2 This is a schematic diagram of the structure of the QR code-based product identification and tracking management system provided by the present invention. The QR code-based product identification and tracking management system includes:
[0153] The QR code generation module 210 is used to generate a QR code based on the product information of the product to be processed, and to package the QR code onto the surface of the carrier corresponding to the product to be processed based on the QR code device.
[0154] The first information update module 220 is used to transport the carrier to the processing equipment for product processing according to the preset production process nodes, and update the initial information of the QR code based on the preset first processing result of the production process node and the second processing result of the processing equipment to obtain the first target information;
[0155] The second information update module 230 is used to update the first target information based on the first processing user and the second processing user who operates the processing equipment to process the product, according to the preset production process node, so as to obtain the second target information.
[0156] The product tracking management tree generation module 240 is used to generate a product tracking management tree for the vehicle based on the second target information after the vehicle is processed, and then encrypt the product tracking management tree and upload it to the blockchain platform.
[0157] The user tracking module 250 is used to track the corresponding processing user by scanning the QR code with a QR code-based product tracking management tree if there is an abnormality in the product to be processed.
[0158] This invention addresses the problem of traditional static QR codes being unable to dynamically update information by updating the initial information of the QR code at each production process node based on a preset first processing result and an actual second processing result, as well as a preset first processing user and a preset second processing user operating the processing equipment. On one hand, by associating the preset first processing user and the actual second processing user information with product information and updating it in the QR code, a complete personnel operation record is established. When a product malfunctions, the corresponding processing user information can be directly obtained by scanning the QR code, quickly and accurately tracing back to the specific processing stage and responsible personnel, thus improving the efficiency and accuracy of accountability.
[0159] Please see Figure 3 , Figure 3 This is a schematic diagram illustrating an embodiment of the electronic device provided in this invention. For example... Figure 3 As shown, this embodiment of the 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, it performs the following steps:
[0160] A QR code is generated based on the product information of the product to be processed, and the QR code is packaged onto the surface of the carrier corresponding to the product to be processed using a QR code device.
[0161] According to the preset production process nodes, the carrier is transported to the processing equipment for product processing. Based on the first processing result preset by the production process nodes and the second processing result of the processing equipment, the initial information of the QR code is updated to obtain the first target information.
[0162] Based on the preset production process nodes, the first processing user and the second processing user who operates the processing equipment to process the product update the first target information to obtain the second target information;
[0163] 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.
[0164] If there is an anomaly in the product to be processed, the corresponding processing user is tracked by scanning the QR code using a QR code-based product tracking management tree.
[0165] It should be noted that the descriptions of each embodiment in the above embodiments have different focuses. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0166] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0167] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations 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, special-purpose computer, embedded computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A system that specifies functions in one or more boxes.
[0168] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including an instruction set implemented in a process. Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0169] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0170] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including both the preferred embodiments and all changes and modifications falling within the scope of the invention.
[0171] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.
Claims
1. A product identification, tracking, and management method based on QR codes, characterized in that, include; A QR code is generated based on the product information of the product to be processed, and the QR code is packaged onto the surface of the 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 nodes. The initial information of the QR code is updated based on the first processing result preset by the production process nodes and the second processing result of the processing equipment to obtain the first target information. The first target information is updated 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; 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 the product to be processed is abnormal, the QR code is scanned by the QR code device to track the corresponding processing user based on the product tracking management tree of the QR code; The product information includes product coding information and production information; The step of generating the product tracking management tree for the vehicle based on the second target information includes: A root node is created based on the product coding information, and multiple child nodes are created from 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; The processing comparison result is determined based on the first processing result and the second processing result, and the user comparison result is determined based on the first processing user and the second processing user; Based on the processing comparison results, establish the processing node connection relationship between the first processing node, the second processing node, and the processing comparison node, and establish the user node connection relationship between the first user node, the second user node, and the user-associated node based on the user comparison results; Based on the processing route of the vehicle, establish the processing route node connection relationship between the first processing node, the second processing node and the processing route node; Based on the connections between each child node, processing node, user node, and processing route node, a product tracking management tree for the vehicle is generated.
2. The product identification and tracking management method based on QR codes according to claim 1, characterized in that, The step of establishing the 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: Create a processing result node; the processing result node is used to store processing comparison results. If the processing comparison result is consistent with the first processing result and the second processing result, then 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 bidirectional node connections are established between the first processing node and the second processing node and the processing comparison node, respectively; or, If the processing comparison result is inconsistent between the first processing result and the second processing result, 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 between the first processing node and the second processing node pointing to the processing comparison node respectively.
3. The product identification, tracking, and management method based on QR codes according to claim 1, characterized in that, The step of establishing user node connection relationships among the first user node, the second user node, and the user-associated node based on the user comparison results includes: Create a user result node; the user result node is used to store user comparison results; If the user comparison result shows that the first processing user and the second processing user are the same, then 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-associated node, and bidirectional node connections are established between the first user node and the second user node and the user-associated node respectively; or, If the user comparison result is inconsistent between the first processing result and the second processing result, a user difference node is created. The user difference node is used as a child node of the first user node and the second user node to establish a bidirectional node connection relationship, and a unidirectional node connection relationship is established between the first user node and the second user node pointing to the user associated node respectively.
4. The product identification, tracking, and management method based on QR codes according to claim 1, characterized in that, The process of establishing the connection relationship between the first processing node, the second processing node, and the processing route node based on the processing route of the vehicle includes: Based on the processing method, processing area, and processing sequence of the processing route, the processing route is divided into segments, and sub-route nodes are created for each segment; each sub-route node includes a route number, start position, end position, estimated time, and actual time. Establish a bidirectional node connection relationship with each sub-route node as a child 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, then 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.
5. The product identification and tracking management method based on QR codes according to any one of claims 1 to 4, characterized in that, The specific process of encrypting the product tracking management tree includes: The product code information of the product to be processed is split according to a preset length to obtain grouped number information, and each grouped number information is encoded based on random base encoding to obtain the converted code of the product code information; Perform a hash operation on the product coding information to obtain a hash value, and extract a hash string of the corresponding number of bits from the hash value according to the length of the product coding information; 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 based on the number of nodes, and obtain the second encryption key at the corresponding position in the hash string; The target node is encrypted using the first encryption key and the second encryption key to obtain an encrypted tracking management tree.
6. The product identification and tracking management method based on QR codes according to claim 5, characterized in that, The step of encrypting the target node based on the first encryption key and the second encryption key to obtain the encrypted tracking management tree includes: Based on the character encoding table, the second encryption key is converted into the corresponding key number, and the first encryption key and the key number are converted into binary to obtain the first conversion value and the second conversion value. After performing a phase shift operation between each bit of the first converted value and the corresponding bit of the second converted value, the bits are then superimposed on the second converted value to obtain the mixed key. Using the hybrid key as the initial value of chaos, after a preset number of chaotic iterations, the results of each chaotic iteration are combined to obtain the expanded hybrid key; The expanded hybrid key is associated with the target node to obtain an encrypted tracking management tree.
7. A product identification and tracking management system based on QR codes, characterized in that, Applied to the product identification and tracking management method based on QR codes as described in any one of claims 1 to 6, the product identification and tracking management system based on QR codes includes: A QR code generation module is used to generate a QR code based on the product information of the product to be processed, and to package the QR code onto the surface of the carrier corresponding to the product to be processed using a QR code device. The first information update module is used to transport the carrier to the processing equipment for product processing according to the preset production process nodes, and update the initial information of the QR code based on the preset first processing result of the production process node and the second processing result of the processing equipment to obtain the first target information; The second information update module is used to update the first target information based on the first processing user and the second processing user who operates the processing equipment to process the product, according to the preset first processing user of the production process node, so as to obtain the second target information; The product tracking management tree generation module is used to generate a product tracking management tree for the vehicle based on the second target information after the vehicle has been 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 to track the corresponding processing user based on the product tracking management tree of the QR code. The product information includes product coding information and production information; The step of generating the product tracking management tree for the vehicle based on the second target information includes: A root node is created based on the product coding information, and multiple child nodes are created from 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; The processing comparison result is determined based on the first processing result and the second processing result, and the user comparison result is determined based on the first processing user and the second processing user; Based on the processing comparison results, establish the processing node connection relationship between the first processing node, the second processing node, and the processing comparison node, and establish the user node connection relationship between the first user node, the second user node, and the user-associated node based on the user comparison results; Based on the processing route of the vehicle, establish the processing route node connection relationship between the first processing node, the second processing node and the processing route node; Based on the connections between each child node, processing node, user node, and processing route node, a product tracking management tree for the vehicle is generated.
8. 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, characterized in that the processor, when executing the program, implements the product identification and tracking management method based on QR codes as described in any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium, wherein a computer software program is stored therein, characterized in that, When the processor executes the program, it implements the product identification and tracking management method based on QR codes as described in any one of claims 1 to 6.