A multi-step authentication and interaction control method and apparatus

By establishing context objects and adaptive voice playback queues in the industrial assembly process, the problem of delayed output under the traditional voice playback mechanism is solved, and real-time error prevention and interception and production efficiency improvement are achieved in high-frequency barcode scanning scenarios.

CN123177771APending Publication Date: 2026-11-27PRIME TECH GUANGZHOU INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611259594.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-19
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In modern industrial assembly and precision electronic manufacturing processes, traditional voice playback mechanisms are prone to cumulative playback lag in high-frequency physical barcode scanning scenarios, resulting in delayed alarm output, which in turn leads to abnormal interception failure and physical product mismatch.

Method used

By establishing a context object that records verification status data, an ordered verification sequence is dynamically generated. Combined with an adaptively controlled voice playback queue, a differentiated playback control strategy is implemented to ensure immediate response to abnormal interception status and immediate interruption of normal verification status, thus avoiding voice queue backlog.

Benefits of technology

It achieves zero-latency and highly reliable error prevention and interception without increasing physical hardware costs or limiting the operator's scanning speed, thus improving the timeliness and production efficiency of error prevention and interception.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123177771A_ABST
    Figure CN123177771A_ABST
Patent Text Reader

Abstract

The application provides a multi-step verification and interaction control method and device, the method comprising: automatically generating an ordered verification sequence composed of multiple steps according to obtained configuration parameters, and establishing a context object; obtaining input information of a to-be-verified object to perform state verification, the verification result comprising a normal verification state and an abnormal interception state and being recorded in the context object; adding corresponding playing content to a voice playing queue according to the verification result and dynamically controlling playing; and when a data submission request is received, if each step is in the normal verification state, execution is performed, otherwise execution is prevented. Redundant voice is dynamically discarded or instantaneously interrupted and replayed by using a congestion control mechanism, without increasing physical hardware cost and without forcibly limiting the speed of an operator to scan a code, so that voice accumulation delay in a high-frequency code scanning scene is eliminated, lossless output of an alarm signal is ensured, and the efficiency of a production line and the reliability of error prevention and interception are taken into account.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of SMT manufacturing technology, and in particular to a multi-step verification and interactive control method and apparatus. Background Technology

[0002] In modern industrial assembly and precision electronic manufacturing processes (such as SMT placement equipment preparation), before critical processing steps are performed, operators typically need to use scanning equipment to scan and verify the physical barcodes of various tooling, equipment fixtures, or auxiliary materials in multiple steps to prevent incorrect assembly. To assist operators in performing high-speed blind scanning in noisy workshops, the system usually incorporates real-time audio confirmation feedback based on text-to-speech (TTS).

[0003] However, skilled operators perform continuous physical barcode scanning at an extremely high frequency (each scan typically takes only 200-500 milliseconds), while a single sentence of audio playback usually takes 1-2 seconds. In multi-step verification scenarios, this creates a cumulative playback lag in the audio queue. If an error occurs at any step, the error message will be placed behind a large number of previously successfully played messages. This results in operators only hearing the alarm after they have completed subsequent scans and accidentally submitted the message, causing error prevention to fail and serious physical product mismatches to occur.

[0004] Traditional solutions typically employ a simple first-in-first-out (FIFO) voice queue, which can easily lead to voice backlog and feedback delays during high-speed scanning. Alternatively, a forced blocking method can be used, which locks the system input and forces operators to wait for each voice message to finish playing before unlocking the next scan. However, this can severely disrupt the production line cycle time and reduce production efficiency.

[0005] Therefore, how to resolve the timing conflict between high-frequency physical scanning actions and slow voice feedback bandwidth without increasing physical hardware costs or forcibly limiting the operator's physical scanning speed, and achieve zero-latency and highly reliable access control-style error prevention and interception, is a technical problem that urgently needs to be solved in this field. Summary of the Invention

[0006] This invention provides a multi-step verification and interactive control method and device to solve the problem that in multi-step physical barcode scanning scenarios such as industrial assembly, traditional voice playback mechanisms are prone to cumulative playback lag, resulting in delayed alarm output, which in turn leads to abnormal interception failure and product physical mismatch.

[0007] In a first aspect, the present invention provides a multi-step verification and interactive control method, comprising: Based on the obtained configuration parameters, an ordered verification sequence consisting of multiple verification steps is automatically generated; Create a context object to record verification status data; For the verification steps in the ordered verification sequence, the input information of the object to be verified is obtained and the status is verified. The verification result is recorded in the context object, where the verification result includes normal verification status and abnormal interception status. Based on the verification result generated by the status verification, the corresponding playback content is added to the voice playback queue, and the playback of the voice playback queue is dynamically controlled. Specifically: if the verification result is an abnormal interception state, the corresponding abnormal voice is played sequentially and completely; if the verification result is a normal verification state and the backlog length of the voice playback queue does not exceed a preset threshold, the voice corresponding to the normal verification state is played, and if there is a voice currently being played, the currently playing voice is interrupted and the voice corresponding to the normal verification state is played immediately; if the verification result is a normal verification state and the backlog length of the voice playback queue exceeds the preset threshold, the playback of the voice corresponding to the normal verification state is canceled. When a data submission request is received, if the context object determines that the verification results of each verification step in the ordered verification sequence are all in a normal verification state, then the data submission request is executed; otherwise, the execution of the data submission request is prevented.

[0008] Optionally, the step of automatically generating an ordered verification sequence consisting of multiple verification steps based on the obtained configuration parameters includes: parsing the configuration parameters to determine the sequential verification dependency relationship between each object to be verified; automatically generating verification steps corresponding to each object to be verified; and sequentially connecting each verification step according to the sequential verification dependency relationship to generate the ordered verification sequence.

[0009] Optionally, establishing a context object for recording verification status data includes: when starting a verification session, generating a context object corresponding to the verification session and assigning a unique session identifier to the context object; based on the session identifier, isolating and recording the verification status data of each verification step in the ordered verification sequence, and releasing the context object when the verification session ends.

[0010] Optionally, the step of obtaining input information of the object to be verified and performing status verification for the verification steps in the ordered verification sequence, and recording the verification result in the context object, includes: obtaining the input information of the object to be verified, and matching the input information to a verification step in the ordered verification sequence as the current verification step; performing differentiated status verification on the input information according to the type of the object to be verified corresponding to the current verification step, wherein: if the object to be verified corresponding to the current verification step is a tooling object, then verifying the matching of the tooling object with the currently applicable equipment model, and verifying the validity of the maintenance cycle of the tooling object; if the object to be verified corresponding to the current verification step is an auxiliary material object, then performing multi-dimensional status verification on the auxiliary material object, wherein the multi-dimensional status verification includes verification of product part number, batch timeliness, and line configuration; and recording the obtained normal verification status or abnormal interception status as the verification result in the storage area of ​​the context object corresponding to the current verification step.

[0011] Optionally, the step of adding the corresponding playback content to the audio playback queue based on the verification result generated by the state verification, and dynamically controlling the playback of the audio playback queue, includes: generating an audio playback task carrying a playback priority attribute based on the verification result generated by the state verification, and adding the audio playback task to the audio playback queue, wherein the abnormal interception state corresponds to high priority and the normal verification state corresponds to low priority; cyclically monitoring the audio playback queue through an independent asynchronous playback thread, and scheduling and playing the corresponding audio based on the playback priority attribute; when the asynchronous playback thread executes playback, if the currently scheduled audio playback task is of high priority, then the corresponding abnormal audio is played sequentially and completely; if the currently scheduled audio playback task is of low priority, then the current backlog length of the audio playback queue is monitored in real time: if the current backlog length exceeds the preset threshold, then the audio playback corresponding to the audio playback task is canceled; if the current backlog length does not exceed the preset threshold, then the audio corresponding to the audio playback task is played, and if there is audio being played, then the audio being played is interrupted and the audio corresponding to the audio playback task is played immediately.

[0012] Optionally, when a data submission request is received, if the context object determines that the verification results of each verification step in the ordered verification sequence are all in a normal verification state, then the data submission request is executed; otherwise, the execution of the data submission request is blocked. This includes: when the data submission request is received, suspending the data submission request and traversing and retrieving the verification results of each verification step in the ordered verification sequence recorded in the context object; if the verification results of each verification step are all in a normal verification state, then releasing and executing the data submission request to complete the data persistence operation corresponding to the data submission request; if there is a verification step with an abnormal interception state, or a verification step that has not yet been verified, then blocking the execution of the data submission request, and outputting the verification steps in an abnormal interception state or that have not yet been verified as missing items, and adding the abnormal voice corresponding to the abnormal interception state to the voice playback queue.

[0013] Secondly, the present invention provides a multi-step verification and interactive control device, comprising: The sequence generation module is used to automatically generate an ordered verification sequence consisting of multiple verification steps based on the obtained configuration parameters. The context creation module is used to create a context object for recording verification status data; The status verification module 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. The voice control module 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, wherein: if the verification result is an abnormal interception state, the corresponding abnormal voice is played sequentially and completely; if the verification result is a normal verification state and the backlog length of the voice playback queue does not exceed a preset threshold, the voice corresponding to the normal verification state is played, and if there is a voice currently being played, the currently playing voice is interrupted and the voice corresponding to the normal verification state is played immediately; if the verification result is a normal verification state and the backlog length of the voice playback queue exceeds the preset threshold, the playback of the voice corresponding to the normal verification state is canceled. The submission control module 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.

[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 multi-step verification and interactive control method and apparatus. The method establishes a context object that records verification status data, dynamically generates ordered verification steps based on configuration parameters, and combines this with an adaptively controlled voice playback queue for status interception. By implementing differentiated playback control strategies for abnormal interception states and normal verification states in the voice playback queue, the problem of voice queue backlog and information lag in high-frequency physical input scenarios is alleviated. For normal verification states, if the previous voice has not finished playing, the currently playing voice is interrupted and the voice corresponding to the latest normal verification result is played immediately, ensuring that the voice output can respond to the current input action in real time and reducing accumulated delay. When the backlog length of the voice playback queue exceeds a preset threshold due to high-frequency input, the playback of the voice corresponding to the current normal verification result is canceled, thus resolving queue congestion and reducing aliasing of the broadcast voices. For abnormal interception states, since they do not trigger the discarding when the queue is congested, the strategy of playing abnormal voices sequentially and completely ensures the complete output of interception alarm information, improving the timeliness of error prevention interception. When a data submission request is triggered, the context object is traversed and retrieved to verify whether the verification results of each verification step in the ordered verification step set are all in a normal verification state. This is used as the basis for judging whether to allow or prevent the execution of the data submission request. Thus, without adding extra physical indicator hardware or limiting the physical input cycle time, it is beneficial to balance the error prevention accuracy of the process and the efficiency of the process execution. Attached Figure Description

[0018] 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.

[0019] Figure 1 This is a flowchart illustrating the steps of a first embodiment of a multi-step verification and interactive control method according to the present invention. Figure 2 This is a flowchart illustrating a second embodiment of the multi-step verification and interactive control method of the present invention. Figure 3 This is a structural block diagram of an embodiment of a multi-step verification and interactive control 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

[0020] 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.

[0021] This invention provides a multi-step verification and interactive control method and apparatus to solve the problem of error prevention and interception failure caused by voice playback lag in a multi-step physical QR code scanning scenario.

[0022] 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.

[0023] Example 1 Please see Figure 1 , Figure 1 This is a flowchart illustrating the multi-step verification and interactive control method of the present invention. The multi-step verification and interactive control method includes the following steps: Step S101: Based on the obtained configuration parameters, automatically generate an ordered verification sequence consisting of multiple verification steps.

[0024] In some optional implementations, the configuration parameters refer to production process requirements, bill of materials (BOM) data, or physical production schedules imported from an enterprise manufacturing execution system (MES), enterprise resource planning (ERP) system, or local database. The ordered verification sequence refers to a multi-level flow of inspection nodes arranged according to a preset verification dependency relationship, used for error prevention and mitigation. During automatic generation, the configuration parameters are parsed to extract the identifiers of the objects to be verified. Based on the physical spatial or temporal dependencies determined by the process specifications (e.g., in flow assembly, tooling objects used for auxiliary positioning or physical support must complete matching verification before their associated auxiliary material objects), each object to be verified is mapped to an independent verification step. A topological sorting algorithm is then used to sequentially connect these verification steps, generating the ordered verification sequence, thus avoiding static hard-coding of the verification process in the code.

[0025] Step S102: Create a context object to record the verification status data.

[0026] In some optional implementations, the context object refers to a data-carrying entity that is dynamically instantiated in memory and has an independent lifecycle. When a new verification session is detected to have started at a production line or workstation, a unique globally unique identifier (UUID) is assigned as the session identifier, and a context object bound to this session identifier is created in the memory heap. The context object has an independently isolated data area, and in a multi-threaded, high-concurrency environment, threads can uniquely locate the corresponding context object through the session identifier. During the lifecycle of the verification session, an independent storage space is allocated for the context object in the global concurrency dictionary, and the verification status data of each verification step in the ordered verification sequence corresponding to the session is recorded in isolation, thereby preventing data dirty reads and data write conflicts during high-frequency, multi-threaded concurrent barcode scanning at the memory level.

[0027] Step S103: For the verification steps in the ordered verification sequence, obtain the input information of the object to be verified and perform state verification, and record the verification result in the context object, wherein the verification result includes normal verification state and abnormal interception state.

[0028] In some optional implementations, when an operator uses a scanning device or information entry terminal to input identification information carried by a barcode, QR code, or other carrier, the input information of the object to be verified is obtained, and the input information is matched with the expected patterns corresponding to each step in the ordered verification sequence to determine the verification step corresponding to the input information as the current verification step. Subsequently, based on the type of the object to be verified bound to the current verification step, the system routes to the corresponding differentiated state verification logic.

[0029] The objects to be verified include tooling objects and auxiliary material objects. Tooling objects refer to reusable tools whose maintenance lifespan or model requires compliant tracking, including but not limited to stencils, scrapers, pressing fixtures, and test jigs. When the object to be verified in the current verification step is a tooling object, the status verification logic verifies the matching between the tooling object and the currently applicable equipment model by comparing the device number carried in the input information, and queries the historical usage frequency or last maintenance date of the tooling object to verify the validity of its maintenance cycle.

[0030] The auxiliary materials refer to non-repetitive raw materials or auxiliary production materials with chemical aging and single-use lifespan limitations, including but not limited to solder paste, red glue, sealant, and curing materials. When the object to be verified in the current verification step is an auxiliary material, the status verification logic performs multi-dimensional status verification. The verification content includes but is not limited to the matching degree between the product part number and the process BOM of the auxiliary material, the timeliness of the batch production date (such as whether it has exceeded the opening lifespan, whether the reheat time meets the standard), and the current line configuration.

[0031] The result obtained from the status verification is recorded as the verification result in the exclusive storage unit corresponding to the current verification step in the context object. The verification result includes: the normal verification status corresponding to the verification passing, or the abnormal interception status corresponding to the verification failing or timeout.

[0032] Step S104: Based on the verification result generated by the state verification, add the corresponding playback content to the voice playback queue and dynamically control the playback of the voice playback queue, wherein: if the verification result is an abnormal interception state, the corresponding abnormal voice is played sequentially and completely; if the verification result is a normal verification state and the backlog length of the voice playback queue does not exceed a preset threshold, the voice corresponding to the normal verification state is played, and if there is a voice currently being played, the currently playing voice is interrupted and the voice corresponding to the normal verification state is played immediately; if the verification result is a normal verification state and the backlog length of the voice playback queue exceeds the preset threshold, the playback of the voice corresponding to the normal verification state is canceled.

[0033] In some optional implementations, this step asynchronously schedules and controls the physical layer speech synthesis and playback with the underlying state verification results, aiming to eliminate the timing conflict between fast physical scanning and slower audio playback. In this embodiment, the "backlog length" of the speech playback queue refers to the total number of pending task packet nodes in the queue that have not yet completed playback. In some alternatives, the backlog length may also represent the total predicted playback duration required for the pending tasks in the queue. The preset threshold refers to the backlog judgment threshold used to control the discarding of high-frequency redundant speech. This threshold can be configured as an integer, for example, set to 2 to 4 task packet nodes (e.g., 3 task packet nodes); or it can be configured as a duration, for example, set to 1.5 seconds to 3.0 seconds (e.g., 2.5 seconds).

[0034] When performing playback control, if the obtained verification result is the abnormal interception state indicating a serious error or non-compliant operation, this state has a high playback priority and executes a sequential playback strategy: the corresponding abnormal voice task is unconditionally added to the end of the voice playback queue without triggering any discarding behavior due to congestion, so that the abnormal voice can be played sequentially, completely and without interruption when it is its turn to play, ensuring reliable output of warning information.

[0035] If the obtained verification result is the normal verification state indicating that the scan has passed, this state has a low playback priority: First, the current backlog length of the voice playback queue is detected. If the backlog length does not exceed the preset threshold (e.g., fewer than 3 voice nodes are currently waiting), the voice playback task corresponding to the current normal verification state is added to the voice playback queue for playback. During playback, if a voice is detected to be playing, an interrupt command is executed. The audio device handle or the stop interface (such as the Stop method) of the audio playback component is called at the underlying level to stop the currently playing voice, release the occupied hardware resources and clear the current output buffer, and then load the voice corresponding to the current normal verification state and start playback immediately, achieving instant interrupt switching without mixing overlap.

[0036] If the backlog length of the voice playback queue exceeds the preset threshold (for example, if there are more than 3 normal broadcast tasks currently waiting in the backlog, reflecting that the operator's physical scanning rate is too high), the voice playback task corresponding to the normal verification state is directly canceled. It is important to emphasize that canceling the normal verification voice playback operation here only affects the sound output of the Human-Computer Interaction (HCI) layer and does not roll back or clear the "normal verification state" data already recorded in the context object. Even if no sound is emitted from the speaker due to queue congestion, the normal verification result of the corresponding step recorded in the context object remains valid at the data level.

[0037] Step S105: When a data submission request is received, if the context object determines that the verification results of each verification step in the ordered verification sequence are all in a normal verification state, then the data submission request is executed; otherwise, the execution of the data submission request is prevented.

[0038] In some optional implementations, a data submission request refers to a submission action generated by an operator clicking the page to save, triggering end-of-line data persistence, or scanning a code to trigger data storage. When the data submission request is received, the persistent write transaction thread corresponding to the request is suspended using an asynchronous wait handle (such as AutoResetEvent or TaskCompletionSource). By retrieving the corresponding session identifier, the context object bound to the session is retrieved. The status records of each verification step in the context object are traversed to determine whether they are all in a normal verification state. If the data recorded in the verification unit corresponding to each verification step is not empty and is in a "normal verification state", the main thread sends the corresponding release activation signal (such as a Set signal) to release the suspension state of the transaction thread and execute the data submission request to complete the persistent write and transfer of data. Conversely, if any step's verification result is found to be in an abnormal interception state, or if there are unverified steps whose status records are empty due to operators skipping the scan, the execution of the data submission request will continue to be blocked to prevent abnormal or incompletely verified data from being stored in the production database. At the same time, a detailed prompt of missing items will be output on the control interface, and the warning text corresponding to the missing or abnormal items will be sent to the voice playback queue for forced full playback.

[0039] Example 2 Please see Figure 2 , Figure 2 This is a flowchart illustrating another multi-step verification and interactive control method of the present invention. The steps of the multi-step verification and interactive control method include: Step S201: Parse the configuration parameters to determine the sequential verification dependency relationship between each object to be verified.

[0040] In some optional implementations, the obtained configuration parameters can be defined using a structured markup language (such as JSON or XML) and pre-stored in a configuration database. The configuration parameters include a preset verification dependency mapping table to express the upstream and downstream constraints of each object to be verified in the process flow.

[0041] When parsing the configuration parameters, the object identifiers (such as the tooling type to be verified, the auxiliary material code to be verified, etc.) corresponding to each object to be verified are extracted, as well as the dependency attribute fields used to indicate the verification order. For example, in the patch preparation section, the JSON text definition in the configuration parameters includes: {"node": "solder_paste", "depends_on": ["stencil", "squeegee"]}, where the "depends_on" field indicates that the auxiliary material object "solder_paste" (solder paste) must first complete the verification of the tooling objects "stencil" (stencil) and "squeegee" (squeegee) before verification.

[0042] By parsing the associated data, a parent-child node tree or directed acyclic graph (DAG) containing each object to be verified is constructed in memory, thereby determining the sequential verification dependencies between each object to be verified at the topological logic layer.

[0043] Step S202: Automatically generate verification steps corresponding to each object to be verified, and connect the verification steps in order according to the verification dependency relationship to generate the ordered verification sequence.

[0044] In some optional implementations, for each object node in the directed acyclic graph determined in the previous step, a corresponding verification step instance is dynamically generated in memory. This verification step instance contains specific attribute fields, such as step sequence number, step type (tooling type or auxiliary material type), expected matching rule identifier, and verification status register area.

[0045] After generating instances of each independent step, based on the topological sorting result of the directed acyclic graph established in the previous step, the verification steps are sequentially connected according to a defined verification dependency relationship using a linked list structure or array index. Through the predecessor and successor pointers in the linked list, the scattered step instances are chained together into a unidirectional logical verification sequence, thus generating the ordered verification sequence. In this way, when changes in the line or machine configuration lead to configuration parameter reconstruction, the generated ordered verification sequence is adaptively added, removed, and rearranged in memory, ensuring the flexibility and accuracy of the verification path.

[0046] Step S203: When starting a verification session, a context object corresponding to the verification session is generated, and a unique session identifier is assigned to the context object.

[0047] In some optional implementations, the current verification session is initiated when the input device performs its first scan or when the production console detects a process initialization trigger signal. At this time, a dedicated memory space is allocated in the memory heap to instantiate a context class (ContextClass) used to record state data during the session's lifecycle, i.e., the context object is generated.

[0048] While generating the context object, the unique identifier generation interface of the underlying execution environment is invoked to assign a unique session identifier to the verification session. This session identifier is typically a globally unique identifier (UUID) or a composite identifier sequence number with a specific high-precision timestamp. This assigned unique session identifier is encapsulated and written into the header feature field of the corresponding context object.

[0049] Step S204: Based on the session identifier, isolate and record the verification status data of each verification step in the ordered verification sequence, and release the context object when the verification session ends.

[0050] In some optional implementations, to support high-concurrency scenarios of parallel verification across multiple production lines and workstations in a production workshop, a global concurrent hash dictionary (such as ConcurrentHashMap or ConcurrentDictionary) is maintained in a shared memory area. Each active context object is used as the Value, and its corresponding unique session identifier is used as the Key, and stored in the global concurrent hash dictionary.

[0051] When execution threads corresponding to different workstations record or read the verification status, they must provide their own session-specific identifier. Threads retrieve the global concurrent hash dictionary using this session identifier and can only write and modify verification status data on the context object that matches it. This key-value pair memory isolation mapping mechanism achieves physical isolation and prevents interference between verification status data across multiple verification sessions.

[0052] When a data submission completion signal is received, or when the session duration exceeds a preset inactivity timeout threshold, the verification session is determined to have ended. At this time, the main control thread first deregisters and removes the key-value pair corresponding to the session identifier from the global concurrent hash dictionary, then calls the resource release interface (such as the Dispose method) to release the related unmanaged resources, and makes the context object lose its reference, waiting for the garbage collection (GC) mechanism to automatically reclaim and release the memory space it occupies, clearing the memory pointer to prevent memory leaks during high-frequency, multi-session concurrent execution.

[0053] Step S205: Obtain the input information of the object to be verified, and match the input information to a verification step in the ordered verification sequence as the current verification step.

[0054] In some optional implementations, when barcode scanner data or text input is detected at the physical workstation, the input information (such as the string corresponding to a one-dimensional or two-dimensional barcode) of the object to be verified is obtained. By parsing the prefix features in the input information, or by matching the input information with a preset set of regular expressions, the category of the material entity represented by the input information is determined.

[0055] Subsequently, the input information is compared with the expected material features bound to each verification step in the ordered verification sequence. If a match is successful, the current corresponding verification step is taken as the current verification step; if the currently input feature does not belong to the expected range of any step in the ordered verification sequence, the verification status is marked as abnormal in the context object of the current session, and a matching failure prompt is output to prevent the operator from accidentally scanning irrelevant barcodes.

[0056] Step S206: Based on the type of the object to be verified corresponding to the current verification step, perform differentiated status verification on the input information, wherein: if the object to be verified corresponding to the current verification step is a tooling object, verify the matching of the tooling object with the currently applicable equipment model, and verify the validity of the maintenance cycle of the tooling object; if the object to be verified corresponding to the current verification step is an auxiliary material object, perform multi-dimensional status verification on the auxiliary material object, wherein the multi-dimensional status verification includes verification of product part number, batch timeliness, and line configuration.

[0057] In some optional implementations, differentiated backend logic routing is performed based on the object type flag configured in the current verification step (i.e., indicating whether the step verifies tooling objects or auxiliary object objects): If the object to be verified in the current verification step is a tooling object (such as a reusable, long-life tool like a stencil or scraper), then the tooling verification logic is executed: The specific steps for verifying the matching of the equipment model are as follows: Extract the unique tooling identifier from the input information, call the relational database query interface, retrieve the standard engineering parameters bound to the currently running product work order, machine model, and production machine, and compare whether the currently scanned tooling model is compatible with the technical specifications of the currently executing machine.

[0058] The validity verification of the maintenance cycle is specifically performed as follows: Query the maintenance record table corresponding to the unique identifier of the tooling to obtain the cumulative number of uses of the tooling, the interval time since the last calibration, or the maximum allowable service life, and calculate whether the current value exceeds the set red line indicator; if it does not exceed the limit, the maintenance cycle is determined to be valid.

[0059] If the object to be verified in the current verification step is an auxiliary material object (such as solder paste, red glue, or other non-recyclable consumable materials), then the multi-dimensional joint verification logic for auxiliary materials will be executed: In the multi-dimensional status verification: when performing product part number verification, the product part number corresponding to the currently scanned auxiliary material identifier is read and compared with the bill of materials (BOM) table associated with the current work order to verify whether the two are completely matched; when performing batch timeliness verification, the factory batch and batch timeliness corresponding to the auxiliary material are extracted, or the filing timestamp of the auxiliary material at the time of opening and reheating is queried, the time difference between the current physical time and the opening or reheating start time is calculated, and the time difference is verified to be within the preset effective service life period (such as 24 hours after reheating) to prevent expired auxiliary materials from flowing into the production line; when performing line configuration verification, the physical production line body number and machine position number at the current scan point are matched with the allowed delivery line range bound to the auxiliary material label to verify whether the configuration position of the auxiliary material flow direction is correct.

[0060] Step S207: The obtained normal verification status or abnormal interception status is used as the verification result and recorded in the storage area of ​​the context object corresponding to the current verification step.

[0061] In some optional implementations, after completing the above-mentioned differential status verification, the verification result is obtained: if all corresponding comparison items pass, the normal verification status is output; if there is any mismatch, overdue, error, omission, or time-out item, the abnormal interception status is output.

[0062] When recording the verification result, the corresponding context object stored in the global concurrent hash dictionary is retrieved based on the session identifier corresponding to the current session. Within the found context object, the data node (such as a specific memory variable or attribute object) bound to the current verification step is retrieved. The resulting normal verification status or abnormal interception status is written to and overwrites the dedicated status storage field of that data node as the verification result. Simultaneously, the timestamp of the scanned input and the details of any abnormalities generated during verification are recorded in this dedicated storage area for subsequent data backtracking and process control.

[0063] Step S208: Based on the verification result generated by the status verification, generate a voice playback task carrying a playback priority attribute, and add the voice playback task to the voice playback queue, wherein the abnormal interception status corresponds to high priority and the normal verification status corresponds to low priority.

[0064] In some optional implementations, after completing the status verification of the current verification step, if an abnormal interception status of verification failure is determined, a voice playback task object is instantiated, and the playback priority attribute (such as the IsCritical or PriorityLevel field) in the attribute dictionary of the voice playback task object is set to high priority (such as the enumeration value High), and a corresponding abnormal warning text is generated; if a normal verification status of verification success is obtained, the playback priority attribute in the generated voice playback task object is set to low priority (such as the enumeration value Low), and a corresponding success prompt text is generated.

[0065] After generation, the voice playback task object with the corresponding priority attribute is appended to a thread-safe voice playback queue in the shared memory area in a non-blocking manner by calling the queue addition method.

[0066] Step S209: The voice playback queue is monitored cyclically by an independent asynchronous playback thread, and the corresponding voice is scheduled and played based on the playback priority attribute.

[0067] In some alternative implementations, during the program startup phase, a dedicated asynchronous playback thread (such as an infinite-loop listening task running based on Task or BackgroundWorker) is started independently in the background. The asynchronous playback thread performs listening operations on the audio playback queue (e.g., a blocking collection implemented using BlockingCollection).

[0068] When there are unplayed task objects in the voice playback queue, the asynchronous playback thread extracts the task object to be played by calling a dequeue method (such as the Take() method). Before executing playback scheduling, the playback priority attribute of the extracted task object is read, and the playback task is diverted to differentiated execution logic according to the priority flag (High or Low) to schedule and drive the underlying speaker to output sound based on different playback strategies.

[0069] Step S210: When the asynchronous playback thread executes playback, if the currently scheduled voice playback task is of high priority, the corresponding abnormal voice is played sequentially and completely; if the currently scheduled voice playback task is of low priority, the current backlog length of the voice playback queue is monitored in real time: if the current backlog length exceeds the preset threshold, the voice playback corresponding to the voice playback task is canceled; if the current backlog length does not exceed the preset threshold, the voice corresponding to the voice playback task is played, and if there is a voice currently being played, the voice currently being played is interrupted and the voice corresponding to the voice playback task is played immediately.

[0070] In some optional implementations, the asynchronous playback thread determines the priority attribute of the dequeued task object when processing it: If the task being dispatched is of high priority, it indicates that a misassembly or process mismatch has occurred on the production line, and the abnormal audio message cannot be discarded or truncated. In this case, the asynchronous playback thread sends it to the underlying audio playback component (such as a TTS engine or media playback module) for sequential and complete playback at the physical output end. The playback thread suspends and waits until the entire abnormal audio message has been played, ensuring that the high-risk interception signal is transmitted to the operator without loss.

[0071] If the currently dequeued voice playback task is of low priority, it indicates a normal station check scan. To avoid voice playback lag and accumulation during multiple devices or continuous rapid scans, a congestion adaptive strategy is implemented: First, the current backlog length of the voice playback queue is monitored in real time (i.e., the number of task nodes waiting to be played in the current queue, or the predicted total playback time of the audio stream waiting to be played). If the current backlog length exceeds the preset threshold (e.g., 3 task packet nodes or 2.5 seconds of playback time), it indicates queue congestion. In this case, the voice playback task corresponding to the normal verification state is canceled to clear the queue backlog, and the cancellation of the voice playback task does not affect the normal verification state recorded in the context object. If the current backlog length does not exceed the preset threshold, it indicates that the delay is within the allowable range. Then, the voice corresponding to the voice playback task is played. Before playback, if there is a voice currently playing, a termination signal is sent asynchronously or the audio device driver interface (e.g., the Stop() method of the audio player component) is called at the underlying level. (Method) Stop the current playback, release the occupied sound card buffer and output handle, and immediately load and play the voice corresponding to the current task object to achieve real-time synchronous switching of voice without mixing overlap.

[0072] Step S211: When a data submission request is received, if the context object determines that the verification results of each verification step in the ordered verification sequence are all in a normal verification state, then the data submission request is executed; otherwise, the execution of the data submission request is prevented.

[0073] In some alternative implementations, when a data commit request is received, it is intercepted. The transaction thread performing the data persistence write is suspended and blocked by using a thread synchronization lock or asynchronous blocking control handle, thus putting the data commit request into a pending state.

[0074] After suspension, the submitting thread retrieves the session identifier bound to the workstation and obtains the unique context object from the hash dictionary. It then iterates through the heap memory to retrieve instances of each verification step in the currently ordered verification sequence recorded within that context object. If it is determined through traversal that the status flag field of all verification step instances contained in the ordered verification sequence is not empty, and all verification results are recorded as "normal verification status" (such as verification success status value), then a release signal is sent to the blocked thread (such as calling the Set() method of the waiting handle) to release the suspended state of the persistent write transaction thread, thereby allowing the execution of the data commit request to persistently store the assembled or transit record into the production database.

[0075] Conversely, if it is detected that the record status of any verification step is empty (indicating that the operator skipped the scan of that step) or the verification result is "abnormal interception status", then the persistent write transaction thread will continue to be blocked, preventing the persistent execution of the data commit request.

[0076] Step S212: If the verification results of each of the verification steps are all in a normal verification state, then release and execute the data submission request to complete the data persistence operation corresponding to the data submission request.

[0077] In some optional implementations, if in step S211 it is determined through iteration that the verification results of each verification step are all recorded as normal verification states in the context object, then the release mechanism of the execution thread is triggered. The suspended blocking state of the persistent write transaction thread is released by releasing a release signal (such as calling the release method of the AutoResetEvent or TaskCompletionSource object).

[0078] After being unsuspended, the write transaction thread can continue to execute, calling the underlying database write logic to use the workpiece identifier (such as product barcode SN) verified in this scan as the binding relationship between the workpiece identifier (such as product barcode SN) and the fixtures and auxiliary materials that have been verified in the context object as associated data. This data is then written and saved to the relevant data table in the production database through the underlying data persistence interface (such as data write operation based on an ORM framework or direct execution of a stored procedure), thus completing the data persistence operation corresponding to the data submission request.

[0079] Step S213: If there is a verification step with an abnormal interception state, or a verification step that has not yet been verified, then the execution of the data submission request is blocked. At the same time, the verification steps that are in an abnormal interception state or have not yet been verified are output as missing items, and the abnormal voice corresponding to the abnormal interception state is added to the voice playback queue.

[0080] In some optional implementations, if, during the traversal and retrieval of the context object in step S211, it is detected that the record status of any of the verification steps is in an abnormal interception state, or there is an unverified step whose status record value is empty due to the operator not scanning the code, then the suspended blocking state of the persistent write transaction thread is maintained, or an abnormal callback indicating non-compliant operation is thrown to the main calling program, thereby preventing the underlying database write operation corresponding to the data submission request and preventing the data from being written to the database.

[0081] Simultaneously, the submission thread retrieves the context object to read the description information of the object type to be verified bound to all step instances with abnormal or empty states. This description information is then concatenated to generate a missing item warning message. This missing item warning message is output as a missing item to the front-end human-machine interface. For example, this can be achieved by refreshing the rendering state of the corresponding step node in the visual summary table control (e.g., rendering the table row containing the missing step in a red / yellow warning color), or by triggering a floating message notification component to issue a bubble alert, providing the operator with intuitive feedback on the current error or omission.

[0082] Furthermore, based on the generated missing item prompt information, a corresponding abnormal warning voice broadcast text is assembled (e.g., the text "This station needs to complete scanning first; missing: [specific missing item material name]"). A voice playback task object with a high priority attribute is instantiated and added to the voice playback queue. Due to the high priority of this task, in subsequent broadcast scheduling, it will be executed sequentially and completely without truncation through an independent asynchronous playback thread in the background to provide auditory abnormality warnings, prevent the writing of underlying data corresponding to the data submission request, and complete closed-loop verification and interception control.

[0083] 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.

[0084] 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.

[0085] The context creation module 302 is used to create a context object for recording verification status data.

[0086] 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.

[0087] 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.

[0088] In some alternative 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.

[0089] 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.

[0090] 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.

[0091] 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.

[0092] 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 release the transaction execution thread by sending a release signal to the suspended 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.

[0093] 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 4As 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 to a bus 104 to enable information interaction between the processor 101 and external devices (such as scanning devices, audio playback devices, etc.).

[0094] 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 processor 101 and the memory 102 are connected and exchange information through a system bus (including a data bus, an address bus, etc.); the I / O interface 103 is connected to the bus 104 and can realize information exchange between the processor 101, the memory 102 and external devices.

[0095] 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.

[0096] 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.

[0097] 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.

[0098] The storage medium can be a non-volatile storage medium, such as a hard disk, optical disk, USB flash drive, flash memory, etc.

[0099] 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.

[0100] 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.

[0101] 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.

[0102] 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.

[0103] 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.

[0104] 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.

[0105] 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.

Claims

1. A multi-step verification and interactive control method, characterized in that, The method includes: Based on the obtained configuration parameters, an ordered verification sequence consisting of multiple verification steps is automatically generated; Create a context object to record verification status data; For the verification steps in the ordered verification sequence, the input information of the object to be verified is obtained and the status is verified. The verification result is recorded in the context object, where the verification result includes normal verification status and abnormal interception status. Based on the verification result generated by the status verification, the corresponding playback content is added to the voice playback queue, and the playback of the voice playback queue is dynamically controlled. Specifically: if the verification result is an abnormal interception state, the corresponding abnormal voice is played sequentially and completely; if the verification result is a normal verification state and the backlog length of the voice playback queue does not exceed a preset threshold, the voice corresponding to the normal verification state is played, and if there is a voice currently being played, the currently playing voice is interrupted and the voice corresponding to the normal verification state is played immediately; if the verification result is a normal verification state and the backlog length of the voice playback queue exceeds the preset threshold, the playback of the voice corresponding to the normal verification state is canceled. When a data submission request is received, if the context object determines that the verification results of each verification step in the ordered verification sequence are all in a normal verification state, then the data submission request is executed; otherwise, the execution of the data submission request is prevented.

2. The multi-step verification and interactive control method according to claim 1, characterized in that, The step of automatically generating an ordered verification sequence consisting of multiple verification steps based on the obtained configuration parameters includes: The configuration parameters are parsed to determine the sequential verification dependencies between the objects to be verified. The verification steps corresponding to each object to be verified are automatically generated, and the verification steps are connected in order according to the verification dependency relationship to generate the ordered verification sequence.

3. The multi-step verification and interactive control method according to claim 1, characterized in that, The establishment of a context object for recording verification status data includes: When a verification session is started, a context object corresponding to the verification session is generated, and a unique session identifier is assigned to the context object; Based on the session identifier, the verification status data of each verification step in the ordered verification sequence is isolated and recorded, and the context object is released when the verification session ends.

4. The multi-step verification and interactive control method according to claim 1, characterized in that, The verification steps for the ordered verification sequence, including obtaining the input information of the object to be verified and performing state verification, and recording the verification result in the context object, include: Obtain the input information of the object to be verified, and match the input information to a verification step in the ordered verification sequence as the current verification step; Based on the type of the object to be verified corresponding to the current verification step, differentiated status verification is performed on the input information, wherein: if the object to be verified corresponding to the current verification step is a tooling object, the matching of the tooling object with the currently applicable equipment model is verified, and the validity of the maintenance cycle of the tooling object is verified; if the object to be verified corresponding to the current verification step is an auxiliary material object, multi-dimensional status verification is performed on the auxiliary material object, wherein the multi-dimensional status verification includes verification of product part number, batch timeliness and line configuration; The obtained normal verification status or abnormal interception status is used as the verification result and recorded in the storage area of ​​the context object corresponding to the current verification step.

5. The multi-step verification and interactive control method according to claim 1, characterized in that, The step of adding the corresponding playback content to the audio playback queue based on the verification result generated by the state verification, and dynamically controlling the playback of the audio playback queue, includes: Based on the verification result generated by the status verification, a voice playback task carrying a playback priority attribute is generated and the voice playback task is added to the voice playback queue, wherein the abnormal interception status corresponds to high priority and the normal verification status corresponds to low priority. The audio playback queue is monitored in a loop by an independent asynchronous playback thread, and the corresponding audio is scheduled and played based on the playback priority attribute. When the asynchronous playback thread executes playback, if the currently scheduled voice playback task is of high priority, the corresponding abnormal voice is played sequentially and completely; if the currently scheduled voice playback task is of low priority, the current backlog length of the voice playback queue is monitored in real time: if the current backlog length exceeds the preset threshold, the voice playback corresponding to the voice playback task is canceled; if the current backlog length does not exceed the preset threshold, the voice corresponding to the voice playback task is played, and if there is a voice currently being played, the voice currently being played is interrupted and the voice corresponding to the voice playback task is played immediately.

6. The multi-step verification and interactive control method according to claim 1, characterized in that, When a data submission request is received, if the context object determines that the verification results of each verification step in the ordered verification sequence are all in a normal verification state, then the data submission request is executed; otherwise, the execution of the data submission request is blocked, including: When a data submission request is received, the data submission request is suspended, and the verification results of each verification step in the ordered verification sequence recorded in the context object are retrieved. If the verification results of each of the verification steps are all in a normal verification state, then release and execute the data submission request to complete the data persistence operation corresponding to the data submission request. If there is a verification step with an abnormal interception status, or a verification step that has not yet been verified, then the execution of the data submission request is blocked. At the same time, the verification steps that are in an abnormal interception status or have not yet been verified are output as missing items, and the abnormal voice corresponding to the abnormal interception status is added to the voice playback queue.

7. A multi-step verification and interactive control device, characterized in that, The device includes: The sequence generation module is used to automatically generate an ordered verification sequence consisting of multiple verification steps based on the obtained configuration parameters. The context creation module is used to create a context object for recording verification status data; The status verification module 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. The voice control module 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, wherein: if the verification result is an abnormal interception state, the corresponding abnormal voice is played sequentially and completely; if the verification result is a normal verification state and the backlog length of the voice playback queue does not exceed a preset threshold, the voice corresponding to the normal verification state is played, and if there is a voice currently being played, the currently playing voice is interrupted and the voice corresponding to the normal verification state is played immediately; if the verification result is a normal verification state and the backlog length of the voice playback queue exceeds the preset threshold, the playback of the voice corresponding to the normal verification state is canceled. The submission control module 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.

8. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and when the processor executes the computer program, it implements the multi-step verification and interactive control 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 the processor, it implements the multi-step verification and interactive control method as described in 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 the processor, it implements the multi-step verification and interactive control method as described in any one of claims 1 to 6.