A VME bus data fault test method based on clustering algorithm and protocol stack

By combining the VME protocol stack with the improved Gath-Geva model for bus transaction state modeling and cluster analysis, the problem of inaccurate fault location in the initial stage of VME bus fault testing was solved, achieving higher fault identification accuracy and testing precision.

CN123145146APending Publication Date: 2026-11-20上海泛腾半导体技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing VME bus fault testing methods struggle to accurately identify the fault initiation stage and easily confuse protocol path anomalies with normal fluctuations, resulting in a lack of stable correspondence between fault types and fault initiation stages.

Method used

By combining the VME protocol stack, the improved Gath-Geva model, and single-factor counterfactual testing, and through bus transaction state modeling, cluster analysis, and fault location, we construct protocol state reachability lattices and propagation tensors, generate runtime state clusters and stage cluster similarities, filter boundary transactions, and conduct single-factor counterfactual testing.

Benefits of technology

It improves the accuracy and reliability of fault identification, clarifies the fault initiation stage, reduces the interference of normal fluctuations on test results, and enhances test precision.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123145146A_ABST
    Figure CN123145146A_ABST
Patent Text Reader

Abstract

The application discloses a kind of based on clustering algorithm and protocol stack VME bus data fault test method, it is related to bus test technical field, including the following steps: step one: data acquisition, generates test data set;Step two: according to VME protocol stack analysis bus transaction, generates protocol state sequence and state time;Step three: establish state node, construct protocol state reachable graph;Step four: extract bus transaction feature, generate propagation tensor;Step five: construct improved Gath-Geva model, generate running state cluster and stage clustering likelihood;Step six: determine fault starting stage, filter boundary transaction;Step seven: generate single-factor counterfactual test transaction, determine minimum protocol disturbance;Step eight: generate membership probability mass transport matrix, update transaction membership and running state cluster, output fault type.The application improves fault location and type identification precision.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of bus testing technology, and in particular to a VME bus data fault testing method based on clustering algorithms and protocol stacks. Background Technology

[0002] With the increasing demands for VME bus communication stability in industrial control systems, testing techniques for VME bus operating status, protocol execution process, and data transmission failures have attracted attention. Existing VME bus fault testing methods acquire bus signals and combine fixed protocol rules, threshold judgments, and conventional clustering algorithms to identify anomalies, but they suffer from the following problems:

[0003] The address channel, data channel, and control response channel signals are time-related. Existing methods often analyze signal amplitude, edge count, and transaction results independently, making it difficult to characterize the migration direction, dwell time, and stage propagation relationship between protocol states, leading to inaccurate fault initiation stage location. VME bus transactions exhibit differentiated characteristics under different transmission types, data widths, and address modifiers. Traditional clustering methods only divide operating states based on feature space distance, without combining protocol state reachability relationships and cross-stage feature propagation, easily confusing protocol path anomalies with normal fluctuations and reducing the accuracy of boundary transaction identification. Existing test results mostly determine fault types based on single abnormal responses, lacking boundary transaction disturbance verification and transaction membership correction processes, making it difficult to determine the key parameters that trigger operating state transitions, resulting in a lack of stable correspondence between fault types and fault initiation stages.

[0004] Therefore, how to provide a VME bus data fault testing method based on clustering algorithms and protocol stacks is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0005] One objective of this invention is to propose a VME bus data fault testing method based on clustering algorithms and protocol stacks. This invention combines the VME protocol stack, an improved Gath-Geva model, and single-factor counterfactual testing to perform state modeling, cluster analysis, and fault location of bus transactions. It has the advantages of accurate fault identification, clear location of faults in the initial stage, and reliable test results.

[0006] A VME bus data fault testing method based on clustering algorithm and protocol stack according to an embodiment of the present invention includes the following steps:

[0007] Step 1: Acquire VME bus signals and test configuration data to generate a test dataset;

[0008] Step 2: Based on the VME protocol stack, parse the test dataset into bus transactions and generate protocol state sequences and state times.

[0009] Step 3: Establish state nodes based on the protocol state sequence, and determine the migration direction and dwell time limit by combining the test configuration data, and construct the protocol state reachability grid;

[0010] Step 4: Extract bus transaction features, calculate intra-stage covariance and cross-stage propagation covariance based on state time, and generate propagation tensor;

[0011] Step 5: Construct an improved Gath-Geva model, configure the protocol prototype path according to the protocol state reachability grid, and calculate the protocol reachability distance and transaction membership degree by combining the protocol prototype path, bus transaction characteristics and propagation tensor, and generate the running state cluster and stage cluster similarity.

[0012] Step 6: Determine the initial stage of the failure based on the similarity of the stage clusters, and filter boundary transactions based on the difference in transaction membership.

[0013] Step 7: Generate a single-factor counterfactual test transaction for the boundary transaction based on the reachability of the protocol state, execute the test and collect the bus response to determine the minimum protocol disturbance;

[0014] Step 8: Generate a membership probability quality transport matrix based on the bus response and minimum protocol disturbance, update the transaction membership degree and running state cluster using the matrix, and output the fault type and fault initiation stage.

[0015] Optionally, step one specifically includes:

[0016] The logic levels and edge times of the address channel, data channel, and control response channel are collected through the bus test interface according to a unified sampling clock, and then aggregated according to the signal channel identifier to generate VME bus signals.

[0017] Read the transmission type, data width, address modifier, migration direction and dwell time limit from the test task, collect them according to the test task identifier, and generate test configuration data;

[0018] The VME bus signals and test configuration data are associated with the sampling time and the test task identifier. The association results are arranged according to the sampling time to generate a test dataset.

[0019] Optionally, step two specifically includes:

[0020] Based on the VME protocol stack, read the transmission type, data width, address modifier and VME bus signal in the test dataset, identify the address strobe valid edge as the transaction start boundary, identify the later of the response completion edge and the address strobe invalid edge as the transaction end boundary, and collect the VME bus signals and test configuration data within the transaction start boundary to the transaction end boundary into a bus transaction.

[0021] Based on the VME protocol stack, the control response channel logic level combination in the bus transaction is mapped to the protocol state. The protocol states are arranged according to the sampling time, and adjacent protocol states with the same state identifier are merged to generate a protocol state sequence.

[0022] Record the sampling time of the first occurrence of each protocol state as the state start time, and record the sampling time before the protocol state transitions as the state end time. Associate the state start time and state end time with the protocol state sequence to generate the state time.

[0023] Optionally, step three specifically includes:

[0024] Extract the state identifier from the protocol state sequence, group protocol states with the same state identifier into state nodes, and write the state start time and state end time corresponding to the protocol state into the state node to generate a state node record.

[0025] Read adjacent state nodes according to the order of the protocol state sequence, determine the transition direction of adjacent state nodes based on the migration direction in the test configuration data, calculate the difference between the state end time and the state start time as the state dwell time, connect adjacent state nodes whose transition direction matches the migration direction and whose state dwell time does not exceed the dwell time limit, and generate a directed migration relationship.

[0026] Starting from each state node in the state node record, perform path search along the directed migration relationship, register the state nodes that can be reached by the path as reachable state nodes, and determine the partial order level based on the order relationship between the state nodes and reachable state nodes.

[0027] For paired state nodes, the state node with the lowest partial order level is selected from the commonly reachable state nodes as the upper bound node, and the state node with the highest partial order level is selected from the commonly predecessor state nodes as the lower bound node. The state nodes are organized according to the partial order level, upper bound node, lower bound node and directed migration relationship to construct the protocol state reachability grid.

[0028] Optionally, step four specifically involves:

[0029] Extract the transmission type, data width, address modifier, and control response channel edge count from the bus transaction. Extract the state dwell time and state transition time corresponding to the protocol state based on the state time. Arrange the extraction results according to the protocol state sequence to generate bus transaction features.

[0030] Based on the partial order hierarchy in the protocol state reachability grid, state nodes are assigned to protocol stages, and bus transaction characteristics are mapped to the corresponding protocol stages according to the state start time and state end time to generate protocol stage characteristics.

[0031] The intra-stage covariance is calculated based on the changing relationship of protocol stage characteristics within the same protocol stage, and the cross-stage propagation covariance is calculated based on the changing relationship of protocol stage characteristics between adjacent protocol stages connected by a directed migration relationship.

[0032] Arrange the intra-stage covariances according to the partial order hierarchy, arrange the cross-stage propagation covariances according to the directed migration relationship, associate the arrangement results with the corresponding protocol stages, and generate a propagation tensor.

[0033] Optionally, step five specifically includes:

[0034] The bus transaction characteristics are input into the Gath-Geva model. Based on the distribution of the bus transaction characteristics, the running state clusters are determined. The cluster centers and transaction membership degrees of the running state clusters are calculated to construct an improved Gath-Geva model.

[0035] For each running state cluster, the directed migration path traversed by the protocol state sequence is extracted from the protocol state reachable grid. The directed migration path is arranged according to the order of appearance of the state nodes within the running state cluster to generate the protocol prototype path.

[0036] Based on the protocol prototype path, the intra-stage covariance and cross-stage propagation covariance are extracted from the propagation tensor. Combined with the degree of deviation of bus transaction characteristics from the cluster center, the degree of path deviation of protocol state sequence from the protocol prototype path, and the degree of time deviation of state dwell time from dwell time limit, the protocol reachable distance is calculated.

[0037] Calculate the transaction membership degree based on the protocol reachability distance, update the cluster center and protocol prototype path using the transaction membership degree, classify the bus transaction into the running state cluster with the highest transaction membership degree, and calculate the stage cluster similarity corresponding to the protocol stage according to the protocol prototype path.

[0038] Optionally, step six specifically includes:

[0039] In the improved Gath-Geva model, a stage likelihood decrease threshold and a membership difference threshold are set, and the stage cluster similarity of bus transactions in the corresponding protocol stages is arranged according to the protocol prototype path.

[0040] The stage cluster likelihood decrease is calculated sequentially between adjacent protocol stages, and the protocol stage after which the stage cluster likelihood decrease first reaches the stage likelihood decrease threshold is determined as the fault initiation stage.

[0041] Extract the maximum and second-largest transaction membership from the transaction membership corresponding to the bus transaction, and calculate the transaction membership difference between the maximum and second-largest transaction membership.

[0042] Bus transactions whose membership difference is not greater than the membership difference threshold are selected as boundary transactions, and boundary transactions are associated with the fault initiation stage.

[0043] Optionally, step seven specifically includes:

[0044] Extract the fault initiation stage associated with the boundary transaction, locate the state node in the protocol state reachable grid based on the fault initiation stage, read the state dwell time, state transition time and control response channel edge count associated with the state node, register the reading results as single-factor test parameters and record the original parameter values;

[0045] Select single-factor test parameters one by one, change the selected single-factor test parameters according to the incremental adjustment range, keep the bus transaction characteristics that are not selected unchanged, map the adjusted protocol state sequence to the protocol state reachable grid, retain the adjustment results that the migration direction conforms to the directed migration relationship and the state stay time does not exceed the stay time limit, and generate single-factor counterfactual test transactions.

[0046] The single-factor counterfactual test transactions are executed in ascending order of adjustment magnitude and the bus response is collected. The bus response is parsed according to the VME protocol stack. The parsed bus transaction characteristics are input into the improved Gath-Geva model to determine the running state cluster corresponding to the bus response.

[0047] The running state cluster corresponding to the bus response is compared with the running state cluster corresponding to the boundary transaction. The adjustment range when the running state cluster first changes is recorded. The adjustment range corresponding to the single-factor test parameters is compared, and the adjustment range with the smallest value is determined as the minimum protocol disturbance.

[0048] Optionally, step eight specifically includes:

[0049] Extract the transaction membership degree corresponding to the boundary transaction and the transaction membership degree corresponding to the bus response of the minimum protocol disturbance. Establish the mapping relationship between transaction membership degrees according to the running state clusters and determine the running state clusters where the transaction membership degree decreases and the running state clusters where the transaction membership degree increases.

[0050] Based on the decreasing and increasing directions of transaction membership, the membership probability quality is transported from the running state cluster where the transaction membership decreases to the running state cluster where the transaction membership increases, and the remaining membership probability quality is retained in the original running state cluster, thus generating a membership probability quality transport matrix.

[0051] The membership degree of the boundary transactions is adjusted by using the membership probability quality transport matrix, the membership degree of the updated transactions is generated, the boundary transactions are assigned to the running state cluster with the highest membership degree of the updated transactions, and the running state clusters are updated according to the division results.

[0052] Read the single-factor test parameters corresponding to the minimum protocol disturbance, combine them with the updated operating state cluster and fault initiation stage, determine the fault type based on the VME protocol stack, and output the fault type and fault initiation stage.

[0053] Optionally, the fault type is determined based on the single-factor test parameter corresponding to the minimum protocol disturbance. When the single-factor test parameter is the state dwell time, it is determined to be a state dwell time exceeding limit fault. When the single-factor test parameter is the state transition time, it is determined to be a state transition delay fault. When the single-factor test parameter is the number of control response channel edges, it is determined to be a control response edge abnormal fault.

[0054] The beneficial effects of this invention are:

[0055] This invention uses the VME protocol stack to correlate and parse bus signals and test configuration data, converting bus transactions into protocol state sequences with state moments and transition relationships. Based on the transition direction, dwell time limit, and partial order hierarchy, a protocol state reachability grid is constructed, thus incorporating the timing correlation between address channels, data channels, and control response channels into a unified analysis process. By calculating the intra-stage covariance within a protocol stage and the cross-stage propagation covariance between adjacent protocol stages, a propagation tensor reflecting characteristic changes and state propagation relationships is generated. This helps reduce information fragmentation caused by analyzing signal amplitude or edge counts individually, improving the completeness of the VME bus protocol execution process and the accuracy of fault initiation location.

[0056] This invention introduces protocol state reachability, protocol prototype path, and propagation tensor into an improved Gath-Geva model, making the partitioning of operating state clusters subject to bus transaction characteristic distribution, protocol path constraints, and state time limit constraints simultaneously, reducing the degree of confusion between normal fluctuations and protocol anomalies. For boundary transactions with similar transaction membership degrees, single-factor counterfactual test transactions are generated. The minimum protocol disturbance is determined through bus response, and the membership probability quality transport matrix is ​​used to update the transaction membership degree and operating state cluster. This verifies the key single-factor test parameters that trigger operating state transitions and associates state dwell over-limit faults, state transition delay faults, and control response edge anomaly faults with the corresponding fault initiation stages in the output, thereby improving the reliability, interpretability, and test accuracy of fault identification results. Attached Figure Description

[0057] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings:

[0058] Figure 1 This is a flowchart of a VME bus data fault testing method based on clustering algorithm and protocol stack proposed in this invention;

[0059] Figure 2 This is a schematic diagram illustrating the protocol state reachability construction of a VME bus data fault testing method based on clustering algorithm and protocol stack proposed in this invention. Detailed Implementation

[0060] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, illustrating only the basic structure of the invention, and therefore only show the components relevant to the invention.

[0061] refer to Figures 1-2 A VME bus data fault testing method based on clustering algorithm and protocol stack includes the following steps:

[0062] Step 1: Acquire VME bus signals and test configuration data to generate a test dataset;

[0063] Step 2: Based on the VME protocol stack, parse the test dataset into bus transactions and generate protocol state sequences and state times.

[0064] Step 3: Establish state nodes based on the protocol state sequence, and determine the migration direction and dwell time limit by combining the test configuration data, and construct the protocol state reachability grid;

[0065] Step 4: Extract bus transaction features, calculate intra-stage covariance and cross-stage propagation covariance based on state time, and generate propagation tensor;

[0066] Step 5: Construct an improved Gath-Geva model, configure the protocol prototype path according to the protocol state reachability grid, and calculate the protocol reachability distance and transaction membership degree by combining the protocol prototype path, bus transaction characteristics and propagation tensor, and generate the running state cluster and stage cluster similarity.

[0067] Step 6: Determine the initial stage of the failure based on the similarity of the stage clusters, and filter boundary transactions based on the difference in transaction membership.

[0068] Step 7: Generate a single-factor counterfactual test transaction for the boundary transaction based on the reachability of the protocol state, execute the test and collect the bus response to determine the minimum protocol disturbance;

[0069] Step 8: Generate a membership probability quality transport matrix based on the bus response and minimum protocol disturbance, update the transaction membership degree and running state cluster using the matrix, and output the fault type and fault initiation stage.

[0070] In this embodiment, step one specifically includes:

[0071] A unified sampling clock is established through the bus test interface. The sampling pulse generated by the unified sampling clock is used as the common time reference for the address channel, data channel and control response channel. When each sampling pulse arrives, the logic level of each channel is read. The logic levels corresponding to two consecutive sampling pulses are compared. When the logic level changes, the edge direction and edge time are recorded. When the logic level does not change, the current logic level record is maintained. The sampling results of the address channel, data channel and control response channel are collected according to the signal channel identifier. The logic level, edge direction, edge time and signal channel identifier are combined to form the VME bus signal.

[0072] Read the pre-set transmission type, data width, address modifier, migration direction, and dwell time limit in the test task. Record the transmission type as the read / write method and transmission cycle category of the bus transaction, the data width as the number of data bits corresponding to a single bus transmission, the address modifier as the address space type accessed by the bus transaction, the migration direction as the allowed transition direction between protocol states, and the dwell time limit as the allowed duration of the protocol state from the entry time to the exit time. Write the reading results into the same configuration record according to the test task identifier to generate test configuration data.

[0073] Based on the sampling time, the VME bus signals are divided between the start and end times of the corresponding test tasks. Each VME bus signal is associated with the corresponding test configuration data according to the test task identifier. The associated VME bus signals are arranged in ascending order of sampling time, and the logic level, edge direction, edge time, signal channel identifier, transmission type, data width, address modifier, migration direction, dwell time limit and test task identifier are retained in the arrangement result to generate a test dataset.

[0074] In this embodiment, step two specifically includes:

[0075] Based on the VME protocol stack, the transmission type, data width, address modifier, and VME bus signals in the test dataset are read. The direction of change of the logic level corresponding to the address strobe is checked according to the sampling time. The edge time when the address strobe changes from an invalid level to an effective level is registered as the transaction start boundary. Then, the response completion status in the control response channel and the edge time when the address strobe changes from an effective level to an invalid level are checked. The sampling time corresponding to the response completion edge and the address strobe failure edge are compared, and the sampling time with the later time sequence is selected as the transaction end boundary. VME bus signals and test configuration data with the same test task identifier within the range from the transaction start boundary to the transaction end boundary are grouped into the same data record to form a bus transaction.

[0076] Based on the logic level relationship of the control response channel specified in the VME protocol stack, the combination of logic level of the control response channel in the bus transaction is read according to the sampling time. Each combination of logic level of the control response channel is mapped to the corresponding protocol state in the VME protocol stack. The mapped protocol states are sorted according to the sampling time. Protocol states that are adjacent in time and have the same state identifier are merged into a continuous state interval. The state transition relationship formed when the state identifier changes is retained, and a protocol state sequence is generated.

[0077] For each protocol state in the protocol state sequence, the sampling time corresponding to the first occurrence of the protocol state is read and recorded as the state start time. The sampling time corresponding to the sampling period before the first occurrence of the next protocol state is read and recorded as the state end time. The state start time and state end time are written into the protocol state sequence according to the state identifier, so that each protocol state in the protocol state sequence corresponds to a determined duration interval, and the state time is generated.

[0078] In this embodiment, step three specifically includes:

[0079] Extract the state identifier corresponding to each protocol state in the protocol state sequence, merge the protocol states according to the state identifier, map the protocol states with the same state identifier to the same state node, and write the start time and end time of each state corresponding to each occurrence into the state node in the order of occurrence of the protocol state in the protocol state sequence, so that the state node records the occurrence position and duration corresponding to the same state identifier, and generates a state node record.

[0080] Read the state nodes corresponding to adjacent protocol states one by one according to the order of the protocol state sequence. Compare the transition direction of the previous state node to the next state node with the migration direction in the test configuration data. At the same time, subtract the state start time from the state end time to obtain the state dwell time. Then compare the state dwell time with the dwell time limit in the test configuration data. Establish a one-way connection for adjacent state nodes whose transition direction matches the migration direction and whose state dwell time does not exceed the dwell time limit to generate a directed migration relationship.

[0081] The state nodes in the state node record are selected sequentially as the starting point of the path search. The state nodes are visited layer by layer along the directed migration relationship according to the connection direction. The state nodes that can be reached from the starting point of the path search are registered as reachable state nodes. The partial order relationship of the state nodes is determined according to the arrival order between the starting point of the path search and the reachable state nodes. Then, the partial order level is determined according to the hierarchical position of the state nodes from the starting point of the path search in the partial order relationship.

[0082] For each pair of state nodes, extract the common reachable state nodes and the common predecessor state nodes. Arrange the common reachable state nodes from low to high according to the partial order level and select the state node with the lowest partial order level as the upper bound node. Arrange the common predecessor state nodes from high to low according to the partial order level and select the state node with the highest partial order level as the lower bound node. Then, organize the state nodes according to the partial order level, upper bound node, lower bound node and directed migration relationship to construct the protocol state reachability grid.

[0083] In this embodiment, step four specifically includes:

[0084] Read the transmission type, data width, and address modifier from the bus transaction. Identify the logic level transitions of the control response channel one by one during the sampling period corresponding to the bus transaction. Record the number of logic level transitions as the control response channel edge count. Subtract the state start time from the state end time to obtain the state dwell time based on the state time. Subtract the state end time of the previous protocol state from the state start time of the next protocol state to obtain the state transition time. Then associate the transmission type, data width, address modifier, control response channel edge count, state dwell time, and state transition time according to the arrangement position of the protocol state sequence to generate bus transaction characteristics.

[0085] Read the partial order level corresponding to the state node in the protocol state reachable grid, classify the state nodes with the same partial order level and in the same directed migration path position into the corresponding protocol stage, then read the state start time and state end time associated with the state node, map the bus transaction features that fall within the time range between the state start time and the state end time to the corresponding protocol stage, and organize the mapping results according to the arrangement position of the bus transaction in the protocol state sequence to generate protocol stage features.

[0086] For the characteristics of protocol stages within the same protocol stage, the degree of synchronization change of transmission type, data width, address modifier, number of control response channel edges, state dwell time and state transition time between different bus transactions is statistically analyzed. The degree of synchronization change is written into the corresponding protocol stage to generate the covariance within the stage. Then, the characteristics of adjacent protocol stages are read along the directed migration relationship, and the degree of correlation between the changes in the characteristics of the previous protocol stage and the characteristics of the next protocol stage is statistically analyzed to generate the cross-stage propagation covariance.

[0087] The arrangement of intra-stage covariances is determined according to the partial order hierarchy in the reachable lattice of the protocol state. The arrangement of cross-stage propagation covariances is determined according to the connection direction of the directed migration relationship. The intra-stage covariances are written into the corresponding protocol stage positions, and the cross-stage propagation covariances are written into the positions between adjacent protocol stages. This allows the propagation tensor to record the feature associations within the protocol stages and the feature propagation relationships between protocol stages, thus generating the propagation tensor.

[0088] In this embodiment, step five specifically includes:

[0089] Bus transaction features are input into the Gath-Geva model. Each bus transaction feature is used as a clustering sample. The running state clusters are divided according to the distribution position of the bus transaction features in the feature space. The cluster center is determined according to the weighted relationship between the bus transaction features and the transaction membership degree within the running state cluster. Then, the transaction membership degree is determined according to the distribution relationship between the bus transaction features and the cluster center. The running state clusters, cluster centers and transaction membership degrees are written into the Gath-Geva model to construct an improved Gath-Geva model.

[0090] For each running state cluster, read the protocol state sequence corresponding to the bus transaction within the running state cluster, map the state nodes in the protocol state sequence to the protocol state reachable grid, extract the directed migration path that the state nodes pass through in sequence along the directed migration relationship in the protocol state reachable grid, count the occurrence order of the state nodes within the running state cluster, arrange the directed migration paths according to the occurrence order, and determine the arrangement result that can characterize the protocol execution process of the running state cluster as the protocol prototype path.

[0091] According to the protocol stages in the protocol prototype path, the intra-stage covariance of the corresponding protocol stage and the cross-stage propagation covariance between adjacent protocol stages are read from the propagation tensor. The intra-stage covariance characterizes the degree of deviation of bus transaction features from the cluster center within the protocol stage, and the cross-stage propagation covariance characterizes the degree of deviation of bus transaction features when they are transmitted along the directed migration path. The protocol state sequence is then compared with the protocol prototype path node by node to determine the degree of path deviation. The state dwell time and dwell time limit are compared with each state node to determine the degree of duration deviation. The protocol reachable distance is calculated by combining the degree of feature deviation, the degree of path deviation, and the degree of duration deviation.

[0092] The degree of a bus transaction's affiliation to each running state cluster is determined based on the reachability distance of the protocol. After normalizing the degree of affiliation, a transaction membership degree is generated. The weights of bus transaction features within the running state cluster are re-determined using the transaction membership degree, and the cluster centers are updated. The state nodes are rearranged according to the updated running state clusters, and the protocol prototype path is updated. The bus transaction is assigned to the running state cluster with the highest transaction membership degree. Then, the degree to which the bus transaction features conform to the distribution of running state clusters at each protocol stage is calculated according to the protocol prototype path, and the stage cluster similarity is generated.

[0093] In this embodiment, step six specifically includes:

[0094] In the improved Gath-Geva model, a stage likelihood decrease threshold and a membership difference threshold are set respectively. The stage likelihood decrease threshold is used as the benchmark for judging the degree of change in the cluster distribution of adjacent protocol stages, and the membership difference threshold is used as the benchmark for judging the degree of certainty of bus transaction affiliation. The protocol prototype path corresponding to the bus transaction is read, and the stage cluster likelihood is arranged according to the order of the protocol stages in the protocol prototype path, so that each stage cluster likelihood is associated with the corresponding protocol stage.

[0095] According to the arrangement direction of the protocol prototype path, the stage cluster similarity corresponding to the adjacent protocol stages is read sequentially. The stage cluster similarity of the previous protocol stage is subtracted from the stage cluster similarity of the next protocol stage to generate the stage cluster similarity decrease. Then, the stage cluster similarity decrease is compared with the stage likelihood decrease threshold item by item according to the order of the protocol stages. The next protocol stage corresponding to the first time the stage cluster similarity decrease reaches the stage likelihood decrease threshold is determined as the fault initiation stage.

[0096] Read the transaction membership degree generated for bus transactions by the improved Gath-Geva model, sort the transaction membership degree values ​​from largest to smallest, determine the transaction membership degree at the top of the list as the largest transaction membership degree, determine the transaction membership degree at the second largest transaction membership degree as the second largest transaction membership degree, and then subtract the second largest transaction membership degree from the largest transaction membership degree to generate the transaction membership degree difference.

[0097] The membership difference of a transaction is compared with the membership difference threshold. When the membership difference of a transaction is not greater than the membership difference threshold, it is determined that the difference in the affiliation of the bus transaction between the running state clusters does not meet the distinction requirements. The bus transaction is then screened as a boundary transaction. Based on the protocol prototype path corresponding to the boundary transaction, the boundary transaction is associated with the already determined fault initiation stage.

[0098] In this embodiment, step seven specifically includes:

[0099] Extract the fault initiation phase associated with the boundary transaction, find the state node corresponding to the fault initiation phase in the protocol state reachable grid, read the state start time and state end time of the state node in the boundary transaction, determine the state dwell time based on the state start time and state end time, determine the state transition time based on the state time corresponding to the adjacent state node, and count the number of logic level transitions of the control response channel during the state node's duration to obtain the control response channel edge count. Record the state dwell time, state transition time and control response channel edge count as single-factor test parameters, and save the original parameter values ​​corresponding to each single-factor test parameter in the boundary transaction.

[0100] Select single-factor test parameters one by one according to the registration order of the single-factor test parameters. Take the original parameter value as the adjustment starting point, change the currently selected single-factor test parameters according to the set incremental adjustment range, and keep the bus transaction characteristics that are not selected in the boundary transaction unchanged. Update the state time of the corresponding state node and the number of control response channel edges according to the adjusted single-factor test parameters to form the adjusted protocol state sequence. Map the adjusted protocol state sequence to the protocol state reachable grid, check whether the transition direction between adjacent state nodes conforms to the directed migration relationship, and check whether the state dwell time does not exceed the dwell time limit. Write the adjustment result that satisfies both the directed migration relationship and the dwell time limit into the test transaction to generate a single-factor counterfactual test transaction.

[0101] For single-factor counterfactual test transactions formed by the same single-factor test parameters, the tests are executed sequentially in order of increasing adjustment magnitude. During each test, the bus response generated by the VME bus is collected. The transaction start boundary and transaction end boundary in the bus response are identified according to the VME protocol stack. The VME bus signals within the transaction start boundary to the transaction end boundary are parsed as bus transactions. The bus transaction features are then extracted according to the protocol state sequence corresponding to the bus transaction. The bus transaction features are input into the improved Gath-Geva model to calculate the transaction membership degree of the bus response to the running state cluster. The running state cluster with the highest transaction membership degree is determined as the running state cluster corresponding to the bus response.

[0102] The running state clusters obtained from each test are compared with the running state clusters corresponding to the boundary transactions. When the running state cluster corresponding to the bus response is different from the running state cluster corresponding to the boundary transaction for the first time, the adjustment range used in this test is recorded, and the adjustment range of the current single-factor test parameter is stopped. Then, the adjustment ranges corresponding to each single-factor test parameter are compared numerically, and the adjustment range with the smallest value is determined as the minimum protocol disturbance.

[0103] In this embodiment, step eight specifically includes:

[0104] Extract the transaction membership degree corresponding to the boundary transaction in the improved Gath-Geva model, and extract the transaction membership degree of the bus response corresponding to the minimum protocol disturbance. Associate the two sets of transaction membership degrees item by item according to the running state cluster identifier. Compare the direction of change of transaction membership degree of the same running state cluster before and after the execution of the single-factor counterfactual test transaction. Determine the running state cluster with decreased transaction membership degree as the membership probability quality output position, and determine the running state cluster with increased transaction membership degree as the membership probability quality receiving position.

[0105] Based on the relationship between the transaction membership degree changes between the output position and the receiving position of the membership probability quality, the membership probability quality of the boundary transaction that is reduced in the running state cluster with decreased transaction membership degree is transported to the running state cluster with increased transaction membership degree. The membership probability quality that is not transported is retained in the original running state cluster. The transport relationship between the running state clusters is recorded according to the transport direction of the membership probability quality, and a membership probability quality transport matrix is ​​generated.

[0106] The membership degree of the boundary transactions is adjusted by using the membership probability quality transport matrix, so that the membership degree of the transactions is redistributed according to the transport relationship between the running state clusters, and the updated membership degree of the transactions is generated. The updated membership degree of the boundary transactions to each running state cluster is compared, and the boundary transactions are assigned to the running state cluster with the largest updated membership degree. The running state clusters are updated according to the division results of the boundary transactions.

[0107] Read the single-factor test parameters corresponding to the minimum protocol disturbance, determine the protocol state changes reflected by the single-factor test parameters based on the VME protocol stack, determine the fault type corresponding to the boundary transaction by combining the updated running state cluster, establish a correspondence between the fault type and the fault initiation stage associated with the boundary transaction, and output the fault type and fault initiation stage.

[0108] In this embodiment, the fault type is determined based on the single-factor test parameter corresponding to the minimum protocol disturbance. When the single-factor test parameter is the state dwell time, it is determined to be a state dwell time exceeding the limit fault. When the single-factor test parameter is the state transition time, it is determined to be a state transition delay fault. When the single-factor test parameter is the number of control response channel edges, it is determined to be a control response edge abnormal fault.

[0109] Example 1: To verify the feasibility of this invention in practice, it was applied to a fault test scenario of an industrial control chassis based on the VME bus. The industrial control chassis is equipped with a main control board, a data acquisition board, a communication board, and an execution control board. The boards communicate with each other via the VME bus for address access, data transmission, and control response. During the test, it was found that control response edge jitter, prolonged state dwell time, and state transition delays can all cause bus transaction anomalies. However, abnormal signals are often mixed with normal load fluctuations. Using a single threshold can easily lead to normal transactions being identified as faulty transactions, and it is also difficult to determine which protocol stage the fault started from. To cover different operating states, the test data included single read transactions, single write transactions, block transfer transactions, and bus transactions corresponding to different data widths. A total of 4800 bus transactions were collected, including 4200 normal transactions and 600 controlled abnormal transactions. The abnormal transactions included 220 state dwell time exceeding limits faults, 190 state transition delay faults, and 190 control response edge anomalous faults.

[0110] During application scenarios, the logic levels and edge times of the address, data, and control response channels are collected via the bus test interface according to a unified sampling clock. Simultaneously, the transmission type, data width, address modifier, migration direction, and dwell time are read. A correlation is established based on the sampling time and test task identifier to form a test dataset. The VME protocol stack identifies the transaction start and end boundaries, parses the VME bus signals within the sampling range into bus transactions, and maps the control response channel logic levels to protocol states. A protocol state sequence is generated according to the order of their occurrence, recording the state start and end times to obtain the state dwell time and transition time. State nodes are established using state identifiers, directed migration relationships are filtered using migration direction and dwell time, and a protocol state reachability grid is constructed based on reachable state nodes, partial order levels, upper bound nodes, and lower bound nodes.

[0111] The transmission type, data width, address modifier, number of control response channel edges, state dwell time, and state transition time are extracted from bus transactions. Protocol stage characteristics are formed according to protocol stages, and the intra-stage covariance and cross-stage propagation covariance are calculated to generate a propagation tensor. These bus transaction characteristics are input into an improved Gath-Geva model. Protocol prototype paths are configured based on the protocol state reachability grid. Protocol reachability distances are calculated by the deviation of bus transaction characteristics from cluster centers, the path deviation of protocol state sequences from protocol prototype paths, and the duration deviation of state dwell time from dwell time limits. This yields transaction membership, running state clusters, and stage cluster likelihood. Protocol stages where the stage cluster likelihood decreases for the first time to the stage likelihood decrease threshold are identified as fault initiation stages. Bus transactions where the difference between the membership degree of the largest and second-largest transactions is not greater than the membership degree difference threshold are selected as boundary transactions.

[0112] For boundary transactions, the state dwell time, state transition time, and control response channel edge count were adjusted to generate a one-factor counterfactual test transaction while keeping other bus transaction characteristics unchanged. The one-factor counterfactual test transaction was executed, and bus responses were collected. The minimum adjustment magnitude at the first transition of the running state cluster was determined as the minimum protocol disturbance. Then, a membership probability quality transport matrix was generated based on the bus response, and the transaction membership degree and running state cluster were updated. A comparison scheme was set up during the verification process. The comparison scheme used a fixed threshold combined with the standard Gath-Geva model, clustering only based on bus transaction characteristics, without configuring protocol state reachability, protocol prototype paths, propagation tensors, one-factor counterfactual tests, or membership probability quality transport matrices. Both schemes were tested using the same 4800 bus transactions, and the results are shown in Table 1.

[0113] Table 1 Comparison of Fault Test Performance Comparison indicators Comparison Plan Invention Solution Accuracy of fault transaction identification 88.6% 96.8% Accuracy of fault location in the initial stage 81.3% 94.5% Fault type identification accuracy 84.7% 95.2% Normal transaction false alarm rate 7.9% 2.6% Correct identification rate of boundary transactions 76.5% 92.1% Number of 600 abnormal transactions missed 68 articles 19 articles

[0114] As shown in Table 1, the present invention improves the fault initiation stage location accuracy from 81.3% to 94.5% by constraining the protocol state transition range through protocol state reachability constraints and utilizing propagation tensors to characterize feature changes within and between protocol stages. The improved Gath-Geva model, combined with protocol reachability distance, reduces the interference of normal load fluctuations on the division of operating state clusters, lowering the false alarm rate of normal transactions from 7.9% to 2.6%. Single-factor counterfactual testing and the membership probability quality transport matrix can verify the key single-factor test parameters that trigger operating state transitions, achieving a fault type identification accuracy of 95.2% and reducing the number of missed abnormal transactions from 68 to 19. The results demonstrate that the present invention can accurately identify VME bus faults, locate the fault initiation stage, and distinguish between state dwell time exceeding limits faults, state transition delay faults, and control response edge abnormal faults.

[0115] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.

Claims

1. A VME bus data fault testing method based on clustering algorithm and protocol stack, characterized in that, Includes the following steps: Step 1: Acquire VME bus signals and test configuration data to generate a test dataset; Step 2: Based on the VME protocol stack, parse the test dataset into bus transactions and generate protocol state sequences and state times. Step 3: Establish state nodes based on the protocol state sequence, and determine the migration direction and dwell time limit by combining the test configuration data, and construct the protocol state reachability grid; Step 4: Extract bus transaction features, calculate intra-stage covariance and cross-stage propagation covariance based on state time, and generate propagation tensor; Step 5: Construct an improved Gath-Geva model, configure the protocol prototype path according to the protocol state reachability grid, and calculate the protocol reachability distance and transaction membership degree by combining the protocol prototype path, bus transaction characteristics and propagation tensor, and generate the running state cluster and stage cluster similarity. Step 6: Determine the initial stage of the failure based on the similarity of the stage clusters, and filter boundary transactions based on the difference in transaction membership. Step 7: Generate a single-factor counterfactual test transaction for the boundary transaction based on the reachability of the protocol state, execute the test and collect the bus response to determine the minimum protocol disturbance; Step 8: Generate a membership probability quality transport matrix based on the bus response and minimum protocol disturbance, update the transaction membership degree and running state cluster using the matrix, and output the fault type and fault initiation stage.

2. The VME bus data fault testing method based on clustering algorithm and protocol stack according to claim 1, characterized in that, Step one specifically involves: The logic levels and edge times of the address channel, data channel, and control response channel are collected through the bus test interface according to a unified sampling clock, and then aggregated according to the signal channel identifier to generate VME bus signals. Read the transmission type, data width, address modifier, migration direction and dwell time limit from the test task, collect them according to the test task identifier, and generate test configuration data; The VME bus signals and test configuration data are associated with the sampling time and the test task identifier. The association results are arranged according to the sampling time to generate a test dataset.

3. The VME bus data fault testing method based on clustering algorithm and protocol stack according to claim 1, characterized in that, Step two specifically involves: Based on the VME protocol stack, read the transmission type, data width, address modifier and VME bus signal in the test dataset, identify the address strobe valid edge as the transaction start boundary, identify the later of the response completion edge and the address strobe invalid edge as the transaction end boundary, and collect the VME bus signals and test configuration data within the transaction start boundary to the transaction end boundary into a bus transaction. Based on the VME protocol stack, the control response channel logic level combination in the bus transaction is mapped to the protocol state. The protocol states are arranged according to the sampling time, and adjacent protocol states with the same state identifier are merged to generate a protocol state sequence. Record the sampling time of the first occurrence of each protocol state as the state start time, and record the sampling time before the protocol state transitions as the state end time. Associate the state start time and state end time with the protocol state sequence to generate the state time.

4. The VME bus data fault testing method based on clustering algorithm and protocol stack according to claim 1, characterized in that, Step three specifically involves: Extract the state identifier from the protocol state sequence, group protocol states with the same state identifier into state nodes, and write the state start time and state end time corresponding to the protocol state into the state node to generate a state node record. Read adjacent state nodes according to the order of the protocol state sequence, determine the transition direction of adjacent state nodes based on the migration direction in the test configuration data, calculate the difference between the state end time and the state start time as the state dwell time, connect adjacent state nodes whose transition direction matches the migration direction and whose state dwell time does not exceed the dwell time limit, and generate a directed migration relationship. Starting from each state node in the state node record, perform path search along the directed migration relationship, register the state nodes that can be reached by the path as reachable state nodes, and determine the partial order level based on the order relationship between the state nodes and reachable state nodes. For paired state nodes, the state node with the lowest partial order level is selected from the commonly reachable state nodes as the upper bound node, and the state node with the highest partial order level is selected from the commonly predecessor state nodes as the lower bound node. The state nodes are organized according to the partial order level, upper bound node, lower bound node and directed migration relationship to construct the protocol state reachability grid.

5. The VME bus data fault testing method based on clustering algorithm and protocol stack according to claim 1, characterized in that, Step four specifically involves: Extract the transmission type, data width, address modifier, and control response channel edge count from the bus transaction. Extract the state dwell time and state transition time corresponding to the protocol state based on the state time. Arrange the extraction results according to the protocol state sequence to generate bus transaction features. Based on the partial order hierarchy in the protocol state reachability grid, state nodes are assigned to protocol stages, and bus transaction characteristics are mapped to the corresponding protocol stages according to the state start time and state end time to generate protocol stage characteristics. The intra-stage covariance is calculated based on the changing relationship of protocol stage characteristics within the same protocol stage, and the cross-stage propagation covariance is calculated based on the changing relationship of protocol stage characteristics between adjacent protocol stages connected by a directed migration relationship. Arrange the intra-stage covariances according to the partial order hierarchy, arrange the cross-stage propagation covariances according to the directed migration relationship, associate the arrangement results with the corresponding protocol stages, and generate a propagation tensor.

6. The VME bus data fault testing method based on clustering algorithm and protocol stack according to claim 1, characterized in that, Step five specifically involves: The bus transaction characteristics are input into the Gath-Geva model. Based on the distribution of the bus transaction characteristics, the running state clusters are determined. The cluster centers and transaction membership degrees of the running state clusters are calculated to construct an improved Gath-Geva model. For each running state cluster, the directed migration path traversed by the protocol state sequence is extracted from the protocol state reachable grid. The directed migration path is arranged according to the order of appearance of the state nodes within the running state cluster to generate the protocol prototype path. Based on the protocol prototype path, the intra-stage covariance and cross-stage propagation covariance are extracted from the propagation tensor. Combined with the degree of deviation of bus transaction characteristics from the cluster center, the degree of path deviation of protocol state sequence from the protocol prototype path, and the degree of time deviation of state dwell time from dwell time limit, the protocol reachable distance is calculated. Calculate the transaction membership degree based on the protocol reachability distance, update the cluster center and protocol prototype path using the transaction membership degree, classify the bus transaction into the running state cluster with the highest transaction membership degree, and calculate the stage cluster similarity corresponding to the protocol stage according to the protocol prototype path.

7. The VME bus data fault testing method based on clustering algorithm and protocol stack according to claim 1, characterized in that, Step six specifically involves: In the improved Gath-Geva model, a stage likelihood decrease threshold and a membership difference threshold are set, and the stage cluster similarity of bus transactions in the corresponding protocol stages is arranged according to the protocol prototype path. The stage cluster likelihood decrease between adjacent protocol stages is calculated sequentially, and the protocol stage after which the stage cluster likelihood decrease first reaches the stage likelihood decrease threshold is determined as the fault initiation stage. Extract the maximum and second-largest transaction membership from the transaction membership corresponding to the bus transaction, and calculate the transaction membership difference between the maximum and second-largest transaction membership. Bus transactions whose membership difference is not greater than the membership difference threshold are selected as boundary transactions, and these boundary transactions are associated with the fault initiation stage.

8. The VME bus data fault testing method based on clustering algorithm and protocol stack according to claim 1, characterized in that, Step seven specifically involves: Extract the fault initiation stage associated with the boundary transaction, locate the state node in the protocol state reachable grid based on the fault initiation stage, read the state dwell time, state transition time and control response channel edge count associated with the state node, register the reading results as single-factor test parameters and record the original parameter values; Select single-factor test parameters one by one, change the selected single-factor test parameters according to the incremental adjustment range, keep the bus transaction characteristics that are not selected unchanged, map the adjusted protocol state sequence to the protocol state reachable grid, retain the adjustment results that the migration direction conforms to the directed migration relationship and the state stay time does not exceed the stay time limit, and generate single-factor counterfactual test transactions. The single-factor counterfactual test transactions are executed in ascending order of adjustment magnitude and the bus response is collected. The bus response is parsed according to the VME protocol stack. The parsed bus transaction characteristics are input into the improved Gath-Geva model to determine the running state cluster corresponding to the bus response. The running state cluster corresponding to the bus response is compared with the running state cluster corresponding to the boundary transaction. The adjustment range when the running state cluster first changes is recorded. The adjustment range corresponding to the single-factor test parameters is compared, and the adjustment range with the smallest value is determined as the minimum protocol disturbance.

9. The VME bus data fault testing method based on clustering algorithm and protocol stack according to claim 1, characterized in that, Step eight specifically involves: Extract the transaction membership degree corresponding to the boundary transaction and the transaction membership degree corresponding to the bus response of the minimum protocol disturbance. Establish the mapping relationship between transaction membership degrees according to the running state clusters and determine the running state clusters where the transaction membership degree decreases and the running state clusters where the transaction membership degree increases. Based on the decreasing and increasing directions of transaction membership, the membership probability quality is transported from the running state cluster where the transaction membership decreases to the running state cluster where the transaction membership increases, and the remaining membership probability quality is retained in the original running state cluster, thus generating a membership probability quality transport matrix. The membership degree of the boundary transactions is adjusted by using the membership probability quality transport matrix, the membership degree of the updated transactions is generated, the boundary transactions are assigned to the running state cluster with the highest membership degree of the updated transactions, and the running state clusters are updated according to the division results. Read the single-factor test parameters corresponding to the minimum protocol disturbance, combine them with the updated operating state cluster and fault initiation stage, determine the fault type based on the VME protocol stack, and output the fault type and fault initiation stage.

10. The VME bus data fault testing method based on clustering algorithm and protocol stack according to claim 1, characterized in that, The fault type is determined based on the single-factor test parameters corresponding to the minimum protocol disturbance. When the single-factor test parameter is the state dwell time, it is determined to be a state dwell time exceeding the limit fault. When the single-factor test parameter is the state transition time, it is determined to be a state transition delay fault. When the single-factor test parameter is the number of control response channel edges, it is determined to be a control response edge abnormal fault.