Consistency testing method and device for single-to-wire communication

By extracting the time domain, frequency domain and modulation characteristics of single-to-line communication devices, automatically identifying the protocol type, and dynamically generating test flows, the problems of automation and low efficiency of test equipment in the prior art are solved, and efficient and accurate single-to-line communication device consistency testing is achieved.

CN120128515AActive Publication Date: 2025-06-10INSTR TECH & ECONOMY INST P R CHINA

Patent Information

Application Number
CN202510610578.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-13
Publication Date
2025-06-10
Estimated Expiration
2045-05-13

AI Technical Summary

Technical Problem

Existing consistency testing equipment has limitations when detecting devices that use single-to-line communication. It requires manual setting of communication protocol types and manually configuring test cases, resulting in long test cycles, high cost and prone to missed detection or misjudgment.

Method used

By receiving the communication signals of the device under test, the time domain, frequency domain and modulation characteristics are extracted, the protocol feature vector is generated, and the matching degree analysis is performed through a predefined mapping dictionary to determine the target communication protocol type. Based on the determined protocol, a consistency test flow is dynamically generated, and the signal parameters and judgment thresholds are adjusted through the neural network model to achieve automated testing.

Benefits of technology

Automatic identification and automated testing of single-line communication equipment is realized, which significantly improves testing efficiency, reduces labor costs, and improves the accuracy and reliability of the test.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120128515A_ABST
    Figure CN120128515A_ABST
Patent Text Reader

Abstract

The invention provides a consistency test method and device for single-to-wire communication, and the method comprises the steps: receiving a communication signal transmitted by a tested device, extracting a time domain feature, a frequency domain feature and a modulation feature of the communication signal, generating a protocol feature value, carrying out the dimension reduction processing, and generating a protocol feature vector; performing matching degree analysis on the protocol feature vector and a predefined mapping dictionary, and determining a target communication protocol type with the highest matching degree; based on the determined communication protocol, dynamically generating a consistency test flow through a pre-trained neural network model; configuring a signal generator to inject an excitation signal according to the test flow, and synchronously acquiring various parameters of the tested equipment; based on the real-time feedback data, dynamically adjusting the signal amplitude, frequency and judgment threshold through a pre-trained neural network model; and summarizing feedback data of multiple rounds of tests, and generating a test report of the consistency index. According to the method, the protocol of the tested equipment can be automatically identified, the test flow is generated for the protocol, and the test efficiency is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of equipment testing, and in particular to a method and apparatus for consistency testing of single-pair line communications. Background Art

[0002] With the rapid development of technologies such as industrial automation and the Internet of Things, the demand for testing communication interfaces of various types of equipment continues to grow. Among them, testing equipment that supports single-pair connection is widely used in vehicle networks (such as CAN / LIN bus), industrial control (such as RS-485) and smart sensors due to its simple wiring, strong anti-interference and cost advantages. This type of equipment can simultaneously achieve data transmission and power supply through a single pair of lines, which significantly simplifies the system architecture and becomes an indispensable part of modern communication systems.

[0003] However, existing consistency test equipment has significant limitations in testing devices that use single-pair communication. The current mainstream test solutions usually rely on manual pre-setting of the communication protocol type of the device under test (such as Profibus, etc.), and manual configuration of the test case parameters according to the preset protocol. This model not only requires testers to have multi-protocol expertise, but also requires repeated debugging of test scripts to adapt to different devices, resulting in long test cycles, high labor costs, and easy missed detection or misjudgment due to human error. For example, in a mixed protocol scenario, the test equipment cannot automatically identify the protocol type, and protocol adaptation must be achieved through physical jumpers or software switching, further reducing test efficiency.

[0004] In response to the above problems, how to achieve automated and intelligent testing of single-pair communication equipment has become a key issue that the industry needs to solve urgently. Summary of the invention

[0005] In order to solve the existing technical problems, the present application provides a method and device for consistency testing of single-pair communication.

[0006] In a first aspect, an embodiment of the present application provides a method for consistency testing of single-pair communication, including: Receive the communication signal sent by the device under test, extract the time domain characteristics, frequency domain characteristics and modulation characteristics of the communication signal, generate a protocol feature value, and perform dimensionality reduction processing on the time domain characteristics, frequency domain characteristics and modulation characteristics to generate a protocol feature vector; Perform matching analysis between the protocol feature vector and the predefined mapping dictionary to determine the target communication protocol type with the highest matching degree, wherein the mapping dictionary is generated based on the protocol standard feature library and machine learning model training; Based on the determined communication protocol, the consistency test flow is dynamically generated through the pre-trained neural network model. The test flow includes signal injection parameters, test timing configuration and adaptive decision threshold. Inject an excitation signal according to the test flow configuration of the signal generator, and synchronously collect the physical layer response, link layer frame structure, and power layer parameters of the device under test; Based on the real-time feedback data, dynamically adjust the signal amplitude, frequency, and decision threshold through a pre-trained neural network model; Summarize the feedback data of multiple rounds of tests to generate a test report containing the consistency indicators of the physical layer, link layer, and power layer.

[0007] Optionally, the target communication protocol types include industrial fieldbus protocols, industrial Ethernet protocols, or a combination thereof, where the industrial fieldbus protocols include at least one of single-pair wire communications such as 4-20mA+HART, Profibus, CAN, and Foundation Fieldbus, and the industrial Ethernet protocols include at least one of the protocols in the IEEE 802.3cg series protocols that support single-pair wire.

[0008] Optionally, the dimensionality reduction processing includes: Normalize the time-domain features to eliminate the differences in signal amplitude and time reference; Perform band-pass filtering and power spectral density calibration on the frequency-domain features; Perform carrier frequency offset compensation and noise suppression on the modulation features.

[0009] Optionally, the matching degree analysis includes: Calculate the similarity between the standardized protocol feature vector and each protocol feature vector in the mapping dictionary based on the Euclidean distance; Rank the candidate protocols with similarity higher than the preset threshold; Combine the protocol application scenario context information to select the final target communication protocol type.

[0010] Optionally, the neural network model is trained through supervised learning, and the training data includes historical protocol test data sets, device model libraries, and environmental noise samples. The output of the model is the test flow parameter optimization strategy and the decision threshold adaptation rule.

[0011] Optionally, dynamically adjusting the signal amplitude, frequency, and decision threshold through a pre-trained neural network model specifically includes: Define a test objective function, which includes a weighted combination of test accuracy, time consumption, and energy consumption; Iteratively update the signal injection parameters through the Q-learning algorithm to maximize the objective function.

[0012] Optionally, the consistency test includes physical layer protocol test, link layer protocol test, and power layer protocol test.

[0013] Optionally, the physical layer protocol tests include transmitter output voltage, transmitter output droop rate, transmitter timing jitter, transmitter power spectral density, transmit clock frequency, transmit signal distortion, and receive bit error rate stress tests.

[0014] Optionally, the link layer protocol tests include packet format verification, automatic polarity detection and correction, ESD_ERR4 error handling, FCS error handling, auto-negotiation verification, management restart auto-negotiation, link state failure detection, and link establishment time.

[0015] Optionally, the power layer protocol tests include minimum current consumption, inrush current, in-band ripple noise, out-of-band ripple noise, current change rate, maximum / minimum load voltage events, undervoltage protection, shielding options, and polarity sensitivity.

[0016] Optionally, the time-domain characteristics include: Peak-to-peak output voltage and voltage drift rate; Linearity of the rising / falling edges of the signal waveform; Standard deviation of time jitter within the transmission symbol period; The frequency-domain characteristics include: Fundamental frequency power spectral density and harmonic attenuation slope; Spectrum mask compliance of out-of-band noise; The modulation characteristics include: Carrier clock frequency offset; Distribution characteristics of the signal pre-emphasis coefficient.

[0017] In a second aspect, an embodiment of the present application provides a device for conformance testing of single-pair communication, including the following modules: A feature extraction module, configured to connect through a single pair of lines and receive the communication signal of the device under test, extract the time-domain characteristics, frequency-domain characteristics, and modulation characteristics of the communication signal, and perform dimensionality reduction processing on the characteristics to generate a protocol feature vector; A protocol recognition module, configured to perform a matching degree analysis on the protocol feature vector and a predefined mapping dictionary to determine the target communication protocol type with the highest matching degree, where the mapping dictionary is generated based on a protocol standard feature library and machine learning model training; A test flow generation module, configured to dynamically generate a conformance test flow based on the determined communication protocol through a pre-trained neural network model, where the test flow includes signal injection parameters, test timing configuration, and adaptive decision thresholds; A test execution module, configured to configure a signal generator to inject an excitation signal according to the test flow, synchronously collect the physical layer response, link layer frame structure, and power layer parameters of the device under test, and dynamically adjust the signal amplitude, frequency, and decision threshold through a pre-trained neural network model based on real-time feedback data; A report generation module, configured to summarize feedback data from multiple rounds of tests and generate a test report including consistency metrics for the physical layer, link layer, and power supply layer.

[0018] In the technical solution of this application, by extracting the characteristics of the communication signal of the device under test and generating a feature vector, the protocol type of the device under test is identified, and a test stream for the device under test is dynamically generated in a targeted manner according to the protocol type, which can effectively realize the automatic identification and automatic testing of the device, and effectively improve the work efficiency of testers. Brief Description of the Drawings

[0019] To more clearly illustrate the technical solutions in the embodiments of this application or the background art, the following will describe the drawings required to be used in the embodiments of this application or the background art.

[0020] Figure 1 Shows a schematic structural diagram of a single pair of lines provided by an embodiment of this application.

[0021] Figure 2 Shows a flowchart of a method for consistency testing for single pair line communication provided by an embodiment of this application.

[0022] Figure 3 Shows a flowchart of a method for analyzing the matching degree between a protocol feature vector and a mapping dictionary provided by an embodiment of this application.

[0023] Figure 4 Shows a flowchart of a dimensionality reduction processing method provided by an embodiment of this application.

[0024] Figure 5 Shows a flowchart of a matching degree analysis method provided by an embodiment of this application.

[0025] Figure 6 Shows a schematic structural diagram of a device for consistency testing for single pair line communication provided by an embodiment of this application.

[0026] Figure 7 Shows a signaling diagram of the specific process of a device for consistency testing for single pair line communication provided by an embodiment of this application. Detailed Description of the Embodiments

[0027] In the description of the embodiments of the present invention, those skilled in the art should know that the embodiments of the present invention can be implemented as a method or a device. Therefore, the embodiments of the present invention can be specifically implemented in the following forms: completely hardware, completely software (including firmware, resident software, microcode, etc.), and a combination of hardware and software.

[0028] The embodiments of the present invention describe the methods and devices provided through flowcharts and / or block diagrams.

[0029] It should be understood that each block of the flowchart and / or block diagram, and combinations of blocks in the flowchart and / or block diagram, can be implemented by computer-readable program instructions. These computer-readable program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus to produce a machine, and these computer-readable program instructions, when executed by the computer or other programmable data processing apparatus, produce a device for implementing the functions / operations specified in the blocks of the flowchart and / or block diagram.

[0030] These computer-readable program instructions can also be stored in a computer-readable storage medium that can cause a computer or other programmable data processing apparatus to work in a specific manner. In this way, the instructions stored in the computer-readable storage medium produce an instruction device product that includes instructions for implementing the functions / operations specified in the blocks of the flowchart and / or block diagram.

[0031] The computer-readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device, such that a series of operation steps are executed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable data processing apparatus can provide a process for implementing the functions / operations specified in the blocks of the flowchart and / or block diagram.

[0032] A single pair cable (SPC) is a transmission medium consisting of only one pair of wires, usually used to carry data communication and low-power power supply simultaneously. As Figure 1 shown, its basic structure is composed of two insulated wires twisted together, one for data transmission and the other for power supply to the device. The outer layer can be covered with a shielding layer to suppress electromagnetic interference, and some designs also include a protective sheath to enhance mechanical strength. The conductor material of the single pair cable is mostly copper or copper alloy to ensure good electrical conductivity, while the insulating layer often uses polymer materials such as polyethylene (PE) or polypropylene (PP) to balance dielectric loss and flexibility. In industrial scenarios, single pair cables usually meet strict anti-interference standards, such as using a double shielding structure of metal foil shielding (such as aluminum foil) and braided mesh to meet the stability requirements in harsh environments.

[0033] In the prior art, the applications of single pair lines mainly focus on the fields of industrial automation, automotive electronics and the Internet of Things. For example, industrial communication protocols such as HART (Highway Addressable Remote Transducer) achieve the superimposed transmission of 4-20mA analog signals and digital signals through single pair lines, which are used for the two-way communication of process control instruments; Profibus PA and Foundation Fieldbus H1 use single pair lines to transmit data and supply power in intrinsically safe (Ex i) environments, simplifying the wiring complexity in hazardous areas. In recent years, the 10BASE-T1L Ethernet technology defined by the IEEE 802.3cg standard further expands the capabilities of single pair lines, supporting a transmission distance of up to 1 kilometer at a rate of 10Mbps and providing a maximum power of 52W (PoDL, Power over Data Line) through the same cable, making it a key technology for the interconnection of sensors and actuators in the Industrial Internet of Things (IIoT).

[0034] The core reasons for the wide application of single pair lines lie in their economy and technical adaptability. First of all, compared with traditional multi-pair cables (such as four-pair twisted pairs), single pair lines reduce the number of wires, which can reduce the cable cost and wiring space by more than 60%, significantly saving installation and maintenance costs in large industrial facilities or automotive wire harnesses. Secondly, its characteristics of supporting long-distance transmission and mixed signals (data + power) solve the problem of decentralized power supply for sensors in industrial sites. For example, in an oil refinery, single pair lines can supply power to remote instruments and transmit back data in explosion-proof areas, avoiding the additional deployment of power lines. In addition, the progress of anti-interference design (such as differential signal transmission and shielding optimization) enables stable communication in factories with complex electromagnetic environments, while the promotion of standardization organizations (such as the IEC 61158 series of standards and the automotive Ethernet specifications of the OPEN Alliance) accelerates the maturity of the technology ecosystem. With the development of industry and edge computing, single pair lines, with their flexibility of "one line for multiple uses", are gradually replacing traditional multi-line systems and becoming the preferred infrastructure for the interconnection of intelligent devices.

[0035] With the large-scale deployment of single-pair Ethernet in the industrial control field, the number of low-power devices supporting protocols such as 10BASE-T1L and Profibus PA has increased sharply. However, the protocol compatibility, signal stability, and power supply performance of products from different manufacturers vary widely. For example, in an industrial site, there may be IIoT sensors based on 10BASE-T1L, transmitters using the HART protocol, and actuators compliant with the Foundation Fieldbus H1 standard at the same time. If these devices are directly networked without strict testing, it is easy to cause problems such as excessive communication delay, data packet loss, or power coupling noise. Therefore, when building a stable and reliable industrial control system, it is necessary to verify the full-link performance of single-pair devices.

[0036] In an industrial scenario, a single pair needs to adapt to multiple industrial communication protocols, and the test metrics of the physical layer and data link layer of different protocols vary significantly. Due to the lack of a unified test platform, engineers need to rely on a combination of multiple dedicated instruments to complete cross-protocol verification. For a single-pair gateway that supports multiple protocols simultaneously, testers need to manually select the device type and switch the test script, which undoubtedly greatly increases the workload of testers.

[0037] To solve the above problems, the embodiments of this application provide a method for conformance testing of single-pair communication, as Figure 2 shown. The steps of the method specifically include: Receiving the communication signal sent by the device under test, extracting the time-domain characteristics, frequency-domain characteristics, and modulation characteristics of the communication signal, generating protocol feature values, and performing dimensionality reduction processing on the time-domain characteristics, frequency-domain characteristics, and modulation characteristics to generate protocol feature vectors; Performing a matching degree analysis on the protocol feature vectors and a predefined mapping dictionary to determine the target communication protocol type with the highest matching degree, where the mapping dictionary is generated based on a protocol standard feature library and a machine learning model; Based on the determined communication protocol, dynamically generating a conformance test stream through a pre-trained neural network model. The test stream includes signal injection parameters, test timing configuration, and adaptive decision thresholds; Configuring a signal generator to inject an excitation signal according to the test stream, and synchronously collecting the physical layer response, link layer frame structure, and power supply layer parameters of the device under test; Dynamically adjusting the signal amplitude, frequency, and decision threshold through a pre-trained neural network model based on real-time feedback data; Summarizing the feedback data of multiple rounds of tests to generate a test report including the conformance metrics of the physical layer, link layer, and power supply layer.

[0038] After the system receives the single-pair communication signal of the device under test, it extracts the time-domain features, frequency-domain features, and modulation features of the communication signal to generate protocol feature values. The time-domain features refer to the physical manifestations of the signal in the time dimension, reflecting the regularity, stability, and abnormal distortion of the signal waveform over time. Typical parameters include voltage amplitude (such as peak-to-peak value, DC offset), timing characteristics (rise / fall time, duty cycle, symbol period jitter), waveform integrity (eye diagram opening, overshoot / undershoot amplitude), etc. For example, the time-domain features of the industrial fieldbus Profibus PA are manifested as the unique symmetric rise / fall edges (25 ns ± 5%) of Manchester coding, while the PAM3 modulation of 10BASE-T1L Ethernet presents a three-level eye diagram with its symbol period strictly aligned to 100 ns. The frequency-domain features convert the signal to the frequency domain through Fourier transform to reveal its energy distribution and harmonic components. Key indicators include the ratio of fundamental frequency to harmonic power (such as total harmonic distortion THD), out-of-band noise suppression (spectrum mask compliance), carrier frequency accuracy (such as the 1200 Hz / 2200 Hz frequency offset error of the HART protocol), etc. For example, the FSK modulation superimposed on the 4-20 mA analog signal by the HART protocol has frequency-domain features manifested as discrete spectral spikes at 1200 Hz (logical "1") and 2200 Hz (logical "0"), while the broadband spectrum of 10BASE-T1L needs to meet the flatness requirements from 1.6 MHz to 20 MHz specified by IEEE 802.3cg. The modulation features describe how the signal encodes information through changes in carrier parameters (amplitude, frequency, phase), covering modulation methods (such as FSK, PSK, PAM3), symbol mapping rules (constellation diagram shape), modulation error rate (MER), etc. For example, Foundation Fieldbus H1 uses phase-continuous FSK based on a 31.25 kHz carrier, and its modulation features are reflected in a symbol rate of 1.0 kbps and a ±7.5% frequency deviation tolerance; while the industrial Ethernet EtherCAT uses baseband NRZ coding, and its modulation features are manifested as pulse-width modulation characteristics without a carrier.

[0039] Single-dimensional features cannot comprehensively represent the essential differences of communication protocols. Multi-dimensional features need to be considered comprehensively. For example, both HART and Modbus RTU use FSK modulation (similar in frequency domain), but the time-domain features of HART include the superposition of 4-20mA analog signals, while Modbus RTU is a pure digital signal, and the time-domain amplitude distributions of the two are significantly different. Another example is that both 10BASE-T1L and Profibus PA support single-pair lines, but the former needs to verify the anti-EMI ability through out-of-band noise suppression in the frequency domain (<-40dBc), while the latter relies on the time-domain jitter tolerance (<1UI) to ensure timing stability. Another example: for the same PSK protocol, the phase jump step of Profibus is 180° (BPSK), while some variants of RS-485 use differential PSK (DPSK), and their modulation features are completely different in the constellation diagram distribution. Therefore, this multi-dimensional cross-validation mechanism can effectively avoid misjudgment of single features (such as false peaks in the frequency domain caused by noise interference), and significantly improve the robustness and accuracy of protocol recognition.

[0040] Original feature data usually contains high-dimensional redundant information. For example, time-domain waveform sampling may contain thousands of data points, frequency-domain spectrum analysis may involve the energy distribution of hundreds of frequency bands, and modulation features (such as constellation diagram coordinates) may also generate high-dimensional vectors. These original features not only occupy a large amount of storage and computing resources, but may also cause model overfitting due to noise interference or high correlation between features, reducing the efficiency and accuracy of protocol recognition. Therefore, dimensionality reduction processing for the extracted time-domain features, frequency-domain features, and modulation features is a favorable choice to improve the efficiency of the method. The essence of dimensionality reduction processing is to extract key discriminative features in the low-dimensional space through mathematical methods, eliminate redundancy and retain classification information, so as to construct a more compact and representative protocol feature vector.

[0041] There are multiple options for the specific method of dimensionality reduction, such as principal component analysis (PCA): PCA maps the original features to the orthogonal basis with the largest variance through orthogonal transformation, retaining the main variation directions of the data. For example, for the PAM3 modulation features of the 10BASE-T1L protocol (such as three-level amplitude, symbol interval, etc.), the original time-domain waveform may contain 1000 sampling points, which can be compressed to 10 principal components through PCA. These components can explain more than 95% of the signal energy distribution and eliminate the minor fluctuations caused by high-frequency noise at the same time. Linear discriminant analysis (LDA): LDA maximizes the between-class difference and minimizes the within-class difference during dimensionality reduction, and is applicable to scenarios with known protocol class labels. For example, when distinguishing HART (FSK) from Profibus PA (Manchester coding), LDA can find the optimal projection direction to maximize the separation of the frequency-domain features of HART (1200 / 2200Hz double peaks) and the time-domain features of Profibus (edge symmetry) in the low-dimensional space, thereby improving the clarity of the classification boundary. t-SNE (t-distributed stochastic neighbor embedding): This non-linear method is good at visualizing the clustering structure of high-dimensional data. For example, when analyzing the mixed modulation features of multiple industrial protocols (such as Modbus RTU, Foundation Fieldbus), t-SNE can compress hundreds of dimensions of features to 2-3 dimensions, intuitively showing the distribution clusters of different protocols in the low-dimensional space, and assisting in the construction of the protocol fingerprint library and the detection of abnormal protocols. Autoencoder: The autoencoder realizes non-linear feature compression and reconstruction through a neural network. For example, for 500-dimensional original features including time-domain eye diagrams, frequency-domain power spectra, and modulation error rates, an encoder-decoder structure is designed to compress the data into a 20-dimensional latent space, and the reconstruction error of the decoder is less than 2%. This method can adaptively learn the deep abstract patterns of protocol features and is especially suitable for processing the non-linear feature associations of complex protocols (such as the 10BASE-T1L and TSN fusion protocols). Dimensionality reduction reduces the feature dimension from hundreds to dozens, reducing the computational complexity of protocol matching from O(n²) to the linear level. Dimensionality reduction filters out noise and redundant information, reducing the risk of overfitting. The low-dimensional feature vectors are more easily associated with physical layer metrics, and the dimensionality-reduced feature space can unify the heterogeneous features of different protocols.

[0042] After completing the dimensionality reduction of time-domain, frequency-domain, and modulation features, it is necessary to convert the low-dimensional data into a standardized protocol feature vector through structured coding and feature fusion. The core goal of this process is to integrate multi-dimensional features into a vector form with clear physical meaning and suitable for matching algorithms, so as to support efficient protocol type recognition.

[0043] The features after dimensionality reduction (such as PCA principal components, autoencoder latent variables) usually exist in the form of floating-point number arrays. Exemplarily, the protocol feature vector can be generated through the following steps: standardize (Z-score) or normalize (Min-Max) each feature dimension to eliminate the dimensional difference; assign weights according to the feature importance; concatenate the dimensionality reduction results of time-domain, frequency-domain, and modulation features in a fixed order into a single vector.

[0044] After the protocol feature vector is generated, a matching degree analysis is performed between the protocol feature vector and a predefined mapping dictionary to determine the target communication protocol type with the highest matching degree, where the mapping dictionary is generated based on a protocol standard feature library and machine learning model training. The mapping dictionary is a structured protocol feature database, and its core consists of two parts: a protocol standard feature library and machine learning optimized features. The protocol standard feature library is theoretical parameters extracted based on international communication standards, and these parameters are stored in the form of multi-dimensional vectors. For example, the original feature vector of 10BASE-T1L may contain 30 dimensions such as time-domain amplitude, frequency-domain bandwidth, and modulation error rate; the machine learning optimized features are generated by training measured data through a supervised learning model to generate a more compact and discriminative feature representation.

[0045] The matching degree analysis between the protocol feature vector and the mapping dictionary realizes efficient and accurate protocol type determination through a systematic process. Such as Figure 3As shown, first, data preprocessing is performed on the input feature vector to ensure that its dimension is aligned with the mapping dictionary entries, and the same normalization method (such as Z-score or Min-Max) as that used during dictionary construction is adopted to eliminate the dimension difference. For example, when the input vector contains 10 dimensions of time domain, frequency domain, and modulation features, it is necessary to verify whether its structure is consistent with the protocol feature vector stored in the dictionary. If necessary, alignment is completed by filling default values or truncating redundant dimensions. Subsequently, each eigenvalue is scaled to the range of [0, 1] according to a preset rule to avoid deviation in distance calculation caused by amplitude differences. Next, hierarchical matching is performed to improve efficiency. First, coarse-grained classification is carried out based on key features to narrow the range of candidate protocols. For example, it is determined whether the protocol belongs to the high-frequency Ethernet category (such as 10BASE-T1L) or the low-frequency fieldbus category (such as Profibus PA) by judging the main components in the frequency domain, and then the subcategory (such as FSK or PAM3 encoding) is further screened according to the modulation features. This step can reduce more than 70% of the ineffective computational amount. After determining the candidate protocol subset, it enters the fine-grained similarity calculation stage, and measurement methods such as weighted Euclidean distance or cosine similarity are used to quantify the matching degree between the input vector and the center of each protocol cluster in the dictionary. Specifically, if the weighted Euclidean distance between the input vector and the center of the HART protocol cluster is 0.06, while the distance from the center of the 10BASE-T1L cluster is 1.12, then the HART protocol with a smaller distance is preferentially used as the candidate target. During this process, the feature weights are dynamically assigned based on a random forest or gradient boosting tree model. For example, the frequency domain feature may obtain a weight of 0.8 when distinguishing HART from Modbus, while the time domain feature has a weight of 0.7 when verifying the edge symmetry of Profibus, so as to strengthen the discriminative role of key features. Subsequently, the final protocol type is confirmed through dynamic threshold determination and confidence evaluation. The system sets an adaptive threshold according to the protocol complexity and historical misjudgment rate. For example, an Euclidean distance threshold of 0.1 is set for the easily interfered HART protocol, while a strict threshold of 0.05 is adopted for the 10BASE-T1L with stable signals. If the distance between the input vector and the optimal candidate protocol is lower than the threshold and significantly better than the suboptimal result (such as the minimum distance of 0.06 and the second minimum distance of 0.15), it is determined that the match is successful; if the distances of multiple protocols are close (such as 0.08 and 0.09), a secondary verification mechanism is triggered, such as injecting a specific handshake message into the device under test or performing a physical layer stress test, and the protocol compatibility is further verified through the response data.

[0046] After determining the communication protocol of the device under test, a conformance test stream is dynamically generated through a pre-trained neural network model according to the communication protocol and the type of the device under test. This process deeply integrates protocol specification constraints and real-time environmental parameters to achieve intelligent optimization and adaptive execution of the test process. The pre-trained neural network model adopts a hierarchical multi-task learning architecture. Its input layer receives protocol type encoding, device model features, environmental noise samples, and historical test data, extracts spatio-temporal correlation features through the bidirectional LSTM module and attention mechanism in the hidden layer, and finally generates three sets of core test parameters in the output layer: signal injection parameters, test timing configuration, and adaptive decision threshold.

[0047] In the stage of generating signal injection parameters, the model comprehensively decides the waveform, amplitude, and modulation mode of the excitation signal based on the protocol physical layer specification and device load characteristics. For example, when it is recognized that the device under test is an IIoT gateway supporting Power over Data Line (PoDL) on a single pair of wires, the model will inject a composite waveform of superimposed DC power supply (such as 24V / 500mA) and PAM3 modulation signal, and dynamically compensate for signal attenuation according to the cable length (measured by Time Domain Reflectometry TDR) (such as increasing the amplitude by 5% per 100 meters of cable). For the HART protocol, the model generates an FSK excitation signal (1200Hz / 2200Hz) superimposed on the 4 - 20mA analog signal, and automatically matches the enhanced burst mode timing according to the HART version number marked in the device manual (such as HART-7).

[0048] The test timing configuration optimizes the scheduling strategy of multiple test items through a time series prediction model, solving the efficiency bottleneck caused by fixed timing in the traditional test process. For example, when verifying the physical layer jitter and link layer token polling of the Profibus PA protocol, the model will perform the following operations in parallel: synchronously trigger physical layer eye diagram sampling (once every 10ms) and link layer management frame injection (such as sending a token request every 200ms) in the first test cycle, and dynamically adjust the handshake timeout time according to the response speed of the device under test (the initial value is 1ms, and it will be gradually extended to 5ms if a delay is detected).

[0049] The adaptive decision threshold mechanism breaks through the limitations of traditional fixed thresholds and optimizes the decision conditions in real time through online reinforcement learning (such as Q-learning). For example, in the power layer consistency test, the model initially sets the surge current threshold to 120% of the device's nominal value (such as 2A), but when it detects that the ambient temperature rises to 85°C, it automatically relaxes the threshold to 150% (2.5A) to compensate for the temperature drift effect of semiconductor components; conversely, if the device under test is in an ideal laboratory environment (noise < 20dBm), the bit error rate threshold is tightened to 1e-12 to verify the extreme performance. This process drives the iterative update of the Q-learning policy network by defining an objective function (such as test accuracy weight 0.7, time consumption weight 0.2, energy consumption weight 0.1), and finally converges to the Pareto optimal solution.

[0050] The execution process of generating the test flow follows a logical framework that combines hierarchical progression and dynamic feedback, and realizes the adaptive optimization of test parameters through multi-stage collaborative control. In the initial stage, the system loads the basic test template based on the standard specifications of the target communication protocol, including physical layer signal parameters, link layer frame structure verification rules, and power layer constraint conditions. At the same time, it initializes the test hardware and calibrates the time synchronization module to ensure the timing alignment of subsequent multi-level data acquisition. This step provides a benchmark reference for the test process, avoids systematic errors caused by misunderstandings of protocol standards, and reserves a compatibility interface for dynamic adjustment.

[0051] In the environmental perception stage, the system uses a distributed sensor network to collect channel characteristics (such as cable attenuation, noise spectrum), device status (power supply stability, temperature drift), and service scenario requirements (test target priority, user-defined constraints) in real time, and constructs a multi-dimensional environmental feature vector. After normalization, this data is input into a pre-trained neural network model as the context condition for dynamically generating the test flow. The core significance of environmental perception is to enable the test flow parameters to adapt to external interference and device individual differences in real time. For example, it dynamically compensates the signal amplitude according to the cable length, or switches the modulation method according to the environmental noise spectrum to avoid interference frequency bands.

[0052] The neural network model generates the core parameters of the test flow through a hierarchical inference mechanism. In the signal injection parameter generation stage, the model combines protocol standard parameters with real-time environmental data to calculate the amplitude compensation value, modulation strategy optimization plan, and frequency fine-tuning amount. For example, it dynamically increases the signal amplitude according to the channel attenuation model to maintain the effective signal-to-noise ratio. The test timing configuration uses a reinforcement learning algorithm to optimize the execution order and time allocation of test items, giving priority to high-failure-probability or short-duration test items to improve overall efficiency. At the same time, it dynamically adjusts the handshake timeout period according to the device response speed to avoid ineffective waiting. The setting of the adaptive decision threshold is achieved through multi-objective optimization, taking the weighted combination of indicators such as test accuracy, time consumption, and energy consumption as the objective function, and dynamically calculating the pass thresholds for each level of testing. For example, in a high-temperature environment, the power supply ripple limit is relaxed to compensate for component performance drift, while the physical layer bit error rate threshold is tightened to maintain communication reliability.

[0053] In the test flow execution stage, a multi-channel synchronous trigger mechanism is adopted to ensure the coordinated operation of the signal generator, protocol analyzer, and power supply monitoring module. The signal injection parameters are accurately converted into the excitation signal waveform, and the physical layer response, link layer frame structure, and power layer parameters are collected with microsecond-level alignment through the hardware time synchronization engine, forming a data cube with spatio-temporal correlation. This mechanism enables the system to accurately locate cross-layer coupling faults. For example, it correlates the physical layer eye diagram distortion at a specific moment with the link layer CRC error for analysis, so as to identify signal integrity problems caused by impedance mismatch, rather than simply attributing them to protocol stack implementation defects.

[0054] The closed-loop optimization mechanism based on real-time feedback drives the dynamic adjustment of the test flow. After each round of testing, the system extracts key indicators (such as bit error rate, frame loss rate, peak surge current) and identifies performance bottleneck factors, updates the weights of the neural network model through an online learning algorithm, and generates adjustment strategies for signal amplitude, frequency, and decision threshold. The adjustment instructions follow the principle of progressive optimization. For example, it uses small-step iteration to increase the signal amplitude to avoid overshoot damage to the device, while monitoring the changes in power layer parameters to prevent secondary problems caused by the adjustment. This process continues to iterate until the test indicators converge or the termination condition is triggered, forming an "execution - feedback - optimization" closed-loop control loop.

[0055] The termination logic of the test flow is based on preset convergence conditions and safety protection mechanisms. When all level indicators continuously meet the standards, the marginal benefit of parameter adjustment is lower than the threshold, or the hardware protection mechanism is activated, the system stops testing and generates a structured report. The report not only includes the pass / fail determination for each level but also records the parameter adjustment history and environmental impact factors, providing data support for subsequent design improvement or operation and maintenance decisions. Through the coordination of dynamic generation and real-time optimization, the entire process significantly improves efficiency while ensuring test coverage and has strong robustness to cope with disturbances in complex industrial environments.

[0056] Finally, summarize the feedback data from multiple rounds of testing to generate a test report containing consistency metrics for the physical layer, link layer, and power supply layer.

[0057] In some embodiments, optionally, as Figure 4 shown, the dimensionality reduction processing includes: Normalize the time-domain features to eliminate the differences in signal amplitude and time reference; Perform band-pass filtering and power spectral density calibration on the frequency-domain features; Compensate for carrier frequency offset and suppress noise for the modulation features.

[0058] Due to hardware differences in the device under test (such as ADC sampling rate, amplifier gain) and time-base drift in the test environment (such as clock source accuracy deviation), the time-domain signal will cause uncontrollable differences in signal amplitude and time reference. Therefore, this application uses dynamic range compression and sliding time window alignment techniques to normalize the time-domain features. First, the original signal amplitude is mapped to a preset standard range (such as [-1,1]) through linear transformation. For example, for the 4-20mA analog quantity of the HART protocol, after stripping the DC component, it is normalized according to the maximum swing amplitude (16mA) to eliminate the influence of ADC gain differences of different devices on feature extraction. Then, based on synchronous signals (such as PTP protocol time synchronization) or signal autocorrelation peak detection, interpolation resampling is performed on the time-domain waveform to eliminate the symbol period measurement deviation caused by device clock jitter. For example, for the Manchester-encoded signal of Profibus PA, the time axis is aligned by detecting the rising edge of the preamble, reducing the standard deviation of symbol period jitter collected by different devices from ±5% to ±0.8%. The normalization process eliminates the time-domain feature deviations introduced by device hardware and the test environment, making the test data of devices from different suppliers comparable and improving the protocol matching accuracy by 15%-20%.

[0059] There is wide - band environmental noise in the industrial field (such as high - frequency interference from inverters and low - frequency disturbances during motor startup and shutdown), which causes serious distortion of frequency - domain characteristics (such as harmonic components and noise floors). This application uses dynamic band - pass filtering and reference - signal inversion calibration techniques to improve the effectiveness of frequency - domain characteristics. First, an adjustable digital filter is designed according to the spectrum range defined by the protocol standard (such as 1.6 - 20 MHz for 10BASE - T1L) to dynamically filter out out - of - band noise. For example, when 50Hz power - frequency interference is detected, a notch filter is enabled to suppress the energy at this frequency point, reducing the measurement error of the base - frequency power spectral density from ±3dB to ±0.5dB. Then, by injecting a reference sine signal with a known amplitude (such as 1MHz / -10dBm), the channel attenuation characteristics are inversely calculated to compensate the measured power spectrum. For example, when the cable loss causes a 6dB attenuation of the 10MHz component, the calibration module compensates the power value at this frequency point to the standard level, avoiding misjudgment of frequency - domain characteristics due to physical - medium differences. The band - pass filtering suppresses more than 85% of the out - of - band interference, and the power - spectrum calibration improves the compliance of the frequency - domain characteristics with the protocol standard from 70% to 98%, significantly reducing the risk of protocol mis - identification caused by channel attenuation or environmental noise.

[0060] Carrier - frequency offset (such as a ±500ppm deviation caused by crystal - oscillator temperature drift) and channel noise (such as phase jumps caused by impulse interference) can damage the stability of modulation characteristics. This application uses frequency - offset estimation and pre - correction and noise - perception suppression techniques to solve this problem. First, the carrier - frequency offset amount is estimated in real - time through fast Fourier transform (FFT) or Costas Loop, and digital mixing compensation is performed on the received signal. For example, when a carrier - center - frequency offset of +2kHz is detected in an FSK - modulated signal, the signal spectrum is shifted back to the standard frequency point through complex multiplication, reducing the symbol - decision error rate by 40%. Then, based on wavelet transform and adaptive - threshold filtering techniques, the impulse noise and Gaussian white - noise components in the signal are separated. For example, when impulse interference with a duration <1μs is identified in a HART - protocol signal, time - domain zeroing or median filtering is enabled, improving the modulation error rate (MER) from 18dB to 24dB. Carrier compensation expands the modulation - frequency - offset tolerance from ±1000ppm to ±2500ppm, and the noise - suppression technique improves the protocol - identification success rate in a low - signal - to - noise - ratio (SNR = 10dB) scenario from 65% to 92%, significantly enhancing the robustness of the system in a harsh industrial environment.

[0061] In some embodiments, optionally, as Figure 5 shown, the matching - degree analysis includes: Calculating the similarity between the standardized protocol feature vector and each protocol feature vector in the mapping dictionary based on the Euclidean distance; Performing priority sorting on candidate protocols with similarity higher than a preset threshold; Select the final target communication protocol type by combining the protocol application scenario context information.

[0062] Calculate the Euclidean distance between the standardized protocol feature vector and the feature vectors of each protocol cluster in the mapping dictionary as the benchmark for similarity measurement. This process is accelerated by a batch parallel computing engine. For example, for a mapping dictionary containing 100 protocol types, GPU-accelerated matrix operations are used to calculate the distances between the input vector and all protocol cluster centers at once, generating a similarity score matrix. To ensure the effectiveness of the distance calculation, the protocol feature vector needs to be pre-processed by standardization (such as Z-score normalization) to eliminate the differences in feature dimensions between different protocols (for example, the time-domain amplitude unit is V, and the frequency-domain power unit is dBm). The Euclidean distance provides an objective numerical similarity index, avoiding misjudgments caused by subjective experience, and the protocol matching accuracy is increased to ≥95%. Parallel computing controls the matching time of a large-scale protocol library (such as 1000+ protocols) within 10 ms, meeting the industrial real-time requirements.

[0063] Rank the candidate protocols with similarity higher than the preset threshold (such as Euclidean distance ≤ 0.2), and the ranking rules integrate static weights and dynamic context. For static weights, priorities are assigned based on the historical usage frequency of the protocol. For example, in the industrial control scenario, the weight coefficient of Profibus PA is set to 0.9, while that of CANopen is 0.7. For dynamic context, the ranking can be adjusted according to the real-time environmental noise level and the device model library (such as the white list of protocols supported by the device). For example, when it is detected that the device under test is a HART temperature transmitter, even if the similarity score of the HART protocol is slightly lower than that of Profibus PA, its priority is still raised to the first place. Using the dynamic threshold and weight mechanism can effectively reduce the misjudgment rate of similar protocols and improve the recognition accuracy. By screening out low-similarity protocols through the threshold, the amount of subsequent data processing can be effectively reduced, improving the data processing efficiency.

[0064] Based on the priority ranking, introduce the protocol application scenario context information for the final decision. The context includes: device type and industry specifications, physical layer compatibility constraints, and environmental interference pattern library. The decision-making engine adopts a fusion model of rule reasoning and Bayesian network: First, exclude the protocols that are obviously not in line with the scenario through the rule library (such as in-vehicle devices do not support industrial Ethernet), and then calculate the conditional probabilities of each candidate protocol based on the Bayesian network (for example, when the known environmental noise > 30 dBm, the applicable probability of the HART protocol is 85%), and select the protocol type with the highest comprehensive confidence.

[0065] The above three-step matching mechanism forms a progressive analysis process of "coarse screening - fine ranking - decision-making": the Euclidean distance quickly narrows the candidate range, dynamic ranking optimizes the computational load, and context fusion ensures that the final decision conforms to the actual application constraints. This process is particularly applicable to industrial devices with similar protocol features but different application scenarios (such as Profibus and IEC 61158-2 protocols both using Manchester coding), and the two can be clearly distinguished through context rules (such as industry specifications). This matching degree analysis method provides a highly reliable and adaptive decision-making basis for the multi-protocol compatibility test of single-pair wire communication devices through the deep integration of quantitative calculation and semantic reasoning.

[0066] In some embodiments, optionally, dynamically adjusting the signal amplitude, frequency, and determination threshold through a pre-trained neural network model specifically includes: defining a test objective function, which includes a weighted combination of test accuracy, time consumption, and energy consumption; iteratively updating the signal injection parameters through the Q-learning algorithm to maximize the objective function.

[0067] Specifically, the test objective function is F = α * Accuracy + β * (1 / T) + γ * (1 / E), where Accuracy is the test accuracy evaluation value, comprehensively calculated based on the bit error rate, harmonic distortion degree, and protocol compliance; T is the time consumption of a single test, and E is the energy consumption during the test process; the weight coefficients (α, β, γ) are dynamically configured by the device type recognition module, such as setting α:β:γ = 5:3:2 in the industrial device scenario. Then, based on the above test objective function, a reinforcement learning framework based on the deep Q network (DQN) is established. Its state space S includes: real-time channel parameters, including signal-to-noise ratio (SNR), multipath delay spread, and carrier frequency offset; device state characteristics, including power supply voltage volatility, chip junction temperature, and previous test response time; environmental interference characteristics, the center frequency and bandwidth of narrowband interference extracted through spectrum analysis; the action space A is defined as: signal amplitude adjustment, with a step size of 0.1 dB and a range of ±5 dB; frequency offset compensation, with a resolution of 1 ppm and a range of ±50 ppm; dynamic threshold update, adjusted according to the statistical characteristics of historical test data according to the ±3σ principle. Through the above scheme, a double-loop optimization mechanism is implemented. In the inner loop, online parameter exploration is carried out through the ε-greedy strategy, and the exploration rate ε decays from 0.5 to 0.01 with the number of training rounds; in the outer loop, the target network parameters are synchronously updated every 24 hours, and the optimal strategy is stored in the device feature library.

[0068] In some embodiments, optionally, the physical layer protocol tests include transmitter output voltage, transmitter output droop rate, transmitter timing jitter, transmitter power spectral density, transmit clock frequency, transmit signal distortion, and receive bit error rate stress test. Among them, the transmitter output voltage is used to detect the compliance of the signal amplitude, verify whether it meets the standard level requirements, and identify risks of insufficient driving ability or overload; the transmitter output droop rate is used to evaluate the amplitude attenuation characteristics of the signal during continuous transmission and detect defects in the power supply voltage stabilization circuit or line impedance matching problems; the transmitter timing jitter is used to measure the time deviation of the clock edge and diagnose the stability of the clock source and signal integrity degradation; the transmitter power spectral density is used to analyze the distribution characteristics of signal energy in the frequency domain and detect frequency points with excessive EMI and harmonic interference; the transmit clock frequency is used to verify the deviation between the actual frequency and the nominal value and evaluate the tracking ability of the clock recovery circuit; the transmit signal distortion is used to quantify the degree of waveform distortion and identify impedance mismatch, inter-symbol interference (ISI), or non-linear distortion; the receive bit error rate stress test is used to measure the BER under extreme conditions (such as the lowest level, the highest frequency) and verify the receiver sensitivity and noise tolerance.

[0069] In some embodiments, optionally, the link layer protocol tests include packet format verification, automatic polarity detection and correction, ESD_ERR4 error handling, FCS error handling, auto-negotiation verification, management restart auto-negotiation, link status failure detection, and link establishment time. Among them, the packet format verification is used to detect the compliance of the frame structure, preamble, delimiter, address field, length / type field; the automatic polarity detection and correction is used to detect the ability of the line pair polarity (A / B line) to be automatically identified and reversed; the ESD_ERR4 error handling is used to detect the error recovery ability after an electrostatic discharge (ESD) event; the FCS error handling is used to detect the frame check sequence (FCS) error detection and frame loss strategy; the auto-negotiation verification is used to detect the rate / duplex mode negotiation process; the management restart auto-negotiation is used to detect the ability to trigger re-negotiation through software commands; the link status failure detection is used to detect the recognition speed of a physical link interruption (such as carrier loss); the link establishment time is used to detect the recognition speed of a physical link interruption (such as carrier loss).

[0070] In some embodiments, optionally, the power layer protocol test includes minimum current consumption, inrush current, in-band ripple noise, out-of-band ripple noise, current change rate, maximum / minimum load voltage events, under-voltage protection, shielding options, and polarity sensitivity. Among them, the minimum current consumption is used to detect the lowest operating current of the device in standby / sleep mode; the inrush current is used to detect the peak current (Inrush Current) at the moment of power-on; the in-band ripple noise is used to detect the low-frequency noise component on the power rail; the out-of-band ripple noise is used to detect the power noise spectrum in the high-frequency band; the current change rate is used to detect the current slope during load mutation; the maximum / minimum load voltage events are used to detect the voltage fluctuation range under extreme loads; the under-voltage protection is used to detect the turn-off response after the voltage drops to the threshold; the shielding options are used to detect the power line EMI suppression ability; and the polarity sensitivity is used to detect the tolerance ability of reverse power connection.

[0071] In the second aspect of the embodiments of the present application, a device for conformance testing of single-pair communication is provided, as Figure 6 shown, including the following modules: A feature extraction module, configured to connect through a single pair of lines and receive the communication signal of the device under test, extract the time-domain features, frequency-domain features, and modulation features of the communication signal, and perform dimensionality reduction processing on the features to generate a protocol feature vector; A protocol recognition module, configured to perform a matching degree analysis on the protocol feature vector and a predefined mapping dictionary to determine the target communication protocol type with the highest matching degree, where the mapping dictionary is generated based on a protocol standard feature library and a machine learning model training; A test flow generation module, configured to dynamically generate a conformance test flow based on the determined communication protocol through a pre-trained neural network model, and the test flow includes signal injection parameters, test timing configuration, and an adaptive decision threshold; A test execution module, configured to configure a signal generator to inject an excitation signal according to the test flow, synchronously collect the physical layer response, link layer frame structure, and power layer parameters of the device under test, and dynamically adjust the signal amplitude, frequency, and decision threshold based on real-time feedback data through a pre-trained neural network model; A report generation module, configured to summarize the feedback data of multiple rounds of tests and generate a test report including the conformance indicators of the physical layer, link layer, and power layer.

[0072] As Figure 7As shown, the feature extraction module receives the communication signals from the device under test, and respectively extracts time-domain features, frequency-domain features and modulation features based on the above communication signals. Preferably, the above extraction processes are carried out synchronously to improve the extraction efficiency. Then, the extracted features are dimensionally reduced and a protocol feature vector is generated. Then, the protocol feature vector generated in the above steps is sent to the protocol recognition module. The protocol recognition module determines the target communication protocol type with the highest matching degree by analyzing the matching degree between the protocol feature vector and a predefined mapping dictionary, so as to determine the communication protocol type of the device under test. The determined communication protocol is sent to the test flow generation module. The test flow generation module dynamically generates a conformance test flow specifically based on the above device type and protocol type through a pre-trained neural network model. The test flow includes signal injection parameters, test timing configuration and adaptive decision thresholds. The parameter information related to the generated test flow is sent to the test execution module, and the test execution module executes the test. Real-time feedback data will be generated during the test. If the real-time feedback data meets the predetermined conditions, the real-time feedback data is sent back to the test flow generation module. The test flow generation module re-adjusts the parameters related to the test flow based on the above real-time feedback data and re-sends them to the test execution module for re-testing. After multiple rounds of testing, the feedback data of multiple rounds of testing is summarized to generate a test report including the conformance indicators of the physical layer, link layer and power supply layer.

[0073] Embodiment 1. This embodiment mainly realizes the automatic recognition of the protocol type of the device under test.

[0074] First, signal acquisition and preprocessing are carried out. The system captures the communication signals of the device under test through a high-precision signal conditioning circuit, configures a sampling rate of 100MS / s and an ADC resolution of 14 bits to ensure that effective signals can still be obtained in an industrial electromagnetic interference (EMI) environment. In the signal preprocessing stage, an adaptive baseline calibration technology is adopted, and power frequency interference (50 / 60Hz) and high-frequency noise (>1MHz) are eliminated through moving window median filtering. For the 4-20mA current loop superimposed digital signal unique to the HART protocol, the system separates the analog quantity and the FSK modulation wave through a digital phase-locked loop (DPLL) to achieve two-channel parallel processing: the analog channel uses a 16-bit high-precision ADC for slow and high-precision sampling (1kS / s), and the digital channel enables a FIR band-pass filter (center frequency 1.7kHz, bandwidth ±500Hz) to extract the FSK signal.

[0075] Multi-dimensional feature extraction is then performed, synchronously extracting time-domain features, frequency-domain features, and modulation features. Among them, the specific process of time-domain feature extraction is as follows: Align the signal waveforms through an improved dynamic time warping (DTW) algorithm to eliminate the timing deviation caused by the device crystal oscillator drift (±100 ppm). Calculate the symmetry index (0.98 / 1.02) of the rising / falling edges within the symbol period to identify the Manchester coding features of Profibus PA (the theoretical value is 1.0); The specific process of frequency-domain feature extraction is as follows: Use windowed FFT (Blackman-Harris window) and Welch power spectrum estimation to construct a 0-10 MHz spectrum template. For the broadband characteristics of the 10BASE-T1L protocol, focus on analyzing the power flatness (fluctuation < ±1.5 dB) and out-of-band rejection ratio (> 40 dB) in the 1.6-20 MHz frequency band. The specific process of modulation feature extraction is as follows: Deploy a constellation map reconstruction network based on deep learning (CNN-LSTM hybrid architecture) to achieve a classification accuracy of over 95% for modulation methods such as PAM3, FSK, and PSK. For the problem of eye diagram closure, introduce an adaptive equalization filter (LMS algorithm) to compensate for channel distortion, reducing the measurement error of the eye diagram opening degree from ±5% to ±1%.

[0076] Then, dimensionality reduction and fusion processing are performed on the extracted multi-dimensional features. Specifically: In the feature space construction stage, adopt a hierarchical dimensionality reduction strategy. Convert the original waveform of the time-domain features into an 8-dimensional symbol sequence through symbolic aggregate approximation (SAX) to retain the key timing patterns; Apply non-negative matrix factorization (NMF) to the frequency-domain features to extract the energy ratios of 3 main frequency bands (fundamental frequency, second harmonic, noise floor); Compress the 256-dimensional constellation map data of the modulation features to a 4-dimensional latent space using an autoencoder; Finally, generate a 12-dimensional comprehensive feature vector through feature concatenation and normalization (Z-score). Compared with the traditional PCA method, the protocol recognition accuracy of this scheme is effectively improved in an industrial noise environment.

[0077] Then protocol matching is performed. Among them, the protocol database is stored in a graph structure to construct a topological relationship network of protocol feature vectors; The matching process introduces hierarchical retrieval. First, narrow the search range according to the fundamental frequency range (e.g., <2 MHz is classified as a fieldbus protocol), and then use dynamic time warping distance (DTW) for time-domain features, KL divergence for frequency-domain features, and a mixed similarity metric of cosine similarity for modulation features. Then, perform reasoning through the context. When the similarity difference between the HART and WirelessHART protocols is <5%, combine the device antenna impedance feature (>50 Ω is determined as wired HART) for the final decision to obtain the protocol type with the highest matching degree.

[0078] Example 2. The main purpose of this example is to dynamically generate test streams and optimize test parameters.

[0079] First, load a three - layer test template based on the protocol type (such as 10BASE - T1L). Based on the physical layer, configure a BERT (Bit Error Rate Tester) to generate a PRBS31 pseudo - random sequence and inject it into an attenuation network (simulating the loss of a 1km 24AWG cable); based on the link layer, construct test frames containing VLAN tags and QoS priority markings, and the stress test traffic reaches 110% of the protocol limit; based on the power supply layer, simulate PoDL (Power over Data Line) power supply through a programmable DC power supply, set a load transient slope of 0 - 100mA / μs, and dynamically generate test flows based on different application scenarios, such as different cable layout methods for different house types or sites, and different environments, such as the presence or absence of high - speed rotating motors, etc.

[0080] After that, deploy a dual - neural - network architecture to achieve closed - loop control, including a policy network and an evaluation network. Among them, the policy network is based on the DDPG algorithm. The input layer receives real - time channel parameters (S - parameter matrix, return loss), device temperature (infrared thermal imager data), and historical test results, and the output layer generates an amplitude compensation value (±2dB), a frequency fine - tuning amount (±50ppm), and a decision - threshold relaxation coefficient (0.8 - 1.2 times); the evaluation network is based on the TD3 algorithm and constructs a multi - dimensional reward function, where the weight of bit - error - rate improvement is 0.6, the weight of test time consumption is 0.3, and the weight of device power consumption is 0.1. When the chip junction temperature > 85°C is detected, automatically insert a 5ms cooling interval and reduce the injected signal amplitude by 20%.

[0081] Then, conduct multi - level collaborative testing to achieve cross - protocol - stack correlation analysis. For example, achieve physical - link layer linkage. When a sudden increase in the CRC error rate is detected, synchronously retrieve the eye - diagram data at the corresponding moment to identify the inter - symbol interference caused by impedance mismatch; achieve power - physical layer coupling testing. During the surge - current testing stage (500mA / μs), monitor the transmitter output voltage droop rate and establish a quantitative relationship model between power supply stability and signal amplitude; achieve environmental adaptability verification. Simulate multipath fading (RMS delay spread 0 - 200ns) and strong electromagnetic interference (10V / m field strength) in an industrial environment through a reverberation chamber to evaluate the protocol robustness of the device under extreme conditions.

[0082] Finally, conduct closed - loop feedback and knowledge - base update. The test data of each round is automatically entered into the graph database to construct a knowledge graph of device characteristics. For example, it is found that when the cable length > 800m, the signal pre - emphasis coefficient needs to be increased from 2dB to 4dB to maintain the bit - error rate; accumulate typical abnormal cases, such as the characteristic waveform of the "ringing effect" caused by terminal - resistance mismatch in the CAN FD protocol; when a new protocol (such as 802.1Qbv in TSN) is detected, start small - sample incremental learning, and only 50 groups of samples are required to expand the protocol library.

[0083] The above is only the specific implementation manner of the embodiments of the present invention, but the protection scope of the embodiments of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the embodiments of the present invention can easily think of changes or substitutions, which should all be covered within the protection scope of the embodiments of the present invention. Therefore, the protection scope of the embodiments of the present invention shall be subject to the protection scope of the claims.

Claims

1. A method for consistency testing of single-pair communication, characterized in that: The method comprises the following steps: Receive a communication signal sent by the device under test, extract time domain features, frequency domain features and modulation features of the communication signal, generate a protocol feature value, and perform dimensionality reduction processing on the time domain features, frequency domain features and modulation features to generate a protocol feature vector; Performing a matching analysis between the protocol feature vector and a predefined mapping dictionary to determine the target communication protocol type with the highest matching degree, wherein the mapping dictionary is generated based on a protocol standard feature library and machine learning model training; Based on the determined communication protocol, a consistency test flow is dynamically generated through a pre-trained neural network model, wherein the test flow includes signal injection parameters, test timing configuration, and adaptive decision threshold; Configure the signal generator to inject stimulus signals according to the test flow, and synchronously collect the physical layer response, link layer frame structure and power layer parameters of the device under test; Based on real-time feedback data, the signal amplitude, frequency and judgment threshold are dynamically adjusted through the pre-trained neural network model; Summarize the feedback data from multiple rounds of tests and generate a test report containing consistency indicators of the physical layer, link layer, and power layer.

2. The method according to claim 1, characterized in that The target communication protocol type includes an industrial field bus protocol, an industrial Ethernet protocol or a combination thereof, wherein the industrial field bus protocol includes at least one of single-pair line communication such as 4-20mA+HART, Profibus, CAN and Foundation Fieldbus, and the industrial Ethernet protocol includes at least one of the protocols in the IEEE 802.3 series that support single-pair line.

3. The method according to claim 1, characterized in that The dimensionality reduction process includes: Normalizing the time domain features to eliminate differences in signal amplitude and time reference; Performing bandpass filtering and power spectrum density calibration on the frequency domain features; Carrier frequency offset compensation and noise suppression are performed on the modulation characteristics.

4. The method according to claim 1, characterized in that: The matching analysis includes: Calculate the similarity between the standardized protocol feature vector and each protocol feature vector in the mapping dictionary based on the Euclidean distance; Prioritize candidate protocols whose similarity is higher than a preset threshold; Combined with the protocol application scenario context information, select the final target communication protocol type.

5. The method according to claim 1, characterized in that The neural network model is trained through supervised learning, and the training data includes historical protocol test data sets, equipment model libraries and environmental noise samples. The output of the model is a test flow parameter optimization strategy and a decision threshold adaptive rule.

6. The method according to claim 1, characterized in that The method of dynamically adjusting the signal amplitude, frequency and determination threshold by using the pre-trained neural network model specifically includes: Defining a test objective function, the function comprising a weighted combination of test accuracy, time consumption and energy consumption; The signal injection parameters are iteratively updated through the Q-learning algorithm to maximize the objective function.

7. The method according to claim 1, characterized in that The consistency test includes a physical layer protocol test, a link layer protocol test and a power layer protocol test.

8. The method according to claim 7, characterized in that The physical layer protocol test includes transmitter output voltage, transmitter output droop rate, transmitter timing jitter, transmitter power spectrum density, transmission clock frequency, transmission signal distortion and receiving bit error rate stress test.

9. The method according to claim 7, characterized in that: The link layer protocol test includes data packet format verification, automatic polarity detection and correction, ESD_ERR4 error handling, FCS error handling, automatic negotiation verification, management restart automatic negotiation, link status failure detection and link establishment time.

10. The method according to claim 7, characterized in that The power plane protocol tests include minimum current consumption, inrush current, in-band ripple noise, out-of-band ripple noise, current rate of change, maximum / minimum load voltage events, undervoltage protection, shielding options, and polarity sensitivity.

11. The method according to claim 1, characterized in that: The time domain features include: Output voltage peak-to-peak value and voltage drift rate; Linearity of rising / falling edge of signal waveform; The standard deviation of the time jitter within the transmission symbol period; The frequency domain features include: Fundamental frequency power spectrum density and harmonic attenuation slope; Spectral mask compliance for out-of-band noise; The modulation characteristics include: Carrier clock frequency offset; Distribution characteristics of signal pre-emphasis coefficients.

12. A device for consistency testing of single-pair communication, characterized in that: Includes the following modules: A feature extraction module is configured to connect and receive a communication signal of a device under test through a single pair of lines, extract time domain features, frequency domain features and modulation features of the communication signal, and perform dimensionality reduction processing on the features to generate a protocol feature vector; A protocol identification module is configured to perform a matching analysis between the protocol feature vector and a predefined mapping dictionary to determine the target communication protocol type with the highest matching degree, wherein the mapping dictionary is generated based on a protocol standard feature library and a machine learning model training; A test flow generation module is configured to dynamically generate a consistency test flow through a pre-trained neural network model based on a determined communication protocol, wherein the test flow includes a signal injection parameter, a test timing configuration, and an adaptive decision threshold; The test execution module is configured to inject the stimulus signal according to the test flow configuration signal generator, synchronously collect the physical layer response, link layer frame structure and power layer parameters of the device under test, and dynamically adjust the signal amplitude, frequency and judgment threshold through the pre-trained neural network model based on the real-time feedback data; The report generation module is configured to summarize the feedback data of multiple rounds of tests and generate a test report containing consistency indicators of the physical layer, link layer and power layer.

Citation Information

Patent Citations

  • Resource allocation management for co-channel co-existence in intelligent transport systems

    CN113841461A

  • Smart transport system co-channel coexistence frame structure with asymmetric gap duration

    CN114143744A

  • Multi-feature noise reduction modulation identification method based on CyclGan

    CN115392325A

  • Automatic modulation classification method and device, equipment and computer readable storage medium

    CN117978595A

  • Protocol Aware Error Ratio Tester

    US20100095166A1

Cited By

  • Signal shielding method based on deep reinforcement learning

    CN120811542A

  • Industrial multi-protocol communication gateway adaptive adaptation method and system

    CN121125555A

  • Industrial multiprotocol communication gateway adaptive adaptation method and system

    CN121125555B

  • Intelligent test method and system for distribution automation terminal compatible with multiple protocols

    CN121283896A

  • Method for testing serial interface chip

    CN121478566A