Control method and system of infrared touch screen

By chaining the transmission time slot sequence, receiving time slot sampling, and dark time slot baseline subtraction matching decoding in the infrared touch screen control scheme, a decoded evidence packet is generated and a gated evidence packet is constructed. This solves the problems of inconsistent dark time slot baseline caliber and insufficient comparability of evidence packets in the prior art, realizes the stability and traceability of the control output packet, and ensures the continuity of verification rescan and write-back update.

CN121979408APending Publication Date: 2026-05-05BLACK GOLD COMMERCIAL DISPLAY INTELLIGENT TECHNOLOGY (XINJIANG) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BLACK GOLD COMMERCIAL DISPLAY INTELLIGENT TECHNOLOGY (XINJIANG) CO LTD
Filing Date
2026-02-05
Publication Date
2026-05-05

AI Technical Summary

Technical Problem

In existing infrared touch screen control schemes, the baseline aperture of the dark time slot is prone to inconsistency with the change of scanning frames, the comparability of decoded evidence packets is insufficient, the gated evidence packets and control output packets lack a structured association, and the linkage relationship between the verification rescan strategy parameters and the write-back update packets is unclear. This results in inconsistencies in the control output packets in human-machine interaction control scenarios at the production or processing site and difficulty in verifying their status.

Method used

By generating the transmission time slot sequence, sampling the receiving time slot, and matching the baseline subtraction of the dark time slot under the constraints of the scanning configuration package, a decoding evidence packet is generated. Based on this, baseline offset calculation, spatial morphology evidence, and temporal consistency evidence are generated to construct a gated evidence packet. Verification rescan strategy parameters are extracted, verification rescan and mark generation processing are performed to generate a rescan result packet and construct a write-back update packet.

Benefits of technology

It enables the stability and consistency of control output packets in human-machine interaction control scenarios at the production or processing site, reduces control link fluctuations caused by inconsistent judgment criteria, ensures continuous connection of verification rescan and write-back update, and improves the traceability of control output packets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121979408A_ABST
    Figure CN121979408A_ABST
Patent Text Reader

Abstract

The invention relates to the field of infrared touch screen control, in particular to a control method and system of an infrared touch screen. The method comprises the following steps: acquiring a transmitting unit set, a receiving unit set and a forbidden list, performing topology registration and signature codebook library assembly processing, and generating a scanning configuration packet; on the basis of the scanning configuration packet, executing transmission lightening time slot sequence generation, receiving time slot sampling and dark time slot baseline deduction matching decoding processing, and generating a decoding evidence packet; based on the decoding evidence packet, baseline offset calculation is carried out, spatial form evidence and time consistency evidence generation processing is carried out, a gating evidence packet is constructed, evidence gating and anomaly classification processing is carried out, and a control output packet is generated; and extracting a verification rescanning strategy parameter from the control output packet, executing verification rescanning and passing mark generation processing, generating a rescanning result packet, and constructing a write-back update packet. According to the invention, through an evidence link and a re-scanning write-back closed loop organization, the caliber consistency and traceability of control output are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of infrared touchscreen control, and more particularly to a control method and system for an infrared touchscreen. Background Technology

[0002] In the field of infrared touchscreen control, existing solutions typically construct scanning links around sets of transmitting and receiving units. Topology registration forms a topology profile, a signature codebook is assembled, and a scanning configuration package is generated. Based on the scanning configuration package, the transmitting illumination time slot sequence is generated and the receiving time slot is sampled. The sampling results are then subjected to dark time slot baseline subtraction matching decoding to generate a decoded evidence package. Subsequently, based on the decoded evidence package, baseline offset calculation is performed to generate spatial morphological evidence and temporal consistency evidence. A gating evidence package is constructed, and evidence gating and anomaly classification are performed to obtain a control output package. If necessary, the verification rescan strategy parameters are extracted from the control output package, and verification rescan and tag generation processing are performed to generate a rescan result package and construct a write-back update package. The above-mentioned solutions have several common limitations in engineering applications: First, the dark time slot baseline subtraction matching decoding process often relies on the stability of the received time slot sampling and the availability of the dark time slot location. When there is timing jitter, sampling loss, or environmental noise superposition between the transmit lighting time slot sequence and the received time slot sampling, the dark time slot baseline aperture is prone to inconsistency with changes in the scan frame, resulting in insufficient comparability of decoded evidence packets under the same topological aperture. Second, the assembly of the signature codebook library and the scan configuration packet usually involves codeword set registration and codeword version number registration, but existing technologies lack linkage in codeword version number switching, codeword index mapping, and topological registration aperture. Unified recording and verification constraints can easily lead to version reference breaks or index inconsistencies between the scan configuration package and the decoded evidence package, thus affecting the input premises for generating subsequent spatial morphology evidence and temporal consistency evidence. Thirdly, evidence gating and anomaly classification processing in existing systems largely rely on local decision links. The lack of structured associations between the gating evidence package and the control output package regarding evidence sources, rejection reasons, and classification criteria results in insufficient traceability of the control output package. Furthermore, the linkage between the verification rescan strategy parameters, the rescan result package, and the write-back update package is unclear, and the update scope of the write-back update package for the disabled list and related storage items is prone to deviation. These limitations in human-machine interaction control scenarios in production or processing sites can lead to repeated calibration of the input link, fluctuations in the control output package, and frequent rescan triggering and write-back updates. This makes it difficult for infrared touchscreens to maintain a consistent control output process under disabled list constraints, and the link connection between acquisition—alignment—decision—control—recording update is prone to inconsistencies and difficulties in verifying the status. Summary of the Invention

[0003] To address the aforementioned technical problems, this invention provides a control method for an infrared touchscreen, comprising: S100: Obtain the set of transmitting units, the set of receiving units, and the disabled list; perform topology registration and signature codebook assembly; and generate a scanning configuration package. S200. Based on the scanning configuration package, perform transmission lighting time slot sequence generation, reception time slot sampling and dark time slot baseline subtraction matching decoding processing to generate a decoding evidence package; S300. Based on the decoded evidence package, perform baseline offset calculation, spatial morphology evidence and temporal consistency evidence generation processing, construct a gated evidence package and perform evidence gating and anomaly classification processing to generate a control output package; S400: Extract the verification rescan strategy parameters from the control output packet, perform verification rescan and tag generation processing, generate a rescan result packet and construct a write-back update packet.

[0004] Furthermore, the process of performing topology registration and signature codebook assembly includes: The topology registration process includes performing a set consistency check on the transmitter and receiver sets. This set consistency check includes uniqueness checks for serial numbers, channel conflict checks, valid border segment identifier checks, and disabled list reference hit checks. Based on the border segment identifiers and installation location information, optical path candidate relationships are jointly constructed using geometric and connectivity constraints. The geometric constraints include the relative order of border segment orientation and installation location information, while the connectivity constraints include the simultaneous triggering relationship between the driving port and the sampling port. When a candidate pair satisfies the border segment orientation relationship and the trigger windows of the driving port and the sampling port are aligned, it is registered as an optical path entry. An optical path topology mapping table is generated. This table is a structured data table and includes optical path number, transmitter device number, receiver device number, transmitter channel number, receiver channel number, border segment identifier pairs, installation location information digest, and disabled status flag. A signature codebook assembly process is then performed. This process includes extracting an optical path index list and border geometry identifiers from the optical path topology mapping table. The extracted optical path index list is associated with the disabled status flag, and the optical path numbers of available optical path entries are organized according to a preset sorting rule. The border geometry identifier includes a combined identifier of border segment identifier pairs, installation location information digest, and border size digest.

[0005] Furthermore, the process of generating the emission lighting time slot sequence includes: The emission and illumination time slot sequence generation process includes performing packet integrity verification and version consistency verification on the scan configuration packet. The packet integrity verification covers the existence of fields, the range of field values, and the existence of referenced objects. The version consistency verification covers the consistent binding relationship between the codeword version number and the codeword index table, and the consistent alignment relationship between the frame structure and the driving clock configuration. When time slot skeleton assembly, codeword index assembly, and channel concurrency constraint pruning are performed, the time slot skeleton assembly reads the signature time slot sequence and dark time slot position according to the frame structure and constructs the scan frame according to the time slot duration. The timeline involves assembling the codeword index by reading the codeword index table from the codebook and selecting the codeword index for the current frame according to the operating strategy, as well as assembling the lighting state sequence from the codeword set into the scanning frame timeline. The channel concurrency constraint pruning performs pruning and batch arrangement on the set of transmission channels lit in the same time slot according to the concurrency limit of the transmission drive circuit, generating a time slot lighting schedule table. The time slot lighting schedule table is a structured scheduling object and includes frame number, time slot number, time slot type marker, set of lit channels, lighting gating configuration summary, and sampling trigger alignment marker.

[0006] Furthermore, the process of receiving time slot sampling and dark time slot baseline subtraction matching decoding includes: The receive time slot sampling process includes generating a sampling orchestration context, which includes a receive channel set, a sampling window configuration summary, and a time slot alignment marker. Receive time slot sampling is then performed, comprising time slot triggering, channel polling sampling, and anomaly sample marking. The time slot triggering sends a sampling trigger signal based on the time slot start and end time summary of the time slot lighting schedule. The channel polling sampling drives the receive sampling circuit to sample each receive channel sequentially according to the receive channel set, forming an original sample value set. The anomaly sample marking performs saturation detection, transition detection, and missing detection on the sample value set and writes the results into an anomaly sample marker, generating a receive sequence packet. The receive sequence packet is a structured data object containing an optical path number index area, a time slot sequence area organized by optical path number, a dark time slot sampling segment area, and a metadata area. Based on the receive sequence packet, dark time slot baseline subtraction and matching decoding processing are performed. The dark time slot baseline subtraction processing includes processing the dark time slots from the received sequence packet... The process involves acquiring dark time-slot sampling segments from the slot sampling area and combining them with anomaly sample markers for baseline sample screening, baseline estimation, and subtraction. The baseline estimation performs robust statistical aggregation on the dark time-slot samples of each optical path. The subtraction process subtracts the baseline estimate from the sampled values ​​of the signature time slots one time slot at a time to generate a subtracted sequence. The matching decoding process includes codeword reading, time-slot alignment checking, matching operations, and residual aggregation. The codeword reading reads the lighting state sequence from the codeword set based on the codeword version number and codeword index and aligns it with the signature time-slot sequence to obtain the codeword sequence for decoding. The time-slot alignment check checks the consistency between the time-slot number label of the subtracted sequence and the time-slot number label of the codeword sequence for decoding. The matching operation performs time-slot multiply-add aggregation on the subtracted sequence of each optical path and the codeword sequence for decoding, and combines it with the weighting table derived from the anomaly sample markers to obtain the effective transmittance for decoding. The residual aggregation calculates the energy aggregation of the differences in the matching components to obtain the decoding residual energy, generating a decoding evidence packet.

[0007] Furthermore, the process of generating the decoded evidence package includes: The decoded evidence package includes an optical path number index, a decoded effective transmittance scale, a decoded residual energy scale, a baseline estimation summary, a quality marker area, and a version context field.

[0008] Furthermore, the process of calculating the baseline offset includes: The baseline offset calculation process includes an evidence header consistency check, which checks frame number continuity, codeword version number consistency with the version of the locally effective scanning configuration package, and the resolvability of the codeword index in the local codeword index table. It also maintains a baseline tracking status table, which is a set of status records organized by optical path number and includes a snapshot of the previous frame's decoded effective transmittance, a snapshot of the previous frame's baseline offset, a valid sample count, an abnormal frame count, and an update timestamp. Optical path alignment and sample admission determination are performed. Optical path alignment matches the current frame's decoded effective transmittance table with the previous frame snapshot in the baseline tracking status table according to the optical path number index. Sample admission determination is based on… The quality marking area determines whether the current frame decoding amount of each optical path enters the baseline offset calculation channel and performs baseline offset calculation. The baseline offset calculation includes offset candidate generation, offset stability discrimination, and offset packing. The offset candidate generation generates offset candidates by differentiating the current frame decoding effective transmittance with the previous frame snapshot for optical paths that have passed the admission judgment, and combines the offset candidate with the decoding residual energy table to generate an offset confidence summary. The offset stability discrimination performs windowed consistency checks on offset candidates of multiple consecutive frames and generates an amplitude evidence packet. The amplitude evidence packet is a structured object and includes frame number, codeword version number, codeword index, optical path number index, amplitude evidence entry set, and quality mark extension field.

[0009] Furthermore, the process of generating and processing spatial morphological evidence and temporal consistency evidence includes: The spatial morphology evidence generation process includes evidence spatial mapping and neighborhood aggregation. The evidence spatial mapping process maps the decoded effective transmittance and baseline offset of each optical path to spatial cells constrained by border geometric identifiers according to the optical path topology mapping table. The neighborhood aggregation process aggregates multiple optical path evidence entries within each spatial cell to generate spatial morphology evidence entries. Each spatial morphology evidence entry includes a spatial cell index, an aggregated effective transmittance summary, an aggregated baseline offset summary, an aggregated residual summary, and an aggregated confidence summary, and generates a spatial morphology boundary record. The temporal consistency evidence generation process includes maintaining a temporal consistency buffer and retrieving historical evidence sequences from the buffer for each spatial cell index, performing time window alignment and consistency discrimination processing to generate temporal consistency evidence entries. Each temporal consistency evidence entry includes a spatial cell index, a temporal consistency marker, a time window summary, and a historical coverage summary. A gated evidence package is constructed. The gated evidence package is a structured object and includes a frame number, codeword version number, topology reference field, a set of spatial morphology evidence entries, a set of temporal consistency evidence entries, a spatial morphology boundary record, and a summary of the gated parameter version record.

[0010] Furthermore, the process of constructing a gated evidence package and performing evidence gating and anomaly classification includes: Evidence gating processing includes evidence admission determination, confidence aggregation processing, and conflict arbitration processing. Evidence admission determination simultaneously references spatial morphology evidence entries and temporal consistency evidence entries for each spatial unit index and determines whether the spatial morphology confidence summary, temporal consistency marker, and historical coverage summary meet the admission threshold. Confidence aggregation processing synthesizes gated confidence entries from the admitted spatial unit indexes. Each gated confidence entry includes a spatial unit index, a confidence level field, an evidence summary field, and a cause code field. Conflict arbitration processing merges or suppresses gated confidence entries from adjacent spatial units according to the arbitration set when they are mutually exclusive. Anomaly classification processing includes anomaly category definition loading and classification rule matching. Anomaly category definition loading reads the anomaly category label table from the configuration storage area. Classification rule matching performs classification on each gated confidence entry based on the anomaly category label table and generates a classification record, generating a control output packet. The control output packet is a structured object and includes a frame number, codeword version number, current record summary, control instruction set, diagnostic field, and backtracking field.

[0011] Furthermore, the process of performing a verification rescan and generating data via markers includes: The verification rescan execution process includes policy parsing and constraint pruning. Policy parsing extracts codeword version switching and dark slot proportion adjustment items from the verification rescan policy table and constructs an execution parameter set. Constraint pruning checks and prunes the execution parameter set against the frame structure parameters of the currently effective scan configuration packet, and performs codeword version switching and dark slot proportion adjustment. The codeword version switching process selects a codeword version number and updates the codeword index table reference based on the switching condition set at runtime. The dark slot proportion adjustment process generates the rescan transmit / ignition time slot sequence and the adjustment aperture for the receive / sample window based on the dark slot position adjustment table and the dark slot quantity proportion parameter, and executes rescan frame generation and sampling. The rescan frame generation and sampling refer to the optical path number set corresponding to the associated spatial unit range summary. The process involves generating a transmit-to-light-up time slot sequence, sampling and recording the received time slots, performing verification rescan decoding and evidence comparison processing. The verification rescan decoding process involves dark time slot baseline subtraction and matching decoding of the rescan sampled sequence to generate a rescan decoding summary. The evidence comparison process compares the rescan decoding summary with the spatial morphological boundary record fragment index indicated by the backtracking field of the control output packet. Verification rescan pass-mark generation processing is then performed, which includes admission checks, conditional decisions, and mark solidification, generating a rescan result packet. This rescan result packet is a structured object containing a strategy number, rescan frame number range, selected codeword version number, dark time slot location summary, dark time slot quantity percentage parameter, rescan decoding summary, verification rescan pass mark, sampling metadata summary, and execution log summary.

[0012] Furthermore, a control system for an infrared touchscreen includes: a topology and codebook configuration module, a lighting scheduling and receiving assembly module, a baseline subtraction and matching decoding module, an evidence generation and gating classification module, and a rescanning strategy and execution write-back module; the modules are connected in sequence to implement the method described in any of the above-mentioned embodiments.

[0013] The key innovations of this invention include: (1) Within the same scanning link driven by the scanning configuration package, the generation of the transmit lighting time slot sequence, the sampling of the receive time slot and the baseline subtraction and matching decoding of the dark time slot are chained together. The validity of the sampling and decoding is consistent around the constraint caliber of the disable list, and the decoded evidence package is output as a unified input object for subsequent processing.

[0014] (2) Based on the decoded evidence package, the baseline offset calculation, spatial morphology evidence and temporal consistency evidence generation and processing are organized into evidence, the gated evidence package is constructed, and evidence gating and anomaly classification processing are performed on the gated evidence package to generate the control output package, so that the control output and the evidence link maintain a traceable correspondence.

[0015] (3) Extract the verification rescan strategy parameters from the control output packet, perform verification rescan and pass mark generation processing, generate rescan result packet and construct write-back update packet, so that verification rescan, pass mark and write-back update packet are completed in series and write-back update in the same closed loop link.

[0016] The following are its main beneficial effects: (1) In view of the problem that the baseline aperture of the dark time slot in the existing scheme is prone to inconsistency with the scanning frame, resulting in insufficient comparability of the decoded evidence packets, the generation of the transmission lighting time slot sequence, the sampling of the receiving time slot and the matching decoding process of the dark time slot baseline subtraction are chained under the constraints of the scanning configuration packet, and a unified validity processing aperture is formed around the prohibited list, so that the decoded evidence packets form a stable input expression under the same topology registration and signature codebook assembly aperture, thereby supporting the subsequent continuous processing based on the decoded evidence packets to maintain a consistent operation link in the human-machine interaction control scenario of the production or processing site.

[0017] (2) In view of the problem that the lack of structured association between the gated evidence package and the control output package in the existing scheme, which leads to insufficient traceability of the control output package, the baseline offset calculation, spatial morphological evidence and temporal consistency evidence generation processing are performed by taking the decoded evidence package as a unified input and constructing the gated evidence package. Then, the evidence gating and anomaly classification processing are performed on the gated evidence package to generate the control output package, so that the control output and the gated evidence package and its evidence generation link form a verifiable correspondence, thereby reducing the control link fluctuation caused by inconsistent judgment criteria under the constraint of the prohibited list.

[0018] (3) In view of the problem that the linkage between the verification rescan strategy parameters, rescan result package and write-back update package is unclear in the existing scheme, and the write-back update caliber is prone to deviation, the verification rescan strategy parameters are extracted from the control output package and the verification rescan and the mark generation process are executed to generate the rescan result package and construct the write-back update package. This makes the execution result of the verification rescan, the mark and the write-back update consistent and consistent in the same closed loop link, so that the update caliber related to the disabled list is continuously connected with the control output package, which is convenient for the link status to be reviewed and maintained during the operation of the project. Attached Figure Description

[0019] Figure 1 A flowchart illustrating a control method for an infrared touchscreen provided in an embodiment of this application; Figure 2 This is a structural block diagram of an infrared touch screen control system provided in an embodiment of this application. Detailed Implementation

[0020] Example 1: Refer to Figure 1 This is a flowchart illustrating a control method for an infrared touchscreen provided in an embodiment of the present invention. The process may include at least steps S100-S400: S100: Obtain the set of transmitting units, the set of receiving units, and the disabled list; perform topology registration and signature codebook assembly; and generate a scanning configuration package. S200. Based on the scanning configuration package, perform transmission lighting time slot sequence generation, reception time slot sampling and dark time slot baseline subtraction matching decoding processing to generate a decoding evidence package; S300. Based on the decoded evidence package, perform baseline offset calculation, spatial morphology evidence and temporal consistency evidence generation processing, construct a gated evidence package and perform evidence gating and anomaly classification processing to generate a control output package; S400: Extract the verification rescan strategy parameters from the control output packet, perform verification rescan and tag generation processing, generate a rescan result packet and construct a write-back update packet.

[0021] Step S100 includes at least steps S110-S130: S110: Obtain the set of transmitting units, the set of receiving units, and the disabled list; perform topology registration processing to obtain the optical path topology mapping table. When the control system of the infrared touchscreen is powered on and initialized or reconfigured, the controller reads the set of transmitting units and the set of receiving units from the hardware abstraction layer. The set of transmitting units refers to the set of infrared transmitting devices arranged along each edge of the frame and addressed one by one by the driving channels. The set of receiving units refers to the set of infrared receiving devices arranged opposite the transmitting devices and addressed one by one by the sampling channels. The acquisition of the set of transmitting units and the set of receiving units includes the device number, the identifier of the frame segment, the device installation location information, and the channel binding information. The channel binding information refers to the fixed correspondence between the device and the transmitting driving port or the receiving sampling port. The disabled list is written from the manufacturing test record, the field maintenance record, or the operation self-test record. The disabled list is used to mark the device number or channel number that does not participate in the scanning configuration. In this step, the disabled list is read in as a constraint input for the topology registration process, and its format consistency and the existence of the referenced objects are verified. During the topology registration process, the controller first performs a set consistency check on the transmitting unit set and the receiving unit set. This consistency check includes a uniqueness check for device numbers, a channel conflict check, a valid border segment identifier check, and a disabled list reference hit check. Specifically, the uniqueness check for device numbers prevents the same device from being registered repeatedly; the channel conflict check prevents two devices from occupying the same drive port or sampling port; the valid border segment identifier check assigns devices to a preset border segment set and forms traceable installation semantics; and the disabled list reference hit check removes disabled devices before registration and writes the removal reason record. After completing the set consistency check, the controller constructs optical path candidate relationships based on the border segment identifiers and installation location information. These optical path candidate relationships refer to candidate pairs of sampleable optical paths formed by the intersection of an infrared beam emitted by a transmitting device and the field of view of a receiving device. The construction of the optical path candidate relationship employs a combined processing of geometric constraints and connectivity constraints. Geometric constraints include the relative order of the frame segment orientation relationship and the installation position information, while connectivity constraints include the simultaneous triggerability of the driving port and the sampling port. When a candidate pair satisfies the frame segment orientation relationship and the trigger windows of the driving port and the sampling port are aligned, the candidate pair is registered as an optical path entry and assigned an optical path number. Subsequently, the controller writes the optical path entry into the optical path topology mapping table, which is a structured data table containing at least the optical path number, transmitting device number, receiving device number, transmitting channel number, receiving channel number, frame segment identifier pair, installation position information summary, and disabled status flag. The disabled status flag indicates whether the optical path entry has been made unavailable due to the disabled list, and the entry is retained in the optical path topology mapping table for audit playback.In the field engineering implementation, the infrared touchscreen is installed on the outer periphery of the display panel of the self-service terminal or conference all-in-one machine, with transmitting and receiving devices arranged along the four sides of the frame. After the system is powered on, this step is triggered when the driver firmware completes port enumeration. The controller reads the enumeration results of the transmitting and sampling channels as the source of the transmitting unit set and the receiving unit set, and reads the disable list issued by the maintenance terminal to block the marked abnormal devices. Then, the topology registration is completed and the optical path topology mapping table is obtained. The optical path topology mapping table is recorded as the output field name "Optical Path Topology Mapping Table" at the end of this step and is written to the configuration storage area and the running memory area. It is called as the input object of S120 in subsequent steps. Specifically, S120 extracts the optical path index list and the border geometry identifier from the optical path topology mapping table to continue to complete the codebook related registration. At the same time, the optical path topology mapping table provides a fixed optical path index aperture for the generation of the decoding evidence packet of S200 in the cross-main step connection, so that the subsequent time slot lighting scheduling and receiving time slot sampling have a consistent addressing reference.

[0022] S120. Extract the optical path index list and border geometry identifier from the optical path topology mapping table, register the codeword set and codeword version number, and generate a signature codebook library. Upon receiving the output field name "Optical Path Topology Mapping Table" from S110, the controller enters the codebook registration phase. This step first extracts an optical path index list from the optical path topology mapping table. The optical path index list is a list of optical path numbers for available optical path entries organized according to a preset sorting rule. This sorting rule includes the grouping order by border segment identifier pairs and the relative order within each group by installation location information digest. The extraction of the optical path index list is simultaneously associated with a disabled status flag. Optical path entries marked as unavailable are not included in the optical path index list, but their numbers are written to a bypass record for consistency auditing. The controller also extracts border geometry identifiers from the optical path topology mapping table. These border geometry identifiers are a combined identifier of border segment identifier pairs, installation location information digests, and border size digests. In this step, their function is to bind the codeword set to a specific hardware geometric assembly state, preventing codebook reference drift across different border assembly states. The frame size summary is derived from device configuration or manufacturing calibration records, including a summary of the screen outer frame size and frame segment length. The installation location information summary includes the device's relative position number or relative distance classification information. The combined identifier is written into the codebook metadata during registration. After extracting the optical path index list and the frame geometric identifier, the controller performs codeword set registration. The codeword set refers to the set of time slot illumination modes used for signature time slot encoding scanning. Each codeword is a structured description of a time slot sequence, including the number of time slots, the illumination status of each time slot, and the codeword enable flag. The illumination status is a description of the transmission channel illumination gating, does not contain letter variables, and is not expressed using formulas. The input sources for codeword set registration include three paths: factory-preset codeword files, codeword files issued by the maintenance terminal, and codeword files generated by the device. Among these, factory-preset codeword files and codeword files issued by the maintenance terminal are the core and essential paths, while codeword files generated by the device are optional extension paths. When using codeword files generated by the device, the controller performs correlation verification on the candidate codeword set based on preset low-correlation constraint rules and writes it into the verification record. However, in this step, the codeword set is still registered as a unified data structure without changing the subsequent interface. During the codeword set registration process, the controller performs structural checks and executability checks on each codeword. The structural checks include consistency of the number of time slots, legality of the lighting status, and consistency of the enable flag. The executability checks include checks on the transmission channel concurrency limit and driver trigger window constraints. When a codeword does not meet the transmission channel concurrency limit or the driver trigger window constraint, the codeword is disabled and the reason is written into the reason record, but its entry is still retained for version backtracking. Subsequently, the controller registers the code word version number. The code word version number refers to the version identifier of the code word set and its meta-information. The version identifier consists of a release sequence number, a generation source marker, and an effective scope marker. The release sequence number adopts a monotonically increasing rule in the version management strategy. The generation source marker is used to distinguish between factory presets, maintenance distributions, and device generation. The effective scope marker is used to distinguish between full machine effectiveness and edge segment effectiveness.The codeword version number registration is simultaneously bound to the border geometry identifier, ensuring an auditable binding relationship for the same codeword version number under different border geometry identifiers. The controller writes the registered codeword set, along with the codeword version number, border geometry identifier, and optical path index list summary, into the signature codebook library. This signature codebook library is a structured data object, containing at least the codeword set, codeword version number, codeword activation status table, codeword metadata table, and geometry binding records. For engineering operations, when the device undergoes on-site screen or border replacement, the border geometry identifier changes with the hardware. In this step, the controller performs a consistency check on the binding relationship between the border geometry identifier and the codeword version number. If a binding mismatch is detected, the version is placed in a pending confirmation state and written to the maintenance log, while a usable factory-preset version is retained for building subsequent scanning configurations. At the end of this step, the signature codebook is recorded as the output field name "signature codebook" and enters the codeword index table generation and scan frame structure parameter assembly as the input object of S130. At the same time, the signature codebook provides a unified reference standard for the codeword set and codeword version number for the generation of the transmission lighting time slot sequence of S200 in the cross-main step connection, so that the subsequent decoding evidence packet generation has version traceability.

[0023] S130. Generate a codeword index table and assemble scan frame structure parameters for the signature codebook library to generate a scan configuration package. After receiving the output field name "Signature Codebook Library" from S120, the controller enters the scanning configuration package configuration stage. This step first performs codeword index table generation processing on the signature codebook library. The codeword index table is a data table that establishes a mapping relationship between each codeword in the codeword set and its index number invoked at runtime. The index numbers are consecutively numbered and updated synchronously with the codeword activation status table. Codeword index table generation includes three processing links: index allocation, index freezing, and index auditing. In the index allocation stage, the controller filters enabled codewords according to the codeword activation status table and assigns index numbers, while retaining inactive codewords in the bypass index area and marking them as uncallable. In the index freezing stage, the controller freezes the version numbers of currently effective codewords. The freeze record includes a freeze timestamp, freeze trigger source, and freeze range marker. Freeze trigger sources include power-on initialization triggers, maintenance issuance triggers, and maintenance confirmation triggers. In the index auditing stage, the controller performs consistency verification between the codeword index table and the codeword metadata table. The verification includes the uniqueness of index numbers, the continuity of index numbers, and the existence of metadata references. The verification results are written to the audit log for subsequent playback. After the codeword index table is generated, the controller performs the assembly of scan frame structure parameters. The scan frame structure parameters refer to the set of frame-level parameters used for slotted coding scanning, which includes at least three minimum sets: signature slot sequence, dark slot position, and slot duration. The signature slot sequence refers to the sequence of signature slot numbers arranged chronologically within a scan frame; the dark slot position refers to the location description of the annihilation sampling slot inserted into the signature slot sequence; and the slot duration refers to the duration configuration of each slot. This minimum set is the essential parameter set for the core improvement of this invention; the absence of any one of these parameters will prevent subsequent dark slot baseline subtraction and matching decoding from forming a unified slot alignment. Corresponding optional extended parameters include intra-frame repetition count, rescan frame insertion rules, sampling window offset, and saturation marker threshold. These optional extended parameters are used to adapt to different hardware sampling links and different ambient light environments, but do not change the field definitions of the minimum set. During the assembly of the scanning frame structure parameters, the controller reads the number of codeword time slots and the lighting state constraints from the codeword information table in the signature codebook library, and aligns them with the device drive clock configuration. The alignment includes the integer multiple relationship between the time slot duration and the drive trigger window, and the avoidance relationship between the dark time slot position and the sampling stable window. When the alignment check finds that the dark time slot position falls into the drive switching transient window, the controller adjusts the dark time slot position to the adjacent stable window and writes it into the adjustment record. The adjustment record is bound to the codeword version number to avoid interpretation ambiguity during subsequent version playback.After assembling the scan frame structure parameters, the controller encapsulates the optical path topology mapping table summary, the signature codebook library, the codeword index table, and the scan frame structure parameters into a scan configuration package. This scan configuration package is a structured configuration object containing a hardware topology part, a codebook part, and a frame structure part. The hardware topology part references the version summary and disabled list summary of the optical path topology mapping table. The codebook part contains the codeword version number and the codeword index table. The frame structure part contains the signature time slot sequence, dark time slot position, and time slot duration. After the scan configuration package is generated, the controller writes it to the runtime configuration area and registers the effective sequence number. The effective sequence number and the codeword version number together constitute an auditable runtime baseline. When the operations and maintenance end issues a new codeword version number during operation or the maintenance end updates the disabled list, the controller triggers this step to regenerate the scan configuration package and writes the difference summary between the old and new scan configuration packages to the audit log, thus forming an automated version management and backtracking link. In the engineering implementation, the self-service terminal experiences ambient light changes during business hours. During the maintenance period after closing, a new code version number can be issued, triggering this step to reassemble the scan configuration package. Subsequently, upon power-on the next day, the already effective scan configuration package is directly referenced, without introducing additional manual configuration steps. At the end of this step, the scan configuration package is recorded as the output field name "Scan Configuration Package" and is called as an input object by the subsequent step S210. S210 generates an emission lighting time slot sequence based on the scan configuration package and enters the decoding evidence package generation link. Simultaneously, the scan configuration package serves as the starting input for S200 in the cross-main step connection, thereby supporting the closed-loop update between the control output package generation of S300 and the write-back update package generation of S400.

[0024] In summary, the technical effects of this step are as follows: This step solidifies the codeword set and codeword version number into a callable index through the codeword index table, and assembles the signature time slot sequence, dark time slot position and time slot duration into the scanning configuration package, so that subsequent time slot lighting scheduling, receiving time slot sampling, dark time slot baseline subtraction and matching decoding have a unified configuration entry and an auditable version reference relationship.

[0025] Step S200 includes at least steps S210-S230: S210. Obtain the scanning configuration package, perform emission lighting time slot sequence generation processing, and obtain the time slot lighting schedule table; In this embodiment, the main body performing this step is an infrared touch screen controller. The infrared touch screen controller is connected to the transmitting drive circuit and the receiving sampling circuit, and is also connected to the configuration storage area, for reading the scanning configuration package generated in the previous step. The scan configuration package originates from the output field name "Scan Configuration Package" of S130. It contains a hardware topology section, a codebook section, and a frame structure section. The hardware topology section carries the version summary and disabled list summary of the optical path topology mapping table. The codebook section carries the codeword version number and codeword index table. The frame structure section carries the signature time slot sequence, dark time slot position, and time slot duration. After the scan configuration package enters this step, the infrared touchscreen controller first performs packet integrity verification and version consistency verification. Packet integrity verification covers field existence, field value range, and the existence of referenced objects. Version consistency verification covers the consistent binding relationship between the codeword version number and the codeword index table, and the consistent alignment relationship between the frame structure section and the drive clock configuration. When the verification fails, the infrared touchscreen controller sets the scan configuration package to an inactive state and writes it to the operation log. Simultaneously, it triggers a rollback strategy. The rollback strategy reads the most recently effective scan configuration package from the configuration storage area and reuses its codeword version number and frame structure section, thereby maintaining the continuous operation of the subsequent time slot generation link. After verification, the infrared touch screen controller enters the process of generating the transmission lighting time slot sequence. The transmission lighting time slot sequence refers to the time slot-level lighting sequence obtained by timing the gating of the transmission channel lighting in each time slot within a scanning frame. It describes the correspondence between the transmission channel number and the time slot number and maintains consistency with the codeword index table.The transmission illumination time slot sequence generation process consists of time slot skeleton assembly, codeword index assembly, and channel concurrency constraint pruning: In the time slot skeleton assembly stage, the infrared touchscreen controller reads the signature time slot sequence and dark time slot positions according to the frame structure, constructs a scan frame time axis according to the time slot duration, and then writes the dark time slot positions into the placeholder segment of the time axis and marks them as all-off segments; In the codeword index assembly stage, the infrared touchscreen controller reads the codeword index table from the codebook, selects the codeword index used for the current frame according to the operating strategy, which is triggered by the device operating state. The device operating state includes power-on initialization state, stable scanning state, and verification rescan state. The operating strategy maps the state to the enabled index in the codeword index table, thereby obtaining... When the frame codeword index is reached, the infrared touchscreen controller reads the lighting state sequence from the codeword set based on the frame codeword index and assembles the lighting state sequence into the scanning frame time axis according to the position of the signature time slot sequence. During the channel concurrency constraint pruning stage, the infrared touchscreen controller performs pruning and batch arrangement of the set of lighting transmission channels in the same time slot according to the concurrency limit and port grouping limit of the transmission drive circuit. The pruning process adopts a fixed order arbitration rule and a conflict recording mechanism. The fixed order arbitration rule comes from the transmission device number order of the optical path topology mapping table. The conflict recording mechanism writes the pruned channel number, the conflicted time slot number, and the arbitration result into the operation log for subsequent strategy table generation and audit playback. After completing the above processing, the infrared touch screen controller encapsulates the set of lighting channels, the summary of lighting start and end times, the codeword index and codeword version number used for each time slot into a time slot lighting schedule table. The time slot lighting schedule table is a structured scheduling object, whose fields cover frame number, time slot number, time slot type flag, set of lighting channels, lighting gating configuration summary and sampling trigger alignment flag. The time slot type flag is used to distinguish between signature time slots and dark time slots, and the sampling trigger alignment flag is used to indicate the alignment relationship between the sampling window of the receiving sampling circuit and the lighting gating. In engineering scenarios, when the infrared touchscreen is installed on a conference all-in-one machine and is in a stable scanning state, the infrared touchscreen controller triggers this step at the beginning of each scanning frame to read the effective scanning configuration package and generate a time slot lighting schedule table. When entering the verification rescan state, the infrared touchscreen controller updates the running strategy according to the verification rescan strategy table generated in subsequent steps. The running strategy selects different codeword indices or modifies the dark time slot position distribution, and then generates a new time slot lighting schedule table and writes the frame number difference summary, so that the rescan frame has a distinguishable record from the regular frame at the scheduling level.At the end of this step, the time slot lighting schedule table is recorded as the output field name "time slot lighting schedule table" and is called by S220 as an input object. S220 extracts the signature time slot sequence and dark time slot position from the time slot lighting schedule table and completes the receiving time slot sampling and receiving sequence assembly. At the same time, the frame number and codeword version number of the time slot lighting schedule table are kept consistent with the matching and decoding process of S230, so that the decoded evidence packet has a complete timing and version context.

[0026] S220. Extract the signature time slot sequence and dark time slot position from the time slot lighting schedule table, perform receiving time slot sampling and receiving sequence assembly, and generate receiving sequence packet; In this embodiment, the main body performing this step is still the infrared touchscreen controller. The infrared touchscreen controller is linked with the transmission drive circuit through the trigger line and with the receiving sampling circuit through the sampling control line, forming a coordinated transmission illumination and receiving sampling within the same scanning frame. After receiving the output field name "Time Slot Illumination Schedule Table" from S210, the infrared touchscreen controller first reads the frame number and codeword version number from the time slot illumination schedule table, and extracts the signature time slot sequence and the dark time slot position. In this step, the signature time slot sequence refers to the sequence of time slot numbers marked as signature time slots in the time slot illumination schedule table, and the dark time slot position refers to the relative positional relationship between the time slot number marked as a dark time slot in the time slot illumination schedule table and its adjacent signature time slot number. After extraction, the infrared touchscreen controller generates a sampling orchestration context, which includes a set of receiving channels, a sampling window configuration summary, and a time slot alignment marker. The receiving channel set is derived from the optical path topology mapping table version summary referenced in the hardware topology section of the scan configuration package. Based on this, the infrared touchscreen controller obtains the set of available receiving channel numbers and removes receiving channels from the disabled list summary. The sampling window configuration summary is derived from the lighting gating configuration summary and sampling trigger alignment marker of the time slot lighting schedule table. Based on this, the infrared touchscreen controller determines the start and end boundaries of the sampling window and the sampling trigger time for each time slot. Subsequently, the receiving time slot sampling process begins, consisting of time slot triggering, channel polling sampling, and abnormal sample marking: In the time slot triggering phase, the infrared touchscreen controller issues a sampling trigger signal according to the time slot start and end time summary of the time slot lighting schedule table. The sampling trigger signal is synchronized with the lighting gating of the transmit drive circuit. In the channel polling sampling phase, the infrared touchscreen controller drives the receiving sampling circuit to sample each receiving channel in the order of the receiving channel set. The sampling results form a set of original sampled values ​​organized by channel number, which simultaneously records the sampling time tag and the time slot number tag. In the abnormal sample... During the marking phase, the infrared touchscreen controller performs saturation detection, jump detection, and missing detection on the sampled value set. Saturation detection determines whether overflow or underflow occurs based on the range boundary of the receiving sampling circuit. Jump detection determines whether transient spikes occur based on the difference in sampled values ​​between adjacent time slots. Missing detection determines whether there is a retrieval timeout based on the consistency between the sampling trigger time and the retrieval time tag. When a detection is successful, the infrared touchscreen controller writes the corresponding sample into an abnormal sample tag and records the abnormal type and time slot number. The abnormal sample tag does not change the sample's intrinsic value, but it is used for weight reduction or removal in subsequent assembly and decoding stages. After completing the receiving time slot sampling for each time slot within a frame, the infrared touchscreen controller performs receiving sequence assembly. The receiving sequence assembly refers to assembling the original sampled value set collected according to the time slot number and receiving channel number into a serialized data object aligned with the codeword index and time slot structure.The received sequence assembly process includes time slot dimension alignment, channel dimension alignment, and metadata assembly: In the time slot dimension alignment stage, the infrared touch screen controller segments and aggregates the original sampled value set according to the signed time slot sequence and the dark time slot position, aggregating the sampled values ​​of each channel under the same time slot number into time slot sample segments, and separately marking the dark time slot sample segments as environment segments; In the channel dimension alignment stage, the infrared touch screen controller binds the mapping relationship between the received channel number and the optical path number according to the version digest of the optical path topology mapping table, rearranges each time slot sample segment into a time slot sequence organized by the optical path number, so that each optical path corresponds to a time slot sequence entry; In the metadata assembly stage, the infrared touch screen controller writes the frame number, codeword version number, codeword index, signed time slot sequence, dark time slot position, time slot duration, abnormal sample mark digest, and sampling window configuration digest into the sequence header to form a replayable timing context. Finally, the infrared touchscreen controller receives the received sequence packet, which is a structured data object containing at least an optical path number index area, a time slot sequence area organized by optical path number, a dark time slot sampling segment area, and a metadata area. The dark time slot sampling segment area carries environmental segments and is used for subsequent dark time slot baseline subtraction. In engineering scenarios, when the infrared touchscreen experiences strong ambient light changes or external infrared interference sources, the received sample values ​​may show an overall increase or local jumps. This step uses an abnormal sample marking mechanism to keep saturated or jumping sample segments within the received sequence packet and simultaneously writes a mark, ensuring that the subsequent matching and decoding process has a clear sample credibility context and prevents implicit sample loss. The received sequence packet is recorded as the output field name "received sequence packet" at the end of this step and is called by S230 as an input object. S230 performs dark slot baseline subtraction and matching decoding on the received sequence packet and generates a decoded evidence packet. At the same time, the metadata area of ​​the received sequence packet connects the frame number, codeword version number and codeword index to the amplitude evidence packet generation link of the subsequent S310, so that the baseline offset calculation has the time alignment caliber within the same frame.

[0027] S230. Perform dark slot baseline subtraction and matching decoding on the received sequence packet to generate a decoded evidence packet; In this embodiment, after the infrared touchscreen controller obtains the "Received Sequence Packet" output field name from S220, it first reads its metadata area to obtain the frame number, codeword version number, codeword index, signature time slot sequence, and dark time slot position, and then reads the dark time slot sampling segment area to obtain the dark time slot sampling segment. The dark time slot baseline subtraction in this step refers to estimating the baseline amount of ambient light and receive link drift based on the dark time slot sampling segment, and subtracting this baseline amount from the signature time slot sampling sequence to obtain the subtracted sequence after separating it from the environmental item. The matching decoding in this step refers to performing a matching operation between the subtracted sequence and the lighting state sequence corresponding to the codeword index, outputting the effective transmission amount of the codeword-related decoding, and simultaneously obtaining the decoding residual energy of the codeword-unrelated decoding. Both constitute the input basis for subsequent evidence gating and anomaly classification. The dark time slot baseline subtraction process consists of baseline sample screening, baseline estimation, and subtraction execution. During the baseline sample screening phase, the infrared touchscreen controller extracts dark time-slot sampling segments from the dark time-slot sampling segment area within the same frame and, based on the anomaly sample label summary, removes dark time-slot samples marked as saturated or missing. When the number of dark time-slot samples is insufficient to trigger the minimum sample threshold, the infrared touchscreen controller invokes a backoff rule. The backoff rule reads the most recent valid baseline segment from the dark time-slot sampling segment area of ​​the adjacent frame and writes it into the baseline backoff mark for this frame. The baseline backoff mark is bound to the frame number and archived. During the baseline estimation phase, the infrared touchscreen controller performs robust statistical aggregation on the dark time-slot samples of each optical path. The robust statistical aggregation uses a combination of median aggregation and dispersion constraints. Median aggregation is used to suppress single-point anomalies, and dispersion constraints are used to determine whether the internal fluctuations of the dark time-slot samples exceed the allowable range. When the dispersion constraint fails, the infrared touchscreen controller marks the baseline estimation of that optical path as unstable and writes the reason for instability. At the same time, it writes the optical path label into the quality label area of ​​the decoded evidence packet for subsequent gating reference. During the subtraction execution phase, the infrared touchscreen controller subtracts the baseline estimate corresponding to each optical path from the sampled values ​​of that optical path in each signature time slot, forming a subtracted sequence. The subtracted sequence still retains the anomalous sample marker digest, and when a saturation marker occurs, it writes a saturation inheritance marker to the subtraction result of the corresponding time slot. The saturation inheritance marker is used to prompt subsequent matching decoding to perform downweighting processing on the samples in that time slot. After completing the dark time slot baseline subtraction, the infrared touchscreen controller enters the matching decoding process. The matching decoding process consists of codeword reading, time slot alignment checking, matching operations, and residual aggregation.During the codeword reading phase, the infrared touchscreen controller reads the illumination state sequence from the codeword set referenced in the scanning configuration package based on the codeword version number and codeword index, and aligns and assembles the illumination state sequence with the signature time slot sequence to obtain the codeword sequence for decoding. During the time slot alignment check phase, the infrared touchscreen controller checks whether the time slot number label of the subtracted sequence is consistent with the time slot number label of the codeword sequence for decoding, and checks whether the number and order of time slots are consistent. If they are inconsistent, the frame is marked as an alignment anomaly and written to the alignment anomaly log. At the same time, the decoding degradation rule for this frame is triggered. The decoding degradation rule for this frame sets the effective transmission amount to the default and writes the default reason to the quality mark area for direct recognition by subsequent evidence gating. In the matching operation phase, the infrared touchscreen controller performs a matching operation between the subtracted sequence and the codeword sequence for decoding on each optical path. The matching operation adopts a slot-by-slot multiply-accumulate aggregation method combined with a weighting table. The weighting table is derived from the anomaly sample tag digest. Slot samples with saturated inheritance tags receive lower weights, while slot samples with missing tags are removed. After completing the matching operation, the effective transmission of the optical path is obtained. The effective transmission is recorded as a scalar and bound to the optical path number. In the residual aggregation phase, the infrared touchscreen controller calculates the difference between the matching components of the subtracted sequence and the codeword sequence for decoding on the same optical path. The difference sequences are aggregated in the slot dimension to obtain the decoding residual energy of the optical path. When an alignment anomaly or dark slot instability tag is hit, the infrared touchscreen controller marks the decoding residual energy as low confidence and writes it into the cause code. The cause code is bound to the quality tag area. After completing the matching decoding, the infrared touchscreen controller assembles the decoding evidence package. The decoded evidence package is a structured evidence object, containing at least an optical path number index, a decoded effective transmission table, a decoded residual energy table, a baseline estimation summary, a quality marker area, and a version context field. The decoded effective transmission table is organized by optical path number, recording the decoded effective transmission of each optical path. The decoded residual energy table is also organized by optical path number, recording the decoded residual energy of each optical path. The baseline estimation summary records the dark time slot baseline estimate and baseline backoff flag for each optical path. The quality marker area records summaries of dark time slot instability flags, alignment anomaly flags, saturation inheritance flags, and missing measurement flags. The version context field records the frame number, codeword version number, codeword index, signature time slot sequence, and dark time slot position, thus enabling subsequent evidence gating and anomaly classification to be carried out under the same reference caliber. In the engineering embodiment, the infrared touch screen is applied to the upper touch panel of the subway gate. The gate area is subject to superimposed interference from the high-brightness lighting and the infrared transmitters of passengers' mobile phones. In this step, the environmental items are estimated based on the dark time slot sampling segments in each frame and baseline subtraction is performed. Then, the matching and decoding are performed according to the lighting state sequence corresponding to the code word version number, so that the decoded evidence packet still maintains the comparability within the same frame under the condition of environmental item fluctuation. At the same time, the instability of the dark time slot and the alignment anomaly are explicitly written through the quality mark area, so that the subsequent gating link can perform downweighting or bypass processing according to the mark.The decoded evidence package is recorded as the output field name "decoded evidence package" at the end of this step and is called by S310 as an input object. S310 performs baseline offset calculation based on the decoded evidence package to obtain the amplitude evidence package. At the same time, the version context field in the decoded evidence package and the quality mark area support the generation of the control output package of S300 and the generation of the verification rescan strategy table of S400 in the cross-main step connection, so that the code word version switching item and the dark time slot ratio adjustment item of the rescan frame have a traceable evidence source.

[0028] Summary of the technical effects of this step: This step separates the environmental terms from the received sequence through dark time slot baseline subtraction, and outputs the effective transmission amount and the residual energy of decoding through matching decoding. Alignment anomalies and dark time slot instabilities are then explicitly included in the packet through the quality marking area, thereby extracting and structuring the key evidence required for subsequent gating evidence generation from the original sampling sequence.

[0029] Step S300 includes at least steps S310-S330: S310. Obtain the decoded evidence packet, perform baseline offset calculation processing, and obtain the amplitude evidence packet; In this embodiment, the main body executing this step is an infrared touchscreen controller. The infrared touchscreen controller is connected to the receiving sampling circuit, the configuration storage area, and the log storage area, and is used to perform continuous calculations and state solidification on the evidence objects from the previous steps at the scan frame level. Specifically, the infrared touchscreen controller reads the frame number, codeword version number, codeword index, decoding effective transmission table, decoding residual energy table, baseline estimation summary, and quality marker area from the S230 output field name "Decoding Evidence Packet". The decoding effective transmission table is defined as a set of numerical records organized by optical path number, used to characterize the decoding amount of each optical path in the current scan frame; the decoding residual energy table is defined as a set of residual information organized by optical path number, used to characterize the residual aggregation amount of each optical path in the current scan frame after matching decoding; the baseline estimation summary is defined as an archived set of dark slot baseline estimates and baseline backoff markers, used to characterize the environmental item estimation and backoff source in the current scan frame; the quality marker area is defined as a set of alignment anomaly markers, dark slot instability markers, saturation inheritance marker summaries, and missing measurement marker summaries, used to characterize the availability status of the evidence source during the acquisition and decoding process. After reading the decoded evidence packet, the infrared touchscreen controller first performs an evidence header consistency check. The check items include frame number continuity, codeword version number consistency with the version of the locally effective scanning configuration packet, and codeword index resolvability in the local codeword index table. When the consistency check fails, the infrared touchscreen controller marks the frame as an evidence abnormal frame and writes it to the operation log. At the same time, it triggers the degradation path. The degradation path marks the amplitude evidence packet output in this step as low confidence and carries the abnormal reason code, and still outputs it to subsequent steps, thereby maintaining the continuous operation of the closed loop and the uninterrupted auditable record.

[0030] Further, the baseline offset calculation process is defined as calculating the optical path-level baseline drift after performing time-series alignment on multiple consecutive frames of evidence, and then merging the baseline drift with the current frame's decoded data to form amplitude evidence. The baseline offset is defined as the offset of the systematic change in the decoded data reference of adjacent frames on the same optical path along the time axis. Its sources include receive link gain drift, slow changes in ambient light, transmittance attenuation, and transmittance changes caused by screen contamination. The infrared touchscreen controller maintains a baseline tracking status table within this step. This table is a set of status records organized by optical path number, containing at least a snapshot of the previous frame's decoded effective transmittance, a snapshot of the previous frame's baseline offset, a valid sample count, an abnormal frame count, and an update timestamp. The baseline tracking status table is written to the configuration storage area or the running memory area, and updates are triggered by a scan frame. The scan frame trigger condition is the completion of decoded received sequence packets and the formation of decoded evidence packets. When the infrared touch screen controller performs baseline offset calculation, it first performs optical path alignment. Optical path alignment refers to matching the decoded effective transmittance table of the current frame with the previous frame snapshot in the baseline tracking status table according to the optical path number index. When an optical path is missing or a new optical path number is added, the infrared touch screen controller updates the optical path set according to the version summary of the optical path topology mapping table and writes the update record to the operation log. The optical path topology mapping table comes from the output field name "Optical Path Topology Mapping Table" of S110. In this step, it is used as an external reference to verify whether the optical path number set is consistent with the current hardware topology.

[0031] After completing the optical path alignment, the infrared touchscreen controller performs sample admission judgment. Sample admission judgment refers to determining whether the current frame decoding amount of each optical path enters the baseline offset calculation channel based on the quality mark area. Specifically, when the alignment anomaly mark is hit, the effective decoding transmittance of the corresponding optical path in this frame is marked as not participating in the update; when the dark slot instability mark is hit, the effective decoding transmittance of the corresponding optical path in this frame enters the weighted channel, which reduces the update contribution of the optical path in this frame through the weight table; when the saturation inheritance mark summary is hit, the effective decoding transmittance of the corresponding optical path in this frame enters the elimination or weighted channel, which is selected by the machine's operation strategy; when the missing test mark summary is hit, the effective decoding transmittance of the corresponding optical path in this frame enters the default channel, which is filled with the snapshot of the previous frame and written with the default reason code. The weight table is loaded by the infrared touch screen controller during the device initialization phase and can be dynamically adjusted after the verification rescan results are written back. The weight table is recorded in the configuration storage area and has a version number. The version number is managed independently from the code word version number and is used to trace the access and demotion criteria used in this step during operation and maintenance audits.

[0032] The infrared touchscreen controller performs baseline offset calculation, which includes at least offset candidate generation, offset stability determination, and offset inclusion and assembly. Offset candidate generation involves differentially generating offset candidates for optical paths that have passed the admission criteria by comparing the current frame's decoded effective transmittance with the snapshot of the previous frame's decoded effective transmittance, and then combining this with the decoded residual energy table to generate an offset confidence summary. The offset confidence summary is defined as a confidence level field obtained based on the residual aggregation and anomaly marker status, used for evidence confidence reference during subsequent gating evidence generation. Offset stability determination involves performing a windowed consistency check on multiple consecutive frame offset candidates. The windowed consistency check uses a fixed-length time window cache, maintained by the infrared touchscreen controller in its runtime memory. Cache entries include frame number, optical path number, offset candidate, and confidence level fields. When an offset candidate frequently flips or experiences sudden jumps within the time window, the infrared touchscreen controller marks the optical path as offset unstable and writes an offset instability cause code, which is then entered into the subsequent quality marker extension field. The offset-in-packaging assignment method assembles the current frame's decoded effective transmittance, baseline offset, offset confidence summary, offset instability cause code, and residual aggregation associated with the optical path into an optical path-level amplitude evidence entry, and organizes them into an amplitude evidence packet according to the optical path number.

[0033] Understandably, the amplitude evidence package is defined as a structured object carrying optical path-level amplitude-related evidence, containing at least a frame number, codeword version number, codeword index, optical path number index, amplitude evidence item set, and quality marker extension field. The amplitude evidence item set includes decoded effective transmittance, baseline offset, offset confidence summary, and residual aggregation. The quality marker extension field includes offset instability cause code, sample admission judgment result summary, and default padding summary. At the end of this step, the infrared touchscreen controller records the amplitude evidence package as the output field name "Amplitude Evidence Package" and uses it as the input object for subsequent S320, allowing S320 to extract the effective transmittance table from the amplitude evidence package and generate a gated evidence package. Simultaneously, the infrared touchscreen controller writes the updated baseline tracking status table to the configuration storage area and writes an update timestamp, for cross-main step write-back association when generating the baseline update record in subsequent S430.

[0034] S320. Extract the effective transmission scale and optical path topology mapping table from the amplitude evidence package, perform spatial morphology evidence generation and temporal consistency evidence generation, and generate a gated evidence package. In this embodiment, the main body executing this step is an infrared touchscreen controller or an evidence generation module integrated therein. The evidence generation module is a software functional unit that runs on the processor core of the touch control chip and is responsible for fusing amplitude evidence and topological information to form a gated evidence object. Specifically, the infrared touchscreen controller obtains the output field name "amplitude evidence package" from S310 and reads the optical path number index and amplitude evidence item set therein to extract the effective transmission table. In this step, the effective transmission table is defined as a set of decoded effective transmission records organized by optical path number, which can be directly reconstructed from the decoded effective transmission field in the amplitude evidence item set. At the same time, the infrared touchscreen controller obtains the output field name "optical path topology mapping table" from S110. The optical path topology mapping table is defined as a mapping relationship table between optical path number and transmission position, reception position, and border geometric identifier. The border geometric identifier is defined as a set of identifiers used to describe the geometric layout of the screen border, including border edge number, border segment number, and geometric association position information of the corresponding optical path, used to map optical path level evidence to screen coordinate semantics.

[0035] Furthermore, spatial morphological evidence generation is defined as mapping the effective transmittance scale to the screen space according to the optical path topology mapping table within the same scan frame, forming morphological evidence objects with neighborhood relationships; temporal consistency evidence generation is defined as merging the temporal continuity of evidence at the same spatial location or within the same neighborhood across multiple scan frames, forming evidence objects with temporal stability descriptions. When generating spatial morphological evidence, the infrared touch screen controller first performs evidence spatial mapping processing, which refers to mapping the decoded effective transmittance and baseline offset of each optical path to one or more spatial units according to the optical path topology mapping table; where the spatial unit is defined in this step as a spatial partitioning unit constrained by the geometric identifier of the border, and the spatial partitioning unit can correspond to the screen grid unit or the screen edge strip unit, specifically selected by the resolution granularity defined by the frame structure part of the scan configuration package. The infrared touch screen controller generates a spatial index relationship based on the optical path topology mapping table. The spatial index relationship is a mapping set from optical path number to spatial unit index. This spatial index relationship is written into the topology reference field of the gated evidence package. The topology reference field contains a version summary of the optical path topology mapping table, which is used to restore the spatial mapping caliber during subsequent audit playback.

[0036] Following the evidence space mapping process, the infrared touchscreen controller performs neighborhood aggregation processing. Neighborhood aggregation processing refers to aggregating multiple optical path evidence entries belonging to each spatial cell and generating spatial morphology evidence entries. Spatial morphology evidence entries include at least a spatial cell index, an aggregated effective transmittance summary, an aggregated baseline offset summary, an aggregated residual summary, and an aggregated credibility summary. The aggregated effective transmittance summary is defined as the aggregated record of effective transmittance within the spatial cell; the aggregated baseline offset summary is defined as the aggregated record of baseline offset within the spatial cell; the aggregated residual summary is defined as the aggregated record of residual aggregates within the spatial cell; and the aggregated credibility summary is defined as a credibility level field synthesized from the offset credibility summary of the amplitude evidence packet and the quality marker extension field. During the generation of spatial morphological evidence entries, the infrared touchscreen controller simultaneously generates spatial morphological boundary records. These records are defined as objects that record the boundaries of morphological changes between spatial units, derived from the difference determination of the aggregated effective transmittance summaries of adjacent spatial units. The difference determination employs a combination of threshold and neighborhood consistency rules. The threshold is derived from the local gating parameter version record, which is stored in the configuration storage area and includes a version number. The neighborhood consistency rules are derived from the adjacency description of the border geometric identifiers, thereby ensuring that the neighborhood caliber of the edge region and the center region remains consistent.

[0037] The infrared touchscreen controller performs time-consistency evidence generation. Specifically, the infrared touchscreen controller maintains a time-consistency cache, which is a cache of historical evidence organized by spatial unit index. Each cache entry contains at least the aggregated effective transmittance summary, aggregated baseline offset summary, aggregated residual summary, and frame number sequence of the most recent multiple frames. The update trigger condition for the time-consistency cache is the completion of spatial morphology evidence entry generation in this step, and the update frequency is consistent with the scanning frame frequency. During time-consistency evidence generation, the infrared touchscreen controller retrieves the historical evidence sequence from the time-consistency cache for each spatial unit index and performs time window alignment and consistency discrimination processing. Time window alignment refers to aligning historical entries by frame number sequence and removing missing or abnormal frame entries. Consistency discrimination processing refers to classifying the change trend of the aggregated effective transmittance summary within the time window and generating a time-consistency marker by combining the aggregated residual summary and aggregated confidence summary. The time-consistency marker is defined as a marker field used to describe the stability, jitter, abrupt changes, or intermittent nature of the evidence in the time dimension. The time-consistency marker carries a cause code, which is derived from the abnormal frame count, the offset instability cause code, and the quality marker extension field. After completing the consistency determination, the infrared touch screen controller generates time consistency evidence entries. The time consistency evidence entries include spatial cell index, time consistency mark, time window summary and historical coverage summary. The time window summary is defined as a summary of the frame number range participating in the consistency determination, and the historical coverage summary is defined as a summary of the proportion of the number of valid entries within the time window, which is used for credibility reference in subsequent gating.

[0038] Understandably, a gated evidence package is defined as a structured object carrying spatial morphology evidence and temporal consistency evidence, containing at least a frame number, codeword version number, topology reference field, set of spatial morphology evidence entries, set of temporal consistency evidence entries, spatial morphology boundary record, and a summary of the gated parameter version record. At the end of this step, the infrared touchscreen controller records the gated evidence package as the output field name "Gated Evidence Package" and uses it as the input object for evidence gating and anomaly classification processing in S330. Simultaneously, this step retains the version summary of the optical path topology mapping table and the summary of the gated parameter version record in the gated evidence package, ensuring that the subsequent verification rescan strategy table generation in S410 can reference the same topology and parameter standards, forming a traceable connection across main steps.

[0039] S330. Perform evidence gating and anomaly classification processing on the gated evidence package to generate a control output package; In this embodiment, the main entity performing this step is an infrared touchscreen controller or a control decision module integrated therewith. The control decision module is a software functional unit or firmware functional unit used to convert gated evidence into an output object executable by the control side. Specifically, the infrared touchscreen controller obtains the output field name "Gated Evidence Package" from S320 and reads the set of spatial morphological evidence items, the set of temporal consistency evidence items, the spatial morphological boundary record, and the summary of the gated parameter version record. The evidence gate is defined as the process of performing admission determination, confidence aggregation, and output filtering on the spatial morphological evidence items and the temporal consistency evidence items according to the gated parameter version record. The anomaly classification is defined as the process of classifying the evidence set that has passed the gate according to the anomaly category label and generating the control side output field. The gating parameter version record corresponding to the gating parameter version record summary is stored in the configuration storage area. The gating parameter version record includes at least a threshold set, a rule set, and an arbitration set. The threshold set is defined as the aggregated effective transmittance summary threshold, aggregated residual summary threshold, and time consistency mark threshold of spatial morphology evidence items. The rule set is defined as the rules for using different judgment criteria for different spatial unit types. The spatial unit type can be derived from the boundary geometry identifier and includes edge spatial units and center spatial units. The arbitration set is defined as the arbitration priority and merging rules when multiple pieces of evidence conflict.

[0040] Furthermore, the infrared touchscreen controller first performs evidence admission determination during the evidence gating phase. This determination references both spatial morphology evidence entries and temporal consistency evidence entries for each spatial cell index. The determination criteria include whether the spatial morphology confidence summary meets the admission threshold, whether the temporal consistency marker is within the allowed set, and whether the historical coverage summary meets the minimum coverage threshold. When admission is denied, the infrared touchscreen controller writes the spatial cell index into a rejection record along with a rejection reason code. This reason code is entered into the diagnostic field of the control output package and used to locate the rescan trigger source when generating the subsequent confirmatory rescan strategy table. After completing the evidence admission determination, the infrared touchscreen controller performs confidence aggregation processing. This process involves combining the aggregated effective transmittance summary, aggregated baseline offset summary, aggregated residual summary, and temporal consistency marker into a gated confidence entry for the admitted spatial cell indexes. A gated confidence entry is defined as an entry object carrying a spatial cell index, a confidence level field, an evidence summary field, and a reason code field. The reason code field records the main evidence source that triggered the confidence level, and the evidence summary field records the index of the adopted spatial morphology boundary record fragment. The infrared touch screen controller also performs conflict arbitration during the confidence aggregation process. Conflict arbitration refers to merging or suppressing the gated confidence entries according to the arbitration set when the gated confidence entries of adjacent spatial units have mutually exclusive cause codes or boundary records in opposite directions. The arbitration process is written to the operation log, which records the frame number, spatial unit index pair, arbitration result and the version number of the arbitration rule used, thereby meeting the requirements for auditable operation.

[0041] The infrared touchscreen controller enters the anomaly classification process. This process begins with loading the anomaly category definition. Loading the anomaly category definition involves reading the anomaly category label table from the configuration storage area and loading it into the runtime memory area. The anomaly category label table has a version number and is managed independently from the gating parameter version record. The anomaly category label table defines the correspondence between anomaly category labels and the classification rule set. The classification rule set references the cause code field, spatial unit type, and time consistency flag of the gating confidence entry. The infrared touchscreen controller performs classification rule matching on each gating confidence entry based on the anomaly category label table. The classification rule matching process proceeds in priority order. When multiple rules match simultaneously, the priority field of the anomaly category label table is used for adjudication, and the adjudication result is written to the classification record. The classification record is defined as a record object containing the frame number, spatial unit index, anomaly category label, confidence level field, and adjudication basis summary. The adjudication basis summary contains the referenced cause code field fragment and time consistency flag fragment, which are reused in the subsequent generation of the verification rescan strategy table.

[0042] After anomaly classification is completed, the infrared touchscreen controller generates a control output package. The control output package is defined as a structured object output to subsequent control links, containing at least a frame number, codeword version number, gating parameter version record summary, control instruction set, diagnostic fields, and backtracking fields. The control instruction set is defined as a set of instruction entries organized by spatial cell index, with each instruction entry containing at least a spatial cell index, anomaly category label, confidence level field, and action suggestion field. The action suggestion field is defined as a description field of actions that can be executed or selected by the control side, including a reference to the evidence summary required for generating the confirmatory rescan strategy table, a summary of the suggested rescan spatial cell range, and candidate flags for suggested codeword version switching items or dark slot proportion adjustment items. The diagnostic fields contain a set of rejection records and rejection reason codes, an arbitration process summary, and a classification record summary. The backtracking fields contain topology reference field fragments and spatial morphological boundary record fragment indexes, used to reconstruct the evidence-to-control output conversion link during subsequent audit playback. In the engineering embodiment, the infrared touchscreen is deployed on the glass panel of the self-service ticketing machine. The panel is exposed to outdoor sunlight and rain / fog pollution for a long time. After the infrared touchscreen controller generates the gated evidence package in each frame, it automatically triggers the execution of evidence gating and anomaly classification in this step. When multiple consecutive frames show an intermittent pattern of time consistency markers on the same edge spatial unit index, accompanied by the stable existence of spatial morphological boundary records, the action suggestion field of the control output package will provide a summary of the suggested rescan spatial unit range and carry a codeword version number reference, which can then be called by the verification rescan strategy table generation process of S410. The control output package is recorded as the output field name "control output package" at the end of this step and is used as the input object of S410 for the verification rescan strategy table generation process to read. At the same time, the action suggestion field, diagnostic field, and backtracking field in the control output package provide a referenceable control caliber for the verification rescan execution and rescan through marker generation of S420 in the cross-main step connection, and provide a traceable basis link for the baseline update record generation and optical path health score table generation of S430.

[0043] Summary of the technical effects of this step: This step integrates spatial morphological evidence and temporal consistency evidence into the gating caliber and forms a traceable anomaly classification record. The control output packet carries both rescan candidates and arbitration diagnostic information, enabling subsequent confirmatory rescan links to perform strategy generation and write-back updates based on the same frame-level evidence context.

[0044] Step S400 includes at least steps S410-S430: S410. Obtain the control output packet, perform verification rescan strategy table generation processing, and obtain the verification rescan strategy table. In this embodiment, the main entity executing this step is an infrared touchscreen controller. The infrared touchscreen controller includes a control decision module, a rescan orchestration module, a parameter management unit, and a log storage area. The rescan orchestration module converts the executable information output from the preceding control link into a rescan orchestration object that can be stored. The parameter management unit maintains the relationship between codeword version numbers, gating parameter version records, and scan configuration packages. The log storage area records the entire process of policy generation, policy execution, and write-back updates. Specifically, the infrared touchscreen controller reads the frame number, codeword version number, gating parameter version record summary, control instruction set, diagnostic field, and backtracking field from the S330 output field name "Control Output Package," and uses these as the input source for the verification rescan policy table generation process. The control instruction set carries spatial cell indexes, anomaly category labels, confidence level fields, and action suggestion fields. The diagnostic field carries rejection reason codes, arbitration process summaries, and classification record summaries. The backtracking field carries topology reference field fragments and spatial morphological boundary record fragment indexes, enabling policy generation to complete closed-loop connections within the same frame-level context. Furthermore, to meet the automation requirements and triggering conditions of the closed-loop iteration, the infrared touchscreen controller incorporates a rescan trigger determiner within this step. This determiner makes trigger decisions based on the diagnostic fields and control command set in the control output package. The trigger determination includes at least three operating modes: continuous frame triggering, single-frame strong triggering, and periodic calibration triggering. Continuous frame triggering occurs when the anomaly category label of the same spatial cell index or adjacent spatial cell indices remains consistent across multiple consecutive frames, and the confidence level field is within a preset set. Single-frame strong triggering occurs when a specific rejection reason code or arbitration conflict summary appears within a single frame. Periodic calibration triggering occurs according to the equipment maintenance cycle or cumulative runtime count. The preset set, equipment maintenance cycle, and cumulative runtime count are all maintained by the parameter management unit and are independently versioned outside of the gating parameter version record. The registration information is written to the log storage area with an effective timestamp, thus maintaining traceability and auditability during policy evolution.

[0045] Upon triggering, the infrared touchscreen controller performs a verification rescan strategy table generation process. Understandably, the verification rescan strategy table is defined as an orchestration object describing one or more rescan tasks. It includes at least a strategy number, an associated frame number range, an associated spatial unit range summary, a codeword version switching item, a dark slot percentage adjustment item, a rescan frame structure parameter group, a rescan admission rule group, and a rescan stop condition group. The strategy number uniquely identifies a strategy and is referenced for subsequent write-back updates. The associated frame number range records the evidence time window that triggered the strategy. The associated spatial unit range summary records the spatial range and priority criteria required for rescanning. The rescan frame structure parameter group records the frame structure assembly criteria during the rescan process and establishes a reference relationship with the frame structure fields in the scan configuration package. The codeword version switching item is defined as the set of candidate codeword version numbers and their switching conditions for this rescan. The candidate codeword version number set comes from the codeword version number registration records already registered in the parameter management unit, and the switching condition set comes from the combination of the abnormal category label and rejection reason code of the control output packet. The dark time slot proportion adjustment item is defined as the set of adjustment parameters for the proportion of dark time slot position and dark time slot quantity for this rescan and their effective boundary set. The candidate range of dark time slot position and dark time slot quantity proportion is constrained by the frame structure parameters of the scan configuration packet, and the effective boundary set is used to limit the available range of the adjustment item under different spatial unit types. The spatial unit type can be derived from the border geometry identifier. The rescan admission rule group is defined as the set of rules for admission judgment of the sampling quality of the received sequence packet, the stability of the dark time slot baseline, and the amount of decoding residual aggregation during the rescan process. The rescan stop condition group is defined as the set of conditions for stopping when the tag generation condition is met, the maximum number of rescans is reached, or the backoff condition is triggered. The maximum number of rescans and the backoff condition are maintained by the parameter management unit and registered in association with the strategy number.

[0046] In practice, the infrared touchscreen controller first extracts the action suggestion field and the backtracking field from the control output packet. The action suggestion field carries a summary of the suggested rescan spatial cell range and candidate flags for the suggested codeword version switching item or dark slot ratio adjustment item. The backtracking field carries a fragment of the topology reference field and an index of the spatial morphology boundary record fragment. Based on this, the infrared touchscreen controller performs a rescan range construction process, which refers to the process of converting the spatial cell range summary into a set or subset of optical path numbers. The conversion is based on the optical path topology mapping table and its version summary. The optical path topology mapping table comes from the S110 output field name "Optical Path Topology Mapping Table" and is used to map the spatial cell index back to the optical path number index, so that the rescan can be performed at the optical path level. Furthermore, the infrared touchscreen controller performs strategy parameter assembly processing. This process involves assembling a rescan frame structure parameter group based on the frame structure parameters of the existing scan configuration package. The scan configuration package originates from the S130 output field name "Scan Configuration Package" and includes a codeword index table and scan frame structure parameters. The codeword index table is used to associate codeword indices with codeword set registration records, and the scan frame structure parameters are used to constrain the structural aperture of the transmit illumination time slot sequence generation and receive time slot sampling. The strategy parameter assembly processing includes at least codeword version switching item assembly and dark time slot ratio adjustment item assembly. Codeword version switching item assembly involves reading the available codeword version number registration record from the parameter management unit, selecting candidate versions based on the anomaly category label, establishing a reference relationship between the candidate versions and the strategy number and the associated frame number range, and writing them to the log storage area. Dark time slot ratio adjustment item assembly involves selecting candidate adjustment parameters for the dark time slot position and dark time slot quantity ratio based on the backtracking summary of the rejection reason code and the decoding residual aggregation amount, and trimming them to the executable range in combination with the boundary constraints of the frame structure parameters, while recording the trimming reason and the effective boundary set.

[0047] To distinguish between the minimum set of core parameters and optional extended functions, in this embodiment, the minimum set of the verification rescan strategy table includes at least the strategy number, the associated spatial unit range summary, the codeword version switching item, and the dark slot ratio adjustment item. This minimum set can drive the subsequent verification rescan execution and pass tag generation. On this basis, the rescan admission rule group, the rescan stop condition group, and the rescan frame structure parameter group can be introduced as preferred extended items. The preferred extended items are used to improve the stability and auditability of strategy execution in complex scenarios, but can be trimmed in resource-constrained controller implementations. In the engineering embodiment, the infrared touchscreen is installed on the glass panel of the outdoor self-service terminal. The panel is exposed to strong ambient light and rain / fog for a long time. The control output packet shows a rejection reason code at the edge spatial cell index and carries a backtracking field indicating the fluctuation of the spatial morphology boundary record of the edge area. The infrared touchscreen controller triggers this step in continuous frame trigger mode. The rescan orchestration module generates a verification rescan strategy table with associated edge spatial cell range summary, and configures the codeword version switching item to allow switching to adjacent registered versions while maintaining the current codeword version number. The dark time slot ratio adjustment item is configured to add dark time slot positions and adjust the dark time slot quantity ratio in the edge spatial cell type. The generated verification rescan strategy table is recorded as the output field name "verification rescan strategy table" and serves as the input object for subsequent S420 for verification rescan execution and verification rescan generation through tag generation. At the same time, the codeword version switching item and dark time slot ratio adjustment item in this strategy table also provide a write-back strategy context reference for the subsequent baseline update record generation and optical path health score table generation in S430.

[0048] S420. Extract the codeword version switching item and the dark time slot ratio adjustment item from the verification rescan strategy table, perform verification rescan and verification rescan through tag generation, and generate a rescan result package. In this embodiment, the main body executing this step is the infrared touchscreen controller. The infrared touchscreen controller is connected to the transmit drive circuit and the receive sampling circuit through a rescan actuator. The rescan actuator is used to rescan the local scan link and collect confirmatory evidence without changing the overall closed-loop structure. Specifically, the infrared touchscreen controller reads the strategy number, associated spatial unit range summary, codeword version switching item, dark time slot ratio adjustment item, and rescan frame structure parameter set from the output field name "Confirmatory Rescan Strategy Table" of S410, and uses them as the input source for the confirmatory rescan execution. Among them, the codeword version switching item is used to provide the executable codeword version number candidate set and switching condition set; the dark time slot ratio adjustment item is used to provide the adjustment parameter set and effective boundary set of the dark time slot position and dark time slot quantity ratio; and the rescan frame structure parameter set is used to constrain the time slot structure and sampling structure aperture of this rescan. Furthermore, this step is executed using an event-driven approach at the runtime level. The trigger condition comes from the rescan trigger determiner output of the S410 and carries a strategy number. After receiving the trigger event, the infrared touch screen controller writes the strategy number into the rescan task queue. The rescan task queue is managed by the parameter management unit and can be scheduled serially or in parallel. When the device has strong computing power and real-time constraints, serial scheduling is preferred. Serial scheduling means inserting a rescan frame between the current main scan frames. When the device supports dual-channel sampling, parallel scheduling can be selected. Parallel scheduling means opening a separate rescan sampling channel without changing the main scan frame period.

[0049] During the verification rescan execution phase, the infrared touchscreen controller first performs strategy parsing and constraint pruning. Strategy parsing involves extracting codeword version switching items and dark time slot ratio adjustment items from the verification rescan strategy table and constructing the execution parameter set for this rescan. The execution parameter set includes at least the selected codeword version number, the selected codeword index subset, the dark time slot position adjustment table, and the dark time slot quantity ratio parameter. Constraint pruning involves verifying and pruning the consistency of the execution parameter set with the frame structure parameters of the currently effective scan configuration package. Pruning is based on the total number of allowed time slots in the scan frame structure parameters, the allowed set of dark time slot positions, and the sampling window length boundary of the receiving sampling circuit. When incompatibility occurs, the infrared touchscreen controller records the pruning item and the reason for pruning and writes it to the log storage area. The pruned execution parameter set continues to execute, thus maintaining the rescan's viability. Furthermore, the infrared touchscreen controller performs codeword version switching processing. This processing refers to selecting whether to switch the codeword version number at runtime based on a set of switching conditions and synchronously updating the codeword index table reference. The codeword index table reference originates from the codeword index table field in the scan configuration package. During switching, the codeword version number activation record in the parameter management unit must be updated synchronously. This activation record includes at least the policy number, the version number before switching, the version number after switching, and the switching timestamp, used for auditable association in subsequent write-back update packages. For the minimum implementation set, codeword version switching can support selecting a fixed version number from the candidate set and keeping it unchanged throughout the policy number's lifecycle. As a preferred extension, it can support dynamically switching the version number during rescanning based on the readback digest of the decoded residual aggregation, and recording the decision basis digest for each switch.

[0050] After completing the codeword version switching process, the infrared touchscreen controller performs a dark time slot ratio adjustment process. This process involves generating an adjustment caliber for the transmit illumination time slot sequence and receive sampling window used in this rescan based on the dark time slot position adjustment table and the dark time slot quantity ratio parameter. Specifically, the infrared touchscreen controller writes the dark time slot position adjustment table into the time slot structure field of the rescan frame structure parameter group and writes the dark time slot quantity ratio parameter into the baseline stability judgment parameter field of the rescan admission rule group. Both the rescan frame structure parameter group and the rescan admission rule group carry a version summary and are associated with the policy number for easy auditing. Subsequently, the infrared touchscreen controller performs a rescan frame generation and sampling execution process. This process involves generating the transmit illumination time slot sequence and sampling the receive time slot on the optical path number set corresponding to the associated spatial unit range summary. Understandably, the generation of the transmit illumination time slot sequence and the sampling of the receive time slot correspond to the processing paths of S210 and S220 in the processing link. However, this step limits the processing scope to the set of optical path numbers specified in the strategy table, and uses the codeword version number and dark time slot structure assembled in the strategy table to form a verification sampling sequence. When performing sampling, the infrared touch screen controller records sampling metadata for each rescan frame. The sampling metadata includes at least the strategy number, rescan frame number, selected codeword version number, dark time slot position summary, dark time slot quantity ratio parameter, and sampling window summary, and writes it to the log storage area. When the receiving sampling circuit detects sampling saturation, missing measurement, or alignment abnormality, the infrared touch screen controller writes the abnormality into the sampling metadata and uses it as a rejection basis when generating tags later.

[0051] After sampling, the infrared touchscreen controller performs confirmatory rescan decoding and evidence comparison processing. Confirmatory rescan decoding involves performing dark slot baseline subtraction and matching decoding on the rescanned sample sequence to generate a rescan decoding summary. This summary includes at least a rescan effective transmittance summary, a rescan residual aggregation summary, and a baseline stability summary. Evidence comparison processing involves comparing the rescan decoding summary with the spatial morphological boundary record fragment index indicated by the backtracking field of the control output packet of the triggering strategy, and comparing it with the threshold set recorded in the current gating parameter version, thus providing input for tag generation. Further, the infrared touchscreen controller performs confirmatory rescan tag generation processing. Understandably, a confirmatory rescan is defined by a set of flags indicating whether the current rescan meets the pass criteria. This set includes at least a pass flag value, a pass basis summary, a set of rejection reason codes, and a suggested write-back action summary. The pass flag value characterizes the rescan conclusion; the pass basis summary records the rescan decoding summary fragments and threshold reference summaries used in the decision-making process; the rejection reason code set records rejection criteria such as sampling anomalies, baseline instability, or residual anomalies; and the suggested write-back action summary indicates the object types and field ranges that should be written back in subsequent write-back update packages. The pass flag generation process includes at least three operational stages: admission check, condition adjudication, and flag solidification. The admission check examines the sampling metadata and baseline stability summary; the condition adjudication makes a decision based on the evidence comparison results and the threshold set; and the flag solidification writes the pass flag into the rescan result object and registers it with the policy number.

[0052] This step generates a rescan result package on the output side. The rescan result package is defined as a structured object carrying the rescan execution process and pass markers, containing at least the strategy number, rescan frame number range, selected codeword version number, dark time slot location summary, dark time slot quantity percentage parameter, rescan decoding summary, verification rescan pass marker, sampling metadata summary, and execution log summary. The execution log summary records pruning items and pruning reasons, codeword version switching records, and abnormal sampling records. To ensure closed-loop connection, this step records the rescan result package as the output field name "Rescan Result Package" and uses it as the input object for baseline update record generation and optical path health score table generation in S430. Simultaneously, the selected codeword version number and dark time slot quantity percentage parameter in the rescan result package are also used for versioned write-back of the parameter management unit in subsequent write-back update packages, thereby establishing a traceable cross-main-step association with the disable list in S110, the codeword version number registration in S120, and the baseline tracking status table in S310.

[0053] S430. Generate baseline update records and optical path health score tables for the rescan result package, and generate write-back update packages. In this embodiment, the main entity executing this step is the infrared touchscreen controller. The infrared touchscreen controller is connected to the configuration storage area, log storage area, and operating parameter area via a write-back manager. The write-back manager is used to convert the conclusions of the verification rescan into writeable parameter updates, status updates, and health archive objects, and to complete auditable update implementation under the version management strategy. Specifically, the infrared touchscreen controller reads the strategy number, rescan decoding summary, verification rescan pass flag, selected codeword version number, dark time slot position summary, dark time slot quantity ratio parameter, and sampling metadata summary from the S420 output field name "Rescan Result Package," and uses these as the input source for this step. Further, this step first performs baseline update record generation. Understandably, a baseline update record is defined as a traceable record object for updating the dark slot baseline, baseline offset, and baseline tracking status. It includes at least a strategy number, a summary of the associated optical path number set, a baseline update pre-update summary, a baseline update post-update summary, an update condition summary, an update timestamp, and a backtracking point marker. The baseline update pre-update summary can reference the previous frame snapshot summary of the baseline tracking status table maintained within S310. The baseline update post-update summary is derived from the fusion result of the baseline stability summary and the rescan effective transmittance summary in the rescan decoding summary. The update condition summary references the pass basis summary or rejection reason code set in the verification rescan pass marker. The backtracking point marker is used to perform a backtracking operation when anomalies accumulate subsequently.

[0054] When generating baseline update records, the infrared touchscreen controller first performs a write-back admission decision. The write-back admission decision is based on a verification rescan using markers. If the pass marker value is in the allowed set and the rejection reason code set does not contain a preset rejection item, the system proceeds to the baseline update path. If the pass marker value is not in the allowed set or the rejection reason code set matches a preset rejection item, the system proceeds to the archive-only, non-update path. Both the allowed set and the preset rejection items are maintained by the parameter management unit and registered with version numbers. The registered version numbers are written to the log storage area and associated with the policy number, facilitating audit traceability. After entering the baseline update path, the infrared touchscreen controller performs baseline fusion processing. Baseline fusion processing refers to fusing the baseline stability summary in the rescan decoding summary with the historical baseline snapshots of the corresponding optical path in the baseline tracking status table of S310. The fusion process includes at least three steps: abnormal frame removal, time window alignment, and update amount pruning. Abnormal frame removal refers to removing rescan frame entries marked as saturated, missing, or misaligned in the sampled metadata summary. Time window alignment refers to aligning the rescan frame number range with the main scan frame number range and selecting historical baseline snapshots within the same time window. Update amount pruning refers to limiting the fused update amount within the update boundary registered by the parameter management unit and recording the pruning reason. After completing the baseline fusion processing, the infrared touchscreen controller writes the updated baseline value back to the baseline tracking status table and simultaneously generates a baseline before update summary and a baseline after update summary, which are written to the baseline update record. The baseline tracking status table has been defined in the previous S310 and used for baseline offset calculation processing. This step updates it with a version and records the update timestamp, so that the subsequent main scan link can directly read the updated status when processing the next frame.

[0055] After completing the baseline update record generation, the infrared touchscreen controller generates the optical path health score table. Understandably, the optical path health score table is defined as a table structure object that archives the optical path-level health status. It includes at least the optical path number index, health score value, score basis summary, codeword version number reference, dark time slot structure reference, anomaly accumulation summary, and update timestamp. The health score value characterizes the overall health level of the optical path in its current operating state. The score basis summary records the rescan residual aggregation summary, baseline stability summary, and pass basis summary in the verification rescan pass marker in the rescan decoding summary. The codeword version number reference records the selected codeword version number used in this rescan. The dark time slot structure reference records the dark time slot location summary and dark time slot quantity percentage parameter. The anomaly accumulation summary records the cumulative rejection reason code and arbitration conflict accumulation from the diagnostic field. The optical path health score table generation process includes at least three stages: score input aggregation, score rule adjudication, and score archiving. Score input aggregation involves aggregating the rescan decoding digest and sampling metadata digest from the rescan result package to the optical path number dimension, and performing set verification by combining the optical path number set digest from the optical path topology mapping table. Score rule adjudication involves generating a health score value for each optical path based on the score rule version record maintained by the parameter management unit. The score rule version record includes at least residual anomaly judgment rules, baseline stability judgment rules, and anomaly cumulative decay rules, and the version number is registered in the log storage area. Score archiving involves writing the health score value and the score basis digest into the optical path health score table, and then writing the optical path health score table into the configuration storage area or the running parameter area, recording the action and policy number, and update timestamp association for easy subsequent backtracking of the score generation caliber by policy number. For the minimum implementation set, the optical path health score table may only contain the optical path number index, health score value, and score basis digest. As a preferred extension, anomaly cumulative digests and decay rules can be added to make health status changes in long-term operation scenarios traceable and replayable.

[0056] Further, this step generates a write-back update package. Understandably, a write-back update package is defined as a structured object used to write back the update actions of the baseline update record and the optical path health scoring table to the system's critical configurations and critical states. It contains at least a policy number, a write-back timestamp, a set of write-back objects, a set of write-back fields, a set of version update records, and a write-back verification summary. The set of write-back objects includes at least the write-back object identifier of the baseline tracking status table, the write-back object identifier of the codeword version number effective record of the parameter management unit, and the write-back object identifier of the disabled list. The write-back field set describes the field update range of each write-back object. The set of version update records records the reference relationships between codeword version numbers, gating parameter version records, scoring rule version records, and allowed set version records in this write-back. The write-back verification summary records the verification results of policy number consistency, timestamp monotonicity, and field integrity during the write-back process. In practice, the infrared touchscreen controller performs write-back verification before generating the write-back update package. The write-back verification process involves checking the consistency of the policy number, selected codeword version number, dark slot structure reference, and rollback point marker in the baseline update record, as well as checking the write permission status of the configuration storage area. When the write permission status is not satisfied or the consistency check fails, the infrared touchscreen controller marks the write-back update package as archive-only and writes it to the log storage area. The write-back action will be performed again when the permission is restored or the next policy is triggered, so that the closed-loop mechanism can continue to operate under abnormal conditions and maintain an uninterrupted auditable link.

[0057] In the engineering embodiment, the infrared touchscreen is applied to the self-service ticket vending machine in the subway station. During peak hours, the device is frequently touched and the ambient light changes significantly. During a certain trigger, the rescan result packet generates a pass mark value and provides a suggested write-back action summary. Based on this, the infrared touchscreen controller generates a baseline update record and updates the baseline tracking status table in this step, while simultaneously generating an optical path health score table and archiving it to the operating parameter area. If the health score values ​​of some edge optical paths in the optical path health score table continuously decrease and the cumulative abnormal summary exceeds a preset threshold, the write-back manager can add the relevant optical path number to the candidate set of the disable list and write it to the write-back object set of the write-back update packet. This ensures that when the transmitting unit set, receiving unit set, and disable list are subsequently obtained in S110, the disable list can reference the update content written back in this step, forming a closed-loop association. Finally, this step records the write-back update packet as the output field name "write-back update packet" and writes it back to the configuration storage area and log storage area. Simultaneously, it ensures that the version update record set in the write-back update packet is consistent with the version registration of the parameter management unit, providing continuous reference for the entire link of subsequent scan configuration packet generation, time slot lighting scheduling generation, evidence generation, and re-verification rescan.

[0058] In summary, the technical effects of this step are as follows: Under the constraint of the verification rescan through the marker, this step transforms the rescan conclusion into a traceable baseline update record and optical path health score table. By using the write-back update package, the baseline tracking status, codeword version number effective record, and disabled list candidate update are formed into a consistent versioned write-back link, enabling subsequent scan links to continue running based on the write-back status and retain complete backtracking evidence.

[0059] Example 2: Figure 2 A structural block diagram of a control system for an infrared touchscreen according to an embodiment of the present invention is shown. Figure 2 As shown, the structure may include: The topology and codebook configuration module 01 is used to obtain the transmitter unit set, receiver unit set, and disabled list, perform topology registration, and generate an optical path topology mapping table; it also extracts the optical path index list and border geometric identifiers from the optical path topology mapping table, completes the codeword set registration and codeword version number registration, and generates a signature codebook library; and generates a codeword index table based on the signature codebook library and assembles the scan frame structure parameters to generate a scan configuration package. Specifically, the topology and codebook configuration module receives the transmitter unit set, receiver unit set, and disabled list as input objects, performs topology registration processing on the transmitter unit set and receiver unit set, writes the disabled list as a topology registration constraint into the same registration process, generates an optical path topology mapping table containing transmitter unit set identifiers, receiver unit set identifiers, disabled list entries, and optical path connection relationships, and registers the correspondence between optical path indexes and border geometric identifiers in the optical path topology mapping table. Understandably, after the topology and codebook configuration module extracts the optical path index list and border geometry identifier from the optical path topology mapping table, it performs codeword set registration, establishes a binding relationship between the codeword set and the optical path index list, and simultaneously performs codeword version number registration, establishes a version association between the codeword version number and the codeword set registration result, and generates a signature codebook library; the signature codebook library internally maintains the association records of codeword set, codeword version number, optical path index list and border geometry identifier for subsequent matching and decoding processing. The topology and codebook configuration module then performs codeword index table generation processing on the signature codebook library, mapping the codeword set and codeword version number into a searchable codeword index table, and assembling the scan frame structure parameters. The scan frame structure parameters and codeword index table are combined within the same configuration object to generate a scan configuration package. The scan configuration package is provided as an output product to the lighting scheduling and receiving assembly module and is received by it. The optical path topology mapping table and the signature codebook library remain in a state that can be called later within this module, and maintain a consistent reference relationship with the disabled list and the corresponding storage item of the codeword version number corresponding to the subsequent write-back update package.

[0060] The lighting scheduling and receiving assembly module 02 is used to receive the scanning configuration packet, generate a transmission lighting time slot sequence and form a time slot lighting scheduling table; and extract the signature time slot sequence and dark time slot position from the time slot lighting scheduling table, perform receiving time slot sampling and assemble the receiving sequence packet; specifically, the lighting scheduling and receiving assembly module receives the scanning configuration packet output from the topology and codebook configuration module as the input object, parses the codeword index table and scanning frame structure parameters in the scanning configuration packet, writes the correspondence between the intra-frame time slot organization method in the scanning frame structure parameters and the codeword index in the codeword index table into the transmission lighting time slot sequence generation process, generates the transmission lighting time slot sequence, and associates and registers the transmission lighting time slot sequence with the codeword index in the codeword index table to form a time slot lighting scheduling table. Understandably, the lighting scheduling and receiving assembly module extracts the signed time slot sequence from the time slot lighting scheduling table and registers the time slots not occupied by the signed time slot sequence as dark time slot positions. The dark time slot positions are registered in accordance with the intra-frame time slot boundaries of the scan frame structure parameters. The lighting scheduling and receiving assembly module performs receiving time slot sampling based on the dark time slot positions and assembles the sampling results obtained from the receiving time slot sampling with the index order of the signed time slot sequence to generate a receiving sequence packet. The receiving sequence packet is provided as an output product to the baseline subtraction and matching decoding module and is received by it. The time slot lighting scheduling table is reserved in this module for reuse in subsequent extraction of signed time slot sequences and dark time slot positions, and maintains a time slot reference caliber consistent with the verification rescan execution process of the subsequent verification rescan strategy table.

[0061] The baseline subtraction and matching decoding module 03 is used to receive the received sequence packet, generate a dark time slot baseline based on the dark time slot position, and perform dark time slot baseline subtraction; and perform matching decoding according to the codeword index table and the codeword version number to generate a decoding evidence packet. Specifically, the baseline subtraction and matching decoding module receives the received sequence packet output from the lighting scheduling and receiving assembly module as input, and receives the dark time slot position associated with the received sequence packet as a baseline generation constraint. Based on the dark time slot position, it locates the dark time slot sampling result in the received sequence packet to generate the dark time slot baseline. The dark time slot baseline and the received sequence packet establish a correspondence at the intra-frame time slot index level and are written into the subtraction process as input items for dark time slot baseline subtraction. Understandably, the baseline subtraction and matching decoding module performs dark time slot baseline subtraction on the received sequence packet, subtracts the baseline value of the dark time slot baseline at the corresponding time slot position from the sampling result of the received sequence packet, and forms a subtracted received sequence participating in matching decoding. The subtracted received sequence retains the index order of the signature time slot sequence and maintains the association record with the dark time slot position. The baseline subtraction and matching decoding module then performs matching decoding based on the codeword index table and the codeword version number. The codeword index table and the codeword version number are taken from the registration result corresponding to the scan configuration package and are consistent with the signature codebook library. Candidate codewords are located through the codeword index table and matching decoding is completed under the constraint of the codeword version number. The matching relationship, codeword index, codeword version number and corresponding signature time slot sequence of the matching decoding process are recorded as a decoding evidence package. The decoding evidence package is provided to the evidence generation and gating classification module as an output product and is received by it. The dark time slot baseline is simultaneously registered in the corresponding storage item for subsequent write-back update package write-back to the corresponding storage item of the dark time slot baseline.

[0062] The evidence generation and gating classification module 04 is used to receive the decoded evidence packet, perform baseline offset calculation and generate an amplitude evidence packet; and generate a gating evidence packet based on the amplitude evidence packet, the effective transmission scale and the optical path topology mapping table; and perform evidence gating and anomaly classification on the gating evidence packet to generate a control output packet. Specifically, the evidence generation and gating classification module receives the decoded evidence packet output from the baseline subtraction and matching decoding module as input, performs baseline offset calculation on the decoded evidence record in the decoded evidence packet, and establishes an association between the offset obtained by the baseline offset calculation and the decoded evidence record according to the optical path index and the signature time slot sequence index to generate an amplitude evidence packet. Understandably, the evidence generation and gating classification module extracts amplitude evidence records associated with the optical path index from the amplitude evidence package, and combines the effective transmission scale and the optical path topology mapping table to generate spatial morphology evidence and temporal consistency evidence. It establishes a consistent index relationship between the spatial morphology evidence and the optical path connection relationship in the optical path topology mapping table, and establishes a consistent index relationship between the temporal consistency evidence and the temporal position of the signature time slot sequence, forming a gating evidence package. The gating evidence package simultaneously includes references to the effective transmission scale, the optical path topology mapping table, and the amplitude evidence package, maintaining a traceable evidence link across objects. The evidence generation and gating classification module performs evidence gating and anomaly classification on the gating evidence package, writing the gating judgment result during the evidence gating process and the classification result during the anomaly classification process into the same control output object, generating a control output package. The control output package is provided as an output product to and received by the rescan strategy and execution write-back module, and the anomaly classification result in the control output package maintains a consistent reference caliber with the subsequent generation and processing of the verification rescan strategy table.

[0063] The rescan strategy and execution write-back module 05 is used to receive the control output packet, generate a verification rescan strategy table, execute a verification rescan according to the verification rescan strategy table and generate a rescan result packet, and generate a baseline update record and an optical path health score table for the rescan result packet, forming a write-back update packet and writing it back to the corresponding storage items of the disabled list, the codeword version number and the dark time slot baseline. Specifically, the rescan strategy and execution write-back module receives the control output packet from the evidence generation and gating classification module as input, associates the abnormal classification result in the control output packet with the optical path index, executes the verification rescan strategy table generation process, generates a verification rescan strategy table containing the optical path index, rescan trigger conditions and rescan execution parameters, and registers the codeword version switching item and the dark time slot ratio adjustment item in the verification rescan strategy table. Understandably, the rescan strategy and the write-back module extract codeword version switching items and dark time slot ratio adjustment items from the verification rescan strategy table, establish a reference relationship between the codeword version switching items and the codeword version number registration record, establish a reference relationship between the dark time slot ratio adjustment items and the dark time slot position organization rules, perform verification rescan and generate verification rescan through tag generation processing, and write the rescan sampling results and the verification rescan through tags into the rescan result package during the execution of verification rescan, forming a rescan result package that can be written back. The rescan strategy and write-back module perform baseline update record generation and optical path health score table generation on the rescan result packet. The baseline update record is associated with the dark time slot baseline, and the optical path health score table is associated with the optical path index of the optical path topology mapping table to generate a write-back update packet. The write-back update packet is written back to the corresponding storage items of the disabled list, codeword version number and dark time slot baseline. The written-back disabled list, codeword version number and dark time slot baseline are used as input constraints of the topology and codebook configuration module to participate in the subsequent topology registration and codeword version number registration process, thereby forming a data and control link that is consistent with the closed loop between the scan configuration packet, the received sequence packet, the decoded evidence packet and the control output packet.

Claims

1. A control method for an infrared touchscreen, characterized in that, include: S100: Obtain the set of transmitting units, the set of receiving units, and the disabled list; perform topology registration and signature codebook assembly; and generate a scanning configuration package. S200. Based on the scanning configuration package, perform transmission lighting time slot sequence generation, reception time slot sampling and dark time slot baseline subtraction matching decoding processing to generate a decoding evidence package; S300. Based on the decoded evidence package, perform baseline offset calculation, spatial morphology evidence and temporal consistency evidence generation processing, construct a gated evidence package and perform evidence gating and anomaly classification processing to generate a control output package; S400: Extract the verification rescan strategy parameters from the control output packet, perform verification rescan and tag generation processing, generate a rescan result packet and construct a write-back update packet.

2. The method according to claim 1, characterized in that, The process of performing topology registration and signature codebook assembly includes: The topology registration process includes performing a set consistency check on the transmitter and receiver sets. This set consistency check includes uniqueness checks for serial numbers, channel conflict checks, valid border segment identifier checks, and disabled list reference hit checks. Based on the border segment identifiers and installation location information, optical path candidate relationships are jointly constructed using geometric and connectivity constraints. The geometric constraints include the relative order of border segment orientation and installation location information, while the connectivity constraints include the simultaneous triggering relationship between the driving port and the sampling port. When a candidate pair satisfies the border segment orientation relationship and the trigger windows of the driving port and the sampling port are aligned, it is registered as an optical path entry. An optical path topology mapping table is generated. This table is a structured data table and includes optical path number, transmitter device number, receiver device number, transmitter channel number, receiver channel number, border segment identifier pairs, installation location information digest, and disabled status flag. A signature codebook assembly process is then performed. This process includes extracting an optical path index list and border geometry identifiers from the optical path topology mapping table. The extracted optical path index list is associated with the disabled status flag, and the optical path numbers of available optical path entries are organized according to a preset sorting rule. The border geometry identifier includes a combined identifier of border segment identifier pairs, installation location information digest, and border size digest.

3. The method according to claim 1, characterized in that, The process of generating the emission lighting time slot sequence includes: The emission and illumination time slot sequence generation process includes performing packet integrity verification and version consistency verification on the scan configuration packet. The packet integrity verification covers the existence of fields, the range of field values, and the existence of referenced objects. The version consistency verification covers the consistent binding relationship between the codeword version number and the codeword index table, and the consistent alignment relationship between the frame structure and the driving clock configuration. When time slot skeleton assembly, codeword index assembly, and channel concurrency constraint pruning are performed, the time slot skeleton assembly reads the signature time slot sequence and dark time slot position according to the frame structure and constructs the scan frame according to the time slot duration. The timeline involves assembling the codeword index by reading the codeword index table from the codebook and selecting the codeword index for the current frame according to the operating strategy, as well as assembling the lighting state sequence from the codeword set into the scanning frame timeline. The channel concurrency constraint pruning performs pruning and batch arrangement on the set of transmission channels lit in the same time slot according to the concurrency limit of the transmission drive circuit, generating a time slot lighting schedule table. The time slot lighting schedule table is a structured scheduling object and includes frame number, time slot number, time slot type marker, set of lit channels, lighting gating configuration summary, and sampling trigger alignment marker.

4. The method according to claim 1, characterized in that, The process of receiving time slot sampling and dark time slot baseline subtraction matching decoding includes: The receive time slot sampling process includes generating a sampling orchestration context, which includes a receive channel set, a sampling window configuration summary, and a time slot alignment marker. Receive time slot sampling is then performed, comprising time slot triggering, channel polling sampling, and anomaly sample marking. The time slot triggering sends a sampling trigger signal based on the time slot start and end time summary of the time slot lighting schedule. The channel polling sampling drives the receive sampling circuit to sample each receive channel sequentially according to the receive channel set, forming an original sample value set. The anomaly sample marking performs saturation detection, transition detection, and missing detection on the sample value set and writes the results into an anomaly sample marker, generating a receive sequence packet. The receive sequence packet is a structured data object containing an optical path number index area, a time slot sequence area organized by optical path number, a dark time slot sampling segment area, and a metadata area. Based on the receive sequence packet, dark time slot baseline subtraction and matching decoding processing are performed. The dark time slot baseline subtraction processing includes processing the dark time slots from the received sequence packet... The process involves acquiring dark time-slot sampling segments from the slot sampling area and combining them with anomaly sample markers for baseline sample screening, baseline estimation, and subtraction. The baseline estimation performs robust statistical aggregation on the dark time-slot samples of each optical path. The subtraction process subtracts the baseline estimate from the sampled values ​​of the signature time slots one time slot at a time to generate a subtracted sequence. The matching decoding process includes codeword reading, time-slot alignment checking, matching operations, and residual aggregation. The codeword reading reads the lighting state sequence from the codeword set based on the codeword version number and codeword index and aligns it with the signature time-slot sequence to obtain the codeword sequence for decoding. The time-slot alignment check checks the consistency between the time-slot number label of the subtracted sequence and the time-slot number label of the codeword sequence for decoding. The matching operation performs time-slot multiply-add aggregation on the subtracted sequence of each optical path and the codeword sequence for decoding, and combines it with the weighting table derived from the anomaly sample markers to obtain the effective transmittance for decoding. The residual aggregation calculates the energy aggregation of the differences in the matching components to obtain the decoding residual energy, generating a decoding evidence packet.

5. The method according to claim 1, characterized in that, The process of generating the decoded evidence package includes: The decoded evidence package includes an optical path number index, a decoded effective transmittance scale, a decoded residual energy scale, a baseline estimation summary, a quality marker area, and a version context field.

6. The method according to claim 1, characterized in that, The process of calculating baseline offset includes: The baseline offset calculation process includes an evidence header consistency check, which checks frame number continuity, codeword version number consistency with the version of the locally effective scanning configuration package, and the resolvability of the codeword index in the local codeword index table. It also maintains a baseline tracking status table, which is a set of status records organized by optical path number and includes a snapshot of the previous frame's decoded effective transmittance, a snapshot of the previous frame's baseline offset, a valid sample count, an abnormal frame count, and an update timestamp. Optical path alignment and sample admission determination are performed. Optical path alignment matches the current frame's decoded effective transmittance table with the previous frame snapshot in the baseline tracking status table according to the optical path number index. Sample admission determination is based on… The quality marking area determines whether the current frame decoding amount of each optical path enters the baseline offset calculation channel and performs baseline offset calculation. The baseline offset calculation includes offset candidate generation, offset stability discrimination, and offset packing. The offset candidate generation generates offset candidates by differentiating the current frame decoding effective transmittance with the previous frame snapshot for optical paths that have passed the admission judgment, and combines the offset candidate with the decoding residual energy table to generate an offset confidence summary. The offset stability discrimination performs windowed consistency checks on offset candidates of multiple consecutive frames and generates an amplitude evidence packet. The amplitude evidence packet is a structured object and includes frame number, codeword version number, codeword index, optical path number index, amplitude evidence entry set, and quality mark extension field.

7. The method according to claim 1, characterized in that, The process of generating and processing spatial morphological evidence and temporal consistency evidence includes: The spatial morphology evidence generation process includes evidence spatial mapping and neighborhood aggregation. The evidence spatial mapping process maps the decoded effective transmittance and baseline offset of each optical path to spatial cells constrained by border geometric identifiers according to the optical path topology mapping table. The neighborhood aggregation process aggregates multiple optical path evidence entries within each spatial cell to generate spatial morphology evidence entries. Each spatial morphology evidence entry includes a spatial cell index, an aggregated effective transmittance summary, an aggregated baseline offset summary, an aggregated residual summary, and an aggregated confidence summary, and generates a spatial morphology boundary record. The temporal consistency evidence generation process includes maintaining a temporal consistency buffer and retrieving historical evidence sequences from the buffer for each spatial cell index, performing time window alignment and consistency discrimination processing to generate temporal consistency evidence entries. Each temporal consistency evidence entry includes a spatial cell index, a temporal consistency marker, a time window summary, and a historical coverage summary. A gated evidence package is constructed. The gated evidence package is a structured object and includes a frame number, codeword version number, topology reference field, a set of spatial morphology evidence entries, a set of temporal consistency evidence entries, a spatial morphology boundary record, and a summary of the gated parameter version record.

8. The method according to claim 1, characterized in that, The process of constructing a gated evidence package and performing evidence gating and anomaly classification includes: Evidence gating processing includes evidence admission determination, confidence aggregation processing, and conflict arbitration processing. Evidence admission determination simultaneously references spatial morphology evidence entries and temporal consistency evidence entries for each spatial unit index and determines whether the spatial morphology confidence summary, temporal consistency marker, and historical coverage summary meet the admission threshold. Confidence aggregation processing synthesizes gated confidence entries from the admitted spatial unit indexes. Each gated confidence entry includes a spatial unit index, a confidence level field, an evidence summary field, and a cause code field. Conflict arbitration processing merges or suppresses gated confidence entries from adjacent spatial units according to the arbitration set when they are mutually exclusive. Anomaly classification processing includes anomaly category definition loading and classification rule matching. Anomaly category definition loading reads the anomaly category label table from the configuration storage area. Classification rule matching performs classification on each gated confidence entry based on the anomaly category label table and generates a classification record, generating a control output packet. The control output packet is a structured object and includes a frame number, codeword version number, current record summary, control instruction set, diagnostic field, and backtracking field.

9. The method according to claim 1, characterized in that, The process of performing a verification rescan and generating data via markers includes: The verification rescan execution process includes policy parsing and constraint pruning. Policy parsing extracts codeword version switching and dark slot proportion adjustment items from the verification rescan policy table and constructs an execution parameter set. Constraint pruning checks and prunes the execution parameter set against the frame structure parameters of the currently effective scan configuration packet, and performs codeword version switching and dark slot proportion adjustment. The codeword version switching process selects a codeword version number and updates the codeword index table reference based on the switching condition set at runtime. The dark slot proportion adjustment process generates the rescan transmit / ignition time slot sequence and the adjustment aperture for the receive / sample window based on the dark slot position adjustment table and the dark slot quantity proportion parameter, and executes rescan frame generation and sampling. The rescan frame generation and sampling refer to the optical path number set corresponding to the associated spatial unit range summary. The process involves generating a transmit-to-light-up time slot sequence, sampling and recording the received time slots, performing verification rescan decoding and evidence comparison processing. The verification rescan decoding process involves dark time slot baseline subtraction and matching decoding of the rescan sampled sequence to generate a rescan decoding summary. The evidence comparison process compares the rescan decoding summary with the spatial morphological boundary record fragment index indicated by the backtracking field of the control output packet. Verification rescan pass-mark generation processing is then performed, which includes admission checks, conditional decisions, and mark solidification, generating a rescan result packet. This rescan result packet is a structured object containing a strategy number, rescan frame number range, selected codeword version number, dark time slot location summary, dark time slot quantity percentage parameter, rescan decoding summary, verification rescan pass mark, sampling metadata summary, and execution log summary.

10. A control system for an infrared touchscreen, characterized in that, include: The module comprises a topology and codebook configuration module, a lighting scheduling and receiving assembly module, a baseline subtraction and matching decoding module, an evidence generation and gating classification module, and a rescanning strategy and execution write-back module; the modules are connected in sequence to implement the method described in any one of claims 1-9.