Audio bus interface test method and related equipment

By using codec equipment to simulate external load equipment in audio bus interface testing and generating feedback signals, the problem of inaccurate audio bus interface test in the prior art is solved, and the accuracy and matching of test results are improved.

CN119110234APending Publication Date: 2024-12-10VERISILICON MICROELECTRONICS (SHANGHAI) CO LTD +5
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411395284.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-08
Publication Date
2024-12-10

AI Technical Summary

Technical Problem

The existing audio bus interface testing methods cannot accurately simulate the impact of data transmission between devices on data, resulting in inaccurate test results.

Method used

By outputting the test signal to the codec device, the digital-to-analog converter and analog-to-digital converter in the codec device are used to simulate the external load device, and a feedback signal is generated, and then the data transmission of the audio bus interface to be tested is normal.

Benefits of technology

It improves the accuracy of the audio bus interface test results, makes the test results closer to the actual scenario, and reduces the difficulty of judging whether the audio bus interface is normal in temporary construction of the test environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119110234A_ABST
    Figure CN119110234A_ABST
Patent Text Reader

Abstract

The invention provides an audio bus interface testing method and related equipment, and relates to the field of audio equipment testing. The interface testing method is applied to audio equipment comprising an audio bus interface to be tested, the audio equipment is connected with codec equipment, the codec equipment comprises a digital-to-analog converter, an analog-to-digital converter and a target audio bus interface, and the audio bus interface to be tested is connected with the target audio bus interface. The audio bus interface test method comprises the following steps: acquiring a test signal; outputting a test signal to the codec equipment through the audio bus interface to be tested; receiving a feedback signal output by the codec equipment through the audio bus interface to be tested; the feedback signal is a signal obtained by converting the test signal by a digital-to-analog converter and an analog-to-digital converter in the codec device; and judging whether data transmission of the to-be-tested audio bus interface is normal based on the test signal and the feedback signal. According to the method, the effectiveness of testing the audio bus interface can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of audio device testing, and in particular, to an audio bus interface testing method and related equipment. Background Art

[0002] Some audio devices can transmit audio data through an audio bus interface, such as I2S (Inter-ICSound, a serial bus standard for transmitting data between digital audio devices). If the audio bus interface is abnormal, the transmitted data may be abnormal, such as data loss or distortion.

[0003] In some scenarios, it may be necessary to temporarily test the audio bus interface. In this case, the test platform or system built is usually relatively simple. For example, when testing the I2S interface, the data input and data output terminals of the I2S interface of the device under test are directly short-circuited, and then data is transmitted through the I2S interface. The output data and the received data are used to determine whether the data transmission of the I2S interface is normal.

[0004] In actual scenarios, data may be transmitted between multiple devices, and data transmission between devices may cause certain data distortion. The above method cannot simulate the impact of data transmission between devices on data, so the test results of the above method are inaccurate. Summary of the invention

[0005] The present application aims to provide an audio bus interface testing method and related equipment to improve the accuracy of the audio bus interface test results to a certain extent, so that the test results are more consistent with the actual situation.

[0006] In a first aspect, an embodiment of the present application provides an audio bus interface testing method, which is applied to an audio device including an audio bus interface to be tested, wherein the audio device is connected to a codec device, the codec device includes a digital-to-analog converter, an analog-to-digital converter and a target audio bus interface, and the audio bus interface to be tested is connected to the target audio bus interface, and the audio bus interface testing method includes: obtaining a test signal; outputting the test signal to the codec device through the audio bus interface to be tested; receiving a feedback signal output by the codec device through the audio bus interface to be tested; the feedback signal is a signal obtained by converting the test signal by the digital-to-analog converter and the analog-to-digital converter in the codec device; and judging whether the data transmission of the audio bus interface to be tested is normal based on the test signal and the feedback signal.

[0007] In the embodiment of the present application, instead of directly short-circuiting the signal output port and input port of the audio bus interface to be tested, the test signal is output to the codec device through the audio bus interface to be tested, and the codec device can simulate the external load device, thereby simulating the situation that the test signal passes through the load, so that the feedback signal output by the codec device can be close to the actual situation. In the actual scene, when the audio signal is transmitted between multiple load devices, each load device often performs digital-to-analog conversion and / or analog-to-digital conversion on the audio signal, and digital-to-analog conversion and / or analog-to-digital conversion is also one of the main reasons for the distortion of the audio signal. Therefore, in the embodiment of the present application, the test signal is made to pass through the analog-to-digital converter and the digital-to-analog converter inside the codec device to perform analog-to-digital conversion and digital-to-analog conversion, which can more accurately simulate the impact of the audio signal passing through the load device in the real scene, and then make the impact of the test signal similar to the impact of the audio signal received in the real scene, so that the feedback signal after the digital-to-analog conversion and analog-to-digital conversion is closer to the audio signal after the load device is transmitted in the actual scene, thereby improving the accuracy of the audio bus interface test result to a certain extent, so that the test result is more matched with the actual situation.

[0008] In one embodiment, the frequency of the test signal is a preset frequency; judging whether the data transmission of the audio bus interface to be tested is normal based on the test signal and the feedback signal includes: obtaining the frequency of the feedback signal; comparing the frequency of the feedback signal with the preset frequency; if the difference between the frequency of the feedback signal and the preset frequency is within a preset range, determining that the data transmission of the audio bus interface to be tested is normal; if the difference between the frequency of the feedback signal and the preset frequency exceeds the preset range, determining that the data transmission of the audio bus interface to be tested is abnormal.

[0009] The abnormal transmission function of the audio bus interface will affect the frequency of the output or received signal. Therefore, in the embodiment of the present application, it is possible to determine whether the data transmission of the audio bus interface to be tested is normal by directly comparing the frequencies of the test signal and the feedback signal. Frequency is an easily calculated feature of the test signal and the feedback signal. By comparing the frequencies, the difficulty of determining whether the audio bus interface to be tested is normal can be effectively reduced. On the basis of a certain degree of accuracy, it helps to improve the efficiency of determining whether the audio bus interface is normal in a temporarily constructed test environment.

[0010] In one embodiment, the audio device further includes: a signal generating circuit and an analog-to-digital conversion module; obtaining the test signal includes: generating an initial analog signal of a preset frequency through the signal generating circuit; collecting the initial analog signal based on the analog-to-digital conversion module and performing analog-to-digital conversion to obtain the test signal of the preset frequency.

[0011] In the embodiment of the present application, an initial analog signal is generated by a signal generating circuit in the audio device, and then an analog-to-digital conversion module in the audio device collects and converts the signal to obtain a test signal. This method does not require the participation of other test equipment, reduces the conditions required for the audio bus interface test, and helps to more effectively test the audio bus interface in a temporarily constructed test environment.

[0012] In one embodiment, the output end of the digital-to-analog converter in the codec device is connected to the input end of the analog-to-digital converter via an audio line; the feedback signal is generated in the following manner: the test signal is converted into an intermediate analog signal by the digital-to-analog converter of the codec device; the intermediate analog signal is output through the output end of the digital-to-analog converter and transmitted by the audio line; the intermediate analog signal is received through the input end of the analog-to-digital converter; and the intermediate analog signal is converted into the feedback signal by the analog-to-digital converter of the codec.

[0013] The signal of the audio device is transmitted through the audio line. In the embodiment of the present application, in addition to the digital-to-analog converter and the analog-to-digital converter, the signal is also transmitted through the audio line. The transmission of the signal in the actual scene and the influence of simulated interference are further simulated through the audio line. The feedback signal can be made similar to the signal transmitted in the actual situation, and the audio bus interface test result obtained based on the feedback signal is more accurate and more in line with the actual situation.

[0014] In one embodiment, the audio device also includes a first clock end; the codec device also includes a second clock end; the first clock end and the second clock end are connected; the codec device is configured as a master device; before the test signal is output to the codec device through the audio bus interface to be tested, the method also includes: in response to the codec device being configured as a master device, configuring the audio device itself as a slave device; sending a clock signal to the codec device through the first clock end; receiving a synchronization signal output by the codec device based on the clock signal, and performing clock synchronization with the codec device based on the synchronization signal.

[0015] In the embodiment of the present application, the codec device is a small module device that is easy to carry and use, mainly for use in some temporarily built test environments, which makes the codec device usually not configured with a corresponding clock generation circuit. The audio bus interface needs to transmit signals through a clock signal, so the clock end of the codec device and the audio device can be connected so that the audio device can transmit a clock signal to the codec device, so that the two can transmit signals and data based on the clock signal. In the audio bus interface, the synchronization signal is provided by the master device, so if the audio device is a slave device, the audio device sends a clock signal to the codec device so that the codec device outputs a synchronization signal based on the clock signal, so that the audio device can perform signal transmission after clock synchronization based on the clock signal and the synchronization signal. Thus, through the above method, the audio bus interface between the audio device and the codec device can be based on the clock signal to perform normal data transmission, so that the audio bus interface test method provided by the present application can be realized. At the same time, this method does not require the configuration of a corresponding clock generation circuit in the codec device, and can further simplify the structure of the codec device, making it easy to carry and use, and more suitable for use in some temporarily built test environments.

[0016] In one embodiment, the audio device also includes a first clock end; the codec device also includes a second clock end; the first clock end and the second clock end are connected; the codec device is configured as a slave device; before the test signal is output to the codec device through the audio bus interface to be tested, the method also includes: in response to the codec device being configured as a slave device, configuring the audio device itself as a master device; sending a clock signal and a synchronization signal to the codec device through the first clock end, so that the codec device performs clock synchronization based on the clock signal and the synchronization signal.

[0017] In this embodiment, if the audio device is the main device, the audio device directly performs clock synchronization with the clock signal and synchronization signal sent by the codec device. Thus, the audio bus interface between the audio device and the codec device can be normally transmitted data based on the clock signal, thereby realizing the audio bus interface test method provided by the present application.

[0018] In a third aspect, an embodiment of the present application provides an audio bus interface testing method, which is applied to a codec device, wherein the codec device comprises: a digital-to-analog converter, an analog-to-digital converter and a target audio bus interface; the digital-to-analog converter is connected to an input port in the target audio bus interface, the analog-to-digital converter is connected to an output port in the target audio bus interface, and the target audio bus interface is used to connect to an audio bus interface to be tested of an audio device; the audio bus interface testing method comprises: receiving a test signal output by the audio bus interface to be tested of the audio device through the target audio bus interface; converting the test signal based on the digital-to-analog converter and the analog-to-digital converter to obtain a feedback signal; and outputting the feedback signal to the audio device through the target audio bus interface, so that the audio device determines whether the data transmission of the audio bus interface to be tested is normal based on the test signal and the feedback signal.

[0019] In the embodiment of the present application, the test signal is output to the codec device through the audio bus interface to be tested, and the codec device can simulate the external load device, thereby simulating the situation where the test signal passes through the load, so that the feedback signal output by the codec device can be close to the actual situation. At the same time, the test signal is subjected to analog-to-digital conversion and digital-to-analog conversion through the analog-to-digital converter and digital-to-analog converter inside the codec device, which can more accurately simulate the impact of the audio signal passing through the load device in the real scene, and then make the impact on the test signal similar to the impact on the audio signal in the real scene, so that the feedback signal after the digital-to-analog conversion and analog-to-digital conversion is closer to the audio signal after being transmitted by the load device in the actual scene, thereby improving the accuracy of the audio bus interface test results to a certain extent, so that the test results are more in line with the actual situation.

[0020] In one embodiment, the output end of the digital-to-analog converter is connected to the input end of the analog-to-digital converter via an audio line; the conversion of the test signal based on the digital-to-analog converter and the analog-to-digital converter to obtain a feedback signal includes: converting the test signal into an intermediate analog signal through the digital-to-analog converter; outputting the intermediate analog signal through the output end of the digital-to-analog converter and transmitting the intermediate analog signal through the audio line; receiving the intermediate analog signal through the input end of the analog-to-digital converter; and converting the intermediate analog signal into the feedback signal through the analog-to-digital converter.

[0021] The signal of the audio device is transmitted through an audio line. In an embodiment of the present application, an audio line is set on the codec device, and the audio line is connected to the digital-to-analog converter and the analog-to-digital converter. Thus, after the digital-to-analog converter converts the test signal, the audio line can be used to further simulate the signal transmission process, thereby simulating the signal transmission in an actual scenario and simulating the influence of interference. After the analog-to-digital converter converts the signal to obtain a feedback signal, the feedback signal can be more similar to the influence received by the transmitted signal in an actual situation, and thus the audio bus interface test result obtained based on the feedback signal is more accurate and more in line with the actual situation.

[0022] In one embodiment, the audio device includes a first clock end, and the codec device also includes a second clock end; the first clock end and the second clock end are connected; before receiving the test signal output by the audio bus interface to be tested of the audio device through the target audio bus interface, the audio bus interface testing method also includes: configuring itself as a master device in response to a configuration request; receiving a clock signal sent by the audio device configured as a slave device through the first clock end; generating a synchronization signal based on the clock signal and outputting it to the audio device, so that the audio device performs clock synchronization with the codec device based on the synchronization signal.

[0023] In the embodiment of the present application, in order to be used in some temporarily constructed test environments, the codec device used is a small modular device that is easy to carry and use, and the codec device is usually not configured with a corresponding clock generation circuit. In order to meet the data transmission requirements of the audio bus interface, the clock end of the codec device and the audio device can be connected to receive the clock signal of the audio device to control the data transmission of the audio bus interface. In the audio bus interface, data is transmitted based on the clock signal of the master device. Therefore, if the codec device is the master device and the audio device is the slave device, the codec device can send a clock signal and a synchronization signal to the audio device so that the two clocks are synchronized and then the signal is transmitted. Therefore, through the above method, the audio bus interface between the audio device and the codec device can be able to perform normal data transmission based on the clock signal, so that the audio bus interface test method provided by the present application can be implemented.

[0024] In one embodiment, the audio device includes a first clock end, and the codec device also includes a second clock end; the first clock end and the second clock end are connected; before receiving the test signal output by the audio bus interface to be tested of the audio device through the target audio bus interface, the audio bus interface testing method also includes: configuring itself as a slave device in response to a configuration request, receiving the clock signal and synchronization signal sent by the audio device configured as a master device through the first clock end; and performing clock synchronization with the audio device based on the clock signal and the synchronization signal.

[0025] In this embodiment, if the codec device is a slave device and the audio device is a master device, the codec device can receive the clock signal and synchronization signal sent by the audio device for clock synchronization. In the above manner, the audio bus interface between the audio device and the codec device can be normally transmitted data based on the clock signal, thereby realizing the audio bus interface test method provided by the present application.

[0026] In a third aspect, an embodiment of the present application provides an audio bus interface testing method for testing an audio bus interface to be tested of an audio device, wherein the audio device is connected to a codec device, the codec device includes a digital-to-analog converter, an analog-to-digital converter and a target audio bus interface, and the audio bus interface to be tested is connected to the target audio bus interface. The audio bus interface testing method comprises: the audio device generates a test signal; the audio device outputs the test signal to the codec device through the audio bus interface to be tested; the codec device receives the test signal through the target audio bus interface; the codec device converts the test signal through the digital-to-analog converter and the analog-to-digital converter to obtain a feedback signal; the codec device outputs the feedback signal to the audio device through the target audio bus interface; the audio device determines whether the data transmission of the audio bus interface to be tested is normal based on the test signal and the feedback signal.

[0027] In a fourth aspect, an embodiment of the present application provides an audio device, comprising: a processing unit, an acquisition module and an audio bus interface to be tested; the audio bus interface to be tested is connected to the processing unit and the acquisition module respectively; the audio device is connected to a codec device, the codec device comprises a digital-to-analog converter, an analog-to-digital converter and a target audio bus interface, the audio bus interface to be tested is connected to the target audio bus interface, the acquisition module is used to generate a test signal, and execute the audio bus interface test method as described in any one of the first aspects through the processing unit.

[0028] In a fifth aspect, an embodiment of the present application provides a codec device, comprising: a digital-to-analog converter, an analog-to-digital converter and a target audio bus interface; the digital-to-analog converter is connected to an input port in the target audio bus interface, the analog-to-digital converter is connected to an output port in the target audio bus interface, and the target audio bus interface is also used to connect to an audio bus interface to be tested of an audio device; the codec device implements the audio bus interface testing method as described in any one of the second aspects through the digital-to-analog converter, the analog-to-digital converter and the target audio bus interface.

[0029] In the sixth aspect, an embodiment of the present application provides an audio bus interface testing system, comprising: an audio device as described in the fourth aspect, and a codec device as described in the fifth aspect; the audio bus interface to be tested of the audio device is connected to the target audio bus interface of the codec device; the audio device tests the audio bus interface to be tested based on the codec device. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0031] Figure 1 A schematic diagram of an audio device provided in an embodiment of the present application;

[0032] Figure 2 A schematic diagram of a codec device provided in an embodiment of the present application;

[0033] Figure 3 A schematic diagram of an audio bus interface testing system provided by an embodiment of the present application;

[0034] Figure 4 A flowchart of an audio bus interface testing method applied to an audio device provided by an embodiment of the present application;

[0035] Figure 5 A flowchart of an audio bus interface testing method applied to a codec device provided in an embodiment of the present application;

[0036] Figure 6 A flowchart of an audio bus interface testing method applied to an audio bus interface testing system provided in one embodiment of the present application.

[0037] Icons: audio device 100 ; audio bus interface to be tested 110 ; acquisition module 120 ; processing unit 130 ; codec device 200 ; target audio bus interface 210 ; digital-to-analog converter 220 ; analog-to-digital converter 230 . DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and advantages of the present application 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.

[0039] First, an embodiment of the present application provides an audio device and a codec device, including an audio bus interface test system of the audio device and the codec device, and a corresponding audio bus interface test method. The audio bus interface test method can test the audio bus interface to be tested in the audio device through the codec device.

[0040] See also Figure 1 , Figure 1 A schematic diagram of an audio device provided in an embodiment of the present application. The audio device 100 includes: an acquisition module 120, an audio bus interface to be tested 110, and a processing unit 130. The audio bus interface includes an input terminal, an output terminal, and a clock terminal. In1 in the audio device represents the input terminal of the audio bus interface to be tested of the audio device, Out1 represents the output terminal of the audio bus interface to be tested of the audio device, and CLK1 represents the first clock terminal of the audio bus interface to be tested of the audio device.

[0041] The acquisition module 120 is used to acquire a test signal. The acquisition module 120 may be a signal generating circuit to generate a test signal, and the acquisition module 120 may also include a memory to store a pre-generated test signal.

[0042] The audio bus interface 110 to be tested is connected to the acquisition module 120. When the audio bus interface 110 to be tested is tested, the audio bus interface 110 to be tested is configured to be connected to a codec device.

[0043] The processing unit 130 is used to execute the audio bus interface test method for audio devices provided by the present application through the acquisition module 120 and the audio bus interface to be tested 110. The audio bus interface test method for audio devices will be expanded later and will not be described here.

[0044] In the embodiment of the present application, the processing unit 130 may be a device having a control function, such as a CPU (Central Processing Unit) or an MCU (Microcontroller Unit).

[0045] See also Figure 2 , Figure 2 Schematic diagram of a codec device provided by an embodiment of the present application. The codec device 200 includes: a digital-to-analog converter 220, an analog-to-digital converter 230 and a target audio bus interface 210. The target audio bus interface 210 also includes an input terminal, an output terminal and a clock terminal, such as Figure 2 As shown, the input terminal of the target audio bus interface 210 is represented as In2, the output terminal of the target audio bus interface 210 is represented as Out2, and the clock terminal of the target audio bus interface 210 is a second clock terminal, represented as CLK2.

[0046] In the codec device, the digital-to-analog converter 220 is connected to the input end of the target audio bus interface 210, and the analog-to-digital converter 230 is connected to the output end of the target audio bus interface 210. The target audio bus interface 210 is also used to connect to the audio bus interface 110 to be tested of the audio device 100.

[0047] In the codec device 200, the output end of the digital-to-analog converter 220 is connected to the input end of the analog-to-digital converter 230, the output end of the analog-to-digital converter 230 is connected to the output end of the target audio bus interface 210, and the input end of the digital-to-analog converter 220 is connected to the input end of the target audio bus interface 210. The codec device is used to implement the audio bus interface test method applied to the codec device through the digital-to-analog converter, the analog-to-digital converter and the target audio bus interface.

[0048] In some embodiments of the present application, the codec device 200 further includes an audio line 240 , which is connected between the digital-to-analog converter 220 and the analog-to-digital converter 230 and is used for audio data transmission between the digital-to-analog converter 220 and the analog-to-digital converter 230 .

[0049] Accordingly, in the embodiment of the present application, an audio bus interface test system is also provided, see Figure 3 , Figure 3 A schematic diagram of an audio bus interface testing system provided in one embodiment of the present application.

[0050] In an embodiment of the present application, the audio bus interface test system includes the audio device 100 and the codec device 200 provided in the aforementioned embodiment.

[0051] In an embodiment of the present application, the audio bus interface 110 to be tested of the audio device 100 is connected to the target audio bus interface 210 of the codec device 200, wherein the input end of the audio bus interface 110 to be tested is connected to the output end of the target audio bus interface 210, and the output end of the audio bus interface 110 to be tested is connected to the input end of the target audio bus interface 210.

[0052] Furthermore, the audio bus interface to be tested and the target audio bus interface transmit clock signals through the first clock terminal and the second clock terminal to control the signal transmission at the respective input terminals and output terminals. Therefore, the first clock terminal (e.g. Figure 1 The CLK1 on the audio device 100 shown in the figure is connected to the second clock terminal of the codec device 200 ( Figure 1 CLK2 on the codec device 200 shown).

[0053] When testing the audio bus interface test method provided in the present application, it is only necessary for the codec device 200 to have the above-mentioned functions and structures for testing, and the volume required for the above-mentioned structure is usually not too large, and can usually be implemented as a small module, which is easy to carry. For example, the codec device 200 can be an existing Pmod I2S2 (a codec model) device or NXP SGTL5000 (a codec model). The codec device 200 is easy to carry, which helps to implement the audio bus interface test method provided in the present application in some temporarily constructed test environments.

[0054] The audio bus interface is mainly used for the transmission of audio signals. The audio bus interface test method provided in this application can be applied to an audio device that needs to test the audio bus interface, that is, the audio device is provided with an audio bus interface to be tested. The audio bus interface to be tested includes an input terminal and an output terminal, such as Figure 1 The input terminal In1 and the output terminal Out1 are shown, and the audio bus interface to be tested outputs signals and data through the output terminal and receives signals and data through the input terminal. The audio bus interface can be an I2S interface, AC'97 (Audio CODEC'97, an audio multimedia digital signal codec), a Bluetooth interface, etc., which is not limited here.

[0055] See also Figure 4 , Figure 4 A flowchart of an audio bus interface testing method for an audio device provided in an embodiment of the present application. The audio bus interface testing method includes:

[0056] S110, obtaining a test signal.

[0057] In the embodiment of the present application, the test signal is a digital signal. Since digital signals are less prone to distortion during transmission, the possibility of distortion of the test signal before output through the audio bus interface can be reduced, thereby reducing the possibility of test abnormalities of the audio bus interface 110 to be tested due to abnormalities inside the audio device 100.

[0058] The audio device 100 can obtain a pre-generated test signal and output the test signal. In addition, the audio device 100 can also receive a feedback signal sent back by the codec device 200 based on the test signal to determine whether the audio bus interface 110 to be tested is normal through the test signal and the feedback signal.

[0059] In an embodiment of the present application, the test signal is a periodic signal with preset characteristics, for example, the test signal is a signal with characteristics such as preset frequency, preset average amplitude, etc. The preset characteristics are related to the influence of the audio bus interface on the transmission signal. For example, the audio bus interface may cause the frequency of the transmission signal to change, and the preset characteristics may be a preset frequency. At the same time, the preset characteristics are also used to determine whether the audio bus interface 110 to be tested is normal. For example, after receiving the feedback signal, the data transmission function of the audio bus interface 110 to be tested can be determined by comparing the respective frequencies of the test signal and the feedback signal.

[0060] In one embodiment of the present application, the acquisition module of the audio device 100 may include a signal generating circuit and an analog-to-digital conversion module (not shown in the figure). In this embodiment, the signal generating circuit is connected to the analog-to-digital conversion module, and the analog-to-digital conversion module can be connected to the output port of the audio bus interface 110 to be tested. The signal generating circuit can generate an analog signal. For example, the signal generating circuit can be an oscillation circuit that can generate a periodic analog signal. The audio device 100 internally samples, quantizes, and encodes the signal generating circuit through the analog-to-digital conversion module, and finally converts it into a test signal of a digital signal. The signal generating circuit and the analog-to-digital conversion module can both be implemented using existing circuits, which will not be expanded here.

[0061] Taking the preset feature as a preset frequency as an example, in this embodiment, the audio device obtains a test signal, which may include: generating an initial analog signal of the preset frequency through a signal generating circuit; performing analog-to-digital conversion on the initial analog signal based on an analog-to-digital conversion module to obtain a test signal of the preset frequency.

[0062] In some temporary testing scenarios, due to the limitations of the tools owned by the testers or the limitations of the test scenarios on the test equipment, more complex equipment may not be able to be used. The audio device 100 is generally equipped with a signal generating circuit and an analog-to-digital conversion module. Therefore, the internal circuit of the audio device 100 is directly used to generate the test signal. This method does not require the use of other additional test equipment, reduces the conditions required for the audio bus interface test, and helps to more effectively test the audio bus interface in a temporarily constructed test environment.

[0063] The aforementioned signal generating circuit is used to generate an analog signal and is an analog signal generating circuit. In other embodiments of the present application, a digital signal generating circuit may be configured in the audio device 100 to generate a test signal of a preset frequency through the digital signal generating circuit, which is not limited here.

[0064] In other embodiments of the present application, the test signal may also be pre-stored in a memory of the audio device (not shown in the figure), and when performing the audio bus interface test, the acquisition module may acquire the pre-stored test signal from the memory.

[0065] The above method of obtaining the test signal is only an example and should not be construed as limiting the present application.

[0066] The audio bus interface controls the transmission of signals through clock signals. Therefore, in the embodiment of the present application, when controlling the transmission of the test signal between the audio device 100 and the codec device 200, the clocks of the two need to be synchronized.

[0067] Among them, when the audio bus interface transmits data, it is transmitted according to the clock of the master device. Therefore, in the embodiment of the present application, the audio device 100 needs to be configured as a master device or a slave device.

[0068] In one embodiment, in response to the codec device 200 being configured as a master device, the audio device 100 itself is configured as a slave device; a clock signal is sent to the codec device 200 through the first clock terminal; a synchronization signal output by the codec device 200 based on the clock signal is received, and clock synchronization is performed with the codec device 200 based on the synchronization signal.

[0069] In another embodiment, in response to the codec device 200 being configured as a slave device, the audio device 100 itself is configured as a master device; a clock signal and a synchronization signal are sent to the codec device 200 via the first clock terminal, so that the codec device 200 performs clock synchronization based on the clock signal and the synchronization signal.

[0070] As mentioned above, the codec device 200 is usually only equipped with an analog-to-digital converter 230, a digital-to-analog converter 220 and an interface for connecting devices for portability. For example, when the codec device 200 is connected to an audio device or when the audio device is tested, the codec device 200 is equipped with a target audio bus interface, which usually does not have a clock generation circuit. Therefore, in the embodiment of the present application, even if the codec device 200 is configured as a master device, the audio device 100 needs to provide a clock signal for the codec device 200, and the two are synchronized and data is transmitted based on the clock signal. On the contrary, if the audio device 100 is configured as a master device, a synchronization signal and a clock signal can be sent directly to the codec device. Among them, the audio bus interface usually performs data transmission based on the interface of the master device. Therefore, the master device can send a synchronization signal to synchronize the two, and then after synchronization, the two can perform normal data transmission.

[0071] By providing a clock signal through the audio device 100, the codec device 200 does not need to be configured with relevant circuits for generating a clock, which effectively simplifies the structure of the codec device 200 and makes it more suitable for use in temporary test scenarios.

[0072] S120: Output the test signal to the codec device through the audio bus interface to be tested.

[0073] Since the data transmission function of the audio bus interface 110 to be tested is tested, in this embodiment, the test signal needs to be output through the audio bus interface 110 to be tested. In the embodiment of the present application, a codec is used to simulate a load device, so the test signal needs to be output to the codec device 200.

[0074] S130, receiving a feedback signal output by a codec device through the audio bus interface to be tested.

[0075] In this embodiment, the feedback signal is a signal obtained by converting the test signal by the digital-to-analog converter 220 and the analog-to-digital converter 230 in the codec device 200 .

[0076] In an embodiment of the present application, the codec device 200 is used to simulate the load of the transmission test signal. The audio bus interface is used for the transmission of audio signals, and when the audio signals are transmitted between various devices, digital-to-analog conversion and analog-to-digital conversion are mainly performed. Therefore, the test signal is converted through the digital-to-analog converter 220 and the analog-to-digital converter 230 in the codec device 200, which can effectively simulate the actual transmission of the test signal in the external load device, so that the feedback signal is closer to the signal after transmission in the actual scene, and the accuracy of the audio bus interface test results is improved to a certain extent, so that the test results are more in line with the actual situation.

[0077] In one embodiment of the present application, the feedback signal may be generated in the following manner: converting the test signal into an intermediate analog signal through the digital-to-analog converter 220 of the codec device 200; receiving the intermediate analog signal through the analog-to-digital converter 230 and converting the intermediate analog signal into a feedback signal.

[0078] In another embodiment of the present application, the codec device 200 may further include an audio line, and the output end of the digital-to-analog converter 220 in the codec device 200 is connected to the input end of the analog-to-digital converter 230 through the audio line. For example, the audio line may be a 3.5 mm 3-segment CTIA (Consumer Technology Industry Advisory Committee, a four-pole plug interface standard) audio line.

[0079] In this embodiment, the feedback signal can also be generated in the following manner: converting the test signal into an intermediate analog signal through the digital-to-analog converter 220 of the codec device 200; outputting the intermediate analog signal through the output end of the digital-to-analog converter 220 and transmitting the intermediate analog signal through the audio line; receiving the intermediate analog signal through the input end of the analog-to-digital converter 230; and converting the intermediate analog signal into a feedback signal through the analog-to-digital converter 230 of the codec.

[0080] When transmitting an audio signal in the form of an analog signal, an audio line can be used for transmission. The audio line itself will have certain noise effects, and the environment in which the audio line is located may also affect the transmitted audio signal. In an embodiment of the present application, an audio line is used to connect between the analog-to-digital converter 230 and the digital-to-analog converter 220 of the codec device 200, and the intermediate analog signal is transmitted using the audio line, which can further simulate the impact of the external environment on the test signal in the actual scene, so that the impact on the test signal is closer to the impact on the audio signal in the real scene, and to a certain extent, improve the accuracy of the audio bus interface test results, so that the test results are more consistent with the actual situation.

[0081] S140, judging whether the data transmission of the audio bus interface to be tested is normal based on the test signal and the feedback signal.

[0082] In the embodiment of the present application, it is possible to determine whether the data transmission of the audio bus interface 110 to be tested is normal by comparing the changes in the test signal and the feedback signal after transmission. If the audio bus interface 110 to be tested is normal, the difference between the test signal and the feedback signal will be within a reasonable range. Conversely, if the audio bus interface 110 to be tested is abnormal, the difference between the test signal and the feedback signal will exceed a reasonable range.

[0083] In one embodiment of the present application, if the frequency is used to compare the file test signal and the feedback signal, the frequency of the test signal is a preset frequency, and S140 may include: obtaining the frequency of the feedback signal; comparing the frequency of the feedback signal and the preset frequency; if the difference between the frequency of the feedback signal and the preset frequency is within a preset range, determining that the data transmission of the audio bus interface 110 to be tested is normal; if the difference between the frequency of the feedback signal and the preset frequency exceeds the preset range, determining that the data transmission of the audio bus interface 110 to be tested is abnormal.

[0084] In this embodiment, the frequency of the feedback signal can be calculated by Fourier transform or other methods. When comparing, the difference between the frequency of the feedback signal and the preset frequency can be calculated, and the difference is used to characterize the gap between the frequency of the feedback signal and the preset frequency. Frequency is an easy-to-calculate feature of the test signal and the feedback signal. By comparing the frequencies, the difficulty of determining whether the audio bus interface 110 to be tested is normal can be effectively reduced.

[0085] Based on the same inventive concept, the embodiment of the present application also provides another audio bus interface test method, which can be applied to the codec device 200 provided in the aforementioned embodiment. As mentioned above, the codec device 200 includes a digital-to-analog converter 220, an analog-to-digital converter 230 and a target audio bus interface 210; the digital-to-analog converter 220 is connected to an input port in the target audio bus interface 210, the analog-to-digital converter 230 is connected to an output port in the target audio bus interface 210, and the target audio bus interface 210 is used to connect to the audio bus interface 110 to be tested of the audio device 100.

[0086] See also Figure 5 , Figure 5 The flowchart of the audio bus interface test method applied to the codec device 200 provided in the present application. The audio bus interface test method applied to the codec device 200 includes:

[0087] S210, receiving a test signal output by the audio bus interface to be tested of the audio device through the target audio bus interface.

[0088] S220, converting the test signal based on the digital-to-analog converter and the analog-to-digital converter to obtain a feedback signal.

[0089] S230, outputting a feedback signal to the audio device through the target audio bus interface, so that the audio device determines whether the data transmission of the audio bus interface to be tested is normal based on the test signal and the feedback signal.

[0090] In one embodiment, the output end of the digital-to-analog converter 220 is connected to the input end of the analog-to-digital converter 230 via an audio line; S220 includes: converting the test signal into an intermediate analog signal through the digital-to-analog converter 220; outputting the intermediate analog signal through the output end of the digital-to-analog converter 220 and transmitting the intermediate analog signal through the audio line; receiving the intermediate analog signal through the input end of the analog-to-digital converter 230; and converting the intermediate analog signal into a feedback signal through the analog-to-digital converter 230.

[0091] In one embodiment, the audio device 100 includes a first clock terminal, and the codec device 200 also includes a second clock terminal; the first clock terminal and the second clock terminal are connected. The audio bus interface test method applied to the codec device 200 may also include: the codec device 200 configures itself as a master device in response to a configuration request; receives a clock signal sent by the audio device 100 configured as a slave device through the first clock terminal; generates a synchronization signal based on the clock signal and outputs it to the audio device 100, so that the audio device 100 performs clock synchronization with the codec device 200 based on the synchronization signal.

[0092] In another embodiment, the audio bus interface testing method may further include: the codec device 200 configures itself as a slave device in response to a configuration request; receives a clock signal and a synchronization signal sent by the audio device 100 configured as a master device through a first clock terminal; and performs clock synchronization with the audio device 100 based on the clock signal and the synchronization signal.

[0093] It can be understood that the audio bus interface test applied to the codec device 200 is the content performed by the codec device 200 in the aforementioned audio bus interface test applied to the audio device 100. For details, please refer to the relevant parts of the codec device 200 described in the aforementioned audio bus interface test applied to the audio device 100, which will not be expanded here.

[0094] Based on the same inventive concept, the present application also provides an audio bus interface test method applied to an audio bus interface test system, see Figure 6 , Figure 6 A flowchart of an audio bus interface test method applied to an audio bus interface test system provided in an embodiment of the present application. The audio bus interface test method applied to an audio bus interface test system includes:

[0095] S310: The audio device generates a test signal.

[0096] In one embodiment, the audio device includes: a signal generating circuit and an analog-to-digital conversion module. The audio device generates a test signal including: the audio device generates an initial analog signal of a preset frequency through the signal generating circuit, and the initial analog signal is collected and analog-to-digital converted based on the analog-to-digital conversion module to obtain the test signal of the preset frequency.

[0097] In one embodiment, the audio device further includes a first clock terminal; the codec device further includes a second clock terminal; the first clock terminal is connected to the second clock terminal. The codec device is configured as a master device; before the audio device generates a test signal, the audio bus interface test method further includes: the codec device configures itself as a master device in response to a configuration request, and the audio device configures itself as a slave device; the audio device sends a clock signal to the codec device through the first clock terminal; the codec device outputs a synchronization signal based on the clock signal, and the audio device receives the synchronization signal and performs clock synchronization with the codec device based on the synchronization signal.

[0098] In one embodiment, the codec device is configured as a slave device; before the audio device generates a test signal, the audio bus interface test method also includes: the codec device configures itself as a slave device in response to a configuration request, and the audio device configures itself as a master device; the audio device sends a clock signal and a synchronization signal to the codec device via a first clock terminal; the codec device performs clock synchronization with the audio device based on the clock signal and the synchronization signal.

[0099] S320: The audio device outputs the test signal to the codec device through the audio bus interface to be tested.

[0100] S330: The codec device receives a test signal through the target audio bus interface.

[0101] S340, the codec device converts the test signal through a digital-to-analog converter and an analog-to-digital converter to obtain a feedback signal.

[0102] In one embodiment, the codec device converts the test signal through a digital-to-analog converter and an analog-to-digital converter to obtain a feedback signal, including: the codec device converts the test signal into an intermediate analog signal through the digital-to-analog converter, outputs the intermediate analog signal through the output end of the digital-to-analog converter and transmits the intermediate analog signal through the audio line, then receives the intermediate analog signal through the input end of the analog-to-digital converter, and finally converts the intermediate analog signal into a feedback signal through the analog-to-digital converter of the codec.

[0103] S350: The codec device outputs the feedback signal to the audio device through the target audio bus interface.

[0104] S360: The audio device determines whether the data transmission of the audio bus interface to be tested is normal based on the test signal and the feedback signal.

[0105] In one embodiment, the audio device determines whether the data transmission of the audio bus interface to be tested is normal based on the test signal and the feedback signal, including: the audio device obtains the frequency of the feedback signal, compares the frequency of the feedback signal with a preset frequency, and if the difference between the frequency of the feedback signal and the preset frequency is within a preset range, it is determined that the data transmission of the audio bus interface to be tested is normal; if the difference between the frequency of the feedback signal and the preset frequency exceeds the preset range, it is determined that the data transmission of the audio bus interface to be tested is abnormal.

[0106] like Figure 1 As shown, the audio bus interface test system includes the audio device 100 and the codec device 200 provided in the above embodiment, and the audio bus interface 110 to be tested of the audio device 100 is connected to the target audio bus interface 210 of the codec device 200. The audio device 100 and the codec device 200 can execute the audio bus interface test method provided in the above embodiment to test the audio bus interface 110 to be tested.

[0107] The technical features of the above embodiments can be freely combined without conflict, and the embodiments obtained by the combination are included in the protection scope of this application.

[0108] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0109] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

Claims

1. A method for testing an audio bus interface, characterized in that: The method is applied to an audio device including an audio bus interface to be tested, the audio device is connected to a codec device, the codec device includes a digital-to-analog converter, an analog-to-digital converter and a target audio bus interface, the audio bus interface to be tested is connected to the target audio bus interface, and the audio bus interface test method includes: Get the test signal; outputting the test signal to the codec device through the audio bus interface to be tested; receiving a feedback signal output by the codec device through the audio bus interface to be tested; the feedback signal is a signal obtained by converting the test signal by the digital-to-analog converter and the analog-to-digital converter in the codec device; Based on the test signal and the feedback signal, it is determined whether the data transmission of the audio bus interface to be tested is normal.

2. The audio bus interface testing method according to claim 1, characterized in that: The frequency of the test signal is a preset frequency; and judging whether the data transmission of the audio bus interface to be tested is normal based on the test signal and the feedback signal includes: Acquiring the frequency of the feedback signal; comparing the frequency of the feedback signal with the preset frequency; If the difference between the frequency of the feedback signal and the preset frequency is within a preset range, it is determined that the data transmission of the audio bus interface to be tested is normal; If the difference between the frequency of the feedback signal and the preset frequency exceeds the preset range, it is determined that the data transmission of the audio bus interface to be tested is abnormal.

3. The audio bus interface testing method according to claim 2, characterized in that: The audio device further comprises: a signal generating circuit and an analog-to-digital conversion module; The obtaining of the test signal comprises: Generate an initial analog signal of a preset frequency by the signal generating circuit; The initial analog signal is collected and analog-to-digital converted based on the analog-to-digital conversion module to obtain the test signal of a preset frequency.

4. The audio bus interface testing method according to claim 2, characterized in that: The output end of the digital-to-analog converter in the codec device is connected to the input end of the analog-to-digital converter via an audio line; The feedback signal is generated in the following manner: converting the test signal into an intermediate analog signal by the digital-to-analog converter of the codec device; The intermediate analog signal is outputted through the output terminal of the digital-to-analog converter and transmitted through the audio line; receiving the intermediate analog signal through an input terminal of the analog-to-digital converter; The intermediate analog signal is converted into the feedback signal by the analog-to-digital converter of the codec.

5. The audio bus interface testing method according to any one of claims 1 to 4, characterized in that: The audio device further comprises a first clock terminal; the codec device further comprises a second clock terminal; the first clock terminal and the second clock terminal are connected; the codec device is configured as a master device; Before outputting the test signal to the codec device through the audio bus interface to be tested, the method further includes: In response to the codec device being configured as a master device, the audio device itself is configured as a slave device; a clock signal is sent to the codec device through the first clock terminal; a synchronization signal output by the codec device based on the clock signal is received, and clock synchronization is performed with the codec device based on the synchronization signal.

6. The audio bus interface testing method according to any one of claims 1 to 4, characterized in that: The audio device further comprises a first clock terminal; the codec device further comprises a second clock terminal; the first clock terminal is connected to the second clock terminal; the codec device is configured as a slave device; Before outputting the test signal to the codec device through the audio bus interface to be tested, the method further includes: In response to the codec device being configured as a slave device, the audio device itself is configured as a master device; a clock signal and a synchronization signal are sent to the codec device through the first clock terminal, so that the codec device performs clock synchronization based on the clock signal and the synchronization signal.

7. A method for testing an audio bus interface, characterized in that: Applied to a codec device, the codec device comprises: a digital-to-analog converter, an analog-to-digital converter and a target audio bus interface; the digital-to-analog converter is connected to an input end in the target audio bus interface, the analog-to-digital converter is connected to an output end in the target audio bus interface, and the target audio bus interface is used to connect to an audio bus interface to be tested of an audio device; The audio bus interface testing method comprises: Receiving, through the target audio bus interface, a test signal output by the audio bus interface to be tested of the audio device; Convert the test signal based on the digital-to-analog converter and the analog-to-digital converter to obtain a feedback signal; The feedback signal is output to the audio device through the target audio bus interface, so that the audio device determines whether the data transmission of the audio bus interface to be tested is normal based on the test signal and the feedback signal.

8. The audio bus interface testing method according to claim 7, characterized in that: The output end of the digital-to-analog converter is connected to the input end of the analog-to-digital converter via an audio line; The converting the test signal based on the digital-to-analog converter and the analog-to-digital converter to obtain a feedback signal includes: converting the test signal into an intermediate analog signal by the digital-to-analog converter; The intermediate analog signal is outputted through the output terminal of the digital-to-analog converter and transmitted through the audio line; receiving the intermediate analog signal through an input terminal of the analog-to-digital converter; The intermediate analog signal is converted into the feedback signal by the analog-to-digital converter.

9. The audio bus interface testing method according to claim 7 or 8, characterized in that: The audio device includes a first clock terminal, and the codec device also includes a second clock terminal; the first clock terminal is connected to the second clock terminal; Before receiving the test signal output by the audio bus interface to be tested of the audio device through the target audio bus interface, the audio bus interface testing method further includes: In response to the configuration request, the device configures itself as a master device, receives a clock signal sent by the audio device configured as a slave device through the first clock terminal; generates a synchronization signal based on the clock signal and outputs it to the audio device, so that the audio device performs clock synchronization with the codec device based on the synchronization signal.

10. The audio bus interface testing method according to claim 7 or 8, characterized in that: The audio device includes a first clock terminal, and the codec device also includes a second clock terminal; the first clock terminal is connected to the second clock terminal; Before receiving the test signal output by the audio bus interface to be tested of the audio device through the target audio bus interface, the audio bus interface testing method further includes: In response to the configuration request, the device configures itself as a slave device, receives a clock signal and a synchronization signal sent by the audio device configured as a master device through the first clock terminal, and performs clock synchronization with the audio device based on the clock signal and the synchronization signal.

11. A method for testing an audio bus interface, characterized in that: The method is used for testing an audio bus interface to be tested of an audio device, wherein the audio device is connected to a codec device, the codec device comprises a digital-to-analog converter, an analog-to-digital converter and a target audio bus interface, the audio bus interface to be tested is connected to the target audio bus interface, and the audio bus interface testing method comprises: The audio device generates a test signal; The audio device outputs the test signal to the codec device through the audio bus interface to be tested; The codec device receives the test signal via the target audio bus interface; The codec device converts the test signal through the digital-to-analog converter and the analog-to-digital converter to obtain a feedback signal; The codec device outputs the feedback signal to the audio device through the target audio bus interface; The audio device determines whether the data transmission of the audio bus interface to be tested is normal based on the test signal and the feedback signal.

12. An audio device, characterized in that: include: Processing unit, acquisition module and audio bus interface to be tested; The audio bus interface to be tested is connected to the processing unit and the acquisition module respectively; The audio device is connected to a codec device, the codec device includes a digital-to-analog converter, an analog-to-digital converter and a target audio bus interface, the audio bus interface to be tested is connected to the target audio bus interface, The acquisition module is used to generate a test signal, and execute the audio bus interface test method according to any one of claims 1 to 6 through the processing unit.

13. A codec device, characterized in that: include: Digital-to-analog converters, analog-to-digital converters, and target audio bus interfaces; The digital-to-analog converter is connected to an input port in the target audio bus interface, the analog-to-digital converter is connected to an output port in the target audio bus interface, and the target audio bus interface is also used to connect to an audio bus interface to be tested of an audio device; The codec device implements the audio bus interface testing method as described in any one of claims 7 to 10 through the digital-to-analog converter, the analog-to-digital converter and the target audio bus interface.

14. An audio bus interface test system, characterized in that: include: The audio device as claimed in claim 12, and the codec device as claimed in claim 13; The audio bus interface to be tested of the audio device is connected to the target audio bus interface of the codec device; and the audio device tests the audio bus interface to be tested based on the codec device.