A method and apparatus for detecting audio and video interfaces.

By generating source data and parsing the output data into time-series data, combined with matrix calculations, the inconvenience of audio and video interface detection and fault location problems are solved, achieving efficient and low-cost audio and video interface detection and fault location.

CN116366488BActive Publication Date: 2026-11-17INNOSILICON MICROELECTRONICS (WUHAN) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310219923.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-02
Publication Date
2026-11-17
Estimated Expiration
2043-03-02

AI Technical Summary

Technical Problem

Existing audio and video interface testing is inconvenient and makes it difficult to locate hardware and software faults. Protocol analyzers are expensive and cannot perform large-scale testing, nor can they accurately locate faults in different parameters and hardware channels.

Method used

By generating source data in audio and video formats, inputting it into the audio and video interface, controlling the configuration parameters of the output data, parsing the output data into time-series data, analyzing it using a general-purpose processor, performing fault diagnosis by combining matrix calculations, and conducting detection using a general-purpose detection device.

Benefits of technology

Without using a protocol analyzer, functional testing and fault location of audio and video interfaces were achieved, improving testing efficiency, reducing costs, expanding the testing range, and enabling testing for different interface types.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116366488B_ABST
    Figure CN116366488B_ABST
Patent Text Reader

Abstract

This invention relates to the field of audio and video device testing, and particularly to a method and apparatus for testing audio and video interfaces. It mainly includes: generating source data in audio and / or video formats based on source variables; inputting the source data into the audio and video interface to be tested; configuring the audio and video interface according to output variables, controlling the configuration parameters of the audio and video interface output data, wherein the output variables do not contain parameters corresponding to the source variables; acquiring output data in the corresponding format output by the audio and video interface based on the source data; parsing the output data into timing data; and determining the functional status of the audio and video interface based on the timing data. This invention can locate the cause of audio and video interface faults based on the output results of different parameter combinations without using a protocol analyzer, and can simultaneously complete the testing of the audio and video source chip and the audio and video interface.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of audio and video device testing, and in particular to a method and apparatus for testing audio and video interfaces. Background Technology

[0002] Currently, common audio and video interfaces include High Definition Multimedia Interface (HDMI), DisplayPort (DP), Video Graphics Array (VGA), and Tip Ring Sleeve (TRS). There are two main methods for detecting the output image and audio of audio and video interfaces: one is image detection from the monitor or audio output from the audio playback device, and the other is detection using a protocol analyzer. The first method relies on human visual and auditory recognition, which is not very accurate and may fail to distinguish output details such as color differences in individual images. The second method uses a protocol analyzer to parse the video and audio formats and frame parameters, and display the image. Some high-end protocol analyzers can even parse and display the content of each pixel. However, protocol analyzers compatible with HDMI and DP interfaces are expensive and cannot perform large-scale image and audio detection.

[0003] On the other hand, existing protocol analyzers test by splitting the audio and video interface output data according to the protocol format and then comparing them. This method can only detect faults at the protocol layer. However, faults at the protocol layer do not correspond one-to-one with faults at the hardware or software layer or channel. Therefore, it is impossible to locate faults in different parameters or hardware channel faults.

[0004] Therefore, how to overcome the shortcomings of existing technologies and solve the current inconvenience of audio and video interface detection is a problem to be solved in this technical field. Summary of the Invention

[0005] In view of the above-mentioned defects or improvement needs of the existing technology, the present invention solves the problems of inconvenient testing and difficulty in locating software and hardware faults in existing audio and video interfaces.

[0006] The embodiments of the present invention adopt the following technical solutions:

[0007] In a first aspect, the present invention provides a method for detecting an audio / video interface, comprising: generating source data in audio and / or video formats based on source variables, and inputting the source data into the audio / video interface to be tested; configuring the audio / video interface according to output variables, and controlling the configuration parameters of the output data of the audio / video interface, wherein the output variables do not contain parameters corresponding to the source variables; obtaining output data in a corresponding format output by the audio / video interface based on the source data, parsing the output data into timing data, and determining the functional state of the audio / video interface based on the timing data.

[0008] Preferably, determining the functional status of the audio / video interface based on time-series data specifically includes: constructing the source data into a source matrix with a preset structure, and constructing the time-series data after parsing the output data into an output matrix with a preset structure; obtaining conversion coefficients based on source variables and output variables, such that the output matrix under normal operating conditions is equal to the product of the source matrix and the conversion coefficients; comparing the actual output matrix with the output matrix under normal operating conditions to obtain difference data, and diagnosing faults in the audio / video interface based on the difference data.

[0009] Preferably, parsing the output data into time-series data specifically includes: storing the output video data as a video file, and parsing the video file into image data sorted by time; and / or storing the output audio data as an audio file, and parsing the audio file into waveform data on the time axis; and / or parsing the output data into time-series parameter data, wherein the time-series parameters include at least one of: bitstream data, time-series frame parameters, and signal quality.

[0010] Preferably, parsing the output data into time series data further includes: storing the parsed time series data, and using the stored time series data for batch analysis and detection.

[0011] Preferably, generating source data in audio and / or video formats based on source variables and inputting the source data into the audio and video interface to be tested further includes: setting source variables based on the attribute transmission of pixel information elements of each pixel point of the HDMI interface; generating test image combinations based on the pixel information elements transmitted by different channels and the corresponding source variables, and using the test image combinations as source data; transmitting them separately through the corresponding channels of the interface, so as to parse whether the elements transmitted by the channel to be verified are normal based on the output image.

[0012] Preferably, configuring the audio / video interface according to the output variables and controlling the configuration parameters of the audio / video interface output data further includes: using video that supports scrambling as source data and enabling the scrambling function of the HDMI interface; obtaining the audio / video interface outputting output data in the corresponding format based on the source data, parsing the output data into timing data, and determining the functional status of the audio / video interface based on the timing data includes: parsing whether the output video stream data has scrambling / descrambling action, and parsing whether the frequency of the clock channel conforms to the preset pixel clock value.

[0013] Preferably, the configuration parameters for configuring the audio and video interface according to the output variables and controlling the output data of the audio and video interface further include: using video that supports format conversion as source data, enabling the pass-through and conversion modes of the audio and video interface respectively, so as to verify whether the conversion is correct according to the format and content of the output data.

[0014] On the other hand, the present invention provides a detection device for an audio / video interface, specifically comprising a main processor, an audio / video pipeline, a receiving module, and a storage module, used to implement the audio / video interface detection method provided in the first aspect. Specifically, the main processor is connected to the storage module, the audio / video pipeline, and the receiving module respectively; the storage module is connected to the audio / video pipeline and the receiving module; the audio / video pipeline is connected to the audio / video interface; and the receiving module is connected to the audio / video interface. The main processor is used to generate source data according to the method provided in the first aspect and to process the output data to obtain detection results. The audio / video pipeline is used to extract the source data and send it to the audio / video interface to be tested. The audio / video interface is used to convert and output the source data according to output variables. The receiving module is used to parse the output data of the audio / video interface into time-series data. The storage module is used to store the source data and the output data of the audio / video interface so as to obtain detection results by comparing the source data and the output data.

[0015] Preferably, the receiving module includes a voltage sensor, specifically: the voltage sensor is connected to each electrical signal channel of the audio / video interface, and is used to detect the voltage and signal swing of each channel of the audio / video interface when transmitting data, so as to detect and check the voltage and current drive functionality of each channel.

[0016] Preferably, the receiving module includes a video recording function component:

[0017] The recording function component is used to save the input data of the audio and video interface as audio or video files so that the output data can be parsed into time-series data.

[0018] Compared with existing technologies, the beneficial effects of this invention are as follows: by setting different combinations of source and output parameters, different audio and video sources and output objects are generated for different parameter faults. Without using a protocol analyzer, the cause of audio and video interface faults can be located based on the output results of different parameter combinations, and the detection of audio and video source chips and audio and video interfaces can be completed simultaneously. Furthermore, in a preferred embodiment, the analysis process is simplified through matrix calculation, and the performance and additional functions of each channel of the audio and video interface are tested.

[0019] On the other hand, the device provided in this embodiment, without using a protocol analyzer, performs the detection method of the first aspect and uses general-purpose devices to complete the functional testing and fault location of the audio and video interface. Furthermore, in a preferred embodiment, a voltage sensor is also used to provide channel electrical performance testing functions that a protocol analyzer cannot provide. Attached Figure Description

[0020] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments of the present invention will be briefly described below. Obviously, the drawings described below are merely some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.

[0021] Figure 1 This is a schematic diagram of the test results from an existing protocol analyzer;

[0022] Figure 2 A flowchart illustrating a method for detecting an audio / video interface provided in an embodiment of the present invention;

[0023] Figure 3 A schematic diagram of an audio / video interface detection device provided in an embodiment of the present invention;

[0024] Figure 4 A flowchart illustrating the usage method of an audio / video interface device provided in an embodiment of the present invention. Detailed Implementation

[0025] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0026] This invention is an architecture of a specific functional system. Therefore, the specific embodiments mainly describe the functional logic relationship of each structural module, and do not limit the specific software and hardware implementation methods.

[0027] Furthermore, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other. The present invention will now be described in detail with reference to the accompanying drawings and embodiments.

[0028] Currently, protocol analyzers are commonly used for testing audio and video interfaces. However, in practice, due to limitations in their testing principles, protocol analyzers can typically only test one interface at a time, making large-scale testing inconvenient and reducing testing efficiency by connecting interfaces one by one. Furthermore, protocol analyzers can only determine the status of each pin of the interface based on the interface protocol. For example, when testing an HDMI interface, a typical output will be generated as follows: Figure 1 The data corresponding to each pin of the HDMI protocol shown in the analysis results do not correspond one-to-one with the internal hardware and software faults of the interface. Further analysis is required, and manual analysis may even be necessary to obtain the final fault detection results.

[0029] To solve the above problems, such as Figure 2 As shown, the specific steps of the audio / video interface detection method provided in this embodiment of the invention are as follows.

[0030] Step 101: Generate source data in audio and / or video formats based on the source variables, and input the source data into the audio and video interface to be tested.

[0031] In the method provided in this embodiment, to facilitate the localization of hardware and software faults, corresponding data sources are generated for different parameter combinations by controlling source variables. For example, for the RGB value parameter group of video, video format source data containing three image frames (R,0,0), (0,G,0), and (0,0,B) are generated by different combinations of source variable values. The output data of the video interface is then used to test whether the video interface processes different parameters correctly.

[0032] It is understood that the data source can be a video format, an audio format, or a mixed audio-video format, and this invention does not impose any restrictions on this. To test the correctness of the audio-video interface's processing of data of different formats, the data source needs to include images and audio of different resolutions, types, and formats. It can also include data that has undergone additional processing, such as GPU graphics card rendering, layer overlay, and flipping techniques. Furthermore, testing efficiency can be improved by simultaneously defining multiple non-conflicting source variables. For example, setting both an RGB value source variable and a resolution source variable simultaneously is possible. Since the RGB value parameter represents the value of a single pixel, and the resolution parameter represents the number of pixels, they do not conflict, allowing for simultaneous testing of both parameters. Alternatively, setting both an RGB value source variable for video and an i2s sample rate source variable for audio allows for simultaneous testing of both audio and video functions.

[0033] Step 102: Configure the audio / video interface according to the output variables, and control the configuration parameters of the audio / video interface output data. The output variables do not include the parameters corresponding to the source variables.

[0034] For audio / video interfaces, the output data is not entirely consistent with the data source and is also affected by the configuration parameters of the output data. To ensure that the output data parameters respond correctly, it is also necessary to control the audio / video interface using output variables and to detect the corresponding parameters.

[0035] To avoid misjudgment caused by the interaction between output and source variables, the output variables should not contain the parameters corresponding to the source variables.

[0036] In some implementations, the source variables are configured with image color-related parameters such as YUV / RGB format, color depth, and 8-chI2Sor 2-chspdif, and pixels corresponding to some HDMI / DP channels are masked. In this case, the output variables do not contain the above parameters, and the values ​​of the relevant output data are entirely controlled by the source end to ensure that the output data accurately reflects whether the interface processes the source data correctly, avoiding misjudgments caused by color changes in the output variables. When the source data is generated by the video source chip, the functionality of the video source chip can also be tested.

[0037] In some implementations, when the source variables do not contain the color-related parameters in Scenario 1, but only the audio source-related parameters, the output variables can use color-related parameters such as YUV / RGB format, color depth, 8-ch I2S or 2-ch spdif, and masking some pixels corresponding to some HDMI / DP channels. All differences between the output data and the source data are controlled by the interface, which can accurately reflect whether the interface responds correctly to the configuration parameters of the output data.

[0038] To further improve detection efficiency, different combinations of source and output variables can be set at different time points in the source data, allowing one source data to be used to detect multiple sets of parameters.

[0039] Furthermore, in some implementations, the source data can be pre-generated by a general-purpose processor based on common combinations of source variables to improve the consistency of test results and increase test efficiency. Alternatively, dedicated audio / video source chips can be used for generation to simultaneously perform audio / video source chip testing.

[0040] The above method allows for the diagnosis of audio and video interface functionality from two dimensions: audio and video source and audio and video interface. It accurately locates faults in different parameters while simultaneously detecting multiple parameters, thus improving testing efficiency.

[0041] Step 103: Obtain the output data of the audio and video interface in the corresponding format based on the source data, parse the output data into timing data, and determine the functional status of the audio and video interface based on the timing data.

[0042] When using a protocol analyzer for testing, the electrical signals of each pin of the audio / video interface are typically acquired separately and analyzed according to the response protocol. This requires the hardware of the protocol analyzer itself. While it's possible to use an oscilloscope or other electrical signal analysis instruments connected to each pin for analysis without a protocol analyzer, the connection and analysis processes are quite complex.

[0043] In the method provided in this embodiment, to simplify the analysis process, the output data that a general-purpose processor can recognize and analyze is directly used as the analysis object during detection. Since the detection object in this embodiment is an audio-visual interface, the output data is also audio data, video data, and mixed audio-visual data in the corresponding format. In specific implementations, the specific output data format is not limited; a lossless data format that can completely reflect the source data and output data content and accurately reflect the source parameters and output parameters can be used.

[0044] When analyzing audio and video output data, a frame-by-frame analysis based on time sequence is typically used. Therefore, it is also necessary to parse the output data into time-series data. In some implementations, the parsing can be based on the specific type of the output data. For example, the output video data can be stored as a video file, and the video file can be parsed into time-sorted image data, such as storing each frame of the video file as corresponding lossless image data in formats like BMP or PNG. Alternatively, the output audio data can be stored as an audio file, and the audio file can be parsed into waveform data on the timeline, such as converting the audio file into waveform data in lossless formats like WAV or PCM. Or, the output data can be parsed into timing parameter data, where the timing parameters include at least one of the following: bitstream data, timing frame parameters, and signal quality. The specific timing parameters are determined based on the specific attributes of the audio and video interface and the detection requirements, and this invention does not impose any limitations on this.

[0045] In some implementations, the above data parsing and comparison process can be completed using a general-purpose processor, or it can be completed using a dedicated processor that can perform the corresponding functions according to actual needs.

[0046] In the method provided in this embodiment, a general-purpose processor can be used to analyze the output data. Since general-purpose processors possess parallel processing capabilities that protocol analyzers typically lack, in some implementations, to facilitate parallel batch processing of the output data, the parsed time-series data can be stored, and the stored time-series data can be used for batch analysis and detection. Furthermore, a database can be used to manage the time-series data and analysis results, enabling statistical analysis of the detection results and facilitating subsequent querying and management.

[0047] After steps 101 to 103 provided in this embodiment, specific source data can be generated using source variables to detect whether the audio / video interface correctly transmits and converts the source data. Output parameters of the audio / video interface can be configured using output variables to detect whether the audio / video interface responds correctly to the output parameters. Batch testing of multiple parameters can be achieved through the combination of source and output variables. Simultaneously, the output data is parsed into time-series data, which can be processed using a general-purpose processor. The detection and analysis process can be completed without the need for a protocol analyzer, and batch processing can improve detection efficiency.

[0048] In practical implementation, to facilitate comparative analysis of source and output data, matrices can be used as the data structure for both. Matrix operations allow for convenient data comparison and fault location. Specifically: the source data is constructed into a source matrix with a preset structure, and the parsed time-series data of the output data is constructed into an output matrix with a preset structure. Conversion coefficients are obtained based on the source and output variables, ensuring that the output matrix under normal operating conditions equals the product of the source matrix and the conversion coefficients. The actual output matrix is ​​compared with the output matrix under normal operating conditions to obtain the difference data, which is then used to diagnose faults in the audio / video interface.

[0049] During calculation, the source data is constructed into a source matrix A. The conversion coefficient i is determined based on the dynamic configuration of the source variables, output variables, output interface, interface under test, and / or input interface. Under normal operating conditions of the audio / video interface, the expected result of A*i is the output matrix Bi under normal operating conditions. The actual output data of the audio / video interface during testing is constructed into an output matrix Bo. The difference between Bi and Bo can be used to diagnose interface module faults. For example, when testing RGB values, the RGB value of each pixel in the video interface's output data needs to be completely consistent with the source data; therefore, the conversion coefficient for each pixel is 1. That is, when A = {Ri, Gi, Bi}, Bi = A*i = {Ri, Gi, Bi}*1 = {Ri, Gi, Bi}. After converting the output data, Bo = {Ro, Go, Bo} is obtained. At this point, by comparing Bi and Bo for each pixel, it can be determined whether the video interface can correctly transmit, convert, and output the RGB values ​​in the source data, and the difference between Bi and Bo can be used to determine which parameter (R, G, B) is incorrect.

[0050] In some implementations, an appropriate source matrix can be constructed based on the combination of source and output variables, as well as the functional items to be detected, and appropriate transformation coefficients can be selected. For example, the source matrix A can use RGB Value, Pattern, bpp, i2s sample rate, etc.; the transformation coefficient i can use Resolution, Format, CSC, Scramble, Channel enable, i2s sample rate, etc.

[0051] Furthermore, since different interface protocols have different pin definitions, protocol analyzers for each protocol interface are usually dedicated devices that can only test a single type of interface. However, the method provided in this embodiment can use a general-purpose processor for data analysis, without hardware limitations. Therefore, in addition to the common testing content for audio and video interfaces mentioned above, it can also perform targeted testing based on the characteristics of different audio and video interfaces.

[0052] The following examples, using the characteristics of the HDMI interface as an example, provide some implementation methods for specific tests to better explain the present invention.

[0053] (1) HDMI interface channel check.

[0054] The source variables are set based on the attribute settings of each pixel information element transmitted by each pixel point of the HDMI interface. A test image combination is generated based on the pixel information elements transmitted from different channels and the corresponding source variables, and this test image combination is used as the source data. It is then transmitted through the corresponding channels of the interface to determine whether the elements transmitted by the channel to be verified are normal based on the output image.

[0055] (2) Verification of scrambling function.

[0056] Using video that supports scrambling as source data, enable the scrambling function on the HDMI interface. Obtain the corresponding format output data from the audio / video interface, parse the output data into timing data, and determine the functional status of the audio / video interface based on the timing data. Analyze whether the output video stream data has been scrambled or descrambled, and determine whether the frequency of the clock channel matches the preset pixel clock value. In typical HDMI interface usage scenarios, 4K60 RGB video can be used as source data to monitor the scrambling function of HDMI at 4K60 resolution. In this scenario, the corresponding pixel clock value is typically one-quarter of the pixel clock.

[0057] (3) Transmission and enabling of RGB / YUV formats.

[0058] HDMI interfaces offer two video source format options: pass-through (no conversion) and conversion (YUV to RGB, RGB to YUV). Pass-through does not convert the data format, but conversion can be performed between YUV and RGB formats. To verify the functionality, appropriate source and output variables can be set, using video files that support format conversion as source data. The pass-through and conversion modes of the audio and video interfaces can be enabled respectively, and the conversion can be verified based on the output data format and content. In this scenario, RGB or YUV format video files can be used as source data.

[0059] As can be seen, the method provided in this embodiment can detect different extended functions of a specific type of audio / video interface. For other types of interfaces, the above method can also be used as a reference, and corresponding detection content can be designed based on the principles of the method provided in this embodiment.

[0060] As described above, the audio / video interface detection method provided in this embodiment can perform targeted testing on different functional parameters of the interface by setting different combinations of source and output variables, and can simultaneously complete the detection of audio / video source chips and audio / video interfaces, accurately and quickly locating hardware and software faults. By using output data analysis instead of pin electrical signal analysis, a dedicated protocol analyzer is eliminated, reducing testing costs. Furthermore, corresponding test methods can be designed for different interface types, expanding the scope of application of the test methods. Parsing the output data into time-series data for frame-by-frame analysis results in high accuracy and no omissions. Batch processing of output data improves detection efficiency. Simultaneously, matrix calculation further simplifies the fault analysis process and improves the efficiency of fault location.

[0061] The present invention also provides a detection device for audio and video interfaces that can be used to implement the above-described method. For example... Figure 3 As shown, the device includes a main processor, an audio / video pipeline, a receive (Rx) module, and a storage module, all within the dashed box. The main processor is connected to the storage module, the audio / video pipeline, and the receive module. The storage module is connected to both the audio / video pipeline and the receive module. The audio / video pipeline is connected to the audio / video interface, and the receive module is connected to the audio / video interface.

[0062] The main processor generates source data according to the method provided in the above embodiments and processes the output data to obtain detection results. Corresponding to step 101, the main processor generates or selects corresponding audio or video source data based on the source variables, or sends the source variables to the audio / video source chip to generate corresponding audio or video source data as detection data for the audio / video interface. Corresponding to step 102, the main processor configures the output parameters of the audio / video interface according to the output variables. Corresponding to step 103, the main processor compares the parsed timing data with the source data to check whether the audio / video interface function is correct, diagnoses the parameters or channels corresponding to output errors in the audio / video interface, and thus locates anomalies in the physical layer and digital control logic layer. In actual implementation, to improve the versatility of the device and facilitate the expansion of the detection method, the main processor can use various general-purpose processors capable of processing audio / video data and executing the methods in the above embodiments. For example: x86 architecture processors, ARM architecture processors, microcontroller units (MCUs), etc. In some implementations, in order to design the device as a portable mobile device while ensuring computing performance and versatility, it is preferable to use an ARM processor that supports embedded platforms as the main processor. The ARM processor configures the output and input interfaces through the APB bus and uses static random-access memory (SRAM) to store the corresponding engineering firmware and instructions corresponding to the methods provided in the above embodiments.

[0063] In order to complete the data interaction between the main processor and the audio / video interface, and to perform interface testing in conjunction with the bare die of the audio / video chip, the device provided in this embodiment uses the joint data conversion of the audio / video pipeline and the Rx module to realize the detection and diagnosis of the audio / video interface function.

[0064] To ensure the correct transmission order of the data source and avoid misjudgments during output data detection, the device provided in this embodiment uses an audio / video pipeline to extract source data and send it to the audio / video interface. The audio / video pipeline can output the source data to the audio / video interface in a predetermined order. The input interface from the main processor to the audio / video pipeline can use a signal acquisition and processing module instantiated from a Field Programmable Gate Array (FPGA). The output interface from the audio / video pipeline to the audio / video module can use general-purpose interfaces such as DisplayController and IIS Master. In some implementations, the input and output interfaces can also be customized as needed.

[0065] The audio / video interface transforms and outputs source data based on output variables to generate output data.

[0066] Corresponding to step 103, the Rx module parses the output data of the audio / video interface into timing data, so that the main processor can perform corresponding data analysis to obtain detection results. To facilitate batch acquisition of timing data by the main processor, the timing data can be output to a storage module for storage. In some implementations, the Rx module can be customized and extended: to acquire timing parameters, the Rx module can include functions for parsing timing parameters such as bitstream data, timing frame parameters, and signal quality; to reduce the computational load on the main processor, the Rx module can include a function for comparing and analyzing timing data with source data; to acquire and store output data, the Rx module can have recording functions such as HDMI / DP recording; to enable detection of HDMI / DP interface extended display identification data (EDID) and hot plug detection (HPD) functions, the Rx module can support HDMI / DP Rx module IP functions, as well as support for EDID and HPD modules.

[0067] The storage module stores source data and output data from the audio / video interface, enabling data buffering and exchange among the modules within the device. In practice, the specific type of storage module can be selected based on requirements, such as: Secure Digital Memory Card (SD), hard disk, NAND (Not And) memory, Double Data Rate SDRAM (DDR), etc. For higher data read / write speeds, DDR is preferred as the storage module.

[0068] The aforementioned device structure enables the use of a general-purpose processor and platform to perform the audio / video interface testing methods provided in the above embodiments. Combined with the screening of ATE (Automatic Test Equipment) test pieces, it facilitates the hardware and software testing and fault location of the audio / video interface. This eliminates the need for a dedicated protocol analyzer for audio / video interface testing, reducing testing costs and increasing screening coverage and efficiency. Furthermore, because the device utilizes a general-purpose processor and platform, only the corresponding data input / output interfaces need to be replaced to meet the testing requirements of different types of audio / video interfaces.

[0069] In some embodiments, the above-described apparatus can also be used with different expansion devices to perform targeted expansion tests for different types of audio and video interfaces. For example, a voltage sensor can be added to the apparatus to detect the voltage and signal swing of each channel of the audio and video interface during data transmission, so as to check the voltage and current drive functionality of each channel.

[0070] In some implementations, such as Figure 4 As shown, the audio / video interface can be tested through the following process. In other implementations, the corresponding testing can be performed by referring to the following process as needed.

[0071] Step 201: Connect the audio / video interface to be tested to the audio / video pipeline and Rx module pin to pin in the device.

[0072] Step 202: The main processor or audio / video source chip in the device generates a data source based on the source variables and inputs it into the storage module.

[0073] Step 203: The audio and video pipeline in the device retrieves the corresponding data sources from the storage module in a predetermined sequence and inputs them into the audio and video interface.

[0074] Step 204: The audio and video interface processes and converts the input data source according to the output variables, and outputs the encoded data stream as the output data to the Rx module in the corresponding audio and video format.

[0075] Step 205: The Rx module in the device saves the encoded data stream as audio and video files through the recording function, parses the output data of the audio and video interface to generate timing data, and saves the timing data in the storage module. Simultaneously, the timing data and the source data can be compared and analyzed.

[0076] Step 206: The main processor in the device acquires timing data for analysis, or directly acquires the comparison analysis results of the Rx module, determines the correctness of each function of the audio and video interface, and locates the fault point.

[0077] Step 207: Present the test results through display devices, printing devices, etc., and save and manage the test results using databases or other methods.

[0078] After steps 201 to 207 provided in this embodiment, the method provided in the above embodiment can be implemented by the device provided in this embodiment to complete the detection of the audio and video interface.

[0079] As can be seen above, when the device provided in this embodiment is combined with the methods provided in the preceding embodiments and applied to automated testing scenarios, functional verification testing of different types of audio and video interfaces can be achieved, quickly reflecting the correctness of the electrical parameters and functional correctness of the audio and video interfaces. Furthermore, it can be used to complete the testing of audio and video source chips, thereby achieving rapid chip screening and improving the efficiency of display IP or SOC development and problem localization.

[0080] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method of detecting an audio-video interface, the method comprising: include: Generate source data in audio and / or video formats based on the source variables, and input the source data into the audio and video interface to be tested; Configure the audio and video interface based on the output variables to control the configuration parameters of the audio and video interface output data. The output variables do not contain the parameters corresponding to the source variables. The process involves obtaining output data in a corresponding format from the source data of the audio / video interface, parsing the output data into time-series data, and determining the functional state of the audio / video interface based on the time-series data. This includes: constructing a source matrix with a preset structure from the source data; constructing an output matrix with a preset structure from the time-series data parsed from the output data; obtaining conversion coefficients based on source and output variables, such that the output matrix under normal operating conditions is equal to the product of the source matrix and the conversion coefficients; comparing the actual output matrix with the output matrix under normal operating conditions to obtain difference data; and diagnosing faults in the audio / video interface based on the difference data.

2. The method of claim 1, wherein the method further comprises: The step of parsing the output data into time series data includes: The output video data is stored as a video file, and the video file is parsed into image data sorted by time. And / or, store the output audio data as an audio file, and parse the audio file into waveform data on the time axis; And / or, parse the output data into timing parameter data, wherein the timing parameters include at least one of: bitstream data, timing frame parameters, and signal quality.

3. The method of claim 1, wherein the method further comprises: The step of parsing the output data into time series data also includes: The parsed time-series data is stored, and then used for batch analysis and detection.

4. The method for detecting audio / video interfaces according to claim 1, characterized in that, The process of generating source data in audio and / or video formats based on source variables and inputting the source data into the audio / video interface to be tested also includes: The source variable for setting attributes is based on the pixel information of each pixel point in the HDMI interface, passed as an element. A test image combination is generated based on the pixel information elements transmitted from different channels and the corresponding source variables, and the test image combination is used as the source data. Transmission is performed through the corresponding channels of the interface to determine whether the elements transmitted through the required verification channel are normal, based on the output image.

5. The method for detecting audio / video interfaces according to claim 1, characterized in that, The configuration parameters for configuring the audio / video interface based on the output variables and controlling the output data of the audio / video interface also include: Use video that supports scrambling as the source data and enable scrambling on the HDMI interface. The audio / video acquisition interface outputs output data in a corresponding format based on the source data, parses the output data into timing data, and determines the functional status of the audio / video interface based on the timing data, including: The system analyzes whether the output video stream data has been scrambled or descrambled, and determines whether the frequency of the clock channel matches the preset pixel clock value.

6. The method for detecting audio / video interfaces according to claim 1, characterized in that, The configuration parameters for configuring the audio / video interface based on the output variables and controlling the output data of the audio / video interface also include: Using video that supports format conversion as source data, the pass-through and conversion methods of the audio and video interfaces are enabled respectively, so as to verify whether the conversion is correct based on the format and content of the output data.

7. A detection device for audio / video interfaces, characterized in that, The system comprises a main processor, an audio / video pipeline, a receiving module, and a storage module, for implementing the audio / video interface detection method according to any one of claims 1 to 6, wherein: The main processor is connected to the storage module, the audio / video pipeline, and the receiving module respectively. The storage module is connected to the audio / video pipeline and the receiving module. The audio / video pipeline is connected to the audio / video interface. The receiving module is connected to the audio / video interface. The main processor is used to generate source data in accordance with any one of claims 1 to 6, and to obtain output data for processing in order to obtain detection results; The audio / video pipeline is used to extract source data and send it to the audio / video interface to be tested; Audio and video interfaces are used to convert and output source data based on output variables; The receiving module is used to parse the output data of the audio and video interface into timing data; The storage module is used to store source data and output data from the audio and video interface, so as to obtain detection results by comparing the source data and output data.

8. The audio / video interface detection device according to claim 7, characterized in that, The receiving module includes a voltage sensor connected to each electrical signal channel of the audio / video interface. The voltage sensor is used to detect the voltage and signal swing of each channel of the audio / video interface when transmitting data, so as to detect and check the voltage and current drive functionality of each channel.

9. The audio / video interface detection device according to claim 7, characterized in that, The receiving module includes a recording function component, which is used to save the input data of the audio and video interface as audio or video files so that the output data can be parsed into timing data.

Citation Information

Patent Citations

  • HDMI Source test device and method based on FPGA

    CN110536090A