Production traceability method, apparatus, device, storage medium, and product

By generating unique identifiers for lamination groups and inner layer codes, the limitations of local queries in existing traceability systems are overcome, enabling global traceability of the PCB manufacturing process and improving the traceability of production information.

CN121543901BActive Publication Date: 2026-05-29SHENZHEN SHENGDAKANG TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN SHENGDAKANG TECH CO LTD
Filing Date
2026-01-20
Publication Date
2026-05-29

Smart Images

  • Figure CN121543901B_ABST
    Figure CN121543901B_ABST
Patent Text Reader

Abstract

The application discloses a production tracing method, device, equipment, storage medium and product, relates to the technical field of PCB manufacturing, and the production tracing method comprises the following steps: in response to a tracing instruction triggered by a user end, determining an identification code related to a PCB board based on the tracing instruction; determining a pressing group unique identifier based on the identification code; determining the inner layer code of the inner layer plate of the PCB board based on the pressing group unique identifier; and performing upstream and downstream tracing based on the inner layer code to obtain production information. According to the application, the user only needs to scan any identification code related to the PCB board at the user end, can trigger the tracing instruction, and can determine the inner layer code of the inner layer plate of the PCB board based on the pressing group unique identifier corresponding to the identification code, so that global tracing can be performed from the inner layer code as a starting point after the inner layer is obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of PCB manufacturing technology, and in particular to a production traceability method, apparatus, equipment, storage medium, and product. Background Technology

[0002] Because the PCB manufacturing process involves multiple inner core boards being pressed together into a whole, drilling to form multiple outer units, and finally assigning an independent finished product code, the relationships between inner code, outer code, and finished product code are intricate. Existing traceability systems can usually only perform local queries based on a single code and cannot perform global traceability. Summary of the Invention

[0003] The main purpose of this application is to provide a production traceability method, apparatus, equipment, storage medium and product, which aims to solve the technical problem that existing traceability systems can usually only perform local queries based on a single code and cannot perform global traceability.

[0004] To achieve the above objectives, this application proposes a production traceability method, which includes:

[0005] In response to a traceability command triggered by the user terminal, an identification code related to the PCB board is determined based on the traceability command;

[0006] Based on the identification code, a unique identifier for the pressing assembly is determined;

[0007] Based on the unique identifier of the lamination group, the inner layer code of the inner layer board of the PCB board is determined;

[0008] Based on the inner code, upstream and downstream traceability is performed to obtain production information.

[0009] In one embodiment, the step of determining the identification code associated with the PCB board based on the tracing instruction triggered by the user terminal includes the following prior to:

[0010] When the inner layer board to be scanned is in the code reading area, the inner layer code of the inner layer board is scanned to obtain the original string;

[0011] Based on the original string, the production information of the inner layer board is recorded, wherein the production information includes inbound records and outbound records;

[0012] The inner layer board is laminated, and a PCB board is produced based on the laminated board.

[0013] Based on the production information, a unique identifier for the lamination group is generated, and the unique identifier for the lamination group is associated with all relevant identification codes of the PCB board.

[0014] In one embodiment, the step of laminating the inner layer board and producing a PCB board based on the laminated laminate includes:

[0015] Determine whether the lamination sequence of the inner layer is correct;

[0016] If correct, determine whether the currently scanned inner layer plate and the previously scanned inner layer plate belong to the same batch;

[0017] If it is, then when the number of the currently scanned inner layer plates meets the preset number of laminations, all the scanned inner layer plates are laminated to obtain a laminated plate.

[0018] Based on the laminate, a PCB board is produced.

[0019] In one embodiment, the original string includes a lamination sequence, and the step of determining whether the lamination order of the inner layer plate is correct includes:

[0020] Convert the lamination sequence of the inner layer plate and the lamination sequence of the inner layer plate from the previous scan into a preset standard format;

[0021] If the converted lamination sequence conforms to the preset ascending and descending order, then the lamination sequence of the inner layer plate is determined to be correct.

[0022] In one embodiment, the original string includes a part number, and the step of converting the lamination sequence of the inner layer plate and the lamination sequence of the previously scanned inner layer plate into a preset standard format includes:

[0023] Determine whether the currently scanned inner layer board is the first inner layer board in the current batch;

[0024] If so, then based on the part number, the work order information corresponding to the inner layer board is retrieved, wherein the work order information includes the layer structure, and the layer structure includes the number of laminations and the lifting sequence.

[0025] In one embodiment, the step of scanning the inner layer code of the inner layer board to obtain the original string when the inner layer board to be scanned is in the code reading area includes:

[0026] In response to a trigger operation on the inner code configuration page, obtain the code segment of the PCB board to be produced selected by the user;

[0027] Define the data type of the encoded segment and set the type parameter corresponding to the data type;

[0028] Based on the data type and the type parameter, an encoding rule is generated, and the encoding rule is associated with the part number of the PCB board to be produced;

[0029] Obtain work order information, determine the corresponding encoding rule based on the part number in the work order information, and construct the original string of the current inner layer board based on the encoding rule, wherein the original string is based on an invisible control character as a delimiter;

[0030] Based on the original string, the inner layer board is coded to obtain the inner layer code.

[0031] Furthermore, to achieve the above objectives, this application also proposes a production traceability device, which includes:

[0032] The response module is used to respond to a traceability command triggered by the user terminal and determine the identification code related to the PCB board based on the traceability command;

[0033] The first determining module is used to determine a unique identifier for the pressing group based on the identification code;

[0034] The second determining module is used to determine the inner layer code of the inner layer board of the PCB board based on the unique identifier of the lamination group.

[0035] The traceability module is used to trace upstream and downstream based on the inner code to obtain production information.

[0036] In addition, to achieve the above objectives, this application also proposes a production traceability device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the production traceability method as described above.

[0037] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the production traceability method described above.

[0038] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the production traceability method described above.

[0039] One or more technical solutions proposed in this application have at least the following technical effects:

[0040] Due to the complex physical and information transformations involved in PCB manufacturing—including the lamination of multiple inner core boards into a single unit, drilling to form multiple outer layer units, and finally assigning independent finished product codes—the relationships between inner layer codes, outer layer codes, and finished product codes are intricate. Existing traceability systems typically only allow for local queries based on a single code and cannot perform global traceability. This application responds to a traceability command triggered by the user terminal, determining an identification code related to the PCB board based on the command; determining a unique identifier for the lamination group based on the identification code; determining the inner layer code of the inner layer board of the PCB board based on the unique identifier of the lamination group; and performing upstream and downstream traceability based on the inner layer code to obtain production information. With this application, the user only needs to scan any identification code related to the PCB board at the user terminal to trigger a traceability command, and can then determine the inner layer code of the inner layer board of the PCB board based on the unique identifier of the lamination group corresponding to that identification code. After obtaining the inner layer, global traceability can be performed starting from the inner layer code. Attached Figure Description

[0041] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0042] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0043] Figure 1 This is a flowchart illustrating an embodiment of the production traceability method of this application.

[0044] Figure 2 This is a flowchart illustrating Embodiment 2 of the production traceability method of this application;

[0045] Figure 3 This is a schematic diagram of the module structure of the production traceability device according to an embodiment of this application;

[0046] Figure 4 This is a schematic diagram of the equipment structure of the hardware operating environment involved in the production traceability method in this application embodiment.

[0047] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0048] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.

[0049] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0050] The main solution of this application embodiment is: in response to a traceability command triggered by the user terminal, an identification code related to the PCB board is determined based on the traceability command; a unique identifier for the lamination group is determined based on the identification code; an inner layer code for the inner layer board of the PCB board is determined based on the unique identifier for the lamination group; and upstream and downstream traceability is performed based on the inner layer code to obtain production information.

[0051] Because the PCB manufacturing process involves multiple inner core boards being pressed together into a whole, drilling to form multiple outer units, and finally assigning an independent finished product code, the relationships between inner code, outer code, and finished product code are intricate. Existing traceability systems can usually only perform local queries based on a single code and cannot perform global traceability.

[0052] Users of this application only need to scan any identification code related to the PCB board on the user end to trigger a traceability command. Based on the unique identifier of the lamination group corresponding to the identification code, the inner layer code of the inner layer board of the PCB board can be determined. After obtaining the inner layer, global traceability can be performed starting from the inner layer code.

[0053] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device or production traceability device capable of performing the above functions. The following description uses a production traceability device as an example to illustrate this embodiment and the subsequent embodiments.

[0054] Based on this, the embodiments of this application provide a production traceability method, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the production traceability method of this application.

[0055] In this embodiment, the production traceability method includes steps S10 to S20:

[0056] Step S10: In response to a traceability command triggered by the user terminal, determine the identification code associated with the PCB board based on the traceability command;

[0057] It should be noted that the execution entity in this embodiment is the production traceability device. A traceability command refers to the user entering a QR code string in the unified search box of the traceability interface and triggering a search, or directly scanning a QR code string and triggering a search. The identification code includes at least several of the following related to the same physical PCB board, i.e., the printed circuit board at different production stages: inner core board code, outer panel (PNL) code, lamination group TransactionId (transaction identifier, i.e., transaction ID), laser engraving code, and final character inkjet printing code. After receiving the command, the production traceability device initiates an association query algorithm, starting with the input code, to search and calculate the set of all QR codes that have a direct or indirect binding relationship with it in the association database.

[0058] For example, when a quality engineer enters a final product inkjet code (such as "C20241205A001") from the final quality inspection (FQC) station into the search box of the end-to-end traceability interface and clicks the search button, a traceability instruction is triggered.

[0059] Step S20: Determine the unique identifier of the pressing group based on the identification code;

[0060] Understandably, the unique identifier for a lamination group refers to a globally unique associated number (i.e., TransactionId) automatically generated during the pre-lamination process when a group of multilayer core boards is correctly stacked and submitted. This identifier logically associates all inner layer core board codes in the same lamination operation and the resulting subsequent outer layer processing units at the database level. The production traceability device accurately locates the core unique identifier for the lamination group from among numerous associated identification codes, thereby locking onto the most critical physical conversion node (multilayer lamination) in PCB production.

[0061] Step S30: Determine the inner layer code of the inner layer board of the PCB board based on the unique identifier of the lamination group.

[0062] It should be noted that the production traceability device retrieves all associated records from the pressing and binding table, which stores the mapping relationship between the unique identifier of the pressing group and the inner layer code, and extracts the inner layer code field value from the record to obtain the inner layer code of the inner layer plate.

[0063] Step S40: Based on the inner code, upstream and downstream traceability is performed to obtain production information.

[0064] It is understood that production information refers to the set of structured and unstructured data obtained through the traceability operation, which includes at least: the code reading timestamps of each process, the operating equipment number, the operator's employee number, process parameters, quality inspection results (OK / NG and defective images), material batch information, holding time records, and rework / repair history. The production traceability device uses the inner layer code as the retrieval starting point and performs recursive or chained query operations in two directions in the system's relational database and time series database: upstream tracing refers to querying all process records that the inner layer code has undergone before its generation, such as material cutting, inner layer imaging, etching, etc.; downstream tracing refers to querying the subsequent processing records that the inner layer code has participated in after pre-lamination into a multilayer board, up to the final product, including its lamination group, the outer layer unit formed by drilling, laser engraving and inkjet printing processes, etc.

[0065] In one possible implementation, the following steps are included prior to step S10:

[0066] When the inner layer board to be scanned is in the code reading area, the inner layer code of the inner layer board is scanned to obtain the original string;

[0067] It should be noted that the reading area refers to a specific physical area on the pre-lamination and bonding station operating table, covered by the field of view of a fixed industrial barcode reader, and determined by engineering planning. When the inner layer board is placed in this area, it ensures that the QR code on its surface is clearly and completely identified. When the inner layer board to be scanned is in the reading area, the production traceability device triggers the fixed barcode reader, whose built-in image acquisition and decoding module automatically captures and parses the QR code image to obtain the character sequence directly encoded by the QR code printed on the inner layer board, i.e., the original string.

[0068] Furthermore, the production traceability device uses a persistent background service to automatically poll the database every 10 seconds for all active barcode reader devices (device identifier IP + port number) to achieve the following:

[0069] Add a device → Automatically create a Transmission Control Protocol (TCP) long connection and bring it online immediately;

[0070] Disable / remove device → Automatically disconnect and release resources;

[0071] The ability to instantly bring hundreds of barcode readers online or offline without restarting the system completely solves the industry problem of traditional systems requiring a complete restart of the entire MES (Manufacturing Execution System) to change the IP address of a single barcode reader.

[0072] Furthermore, each reader connection independently implements the following five-fold protection mechanism:

[0073] Automatic reconnection + Exponential backoff (5s→10s→…→60s maximum);

[0074] Heartbeat keep-alive (sends empty packet every 20 seconds, triggers reconnection immediately upon failure);

[0075] The receive thread, send thread, and flush thread are completely independent; a crash in any one of them will not affect the others.

[0076] Using SemaphoreSlim (lightweight semaphore) ensures that only one reconnection process is executed at a time, avoiding reconnection storms;

[0077] All network operations use local variable references, completely eliminating null pointer exceptions after Dispose.

[0078] Furthermore, the data read by the code reader first enters a thread-safe ConcurrentQueue, which, in conjunction with a dedicated background Flush task, enables the following:

[0079] Normal procedure: Batch writes to Redis (cache) every 30 seconds;

[0080] Peak periods: Batch writes are triggered immediately when the queue accumulates 50 entries;

[0081] During network outages: 100% of data is cached in a memory queue;

[0082] After the connection is restored: batch writing will resume automatically, without loss or duplication;

[0083] Even if the process is forcibly terminated, the last Dispose will trigger a Flush to ensure that no data is lost to the greatest extent. In actual production line deployment, it has achieved a record of zero missed scans for 10 consecutive months.

[0084] Based on the original string, the production information of the inner layer board is recorded, wherein the production information includes inbound records and outbound records;

[0085] Understandably, the scanning of the production traceability device occurs at the inlet barcode reader of the pre-stack station, and a record is created in the "Inbound Record Table" of the database. A few minutes later, when the board is scanned again at the outlet barcode reader of the station after pre-stacking is completed, the system will match the inbound record with the status of "on the station" based on the QR code and the station, and automatically update it to obtain the production information associated with the original string.

[0086] Specifically, as soon as each PCB is scanned by the inbound barcode reader, the production traceability device immediately and automatically creates a control record with a QR code, inbound time, and inbound equipment. When the board is scanned by the corresponding outbound barcode reader, the system automatically matches the earliest unclosed inbound record, fills in the outbound time, and immediately calculates the actual dwell time. It is then compared with the preset control interval, and any timeouts or premature entries are marked as abnormal and written into the alarm table.

[0087] Furthermore, a pre-defined control zone is established:

[0088] Ordinary workstations use a fixed time interval (such as "30min-8h" or "2h-24h");

[0089] The surface treatment and other wiring stations automatically calculate and control the time in real time according to "line length ÷ line speed ± 1 minute", and automatically change it according to the line speed.

[0090] The method of automatically switching high-frequency materials (part numbers starting with U61) to a more stringent special time interval completely solves the misjudgment problem caused by the "one-size-fits-all" time configuration of traditional systems, and achieves accurate coverage of different processes, different materials and different line speeds.

[0091] Furthermore, the production traceability device accepts the official traceability system code; all other codes are filtered out, including:

[0092] 9-10 digit pure numeric drill bit code;

[0093] The code is already registered in the PNL laser engraving history table;

[0094] Codes already registered in the character printing binding table are filtered out at the entry point by any other temporary codes, outer codes, or test codes, preventing spam data pollution and significantly reducing database pressure.

[0095] The inner layer board is laminated, and a PCB board is produced based on the laminated board.

[0096] It should be noted that the production traceability device stacks multiple "inner layer boards" (i.e., core boards) that have completed the aforementioned pre-stacking and error prevention verification with materials such as prepreg (PP) in a predetermined order to obtain a laminate. Then, a series of subsequent standard PCB manufacturing processes are carried out. These processes include at least: drilling, hole metallization, outer layer pattern transfer, electroplating, etching, solder mask printing, surface treatment, shape processing, and electrical testing, ultimately resulting in a fully functional finished PCB board.

[0097] Based on the production information, a unique identifier for the lamination group is generated, and the unique identifier for the lamination group is associated with all relevant identification codes of the PCB board.

[0098] Understandably, the unique identifier for a lamination group is used to uniquely identify all PCB core boards in the same lamination operation. The production traceability device dynamically generates a globally unique TransactionId for the lamination group at key production nodes (such as the lamination process) and uses it as a link to structurally bind all inner layer core boards, subsequent drilling-generated outer layer PNL codes, laser engraving codes, and inkjet printing codes in the same lamination batch. This constructs a complete code chain relationship from the inner layer to the outer layer, achieving a closed-loop traceability capability of "one code throughout, full chain traceability," and completely solving the quality traceability difficulties caused by isolated code segments and broken associations in traditional systems.

[0099] Furthermore, since the generation of unique identifiers for lamination groups in related technologies typically employs methods such as timestamp + serial number, work order number concatenation, or simple hashing, in IC carrier board (integrated circuit carrier board) / high-end PCB manufacturing scenarios, these methods are prone to issues where uniqueness cannot be absolutely guaranteed under complex conditions such as high concurrency, multiple factories, rework batches, and cross-system traceability (e.g., clock rollback, serial number reset). Therefore, this application designs the unique identifier for lamination groups as a structured, self-describing, and decentralized generated code, integrating key business dimensions and high-precision time information, and introducing a "time bucket + local counter + device fingerprint" mechanism to ensure that a globally unique, traceable, and resolvable TransactionId can still be generated in scenarios without network or with high concurrency.

[0100] Specifically, each pressing machine loads a predefined structured coding template upon startup. This template specifies that the TransactionId is composed of several fields in a fixed order: factory code (2 letters), production line or machine group code (2 digits), year, month, and day (6 digits), time bucket number (4 digits), local incrementing sequence number (3 digits), and equipment fingerprint verification code (2 letters). This structure ensures that each generated ID (identifier) ​​naturally carries six key contextual information points—factory affiliation, production line location, production date, time period division, furnace sequence, and equipment origin—allowing for initial location and parsing without accessing a database.

[0101] Building upon this foundation, the device abandons the traditional reliance on millisecond-level physical timestamps and instead employs a "time bucket" mechanism for coarse-grained time segmentation. The system divides a day into several fixed-length time windows (e.g., one bucket every 10 seconds), with the bucket number calculated by dividing the number of seconds elapsed that day by the window length. When the device needs to generate a new ID, it first determines the appropriate time bucket based on the current system time. Because the granularity of the buckets is much larger than the time required for a single pressing operation, even if multiple boards are pressed within the same second, they can be distinguished by subsequent local serial numbers as long as they fall into the same bucket.

[0102] Next, the device maintains a locally persistent sequence number status record, typically stored in a lightweight local database (such as SQLite) or the system registry. This record contains the currently valid time bucket number and its corresponding maximum used sequence number. Whenever a compression operation is triggered, the device first determines whether the current system time is still within the recorded time bucket: if so, the sequence number is incremented by one; if it has entered a new time bucket, the sequence number is reset to 001, and the current bucket number is updated.

[0103] Specifically, if the sequence number in the same bucket is about to exceed 999 (i.e., reach the three-digit limit), the device will proactively switch to the next time bucket in advance (even if it has not yet reached 10 seconds) and reset the sequence number to zero, thereby avoiding the risk of overflow. This mechanism ensures that the device can still independently and continuously generate valid and unique identifiers and maintain the normal operation of the production line in the event of a network interruption or the unavailability of the central MES system.

[0104] To prevent different devices from generating identical IDs due to clock skew, serial number resets, or configuration errors, the system embeds a device fingerprint checksum at the end of the encoding. This fingerprint is generated by a lightweight hash algorithm (e.g., mapping the result to two uppercase letters after taking the modulo of 26) from the device's unique hardware identifier (such as a MAC physical address or device serial number). This fingerprint serves as the final anti-collision barrier: even if the first 15 bits are completely identical, different device fingerprints can still ensure global uniqueness, effectively isolating cross-device conflicts.

[0105] As business complexity increases, the original solution shows limitations in handling extreme high concurrency, clock synchronization errors, rework scenarios, and cross-factory data fusion. Therefore, this application further introduces several enhancement mechanisms, deeply coupled with the aforementioned basic processes:

[0106] First, for high-speed production line scenarios where the number of press cycles within a single bucket may exceed 999, the system upgrades the original "single sequence number space within the bucket" to a "slot-based" mechanism. Each time bucket is divided into several logical slots (e.g., 100), and each slot is pre-allocated a fixed number of sub-sequence numbers (e.g., 10), with a total capacity of up to 10,000. When generating an ID, the device first requests an incomplete slot in its local Bitmap using atomic operations, and then uses sub-sequence numbers from 0 to 9 within that slot. Once a slot is full, it is marked as unavailable and no longer participates in allocation. This mechanism not only significantly increases the capacity of a single bucket but also achieves efficient lock-free allocation through bitmap management, completely eliminating the risk of sequence number overflow.

[0107] Second, to address the "spatiotemporal misalignment" problem caused by NTP synchronization deviations or inconsistencies between multiple machine clocks, the equipment no longer relies solely on physical time to divide time buckets. Instead, it employs a Hybrid Logical Clock (HLC) as the time base. Each device maintains a local logical counter L. Each time an ID is generated, the current physical time T is combined with L to form the HLC value (T, L). If a physical time rollback is detected (i.e., the new time is less than the previous record), L is forcibly incremented to ensure that the HLC monotonically increases overall. The time bucket number is calculated based on the T portion of the HLC, while L serves as a fallback, ensuring that the entire ID system maintains logical order consistency even when the physical clock is unreliable.

[0108] Third, a new "Event Type" field (placed before the sequence number or integrated into the sequence number segment) is added to the coding structure to clearly identify the nature of the current pressing operation, such as normal first pressing, rework pressing, patching furnace assembly, or engineering trial production. This field enables the traceability system to immediately identify abnormal production scenarios. For rework furnaces, although a completely new TransactionId will be generated, its prefix (factory + production line + date + time bucket) is consistent with the original furnace batch. The system can achieve "same-source association" through this shared prefix, achieving both independent identification and traceability to the source.

[0109] Fourth, to support unified data management across multiple factories at the group level, a two-digit global namespace prefix (such as CN, US, JP) is added to the beginning of the ID. This prefix is ​​uniformly assigned by the central IT department and embedded in the device configuration file. This prefix does not participate in the dynamic generation logic, but ensures that IDs generated by devices under different regions and legal entities are naturally conflict-free, facilitating direct integration with the data lake or central traceability platform in the future without the need for additional mapping tables.

[0110] Finally, after each successful generation of a complete TransactionId, the device immediately writes it to a local log file and attaches a checksum to prevent storage corruption. During system startup or network recovery, the device automatically scans the most recent 1000 local records, using a lightweight Bloom filter to quickly compare them with the ID set in the central database. If a potential duplicate is found (with an extremely low probability), the entire batch is marked as "pending review," and a new ID with a corrected suffix (such as "_R01") is generated for subsequent processes, ensuring that main production is not affected while preserving clues for manual intervention.

[0111] Furthermore, the production traceability device can maintain a local time base based on a hybrid logic clock on each pressing device. This clock consists of physical time and a local incrementing counter: whenever a device needs to generate a new transaction ID, it first reads the current system physical time T and combines it with the local logic counter L to form a hybrid logic timestamp (T, L). If the current physical time is detected to be less than the last recorded time (i.e., clock rollback has occurred), L is forcibly incremented by 1 to ensure that the overall timestamp is strictly monotonically increasing. This mechanism effectively avoids ID duplication or out-of-order issues caused by NTP (Network Time Protocol) synchronization anomalies or manual adjustment of system time.

[0112] Based on this hybrid logical time, the equipment no longer uses actual second-level time as the basis for dividing "time buckets," but instead uses the T portion of the hybrid logical time to calculate the time bucket number. Each time bucket is further divided into a fixed number of logical segments, called slots. For example, each bucket can be configured to contain 100 slots, with each slot pre-assigned 10 sub-sequence numbers, thereby increasing the maximum capacity of a single bucket from the traditional 999 to 10000 (this value can be flexibly adjusted according to actual production capacity).

[0113] When a device triggers a compression operation and needs to generate a unique transaction ID, it first searches for an unused slot in the local BitMap using atomic operations. Once a slot is successfully locked, it generates the sequence number portion of the ID using sub-numbers from 0 to 9 sequentially within that slot. Once a slot is full (i.e., all 10 sub-numbers have been allocated), it is marked as "full" and will not participate in subsequent allocations. The entire slot allocation process is completed locally on the device, relying on efficient bitmap management, without accessing a central database or introducing distributed locks, significantly improving concurrency performance and system response speed.

[0114] In the structural design of the transaction ID, a new "Event Type" field has been added to clearly identify the business semantics of the current pressing operation. This field ranges from 0 to 3, representing normal first pressing, rework pressing, patching and re-pressing, and engineering trial production, respectively. This design allows the traceability system to immediately identify non-standard production scenarios when parsing the ID, facilitating quality analysis and process control. Furthermore, although rework or patching operations generate new TransactionIds, because their prefix (factory code + production line number + date + time bucket) is consistent with the original batch, the system can still associate them with the same production source, achieving "same source traceability and identifiable status."

[0115] To further support group-level multi-factory data fusion, a two-digit global namespace prefix (such as CN, US, JP) can be added to the beginning of the ID. This prefix is ​​centrally assigned by the IT department and permanently embedded in the device configuration file. This prefix does not participate in the dynamic generation logic; it serves only as a static identifier, ensuring that the IDs generated by devices under different regions and legal entities are inherently globally unique, thus avoiding the risk of conflicts when merging data across regions.

[0116] Finally, to ensure data consistency under extreme conditions, each device immediately writes the complete TransactionId, along with its checksum, to a local persistent log file after successfully generating it. During startup or after network recovery, the device automatically scans the most recent 1000 local records and uses a lightweight Bloom filter to quickly compare them with the ID set in the central database. If a potential duplicate is found (although the probability is extremely low), the batch is marked as "pending review," and a new ID with a correction suffix (such as "_R01") is generated for subsequent processes. This ensures that the main production process is not blocked, while preserving clues for manual verification.

[0117] The aforementioned technical measures work in close coordination: a hybrid logical clock provides the time foundation for the entire ID system; the bucket-based sharding mechanism enables high-density, lock-free sequence number allocation within this time frame; event type fields imbue IDs with business semantics; namespace prefixes ensure cross-domain uniqueness; and local persistence and conflict self-checking mechanisms form the last line of defense, ensuring that the system maintains data integrity and process continuity even under abnormal conditions. This entire solution, starting from the device end, balances performance, reliability, and traceability, making it suitable for large-scale, high-concurrency intelligent manufacturing scenarios.

[0118] In one feasible implementation, the steps of laminating the inner layer board and producing a PCB board based on the laminated laminate include:

[0119] Determine whether the lamination sequence of the inner layer is correct;

[0120] It should be noted that due to the design and process requirements of PCB products, the stacking order of each inner layer board must be followed in the lamination process. This order is usually expressed as a certain arrangement rule of layer aliases (such as "layer 1~2", "layer 3~4") (such as ascending or descending order from the inside to the outside). Therefore, the production traceability device automatically completes the sequence verification when each board is put in, realizing a fundamental transformation from "manual visual verification of drawings" to "program-forced sequence error prevention".

[0121] For example, the production traceability device automatically calls the backend API based on the QR code of the first board to obtain all layer information of the complete work order for that part number (such as layers 1-2, 3-4, 5-6, etc.) at once, and automatically standardizes the layer name into a "four-digit number" format (such as "1-2 layers" → "0102"). It also supports global configuration of two pressing orders: "from largest to smallest" or "from smallest to largest" (switchable via radio button). After scanning each board, the device determines in real time whether the current layer is strictly equal to the "next layer to be pressed after sorting". If the order is wrong, an audible and visual alarm is immediately triggered and the board is refused to be pushed onto the stack, fundamentally eliminating all possibilities of "skipping layers, inserting layers, and reverse pressing" in traditional manual pressing.

[0122] If correct, determine whether the currently scanned inner layer plate and the previously scanned inner layer plate belong to the same batch;

[0123] Understandably, the production traceability device, while ensuring the correct lamination sequence, further introduces real-time verification of batch consistency, forming a dual guarantee mechanism of "sequence error prevention" and "batch mixing prevention".

[0124] For example, the production traceability device performs dual verification of the part number and customer batch number for each board while identifying the layer:

[0125] If a batch number is found to be inconsistent with the batch number of the already pressed plates in this stack, it will be immediately determined as a "mixed batch";

[0126] Mixed batches are allowed to be pushed onto the stack, but the system will force a prominent red warning (“Mixed Batch” indicator to pop up).

[0127] When uploading mixed batch data, clear identification is carried to facilitate subsequent quality traceability and responsibility division, realizing an industry-first error prevention strategy of "mixed batches can be recorded, cannot be concealed, and cannot be misjudged".

[0128] If it is, then when the number of the currently scanned inner layer plates meets the preset number of laminations, all the scanned inner layer plates are laminated to obtain a laminated plate.

[0129] It should be noted that the preset lamination quantity refers to the total number of layers required by the product design of the work order. When the quantity condition is met, the production traceability device automatically triggers the process, treating all qualified boards in the current stack as a complete lamination group, and submits it to the lamination equipment or production execution system to perform the physical lamination process, resulting in a multilayer printed circuit board semi-finished product, i.e., a laminate.

[0130] For example, all scanned and qualified boards are displayed in the pre-stack list in real time (with timestamp, layer, and board number). Only when "number of scanned layers = total number of layers in the work order" will the production traceability device allow automatic submission of the pressing record and generation of a unique group number. It also supports the "Complete in advance" button, which allows forced submission of the current stack in the case of missing boards (for special processes). After submission, the current stack is automatically cleared to prevent duplicate submissions and achieve strict "one group, one clear" to prevent duplicates and omissions.

[0131] Based on the laminate, a PCB board is produced.

[0132] Understandably, after obtaining the laminate, the production traceability device performs a series of subsequent processing steps on the laminate, including but not limited to drilling, outer layer circuit fabrication, laser engraving (laser engraving of QR codes), and character printing, in order to finally form a PCB board with electrical functions and complete identification.

[0133] In one feasible implementation, the step of determining whether the lamination sequence of the inner layer is correct includes:

[0134] Convert the lamination sequence of the inner layer plate and the lamination sequence of the inner layer plate from the previous scan into a preset standard format;

[0135] It should be noted that the pressing sequence refers to the original string information parsed from the inner layer board's QR code that identifies its layer position. Its format may vary, such as "1~2 layers", "L3-L4", "05-06", etc. The production traceability device converts the pressing sequence of the current inner layer board and the original layer string corresponding to the most recently successfully stacked board in the current pre-stack into a standardized layer representation. For example, it uniformly converts various inputs into a four-digit number format such as "0102" or "0304".

[0136] If the converted lamination sequence conforms to the preset ascending and descending order, then the lamination sequence of the inner layer plate is determined to be correct.

[0137] Understandably, the production traceability device compares the standard format layer of the currently scanned inner layer with the theoretical standard layer of the next layer calculated based on the current number of layers already pressed and the globally configured pressing direction. If the two are completely consistent, then the lamination sequence of the inner layer is determined to be correct.

[0138] In one feasible implementation, the step of converting the lamination sequence of the inner layer plate and the lamination sequence of the inner layer plate from the previous scan into a preset standard format includes:

[0139] Determine whether the currently scanned inner layer board is the first inner layer board in the current batch;

[0140] It should be noted that the current batch refers to a production unit uniquely identified by the customer batch number and production part number carried by the currently scanned inner layer board. The production traceability device determines whether the currently scanned inner layer board is the first board scanned in this pre-stacking operation for the "current batch".

[0141] If so, then based on the part number, the work order information corresponding to the inner layer board is retrieved, wherein the work order information includes the layer structure, and the layer structure includes the number of laminations and the lifting sequence.

[0142] Understandably, the part number refers to the unique identifier of the PCB product model and specifications, serving as a crucial index for retrieving process parameters and manufacturing requirements within the production system. Work order information refers to the set of all process data bound to a specific production task, automatically retrieved by the system backend based on the part number. Layer structure refers to the arrangement order and total number of inner core boards in the multilayer board design corresponding to that part number. Lamination quantity is the total number of inner layers required to construct the multilayer board. Stacking sequence refers to the order in which the inner layers are stacked during lamination. The production traceability device, through a mechanism that triggers the first board to automatically retrieve complete work order information, achieves "one-click start" and "precise guidance" for the pre-lamination process.

[0143] In this implementation, through a complete technology chain of "automatic acquisition of full-layer information on the first board + standardization + forced sequence judgment + explicit mixed batches + group submission", the pre-stack lamination is completely upgraded from "human prevention" to "technical prevention". This achieves 100% correct sequence, 100% batch traceability, and 100% explicit abnormality in the multilayer board lamination process. This is a groundbreaking innovation in error prevention and mitigation in the PCB industry, possessing strong novelty, creativity, and industrialization value.

[0144] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 2 Before step S10, the production traceability method further includes steps S01 to S05:

[0145] Step S01: In response to the trigger operation for the inner code configuration page, obtain the encoding segment of the PCB board to be produced selected by the user;

[0146] It should be noted that the inner layer code configuration page refers to the graphical user interface (GUI). This interface is displayed in a table or similar format, allowing users to freely define the encoding structure and rules of the inner layer QR code for the PCB board to be produced (or a specific part number, customer) through operations such as clicking and dragging. When the production traceability device detects an interactive action performed by the user on this page, indicating an intention to start or modify the encoding rule configuration, it will obtain the encoding segment of the PCB board to be produced selected by the user.

[0147] Step S02: Define the data type of the encoded segment and set the type parameter corresponding to the data type;

[0148] It is understandable that data type refers to the type of data or generation rule represented by the coded segment, including but not limited to: fixed values, dates (supporting multiple formats such as YYMMDD), last digit of the year, month letters, date letters, ordinary serial numbers, assembly serial numbers, PNL serial numbers, Ary (finished assembly) serial numbers, batch numbers, and ASCII control characters as separators, etc. Type parameters refer to a set of configuration items that define the specific behavior for each selected data type. The production traceability device defines the corresponding data type for the coded segment and defines the specific behavior of each selected data type using type parameters.

[0149] Furthermore, the production traceability device innovatively adds a "maximum value" configuration item to the serial number and Ary serial number. When a certain level of serial number reaches the set maximum value, it automatically triggers the carry-over of the previous level serial number, realizing the automatic version change logic of multi-level serial numbers. The rule can be configured once and run correctly permanently. During the configuration stage, only the number of digits in the batch number needs to be specified. The device automatically generates the corresponding number of "*" as placeholders. When the short code is actually generated, the system dynamically replaces it with the real batch number, so that the same set of rules applies to all batches.

[0150] Step S03: Based on the data type and the type parameter, generate encoding rules and associate the encoding rules with the part number of the PCB board to be produced;

[0151] It should be noted that the production traceability device integrates and serializes a series of encoding segments (including their data types and specific type parameters) configured by the user through the interface into a complete rule definition that can be stored, parsed and executed by the system. It also establishes and saves the binding relationship between the encoding rule and a specific part number, ensuring that when a product of that part number is produced, the device can automatically call the associated encoding rule to generate a QR code for each board.

[0152] Step S04: Obtain work order information; determine the corresponding encoding rule based on the part number in the work order information; construct the original string of the current inner layer board based on the encoding rule; wherein the original string is based on invisible control characters as delimiters.

[0153] Understandably, production traceability devices automatically associate part numbers with predefined complex coding rules and use invisible control characters as separators to "invisibly" structure data. This ensures extremely high information density and machine readability while avoiding problems such as blurry recognition, engraving interference, or visual pollution that may be caused by visible separators.

[0154] Furthermore, the production traceability device is the first in the PCB short code field to systematically introduce standard ASCII (character encoding) control characters (especially GS 0x1D group separator, RS 0x1E record separator, US 0x1F cell separator, and FS 0x1C file separator) as field separators. Unlike the traditional use of visible characters such as "|", "," and "-", these control characters:

[0155] It truly exists within the QR code content and can be reliably recognized and segmented by the program;

[0156] It is completely invisible during visual presentation and laser engraving, and does not occupy any visible space;

[0157] Belonging to the international standard ASCII character set, it is natively supported by all QR code specifications and has no compatibility issues. This technology significantly improves the information carrying capacity per unit length while maintaining the same readability, and avoids the risk of visible separators being misread or filtered by engraving equipment.

[0158] All existing QR code short code solutions in the PCB industry use visible characters as separators. No technical solution has ever proposed using invisible ASCII control characters (GS / RS / US) as separators to simultaneously achieve the dual effect of 'programmable recognition' and 'completely invisible to the eye'.

[0159] Step S05: Based on the original string, the inner layer board is coded to obtain the inner layer code.

[0160] It should be noted that the production traceability device uses physical processing methods to permanently mark the original string of information on the inner layer board of the PCB. The machine-readable graphic identifier (usually a QR code) formed on the inner layer board, which contains the complete original string of information, will become the board's unique and permanent "digital ID card" throughout the entire production process.

[0161] In this embodiment, invisible ASCII control characters (GS / RS / US) are used as separators to achieve the dual effect of being both program-recognizable and completely invisible to the eye.

[0162] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the production traceability method of this application. Any simple modifications based on this technical concept are within the protection scope of this application.

[0163] This application also provides a production traceability device, please refer to... Figure 3 The production traceability device includes:

[0164] The response module 10 is used to respond to a traceability command triggered by the user terminal and determine an identification code related to the PCB board based on the traceability command.

[0165] The first determining module 20 is used to determine a unique identifier for the pressing group based on the identification code;

[0166] The second determining module 30 is used to determine the inner layer code of the inner layer board of the PCB board based on the unique identifier of the lamination group.

[0167] The traceability module 40 is used to trace upstream and downstream based on the inner code to obtain production information.

[0168] Optionally, the response module includes:

[0169] The identifier generation submodule is used to scan the inner layer code of the inner layer board when the inner layer board to be scanned is in the code reading area, and obtain the original string; based on the original string, record the production information of the inner layer board, wherein the production information includes inbound record and outbound record; laminate the inner layer board, and produce PCB board based on the laminated board; generate a unique identifier for the lamination group based on the production information, and associate the unique identifier for the lamination group with all relevant identification codes of the PCB board.

[0170] Optionally, the identifier generation submodule includes:

[0171] The judgment unit is used to determine whether the lamination sequence of the inner layer board is correct; if correct, it determines whether the currently scanned inner layer board and the previously scanned inner layer board belong to the same batch; if they belong, when the number of the currently scanned inner layer board meets the preset lamination quantity, all the scanned inner layer boards are laminated to obtain a laminated board; based on the laminated board, a PCB board is produced.

[0172] A construction unit is used to respond to a trigger operation on the inner layer code configuration page, obtain the encoding segment of the PCB board to be produced selected by the user; define the data type of the encoding segment and set the type parameter corresponding to the data type; generate encoding rules based on the data type and the type parameter, and associate the encoding rules with the part number of the PCB board to be produced; obtain work order information, determine the corresponding encoding rule based on the part number in the work order information, construct the original string of the current inner layer board based on the encoding rule, wherein the original string is based on an invisible control character as a delimiter; and perform coding on the inner layer board based on the original string to obtain the inner layer code.

[0173] Optionally, the determination unit includes:

[0174] The conversion subunit is used to convert the lamination sequence of the inner layer plate and the lamination sequence of the inner layer plate from the previous scan into a preset standard format; if the converted lamination sequence conforms to the preset ascending and descending order, then the lamination sequence of the inner layer plate is determined to be correct.

[0175] Optionally, the conversion subunit includes:

[0176] The component is invoked to determine whether the currently scanned inner layer board is the first inner layer board of the current batch; if so, the work order information corresponding to the inner layer board is invoked based on the part number, wherein the work order information includes the layer structure, and the layer structure includes the number of laminations and the lifting order.

[0177] The production traceability device provided in this application, employing the production traceability method described in the above embodiments, can solve the technical problem of production traceability. Compared with the prior art, the beneficial effects of the production traceability device provided in this application are the same as those of the production traceability method described in the above embodiments, and other technical features in the production traceability device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0178] This application provides a production traceability device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the production traceability method in Embodiment 1 above.

[0179] The following is for reference. Figure 4 The diagram illustrates a structural schematic suitable for implementing the production traceability device in the embodiments of this application. The production traceability device in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, tablets, digital broadcast receivers, PDAs (Personal Digital Assistants), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 4 The production traceability device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0180] like Figure 4As shown, the production traceability device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the production traceability device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touchscreen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. Communication device 1009 allows the production traceability device to communicate wirelessly or wiredly with other devices to exchange data. While the figures show production traceability devices with various systems, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.

[0181] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0182] The production traceability equipment provided in this application, employing the production traceability method described in the above embodiments, can solve the technical problems of production traceability. Compared with the prior art, the beneficial effects of the production traceability equipment provided in this application are the same as those of the production traceability method described in the above embodiments, and other technical features of the production traceability equipment are the same as those disclosed in the method of the previous embodiment, and will not be repeated here.

[0183] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0184] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0185] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the production traceability method described in the above embodiments.

[0186] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0187] The aforementioned computer-readable storage medium may be included in the production traceability equipment; or it may exist independently and not be assembled into the production traceability equipment.

[0188] The aforementioned computer-readable storage medium carries one or more programs. When the aforementioned one or more programs are executed by the production traceability device, the production traceability device: responds to a traceability command triggered by a user terminal, determines an identification code related to the PCB board based on the traceability command; determines a unique identifier for the lamination group based on the identification code; determines the inner layer code of the inner layer board of the PCB board based on the unique identifier for the lamination group; and performs upstream and downstream traceability based on the inner layer code to obtain production information.

[0189] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0190] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0191] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0192] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described production traceability method, thereby solving the technical problem of production traceability. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the production traceability method provided in the above embodiments, and will not be repeated here.

[0193] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the production traceability method described above.

[0194] The computer program product provided in this application can solve the technical problem of production traceability. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the production traceability method provided in the above embodiments, and will not be repeated here.

[0195] The above description is only a part of the embodiments of this application and does not limit the scope of protection of this application. All equivalent structural transformations made under the technical concept of this application and using the content of this application specification and drawings, or direct / indirect applications in other related technical fields, are included in the scope of protection of this application.

Claims

1. A production traceability method, characterized in that, The production traceability method includes: In response to a traceability command triggered by the user terminal, an identification code related to the PCB board is determined based on the traceability command; Based on the identification code, a unique identifier for the pressing assembly is determined; Based on the unique identifier of the lamination group, the inner layer code of the inner layer board of the PCB board is determined; Based on the inner code, upstream and downstream tracing is performed to obtain production information; Prior to the step of determining the identification code associated with the PCB board based on the traceability command triggered by the user terminal, the following steps are included: When the inner layer board to be scanned is in the code reading area, the inner layer code of the inner layer board is scanned to obtain the original string; Based on the original string, the production information of the inner layer board is recorded, wherein the production information includes inbound records and outbound records; The inner layer board is laminated, and a PCB board is produced based on the laminated board. Based on the production information, a unique identifier for the lamination group is generated and associated with all relevant identification codes of the PCB board. The unique identifier for the lamination group is structurally bound to all inner core boards, the outer PNL codes generated by subsequent drilling, laser engraving codes, and inkjet printing codes. The unique identifier for the lamination group is divided into time based on time buckets. The number of the time bucket is determined based on the HLC value composed of the current physical time and the local logic counter. If physical time rollback is detected, the local logic counter is incremented so that the HLC value increases monotonically. The device fingerprint verification code is embedded at the end of the unique identifier for the lamination group. The device fingerprint verification code is generated based on the unique hardware representation of the device. Before the step of scanning the inner layer code of the inner layer board to obtain the original string when the inner layer board to be scanned is in the code reading area, the following steps are included: In response to a trigger operation on the inner code configuration page, obtain the code segment of the PCB board to be produced selected by the user; Define the data type of the encoded segment and set the type parameter corresponding to the data type; Based on the data type and the type parameter, an encoding rule is generated, and the encoding rule is associated with the part number of the PCB board to be produced; Obtain work order information, determine the corresponding encoding rule based on the part number in the work order information, and construct the original string of the current inner layer board based on the encoding rule, wherein the original string is based on an invisible control character as a delimiter; Based on the original string, the inner layer board is coded to obtain the inner layer code.

2. The production traceability method as described in claim 1, characterized in that, The steps of laminating the inner layer board and producing a PCB board based on the laminated board include: Determine whether the lamination sequence of the inner layer is correct; If correct, determine whether the currently scanned inner layer plate and the previously scanned inner layer plate belong to the same batch; If it is, then when the number of the currently scanned inner layer plates meets the preset number of laminations, all the scanned inner layer plates are laminated to obtain a laminated plate. Based on the laminate, a PCB board is produced.

3. The production traceability method as described in claim 2, characterized in that, The original string includes a lamination sequence, and the step of determining whether the lamination order of the inner layer plate is correct includes: Convert the lamination sequence of the inner layer plate and the lamination sequence of the inner layer plate from the previous scan into a preset standard format; If the converted lamination sequence conforms to the preset ascending and descending order, then the lamination sequence of the inner layer plate is determined to be correct.

4. The production traceability method as described in claim 3, characterized in that, The original string includes a part number, and the step of converting the lamination sequence of the inner layer plate and the lamination sequence of the previously scanned inner layer plate into a preset standard format includes: Determine whether the currently scanned inner layer board is the first inner layer board in the current batch; If so, then based on the part number, the work order information corresponding to the inner layer board is retrieved, wherein the work order information includes the layer structure, and the layer structure includes the number of laminations and the lifting sequence.

5. A production traceability device, characterized in that, The device includes: The response module is used to respond to a traceability command triggered by the user terminal and determine the identification code related to the PCB board based on the traceability command; The first determining module is used to determine a unique identifier for the pressing group based on the identification code; The second determining module is used to determine the inner layer code of the inner layer board of the PCB board based on the unique identifier of the lamination group. The traceability module is used to trace upstream and downstream based on the inner code to obtain production information; The response module includes: The identifier generation submodule is used to scan the inner layer code of the inner layer board when the inner layer board to be scanned is in the code reading area, and obtain the original string; based on the original string, record the production information of the inner layer board, wherein the production information includes inbound record and outbound record; laminate the inner layer board, and produce PCB board based on the laminated board; generate a unique identifier for the lamination group based on the production information, and associate the unique identifier for the lamination group with all relevant identification codes of the PCB board. The unique identifier for the lamination group is structurally bound to all inner layer core boards, the outer layer PNL code generated by subsequent drilling, the laser engraving code, and the inkjet printing code. The unique identifier for the lamination group is divided into time based on a time bucket. The number of the time bucket is determined based on the HLC value composed of the current physical time and the local logic counter. If physical time rollback is detected, the local logic counter is incremented so that the HLC value increases monotonically. The device fingerprint verification code is embedded at the end of the unique identifier for the lamination group. The device fingerprint verification code is generated based on the unique hardware representation of the device. The identifier generation submodule includes: A construction unit is used to respond to a trigger operation on the inner layer code configuration page, obtain the encoding segment of the PCB board to be produced selected by the user; define the data type of the encoding segment and set the type parameter corresponding to the data type; generate encoding rules based on the data type and the type parameter, and associate the encoding rules with the part number of the PCB board to be produced; obtain work order information, determine the corresponding encoding rule based on the part number in the work order information, construct the original string of the current inner layer board based on the encoding rule, wherein the original string is based on an invisible control character as a delimiter; and perform coding on the inner layer board based on the original string to obtain the inner layer code.

6. A production traceability device, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the production traceability method as described in any one of claims 1 to 4.

7. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the production traceability method as described in any one of claims 1 to 4.

8. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the production traceability method as described in any one of claims 1 to 4.