A method for storing and tracing riveting quality data based on product traceability code

By generating product traceability codes and building associated indexes in the automated riveting production line for automotive front-end frames, the problem of distinguishing and finding riveting quality data with similar local process relationships in existing technologies has been solved, enabling rapid and accurate quality investigation.

CN123140769APending Publication Date: 2026-11-20TIANJIN YIDAO AUTOMATION EQUIP CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202611626791.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-21
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In the automated riveting production line for automotive front-end frames, existing technologies struggle to effectively distinguish and locate riveting quality data with similar local process relationships, resulting in lengthy quality investigation times.

Method used

By generating product traceability codes, the synchronously collected tensile and displacement data are used as complete cyclic records to form fragment matching constraints and build an associated index. Conflict constraint groups are used to reduce unmatched synchronous relationships, enabling rapid retrieval and verification of historical rivet point data.

Benefits of technology

This improved the efficiency of riveting quality surveys, reduced the workload of reviewing each item and manually comparing data, and ensured the accuracy and consistency of the data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123140769A_ABST
    Figure CN123140769A_ABST
Patent Text Reader

Abstract

The application provides a pull-riveting quality data association storage and tracing method based on a product trace code, relates to the technical field of data matching, and comprises the following steps: forming a complete cycle record by associating a product trace code, a rivet point identifier, and synchronous pull force and displacement data, and reserving a local segment in all allowed matching positions in the reference cycle record; when each channel can be matched but cannot be matched by using a common time corresponding relationship, a conflict constraint group is formed by trying to delete a segment matching constraint item by item, and an association index is constructed according to the conflict constraint group. After a code is scanned and read to search for a record, historical records are searched, a local segment is read back to review the conflict constraint group, and a review passed record is output. The application can associate historical rivet points in a cross-channel relationship difference that can be read back, and the reviewability of a pull-riveting quality tracing result is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data matching technology, and in particular to a method for the association, storage and traceability of riveting quality data based on product traceability codes. Background Technology

[0002] For example, in an automated riveting production line for automotive front-end frames, a robotic arm places the front-end frame onto a product positioning fixture. Two robots then sequentially carry the product to a fixed rivet gun position to install the rivet nuts at different rivet points. The rivet gun applies axial tension to the rivet nuts, forming a connection on the back side of the workpiece, and then withdraws from the current rivet point. A single front-end frame has multiple rivet positions, and processing data for each rivet point is generated during the operation. After product processing is complete, a product traceability code is generated for quality verification.

[0003] Monitoring riveting quality requires saving the corresponding data on rivet point location, tension changes, displacement changes, and processing results. When using an intelligent rivet gun, displacement and pressure sensors can monitor the rivet stroke and riveting force, while the controller can upload installation process data to the production management system. The records of tension and displacement data changing over time provide historical evidence for post-product delivery rivet point quality investigations.

[0004] In the prior art, patent publication number CN112765768A discloses a discrete workshop digital traceability method based on the Internet of Things. The method pre-encodes the workpiece serial number, establishes a corresponding production information storage area for the workpiece in the cloud platform storage area, stores the workpiece processing data, personnel data, and quality inspection data in the corresponding production information storage area, and uses the workpiece serial number to find the production processing data, environmental information, personnel information, and quality inspection information of the substandard finished products for production quality traceability.

[0005] However, in post-delivery investigations of individual riveting points, the tensile and displacement data generated by the same riveting cycle may contain multiple local variations. When querying historical records by riveting point identifier, individual process parameters, production batch, or the entire machining curve, records with similar local morphologies may correspond to different data relationships, and conventional query conditions are insufficient to distinguish the differences in local relationships between multiple types of process data. Quality personnel still need to read each historical record and manually compare the tensile and displacement data, which is time-consuming for historical record screening and original data verification. Summary of the Invention

[0006] This application provides a method for storing and tracing riveting quality data based on product traceability codes, which solves the problem that when historical records are filtered based on single process parameters or single-channel curves in riveting quality investigations, it is difficult to maintain the sampling correlation between tensile force data and displacement data, resulting in the difficulty in accurately finding and verifying historical rivet points with similar local process relationships.

[0007] To address the aforementioned technical problems, this application provides a method for the association, storage, and traceability of riveting quality data based on product traceability codes, comprising: The tensile force and displacement data collected synchronously at each rivet point are stored as a complete cyclic record, and the product traceability code and rivet point identification generated after processing are associated with the complete cyclic record. Determine local segments from the complete cyclic record, and retain all allowed matching positions of the local segments that satisfy the matching tolerance within the same channel of the reference cyclic record to form segment matching constraints; When all the segment matching constraints in each channel can be satisfied together, but the segment matching constraints cannot be satisfied together by the shared time correspondence that maintains the sampling time sequence, try deleting the segment matching constraints one by one to obtain a group of conflict constraints that cannot be satisfied together but can be satisfied together after deleting any one of them. A related index is constructed using the channel to which the local segment belongs, the allowed matching position, and the temporal relationship between segments in the conflict constraint group as search terms, and the product traceability code, rivet mark, local segment storage address, reference cycle record version, and matching tolerance are associated; Scan the code to obtain the product traceability code and the rivet identifier to be checked, and read the complete loop record as the record to be checked; if there is no corresponding associated index, output the record to be checked; if there is a corresponding associated index, search according to the search item in the historical record that does not contain the record to be checked and has the same reference loop record version and matching tolerance, read back the local fragment according to the local fragment storage address to review the conflict constraint group, and output the product traceability code and rivet identifier of the reviewed record.

[0008] Optionally, obtaining the conflict constraint group includes: A pairing relationship is established based on the sampling time of the tension data and displacement data collected synchronously during the riveting process. For displacement samples with the same displacement value but different sampling times, the pairing relationship with the synchronous tension sample is retained respectively, and the segment matching constraints of the tension channel and displacement channel are collected respectively. For each channel, based on all the allowed matching positions, check whether all the segment matching constraints in the same channel can be satisfied together while maintaining the temporal correspondence of the sampling time sequence, and obtain the single-channel matching result; When the single-channel matching results of the tension channel and the displacement channel are both satisfactory, according to the pairing relationship, the tension sample and the displacement sample at the synchronous sampling time are required to correspond to the same reference sampling time, and the segment matching constraints of each channel are checked to see if they can be satisfied together. When the single-channel matching results of the tension channel and the displacement channel are all satisfactory and the segment matching constraints of each channel cannot be satisfied together, the pairing relationship and the original sampling sequence remain unchanged, and the segment matching constraints are deleted one by one to obtain the conflict constraint group that simultaneously contains the segment matching constraints of the tension channel and the segment matching constraints of the displacement channel. The simultaneity relationship between the corresponding local segments of the conflict constraint group is determined based on the pairing relationship, and the simultaneity relationship is incorporated into the temporal relationship between the segments for constructing the association index.

[0009] Optionally, when all the segment matching constraints in each channel can be satisfied together, but the segment matching constraints cannot be satisfied together by a shared time correspondence that maintains the sampling timing, the segment matching constraints are deleted one by one, including: Each time a segment matching constraint is deleted, the requirements of the pairing relationship, the original sampling timing and the correspondence of the shared time of each channel remain unchanged. The matching requirement of the local segment corresponding to the segment matching constraint to be deleted in this trial is released. Based on all the allowed matching positions corresponding to the remaining segment matching constraints, it is re-determined whether the remaining segment matching constraints can be satisfied together. If the remaining segment matching constraints still cannot be satisfied together, maintain the deletion status of the segment matching constraints in this trial deletion, and continue to try deleting the segment matching constraints that have not yet been tried; When the remaining segment matching constraints can be satisfied together, restore the segment matching constraints of this trial deletion, record the time correspondence of the remaining segment matching constraints after this trial deletion, associate the time correspondence with the segment matching constraints of this trial deletion, and continue to try deleting the segment matching constraints that have not yet been deleted. After the traversal is completed, the final retained fragment matching constraints are grouped into the conflict constraint group, and the time correspondence associated with each of the final retained fragment matching constraints is associated with the associated index and stored, so as to verify the common matching result after deleting the corresponding fragment matching constraints when reading back the local fragment.

[0010] Optionally, the step of constructing an association index using the channel to which the local segments in the conflict constraint group belong, the allowed matching position, and the temporal relationship between the segments as search terms includes: Based on the channel to which the local segment belongs and all allowed matching positions of the conflict constraint group, determine the correspondence between the local segment and the reference loop record, and retain the correspondence between the same local segment and all its corresponding allowed matching positions; The temporal relationship between segments is represented by the sequential and simultaneous relationships between the start and end sampling times of each local segment, and the corresponding relationship is combined with the temporal relationship between segments to form the retrieval item; The historical records that are identical in terms of the reference cycle record version, the matching tolerance, and the search terms are grouped into the same associated index, and the correspondence between the product traceability code, the rivet identifier, and the local fragment storage address of each historical record is retained.

[0011] Optionally, the review of the conflict constraint group includes: Based on the local segments obtained from the readback, the pairing relationship, the original sampling timing, and the timing relationship between the segments are restored. In accordance with the reference cycle record version associated with the hit record and the matching tolerance, all allowed matching positions are re-determined, and the segment matching constraints in the conflict constraint group are restored accordingly. Based on the channel to which the local segment belongs, the re-determined all allowed matching positions, and the restored temporal relationship between the segments, the search term is reconstructed. When the reconstructed search term is consistent with the search term stored in the associated index, the pairing relationship and the original sampling time sequence are maintained. It is then checked whether the conflict constraint group can be satisfied by the shared time correspondence that maintains the sampling time sequence. When the conflicting constraint group cannot be satisfied together, for each fragment matching constraint in the conflicting constraint group, verify whether the associated stored time correspondence can be satisfied together to satisfy the remaining fragment matching constraints after deleting the corresponding fragment matching constraint; for the time correspondence that fails the verification, find a time correspondence that can be satisfied together to satisfy the remaining fragment matching constraints based on the newly determined all allowed matching positions. If the reconstructed search term is consistent with the search term stored in the associated index, the conflict constraint group cannot be satisfied by both, and after deleting any fragment matching constraint in the conflict constraint group, there is a time correspondence that satisfies the remaining fragment matching constraints, the hit record is determined as a historical record that has passed the review, and the corresponding product traceability code and rivet mark are output.

[0012] Optionally, the formation of the fragment matching constraint includes: For local segments within the same channel that are determined in a continuous sampling order and whose adjacent local segments share a boundary sample, the requirement that the boundary sample corresponds to the same reference sampling time in adjacent local segments is used as a common matching boundary condition. During the item-by-item deletion process, the boundary condition is maintained only for local segments that are still retained and are adjacent in the complete cyclic record. Under the boundary condition, each local segment meets the matching tolerance requirement within the corresponding all allowed matching positions, forming a segment matching constraint.

[0013] Optionally, the retention of all allowed matching positions includes: Traverse the continuous sampling intervals within the same channel of the reference loop record that contain the same number of samples as the local segment, and match each sample of the local segment with each sample of the continuous sampling interval in the sampling order. When the absolute value of the numerical difference of all corresponding samples is not greater than the matching tolerance of the corresponding channel, the start and end sampling positions of the corresponding continuous sampling interval are all retained as the allowed matching positions.

[0014] Optionally, the readback of the local segment includes: When the search term is matched, the storage address of the local segment corresponding to the matched record is determined based on the product traceability code and rivet identifier of the matched record associated with the associated index; wherein, the storage address of the local segment includes the storage address of the complete loop record, the channel to which it belongs, and the storage location of the first and last samples of the local segment in the complete loop record; The continuous reading range is determined based on the complete cyclic record storage address, the channel it belongs to, and the storage location. The original sample is then read according to the continuous reading range, and local fragments are recovered.

[0015] Optionally, the versioning of the reference cycle record includes: When the reference cycle record is updated, the existing version of the reference cycle record is retained, and the existing association index is maintained with the corresponding version of the reference cycle record, so that the corresponding version of the reference cycle record can be read during review.

[0016] Optionally, the read multiplexing of the reference circular record includes: The start and end sampling positions of the continuous sampling interval in the reference cycle record are determined according to the allowed matching position, and the continuous sampling interval is used as a reference segment. In the same traceback, the reference segment with the same reference cycle record version, channel and start and end sampling positions is read once and reused for the review of the conflict constraint group corresponding to each hit record.

[0017] The technical solution provided in this application has the following beneficial effects: When quality personnel scan a barcode to investigate a rivet point, the product traceability code and rivet point identifier locate the riveting cycle data. The system retains all allowable matching positions for local segments of tension and displacement, reducing incompatible synchronization relationships to conflict constraint groups. Based on this, historical rivet points are retrieved, reducing the work of reviewing cycle curves one by one and manual comparison. For matched records, the original sample is read back according to the local segment storage address, and verified against the same reference cycle record version and matching tolerance, excluding records where the index does not match the original sample or where the local relationship is invalid. The output product traceability code and rivet point identifier provide an entry point for further retrieval of production and inspection data. Attached Figure Description

[0018] 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, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 A flowchart illustrating the riveting quality data association storage and traceability method provided in this application embodiment.

[0020] Figure 2 This is a schematic diagram illustrating the association between product traceability codes, rivet marks, complete cyclic records, and associated indexes provided in the embodiments of this application.

[0021] Figure 3 This is a schematic diagram illustrating the single-channel time correspondence and shared time correspondence provided in the embodiments of this application.

[0022] Figure 4 A flowchart illustrating the process of sequential deletion of fragment matching constraints provided in this application embodiment.

[0023] Figure 5 This is a flowchart illustrating the historical record retrieval and partial fragment verification process provided in the embodiments of this application. Detailed Implementation

[0024] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are merely some embodiments of the present application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0025] For example, the front-end frame production line has multiple riveting positions. Robots use riveting fixtures to carry products to fixed riveting guns for installing rivet nuts. Some products have both M6 and M8 rivet points, which are handled sequentially by two robots. After delivery, quality personnel can retrieve the process record for a specific rivet point and conduct an investigation in conjunction with production and inspection data.

[0026] For the above application scenarios, Figure 1 The method flow of this embodiment is given. This embodiment includes the following steps: S101, the tensile force and displacement data collected synchronously at each rivet point are stored as a complete loop record, and associated with the product traceability code, rivet point identification and complete loop record generated after processing is completed; S102, determine local segments from the complete cyclic record, retain all allowed matching positions of the local segments that satisfy the matching tolerance in the same channel of the reference cyclic record, and form segment matching constraints; S103, when all segment matching constraints in each channel can be satisfied together, but all segment matching constraints cannot be satisfied together by the shared time correspondence that maintains the sampling time sequence, try to delete segment matching constraints one by one to obtain conflict constraint group; S104, construct an associated index using the channel to which the local segment belongs in the conflict constraint group, the allowed matching position, and the temporal relationship between segments as search terms, and associate the product traceability code, rivet mark, local segment storage address, reference cycle record version, and matching tolerance; S105, scan the code to obtain the product traceability code and the rivet mark to be checked, read the complete loop record as the record to be checked, execute the record output or historical retrieval based on whether there is a corresponding associated index, and read back the partial fragment of the hit record to check the conflict constraint group.

[0027] For S101, for example, the front-end frame production line can be configured with an intelligent rivet gun with displacement and pressure sensors to monitor riveting force and stroke, and upload process data through the Profinet interface. The riveting force collected by the pressure sensor is recorded as tensile force data in this embodiment. To explain the synchronization samples, this embodiment uses the same controller to acquire data from both channels at the same sampling clock, with 1000Hz as an example sampling frequency; adjacent sampling numbers are spaced 1ms apart, and each number is associated with a tensile force value and a displacement value. The complete loop record saves the sampling number and samples from both channels from the start to the end of one loop at the current riveting point. The 1000Hz value is used to represent subsequent matching intervals by integer sequence numbers; the synchronization relationship is still determined by the sampling number.

[0028] As sampled data is written, the system establishes pairing relationships according to the sampling sequence number. A pairing relationship indicates that tension and displacement samples with the same sampling sequence number come from the same sampling time. Displacement preservation or sample quantization may result in the same displacement value at different sampling times. In this case, the displacement samples are still saved according to their respective sampling sequence numbers, and associated with the corresponding tension samples. Here, multi-source data fusion is manifested in associating tension and displacement data by sampling sequence number, while retaining their respective channel identities and original values.

[0029] On the front-end frame production line, laser marking can be performed after riveting; the scanning module of the intelligent rivet gun can also bind product codes, employee codes, and component codes. For S101, before generating the product traceability code, the processing object identifier is first formed using the production task number, carrier number, and product serial number within the carrier, and associated with the cyclic record of each rivet point. After the product processing is completed, the product traceability code is generated and written into the association table according to the processing object identifier, so that the product traceability code and the rivet point identifier jointly locate the complete cyclic record.

[0030] For example, product traceability code P20260915-001 corresponds to rivet point identifiers R01 and R02. The riveting controller generates records CUR-001 and CUR-002 respectively. Each record includes a record identifier, processing object identifier, rivet point identifier, sampling frequency, cycle start and end sampling sequence number, sampling time sequence, tension data sequence, displacement data sequence, and the storage address of the complete cycle record. Table 1 lists the sample timing and data fields for the two rivet points.

[0031] Table 1. Time series and data fields of complete loop record samples

[0032] To illustrate the storage relationships of various types of data, Figure 2 The diagram further illustrates the relationships between product traceability codes, rivet identifiers, complete circular records, and associated indexes. The relational database stores product traceability codes, rivet identifiers, record identifiers, and storage addresses. Continuously sampled data is stored in the data object pointed to by the storage address of the complete circular record. The associated index stores relational data used for historical retrieval; during readback, the original sample is retrieved based on the storage address.

[0033] After completing the data association in S101, S102 determines local segments in the same channel according to continuous sampling sequence numbers, that is, a segment of samples continuously obtained in one cycle. For example, the record to be searched and the records participating in historical retrieval both use their respective cycle start sampling sequence number as relative sequence number 0. The two channels select the first segment from relative sequence number 100, using the same segment length and the same spacing between the start points of adjacent segments. To demonstrate common boundaries, 40 samples are taken to form a segment, with the start sequence numbers of adjacent segments separated by 39; based on the aforementioned 1ms sampling interval, the first and last samples of a segment are separated by 39ms. The three adjacent segments can be 100 to 139, 139 to 178, and 178 to 217, with sequence numbers 139 and 178 each being boundary samples shared by two adjacent segments. The shared boundary samples correspond to the same reference sampling time in adjacent segments, maintaining the original sampling order of the segments.

[0034] Reference cycle records are used to provide reference positions where local segments can be matched. In this embodiment, a reference cycle record is selected from the cycle records that have passed inspection under the same product model, rivet nut specification, and riveting procedure, and is recorded as reference cycle record version V1. If the product model, rivet nut specification, or riveting procedure changes, and a new qualified cycle record is confirmed, a new reference cycle record version is created. The reference cycle record version is used to ensure that the generation of the associated index and the verification index use the same reference data. In this example, the record to be searched, the reference cycle record, and the records participating in the historical retrieval all use a sampling frequency of 1000Hz, synchronize the tensile force and displacement data with the sampling sequence number, and perform point-by-point comparisons based on the relative sampling sequence number after each cycle start point. Records with different sampling frequencies are not included in this point-by-point comparison.

[0035] Matching tolerance represents the maximum permissible difference between the sample to be checked and the reference sample. For example, the repeatability error is represented by the maximum absolute difference of samples repeatedly measured under the same conditions using the same sensor, with the tolerance selected from 1 to 3 times the corresponding error. A lower limit of 1 times accommodates fluctuations in repeated measurements; below this limit, mismatches may occur even under the same conditions. An upper limit of 3 times accommodates more permissible matching positions; further increases may merge different local variations into a match. An example value for tensile repeatability error is 0.10 kN, corresponding to a tolerance of 0.10 kN to 0.30 kN; in this embodiment, it is 0.20 kN. An example value for displacement repeatability error is 0.04 mm, corresponding to a tolerance of 0.04 mm to 0.12 mm; in this embodiment, it is 0.08 mm. The tolerances for the two channels are set according to the repeatability errors of their respective sensors.

[0036] Under the equal-length point-to-point correspondence rule in this embodiment, the first sample of the local segment to be checked corresponds to the first sample of the reference continuous sampling interval, the last sample corresponds to the last sample of the reference continuous sampling interval, and the intermediate samples correspond point-to-point according to the sampling order. When the absolute value of the difference between all corresponding samples in the tension channel is not greater than 0.20kN, the current reference interval meets the tension matching tolerance; when the absolute value of the difference between all corresponding samples in the displacement channel is not greater than 0.08mm, the current reference interval meets the displacement matching tolerance.

[0037] This embodiment traverses consecutive sampling intervals within the corresponding channel of the reference circular record V1 that contain the same number of samples as the local segment to be checked, and retains intervals where each sample corresponds one-to-one with the sampling order and all meet the corresponding matching tolerance. Allowed matching positions represent the start and end sampling positions of the retained intervals in the reference circular record. When a local segment has multiple intervals that meet the conditions, all start and end sampling positions are saved. Segment matching constraints indicate that the corresponding local segment needs to obtain a match from all allowed matching positions, and maintain the sampling order relationship and boundary sample correspondence with other local segments.

[0038] According to the above equal-length point-by-point rule, each sample of the local segment to be checked corresponds to a reference sample in the original sampling order; tension samples and displacement samples with the same sampling sequence number use the same reference sampling sequence number. For each allowed matching position, the time offset δ is obtained by subtracting the starting sampling sequence number of the segment to be checked from the starting sampling sequence number of the reference segment. Shared boundary samples must correspond to the same reference sampling sequence number in adjacent segments; therefore, the segments in Table 2 can be checked for mutual matching using the time offset.

[0039] The record to be checked, CUR-001, consists of three tensile local segments F1 to F3 and three displacement local segments D1 to D3. All permissible matching positions obtained through the above traversal are listed in Table 2.

[0040] Table 2. List of all allowed matching locations for each local segment

[0041] According to Table 2, when the tension channel is selected with δ = 100, F1, F2, and F3 correspond to 200 to 239, 239 to 278, and 278 to 317 respectively, and the matching constraints of the three tension channel segments can be satisfied together. When the displacement channel is selected with δ = 150, D1, D2, and D3 correspond to 250 to 289, 289 to 328, and 328 to 367 respectively, and the matching constraints of the three displacement channel segments can also be satisfied together. The single-channel matching result indicates that there is a time correspondence that maintains the sampling time sequence within the corresponding channel.

[0042] After the two single-channel matching results are formed Figure 3 The method for checking the shared time correspondence is shown. In this equal-length point-by-point comparison, the shared time correspondence means that tension samples and displacement samples with the same sampling sequence number correspond to the same reference sampling sequence number, and the later-collected sample corresponds to a later reference sampling sequence number. In Table 2, the δ value for the tension channel can be 100 or 200, and the δ value for the displacement channel can be 150 or 250. The two sets of offsets do not overlap, therefore, there is no shared time correspondence that can simultaneously satisfy the six segment matching constraints.

[0043] When two channels cannot be matched, proceed to S103; see the step-by-step deletion process. Figure 4 For example, the tension channel is first placed before the displacement channel. Within the same channel, the segments are arranged in ascending order of their initial sampling number. F1, F2, F3, D1, D2, and D3 are then deleted sequentially, consistent with Table 3. When multiple conflicting constraint groups exist for the same record, the first group obtained is saved in the above order.

[0044] Each deletion trial only removes the requirement for matching of one local segment, while the pairing relationship, original sampling time sequence, and shared time correspondence of each channel remain unchanged. When adjacent local segments are all in the current constraint set, the shared boundary samples continue to correspond to the same reference sampling time; after one local segment is deleted, the corresponding boundary conditions are removed, and no new boundary conditions are added between local segments that were not originally adjacent. Table 3 shows the results of this item-by-item deletion trial.

[0045] Table 3. Results of item-by-item deletion of fragment matching constraints

[0046] At the end of the traversal, the conflict constraint group consists of F3 and D3. A conflict constraint group indicates that the segment matching constraints within the current group cannot be satisfied together, and that after deleting any item in the group, the remaining segment matching constraints can be satisfied together. After deleting F3, D3 can be satisfied with a δ of 150; after deleting D3, F3 can be satisfied with a δ of 100. These two time correspondences are associated with and stored with F3 and D3 respectively, for verification of the common matching results after deleting the corresponding constraints during historical record review.

[0047] After obtaining the conflict constraint group, S104 generates search terms based on the channels to which F3 and D3 belong, all allowed matching positions, and the simultaneity of their start and end sampling times. The temporal relationship between segments includes the sequential relationship of the start and end sampling times of local segments and the simultaneity of the formation of synchronous samples. Segments in the search terms are first arranged according to their channels, and within the same channel, they are arranged according to their start sampling sequence number. Each allowed matching position is arranged in ascending order according to the reference start sampling sequence number, so that search terms with the same content have a consistent field order.

[0048] The local fragment storage address is used to locate the original sample that generated the conflict constraint group, including the storage address of the complete cycle record, the channel it belongs to, the storage location of the first sample, and the storage location of the last sample. For example, in CUR-001, the local fragment storage address of F3 is OBJ / RIVET / CUR-001, F, 178, 217, and the local fragment storage address of D3 is OBJ / RIVET / CUR-001, D, 178, 217. These four fields together determine the data object, data channel, and continuous read range.

[0049] To facilitate retrieval and rereading, Table 4 lists the associated index fields used in this embodiment. Historical records with the same reference cycle version, matching tolerance, and search terms are grouped into the same associated index.

[0050] Table 4. Related Index Fields Table

[0051] The associated index is stored in a relational database, and candidate records are queried based on the reference cycle record version, matching tolerance, and search terms. Continuously sampled data is still stored in the data object pointed to by the storage address of the complete cycle record. After a search is successful, the corresponding data range is read according to the storage address of the local fragment.

[0052] After the associated index is created, the processing proceeds to S105. Figure 5The process of historical record retrieval and partial segment verification is described. Quality personnel scan the product traceability code P20260915-001 and select rivet point R01. The system reads CUR-001 as the record to be searched, which is the complete cyclic record corresponding to this investigation. Historical retrieval is only performed on records where the reference cyclic record version V1, the tensile force matching tolerance of 0.20kN, and the displacement matching tolerance of 0.08mm are all consistent, and the record to be searched, CUR-001, is excluded based on the record identifier.

[0053] For example, historical record H1 corresponds to product traceability code P20260821-017 and rivet mark R03. The search terms stored in H1 are the same as those in Table 4. The system reads the tension segment and displacement segment according to the local segment storage address of H1, retraces the reference loop record V1, and obtains all allowed matching positions that are the same as F3 and D3 in Table 2. The reconstructed search terms are consistent with the index stored content. F3 and D3 cannot be satisfied together; after deleting F3, the time correspondence with δ of 150 can satisfy D3; after deleting D3, the time correspondence with δ of 100 can satisfy F3. Therefore, H1 is determined to be a record that has passed the review, and the system outputs P20260821-017 and R03.

[0054] To illustrate further, historical record H2 corresponds to product traceability code P20260704-008 and rivet mark R02. The search terms stored in the database are the same as those in Table 4. After the system rereads the original partial fragment of H2, the redefined D3 allowed matching position adds a continuous sampling interval corresponding to δ=100, and the reconstructed search terms are inconsistent with the content stored in the database. H2 is identified as a failed verification record, and the system excludes P20260704-008 and R02 from the output results.

[0055] For rivet point R02 of product traceability code P20260915-002, after reading the corresponding complete loop record, the system did not find any associated index for this record. In this branch, the system directly outputs the sampling time sequence, tensile data sequence, and displacement data sequence of the current record for quality personnel to view, without needing to perform historical relationship retrieval using an associated index.

[0056] After the reference loop record V1 is updated to V2, the newly formed associated index uses V2, while the existing associated index continues to be associated with V1. When reviewing H1 again, the system reads V1, the 0.20kN tensile force matching tolerance, and the 0.08mm displacement matching tolerance. As long as there is still an associated index associated with V1, the system continues to save V1, ensuring that the old index maintains the original review conditions.

[0057] A single trace may hit multiple historical records. The system determines continuous sampling intervals in the reference cycle record based on allowed matching positions, and uses intervals with the same version, channel, and start and end sampling positions as the same reference segment. A reference segment represents a data interval obtained from the reference cycle record according to allowed matching positions. The reference segment is read during the first review; subsequent hit records using the same reference segment directly reuse the already read data; reference segments with different versions, channels, or start and end sampling positions are read separately.

[0058] When the original sample is missing or the reference cycle record version cannot be read, the system will identify the corresponding hit record as a review failure record. Similarly, when a local fragment can be read but the reconstructed search terms are inconsistent, conflicting constraint groups can be satisfied together, or the remaining constraints cannot be satisfied together after deleting any one of them, the corresponding hit record will also be identified as a review failure record. The review records indicate that historical rivet points have the same local data relationship differences, and quality personnel can continue to investigate the causes by combining process records and inspection results.

[0059] The foregoing provides a detailed description of a method for the association, storage, and traceability of riveting quality data based on product traceability codes, as provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and its core ideas. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from its principles, and these improvements and modifications also fall within the protection scope of this application.

Claims

1. A method for linking, storing, and tracing riveting quality data based on product traceability codes, characterized in that, include: The tensile force and displacement data collected synchronously at each rivet point are stored as a complete cyclic record, and the product traceability code and rivet point identification generated after processing are associated with the complete cyclic record. Determine local segments from the complete cyclic record, and retain all allowed matching positions of the local segments that satisfy the matching tolerance within the same channel of the reference cyclic record to form segment matching constraints; When all the segment matching constraints in each channel can be satisfied together, but the segment matching constraints cannot be satisfied together by the shared time correspondence that maintains the sampling time sequence, try deleting the segment matching constraints one by one to obtain a group of conflict constraints that cannot be satisfied together but can be satisfied together after deleting any one of them. A related index is constructed using the channel to which the local segment belongs, the allowed matching position, and the temporal relationship between segments in the conflict constraint group as search terms, and the product traceability code, rivet mark, local segment storage address, reference cycle record version, and matching tolerance are associated; Scan the code to obtain the product traceability code and the rivet identifier to be checked, and read the complete loop record as the record to be checked; if there is no corresponding associated index, output the record to be checked; if there is a corresponding associated index, search according to the search item in the historical record that does not contain the record to be checked and has the same reference loop record version and matching tolerance, read back the local fragment according to the local fragment storage address to review the conflict constraint group, and output the product traceability code and rivet identifier of the reviewed record.

2. The method according to claim 1, characterized in that, The acquisition of the conflict constraint group includes: A pairing relationship is established based on the sampling time of the tension data and displacement data collected synchronously during the riveting process. For displacement samples with the same displacement value but different sampling times, the pairing relationship with the synchronous tension sample is retained respectively, and the segment matching constraints of the tension channel and displacement channel are collected respectively. For each channel, based on all the allowed matching positions, check whether all the segment matching constraints in the same channel can be satisfied together while maintaining the temporal correspondence of the sampling time sequence, and obtain the single-channel matching result; When the single-channel matching results of the tension channel and the displacement channel are both satisfactory, according to the pairing relationship, the tension sample and the displacement sample at the synchronous sampling time are required to correspond to the same reference sampling time, and the segment matching constraints of each channel are checked to see if they can be satisfied together. When the single-channel matching results of the tension channel and the displacement channel are all satisfactory and the segment matching constraints of each channel cannot be satisfied together, the pairing relationship and the original sampling sequence remain unchanged, and the segment matching constraints are deleted one by one to obtain the conflict constraint group that simultaneously contains the segment matching constraints of the tension channel and the segment matching constraints of the displacement channel. The simultaneity relationship between the corresponding local segments of the conflict constraint group is determined based on the pairing relationship, and the simultaneity relationship is incorporated into the temporal relationship between the segments for constructing the association index.

3. The method according to claim 2, characterized in that, When all the segment matching constraints in each channel can be satisfied together, but the segment matching constraints cannot be satisfied together by the shared time correspondence that maintains the sampling time sequence, the segment matching constraints are deleted one by one, including: Each time a segment matching constraint is deleted, the requirements of the pairing relationship, the original sampling timing and the correspondence of the shared time of each channel remain unchanged. The matching requirement of the local segment corresponding to the segment matching constraint to be deleted in this trial is released. Based on all the allowed matching positions corresponding to the remaining segment matching constraints, it is re-determined whether the remaining segment matching constraints can be satisfied together. If the remaining segment matching constraints still cannot be satisfied together, maintain the deletion status of the segment matching constraints in this trial deletion, and continue to try deleting the segment matching constraints that have not yet been tried; When the remaining segment matching constraints can be satisfied together, restore the segment matching constraints of this trial deletion, record the time correspondence of the remaining segment matching constraints after this trial deletion, associate the time correspondence with the segment matching constraints of this trial deletion, and continue to try deleting the segment matching constraints that have not yet been deleted. After the traversal is completed, the final retained fragment matching constraints are grouped into the conflict constraint group, and the time correspondence associated with each of the final retained fragment matching constraints is associated with the associated index and stored, so as to verify the common matching result after deleting the corresponding fragment matching constraints when reading back the local fragment.

4. The method according to claim 1, characterized in that, The construction of an association index using the channel to which a local segment belongs, the allowed matching position, and the temporal relationship between segments in the conflict constraint group as search terms includes: Based on the channel to which the local segment belongs and all allowed matching positions of the conflict constraint group, determine the correspondence between the local segment and the reference loop record, and retain the correspondence between the same local segment and all its corresponding allowed matching positions; The temporal relationship between segments is represented by the sequential and simultaneous relationships between the start and end sampling times of each local segment, and the corresponding relationship is combined with the temporal relationship between segments to form the retrieval item; The historical records that are identical in terms of the reference cycle record version, the matching tolerance, and the search terms are grouped into the same associated index, and the correspondence between the product traceability code, the rivet identifier, and the local fragment storage address of each historical record is retained.

5. The method according to claim 3, characterized in that, The review of the conflict constraint group includes: Based on the local segments obtained from the readback, the pairing relationship, the original sampling timing, and the timing relationship between the segments are restored. In accordance with the reference cycle record version associated with the hit record and the matching tolerance, all allowed matching positions are re-determined, and the segment matching constraints in the conflict constraint group are restored accordingly. Based on the channel to which the local segment belongs, the re-determined all allowed matching positions, and the restored temporal relationship between the segments, the search term is reconstructed. When the reconstructed search term is consistent with the search term stored in the associated index, the pairing relationship and the original sampling time sequence are maintained. It is then checked whether the conflict constraint group can be satisfied by the shared time correspondence that maintains the sampling time sequence. When the conflicting constraint group cannot be satisfied together, for each fragment matching constraint in the conflicting constraint group, verify whether the associated stored time correspondence can be satisfied together to satisfy the remaining fragment matching constraints after deleting the corresponding fragment matching constraint; for the time correspondence that fails the verification, find a time correspondence that can be satisfied together to satisfy the remaining fragment matching constraints based on the newly determined all allowed matching positions. If the reconstructed search term is consistent with the search term stored in the associated index, the conflict constraint group cannot be satisfied by both, and after deleting any fragment matching constraint in the conflict constraint group, there is a time correspondence that satisfies the remaining fragment matching constraints, the hit record is determined as a historical record that has passed the review, and the corresponding product traceability code and rivet mark are output.

6. The method according to claim 1, characterized in that, The formation of the fragment matching constraint includes: For local segments within the same channel that are determined in a continuous sampling order and whose adjacent local segments share a boundary sample, the requirement that the boundary sample corresponds to the same reference sampling time in adjacent local segments is used as a common matching boundary condition. During the item-by-item deletion process, the boundary condition is maintained only for local segments that are still retained and are adjacent in the complete cyclic record. Under the boundary condition, each local segment meets the matching tolerance requirement within the corresponding all allowed matching positions, forming a segment matching constraint.

7. The method according to claim 1, characterized in that, The retention of all allowed matching positions includes: Traverse the continuous sampling intervals within the same channel of the reference loop record that contain the same number of samples as the local segment, and match each sample of the local segment with each sample of the continuous sampling interval in the sampling order. When the absolute value of the numerical difference of all corresponding samples is not greater than the matching tolerance of the corresponding channel, the start and end sampling positions of the corresponding continuous sampling interval are all retained as the allowed matching positions.

8. The method according to claim 1, characterized in that, The readback of the local segment includes: When the search term is matched, the storage address of the local segment corresponding to the matched record is determined based on the product traceability code and rivet identifier of the matched record associated with the associated index; wherein, the storage address of the local segment includes the storage address of the complete loop record, the channel to which it belongs, and the storage location of the first and last samples of the local segment in the complete loop record; The continuous reading range is determined based on the complete cyclic record storage address, the channel it belongs to, and the storage location. The original sample is then read according to the continuous reading range, and local fragments are recovered.

9. The method according to claim 1 or 4, characterized in that, The versioning of the reference circular record includes: When the reference cycle record is updated, the existing version of the reference cycle record is retained, and the existing association index is maintained with the corresponding version of the reference cycle record, so that the corresponding version of the reference cycle record can be read during review.

10. The method according to claim 5, characterized in that, The read multiplexing of the reference circular record includes: The start and end sampling positions of the continuous sampling interval in the reference cycle record are determined according to the allowed matching position, and the continuous sampling interval is used as a reference segment. In the same traceback, the reference segment with the same reference cycle record version, channel and start and end sampling positions is read once and reused for the review of the conflict constraint group corresponding to each hit record.

Citation Information

Patent Citations

  • Discrete workshop digital traceability method based on Internet of Things

    CN112765768A