State-aware-based automatic test method for T / R module avatar macro model

By combining a large language model with a physical testing environment, a state-aware embodied testing system is constructed, which solves the shortcomings of real-time state awareness and intelligent protection in the existing automated testing of T/R components. It realizes dynamic verification and control of test commands, and improves the fault tolerance and fault analysis capabilities of the test.

CN123136221APending Publication Date: 2026-11-20CHINA ELECTRONIS TECH INSTR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611225297.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-13
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing automated testing systems for T/R components cannot acquire and respond to changes in physical state during the testing process in real time, lack intelligent physical safety protection mechanisms, and do not make full use of test data. This results in low fault tolerance of test programs, easy damage to instruments and components, and an inability to achieve in-depth root cause analysis of hardware failures.

Method used

By combining a large language model with a physical testing environment, a state-aware embodied testing system is constructed to monitor the physical parameters of the device under test in real time, dynamically verify test commands, generate structured fault reports, realize dynamic verification and control of test commands, and use an instrument state machine proxy module and a physical boundary monitoring module for real-time intervention and diagnosis.

Benefits of technology

It enables dynamic verification and control of test commands, improves the fault tolerance of test programs, avoids hardware damage, enables multimodal fault tracing, and enhances the intelligence and safety of testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123136221A_ABST
    Figure CN123136221A_ABST
Patent Text Reader

Abstract

The application provides a state-aware-based automatic test method for T / R component body model, relates to the field of radio frequency automation test, and comprises the following steps: an initial test program is generated by a large model cognitive layer, and the initial test program is subjected to static checking; each instruction in the checked test program is sent to a test instrument for execution by an instrument state machine agent module, and measurement data and execution states of the instructions returned by the test instrument are received; a physical boundary monitoring module continuously collects physical parameters of a measured piece; if the instructions of the test program are successfully executed, the instrument state is updated; if the execution of the instructions of the test program fails, failure diagnosis is performed and a corresponding continuation strategy is matched; after the test program is completely executed, chain root cause reasoning is performed by the large model cognitive layer, and a structured fault report is generated. The technical scheme of the application combines the reasoning capability of a large language model and real-time state data of a physical test environment, and realizes dynamic checking and control of test instructions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of radio frequency automated testing, and more specifically to an automated testing method for a state-aware T / R component embodied large model. Background Technology

[0002] In the automated testing of microwave and RF hardware such as T / R components, there are numerous test items and strict physical constraints. Existing automated test systems primarily rely on engineers manually writing fixed instrument control scripts to execute test tasks. This execution mode cannot acquire and respond in real-time to changes in the physical state during the test process, such as temperature drift, power supply fluctuations, or standing wave abrupt changes in the device under test. While large language models currently possess the ability to automatically generate test code, their application is largely limited to offline text generation, unable to acquire real-time state machine data from the test instrument, and lacking a feedback mechanism with the physical environment. Furthermore, due to the high cost of RF test instruments, T / R components are highly susceptible to physical damage due to thermal runaway or power overload under high-power transmission conditions. If the code generated by large models without physical constraints contains errors, directly sending it to the instrument poses a very high risk of hardware damage. In summary, current automated testing technologies for T / R components and the application of large models in the testing field generally suffer from three major shortcomings: 1. Large models can only generate test code and send it down one-way. They lack deep interaction with the physical test environment and cannot capture error codes, abnormal responses and changes in the physical state of the test device in real time. They also cannot dynamically transmit the runtime state for real-time logic correction and code refactoring. This results in low fault tolerance of the test program and easy interruption of the entire test chain due to single-step abnormalities.

[0003] 2. The test execution process lacks an intelligent physical safety protection mechanism. It is either completely unprotected or relies solely on pre-set fixed thresholds to trigger simple cut-off actions. It cannot adopt protection strategies based on the degree of parameter anomalies, nor can it dynamically link with the test process to achieve intelligent scheduling such as test degradation and step reordering. It is difficult to avoid irreversible damage to expensive instruments and T / R components due to thermal runaway, power overload, and other problems.

[0004] 3. Insufficient utilization of test data. Only isolated comparison of RF test indicators with set thresholds was made. The final RF data was not analyzed in conjunction with the physical status monitoring logs and program operation logs throughout the test process. This only allowed for the determination of whether the product was qualified, but it was impossible to deduce the root causes of deep hardware failures caused by a combination of factors such as thermal impedance deterioration and poor interface contact.

[0005] Therefore, there is a need for a state-aware T / R component embodied large model automatic testing method that combines the reasoning ability of a large language model with the real-time state data of the physical test environment to achieve dynamic verification and control of test instructions. Summary of the Invention

[0006] The purpose of this invention is to combine the reasoning ability of a large language model with the real-time status data of the physical testing environment to achieve dynamic verification and control of test instructions.

[0007] To achieve the above objectives, the present invention provides the following technical solution: The automated testing method for state-aware T / R component embodied large model includes the following steps: S1, the user inputs the test requirements into the large model cognition layer. After receiving the test requirements, the large model cognition layer parses the test requirements into a test task description and loads the corresponding configuration information.

[0008] S2, the large model cognitive layer generates an initial test program based on the test task description, corresponding configuration information and historical test case library, and performs static verification on the initial test program to obtain the verified test program.

[0009] S3. Input the verified test program into the instrument state machine agent module. The instrument state machine agent module sends each instruction in the verified test program to the test instrument for execution. During the execution of the test program, the instrument state machine agent module receives the measurement data and instruction execution status returned by the test instrument. The physical boundary monitoring module continuously collects the physical parameters of the device under test. When the physical parameters of the device under test reach the preset safety boundary, the corresponding intervention strategy is triggered.

[0010] S4. If the test program's instructions are executed successfully, the instrument status is updated. If the test program's instructions fail to execute, a failure diagnosis is performed, and the corresponding continuation strategy is matched based on the failure diagnosis result to resume the execution of subsequent test program instructions.

[0011] S5. After all the test programs have been executed, the large model cognitive layer generates multimodal test records based on the measurement data and physical parameters, and performs chain-based root cause reasoning based on the multimodal test records to generate a structured fault report.

[0012] Further, step S1 specifically involves the user inputting test requirements via natural language or a structured form. The large model cognitive layer parses the test requirements into a standardized test task description and loads the corresponding instrument state dependency graph and physical safety envelope model parameters from the model configuration library. The test task description includes the model of the device under test, a list of test items, test condition constraints, and pass / fail criteria. The instrument state dependency graph is a directed acyclic graph with constraints and weights. The physical safety envelope model defines the boundary thresholds of the physical parameters of the device under test during the test.

[0013] Furthermore, step S2 specifically includes the following steps: S2.1, the large model cognitive layer generates an initial test program and plans safety checkpoints based on the test task description, instrument state dependency graph, and historical test case library. The initial test program adopts a structured intermediate representation format, and the safety checkpoints are determined according to the steady-state nodes in the instrument state dependency graph.

[0014] S2.2 Input the generated initial test program into the static verification module for preliminary basic verification to obtain the verified test program.

[0015] Furthermore, step S3 specifically includes the following steps: S3.1, the instrument state machine agent module sends each SCPI instruction of the test program to the test instrument for execution, and receives the RF measurement data and execution status of each SCPI instruction returned by the test instrument.

[0016] S3.2 During the test execution, the physical monitoring module collects data on various physical quantities at fixed intervals and compares the collected data with the pre-loaded physical security envelope model. Based on device datasheets, factory limiting parameters, and historical failure samples: ; in, It is the steady-state safety boundary. It is a transient safety boundary. It is the boundary of the rate of change. It is the operating condition mapping function, the physical safety envelope model. For each physical quantity, a corresponding three-level trigger boundary threshold is set: yellow warning, orange alarm, and red emergency. All three thresholds are higher than the rated working reference value of the corresponding physical quantity. The yellow warning threshold is the value corresponding to 70% to 90% of the difference between the rated working reference value and the rated working limit value of the physical quantity. The orange alarm threshold is the rated working limit value of the physical quantity. The red emergency threshold is the absolute maximum rated damage threshold value of the physical quantity.

[0017] S3.3, Calculate the safety margin for a single physical quantity based on the comparison results between the physical quantity data and the physical safety envelope model: ; in, It is the first Safety margin of a physical quantity It is the first The boundary threshold of each physical quantity corresponding to a level It is the first The actual measured value of a physical quantity This is the rated working reference value. If the boundary threshold is exceeded, the corresponding level of intervention strategy will be triggered. The corresponding levels include yellow warning level, orange alarm level and red emergency level. When the yellow warning level is triggered, the large model soft intervention strategy is started. When the orange alarm level is triggered, the execution of the test program is forcibly suspended. When the red emergency level is triggered, the hardware interlock circuit directly cuts off the radio frequency excitation source and the power supply.

[0018] Furthermore, step S4 specifically includes the following steps: S4.1 After the instrument state machine proxy module sends the test program instructions to the test instrument, it receives the returned instruction execution status. If the instruction is successfully executed, the instrument state is updated through the instrument state shadow model. The instrument state shadow model is maintained by the instrument state machine proxy module and tracks the actual state of the instrument in real time. The update rules for the instrument state shadow model are as follows: ; in, It is the set of instrument states after the command is executed. It is a set of instrument states before the instruction is executed. For time indexing, It is the first The instruction to be executed. It is a state transition function defined based on state dependency graph constraints.

[0019] S4.2 If the instruction execution fails, the instrument state machine agent module identifies the failure based on three types of trigger scenarios, and then enters the diagnostic process to locate the cause of the failure and obtain the failure diagnosis result. The three types of trigger scenarios include: returning a standard SCPI error code, exceeding the measurement return value limit, and instruction response timeout. The diagnostic process includes anomaly pre-investigation and two-level root cause diagnosis.

[0020] S4.3 After the diagnosis is completed, the comprehensive index of the failure impact range is calculated based on the diagnosis results, and the corresponding resume strategy is automatically matched according to the threshold range in which the comprehensive index of the failure impact range is located.

[0021] Furthermore, in step S4.2, the anomaly pre-inspection is only triggered for scenarios where commands time out and there is no response. Specifically, the instrument state machine agent module issues instrument status query commands and communication link heartbeat detection to investigate communication and hardware faults such as communication interface disconnection, instrument crash, and hardware link interruption. If it is determined to be a communication or hardware anomaly, the nearest safety checkpoint rollback and fault alarm are directly triggered without entering the code correction process. If hardware and communication problems are ruled out, the two-level root cause diagnosis is entered.

[0022] Furthermore, in step S4.2, the two-level root cause diagnosis specifically includes the following steps: S4.2.1, the first level is runtime error diagnosis of code classes. It performs field-level matching between failed instructions and the built-in syntax rule library and dynamic parameter constraint library, and combines the semantics of the error codes returned by the instrument to determine whether there are code defects.

[0023] S4.2.2, if no code defects are found, proceed to the second level of state dependency runtime conflict diagnosis. Compare the set of prerequisite states required by the failed instruction with the real-time state set of the instrument state shadow model to identify unmet implicit prerequisite state items. Starting from the real-time state of the instrument state shadow model and ending with the prerequisite states required by the failed instruction, perform a reverse depth-first search in the instrument state dependency graph to determine the optimal completion path and calculate the total correction cost. : ; in, The optimal completion path obtained from the search. For the transfer edge The corresponding instruction execution time weight, The weights represent the reversibility of state transitions; irreversible operations have significantly higher weights than reversible operations. It is a reversible influencing factor.

[0024] S4.2.3 After completing the calculation of the total correction cost, the failure diagnosis result is obtained. The failure diagnosis result specifically includes: failure type, error location information, state dependency completion path and total correction cost.

[0025] Furthermore, step S4.3 specifically includes the following steps: S4.3.1 Calculate quantitative scores for three dimensions based on the failure diagnosis results: status recoverability score, executed instruction side effect score, and subsequent dependency integrity score. Then, calculate the comprehensive index of failure impact scope using the quantitative scores of these three dimensions. : ; in, It is the normalized state recoverability score. It is the normalized score for the side effects of the executed instructions. It is the normalized subsequent dependency integrity score. , , It is a preset weighting coefficient and satisfies .

[0026] S4.3.2, the instrument state machine agent module uses a comprehensive index based on the scope of failure impact. The system automatically matches the corresponding resume strategy based on the preset threshold range in which the download is located. when When the value falls below the first threshold, it is determined to be a local repairable failure, and the system adopts an in-situ correction and resume transmission strategy. when When the value is between the first threshold and the second threshold, it is determined to be a moderate impact failure, and the system adopts a safety checkpoint rollback strategy. when If the score is higher than the second threshold and the subsequent dependency integrity score is lower than the set threshold, it is judged as a non-critical failure, and the system adopts a skip-and-continue strategy.

[0027] Furthermore, step S5 specifically includes the following steps: In S5.1, the large model cognitive layer uses a time window merging algorithm to perform time-series alignment between the RF measurement logs received by the instrument state machine agent module and the physical state logs collected by the physical boundary monitoring module, and constructs a multimodal test record with the test step identifier as the primary key.

[0028] S5.2, the large model cognitive layer performs chain-like root cause reasoning based on the constructed multimodal test records, following the logical link of failure identification, feature extraction, causal determination, mechanism matching, and conclusion output, to generate a structured fault report.

[0029] Furthermore, step S5.2 specifically includes the following steps: S5.2.1, Radio Frequency Failure Identification: The radio frequency measurement results are compared with the pass / fail criteria to identify all out-of-standard indicators and form a set of radio frequency failure indicators.

[0030] S5.2.2, Physical Feature Correlation Extraction: For each RF failure index, the physical features of the test steps and the buffer periods before and after the test steps are extracted. The physical features include temperature statistical features, VSWR statistical features and current statistical features.

[0031] S5.2.3, Timing and Causal Determination: Check whether each physical characteristic is abnormal before the RF failure occurs, and determine the direction of the failure cause.

[0032] S5.2.4, Fault Mechanism Matching: The extracted physical features are matched with patterns in a predefined fault mechanism library to calculate the confidence level of various fault root causes. ; in, It is the first Confidence of the root cause of the failure class It is the temporal causal matching score. It is the matching score between physical characteristics and radio frequency failure characteristics. It is the support score of similar historical cases. , , These are the preset weight coefficients corresponding to the temporal causal matching score, physical feature matching score, and historical similar case support score, respectively.

[0033] S5.2.5 outputs a structured fault report, which includes fault type enumeration values, confidence scores, a list of key evidence timestamps supporting the conclusions, suggested retesting steps, and directions for process improvement.

[0034] The present invention has the following beneficial effects: Compared to existing technologies, the method proposed in this invention overcomes the technical shortcomings of existing large language models, which only distribute automated test code in a one-way open loop and lack real-time monitoring and feedback error correction capabilities for program execution status. It proposes an embodied test system architecture based on execution-phase state awareness and dynamic closed-loop self-healing. Throughout the entire process of test code distribution and execution, the proposed testing method constructs a bidirectional interactive channel connecting the large model's cognitive layer and the underlying instruments. It extracts and transforms the logical response characteristics and physical boundary states of the instruments during runtime into constraint feedback that the large model can understand, thereby achieving automatic trial and error correction of test instructions, dynamic adaptive scheduling of runtime anomalies, and multimodal fault tracing based on execution-phase logs. Attached Figure Description

[0035] Figure 1 This is a flowchart of the automatic testing method for a state-aware T / R component embodied large model according to the present invention. Detailed Implementation

[0036] The technical solution of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0037] like Figure 1 The state-aware T / R component embodied large model automatic testing method shown includes: S1, the user inputs the test requirements into the large model cognition layer. After receiving the test requirements, the large model cognition layer parses the test requirements into a test task description and loads the corresponding configuration information.

[0038] S2, the large model cognitive layer generates an initial test program based on the test task description, corresponding configuration information and historical test case library, and performs static verification on the initial test program to obtain the verified test program.

[0039] S3. Input the verified test program into the instrument state machine agent module. The instrument state machine agent module sends each instruction in the verified test program to the test instrument for execution. During the execution of the test program, the instrument state machine agent module receives the measurement data and instruction execution status returned by the test instrument. The physical boundary monitoring module continuously collects the physical parameters of the device under test. When the physical parameters of the device under test reach the preset safety boundary, the corresponding intervention strategy is triggered.

[0040] S4. If the test program's instructions are executed successfully, the instrument status is updated. If the test program's instructions fail to execute, a failure diagnosis is performed, and the corresponding continuation strategy is matched based on the failure diagnosis result to resume the execution of subsequent test program instructions.

[0041] S5. After all the test programs have been executed, the large model cognitive layer generates multimodal test records based on the measurement data and physical parameters, and performs chain-based root cause reasoning based on the multimodal test records to generate a structured fault report.

[0042] Specifically, step S1 involves the user inputting test requirements via natural language or a structured form. The large model's cognitive layer parses these requirements into a standardized test task description and loads the corresponding instrument state dependency graph and physical safety envelope model parameters from the model configuration library. The test task description includes the model of the device under test (DUT), a list of test items, test condition constraints, and pass / fail criteria. The instrument state dependency graph is a directed acyclic graph with constraints and weights. The physical safety envelope model defines the boundary thresholds of the physical parameters of the DUT during testing. The formal definition of the instrument state dependency graph is: ; Among them, the node set This corresponds to all enumerable discrete operating states of the instrument, covering the entire process from initialization, standby, warm-up, self-calibration, port configuration, RF switch switching, trigger mode setting, measurement, and data readback. Each node is accompanied by a corresponding parameter space and state attribute label. (Directed edge set) For each valid transition path between corresponding states, each edge maps to one or a set of executable SCPI instructions, representing the triggering operation for the state transition. Constraint Set Define the pre-dependency rules, mutual exclusion rules, and parameter inheritance rules for state transitions, and the constraint set. This includes multi-state parallel dependencies, state irreversibility marking, and calibration data validity constraints, ensuring that state transitions fully comply with the instrument's hardware operation logic. Weight set. Each state transition edge is assigned an execution time weight and a state reversibility weight for quantitative evaluation of the cost of subsequent path search and correction.

[0043] When users input test requirements via natural language or structured forms, the system first parses the requirements into a standardized test task description. This description includes the device under test (DUT) model, a list of test items, test condition constraints, and pass / fail criteria. After receiving the test task description, the large model cognition layer loads the corresponding instrument state dependency graph and physical safety envelope model parameters from the model configuration library. The instrument state dependency graph, in the form of a directed acyclic graph, describes the dependencies and transition constraints between various instrument configuration states during the test. For example, a spectrum analyzer must complete warm-up and calibration before entering the measurement state, and the port power settings of a vector network analyzer must be completed before the RF switch is closed. The physical safety envelope model defines the upper limit of the allowed temperature, VSWR threshold, maximum input power, and supply current range for this model of DUT during the test. These parameters are derived from the device datasheet or factory test specifications.

[0044] Specifically, step S2 includes the following steps: S2.1, the large model cognitive layer generates an initial test program and plans safety checkpoints based on the test task description, instrument state dependency graph, and historical test case library. The initial test program adopts a structured intermediate representation format, and the safety checkpoints are determined according to the steady-state nodes in the instrument state dependency graph.

[0045] S2.2 Input the generated initial test program into the static verification module for preliminary basic verification to obtain the verified test program.

[0046] The generated program uses a structured intermediate representation format. Each instruction includes the instruction type, target instrument identifier, SCPI command string, expected return value type and reasonable range, set of dependent prerequisite states, and the impact of the instruction on the instrument state.

[0047] During program generation, the large model automatically plans safety checkpoints based on steady-state nodes in the instrument state dependency graph. Checkpoints are selected from stable states with no intermediate temporary parameters and strong reversibility, such as instrument initialization completion, full-band calibration completion, test band switching completion, and RF path switching completion. Checkpoint identifiers are marked at the corresponding instruction locations in the program, and the complete instrument state parameter set corresponding to each node is recorded synchronously. Before the generated test program is executed, it undergoes preliminary basic verification through a static verification module, covering three types of deterministic problems that can be identified through rule matching and static analysis: first, SCPI instruction syntax format legality verification, checking for explicit syntax problems such as instruction spelling errors and parameter format mismatches; second, general parameter range verification, checking for obvious parameter out-of-bounds problems based on the instrument's rated parameter range; and third, explicit state dependency integrity verification, checking for obvious state order reversals and missing preliminary steps in the program based on the top-level transition rules of the instrument state dependency graph. Static verification can only cover deterministic and general explicit errors. It cannot identify anomalies that can only be exposed in the execution environment, such as parameter adaptation deviations, implicit instrument state constraints, and runtime state drift under dynamic operating conditions. These problems need to be handled in the execution phase through state shadow models and dynamic diagnostic mechanisms.

[0048] Specifically, step S3 includes the following steps: S3.1, the instrument state machine proxy module sends each SCPI instruction of the test program to the test instrument for execution and receives the RF measurement data and execution status of each SCPI instruction returned by the test instrument. As middleware between the instrument control layer and the large model cognition layer, the instrument state machine proxy intercepts the sending and receiving of each SCPI instruction. After an instruction is sent to the instrument, the proxy module not only waits for the instruction to complete execution but also actively queries the instrument's error queue to obtain the underlying error code, polls the operation completion status register to confirm whether the instruction has truly been executed, and compares the measurement return value with the expected range to calculate the deviation rate. Simultaneously, the proxy module maintains an instrument state shadow model, tracking the current instrument configuration status, operating mode, loaded calibration data, and connection status of each port in real time.

[0049] S3.2 During the test execution, the physical monitoring module collects data on various physical quantities at fixed intervals and compares the collected data with the pre-loaded physical security envelope model. Based on device datasheets, factory limiting parameters, and historical failure samples: ; in, It is the steady-state safety boundary. It is a transient safety boundary. It is the boundary of the rate of change. It is the operating condition mapping function, the physical safety envelope model. For each physical quantity, a corresponding three-level trigger boundary threshold is set: yellow warning, orange alarm, and red emergency. All three thresholds are higher than the rated working reference value of the corresponding physical quantity. The yellow warning threshold is the value corresponding to 70% to 90% of the difference between the rated working reference value and the rated working limit value of the physical quantity. The orange alarm threshold is the rated working limit value of the physical quantity. The red emergency threshold is the absolute maximum rated damage threshold value of the physical quantity. The three types of safety boundaries, namely steady state, transient state, and rate of change, are each configured with the above three-level trigger boundary thresholds.

[0050] The physical boundary monitoring layer continuously collects physical state data of the device under test (DUT) through heterogeneous sensors: temperature sensors collect the temperature of the T / R module casing or obtain the temperature distribution of key areas through thermal imaging; directional couplers and power meters measure incident and reflected power in real time and calculate the standing wave ratio (VSWR); and Hall current sensors monitor the instantaneous and average values ​​of the supply current. Sensor data is written to a circular buffer at a fixed sampling period, with each sampling point carrying a millisecond-level timestamp to ensure the timeliness of physical data and test procedures.

[0051] S3.3, Calculate the safety margin for a single physical quantity based on the comparison results between the physical quantity data and the physical safety envelope model: ; in, It is the first Safety margin of a physical quantity It is the first The boundary threshold of each physical quantity corresponding to a level It is the first The actual measured value of a physical quantity This is the rated working reference value. If the boundary threshold is exceeded, the corresponding level of intervention strategy will be triggered. The corresponding levels include yellow warning level, orange alarm level and red emergency level. When the yellow warning level is triggered, the large model soft intervention strategy is started. When the orange alarm level is triggered, the execution of the test program is forcibly suspended. When the red emergency level is triggered, the hardware interlock circuit directly cuts off the radio frequency excitation source and the power supply.

[0052] The physical boundary monitoring module compares the real-time collected physical parameters with the pre-loaded physical safety envelope model to calculate the approximation degree of each physical parameter relative to the safety boundary. When a physical parameter reaches a preset proportion of the safety boundary, the system triggers an intervention strategy at the corresponding level. The system has a three-tiered intervention mechanism with differentiated execution links and decision-making bodies for different levels. When a yellow warning level is triggered, the system does not interrupt the testing process. It constructs a structured physical state context from the current physical state data, the information of the currently executing test steps, and the list of subsequent steps to be executed, and inputs it into the large model's cognitive layer. The large model infers based on the physical state context to determine whether the current physical state will affect subsequent tests and whether preventive measures are needed. The large model can choose to insert a cooling waiting step to allow the temperature of the test device to drop naturally, choose to reduce the excitation power of subsequent steps to reduce heat dissipation, or choose to continue execution and strengthen monitoring.

[0053] When an orange alarm level is triggered, the system first suspends command issuance, freezes the instrument status, and inputs the physical state context along with complete test program information, including alarm information, state snapshots, full test sequences, and physical load tags, into the large model. The large model is then required to generate a test sequence rearrangement scheme. The rearrangement scheme output by the large model must conform to the predefined scheduling command enumeration type, including skipping specified high-risk test steps, postponing high-power test items until after the temperature drops, splitting consecutive high-power steps and inserting them into the cooling interval, or directly terminating the test and marking it as a failure to meet physical conditions. The system performs dual checks on the legality and test target integrity of the scheduling commands output by the large model to ensure that the physical quantities fall back to a safe range and that the rearranged test sequence still satisfies the state dependency constraints, and then continues execution according to the new sequence.

[0054] When the red emergency level is triggered, the hardware interlocking circuit bypasses all software layers and directly cuts off the RF excitation source and power supply. The response time of this action is in the millisecond range. Once the physical quantity exceeds the limit threshold, the RF excitation and operating power supply are immediately cut off without waiting for large model inference or software judgment. This ensures that the device under test will not be damaged due to uncontrolled physical parameters in extreme scenarios. At the same time, the sampled waveforms before and after the trigger are latched for post-event analysis. The protection state needs to be manually reset to avoid secondary damage.

[0055] To address the issues of low testing efficiency caused by the unidirectional open-loop distribution mode of existing large language model generation test programs, which cannot accurately locate the cause of execution failure and require a full rerun, an adaptive correction method for test program execution based on instrument state dependency graphs is proposed. This method uses structured instrument state knowledge as its core foundation and achieves autonomous self-healing after test program failure through real-time tracking of execution state, failure classification and diagnosis, multi-dimensional impact assessment, and adaptive resume decision-making. This maximizes the preservation of executed test results and avoids repetitive, time-consuming operations.

[0056] Specifically, step S4 includes the following steps: S4.1 After the instrument state machine proxy module sends the test program instructions to the test instrument, it receives the returned instruction execution status. If the instruction is successfully executed, the instrument state is updated through the instrument state shadow model. The instrument state shadow model is maintained by the instrument state machine proxy module and tracks the actual state of the instrument in real time. The update rules for the instrument state shadow model are as follows: ; in, It is the set of instrument states after the command is executed. It is a set of instrument states before the instruction is executed. For time indexing, It is the first The instruction to be executed. It is a state transition function defined based on the constraints of the state dependency graph. The shadow model is essentially an instantiation of the currently active node in the state dependency graph, which fully records all the state nodes of the instrument, the configuration parameter values ​​of each state, the loaded calibration data identifiers, port connection status and other runtime contexts.

[0057] S4.2 If the instruction execution fails, the instrument state machine agent module identifies the failure based on three types of trigger scenarios, and then enters the diagnostic process to locate the cause of the failure and obtain the failure diagnosis result. The three types of trigger scenarios include: returning a standard SCPI error code, exceeding the measurement return value limit, and instruction response timeout. The diagnostic process includes anomaly pre-investigation and two-level root cause diagnosis.

[0058] S4.3 After the diagnosis is completed, the comprehensive index of the failure impact range is calculated based on the diagnosis results, and the corresponding resume strategy is automatically matched according to the threshold range in which the comprehensive index of the failure impact range is located.

[0059] Specifically, in step S4.2, the anomaly pre-inspection is only triggered for scenarios where commands time out and there is no response. Specifically, the instrument state machine agent module issues instrument status query commands and communication link heartbeat detection to check for communication and hardware faults such as communication interface disconnection, instrument crash, and hardware link interruption. If it is determined to be a communication or hardware anomaly, the most recent safety checkpoint rollback and fault alarm are directly triggered without entering the code correction process. If hardware and communication problems are ruled out, the two-level root cause diagnosis is entered.

[0060] Specifically, in step S4.2, the two-level root cause diagnosis includes the following steps: S4.2.1, the first level, is runtime error diagnosis of code. It performs field-level matching of failed commands with the built-in syntax rule library and dynamic parameter constraint library, and combines this with the semantics of the error codes returned by the instrument to determine if any code defects exist. It covers three effective scenarios: returned error codes, unexpected return values, and timeouts after investigation. By performing field-level matching of failed commands with the built-in SCPI syntax rule library and dynamic parameter constraint library, and combining this with the semantics of the error codes returned by the instrument, it determines whether there are code defects that static verification cannot identify in advance, such as parameter adaptation errors under dynamic operating conditions, syntax deviations in commands for edge scenarios, and parameter out-of-bounds errors under specific states, and locates the specific fields of the error and the range of deviation.

[0061] S4.2.2, if no code defects are found, proceed to the second level of state dependency runtime conflict diagnosis. Compare the set of prerequisite states required by the failed instruction with the real-time state set of the instrument state shadow model to identify unmet implicit prerequisite state items. Starting from the real-time state of the instrument state shadow model and ending with the prerequisite states required by the failed instruction, perform a reverse depth-first search in the instrument state dependency graph to determine the optimal completion path and calculate the total correction cost. : ; in, The optimal completion path obtained from the search. For the transfer edge The corresponding instruction execution time weight, The weights represent the reversibility of state transitions; irreversible operations have significantly higher weights than reversible operations. It is a reversible influencing factor.

[0062] The system determines whether a state dependency conflict exists by comparing the current instrument state shadow model with the set of preceding states required by the command. Typical scenarios of state dependency conflicts include executing a measurement command before the instrument has been calibrated, reading power data before the RF switch has been switched to the correct path, and starting a scan before the trigger mode is correctly configured. When a state dependency conflict is detected, the system performs a reverse path search in the instrument state dependency graph, tracing back from the current state node to the target preceding state node to find the missing intermediate state transition steps.

[0063] S4.2.3 After calculating the total correction cost, the failure diagnosis result is obtained. The failure diagnosis result specifically includes: failure type, error location information, state dependency completion path, and total correction cost. The system encapsulates the failure diagnosis result, the current instrument state snapshot, and subsequent instruction dependencies in a structured manner, and submits them as input context to the large model's cognitive layer. At the same time, it comprehensively determines the impact range of the failure through quantitative scoring across three dimensions, adaptively matches the optimal continuation strategy, and guides the large model to generate correction code at the corresponding granularity.

[0064] Specifically, step S4.3 includes the following steps: S4.3.1 Calculate quantitative scores for three dimensions based on the failure diagnosis results: status recoverability score, executed instruction side effect score, and subsequent dependency integrity score. Then, calculate the comprehensive index of failure impact scope using the quantitative scores of these three dimensions. : ; in, It is the normalized state recoverability score. It is the normalized score for the side effects of the executed instructions. It is the normalized subsequent dependency integrity score. , , It is a preset weighting coefficient and satisfies The recoverability score is calculated based on the cost of correction and the proportion of irreversible operations, representing the feasibility of restoring the instrument to a legal state through local instructions. A higher score indicates lower recovery difficulty. The side effect score of executed instructions counts the number and impact level of irreversible operations in all executed instructions before the failure node, representing the cost of rollback operations and the risk of state loss. A higher score indicates higher retention value of executed results. The subsequent dependency integrity score traverses all test steps after the failed instruction, counting the number and proportion of steps that depend on the output of that instruction, representing the transmission impact of the failure of that step on subsequent tests. A lower score indicates stronger substitutability of that step.

[0065] S4.3.2, the instrument state machine agent module uses a comprehensive index based on the scope of failure impact. The system automatically matches the corresponding resume strategy based on the preset threshold range in which the download is located. when When the error falls below the first threshold, it is determined to be a locally repairable failure, and the system adopts an in-situ correction and continuation strategy. When a locally repairable failure is determined, the large model's cognitive layer generates a minimal code snippet containing only the correction content based on structured error location information, state completion paths, and the current state context. This snippet only covers the error point itself and the missing preceding state transition instructions, without modifying the already executed valid code or subsequent test logic. After the corrected code snippet returns, the instrument state machine agent first performs a secondary check for syntax validity and state dependency integrity, confirming that the corrected instruction sequence conforms to the instrument state transition rules and has no parameter out-of-bounds issues. Then, the snippet is inserted into the original program's failure location, and the test resumes directly from the failure point. This strategy can completely preserve completed operations that take a long time, such as instrument warm-up and calibration, without requiring re-execution.

[0066] when When the state falls between the first and second thresholds, it is determined to be a moderate impact failure, and the system adopts a safety checkpoint rollback strategy. For a moderate impact failure, the system backtracks to the pre-set state snapshot nodes (safety checkpoints) in the test program, selects the checkpoint closest to the failure node and with a complete state, restores the instrument state to the state snapshot corresponding to that checkpoint, and then executes the corrected program segment starting from the checkpoint location. Safety checkpoints are pre-set at key nodes where the instrument is stable and free of intermediate parameters, such as after instrument initialization, full-band calibration, and test band switching, ensuring that the rolled-back state has complete conditions for subsequent test execution.

[0067] when If the score exceeds the second threshold and the subsequent dependency integrity score is below the set threshold, it is considered a non-critical failure, and the system adopts a skip-and-continue strategy. For non-critical failures, the failed step is skipped, the current instrument state is preserved, and subsequent test steps are executed. Simultaneously, the failed step is marked as skipped in the test log, and the reason for the failure is recorded. This will be processed uniformly after the test is completed. This strategy only applies to scenarios where the output of the failed step is not referenced by any subsequent steps and does not change the core working state of the instrument; the subsequent dependency integrity score will automatically determine the failure.

[0068] Specifically, step S5 includes the following steps: In S5.1, the large model cognitive layer uses a time window merging algorithm to perform time-series alignment between the RF measurement logs received by the instrument state machine agent module and the physical state logs collected by the physical boundary monitoring module, and constructs a multimodal test record with the test step identifier as the primary key.

[0069] The chain-based root cause reasoning method based on multimodal test record timing alignment constructs a multimodal fusion data foundation with time as a unified benchmark. First, it builds a unified data structure for multimodal test records with test step identifiers as the primary key. Then, a time window merging algorithm completes the timing alignment of RF measurement data and physical state data. At test startup, the synchronization trigger signal is used as the global time zero point to calibrate the clock offset between the RF test instrument and the physical acquisition unit, ensuring that both types of data share a unified time benchmark. Specifically, the RF measurement log uses a single test step as the smallest unit, recording the measured values ​​of each RF indicator such as gain and noise figure, the pass / fail criteria, and the start and end timestamps of the step. The physical state log consists of millisecond-level continuous sampling sequences of physical quantities such as temperature, VSWR, and supply current, with each sampling point carrying a high-precision timestamp and channel identifier. During timing alignment, a closed time window consisting of the start and end times of each test step is extracted. All sampling points falling within this window are retrieved from the physical sampling sequence, and their statistical features are extracted and attached to the corresponding test step record, forming a complete multimodal test record. After alignment, the [missing information - likely a specific data point or sequence]... The set of physical quantity characteristics corresponding to each test step This can be formally represented as: ; in, This represents the total number of physical quantity channels. For the first The start and end time windows for each test step. For the first Sampling timing of each physical quantity The statistical feature extraction function outputs information including mean, peak value, standard deviation, rate of change, and anomalous abrupt change points, enabling a structured association between discrete test steps and continuous physical data. The RF measurement log records RF performance metrics for each test step, such as gain, noise figure, third-order intermodulation, and 1 dB compression point, indexed by the test step identifier. The physical state log records the time-series sampling sequences of temperature, VSWR, and current throughout the entire test process, indexed by millisecond-level timestamps.

[0070] S5.2, the large model cognitive layer performs chain-like root cause reasoning based on the constructed multimodal test records, following the logical link of failure identification, feature extraction, causal determination, mechanism matching, and conclusion output, to generate a structured fault report.

[0071] Specifically, step S5.2 includes the following steps: S5.2.1, Radio Frequency Failure Identification: Compare the radio frequency measurement results with the pass / fail criteria to identify all out-of-specification indicators, forming a set of radio frequency failure indicators. Iterate through the radio frequency measurement results of all test steps, comparing them one by one with the pass / fail thresholds in the test specifications, recording the extent of exceedance, the step in which it occurred, and the corresponding time window, to find all out-of-specification indicators and their extent of exceedance, thus forming a set of failure indicators.

[0072] S5.2.2, Physical Feature Correlation Extraction: For each RF failure indicator, the system extracts the physical features of the test steps and the buffer periods before and after each test step. These physical features include temperature statistics, VSWR statistics, and current statistics. For each RF indicator that exceeds the limit, the system extracts the temperature statistics, VSWR statistics, and current statistics during the execution of that test step from the multi-mode test records.

[0073] S5.2.3, Timing and Causal Determination: This section checks whether any physical characteristics exhibited abnormalities before the RF failure occurred, determining the direction of the failure's cause. If the physical abnormality occurred before the RF failure and the two showed a strong correlation in their trends, the hypothesis that the physical factor was the root cause is supported. If the physical parameters remained stable throughout the process without abnormal fluctuations, it is determined to be an inherent performance defect of the device. The focus is on investigating whether physical abnormalities had already accumulated before the execution of the relevant steps, providing complete data support for subsequent causal determination. The system checks whether physical parameters exhibited abnormalities before the RF indicators exceeded limits; for example, the temperature exceeded the normal operating range before the test steps began, the VSWR showed a sudden change during measurement, or the current showed an abnormal spike after the RF excitation was applied. If the physical abnormality occurred before the RF abnormality, the hypothesis that the physical factor was the root cause is supported.

[0074] S5.2.4, Fault Mechanism Matching: The extracted physical features are matched with patterns in a predefined fault mechanism library to calculate the confidence level of various fault root causes. ; in, It is the first Confidence of the root cause of the failure class It is the temporal causal matching score. It is the matching score between physical characteristics and radio frequency failure characteristics. It is the support score of similar historical cases. , , These are preset weight coefficients corresponding to the temporal causal matching score, physical feature matching score, and historical similar case support score, used to calibrate the contribution ratio of each dimension in the failure root cause confidence calculation. A pre-built failure mechanism knowledge base is invoked, which stores standardized association mappings and historical case weights between physical phenomena, RF failures, and failure root causes. The extracted failure features are matched with patterns in the library. A predefined failure mechanism library stores association patterns between physical phenomena and RF failures; for example, temperature rise leading to power amplifier gain compression, sudden changes in VSWR indicating poor interface contact, abnormal current indicating power amplifier bias circuit failure, and excessive temperature gradient indicating a design defect in the heat dissipation structure. The large model matches the extracted physical state features with patterns in the failure mechanism library to calculate the confidence score for each failure type.

[0075] S5.2.5 outputs a structured fault report, which includes fault type enumeration values, confidence scores, a list of key evidence timestamps supporting the conclusions, suggested retesting steps, and directions for process improvement.

[0076] The core innovation of this invention lies in overcoming the technical shortcomings of existing large language models, which rely on "one-way open-loop distribution" after generating automated test code and lack real-time monitoring and feedback error correction capabilities for program execution status. This invention proposes an embodied testing system architecture based on execution-phase state awareness and dynamic closed-loop self-healing. Throughout the entire process of test code distribution and execution, this system constructs a bidirectional interactive channel connecting the large model's cognitive layer and the underlying instruments. It extracts and transforms the logical response characteristics and physical boundary states of the instruments during runtime into constraint feedback that the large model can understand, thereby achieving automatic trial and error correction of test instructions, dynamic adaptive scheduling of runtime anomalies, and multimodal fault tracing based on execution-phase logs. Specific innovations are as follows: An Adaptive Correction Method for Test Program Execution Based on Instrument State Dependency Graph. Existing RF test programs generated by large language models employ a one-way offline execution mode, only performing basic syntax checks during the generation phase. This fails to cover all instrument state constraints and dynamic parameter boundaries before execution. When a failure occurs during program execution, the system can only capture the error code and interrupt the test process, unable to distinguish whether the failure is due to runtime code logic deviations or abnormal instrument state dependencies. Existing methods can only feed back error information to the large model, requiring the complete program to be regenerated and executed from scratch. This results in the need to repeat time-consuming operations, and due to the lack of structured diagnostic capabilities, the regenerated program often repeats the same errors, requiring multiple complete restarts to succeed, leading to low testing efficiency. This invention constructs a knowledge graph integrating the SCPI syntax rule base and the instrument state dependency graph, employing a two-layer error correction mechanism of pre-emptive static verification and execution-phase dynamic diagnosis: pre-emptive static verification filters out statically identifiable problems such as syntax errors, out-of-bounds general parameters, and missing explicit state dependencies. During execution, by maintaining an instrument state shadow model, the system categorizes and diagnoses runtime dynamic anomalies that static verification cannot cover: The system first triggers failure detection based on three types of phenomena: "returning error codes, unexpected return values, and unresponsive command timeouts." Then, a two-level diagnostic process is used to locate the root cause—for return error codes and return value deviations, runtime errors in the code and conflicts with state dependencies are investigated sequentially; for command timeout scenarios, a preliminary investigation of the communication link is performed before incorporating it into the root cause diagnosis. If the issue is ultimately identified as a code syntax parameter error or a dynamic operating condition adaptation deviation, parameter correction and syntax correction fragments are generated. If the issue is identified as a hidden state drift or state transition conflict, the missing preceding state is located through reverse path search, and a state completion command is generated. The system intelligently decides on a continuation strategy based on the impact assessment of failures (state recoverability, side effects of executed instructions, and integrity of subsequent dependencies): First, the large model's cognitive layer generates a minimal corrective code snippet based on the diagnostic results and the current instrument state context. After the instrument state machine proxy completes state dependency validity verification, this snippet is inserted at the failure location, achieving in-situ correction and subsequent execution, maintaining the instrument's current valid state throughout. For failures with a large impact that cannot be locally corrected, the system rolls back to the nearest safety checkpoint, where the large model generates the corresponding corrective snippet and re-executes it. Non-critical failures that do not affect subsequent tests are skipped and execution continues. This approach reduces time wasted by repeatedly executing completed operations while ensuring test continuity, improving the success rate and overall efficiency of the test program.

[0077] A hierarchical autonomous intervention method for test execution based on a physical safety envelope model. Existing automated testing systems, when executing test programs generated by large models, only focus on the logical correctness and smooth delivery of instructions, lacking the ability to perceive the physical state of the device under test (DUT) in real time. When the test program is logically correct but the physical parameters of the DUT, such as temperature, VSWR, and power supply current, approach the safety threshold during execution, the system cannot identify the potential hardware damage risk and can only mechanically continue to execute subsequent instructions, which can easily lead to irreversible physical damage to expensive T / R components due to thermal runaway or power overload. Even if physical sensors are deployed, existing methods are only used for post-event data recording and lack the ability to actively intervene during execution, let alone allow the large model to dynamically adjust the test strategy based on the physical state. This invention constructs a physical safety envelope model for each DUT model, binds the safety boundaries of physical parameters such as temperature, VSWR, power, and current to the model configuration library, and collects physical state data in real time through sensors at a fixed sampling period. The system is designed with a three-level hierarchical intervention architecture: the yellow warning level inputs the structured physical state context into the large model, which then autonomously decides whether to insert a cooling wait or reduce the excitation power. An orange alert level forcibly suspends test execution and requires the large model to rearrange the test sequence, bypassing physical boundaries by skipping high-risk steps or adjusting the test order. A red emergency level bypasses the large model's inference latency, directly cutting off the stimulus source via hardware interlocking circuitry to ensure millisecond-level response times.

[0078] A chain-like root cause reasoning method based on multimodal test record time-series alignment. Existing test systems, in the post-test analysis phase, only compare RF measurement indicators with set thresholds in isolation to determine product pass / fail. Physical state monitoring data and RF measurement data are stored and analyzed in isolation, without establishing a time-series correlation. This fragmented evaluation method leads the system to only provide superficial conclusions such as "gain unqualified" or "noise figure exceeding the standard," failing to infer whether the failure was caused by transient physical anomalies during the test process or inherent defects in the device itself, unable to distinguish between abnormal test conditions and actual device failures, and unable to pinpoint the deep-seated hardware failure root causes caused by complex factors such as thermal impedance deterioration and poor interface contact. This invention proposes a multimodal test record data structure that uses test step identifiers as the primary key and aligns RF measurement logs and physical state logs on the timeline. A time window merging algorithm aligns the millisecond-level sampling sequence of physical sensors with the execution time window of the test steps, preserving statistical characteristics and rate of change information. The system designs a five-step root cause analysis process based on chain reasoning: First, it identifies the exceeding RF indicators and their exceeding magnitudes; then, it extracts the physical state features within the corresponding time window of the exceeding step; next, it determines the temporal causal relationship between physical anomalies and RF anomalies; then, it matches the association patterns between physical phenomena and RF failures using a predefined fault mechanism library; finally, it outputs a structured fault report with confidence. This method expands the inference input from a single RF indicator to multimodal joint data of RF indicators and physical state temporal features. By explicitly establishing the temporal causal chain between physical anomalies and RF anomalies, it achieves traceable reasoning from surface test failures to deep hardware fault root causes, providing accurate diagnostic basis for subsequent device selection and process improvement.

[0079] Of course, the above description is not intended to limit the present invention, and the present invention is not limited to the examples given above. Any changes, modifications, additions or substitutions made by those skilled in the art within the scope of the present invention should also fall within the protection scope of the present invention.

Claims

1. A state-aware, large-scale automated testing method for T / R component embodied models, characterized in that, include: S1, the user inputs the test requirements into the large model cognition layer. After receiving the test requirements, the large model cognition layer parses the test requirements into a test task description and loads the corresponding configuration information. S2, the large model cognitive layer generates an initial test program based on the test task description, corresponding configuration information and historical test case library, and performs static verification on the initial test program to obtain the verified test program; S3, input the verified test program into the instrument state machine agent module. The instrument state machine agent module sends each instruction in the verified test program to the test instrument for execution. During the execution of the test program, the instrument state machine agent module receives the measurement data and instruction execution status returned by the test instrument. The physical boundary monitoring module continuously collects the physical parameters of the device under test. When the physical parameters of the device under test reach the preset safety boundary, the corresponding intervention strategy is triggered. S4. If the test program's instructions are executed successfully, update the instrument status. If the test program's instructions fail to execute, perform a failure diagnosis and match the corresponding resume strategy based on the failure diagnosis result to restore the execution of subsequent test program instructions. S5. After all the test programs have been executed, the large model cognitive layer generates multimodal test records based on the measurement data and physical parameters, and performs chain-based root cause reasoning based on the multimodal test records to generate a structured fault report.

2. The automatic testing method for a large-scale, state-aware T / R component based on a state-aware model according to claim 1, characterized in that, Step S1 specifically involves the user inputting test requirements via natural language or a structured form. The large model cognitive layer parses the test requirements into a standardized test task description and loads the corresponding instrument state dependency graph and physical safety envelope model parameters from the model configuration library. The test task description includes the model of the device under test, a list of test items, test condition constraints, and pass / fail criteria. The instrument state dependency graph is a directed acyclic graph with constraints and weights. The physical safety envelope model defines the boundary thresholds of the physical parameters of the device under test during the test.

3. The automatic testing method for a large-scale embodied T / R component based on state awareness according to claim 1, characterized in that, Step S2 specifically includes the following steps: S2.1, The large model cognitive layer generates an initial test program and plans safety checkpoints based on the test task description, the instrument state dependency graph, and the historical test case library. The initial test program adopts a structured intermediate representation format, and the safety checkpoints are determined according to the steady-state nodes in the instrument state dependency graph. S2.2 Input the generated initial test program into the static verification module for preliminary basic verification to obtain the verified test program.

4. The automatic testing method for a large-scale embodied T / R component based on state awareness according to claim 1, characterized in that, Step S3 specifically includes the following steps: S3.1, the instrument state machine agent module sends each SCPI instruction of the test program to the test instrument for execution, and receives the RF measurement data and execution status of each SCPI instruction returned by the test instrument; S3.2 During the test execution, the physical monitoring module collects data on various physical quantities at fixed intervals and compares the collected data with a pre-loaded physical security envelope model. Based on device datasheets, factory limiting parameters, and historical failure samples: ; in, It is the steady-state safety boundary. It is a transient safety boundary. It is the boundary of the rate of change. It is the operating condition mapping function, the physical safety envelope model. For each physical quantity, set corresponding three-level trigger boundary thresholds: yellow warning, orange alarm, and red emergency. All three thresholds are higher than the rated working reference value of the corresponding physical quantity. The yellow warning threshold is the value corresponding to 70% to 90% of the difference between the rated working reference value and the rated working limit value of the physical quantity. The orange alarm threshold is the rated working limit value of the physical quantity. The red emergency threshold is the absolute maximum rated damage threshold value of the physical quantity. S3.3, Calculate the safety margin for a single physical quantity based on the comparison results between the physical quantity data and the physical safety envelope model: ; in, It is the first Safety margin of a physical quantity It is the first The boundary threshold of each physical quantity corresponding to a level It is the first The actual measured value of a physical quantity This is the rated working reference value. If the boundary threshold is exceeded, the corresponding level of intervention strategy is triggered. The corresponding levels include yellow warning level, orange alarm level and red emergency level. When the yellow warning level is triggered, the large model soft intervention strategy is started. When the orange alarm level is triggered, the execution of the test program is forcibly suspended. When the red emergency level is triggered, the hardware interlock circuit directly cuts off the radio frequency excitation source and the power supply.

5. The automatic testing method for a large-scale embodied T / R component based on state awareness according to claim 1, characterized in that, Step S4 specifically includes the following steps: S4.1 After the instrument state machine proxy module sends the test program instructions to the test instrument, it receives the returned instruction execution status. If the instruction is successfully executed, the instrument state is updated through the instrument state shadow model. The instrument state shadow model is maintained by the instrument state machine proxy module and tracks the actual state of the instrument in real time. The update rules for the instrument state shadow model are as follows: ; in, It is the set of instrument states after the command is executed. It is a set of instrument states before the instruction is executed. For time indexing, It is the first The instruction to be executed. It is a state transition function defined based on state dependency graph constraints; S4.2 If the instruction execution fails, the instrument state machine agent module identifies the failure based on three types of triggering scenarios, and then enters the diagnostic process to locate the cause of the failure and obtain the failure diagnosis result. The three types of triggering scenarios include: returning a standard SCPI error code, exceeding the measurement return value limit, and instruction response timeout. The diagnostic process includes anomaly pre-screening and two-level root cause diagnosis. S4.3 After the diagnosis is completed, the comprehensive index of the failure impact range is calculated based on the diagnosis results, and the corresponding resume strategy is automatically matched according to the threshold range in which the comprehensive index of the failure impact range is located.

6. The automatic testing method for a state-aware T / R component embodied large model according to claim 5, characterized in that, In step S4.2, the anomaly pre-screening is only triggered for scenarios where commands time out and there is no response. Specifically, the instrument state machine agent module issues an instrument status query command and a communication link heartbeat detection to screen for communication and hardware faults such as communication interface disconnection, instrument crash, and hardware link interruption. If it is determined to be a communication or hardware anomaly, the nearest security checkpoint rollback and fault alarm are directly triggered without entering the code correction process. If hardware and communication problems are ruled out, the two-level root cause diagnosis is initiated.

7. The automatic testing method for a large-scale embodied T / R component based on state awareness according to claim 5, characterized in that, In step S4.2, the two-level root cause diagnosis specifically includes the following steps: S4.2.1, the first level is runtime error diagnosis of code classes, which performs field-level matching of failed instructions with the built-in syntax rule library and dynamic parameter constraint library, and combines the semantics of the error codes returned by the instrument to determine whether there are code defects; S4.2.2, if no code defects are found, proceed to the second level of state dependency runtime conflict diagnosis. Compare the set of prerequisite states required by the failed instruction with the real-time state set of the instrument state shadow model to identify unmet implicit prerequisite state items. Starting from the real-time state of the instrument state shadow model and ending with the prerequisite states required by the failed instruction, perform a reverse depth-first search in the instrument state dependency graph to determine the optimal completion path and calculate the total correction cost. : ; in, The optimal completion path obtained from the search. For the transfer edge The corresponding instruction execution time weight, The weights represent the reversibility of state transitions; irreversible operations have significantly higher weights than reversible operations. It is a reversible influencing factor; S4.2.3 After completing the calculation of the total correction cost, the failure diagnosis result is obtained. The failure diagnosis result specifically includes: failure type, error location information, state dependency completion path and total correction cost.

8. The automatic testing method for a large-scale embodied T / R component based on state awareness according to claim 5, characterized in that, Step S4.3 specifically includes the following steps: S4.3.1 Calculate quantitative scores for three dimensions based on the failure diagnosis results: status recoverability score, executed instruction side effect score, and subsequent dependency integrity score. Then, calculate the comprehensive index of failure impact scope using the quantitative scores of these three dimensions. : ; in, It is the normalized state recoverability score. It is the normalized score for the side effects of the executed instructions. It is the normalized subsequent dependency integrity score. , , It is a preset weighting coefficient and satisfies ; S4.3.2, the instrument state machine agent module uses a comprehensive index based on the scope of failure impact. The system automatically matches the corresponding resume strategy based on the preset threshold range in which the download is located. when When the value falls below the first threshold, it is determined to be a local repairable failure, and the system adopts an in-situ correction and resume transmission strategy. when When the value is between the first threshold and the second threshold, it is determined to be a moderate impact failure, and the system adopts a safety checkpoint rollback strategy. when If the score is higher than the second threshold and the subsequent dependency integrity score is lower than the set threshold, it is judged as a non-critical failure, and the system adopts a skip-and-continue strategy.

9. The automatic testing method for a large-scale embodied T / R component based on state awareness according to claim 1, characterized in that, Step S5 specifically includes the following steps: S5.1, the large model cognitive layer uses a time window merging algorithm to perform time-series alignment between the RF measurement logs received by the instrument state machine agent module and the physical state logs collected by the physical boundary monitoring module, and constructs a multimodal test record with the test step identifier as the primary key. S5.2, the large model cognitive layer performs chain-like root cause reasoning based on the constructed multimodal test records, following the logical link of failure identification, feature extraction, causal determination, mechanism matching, and conclusion output, to generate a structured fault report.

10. The automatic testing method for a state-aware T / R component embodied large model according to claim 9, characterized in that, Step S5.2 specifically includes the following steps: S5.2.1, Radio Frequency Failure Identification: The radio frequency measurement results are compared with the pass / fail criteria to identify all out-of-specification indicators and form a set of radio frequency failure indicators. S5.2.2, Physical feature correlation extraction: For each test step corresponding to the RF failure index, extract the physical features of the test step and the buffer period before and after the test step. The physical features include temperature statistical features, VSWR statistical features and current statistical features. S5.2.3, Timing and Causal Determination: Check whether each physical characteristic is abnormal before the RF failure occurs, and determine the direction of the failure cause. S5.2.4, Fault Mechanism Matching: The extracted physical features are matched with patterns in a predefined fault mechanism library to calculate the confidence level of various fault root causes. ; in, It is the first Confidence of the root cause of the failure class It is the temporal causal matching score. It is the matching score between physical characteristics and radio frequency failure characteristics. It is the support score of similar historical cases. , , These are the preset weight coefficients corresponding to the temporal causal matching score, physical feature matching score, and historical similar case support score, respectively. S5.2.5 Output a structured fault report, which includes fault type enumeration values, confidence level values, a list of key evidence timestamps supporting the conclusion, suggested retesting steps, and directions for process improvement.