Device testing method and target simulation device based on link training
Through the device testing method based on link training, the target simulation device independently conducts link training and testing of HDMI2.1 FRL equipment, solving the problem of low testing efficiency in the existing technology and realizing device autonomous testing and automation.
Patent Information
- Application Number
- CN202210414481.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-20
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2042-04-20
AI Technical Summary
In HDMI2.1 FRL equipment testing, existing testing instruments cannot induce the tested product to issue a test pattern or enter a code error test state on its own, resulting in the training process relying on third-party equipment, reducing the efficiency of equipment testing.
A device testing method based on link training is proposed. By obtaining the device type of the target device, configuring the target simulation device, performing link training and testing, including physical layer signal integrity testing and jitter tolerance testing, and using the target simulation device to simulate Transmitting or receiving end functions to generate and analyze test patterns.
It improves the efficiency of device testing, realizes autonomous link training and testing of HDMI2.1 FRL devices, reduces dependence on third-party devices, and enhances the automation and accuracy of tests.
Smart Images

Figure CN114900685B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of digital signal processing, and in particular to a device testing method based on link training and a target simulation device. Background Art
[0002] The FRL transmission mode function was added to HDMI2.1. Before the emergence of HDMI2.1, the audio and video transmission field mostly used the traditional TMDS architecture to transmit signals.
[0003] When testing the prototype product of HDMI2.1 FRL, the relevant tests can only be completed during or after the link training process. This test mechanism is defined by the HDMI2.1 specification. For example, Source products that support the HDMI2.1 FRL function need to perform relevant signal integrity tests during the link training phase; Sink products that support the HDMI2.1 FRL function need to perform relevant signal jitter tolerance tests after the link is completed. However, general test instruments, such as high-speed real-time oscilloscopes and arbitrary waveform generators, only have the functions of signal acquisition and analysis, and code generation, but do not have the link training function of HDMI2.1 FRL, and cannot induce the tested product to send relevant test codes or put the tested product into the error test state. Therefore, under the current technology, the training process needs to rely on the assistance of third-party equipment to complete, which reduces the efficiency of equipment testing. Summary of the invention
[0004] The main purpose of the embodiments of the present disclosure is to propose a device testing method and a target simulation device based on link training, which can improve the efficiency of device testing.
[0005] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present disclosure proposes a device testing method based on link training, comprising:
[0006] Obtaining the device type of the target device to be tested; the target device includes a receiving device and a transmitting device; the target device is an HDMI device with FRL function;
[0007] Perform device configuration according to the device type to obtain a target simulation device so that the target simulation device has a target function; the target simulation device includes a transmitting end simulation device and a receiving end simulation device;
[0008] Connecting the target simulation device to the target device to be tested;
[0009] Performing link training on the target device according to the target simulation device to obtain training result information;
[0010] The target device is subjected to a target test according to the training result information; the target test includes a physical layer signal integrity test and a jitter tolerance test.
[0011] In some embodiments, the performing device configuration according to the device type to obtain a target simulation device so that the target simulation device has a target function includes:
[0012] If the target device is the receiving device, the target analog device is the transmitting analog device; the target functions of the transmitting analog device include: voltage output function, HPD status detection function, DDC bus host function, EDID information parsing function, and SCDC information parsing function;
[0013] If the target device is the transmitting device, the target analog device is the receiving analog device; the target functions of the receiving analog device include: voltage detection function, HPD signal output function, DDC bus slave function, EDID information preset and editing function, SCDC information preset and editing function.
[0014] In some embodiments, if the target device is the receiving end device, the connecting the target simulation device to the target device to be tested includes:
[0015] The transmitting end analog device is connected to the HDMI fixture device via a low-speed signal interface;
[0016] The HDMI fixture device is connected to the receiving end device via an HDMI interface;
[0017] The HDMI fixture device is connected to a high-speed arbitrary waveform generator via a high-speed differential signal interface;
[0018] The high-speed arbitrary waveform generator is connected to the host computer device via a control bus;
[0019] The host computer device is connected to the transmitting end simulation device via a control interface.
[0020] In some embodiments, performing link training on the target device according to the target simulation device to obtain training result information includes:
[0021] The transmitting end analog device starts the voltage output function, outputs +5V voltage to the receiving end device, and starts the HPD state detection function to verify the device connection state before the link training; when the transmitting end analog device detects that the HPD signal is at a high level, the device connection state between the transmitting end analog device and the receiving end device is that the connection has been established;
[0022] The transmitting end simulation device enables the EDID information parsing function to parse and read the EDID data of the receiving end device; the EDID data is used to determine whether the receiving end device supports the FRL function;
[0023] If the receiving end device supports the FRL function, the transmitting end simulation device enables the SCDC information parsing function to parse and read the readiness state data in the state flag bit of the SCDC data of the receiving end device; the readiness state data is used to indicate whether the receiving end device is ready to enter the training state;
[0024] If it is detected that the preparation state data is a first preset value, the transmitting end simulation device writes preset training data into the receiving end configuration register of the SCDC data of the receiving end device; the training data includes the data rate value, the number of channels, and the parameter value of the forward feedback equalization of the FRL function;
[0025] The transmitting end simulation device reads the training test pattern request data in the SCDC data of the receiving end device;
[0026] The transmitting end simulation device controls the high-speed arbitrary waveform generator to generate training test pattern data according to the training test pattern request data;
[0027] If it is detected that the training timeout has occurred or the training test pattern request data is a second preset value, the link training is stopped and the training result information is generated.
[0028] In some embodiments, the target test is the jitter tolerance test; and performing the target test on the target device according to the training result information includes:
[0029] If the training result information indicates that the training has been completed, the transmitting end simulation device controls the high-speed arbitrary waveform generator to generate target test pattern data;
[0030] If it is detected that the number of transmitted bits of the high-speed arbitrary waveform generator is a third preset value, and the channel lock data in the status flag bit of the SCDC data of the receiving end device is a fourth preset value, the host computer reads the character error detection register of the SCDC data of the receiving end device through the transmitting end simulation device to obtain bit error rate data;
[0031] A tolerance test result of the jitter tolerance test is obtained according to the bit error rate data and a preset bit error rate threshold.
[0032] In some embodiments, if the target device is the transmitting end device, the connecting the target simulation device with the target device to be tested further includes:
[0033] The receiving end analog device is connected to the HDMI fixture device via a low-speed signal interface;
[0034] The HDMI fixture device is connected to the transmitting end device via an HDMI interface;
[0035] The HDMI fixture device is connected to a high-speed real-time oscilloscope via a high-speed differential signal interface;
[0036] The high-speed real-time oscilloscope is connected to the host computer device via a control bus;
[0037] The host computer device is connected to the receiving end simulation device via a control interface.
[0038] In some embodiments, performing link training on the target device according to the target simulation device to obtain training result information further includes:
[0039] The receiving end simulation device enables a voltage detection function to obtain a voltage detection result;
[0040] Controlling the receiving end analog device to enable the HPD signal output function according to the voltage detection result to set the HPD signal to a high level;
[0041] The receiving end simulation device writes the timing information into the transmitting end configuration register of the SCDC data;
[0042] Turning off the timer of the link training of the transmitting end device according to the timing information;
[0043] The transmitting end device reads the preparation state data in the state flag bit of the SCDC data of the receiving end simulation device;
[0044] If it is detected that the preparation state data is a first preset value, the transmitting end device writes preset training data into the receiving end configuration register of the SCDC data of the receiving end simulation device; the training data includes the data rate value and the number of channels of the FRL function;
[0045] The transmitting end device reads the training test pattern request data in the SCDC data of the receiving end simulation device;
[0046] The transmitting end device sends the test template data to the receiving end simulation device according to the training test pattern request data;
[0047] If it is detected that the test template is sent successfully, the training result information is generated.
[0048] In some embodiments, the target test is the physical layer signal integrity test; and performing the target test on the target device according to the training result information includes:
[0049] If the training result information indicates that the training has been completed, the receiving end simulation device controls the high-speed real-time oscilloscope to capture and analyze the code pattern to obtain link test data;
[0050] The high-speed real-time oscilloscope obtains the eye diagram test result of the physical layer signal integrity test according to the link test data.
[0051] In some embodiments, the target device further includes a relay device, the relay device having functions of both the transmitting device and the receiving device, and the target test on the target device according to the training result information includes:
[0052] Performing the physical layer signal integrity test on the relay terminal device;
[0053] The jitter tolerance test is performed on the relay terminal device.
[0054] To achieve the above-mentioned purpose, the second aspect of the present disclosure proposes a target simulation device, and the device testing method based on link training as described in the embodiment of the first aspect is applied, and the target simulation device includes:
[0055] Microcontroller;
[0056] An HDMI low-speed interface device, the HDMI low-speed interface device is connected to the microcontroller; the HDMI low-speed interface device is used to connect to an HDMI fixture device, and the HDMI low-speed interface device is also used to communicate with the target device;
[0057] A USB interface device, the USB interface device is connected to the microcontroller, the USB interface device is used to connect to a host computer device, and the USB interface device is also used to report DCC data, voltage data, and HPD status data; the USB interface device is also used to receive control commands;
[0058] A working status indicating device, the working status indicating device is connected to the microcontroller, and the working status indicating device is used to display working status information; wherein the working status information includes a host status and a slave status; if the target device is the receiving device, the working status information is the host status; if the target device is the sending device, the working status information is the slave status.
[0059] To achieve the above object, a third aspect of the present disclosure proposes a device testing apparatus based on link training, comprising:
[0060] A device type acquisition module is used to acquire the device type of the target device to be tested; the target device includes a receiving device and a transmitting device; the target device is an HDMI device with FRL function;
[0061] A simulation device configuration module, used to perform device configuration according to the device type to obtain a target simulation device so that the target simulation device has a target function; the target simulation device includes a transmitting end simulation device and a receiving end simulation device;
[0062] A device connection module, used for connecting the target simulation device with the target device to be tested;
[0063] A link training module, used to perform link training on the target device according to the target simulation device to obtain training result information;
[0064] A testing module is used to perform a target test on the target device according to the training result information; the target test includes a physical layer signal integrity test and a jitter tolerance test.
[0065] To achieve the above objective, a fourth aspect of the present disclosure provides an electronic device, including:
[0066] at least one memory;
[0067] at least one processor;
[0068] at least one program;
[0069] The program is stored in a memory, and the processor executes at least one program to implement the method of the present disclosure as described in the first aspect above.
[0070] To achieve the above objective, a fifth aspect of the present disclosure provides a storage medium, which is a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute:
[0071] As the method according to the first aspect above.
[0072] The device testing method and target simulation device based on link training proposed in the embodiments of the present disclosure first obtain the device type of the target device to be tested, then the target device is an HDMI device with FRL function, and the device is configured according to the device type to obtain the target simulation device so that the target simulation device has the target function, and then the target simulation device is connected to the target device to be tested, and link training is performed on the target device according to the target simulation device to obtain training result information, and finally a target test is performed on the target device according to the training result information. The technical solution provided by the embodiments of the present disclosure can improve the efficiency of device testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] Figure 1 It is a flowchart of a device testing method based on link training provided in an embodiment of the present disclosure.
[0074] Figure 2 yes Figure 1 Flowchart of step S120 in .
[0075] Figure 3 It is a connection diagram of the transmitter simulation device provided in an embodiment of the present disclosure.
[0076] Figure 4 yes Figure 1 Flowchart of step S140 in .
[0077] Figure 5 yes Figure 1 Flowchart of step S150 in FIG.
[0078] Figure 6 It is a connection diagram of a receiving end simulation device provided in an embodiment of the present disclosure.
[0079] Figure 7 yes Figure 1 A flowchart of step S140 is provided in another embodiment of the present invention.
[0080] Figure 8 yes Figure 1 A flowchart of step S150 is provided in another embodiment of the present invention.
[0081] Fig. 9 It is a schematic diagram of the structure of the target simulation device provided by the embodiment of the present disclosure.
[0082] Fig.10 It is a module block diagram of a device testing apparatus based on link training provided in an embodiment of the present disclosure.
[0083] Fig.11 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure.
[0084] Figure numerals: microcontroller 901, HDMI low-speed interface device 902, USB interface device 903, working status indication device 904, device type acquisition module 1001, simulation device configuration module 1002, device connection module 1003, link training module 1004, test module 1005, processor 1101, memory 1102, input / output interface 1103, communication interface 1104, bus 1105. DETAILED DESCRIPTION
[0085] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0086] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0087] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein are only for the purpose of describing the embodiments of the present invention and are not intended to limit the present invention.
[0088] First, some nouns involved in this application are analyzed:
[0089] Sink (receiving end), Source (transmitting end), and Repeater (relay end) are three types of products distinguished according to the characteristics of the products; among them, HDMI Sink is an HDMI receiver, such as a TV set and projector with an HDMI interface; HDMI Source is an HDMI transmitter, such as a set-top box and DVD with an HDMI interface; HDMI Repeater is an HDMI repeater, such as a signal distributor with an HDMI interface;
[0090] HDMI Forum is the HDMI Forum, a technical standardization organization;
[0091] HDMI FRL Sink is an HDMI receiver with FRL function;
[0092] HDMI FRL Source is an HDMI transmitter with FRL function;
[0093] FRL (Fixed Rate Link) is a transmission mode in HDMI technology;
[0094] HDMI (High-Definition Multimedia Interface);
[0095] HPD (Hot Plug Detect)
[0096] DDC (Display Data Channel, display data channel);
[0097] EDID (Extended Display Identification Data);
[0098] SCDC (Status and Control Data Channel);
[0099] E-EDID (Enhanced-Extended Display Identification Data);
[0100] TMDS (Transition Minimized Differential Signaling, minimized transmission differential signal);
[0101] LTPn (Link Training Pattern) where n = 1…8, 0x0e, 0x0f;
[0102] CR (Clock Recovery).
[0103] HDMI Forum added the FRL transmission mode function to HDMI2.1. Before the emergence of HDMI2.1, the audio and video transmission field mostly used the traditional TMDS architecture to transmit signals, with a maximum bandwidth of up to 18Gbps, which can be used to transmit 3840x2160P60 4K high-definition images. The FRL mode increases the bandwidth to 48Gbps, which can transmit 8KP30 high-definition images in uncompressed mode and 10KP60 high-definition images in compressed mode.
[0104] The traditional HDMI transmission method under the TMDS architecture uses an independent channel to transmit the clock signal, but in the FRL architecture, the clock signal is embedded in the data signal, and then the clock signal is recovered through the clock recovery processing method, so there is one more channel to transmit data, and the bandwidth is improved. On the other hand, a new physical layer transmission method is introduced under the FRL architecture. The 8b / 10b encoding method used in TMDS and the 16b / 18b encoding method are used in FRL, which further improves the utilization rate of the channel bandwidth, allowing the channel to transmit higher resolution images or higher refresh rate images, providing users with a better audio and video experience.
[0105] Under the FRL architecture, link training is required to determine the transmission data rate between the HDMI Sink and HDMI Source devices. The HDMI 2.1 FRL mode defines six data rates: 3Gbps three-channel, 6Gbps three-channel, 6Gbps four-channel, 8Gbps four-channel, 10Gbps four-channel, and 12Gbps four-channel.
[0106] In addition to changes in the high-speed signal transmission architecture, HDMI2.1 FRL also redefines the original reserved fields of EDID (Extended Display Identification Data) and SCDC (Status and Control Data Channel) transmitted on the low-speed signal DDC (Display Data Channel) to identify the functional attributes of the FRL mode. The exchange of these low-speed signals plays an extremely important role in the link training process of FRL.
[0107] The link training process under the traditional TMDS architecture is as follows: (1) The HDMI Source reads the EDID of the HDMI Sink to confirm whether the HDMI Sink supports the FRL mode. If it does not support the FRL transmission mode, it returns to the traditional TMDS transmission mode. (2) If the HDMI Sink supports the FRL transmission feature, it will notify the HDMI Source that link training can be performed by writing FLT_ready in the SCDC Status Flags. When the HDMI Source finds that the FLT_ready value is set, it can set the FRL data rate and number of channels to be output, as well as the parameter value of the forward feedback equalization. (3) The HDMI Sink that supports the FRL transmission feature will require the HDMI Source to output the corresponding Link Training Pattern. Only after both parties confirm that it is correct can the formal FRL signal transmission be started.
[0108] Under the current FRL architecture, HDMI2.1 FRL products (such as TVs and set-top boxes) do not involve physical layer signal integrity testing during user use. Users are more focused on whether the product functions normally. For example, when transmitting an 8K video, users only care about whether the 8K video can be displayed normally on the TV, or whether the display effect is satisfactory, but not the physical performance of the product. This leads to the lack of physical layer signal integrity testing methods.
[0109] In addition, when testing the prototype product of HDMI2.1 FRL, the relevant tests can only be completed during or after the link training process. This test mechanism is defined by the HDMI2.1 specification. For example, Source products that support the HDMI2.1 FRL function need to perform relevant signal integrity tests during the link training phase; Sink products that support the HDMI2.1 FRL function need to perform relevant signal jitter tolerance tests after the link is completed. However, general test instruments, such as high-speed real-time oscilloscopes and arbitrary waveform generators, only have the functions of signal acquisition and analysis, and code generation, but do not have the link training function of HDMI2.1 FRL, and cannot induce the tested product to send relevant test codes or put the tested product into the error test state. Therefore, under the current technology, the training process needs to rely on the assistance of third-party equipment to complete, which reduces the efficiency of equipment testing.
[0110] Based on this, the embodiments of the present disclosure provide a device testing method and a target simulation device based on link training. The device type of the target device to be tested is first obtained. The target device is then an HDMI device with an FRL function. The device is configured according to the device type to obtain a target simulation device so that the target simulation device has the target function. The target simulation device is then connected to the target device to be tested, and link training is performed on the target device according to the target simulation device to obtain training result information. Finally, a target test is performed on the target device according to the training result information. The technical solution provided by the embodiments of the present disclosure can improve the efficiency of device testing.
[0111] The embodiments of the present disclosure provide a device testing method based on link training and a target simulation device, which are specifically described through the following embodiments. First, the device testing method based on link training in the embodiments of the present disclosure is described.
[0112] The disclosed embodiment proposes a device testing method based on link training, including: obtaining the device type of a target device to be tested; the target device includes a receiving device and a transmitting device; the target device is an HDMI device with an FRL function; configuring the device according to the device type to obtain a target simulation device so that the target simulation device has a target function; the target simulation device includes a transmitting end simulation device and a receiving end simulation device; connecting the target simulation device with the target device to be tested; performing link training on the target device according to the target simulation device to obtain training result information; performing a target test on the target device according to the training result information; the target test includes a physical layer signal integrity test and a jitter tolerance test.
[0113] Figure 1 is an optional flowchart of a device testing method based on link training provided in an embodiment of the present disclosure. Figure 1 The method may include but is not limited to steps S110 to S150, specifically including:
[0114] S110, obtaining the device type of the target device to be tested;
[0115] S120, performing device configuration according to the device type to obtain a target simulation device so that the target simulation device has a target function;
[0116] S130, connecting the target simulation device to the target device to be tested;
[0117] S140, performing link training on the target device according to the target simulation device to obtain training result information;
[0118] S150, performing a target test on the target device according to the training result information.
[0119] It should be noted that the link training-based device testing method provided in the present application is applied to the scenario of HDMI FRL2.1, and is used to implement HDMI FRL state control and link training in physical layer testing, and cooperate with a high-speed oscilloscope or a high-speed arbitrary waveform generator to complete the target test of the HDMI2.1FRL transmitting device, the HDMI2.1FRL receiving device or the HDMI2.1FRL relay device.
[0120] In step S110, the target device is an HDMI device with FRL function, and the target device includes a receiving device and a transmitting device. The purpose of obtaining the device type is to perform device configuration operations according to different device types to simulate different target simulation devices to complete link training and target testing.
[0121] In step S120, the target simulation device is a device obtained after device configuration, which is used to cooperate with the target device to induce the target device to complete link training and subsequent target testing, wherein the target simulation device includes a transmitting end simulation device and a receiving end simulation device.
[0122] In step S130, after the target simulation device is configured, the target device needs to be connected to the target simulation device. At the same time, other devices need to be connected, such as a host computer device, an HDMI fixture device, a high-speed arbitrary waveform generator or a high-speed real-time oscilloscope, etc., to complete the hardware preparation for link training and target testing.
[0123] In step S140, link training is first performed on the target device to obtain training result information. The training result information includes that the training has been completed. The purpose of link training is to configure parameters for both communicating devices and to successfully complete subsequent test requirements. Of course, link training is also a specific requirement before testing in the HDMI FRL2.1 standard.
[0124] In step S150, the target test includes a physical layer signal integrity test and a jitter tolerance test. The physical layer signal integrity test specifically includes: designing the most original physical layer to minimize the loss in the channel and maximize the signal-to-noise ratio of the receiver; the jitter tolerance test reflects the receiving performance of the device through the bit error rate.
[0125] The device testing method based on link training proposed in the embodiment of the present disclosure first obtains the device type of the target device to be tested, then the target device is an HDMI device with an FRL function, and the device is configured according to the device type to obtain a target simulation device so that the target simulation device has a target function, and then the target simulation device is connected to the target device to be tested, and link training is performed on the target device according to the target simulation device to obtain training result information, and finally a target test is performed on the target device according to the training result information. The technical solution provided by the embodiment of the present disclosure can improve the efficiency of device testing.
[0126] In some embodiments, the device is configured according to the device type to obtain a target analog device so that the target analog device has target functions, including: if the target device is a receiving device, the target analog device is a transmitting analog device; the target functions of the transmitting analog device include: voltage output function, HPD status detection function, DDC bus host function, EDID information parsing function, SCDC information parsing function; if the target device is a transmitting device, the target analog device is a receiving analog device; the target functions of the receiving analog device include: voltage detection function, HPD signal output function, DDC bus slave function, EDID information preset and editing function, SCDC information preset and editing function.
[0127] Figure 2 is a flowchart of step S120 in some embodiments, Figure 2 The illustrated step S120 includes but is not limited to steps S210 to S220:
[0128] S210, if the target device is a receiving device, the target simulation device is a transmitting simulation device;
[0129] S220: If the target device is a transmitting device, the target simulation device is a receiving simulation device.
[0130] It should be noted that the method provided in the embodiment of the present application can simulate both an HDMI FRL Sink device and an HDMI FRL Source device.
[0131] In step S210, the target device is a receiving device, and the target simulation device is a transmitting simulation device. Specifically, the target simulation device is connected to the host device via a USB2.0 cable, and the operating system of the host device can correctly identify the port of the target simulation device. The target simulation device is configured as an HDMI Source device through the host software program and API interface function of the target simulation device. At this time, the target functions of the transmitting simulation device that need to be configured specifically include: voltage output function, HPD status detection function, DDC bus host function, EDID information parsing function, and SCDC information parsing function.
[0132] Among them, the voltage output function includes but is not limited to the +5V voltage output function. When the transmitting end analog device and the receiving end device of the present application are connected through the HDMI clamp, the +5V output instruction can be sent to the microcontroller through the configuration software of the transmitting end analog device. After receiving the control instruction, the microcontroller provides a +5V voltage signal to the receiving end device by controlling the 18th pin of the HDMI interface in the peripheral circuit.
[0133] The HPD status detection function specifically includes: through the microcontroller and peripheral circuits, the change of the HPD status of the receiving device output can be detected, such as the HPD of the receiving device is converted from a low level to a high level, or the HPD is pulled low and then raised and the low level time is maintained for more than 100ms, so as to realize the detection of the duration of the low level of the HPD output of the receiving device, and apply this function to the subsequent link training and target testing process.
[0134] The DDC bus host function specifically includes: implementing the DDC bus host function through a microcontroller, initiating DDC bus transactions through the DDC host interface, and DDC bus transactions are used to obtain EDID data and SCDC data of the receiving device. It should be noted that initiating DDC bus transactions is an important way to implement link training.
[0135] The EDID information parsing function specifically includes: obtaining the EDID data of the receiving device by initiating a DDC bus transaction, and reporting the obtained EDID data to the host device. The host device parses the reported EDID data to obtain key EDID information, such as the HF_VSDB field. By parsing the HF_VSDB field, the characteristics of the receiving device are understood to determine the test content of the physical layer signal integrity.
[0136] The SCDC information parsing function specifically includes: reading or writing the SCDC register data of the receiving device by initiating a DDC bus transaction and reporting it to the host computer. The host computer software can semantically parse the SCDC register data according to fields or bits, and feedback the user's current status in a way that is easy for the user to understand.
[0137] In addition, the host computer software program also provides a user input interface, allowing the user to edit the data to be written into the SCDC register. After the user confirms the write, the SCDC data is sent to the microcontroller by the host computer software, and the microcontroller writes the user-configured SCDC register data into the SCDC register of the corresponding receiving device by starting the DDC bus transaction.
[0138] In step S220, the target device is a transmitting device, and the target simulation device is a receiving simulation device. Specifically, the target simulation device is connected to the host device via a USB2.0 cable, and the operating system of the host device correctly identifies the port of the device. The target simulation device can be configured as an HDMI Sink device through the host software program and API interface function of the receiving simulation device. At this time, the target functions of the receiving simulation device that need to be configured specifically include: voltage detection function, HPD signal output function, DDC bus slave function, EDID information preset and editing function, SCDC information preset and editing function.
[0139] The voltage detection function includes but is not limited to the +5V voltage detection function, which specifically includes: when the receiving end analog device and the transmitting end device are connected through the HDMI fixture device, the receiving end analog device can detect whether there is a +5V voltage on the 18th pin of the HDMI interface through the microcontroller and the peripheral circuit. When the host computer software program obtains the voltage status, the microprocessor uploads the analog voltage value to the host computer device through the quantization value after the analog-to-digital converter, and the host computer device feeds back to the user in the form of a voltage value. The voltage detection function is used to determine whether the transmitting end device normally outputs a +5V voltage and what the true value of the output voltage is.
[0140] The HPD signal output function specifically includes: the receiving end analog device of the present application can send high and low level signals, as well as a low level switching signal lasting more than 100ms to the 19th pin (HPD pin) of the HDMI interface through a microcontroller and peripheral circuits; taking a 200ms low level switching signal as an example, the output signal will become a high level after maintaining a low level for 200ms; if the output mode of the HPD signal changes, or the duration of the HPD low level exceeds a certain value, such as 1 second, it means that the power supply is normal. At this time, the user can configure the device through the host computer software.
[0141] It should be noted that the receiving-end analog device of the present application supports adjustable low-level duration of the HPD signal, and supports four configuration modes: 100ms, 200ms, 500ms, and 1S.
[0142] The DDC bus slave function specifically includes: the receiving end analog device of the present application implements the DDC bus slave function through a microcontroller, can receive and respond to DDC bus transactions through the DDC slave interface, and return EDID data and SCDC data to the transmitting end device by responding to DDC bus transactions. It should be noted that responding to DDC bus transactions is an important implementation method of link training.
[0143] The EDID information preset and editing functions specifically include: the receiving end analog device of this application can preset EDID data, the user can select EDID data of different configurations through the host device, the software comes with a HDMI2.1 full-featured EDID data, and supports users to import their own edited EDID data. The full-featured EDID data that comes with the receiving end analog device of this application has been solidified in the storage unit of the microprocessor, such as Flash memory. When the user chooses to use the built-in EDID data, the microprocessor will read the EDID from Flash into the memory of the microprocessor, and the EDID data in the memory can be accessed by the external transmitting end device.
[0144] In addition, users can adjust the EDID data in the microprocessor memory through the host computer software; when the user uses his own edited EDID, the user's EDID data is downloaded from the host computer device to the microprocessor's memory for access by the external transmitter device, and the EDID data built into the microprocessor's flash cannot be accessed at this time.
[0145] The SCDC information presetting and editing functions specifically include: the receiving end simulation device of the present application can pre-set SCDC data, and the user can check different features through the host computer software to configure the SCDC data required by the user. After the user configures the SCDC data, the host computer software will download this data to the memory of the microprocessor, and the SCDC data in the microprocessor memory can be used for the external transmitter device to perform corresponding read and write operations. The microprocessor will update the data written by the external transmitter to the host computer software, and the user can browse the current status of the transmitter through the host computer software interface.
[0146] In addition, the SCDC status and data update of the receiving end simulation device, the user can manually configure the SCDC related register values of the receiving end simulation device through the host computer software interface according to their own test requirements. The updated value will be directly downloaded to the memory of the microprocessor for external transmitting end equipment to read.
[0147] In some embodiments, if the target device is a receiving device, the target simulation device is connected to the target device to be tested, including: the transmitting end simulation device is connected to the HDMI fixture device via a low-speed signal interface; the HDMI fixture device is connected to the receiving end device via an HDMI interface; the HDMI fixture device is connected to the high-speed arbitrary waveform generator via a high-speed differential signal interface; the high-speed arbitrary waveform generator is connected to the host computer device via a control bus; the host computer device is connected to the transmitting end simulation device via the control interface.
[0148] Figure 3 1 is a connection diagram of a transmitter analog device provided by an embodiment of the present disclosure, and the diagram includes: a transmitter analog device 310, an HDMI fixture device 320, a receiving device 330, a high-speed arbitrary waveform generator 340, and a host device 350. The receiving device 330 is connected to the HDMI fixture device 320, the HDMI fixture device 320 is respectively connected to the high-speed arbitrary waveform generator 340 and the transmitter analog device 310, and the host device 350 is respectively connected to the high-speed arbitrary waveform generator 340 and the transmitter analog device 310.
[0149] Specifically, the HDMI fixture device has an HDMI interface, through which the high-speed differential signal and the low-speed signal in the HDMI signal are fanned out; the HDMI interface of the HDMI fixture is connected to the receiving device, connected to the high-speed arbitrary waveform generator through the high-speed differential signal interface, and connected to the transmitting analog device through the low-speed signal in the signal.
[0150] Correspondingly, the HDMI interface of the transmitter analog device is connected to the low-speed signal interface of the HDMI fixture, and when the high-speed arbitrary waveform generator has a built-in Windows platform, the control interface of the transmitter analog device is connected to the host device. It should be noted that, in addition to this, the control interface of the transmitter analog device can also be directly connected to the high-speed arbitrary waveform generator to reduce dependence on the host computer.
[0151] In addition, the 8-channel high-speed differential pattern output interface of the high-speed arbitrary waveform generator is connected to the high-speed differential signal interface of the HDMI fixture, and is connected to the host computer device through a control bus.
[0152] In some embodiments, link training is performed on the target device according to the target simulation device to obtain training result information, including: the transmitting end simulation device enables the EDID information parsing function to read the EDID data of the receiving end device; the EDID data is used to determine whether the receiving end device supports the FRL function; if the receiving end device supports the FRL function, the transmitting end simulation device enables the SCDC information parsing function to read the ready state data in the status flag bit of the SCDC data of the receiving end device; the ready state data is used to indicate whether the receiving end device is ready to enter the training state; if the ready state data is detected to be a first preset value, the transmitting end simulation device writes the preset training data into the receiving end configuration register of the SCDC data of the receiving end device; the training data includes the data rate value of the FRL function, the number of channels, and the parameter value of the forward feedback equalization; the transmitting end simulation device reads the training test pattern request data in the SCDC data of the receiving end device; the transmitting end simulation device controls the high-speed arbitrary waveform generator to generate the training test pattern data according to the training test pattern request data; if the training timeout is detected or the training test pattern request data is a second preset value, the link training is stopped and the training result information is generated.
[0153] Figure 4 is a flowchart of step S140 in some embodiments, Figure 4 The illustrated step S140 includes but is not limited to steps S410 to S460:
[0154] S410, the transmitter simulates the device to start the voltage output function, outputs +5V voltage to the receiver, and starts the HPD status detection function to verify the device connection status before link training;
[0155] S420, the transmitter simulation device enables the EDID information parsing function to parse and read the EDID data of the receiver device;
[0156] S430, if the receiving end device supports the FRL function, the transmitting end simulation device enables the SCDC information parsing function to parse and read the readiness status data in the status flag bit of the SCDC data of the receiving end device;
[0157] S440, if it is detected that the preparation state data is a first preset value, the transmitting end simulation device writes the preset training data into the receiving end configuration register of the SCDC data of the receiving end device;
[0158] S450, the transmitting end simulation device reads the training test pattern request data in the SCDC data of the receiving end device;
[0159] S460, the transmitter simulation device controls the high-speed arbitrary waveform generator to generate training test pattern data according to the training test pattern request data;
[0160] S470: If it is detected that the training timeout has occurred or the training test pattern request data is a second preset value, the link training is stopped and training result information is generated.
[0161] In step S410, when the transmitting-end analog device detects that the HPD signal is at a high level, the device connection status between the transmitting-end analog device and the receiving-end device is that the connection has been established.
[0162] In step S420, the EDID data is used to determine whether the receiving device supports the FRL function.
[0163] In step S430, the readiness status data is used to indicate whether the receiving device is ready to enter the training state; the readiness status data in the status flag of the SCDC data of the receiving device is recorded as HDMI Sink SCDC-Status FlagsFLT_Ready, where HDMI Sink is the receiving device of HDMI, Status Flags is the status flag, and FLT_Ready is the readiness status data. Specifically, by polling FLT_Ready in HDMI Sink SCDC-Status Flags, wait for the receiving device to be ready for the training state.
[0164] In step S440, the training data includes the data rate value, the number of channels, and the parameter value of the forward feedback equalization of the FRL function; the first preset value includes but is not limited to "1"; specifically, when the transmitting end simulation device inquires that the value of FLT_Ready is set to 1, the FRL data rate, the number of channels, and the relative parameter value of the forward feedback equalization required for the test are written to the SCDC-Sink Configuration register of the receiving end device. Among them, SCDC-Sink Configuration is the receiving end configuration register of SCDC data.
[0165] In steps S450 to S470, specifically, the transmitting end simulation device reads the SCDC-StatusFlags_Ln(x)_LTP_req of the receiving end device, and notifies the high-speed arbitrary waveform generator to sequentially generate the training test pattern data required by the receiving end device until the value of Ln(x)_LTP_req is 0, completing the training of all links. If the training fails due to timeout, the test is stopped.
[0166] Among them, the training test code pattern request data is a request instruction for link training, recorded as Ln(x)_LTP_req, SCDC-Status Flags is the status flag in the SCDC data, the training test code pattern data is the code pattern required in link training, the second preset value is "0", and the training result information includes training completed and training incomplete.
[0167] In some embodiments, the target test is a jitter tolerance test; the target test is performed on the target device according to the training result information, including: if the training result information indicates that the training is completed, the transmitting end simulation device controls the high-speed arbitrary waveform generator to generate target test code data; if it is detected that the number of transmitted bits of the high-speed arbitrary waveform generator is a third preset value, and the channel lock data in the status flag of the SCDC data of the receiving end device is a fourth preset value, the host computer reads the character error detection register of the SCDC data of the receiving end device through the transmitting end simulation device to obtain bit error rate data; and the tolerance test result of the jitter tolerance test is obtained according to the bit error rate data and a preset bit error rate threshold.
[0168] Figure 5 is a flowchart of step S150 in some embodiments, Figure 5 The illustrated step S150 includes but is not limited to steps S510 to S530:
[0169] S510, if the training result information indicates that the training has been completed, the transmitter simulation device controls the high-speed arbitrary waveform generator to generate target test pattern data;
[0170] S520, if it is detected that the number of bits sent by the high-speed arbitrary waveform generator is a third preset value, and the channel lock data in the status flag bit of the SCDC data of the receiving end device is a fourth preset value, the host computer reads the character error detection register of the SCDC data of the receiving end device through the transmitting end simulation device to obtain the bit error rate data;
[0171] S530, obtaining a tolerance test result of a jitter tolerance test according to the bit error rate data and a preset bit error rate threshold.
[0172] Combination Figures 4 to 5 The embodiment of the present application illustrates the process of link training and target testing by applying jitter tolerance testing to a receiving device. The target simulation device, when simulated as a transmitting simulation device, cooperates with the test pattern generated by an arbitrary waveform generator to complete link training and related pattern receiving tolerance testing for HDMI2.1 Sink devices supporting FRL features.
[0173] In step S510, the target test pattern data is a pattern required for performing a target test, such as a pattern (RXSB33PAT).
[0174] In step S520, the third preset value includes but is not limited to "10 11 ", that is, the number 10 to the 11th power, the number of transmitted bits is the bit value transmitted by each link, the fourth preset value is "1", and the fourth preset value can be used to identify the channel locking data in the status flag of the SCDC data of the receiving device; the channel locking data in the status flag of the SCDC data of the receiving device is recorded as HDMI Sink SCDC-Status Flags Lane(x)_Locked, where Lane(x)_Locked is the channel locking data, and the character error detection register of the SCDC data of the receiving device is recorded as HDMI Sink SCDC-Character Error Detection, where Character Error Detection is a character error detection register.
[0175] In a specific embodiment, the bit width of the character error detection register is 15 bits, each lane corresponds to an error register, and when a character error occurs, the character error detection register value is accumulated by 1, and the maximum accumulated error value of the character error detection register is 2. 15 .
[0176] In a specific embodiment, when performing a bit error test, each channel in the receiving device should always remain in a locked state. Bit errors can only be counted in the locked state. The following is a specific embodiment to illustrate the application of channel locking data:
[0177] The arbitrary waveform generator sends 10 11 bits, first confirm that Lane(x)_Locked of each Lane is in the locked state, then read the bit error value in the bit error register, and calculate the bit error rate; if Lane(x)_Locked has been unlocked, the bit error can no longer be counted at this time, and the tolerance test result is test failure.
[0178] In step S530, the bit error rate data is the bit error rate obtained by the test, recorded as BER, and the preset bit error rate threshold is "10 -10 ", which is the number 10 to the power of -10. The tolerance test results include test pass and test fail.
[0179] Specifically, steps S510 to S530 specifically include: after the link training is completed, the transmitting end simulation device notifies the high-speed arbitrary waveform generator to generate a specific test code type (RXSB33PAT), when the number of bits sent by the high-speed arbitrary waveform generator per link reaches 10 to the 11th power, and the host computer device reads the value of HDMI Sink SCDC-Status Flags Lane(x)_Locked through the transmitting end simulation device as 1, the host computer then reads the HDMI SinkSCDC-Character Error Detection register through the transmitting end simulation device to read the error value and calculate the bit error rate data (BER), when the BER of each link is less than 10 to the -10th power, the tolerance test result is a test pass, otherwise, the tolerance test result is a test fail.
[0180] The method provided by the embodiment of the present disclosure simulates the target analog device as an HDMI2.1 Source device, and cooperates with the test code pattern generated by the arbitrary waveform generator to complete link training and related code pattern reception tolerance test for the HDMI2.1 Sink device supporting the FRL feature. During the reception tolerance test, the device can be used to read the locking status of each FRL channel in the SCDC register of the tested HDMI2.1 Sink device and the bit error rate of each FRL channel to determine whether the tested HDMI2.1 Sink device can pass the jitter tolerance test.
[0181] In some embodiments, if the target device is a transmitting device, connecting the target simulation device to the target device to be tested also includes: the receiving simulation device is connected to the HDMI fixture device via a low-speed signal interface; the HDMI fixture device is connected to the transmitting device via an HDMI interface; the HDMI fixture device is connected to the high-speed real-time oscilloscope via a high-speed differential signal interface; the high-speed real-time oscilloscope is connected to the host computer device via a control bus; and the host computer device is connected to the receiving simulation device via a control interface.
[0182] Figure 6 1 is a connection diagram of a receiving end simulation device provided by an embodiment of the present disclosure, and the diagram includes: a receiving end simulation device 610, an HDMI fixture device 320, a transmitting end device 630, a high-speed real-time oscilloscope 640, and a host device 350. The transmitting end device 630 is connected to the HDMI fixture device 320, the HDMI fixture device 320 is respectively connected to the high-speed real-time oscilloscope 640 and the receiving end simulation device 610, and the host device 350 is respectively connected to the high-speed real-time oscilloscope 640 and the receiving end simulation device 610.
[0183] Specifically, the HDMI fixture device has an HDMI interface, through which the high-speed differential signals and low-speed signals in the HDMI signal are fanned out; the HDMI interface of the HDMI fixture is connected to the transmitting device, and the high-speed differential signal interface of the HDMI fixture is connected to the differential probe front end of the high-speed real-time oscilloscope.
[0184] Correspondingly, the low-speed signal interface of the analog device at the receiving end is connected to the HDMI fixture, and when the high-speed arbitrary waveform generator has a built-in Windows platform, the control interface of the analog device at the receiving end is connected to the host device. It should be noted that, in addition to this, the control interface of the analog device at the transmitting end can also be directly connected to a high-speed real-time oscilloscope to reduce dependence on the host computer.
[0185] In addition, the 8-channel high-speed differential probe front end of the high-speed real-time oscilloscope is connected to the high-speed differential signal interface of the HDMI fixture, and is connected to the host computer device through the control bus.
[0186] In some embodiments, link training is performed on the target device according to the target simulation device to obtain training result information, which also includes: the receiving-end simulation device enables a voltage detection function to obtain a voltage detection result; the receiving-end simulation device is controlled to enable an HPD signal output function according to the voltage detection result to set the HPD signal to a high level; the receiving-end simulation device reads the timing information in the transmitter configuration register of the SCDC data of the transmitting-end device; the timer of the feedforward equalizer and the link training is turned off according to the timing information; the transmitting-end device reads the ready state data in the status flag bit of the SCDC data of the receiving-end simulation device; if it is detected that the ready state data is a first preset value, the transmitting-end device writes the preset training data into the receiving-end configuration register of the SCDC data of the receiving-end simulation device; the training data includes a data rate value and a number of channels of the FRL function; the transmitting-end device reads the training test pattern request data in the SCDC data of the receiving-end simulation device; the transmitting-end device sends the test template data to the receiving-end simulation device according to the training test pattern request data; if it is detected that the test template is sent successfully, the training result information is generated.
[0187] Figure 7 is a flowchart of step S140 in some other embodiments, Figure 7 The illustrated step S140 includes but is not limited to steps S710 to S790:
[0188] S710, the receiving end simulates the device to enable the voltage detection function to obtain the voltage detection result;
[0189] S720, controlling the analog device at the receiving end to enable the HPD signal output function according to the voltage detection result, so as to set the HPD signal to a high level;
[0190] S730, the receiving end simulation device writes the timing information into the transmitting end configuration register of the SCDC data;
[0191] S740, closing the timer of the link training of the transmitting end device according to the timing information;
[0192] S750, the transmitting end device reads the preparation state data in the state flag bit of the SCDC data of the receiving end simulation device;
[0193] S760, if it is detected that the preparation state data is a first preset value, the transmitting end device writes the preset training data into the receiving end configuration register of the SCDC data of the receiving end simulation device;
[0194] S770, the transmitting end device reads the training test pattern request data in the SCDC data of the receiving end simulation device;
[0195] S780, the transmitting end device sends the test template data to the receiving end simulation device according to the training test pattern request data;
[0196] S790: If it is detected that the test template is sent successfully, training result information is generated.
[0197] Before step S710 , EDID data and SCDC data required for the test are preset.
[0198] In steps S710 to S720, the voltage detection result includes: a +5V signal output by the transmitting end device. If the output +5V signal is detected, the HPD signal is set to a high level through the host computer interface.
[0199] In step S730, the SCDC register is only provided in the receiving device, and there is no SCDC register in the transmitting device; the SCDC register contains configuration fields of the receiving device and the transmitting device respectively, and the transmitting device implements the configuration of the transmitting device by reading the parameters in the transmitting device configuration field in the SCDC register of the receiving device.
[0200] In steps S730 to S740, the timing information includes TXFFE_No_FFE=1; FLT_no_time=1; wherein TXFFE represents a feed-forward equalizer.
[0201] In step S750, the ready state data in the status flag of the SCDC data of the analog receiving device is recorded as HDMI Sink SCDC-Status Flags FLT_Ready, wherein the ready state data is FLT_Ready. S750 is specifically: the transmitting device polls FLT_Ready in HDMI Sink SCDC-Status Flags and waits for the HDMI FRL Sink to be ready for training.
[0202] In step S760, the training data includes the data rate value and the number of channels of the FRL function; the first preset value is "1". S760 is specifically: when the transmitting end device inquires that the FLT_Ready value is set to 1, the FRL data rate and the number of channels required for the test are written to the SCDC-Sink Configuration register of the receiving end simulation device.
[0203] In steps S770 to S790, the training test pattern request data is the type of test pattern required for each FRL link, recorded as Ln(x)_LTP_req, and the test template data is the FRL link training pattern, recorded as FRL Link TrainingPattern.
[0204] Steps S770 to S790 are specifically as follows: the sending end device sends the corresponding FRL Link Training Pattern to the receiving end simulation device according to the Ln(x)_LTP_req requested by the receiving end simulation device of the present application. If the receiving end simulation device detects that the test template is sent successfully, it generates training result information indicating that the training has been completed, thereby facilitating the next step of testing.
[0205] In some embodiments, the target test is a physical layer signal integrity test; the target test is performed on the target device according to the training result information, including: if the training result information indicates that the training is completed, the receiving end analog device controls the high-speed real-time oscilloscope to capture and analyze the code to obtain link test data; the high-speed real-time oscilloscope obtains the eye diagram test result of the physical layer signal integrity test according to the link test data.
[0206] Figure 8 is a flowchart of step S150 in some other embodiments, Figure 8 The illustrated step S150 includes but is not limited to steps S810 to S820:
[0207] S810, if the training result information indicates that the training has been completed, the analog device at the receiving end controls the high-speed real-time oscilloscope to capture and analyze the code pattern to obtain link test data;
[0208] S820, a high-speed real-time oscilloscope obtains an eye diagram test result of a physical layer signal integrity test based on the link test data.
[0209] Combination Figures 7 and 8 The present application embodiment illustrates the process of link training and target testing by applying the physical layer signal integrity test to the transmitter device. The target simulation device, in the setting of simulating a receiver simulation device, can test the eye diagram of the FRL signal output by the transmitter device in conjunction with a high-speed real-time oscilloscope and its differential probe.
[0210] In step S810, the link test data is the code data on each link. Correspondingly, in step S820, the eye diagram test result is the eye diagram of each link at the rate. It should be noted that the eye diagram test is a physical layer signal integrity test.
[0211] The method provided in the embodiment of the present disclosure simulates the target analog device as an HDMI2.1Sink device, induces the HDMI2.1 Source device supporting the FRL feature to enter the link training state, and allows the HDMI2.1 Source to send an LTPn code type that meets the test requirements. In conjunction with a high-speed real-time oscilloscope, the physical layer signal integrity test of the HDMI2.1 Source device can be completed.
[0212] In some embodiments, the target device also includes a relay device, which has the functions of both a transmitting device and a receiving device. The target device is subjected to a target test based on the training result information, including: performing a physical layer signal integrity test on the relay device; and performing a jitter tolerance test on the relay device.
[0213] In a specific embodiment, the HDMI Repeater product has the characteristics of both HDMI Sink and HDMI Source. For the test of the repeater device, it is necessary to perform the tests for the receiving device and the transmitting device in the above embodiment respectively, such as performing the physical layer signal integrity test and the jitter tolerance test respectively.
[0214] The disclosed embodiment proposes a target simulation device, which applies the device testing method based on link training of the above embodiment, and the device includes: a microcontroller; an HDMI low-speed interface device, which is connected to the microcontroller; the HDMI low-speed interface device is used to connect to the HDMI fixture device, and the HDMI low-speed interface device is also used to communicate with the target device; a USB interface device, which is connected to the microcontroller, and the USB interface device is used to connect to the host computer device, and the USB interface device is also used to report DCC data, voltage data, and HPD status data; the USB interface device is also used to receive control commands; a working status indication device, which is connected to the microcontroller, and the working status indication device is used to display working status information; wherein the working status information includes a host status and a slave status; if the target device is a receiving device, the working status information is the host status; if the target device is a sending device, the working status information is the slave status.
[0215] See also Fig. 9 , Fig. 9 The target simulation device of an embodiment is shown, comprising: a microcontroller 901, an HDMI low-speed interface device 902, a USB interface device 903, and a working status indication device 904. The HDMI low-speed interface device 902, the USB interface device 903, and the working status indication device 904 are connected to the microcontroller 901 respectively.
[0216] It should be noted that Fig. 9 The target simulated device in is Figure 3 The transmitter simulation equipment and Figure 6 The receiving end simulation device in Figure 3 The transmitter simulation equipment and Figure 6 The receiving end simulation devices in are Fig. 9 The target simulation device in the two different application scenarios. Figure 3 The transmitter simulation equipment and Figure 6 The receiving end simulation device in the actual production and use is the same product, and the difference in its name is only to distinguish the different applications in different embodiments, and should not be understood as ambiguity or limitation to this application.
[0217] Specifically, the microcontroller includes but is not limited to a 32-bit embedded processor, and the microcontroller also includes a storage unit, in which a host computer control program and an API interface function are stored.
[0218] Specifically, the HDMI low-speed interface device is used to connect to the external HDMI fixture device, thereby using the API interface function to establish a connection with the target device, thereby realizing the test of the target device. Among them, on the device based on the Windows platform, the oscilloscope or arbitrary waveform generator manufacturer can use the API interface function to mount the device on the oscilloscope or arbitrary waveform generator, and the oscilloscope or arbitrary waveform generator can automatically control the tested HDMIFRL product to enter the relevant test state through the API interface function, so as to realize the automation of the HDMI FRL physical layer signal integrity test and exchange EDID and SCDC information; HDMI fixture devices include but are not limited to HDMI Plug test fixtures.
[0219] Specifically, the USB interface device is used to connect with a host device, an oscilloscope or an arbitrary waveform generator to report DDC data, +5V, HPD status, or receive control commands sent by the host to the microcontroller, for example, using the host control program to communicate with the host device to report DCC data, voltage data, HPD status data. For example, the host interface uses a USB2.0 interface, which is convenient for connecting to a host of any platform.
[0220] The working status indication device is used to indicate to the user the current working status information of the target simulation device, and the working status information includes the host status and the slave status; if the target device is a receiving device, the target simulation device is a sending device, and the working status information of the target simulation device is the host status; if the target device is a sending device, the target simulation device is a receiving device, and the working status information of the target simulation device is the slave status.
[0221] In a specific embodiment, general test equipment such as a high-speed real-time oscilloscope and an arbitrary waveform generator are widely used in the testing of general physical layer signals. The test equipment itself does not have any channel for interacting with the product under test. When a high-speed real-time oscilloscope is used to perform signal quality analysis on the signal sent by the HDMI FRL Source, it is necessary to induce the HDMI FRL Source device to send a corresponding test code pattern through an external device or equipment, and the target simulation device of the present application is an implementation form of such an external induction device.
[0222] The target simulation device provided in the embodiment of the present application can be used in the traditional HDMI1.4b and HDMI2.0 tests. The full automation of the test is achieved by calling the API interface, that is, the same platform (oscilloscope or arbitrary waveform generator) is used to achieve the induction of the HDMI FRL device under test and the test of the physical layer signal, thereby improving the test efficiency.
[0223] The disclosed embodiment proposes a device testing apparatus based on link training, comprising: a device type acquisition module, used to acquire the device type of a target device to be tested; the target device comprises a receiving device and a transmitting device; the target device is an HDMI device with an FRL function; an analog device configuration module, used to perform device configuration according to the device type to obtain a target analog device so that the target analog device has a target function; the target analog device comprises a transmitting analog device and a receiving analog device; a device connection module, used to connect the target analog device with the target device to be tested; a link training module, used to perform link training on the target device according to the target analog device to obtain training result information; a test module, used to perform target test on the target device according to the training result information; the target test comprises a physical layer signal integrity test and a jitter tolerance test.
[0224] See also Fig.10 , Fig.10 The device testing apparatus based on link training of an embodiment is illustrated, and the device testing apparatus based on link training includes: a device type acquisition module 1001, a simulated device configuration module 1002, a device connection module 1003, a link training module 1004, and a test module 1005. The device type acquisition module 1001 is connected to the simulated device configuration module 1002, the simulated device configuration module 1002 is connected to the device connection module 1003, the device connection module 1003 is connected to the link training module 1004, and the link training module 1004 is connected to the test module 1005.
[0225] The specific implementation of the device testing apparatus based on link training in this embodiment is basically consistent with the specific implementation of the device testing method based on link training described above, and belongs to the same inventive concept, and will not be described in detail here.
[0226] The present disclosure also provides an electronic device, including:
[0227] at least one memory;
[0228] at least one processor;
[0229] at least one program;
[0230] The program is stored in the memory, and the processor executes at least one program to implement the device testing method based on link training described above in the present disclosure.
[0231] See also Fig.11 , Fig.11 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:
[0232] The processor 1101 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present disclosure;
[0233] The memory 1102 may be implemented in the form of a ROM (Read Only Memory), a static storage device, a dynamic storage device, or a RAM (Random Access Memory). The memory 1102 may store an operating system and other application programs. When the technical solution provided in the embodiments of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1102, and the processor 1101 calls and executes the device testing method based on link training in the embodiments of the present disclosure;
[0234] Input / output interface 1103, used to implement information input and output;
[0235] Communication interface 1104, used to realize communication interaction between the device and other devices, which can be realized by wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.); and
[0236] A bus 1105 that transmits information between various components of the device (e.g., the processor 1101, the memory 1102, the input / output interface 1103, and the communication interface 1104);
[0237] The processor 1101 , the memory 1102 , the input / output interface 1103 and the communication interface 1104 are connected to each other in communication within the device via the bus 1105 .
[0238] The embodiment of the present disclosure further provides a storage medium, which is a computer-readable storage medium. The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the above-mentioned device testing method based on link training.
[0239] The device testing method and target simulation device based on link training proposed in the embodiments of the present disclosure first obtain the device type of the target device to be tested, then the target device is an HDMI device with an FRL function, and the device is configured according to the device type to obtain a target simulation device so that the target simulation device has the target function, and then the target simulation device is connected to the target device to be tested, and link training is performed on the target device according to the target simulation device to obtain training result information, and finally a target test is performed on the target device according to the training result information. The technical solution provided in the embodiments of the present disclosure improves the efficiency of device testing.
[0240] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0241] The embodiments described in the embodiments of the present disclosure are intended to more clearly illustrate the technical solutions of the embodiments of the present disclosure and do not constitute a limitation on the technical solutions provided by the embodiments of the present disclosure. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present disclosure are also applicable to similar technical problems.
[0242] It can be understood by those skilled in the art that Figure 1-8 The technical solutions shown in the figure do not constitute a limitation on the embodiments of the present disclosure, and may include more or fewer steps than those shown in the figure, or a combination of certain steps, or different steps.
[0243] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0244] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0245] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0246] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0247] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0248] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0249] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0250] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0251] The preferred embodiments of the present disclosure are described above with reference to the accompanying drawings, but the scope of the rights of the present disclosure is not limited thereto. Any modification, equivalent substitution and improvement made by those skilled in the art without departing from the scope and essence of the present disclosure should be within the scope of the rights of the present disclosure.
Claims
1. A device testing method based on link training, characterized in that: include: Obtaining the device type of the target device to be tested; the target device includes a receiving end device and a transmitting end device; The target device is an HDMI device with FRL function; Perform device configuration according to the device type to obtain a target simulation device so that the target simulation device has a target function; the target simulation device includes a transmitting end simulation device and a receiving end simulation device; Connecting the target simulation device to the target device to be tested; Performing link training on the target device according to the target simulation device to obtain training result information; The target device is subjected to a target test according to the training result information; the target test includes a physical layer signal integrity test and a jitter tolerance test.
2. The method according to claim 1, characterized in that The step of performing device configuration according to the device type to obtain a target simulation device so that the target simulation device has a target function includes: If the target device is the receiving device, the target analog device is the transmitting analog device; the target functions of the transmitting analog device include: voltage output function, HPD status detection function, DDC bus host function, EDID information parsing function, SCDC information parsing function; If the target device is the transmitting device, the target analog device is the receiving analog device; the target functions of the receiving analog device include: voltage detection function, HPD signal output function, DDC bus slave function, EDID information preset and editing function, SCDC information preset and editing function.
3. The method according to claim 2, characterized in that If the target device is the receiving end device, the step of connecting the target simulation device to the target device to be tested includes: The transmitting end analog device is connected to the HDMI fixture device via a low-speed signal interface; The HDMI fixture device is connected to the receiving end device via an HDMI interface; The HDMI fixture device is connected to a high-speed arbitrary waveform generator via a high-speed differential signal interface; The high-speed arbitrary waveform generator is connected to the host computer device via a control bus; The host computer device is connected to the transmitting end simulation device via a control interface.
4. The method according to claim 3, characterized in that The performing link training on the target device according to the target simulation device to obtain training result information includes: The transmitting end analog device starts the voltage output function, outputs +5V voltage to the receiving end device, and starts the HPD state detection function to verify the device connection state before the link training; when the transmitting end analog device detects that the HPD signal is at a high level, the device connection state between the transmitting end analog device and the receiving end device is that the connection has been established; The transmitting end simulation device enables the EDID information parsing function to parse and read the EDID data of the receiving end device; the EDID data is used to determine whether the receiving end device supports the FRL function; If the receiving end device supports the FRL function, the transmitting end simulation device enables the SCDC information parsing function to parse and read the readiness state data in the state flag bit of the SCDC data of the receiving end device; the readiness state data is used to indicate whether the receiving end device is ready to enter the training state; If it is detected that the preparation state data is a first preset value, the transmitting end simulation device writes preset training data into the receiving end configuration register of the SCDC data of the receiving end device; the training data includes the data rate value, the number of channels, and the parameter value of the forward feedback equalization of the FRL function; The transmitting end simulation device reads the training test pattern request data in the SCDC data of the receiving end device; The transmitting end simulation device controls the high-speed arbitrary waveform generator to generate training test pattern data according to the training test pattern request data; If it is detected that the training timeout has occurred or the training test pattern request data is a second preset value, the link training is stopped and the training result information is generated.
5. The method according to claim 4, characterized in that The target test is the jitter tolerance test; and performing the target test on the target device according to the training result information includes: If the training result information indicates that the training has been completed, the transmitting end simulation device controls the high-speed arbitrary waveform generator to generate target test pattern data; If it is detected that the number of transmitted bits of the high-speed arbitrary waveform generator is a third preset value, and the channel lock data in the status flag bit of the SCDC data of the receiving end device is a fourth preset value, the host computer reads the character error detection register of the SCDC data of the receiving end device through the transmitting end simulation device to obtain bit error rate data; A tolerance test result of the jitter tolerance test is obtained according to the bit error rate data and a preset bit error rate threshold.
6. The method according to claim 2, characterized in that If the target device is the transmitting end device, the connecting the target simulation device with the target device to be tested further includes: The receiving end analog device is connected to the HDMI fixture device via a low-speed signal interface; The HDMI fixture device is connected to the transmitting end device via an HDMI interface; The HDMI fixture device is connected to a high-speed real-time oscilloscope via a high-speed differential signal interface; The high-speed real-time oscilloscope is connected to the host computer device via a control bus; The host computer device is connected to the receiving end simulation device via a control interface.
7. The method according to claim 6, characterized in that The performing link training on the target device according to the target simulation device to obtain training result information also includes: The receiving end simulation device enables a voltage detection function to obtain a voltage detection result; Controlling the receiving end analog device to enable the HPD signal output function according to the voltage detection result to set the HPD signal to a high level; The receiving end simulation device writes the timing information into the transmitting end configuration register of the SCDC data; Turning off the timer of the link training of the transmitting end device according to the timing information; The transmitting end device reads the preparation state data in the state flag bit of the SCDC data of the receiving end simulation device; If it is detected that the preparation state data is a first preset value, the transmitting end device writes preset training data into the receiving end configuration register of the SCDC data of the receiving end simulation device; the training data includes the data rate value and the number of channels of the FRL function; The transmitting end device reads the training test pattern request data in the SCDC data of the receiving end simulation device; The transmitting end device sends the test template data to the receiving end simulation device according to the training test pattern request data; If it is detected that the test template data is sent successfully, the training result information is generated.
8. The method according to claim 7, characterized in that The target test is the physical layer signal integrity test; and performing the target test on the target device according to the training result information includes: If the training result information indicates that the training has been completed, the receiving end simulation device controls the high-speed real-time oscilloscope to capture and analyze the code pattern to obtain link test data; The high-speed real-time oscilloscope obtains the eye diagram test result of the physical layer signal integrity test according to the link test data.
9. The method according to any one of claims 1 to 8, characterized in that: The target device further includes a relay device, and the relay device has the functions of the transmitting device and the receiving device at the same time. The target test is performed on the target device according to the training result information, including: Performing the physical layer signal integrity test on the relay terminal device; The jitter tolerance test is performed on the relay terminal device.
10. A target simulation device, characterized in that: According to the device testing method based on link training as claimed in claim 9, the target simulation device includes: Microcontroller; An HDMI low-speed interface device, the HDMI low-speed interface device is connected to the microcontroller; the HDMI low-speed interface device is used to connect to an HDMI fixture device, and the HDMI low-speed interface device is also used to communicate with the target device; A USB interface device, the USB interface device is connected to the microcontroller, the USB interface device is used to connect to a host computer device, and the USB interface device is also used to report DCC data, voltage data, and HPD status data; the USB interface device is also used to receive control commands; A working status indicating device, the working status indicating device is connected to the microcontroller, and the working status indicating device is used to display working status information; wherein the working status information includes a host status and a slave status; if the target device is the receiving device, the working status information is the host status; if the target device is the transmitting device, the working status information is the slave status.
