A context-based tool validation method and apparatus
By using a context-based tooling verification method, which generates version identifiers using caching and feature strings, the database performance bottleneck and latency issues under high-concurrency verification are resolved, achieving high efficiency and stability in tooling verification.
Patent Information
- Application Number
- CN202611227121.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-13
- Publication Date
- 2026-11-24
AI Technical Summary
Existing tooling verification solutions struggle to eliminate database write performance bottlenecks, read-write lock contention, and system response latency issues in high-concurrency verification scenarios under flexible and adaptive processes.
By obtaining the verification context, multiple verification steps are identified and associated with unique step identifiers. Tooling identification data is stored in the cache, feature strings are generated according to preset rules, version identifiers are determined based on feature strings, and comparisons are performed at the cache level. Persistent storage is only performed when the tooling configuration changes.
It reduces read/write lock contention and I/O overhead in high-concurrency verification scenarios, lowers system response latency, and improves the efficiency of tooling verification and the throughput performance of the data system.
Smart Images

Figure CN123160171A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of SMT manufacturing technology, and in particular to a context-based tooling verification method and apparatus. Background Technology
[0002] In discrete manufacturing fields such as electronic product assembly and surface mount technology (SMT), in order to ensure product quality, it is usually necessary to verify and bind records of physical tooling or production auxiliary materials such as stencils, squeegees, and solder paste before the process goes online, so as to avoid batch quality accidents caused by mixed materials, use of incorrect tooling, or expired materials.
[0003] However, with the increasing demand for flexible production scheduling, the production line and process configuration are frequently adjusted, resulting in the dynamic and ever-changing physical tooling combinations and verification steps required for verification in the process flow. At the same time, in the high-speed production workshop, the high-frequency parallel verification of tooling will generate a large number of concurrent binding requests, which will put great data throughput pressure on the underlying manufacturing execution system (MES).
[0004] Most existing tooling verification solutions use static rule matching, which means that fixed tooling error prevention rules are pre-coded and set. When the production line changes, the system needs to be stopped and the system parameters reconfigured. In addition, existing solutions usually use a direct database read-write method when performing verification binding. Each scan verification requires starting a huge database write transaction. In environments with high-frequency verification and high concurrency, high-concurrency read-write lock contention can easily lead to system response delays and data write freezes.
[0005] Therefore, how to eliminate the database write performance bottleneck in high-concurrency verification scenarios while supporting flexible adaptive tooling verification has become a pressing technical problem in the field of manufacturing execution control. Summary of the Invention
[0006] This invention provides a context-based tooling verification method and apparatus to address the technical problems of existing tooling error prevention verification, which, while supporting flexible adaptive verification, struggle to eliminate read / write lock contention, I / O performance bottlenecks, system response delays, and data freezes caused by high-frequency transactions in the underlying relational database during high-frequency, high-concurrency verification scenarios in the workshop.
[0007] In a first aspect, the present invention provides a context-based tooling verification method, comprising: Obtain the verification context, determine multiple verification steps based on the verification context, and associate each verification step with a unique step identifier; For each verification step, tooling identification data is obtained, and the tooling identification data is associated with the corresponding step identifier and saved to the cache; The associated data stored in the cache is sorted and concatenated according to preset rules to generate a feature string; The version identifier of the current tooling configuration status is determined based on the characteristic string; The version identifier is compared with the historical version identifier: if they match, the historical tooling group identifier associated with the historical version identifier is reused, and the persistent storage operation is skipped; if they do not match, after confirming that the tooling identifier data matches the verification context, the tooling identifier data is persistently stored to generate a new tooling group identifier, and the association between the version identifier and the new tooling group identifier is established.
[0008] Optionally, the step of obtaining the verification context, determining multiple verification steps based on the verification context, and associating each verification step with a unique step identifier includes: Obtain and parse the verification context to extract device configuration parameters and product specification parameters; Based on the equipment configuration parameters and the product specification parameters, determine each piece of equipment involved in the current verification process, and match and obtain the tooling type set corresponding to each piece of equipment in the current verification process; The multiple verification steps are dynamically constructed based on each of the described devices and tooling types. The key value generated by combining the device sequence information of each device with the tooling type information in the corresponding tooling type set is used as the unique step identifier and associated with each verification step.
[0009] Optionally, the step of obtaining tooling identification data for each verification step, establishing an association between the tooling identification data and the corresponding step identifier, and saving it to a cache includes: For each tooling identifier data obtained, a uniqueness filter is performed using a deduplication data structure to remove tooling identifier data that has been occupied within the current verification cycle. After the uniqueness filter is passed, the tooling identifier data that has passed the filter will be associated with its corresponding step identifier to generate associated data; A concurrency control mechanism is used to implement exclusive locking for write operations to the cache, and the associated data is saved to the cache while in the exclusive locking state.
[0010] Optionally, the step of sorting and concatenating the associated data stored in the cache according to preset rules to generate a feature string includes: Extract the step identifiers and the tooling identifier data associated with each step identifier; The obtained step identifiers are sorted in a normalized manner according to the character encoding order of each step identifier; The step identifiers and their corresponding tooling identifiers are sequentially formatted into text fragments representing a single tooling binding relationship in the sorted order. The text segments are chained together using a preset separator to generate the feature string.
[0011] Optionally, determining the version identifier of the current tooling configuration status based on the feature string includes: The feature string is input into a preset one-way hash algorithm for calculation to obtain a fixed-length feature digest value; The feature summary value is converted into a text in a specific base or a preset encoded string to serve as a version identifier for the current tooling configuration status.
[0012] Optionally, comparing the version identifier with the historical version identifier: if they match, the historical tooling group identifier associated with the historical version identifier is reused, and the persistent storage operation is skipped; if they do not match, after confirming that the tooling identifier data matches the verification context, the tooling identifier data is persistently stored to generate a new tooling group identifier, and the association between the version identifier and the new tooling group identifier is established, including: Based on the verification context, retrieve and obtain the corresponding historical cache record, and read the feature summary value of the previous record from the historical cache record as the historical version identifier; The version identifier is compared with the historical version identifier for equality; If they match, the historical tooling group identifier stored in the historical cache record is read and reused, and the persistent storage operation is skipped. If they are inconsistent, it is determined whether the tooling identification data stored in the cache matches the verification context; After confirming a match, the current tooling identification data is serialized and stored in a persistent storage system through an atomic write operation to generate the new tooling group identifier. Record the association between the version identifier and the new tooling group identifier, and update the historical cache record with the association.
[0013] Secondly, the present invention provides a context-based tooling verification device, comprising: The verification step determination module is used to obtain the verification context, determine multiple verification steps based on the verification context, and associate each verification step with a unique step identifier; The associated data caching module is used to obtain tooling identification data for each verification step, establish an association between the tooling identification data and the corresponding step identifier, and save it to the cache; The feature string generation module is used to sort and concatenate the associated data stored in the cache according to preset rules to generate feature strings; The version identifier determination module is used to determine the version identifier of the current tooling configuration status based on the feature string; The comparison and control module is used to compare the version identifier with the historical version identifier: if they match, the historical tooling group identifier associated with the historical version identifier is reused and the persistent storage operation is skipped; if they do not match, after confirming that the tooling identifier data matches the verification context, the tooling identifier data is persistently stored to generate a new tooling group identifier, and the association between the version identifier and the new tooling group identifier is established.
[0014] Thirdly, the present invention provides an electronic device including a processor and a memory, the memory storing computer-readable instructions that, when executed by the processor, perform the steps of the method provided in the first aspect above.
[0015] Fourthly, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the steps of the method provided in the first aspect above.
[0016] Fifthly, the present invention provides a computer program product comprising a computer program that, when executed by a processor, performs the steps of the method provided in the first aspect above.
[0017] As can be seen from the above technical solutions, the present invention has the following advantages: This invention provides a context-based tooling verification method and apparatus. The method includes: determining multiple verification steps based on the verification context and associating them with unique step identifiers; establishing an association relationship and temporarily storing the tooling identifier data in a cache after obtaining the tooling identifier data; subsequently, sorting the associated data in the cache according to preset rules and concatenating them to generate a feature string; determining a version identifier based on the feature string; if the identifier is consistent with the historical one, reusing the historical tooling group identifier and skipping the persistence operation; if they are inconsistent, performing a persistent write operation after matching confirmation to generate a new tooling group identifier and updating the association relationship.
[0018] By using preset sorting rules, the step identifiers and tooling identifiers associated with the cache are arranged and concatenated sequentially, reducing discrepancies caused by inconsistencies in the timing of physical data collection. This ensures that as long as the physical tooling configuration remains the same, the generated feature strings and their corresponding version identifiers will remain consistent. Furthermore, based on this version identifier, cache-level comparison can transform data binding and write operations that originally required transactional interaction with the underlying relational database into fast in-memory value comparisons. In routine verification scenarios where the tooling configuration remains unchanged, redundant persistent write processes can be eliminated. This reduces read / write lock contention and I / O overhead for the database during high-concurrency verification. While ensuring compliance and traceability of tooling data, it helps reduce the write throughput load of the underlying data system and shorten response latency during the verification process. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention 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 only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is a flowchart illustrating the steps of a context-based tooling verification method according to an embodiment of the present invention. Figure 2 This is a flowchart illustrating the steps of a second embodiment of a context-based tooling verification method according to the present invention. Figure 3 This is a structural block diagram of an embodiment of a context-based tooling verification device according to the present invention; Figure 4 This is a structural block diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0021] Preferred embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While preferred embodiments of the invention are shown in the drawings, it should be understood that the invention can be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that the invention will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
[0022] This invention provides a context-based tooling verification method and apparatus to address technical issues such as database write performance bottlenecks, read-write lock contention, and response latency in high-concurrency verification scenarios.
[0023] To make the objectives, features, and advantages of this invention more apparent and understandable, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described below are only some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.
[0024] Example 1 Please see Figure 1 , Figure 1 This is a flowchart illustrating the steps of a context-based tooling verification method according to the present invention. The method includes: Step S101: Obtain the verification context, determine multiple verification steps based on the verification context, and associate each verification step with a unique step identifier; In practice, the data of the work order to be executed can be read through a data acquisition interface (such as the data parsing component of a barcode scanner, the data reading component of a physical sensor, or the communication component with the manufacturing execution system in the production workshop) to construct a verification context containing product identification parameters and process parameters. The verification context may include at least one or more fields from the following: work order number, product part number, product model, workstation identifier, and line identifier.
[0025] After obtaining the verification context, the process path database or verification plan template library can be searched based on the product part number or product model to determine the tooling verification requirements for the current process. Taking a surface mount technology (SMT) scenario as an example, if it is detected that the current work order requires the use of a specific type of fixture or production auxiliary material, then the various machine tools involved in the current workstation are matched and obtained, and then the tooling verification plan required for each machine tool is determined. The tooling verification plan usually includes one or more types of tooling / auxiliary materials such as stencils, front squeegees, rear squeegees, and solder paste that each machine tool needs to verify within the current verification cycle.
[0026] Based on the matched tooling verification plan, multiple corresponding verification steps are dynamically determined, and a unique step identifier is generated for each verification step. To achieve precise isolation of data read and write in scenarios with concurrent verification of multiple machines and tooling, the step identifier is typically constructed using a composite key-value pair of equipment sequence information (e.g., the physical serial number of the machine) and tooling type information (e.g., stencil#1 represents the stencil verification step of machine 1, and paste#2 represents the solder paste verification step of machine 2). This ensures the global uniqueness of the step identifier within the current context's lifecycle, thereby solving the problem of being unable to adapt to flexible production scheduling adjustments under fixed rule configurations.
[0027] Step S102: Obtain tooling identification data for each verification step, establish an association between the tooling identification data and the corresponding step identifier, and save it to the cache; In actual execution, the original strings in the barcodes, QR codes or RFID electronic tags affixed to the surface of physical tooling or production auxiliary materials can be obtained through barcode scanning equipment or radio frequency identification components, and used as tooling identification data corresponding to each verification step (such as obtaining the physical code barcode of the stencil, the traceability identification code of the solder paste, etc.).
[0028] After obtaining the tooling identification data, it is necessary to establish a corresponding association between the tooling identification data and its corresponding step identifier, and temporarily store it in a high-frequency read / write memory cache (such as a cache dictionary FixtureCache, which can use the product part number as the primary key and the step identifier as the secondary key for hierarchical indexing).
[0029] To avoid data races and state conflicts caused by multiple scanning threads simultaneously writing to the cache in a high-concurrency environment, a concurrency control mechanism can be used to implement exclusive locking for write operations to the cache. For example, a lightweight semaphore lock (such as SemaphoreSlim) or a thread-safe read-write lock (such as ReaderWriterLockSlim) can be used to implement exclusive control over write operations to the context container. Only after acquiring the exclusive lock can the associated data be written.
[0030] Furthermore, to prevent duplicate or erroneous scans due to operational errors, a deduplication data structure can be introduced for filtering before writing to the cache. For example, an unordered, memory-based collection (such as HashSet) can be used. <string>The tool barcodes that have been scanned in the current batch are temporarily stored. If the newly acquired tool identification data already exists in this unordered set, it means that the tool barcode has been collected repeatedly and can be removed and filtered, triggering an alert.
[0031] Step S103: Sort and concatenate the associated data stored in the cache according to preset rules to generate a feature string; The purpose of standardizing, sorting, and concatenating related data is to address the technical challenges posed by the temporal randomness (out-of-order scanning) during tooling identification data collection in the production environment. In the physical workshop, the physical order in which various tooling and auxiliary materials are scanned is uncertain due to differences in operator behavior. If the received temporal stream data is directly concatenated in an unordered manner, even if the physical tooling configurations are identical, changes in the scanning timing will generate different merged strings, causing cached version consistency checks to fail.
[0032] In this embodiment, the saved step identifiers and their corresponding tooling identifier data are extracted from the memory cache and then normalized and sorted according to the character encoding order of the step identifiers (e.g., lexicographical or ASCII order). Then, in the sorted order, each step identifier and its corresponding tooling identifier data are sequentially formatted into text fragments representing a single tooling binding relationship (e.g., key-value pairs, such as stencil#1=BARCODE_STENCIL_01). Finally, these text fragments are chained together using a preset special separator (e.g., a pipe symbol | or a comma,) to generate a deterministic feature string unaffected by the actual physical scan order, providing a stable data source for subsequent hash-based version verification.
[0033] Step S104: Determine the version identifier of the current tooling configuration status based on the feature string; To achieve extremely low-latency memory-level state comparison, the generated deterministic feature string can be input into a preset one-way hash algorithm (such as SHA256, MD5, or SHA1; in a preferred embodiment, SHA256 is used) for calculation to obtain a fixed-length feature digest value. Subsequently, the feature digest value can be converted into text in a specific base (such as hexadecimal text) or a preset encoded string (such as Base64 encoding) to serve as a version identifier for the current tooling configuration state (i.e., an implicit version number reflecting the current physical tooling configuration state).
[0034] Since the feature strings are sorted and concatenated to eliminate timing interference, the calculated version identifier will remain absolutely consistent as long as the actual tooling combination and consumable configuration used at the current workstation do not change.
[0035] Step S105: Compare the version identifier with the historical version identifier: if they match, reuse the historical tooling group identifier associated with the historical version identifier and skip the persistent storage operation; if they do not match, after confirming that the tooling identifier data matches the verification context, persist the tooling identifier data to generate a new tooling group identifier, and establish the association between the version identifier and the new tooling group identifier.
[0036] During the actual comparison, historical cache objects (such as cache entries `FixtureGroupCacheEntry`) recorded in the cache can be retrieved, and the feature summary value of the previously recorded entries can be read as the historical version identifier. The current version identifier is then compared with the historical version identifier for equality. If the comparison results are consistent, it indicates that the physical tooling combination used at the current workstation has not changed at all. The historical tooling group identifier (such as jig group ID: GroupId) saved in the historical cache object can be directly read and reused, and the persistent storage operation of writing to the underlying relational database can be skipped directly, thereby avoiding the heavy read-write lock contention and I / O overhead of relational database in high-concurrency scenarios.
[0037] If the comparison results are inconsistent, it is determined that the physical workpiece has been changed or that this is the first time it has been bound for verification. In this case, the determination logic must first be executed to determine whether the tooling identification data stored in the current cache matches the verification context. The determination logic includes: for durable tooling such as stencils and scrapers, matching the fixture model in its identification with the product model in the context; for chemical consumables such as solder paste, cross-matching and verifying the product part number, work order number, line type, and current machine number in its identification data.
[0038] After confirming that the error prevention matching verification is successful, the tooling identifier data is serialized (e.g., serialized into an XML string with a specific architecture) and stored in a persistent storage system using an atomic write operation (e.g., in a relational database, by executing the stored procedure SP_SaveFixtureGroup to control transactions in conjunction with database ACID transaction control, ensuring that the entire transaction automatically rolls back when multiple machines fail to write), thereby generating the new tooling group identifier. Finally, the association between the version identifier and the new tooling group identifier is recorded, and the historical cache record is updated with this association. Example 2 Please see Figure 2 , Figure 2 This is a flowchart illustrating another context-based tooling verification method according to the present invention. The context-based tooling verification method includes the following steps: Step S201: Obtain and parse the verification context to extract device configuration parameters and product specification parameters.
[0039] Specifically, a verification context containing production site context data can be reconstructed by reading the work order barcode collected by an external scanning device. The acquisition and parsing process may include: when the operator scans the work order (MO) barcode, calling the underlying scanning service component (such as the scan processing interface ProcessMoScan in ScanService) to read the real-time work order information corresponding to the work order barcode from the manufacturing execution database in an asynchronous and non-blocking manner, and assembling and writing the real-time work order information into a context container (such as a ScanContext container).
[0040] The product specification parameters parsed and extracted from the verification context include at least the current product part number (CurrentMo.PN), product model (CurrentMo.Model), and current customer name (CurrentMo.Customer); the device configuration parameters parsed and extracted include at least the current workstation number (CurrentStation) and the currently logged-in user identifier (CurrentUser), etc. These parameters are used as the basis for subsequent matching of the corresponding verification plan.
[0041] Step S202: Based on the equipment configuration parameters and the product specification parameters, determine each piece of equipment involved in the current verification process, and match and obtain the tooling type set corresponding to each piece of equipment in the current verification process.
[0042] In actual execution, asynchronous matching query logic can be used. The station barcode scanned by the operator is obtained, and the character length and encoding format of the barcode are verified using a station verification service component (such as the verification interface GetAndValidateStation in StationService) (e.g., verifying whether it is a 4-digit encoding). The station's physical existence is then verified by searching the station database. Subsequently, the station's operating status is extracted and checked, excluding preset reserved states that do not conform to process rules (e.g., non-production states such as system reserved state W, test-dedicated state T, etc.).
[0043] After successful verification, the first two characters of the station barcode are extracted using a left-side truncation algorithm to obtain the current production line identifier (LineID), which is then updated in the context container. Next, the verification manager (such as FixtureManager) determines whether tooling verification needs to be performed on the current station. If so, the line identifier, workstation number, product part number, product model, and customer name are used as joint query conditions to perform an asynchronous search on the associated database storing batching rules and process routes (e.g., a joint search of a database containing the process route table Route and the sub-bill of materials table tblSubPartsList).
[0044] During the search, adaptive filtering is performed based on the process surface of the current station (e.g., top or bottom). This automatically matches and retrieves all the equipment involved in the current station. The matching results are returned as a list of equipment configuration plans. Each equipment configuration plan contains the physical serial number of the current placement machine and a set of tooling types that must be configured in that production process. The tooling type set includes, but is not limited to, the stencil, front scraper (F), rear scraper (B), and permitted solder paste that must be verified under the current equipment node.
[0045] Step S203: Dynamically construct the multiple verification steps based on each of the described devices and each of the described tooling type sets.
[0046] After obtaining the various devices involved (e.g., the number of machine devices is M) and the set of tooling types corresponding to each device (e.g., each device is associated with K types of tooling or auxiliary materials; in this embodiment, K is fixed at 4, which includes 4 types: stencil, front scraper, rear scraper, and solder paste), the dynamic construction logic is executed through the step constructor to convert the verification plan into an ordered abstract scan verification step in real time.
[0047] During the actual construction process, for each retrieved device node, a series of logically related verification steps are dynamically generated in memory according to its configured tooling type set, with the device physical serial number (MachineNo) as the primary sequence and the tooling type as the secondary sequence. The total number of dynamically generated steps is equal to the product of the number of machines (M) involved in the current workstation and the number of tooling types (K) corresponding to a single machine (i.e., the total number of steps equals M multiplied by K; when K is 4, the total number of steps equals 4 times the number of machines). Because the total number of steps is dynamically calculated and multiplied in memory based on the actual configuration of the physical devices on-site and the size of the tooling type set, it can adapt to the rapid changes of various flexible production lines, avoiding the problem of needing to stop and reconfigure system parameters when the line changes due to static hard-coded rules.
[0048] Step S204: The key value generated by combining the device sequence information of each device with the tooling type information in the corresponding tooling type set is used as the unique step identifier and associated with each of the verification steps.
[0049] In order to achieve isolated localization of high-frequency memory read and write in a multi-machine, multi-tool parallel scanning environment, it is necessary to generate a unique feature locator for each dynamically generated verification step.
[0050] The specific association generation rules can be as follows: extract the physical serial number of the corresponding machine equipment for each verification step (such as machine number 1, 2, ..., M) as the sequence information, and extract the category name of the corresponding tooling (such as stencil for stencil, squeegeeF for front scraper, squeegeeB for rear scraper, and paste for solder paste) as the tooling type information; then, concatenate the tooling type information and the equipment sequence information into a string using a preset connector (such as the character #) to generate a composite key value as a unique step identifier (i.e., a unique step key).
[0051] For example, for device 1, the generated step identifiers (unique keys) are stencil#1, squeegeeF#1, squeegeeB#1, and paste#1, respectively. Finally, the generated unique step identifiers are bound as attributes to the corresponding verification step instances so that accurate indexing and isolated read / write of each device and tooling type in memory can be achieved with constant time complexity (O(1)) when performing high-frequency dictionary lookups and state updates in the future.
[0052] Step S205: For each tooling identifier data obtained, a uniqueness filter is performed using a deduplication data structure to remove tooling identifier data that has been occupied within the current verification cycle.
[0053] In practical implementation, filtering can be achieved by defining a resident deduplication data structure (e.g., an unordered deduplication hash set HashSet). Whenever tooling identification data (e.g., the physical code of a stencil or scraper, or the original traceability barcode of solder paste) corresponding to the current verification step is collected by an input peripheral (e.g., a barcode scanner or RF component), the associated data is not immediately saved. Instead, the tooling identification data is extracted and the deduplication data structure (e.g., the scannedCodes set) is searched to determine whether the same tooling identification data has already been recorded in the deduplication data structure.
[0054] If it is determined that the same tooling identification data has been recorded, it means that the physical tooling has been occupied by other devices or scanning steps in the current verification cycle. At this time, filtering and interception are triggered and abnormal control is performed to avoid the same physical barcode being repeatedly scanned and bound to different steps in a single verification cycle, which would cause verification inaccuracies. If it is determined that the same tooling identification data has not been recorded, the uniqueness filter is passed and the current tooling identification data is added as a new entry to the deduplication data structure.
[0055] Simultaneously, for the tooling identification data that passes the filter, a hierarchical verification logic is executed based on the current step classification type. The verification results are divided into three levels: OK, Warning but allowed to continue, and Failure (re-scan required). Specific hierarchical verification rules include: if the current step classification is stencil or front / rear scraper, barcode compliance verification is performed at the product model level (e.g., calling the ValidateFixtureCodeAsync interface); if the current step classification is solder paste, multi-dimensional cross-verification is performed using product part number, work order number, line type, and specific machine number (e.g., calling the ValidatePasteCodeAsync interface). Through multi-dimensional logical protection, the loading of tooling and auxiliary materials is strictly controlled.
[0056] Step S206: After the uniqueness filter is passed, the tooling identifier data that has passed the filter is associated with its corresponding step identifier to generate associated data.
[0057] After the uniqueness filtering and hierarchical verification in step S205 are passed, a mapping mechanism is used to establish a direct correspondence between the tooling identification data and the corresponding step identifier. Specifically, the unique step identifier (UniqueKey) can be used as the mapping key, and the currently verified tooling identification data can be used as the mapping value to establish a one-to-one binding mapping, thereby generating associated data to express the positioning status of a specific tooling under a specific device node.
[0058] Step S207: Use a concurrency control mechanism to implement exclusive locking on the write operation of the cache, and save the associated data to the cache while in the exclusive locking state.
[0059] In the process of writing the aforementioned related data into the memory cache, to ensure transactional consistency of state preservation and to meet efficient read and write requirements in high-throughput scenarios, this solution constructs and maintains a fine-grained four-level cache architecture. Specifically, this includes: 1. Level 1 Work Order Cache (MoCache): Used to cache the currently executed work order information. It adopts a thread-safe read-write lock (such as ReaderWriterLockSlim) to achieve read-write separation and introduces a double-check locking mode to ensure concurrency safety under high concurrency. The cache validity period is set to 30 minutes.
[0060] 2. Second-level fixture binding cache (FixtureCache): A nested two-level dictionary is built with the product part number (PN) as the first-level key to isolate tooling data under different product dimensions, and when the product part number changes, the cache is cleared completely through the verification interface.
[0061] 3. Third-level Fixture Group Hash Cache (FixtureGroupCache): Used to store the fixture group cache entity corresponding to the current product part number. The cache entity records the fixture group ID, the corresponding feature hash value, and the persistent storage timestamp.
[0062] 4. Fourth-level validation data cache (ValidationCache): Hash sets are used to cache valid defect codes and valid bill of materials locations separately, and the cache is classified and cached according to customer name and product SKU. The cache is only reloaded when the customer name or product SKU changes.
[0063] When writing the associated data generated in step S206 into the secondary fixture binding cache, an exclusive concurrent lock mechanism based on lightweight semaphores is introduced to prevent data competition and hash key-value pair corruption caused by multi-threaded concurrent read and write.
[0064] The specific write process is as follows: Before performing a write operation on the cache, the wait method of the semaphore is called (such as the Wait() or WaitAsync() method of the semaphore lock component _fixtureScanSemaphore) to implement a global exclusive lock on the write channel of the current scan context container, so that other write threads and the scan input channel are blocked until the current thread completes the write.
[0065] Once a write lock is successfully acquired and the device is in an exclusive lock state, the data is written to memory: First, check if the secondary fixture binding cache already contains a secondary cache dictionary corresponding to the current product part number; if it does not exist, create an empty secondary cache dictionary; if it does exist, directly save the associated data (i.e., the key-value pair UniqueKey and the tooling identifier value) generated in step S206 to the secondary cache dictionary corresponding to the product part number.
[0066] Finally, in the `Finally` exception protection block of the write logic, the `Release()` method of the semaphore lock component is called to release the exclusive lock, ensuring that the write lock is safely released, thereby reducing concurrent locking overhead and preventing high-concurrency write conflicts. This reduces the computational complexity from O(n^2) to O(n^2). 3 This reduces the time complexity to an O(nlogn) hierarchical indexing strategy, ensuring real-time consistency of multidimensional tooling data.
[0067] Step S208: Extract each step identifier and the tooling identifier data associated with each step identifier.
[0068] Specifically, this can be achieved by reading the set of key-value pairs stored in the memory cache for the current product part number. For example, after triggering the scan end event, under the control of the cache read-write lock, the second-level cache dictionary corresponding to the current product part number in the scan context container is read, and the data contained in the second-level cache dictionary is completely extracted to obtain all step identifiers (i.e., unique keys as keys) under the current product part number and the tooling identification data (i.e., tooling barcode strings as values) that are associated with each of the step identifiers, forming a key-value pair dataset to be processed.
[0069] Step S209: The obtained step identifiers are sorted in a normalized manner according to the character encoding order of each step identifier.
[0070] The step identifiers obtained in step S208 are sorted to eliminate data inconsistencies caused by the physical randomness of the scanning input order in the workshop production area. Since the order of physical actions performed by operators on the stencils, scrapers, and solder paste of various machines in the production area often varies from person to person and is not fixed, directly splicing the timing stream data will result in different spliced strings being generated for the same tooling configuration.
[0071] Based on this, the acquired step identifiers are sorted in ascending order using a pre-defined character encoding comparator (such as the StringComparer.Ordinal algorithm based on ASCII code order or the original character encoding value). This sorting logic ensures that the final arrangement of step identifiers depends only on the character encoding of the step identifiers themselves, thus completely decoupling them from the actual scanning input timing in the physical environment. As long as the current physical tooling configuration is completely consistent, the sorted sequence of step identifiers will always maintain the same character position order, thereby guaranteeing the determinism of feature output.
[0072] Step S210: The step identifiers and their corresponding tooling identifiers are sequentially formatted into text fragments representing a single tooling binding relationship according to the sorted order.
[0073] The specific formatting rules are as follows: Following the order of the step identifiers determined after sorting in step S209, each step identifier and its associated tooling identifier data are read sequentially. For each extracted step identifier and its tooling identifier data, uniform standardized text processing is performed, such as converting the step identifier characters to lowercase and removing leading and trailing whitespace characters from the tooling identifier data. Subsequently, the processed step identifier and tooling identifier data are concatenated using an equals sign, formatted as a single-line standardized text fragment in the form of 'UniqueKey=Tooling Identifier Value' (e.g., formatted as stencil#1=barcode_stencil_01). Each formatted text fragment represents a single physical tooling binding relationship in the current tooling configuration state.
[0074] Step S211: Chain the text segments together using a preset separator to generate the feature string.
[0075] The specific concatenation method can be as follows: Arrange the text fragments representing the single tooling binding relationship obtained in step S210 in the sorted order. Use a preset special separator (such as the pipe symbol "|", the semicolon ";", or the comma ")) as the connection medium to chain and concatenate the sorted text fragments. After removing redundant special separators at the beginning and end, a single-line long text (i.e., the feature string, such as stencil#1=barcode_01|squeegeeF#1=barcode_02|paste#1=barcode_03) is finally generated to completely represent the binding relationship between all physical tooling and machine equipment at the current workstation.
[0076] Step S212: Input the feature string into a preset one-way hash algorithm for calculation to obtain a fixed-length feature digest value.
[0077] The specific hash calculation logic can be as follows: First, the feature string generated by chaining in step S211 is converted into a character encoding (e.g., using the UTF-8 character set) to obtain the input byte stream array corresponding to the feature string. Then, a preset one-way hash algorithm (e.g., the secure hash algorithm SHA256 instantiated based on the system cryptographic component) is initialized, and the input byte stream array is input into the hash core function to perform irreversible obfuscation calculation. Finally, a fixed-length feature digest value byte array is output (e.g., for the SHA256 algorithm, the output byte length of its feature digest value is fixed at 256 bits, i.e., 32 bytes).
[0078] Step S213: Convert the feature summary value into a specific base text or a preset encoded string to serve as the version identifier of the current tooling configuration status.
[0079] In order to perform the equality determination in the high-speed memory space in subsequent processing, the byte array output in step S212 needs to be converted into text form.
[0080] Specific conversion methods include: converting the feature digest value byte array into a hexadecimal text string in a preset case format (such as all uppercase) (i.e., the specific base text), or converting it into a fixed-length Base64 encoded string using an encoding algorithm. This single-line text string, without any leading characters or whitespace, serves as the version identifier representing the current tooling configuration status of the machine group (i.e., an implicit version number representing the current physical fixture group binding status). Due to the avalanche characteristic of hash algorithms, even a slight change in the tooling identifier data during any verification step will cause the calculated feature digest value to deviate, providing reliable algorithmic support for subsequent rapid state reuse.
[0081] Step S214: Based on the verification context, retrieve and obtain the corresponding historical cache record, and read the feature summary value of the previous record from the historical cache record as the historical version identifier.
[0082] The specific retrieval process can be as follows: Based on the product part number (PN) in the verification context, retrieve the third-level cache mapping dictionary (i.e., the fixture group hash cache dictionary _fixtureGroupCache) that resides in memory. If the dictionary contains a key corresponding to the current product part number, obtain the associated historical cache object (such as the historical cache record FixtureGroupCacheEntry); subsequently, read the feature digest value (such as the GroupHash field) of the previously successfully persisted record from the historical cache record object, and use it as the historical version identifier.
[0083] Step S215: Compare the version identifier with the historical version identifier for equality; if they match, read the historical tooling group identifier stored in the historical cache record for reuse and skip the persistent storage operation; if they do not match, determine whether the tooling identifier data stored in the cache matches the verification context.
[0084] When performing the comparison and judgment: the version identifier calculated in step S213 is compared with the historical version identifier read in step S214 to determine the string equality.
[0085] To select the most time-efficient execution path while ensuring production rigor, this solution provides an adaptive multi-path selection model based on a decision matrix. During decision-making, path scoring is performed based on the current product part number's security consistency parameters, cache hit efficiency, and tooling data integrity. The weighting and scoring formula are as follows: Path Score = Security Weight × S + Time Efficiency Weight × T + Data Integrity Weight × C Wherein, S represents the security parameter, which is 1 if the consistency judgment of the current product part number passes, and 0 otherwise; T represents the time efficiency parameter, which is 1.0 if the cache is completely consistent (i.e., the hash value matches successfully), 0.5 if only part of the cache exists, and 0.1 if there is no cache record; C represents the data integrity parameter, which is 1 if the tooling verification requirements are fully met (i.e., the complete scan passes and the verification has no missing items), and 0 otherwise.
[0086] Based on the above scoring results, the optimal execution path is adaptively switched among the following four execution paths: (1) Path A (Full Reuse): If the current version identifier is consistent with the historical version identifier, it indicates that no physical change has occurred in the workstation configuration. At this time, the path score is the highest. The historical tooling group identifier (e.g., jig group ID: GroupId) saved in the historical cache record is directly read and reused. It is directly associated, saved and written into the current scanning context, and the subsequent persistent storage operations such as relational database transaction writes are completely skipped, thereby achieving the best time efficiency at constant level (O(1) level).
[0087] (2) Path B (incremental update): If the hashes are inconsistent, but some related caches already exist in memory, then only the steps that have changed will be updated and saved. The time complexity is on the order of the number of elements (O(k) level).
[0088] (3) Path C (complete scan): If there are no cached records, the complete physical scan verification is forced according to the step sequence, and the time complexity is on the order of the total number of steps (O(n) level).
[0089] (4) Path D (Forced Rebuild): If a change in the current product part number is detected, the safest isolation logic is triggered, clearing all FixtureCache and FixtureGroupCache, and forcibly rolling back to the initial state to re-bind completely.
[0090] In this step, if the determination result is inconsistent, the process falls into path B or path C. Before performing persistent data storage, it is first determined whether the tooling identification data stored in the cache matches the verification context. The multi-dimensional verification rules for this determination include: for durable fixtures such as stencils and scrapers, comparing their model information with the product model in the verification context; for chemical consumables such as solder paste, performing a multi-dimensional joint comparison of their material barcode with the current product part number (PN), work order number (MO), current production line, and the corresponding equipment machine number. If all multi-dimensional verifications pass, the current tooling data is determined to be a successful match.
[0091] In addition, to improve the fault tolerance flexibility of on-site verification, a multi-level rollback control mechanism corresponding to the above execution path was introduced, including: Step-level rollback: If a verification sub-step fails, only the status flag of that verification sub-step is set to error, without affecting other steps that have passed the scan. When a rescan input is received, the process jumps to that step to perform a partial rollback. Batch-level rollback: If a critical tooling is detected to have been illegally removed, the historical tooling group identifier in the historical cache will be invalidated to force a re-save during the next feature summary comparison. Line change full clear rollback: If a change in the current product part number is detected (trigger path D), then ClearAllCache is called to clear all cache dictionaries and globally roll back to the initial state; Transaction-level rollback: When an exception occurs during a write operation at the database level, the underlying transaction is rolled back to ensure that the current tool group identifier remains unchanged.
[0092] Step S216: After confirming a match, the current tooling identification data is serialized and stored in the persistent storage system through an atomic write operation to generate the new tooling group identifier.
[0093] After the matching is confirmed in step S215, atomic persistence is performed by the data access layer. To ensure physical consistency when writing data from multiple machines and tooling at once, and to prevent data deadlock or incomplete writing caused by high-concurrency write locks, the tooling binding data corresponding to the product part number in the memory dictionary is extracted, grouped and encapsulated according to the machine number, and combined to construct a list of fixture group objects (such as a FixtureGroup list).
[0094] Subsequently, serialization is performed to convert the list into an XML string described in a preset format. Finally, based on the ACID transaction control mechanism, the XML string is used as input parameters to call an atomic stored procedure of the relational database (such as the stored procedure SP_SaveFixtureGroup) to execute the write to the persistent storage device at the database transaction level. If the write operation on any machine is interrupted due to a fault, a global transaction rollback is automatically performed at the database level to ensure that no incomplete data that would compromise consistency is generated. After a successful write, the underlying database engine automatically returns a newly generated unique incrementing ID value, which serves as the identifier for the new tooling group.
[0095] Step S217: Record the association between the version identifier and the new tooling group identifier, and update the historical cache record with the association.
[0096] The specific recording and updating process can be as follows: Create a new instance of the historical cache entry (such as a FixtureGroupCacheEntry object), and encapsulate the current version identifier, the new tooling group identifier generated in step S216, and the current persistent timestamp (SavedAt) in the instance.
[0097] Subsequently, the instance is written as a value into the cache mapping dictionary to overwrite the key value corresponding to the current product part number, thereby achieving real-time synchronization of cache records and providing constant-level (O(1) level) memory comparison support when performing high-concurrency tooling verification in the future.
[0098] Furthermore, the generated new tooling group identifier is associated with the corresponding attribute in the current verification context (e.g., written to the CurrentFixtureGroupId attribute of the current scan context). When the product barcode (SN) of a subsequent work order is saved, this attribute is forcibly verified by the scan storage service (such as the SaveScanRecord interface in ScanService). By performing strict tooling group integrity access control judgment, closed-loop control of the entire product traceability lifecycle is achieved.
[0099] Example 3 Please see Figure 3 , Figure 3 This is a structural block diagram of a third embodiment of a multi-step verification and interactive control device according to the present invention. The device is used to implement the multi-step verification and interactive control method described in embodiments one or two above. The device includes: The sequence generation module 301 is used to automatically generate an ordered verification sequence consisting of multiple verification steps based on the obtained configuration parameters.
[0100] In some alternative embodiments, the sequence generation module 301 includes: The dependency resolution unit is used to parse the dependency logic description in the configuration parameters and determine the sequential verification dependency relationship of each object to be verified in the assembly process or physical flow. The sequence construction unit is used to generate the ordered verification sequence by connecting the independent step instances corresponding to each of the objects to be verified in one-way pointers according to the verification dependency relationship based on the topological sorting algorithm.
[0101] The context creation module 302 is used to create a context object for recording verification status data.
[0102] In some alternative embodiments, the context establishment module 302 includes: The session initialization unit is used to instantiate a context object in memory when a verification start signal is received, and to assign it a globally unique session identifier (such as a UUID). The memory isolation recording unit is used to store the context object as the value in a global dictionary using the session identifier as the key, and to isolate and record the verification status data of each verification step in the ordered verification sequence using a shared memory mutual exclusion access mechanism.
[0103] The status verification module 303 is used to obtain the input information of the object to be verified and perform status verification for the verification steps in the ordered verification sequence, and record the verification result in the context object, wherein the verification result includes normal verification status and abnormal interception status.
[0104] In some optional embodiments, the status verification module 303 includes: An input matching unit is used to acquire the input information entered by an external scanning terminal, and match and locate the corresponding verification step in the ordered verification sequence as the current verification step. The difference verification unit is used to obtain the type of the object to be verified bound to the current verification step, and when the type is a tooling object, it verifies the model matching and maintenance cycle validity of the tooling unique identifier; when the type is an auxiliary material object, it jointly verifies the product part number, factory or opening time and physical line flow compliance of the auxiliary material. The state writing unit is used to write the exported verification result to the preset state storage area of the corresponding verification step in the context object.
[0105] The voice control module 304 is used to add the corresponding playback content to the voice playback queue according to the verification result generated by the status verification, and dynamically control the playback of the voice playback queue.
[0106] In some alternative embodiments, the voice control module 304 includes: The task allocation unit is used to assign a low playback priority attribute to the normal verification state and a high playback priority attribute to the abnormal interception state, and to generate corresponding voice playback task packages and add them to the shared voice playback queue. The thread scheduling unit is used to start an independent background daemon thread to listen to the voice playback queue in a loop, and to perform dequeue consumption scheduling when a task is added to the queue. The strategy execution unit is used to suspend the thread and play the abnormal audio sequentially if the extracted task is of high priority; if the task is of low priority, it evaluates the current backlog length of the audio playback queue and automatically discards the task if the current backlog length is greater than a preset threshold (such as 3 task nodes or 2.5 seconds); if the current backlog length is not greater than the preset threshold, it triggers the underlying audio API to terminate the currently playing audio track and immediately loads the audio stream corresponding to the current low-priority task to perform real-time switching playback without mixing or overlap.
[0107] The submission control module 305 is used to execute the data submission request when it receives a data submission request, if it is determined from the context object that the verification results of each verification step in the ordered verification sequence are all in a normal verification state; otherwise, it prevents the execution of the data submission request.
[0108] In some alternative embodiments, the submission control module 305 includes: The request suspend unit is used to intercept and suspend the current transaction execution thread when a data commit instruction is triggered, using an asynchronous wait handle (such as AutoResetEvent or task completion source). The persistent transit unit is used to send a reset signal to the suspended thread to release the transaction execution thread when it is determined that all verification steps are marked as normal verification state after traversing the context object corresponding to the current session, thereby completing the persistence of the binding relationship between barcodes, jigs and auxiliary materials in the local or remote database. The interception alarm unit is used to refuse to release the thread and output a missing details report to the console if it determines that there is an abnormal step or an unverified step, and at the same time assemble the corresponding abnormal voice task package and add it to the voice playback queue.
[0109] Example 4 Based on the same inventive concept, embodiments of the present invention also provide an electronic device. Figure 4 This is a structural block diagram of an electronic device provided in an embodiment of the present invention. Figure 4 As shown, an embodiment of the present invention provides an electronic device including: one or more processors 101, a memory 102, and one or more I / O interfaces 103. The memory 102 stores one or more programs, which, when executed by the one or more processors, enable the one or more processors to implement any of the multi-step verification and interaction control methods described in the above embodiments; the one or more I / O interfaces 103 are connected between the processor and the memory, configured to enable information interaction between the processor and the memory.
[0110] The processor 101 is a device with data processing capabilities, including but not limited to a central processing unit (CPU) and a graphics processing unit (GPU); the memory 102 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and flash memory (FLASH); the I / O interface (read / write interface) 103 is connected between the processor 101 and the memory 102, and can realize information interaction between the processor 101 and the memory 102, including but not limited to a data bus (Bus).
[0111] In some embodiments, the processor 101, memory 102, and I / O interface 103 are interconnected via bus 104, and thus connected to other components of the computing device.
[0112] In some embodiments, the one or more processors 101 include a field-programmable gate array (FPGA) or an application-specific integrated circuit (ASIC) for accelerating the matching and indexing retrieval operations of high-concurrency relation matrices during multi-step differential verification.
[0113] Example 5 This invention also provides a computer storage medium storing a computer program thereon, wherein the computer program, when executed by the processor, implements the steps of a multi-step verification and interactive control method according to any embodiment.
[0114] The storage medium can be a non-volatile storage medium, such as a hard disk, optical disk, USB flash drive, flash memory, etc.
[0115] Example 6 This invention also provides a computer program product having a computer program stored thereon, wherein when the computer program is executed by the processor, it implements the steps of a multi-step verification and interactive control method according to any embodiment.
[0116] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0117] In the several embodiments provided in this application, it should be understood that the methods, apparatuses, electronic devices, and storage media disclosed in this invention can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.
[0118] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0119] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0120] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned readable storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0121] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.< / string>
Claims
1. A context-based tooling verification method, characterized in that, include: Obtain the verification context, determine multiple verification steps based on the verification context, and associate each verification step with a unique step identifier; For each verification step, tooling identification data is obtained, and the tooling identification data is associated with the corresponding step identifier and saved to the cache; The associated data stored in the cache is sorted and concatenated according to preset rules to generate a feature string; The version identifier of the current tooling configuration status is determined based on the characteristic string; The version identifier is compared with the historical version identifier: if they match, the historical tooling group identifier associated with the historical version identifier is reused, and the persistent storage operation is skipped; if they do not match, after confirming that the tooling identifier data matches the verification context, the tooling identifier data is persistently stored to generate a new tooling group identifier, and the association between the version identifier and the new tooling group identifier is established.
2. The context-based tooling verification method according to claim 1, characterized in that, The process of obtaining the verification context, determining multiple verification steps based on the verification context, and associating each verification step with a unique step identifier includes: Obtain and parse the verification context to extract device configuration parameters and product specification parameters; Based on the equipment configuration parameters and the product specification parameters, determine each piece of equipment involved in the current verification process, and match and obtain the tooling type set corresponding to each piece of equipment in the current verification process; The multiple verification steps are dynamically constructed based on each of the described devices and tooling types. The key value generated by combining the device sequence information of each device with the tooling type information in the corresponding tooling type set is used as the unique step identifier and associated with each verification step.
3. The context-based tooling verification method according to claim 1, characterized in that, The step of acquiring tooling identification data for each verification step, establishing an association between the tooling identification data and the corresponding step identifier, and saving it to the cache includes: For each tooling identifier data obtained, a uniqueness filter is performed using a deduplication data structure to remove tooling identifier data that has been occupied within the current verification cycle. After the uniqueness filter is passed, the tooling identifier data that has passed the filter will be associated with its corresponding step identifier to generate associated data; A concurrency control mechanism is used to implement exclusive locking for write operations to the cache, and the associated data is saved to the cache while in the exclusive locking state.
4. The context-based tooling verification method according to claim 1, characterized in that, The step of sorting and concatenating the associated data stored in the cache according to preset rules to generate a feature string includes: Extract the step identifiers and the tooling identifier data associated with each step identifier; The obtained step identifiers are sorted in a normalized manner according to the character encoding order of each step identifier; The step identifiers and their corresponding tooling identifiers are sequentially formatted into text fragments representing a single tooling binding relationship in the sorted order. The text segments are chained together using a preset separator to generate the feature string.
5. The context-based tooling verification method according to claim 1, characterized in that, The step of determining the version identifier of the current tooling configuration status based on the feature string includes: The feature string is input into a preset one-way hash algorithm for calculation to obtain a fixed-length feature digest value; The feature summary value is converted into a text in a specific base or a preset encoded string to serve as a version identifier for the current tooling configuration status.
6. The context-based tooling verification method according to claim 1, characterized in that, The comparison of the version identifier with the historical version identifier: if they match, the historical tooling group identifier associated with the historical version identifier is reused, and the persistent storage operation is skipped; if they do not match, after confirming that the tooling identifier data matches the verification context, the tooling identifier data is persistently stored to generate a new tooling group identifier, and the association between the version identifier and the new tooling group identifier is established, including: Based on the verification context, retrieve and obtain the corresponding historical cache record, and read the feature summary value of the previous record from the historical cache record as the historical version identifier; The version identifier is compared with the historical version identifier for equality; If they match, the historical tooling group identifier stored in the historical cache record is read and reused, and the persistent storage operation is skipped. If they are inconsistent, it is determined whether the tooling identification data stored in the cache matches the verification context; After confirming a match, the current tooling identification data is serialized and stored in a persistent storage system through an atomic write operation to generate the new tooling group identifier. Record the association between the version identifier and the new tooling group identifier, and update the historical cache record with the association.
7. A context-based tooling verification device, characterized in that, include: The verification step determination module is used to obtain the verification context, determine multiple verification steps based on the verification context, and associate each verification step with a unique step identifier; The associated data caching module is used to obtain tooling identification data for each verification step, establish an association between the tooling identification data and the corresponding step identifier, and save it to the cache; The feature string generation module is used to sort and concatenate the associated data stored in the cache according to preset rules to generate feature strings; The version identifier determination module is used to determine the version identifier of the current tooling configuration status based on the feature string; The comparison and control module is used to compare the version identifier with the historical version identifier: if they match, the historical tooling group identifier associated with the historical version identifier is reused and the persistent storage operation is skipped; if they do not match, after confirming that the tooling identifier data matches the verification context, the tooling identifier data is persistently stored to generate a new tooling group identifier, and the association between the version identifier and the new tooling group identifier is established.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the context-based tooling verification method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the context-based tooling verification method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the context-based tooling verification method according to any one of claims 1 to 6.
