A test system and method for a multi-channel audio module
By designing a multi-channel audio module testing system, and utilizing a combination of a host computer and testing modules, the testing problem of existing technologies being incompatible with multi-microphone channel audio modules was solved, achieving wide applicability and efficient testing of audio modules with various configurations.
Patent Information
- Application Number
- CN202210265810.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-17
- Publication Date
- 2025-12-19
- Estimated Expiration
- 2042-03-17
AI Technical Summary
Existing module audio testing systems are not compatible with multi-microphone channel audio modules with various configurations, and conventional testing requires modules to have file saving capabilities, which limits the applicability and efficiency of the test objects.
Design a multi-channel audio module testing system, including a host computer and multiple test modules. It is connected to the downlink interface of the I2C interface through the uplink interface of the USB and UART protocols. It supports multiple signal sending and receiving ends, can generate test results, and analyze feedback signals through the processing unit to realize compatibility testing of various audio modules.
It achieves wide applicability and efficient testing of audio modules with various configurations, and can test multiple audio modules simultaneously, improving testing efficiency and avoiding interference from wiring errors and repetitive operations.
Smart Images

Figure CN114531639B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of audio module testing, in particular to a multi-channel audio module testing system and method. BACKGROUND
[0002] Currently, audio modules with microphone channels and speaker output functions are often embedded in smart homes to provide voice functions. Such audio modules include a master control chip and related devices. Like chips off the production line, they also need to undergo a series of tests to meet product design requirements. Among them, audio testing involves electrical signal testing of microphone channels and speaker output channels.
[0003] In current module audio testing, conventional open-loop testing requires audio modules to have certain file saving capabilities, and existing loopback testing can only test dual microphone channels and cannot test multi-microphone channels. Therefore, existing module audio testing can only be applied to a limited number of test objects and cannot be compatible with a variety of audio modules with different configurations.
[0004] Therefore, how to provide a solution to the above technical problems is a problem that needs to be solved by the technical personnel in the field at present. SUMMARY
[0005] Therefore, the purpose of the present application is to provide a multi-channel audio module testing system and method compatible with a variety of audio modules. The specific scheme is as follows:
[0006] A multi-channel audio module testing system, comprising: a host computer and a plurality of test modules, wherein:
[0007] Each of the test modules comprises:
[0008] a host communication interface for connecting with the host computer, receiving test instructions from the host computer, and sending test results to the host computer;
[0009] a plurality of test signal sending ends for connecting with a plurality of signal receiving ends of an audio module to be tested respectively and sending test signals to the audio module to be tested;
[0010] a plurality of test signal receiving ends for connecting with a plurality of signal sending ends of the audio module to be tested respectively and receiving feedback signals sent by the audio module to be tested;
[0011] a processing unit for outputting the test signals according to the test instructions and generating the test results according to the feedback signals.
[0012] Preferably, the testing system further comprises an expansion module, wherein:
[0013] The uplink interface of the extension module is connected to the host computer, and the downlink interfaces of the extension module are respectively connected to the test modules.
[0014] Preferably, the uplink interface is specifically an interface for converting a USB protocol and a UART protocol.
[0015] The downlink interface is specifically an I2C interface.
[0016] Preferably, the test signal sending ends of each test module are divided into N groups, N is a positive integer, and the processing unit sequentially performs N-group testing according to the test instruction, wherein the i-th group testing includes: outputting the test signal to the i-th group of test signal sending ends, receiving the feedback signal of the test signal receiving end, and generating the i-th group of test results according to the test signal and the corresponding feedback signal; i = 1, 2, … N.
[0017] Preferably, the host computer is connected to the audio module to be tested, and the host computer compares whether the test state of the audio module to be tested corresponds to the test instruction when receiving the test state, and if not, it is determined that the wiring is incorrect.
[0018] Preferably, the host computer sends a wiring test instruction to the corresponding test module through a serial port address.
[0019] Each test module further includes:
[0020] An IO output end for sending a test level to an IO receiving end of the audio module to be tested when receiving the wiring test instruction of the host computer.
[0021] The host computer judges whether the test level of the audio module to be tested corresponds to the wiring test instruction when receiving the test level, and if so, it is determined that the wiring is correct, and the test instruction is sent to the corresponding test module, and if not, it is determined that the wiring is incorrect.
[0022] Preferably, the IO output end stops sending the test level to the IO receiving end after the processing unit generates the test results.
[0023] Correspondingly, the application also discloses a test method of a multi-channel audio module, which is applied to a host computer of a test system of the multi-channel audio module, and the test method includes:
[0024] Sending a test instruction to any test module to make the test module send a test signal to a corresponding audio module to be tested, receive a feedback signal sent by the audio module to be tested, and generate a test result according to the test signal and the feedback signal.
[0025] receive the test result sent by the test module.
[0026] Correspondingly, the application further discloses a test method of a multi-channel audio module, which is applied to any test module of the test system of the multi-channel audio module as described in any of the above, and the test method comprises the following steps of:
[0027] when receiving the test instruction of the host computer, sending a test signal to the corresponding audio module to be tested;
[0028] receiving the feedback signal sent by the audio module to be tested;
[0029] generating a test result according to the test signal and the feedback signal;
[0030] uploading the test result to the host computer.
[0031] The application discloses a test system of a multi-channel audio module, comprising a host computer and a plurality of test modules, wherein each test module comprises: a host communication interface for connecting with the host computer, receiving a test instruction of the host computer, and sending a test result to the host computer; a plurality of test signal sending ends for connecting with a plurality of signal receiving ends of an audio module to be tested respectively, and sending a test signal to the audio module to be tested; a plurality of test signal receiving ends for connecting with a plurality of signal sending ends of the audio module to be tested respectively, and receiving a feedback signal sent by the audio module to be tested; and a processing unit for outputting the test signal according to the test instruction, and generating the test result according to the feedback signal. The test system of the application does not have the limitation that the audio module to be tested must be a double-input channel or must have a saving capability, and various configurations of the audio module to be tested can be applied to the test system for testing, so that the test system has a wide application range. Meanwhile, the plurality of test modules in the application can simultaneously test a plurality of audio modules to be tested, so that the test system has a high test efficiency. BRIEF DESCRIPTION OF DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description are only the embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor on the basis of the provided drawings.
[0033] Figure 1 The structural distribution diagram of the test system of the multi-channel audio module in the embodiment of the present application;
[0034] Figure 2 The action schematic diagram of the test system of the multi-channel audio module in the embodiment of the present application;
[0035] Figure 3 A step flow chart of the test method of the multi-channel audio module in the embodiment of the present application is shown in the figure.
[0036] Figure 4 A step flow chart of the test method of the multi-channel audio module in the embodiment of the present application is shown in the figure. DETAILED DESCRIPTION
[0037] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present application.
[0038] In the current module audio test, the conventional open-loop test requires the audio module to have a certain file saving capability, and the existing loopback test can only test the double-microphone channel and cannot test the multi-microphone channel, so the existing module audio test can be applied to less test objects and cannot be compatible with the test of various audio modules with different configurations.
[0039] The test system of the present application does not have the limitation that the audio module to be tested must be a double-input channel or must have a saving capability, and various types of audio modules to be tested can be applied to the test system for testing, which has a wide application range. Meanwhile, the multiple test modules in the present application can simultaneously test multiple audio modules to be tested, which has high test efficiency.
[0040] The embodiment of the present application discloses a test system for a multi-channel audio module, as shown in the figure. Figure 1 The test system comprises an upper computer 1 and multiple test modules 2, wherein:
[0041] Each test module 2 comprises:
[0042] an upper communication interface for connecting with the upper computer 1, receiving the test instruction of the upper computer 1, and sending the test result to the upper computer 1;
[0043] multiple test signal sending ends for connecting with multiple signal receiving ends of the audio module to be tested respectively and sending test signals to the audio module to be tested;
[0044] multiple test signal receiving ends for connecting with multiple signal sending ends of the audio module to be tested respectively and receiving the feedback signals sent by the audio module to be tested;
[0045] a processing unit for outputting the test signal according to the test instruction and generating the test result according to the feedback signal.
[0046] It can be understood that in each test module 2, the upper communication interface interacts with the host computer 1, including the host computer 1 issuing test instructions to the test module 2, and the test module 2 sending test results to the host computer 1. When positioning different test modules 2, the host computer 1 generally distinguishes the test modules 2 in the form of serial port addresses or serial port numbers. Considering that connecting all the upper communication interfaces of the test modules 2 directly to the host computer 1 will occupy more interfaces of the host computer 1, an expansion module 3 can be set to realize the interconnection of all the test modules 2 and the host computer 1, wherein the uplink interface of the expansion module 3 is connected to the host computer 1, and the downlink interfaces of the expansion module 3 are connected to the test modules 2 respectively. Further, the uplink interface can be an interface for converting USB protocol and UART protocol; and the downlink interface can be an I2C interface.
[0047] Further, the signal receiving end of the audio module to be tested is the electrical signal pin of the microphone channel, and the signal sending end of the audio module to be tested is the electrical signal pin of the loudspeaker channel. When any test module 2 is used to test the audio module to be tested, the connection between the test module 2 and the audio module to be tested is first completed, and then the processing unit performs the following operations: after receiving the test instruction, the test signal is sent through the test signal receiving end, the feedback signal is received through the test signal receiving end, the test result is generated according to the feedback signal, and the test result is uploaded to the host computer 1. The process of generating the test result according to the feedback signal specifically includes analyzing the audio files of the test signal and the feedback signal, and determining the frequency response and / or harmonic distortion and / or noise of the two, as the test result. The host computer 1 will analyze whether the test result meets the preset standard to obtain the final test conclusion.
[0048] However, if the number of signal receiving ends of the audio module to be tested exceeds the number of signal sending ends, that is, the number of microphone channels exceeds the number of loudspeaker channels, the test of all channels cannot be completed at one time, and multiple groups of signal receiving ends must be tested in batches. The number of signal sending ends for each test cannot be less than the number of signal receiving ends for each test. Under normal circumstances, the number of loudspeaker channels is 2, so the number of signal sending ends is 2 and remains constant during each test. The number of signal receiving ends, that is, the number of microphone channels, is not greater than 2, that is: the multiple test signal sending ends of each test module 2 are divided into N groups, N is a positive integer, and the processing unit sequentially performs N group tests according to the test instruction, wherein the i-th group test includes: outputting a test signal to the i-th group of test signal sending ends, and receiving a feedback signal of the test signal receiving end, and generating a test result of the i-th group according to the test signal and the corresponding feedback signal; i = 1, 2, … N.
[0049] It can be understood that the connection of the test module 2 and the audio module to be tested can be completed in advance before the test, and whether the test signal of each test signal sending end is sent can be controlled by the processing unit during the test. In order to improve the test efficiency, the former is generally selected.
[0050] It can be understood that the number of microphone channels of the audio module to be tested in the embodiment exceeds the number of loudspeaker channels, so the microphone channels are divided into N groups, so that each group of microphone channels can correspond to all loudspeaker channels one by one, so that each microphone channel exists a corresponding loudspeaker channel during each group test, that is, the number of each group of microphone channels is not greater than the number of loudspeaker channels, and further, the number of each group of test signal sending ends is not less than the number of test signal receiving ends during the test.
[0051] For example, as shown in the example in Figure 1 , the signal receiving end of the audio module to be tested, that is, the microphone channel is MIC-1 / 2, MIC-3 / 4…MIC-M-1 / M, and only two test signal sending ends SPK+ / - of the test module 2 exist communication with the microphone channel MIC+ / - tested at this time during each group test. Similarly, the signal sending end SPK-L / R of the audio module to be tested remains in communication with the test signal receiving end MIC1 / 2 of the test module 2. Further, the number of N groups of tests and the number of test signal sending ends involved in the N groups of tests can be determined according to the number of microphone channels and loudspeaker channels of the audio module to be tested actually connected, which is not limited here.
[0052] Further, each group of tests will have test results uploaded to the host computer 1, and if any group of test results does not meet the preset standard, it can be considered that the audio module to be tested is unqualified, and the test module 2 can be stopped for testing to save test time. Of course, it can also continue to test to obtain the test results of all signal sending ends and signal receiving ends of the test audio module to ensure the accuracy and comprehensiveness of the test.
[0053] It can be understood that after the host computer 1 issues the test instruction, the operation of each test module 2 is independent, and any two test modules 2 will not interfere with and affect each other.
[0054] Further, considering that the multiple test modules 2 and the to-be-tested audio module test should ensure that the corresponding wiring relationship is correct, therefore the host computer 1 can obtain the electrical signal of the to-be-tested audio module to verify whether it corresponds to the test instruction, thereby realizing the foolproof effect, that is, the host computer 1 is connected with the to-be-tested audio module, and the host computer 1 compares whether the test state received from the to-be-tested audio module corresponds to the test instruction, if not, it is determined that the wiring is incorrect. The foolproof effect can be completed in actual testing, that is, the test state of the to-be-tested audio module received by the host computer 1 is in the interaction process of the test signal and the feedback signal between the test module 2 and the to-be-tested audio module, or it can be completed before actual testing, that is, it is checked in advance whether there is wiring error, so as to avoid the time-consuming of repeated wiring and testing when the wiring error is found in the testing process, and further improve the efficiency of subsequent testing.
[0055] Further, since the host computer 1 sends the wiring test instruction to the corresponding test module 2 through the serial port address, the serial port address can be used for early foolproof implementation; specifically, each test module 2 further comprises: an IO output end for connecting with the IO receiving end of the to-be-tested audio module, for sending the test level to the IO receiving end when receiving the wiring test instruction of the host computer 1; the host computer 1 judges whether the test level received from the to-be-tested audio module corresponds to the wiring test instruction, if yes, it is determined that the wiring is correct, and sends the test instruction to the corresponding test module 2, if not, it is determined that the wiring is incorrect.
[0056] It can be understood that the host computer 1 receives the test level of the to-be-tested audio module, judges whether the test level corresponds to the wiring test instruction, if yes, the host computer 1, the corresponding test module 2 and the connected to-be-tested audio module form a correct and complete closed loop, and the next actual test can be performed.
[0057] Further, the IO output end stops sending the test level to the IO receiving end after the processing unit generates the test result. It can be understood that stopping sending the test level means ending this test, and for each group of tests mentioned above, it means ending the current group test. The host computer 1 can more accurately determine the correspondence between the current to-be-tested audio module and all signals through multiple test levels, so as to avoid the situation that different to-be-tested audio modules are tested at the same time due to wiring or signal timing conflict, and the signals are confused. Specifically, if the IO output end of the test module 2 has stopped sending the test level to the IO receiving end, and the host computer 1 still receives the test level directly from the IO receiving end, it is obvious that the positioning or correspondence of the test wiring is incorrect at this time, and the test result is suspiciously incorrect, which needs to be further determined or re-foolproof and tested.
[0058] Specifically, the whole test flow of the test system refers to Figure 2 , which can be as follows:
[0059] First, the host computer 1 and the test module 2, the wiring of the audio module to be tested, the number of test modules 2 is determined according to the number of audio modules to be tested;
[0060] The host computer 1 initializes the test module 2, and the test module 2 completes the initialization and pulls down the IO, that is, outputs the test level;
[0061] The host computer 1 initializes the audio module to be tested to enter the audio test mode, and the audio module to be tested reads the IO. If it is low, it returns pass to the host computer 1, that is, the host computer 1 receives the signal corresponding to the test level, proving that the foolproof test is passed, the wiring is correct, otherwise fail is returned;
[0062] The host computer 1 sends a test instruction to the test module 2; the test module 2 sends a test signal to the audio module to be tested, receives a feedback signal at the same time, generates a test result and returns it to the host computer 1, and pulls up the IO at the same time;
[0063] The host computer 1 reads the IO level of the audio module to be tested. If the IO level is high, the foolproof verification is passed, otherwise it is not passed.
[0064] It can be understood that the test system in the embodiment is composed of the host computer 1 and multiple test modules 2, wherein the actions of the host computer 1 are realized through the internal software tools thereof, the whole test system provides a cooperative closed-loop test environment with the audio module to be tested, and multiple audio modules to be tested can be tested at the same time, so that the test efficiency is obviously improved.
[0065] The application discloses a kind of multi-channel audio module test system, comprising: host computer and multiple test modules, wherein: each test module includes: for being connected with host computer, receive the test instruction of host computer, and send test result to the host computer upper communication interface;For being connected with the multiple signal receiving ends of audio module to be tested respectively, and send test signal to the audio module to be tested multiple test signal sending end;For being connected with the multiple signal sending ends of the audio module to be tested respectively, and receive the feedback signal sent by the audio module to be tested multiple test signal receiving end;For outputting the test signal according to the test instruction, and generating the test result according to the feedback signal processing unit.The test system of the application, there is no audio module to be tested must be double input channel or must have the restriction of saving capacity, various configurations of audio module to be tested can be applied to this test system and tested, with wide application range, while multiple test modules in the application can simultaneously test multiple audio modules to be tested, with higher test efficiency.
[0066] Correspondingly, the application also discloses a kind of multi-channel audio module test method, applied to the host computer of the multi-channel audio module test system as described in any of the above, seeFigure 3 As shown in the figure, the test method comprises:
[0067] S11: sending a test instruction to any test module, so that the test module sends a test signal to a corresponding audio module to be tested, receives a feedback signal sent by the audio module to be tested, and generates a test result according to the test signal and the feedback signal;
[0068] S12: receiving the test result sent by the test module.
[0069] Correspondingly, the application also discloses a test method of a multi-channel audio module, which is applied to any test module of the test system of the multi-channel audio module as described in any of the above embodiments, and is shown in the figure. Figure 4 As shown in the figure, the test method comprises:
[0070] S21: when receiving a test instruction of an upper computer, sending a test signal to a corresponding audio module to be tested;
[0071] S22: receiving a feedback signal sent by the audio module to be tested;
[0072] S23: generating a test result according to the test signal and the feedback signal;
[0073] S24: uploading the test result to the upper computer.
[0074] Details of the test methods of the two kinds of multi-channel audio modules can be referred to the related content of the test system of the multi-channel audio module in the above embodiments, and will not be described here.
[0075] The test methods of the two kinds of multi-channel audio modules have the same technical effects as the test system of the multi-channel audio module in the above embodiments, and will not be described here.
[0076] Finally, it should be noted that, in this document, relationship terms such as first and second are used only to distinguish one entity or operation from another, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the terms "include", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of another identical element in the process, method, article or device including the element.
[0077] The above describes in detail the test system and method of the multi-channel audio module provided by the application. The principles and implementation manners of the application are described by using specific examples. The above description of the examples is only used to help understand the method of the application and its core idea. Meanwhile, for those skilled in the art, the specific implementation manners and application ranges can be changed according to the idea of the application. In conclusion, the content of the description should not be understood as a limitation of the application.
Claims
1. A test system for multi-channel audio modules, characterized by, The application relates to a test system for a multi-channel audio module. The test system comprises an upper computer, a plurality of test modules and an extension module, wherein: Each test module comprises: an upper communication interface for connecting with the upper computer, receiving a test instruction of the upper computer and sending a test result to the upper computer; the upper computer distinguishes the test modules in the form of serial port addresses or serial port numbers when positioning the test modules; a plurality of test signal sending ends for connecting with a plurality of signal receiving ends of a to-be-tested audio module respectively and sending test signals to the to-be-tested audio module; a plurality of test signal receiving ends for connecting with a plurality of signal sending ends of the to-be-tested audio module respectively and receiving feedback signals sent by the to-be-tested audio module; a processing unit for outputting the test signals according to the test instruction and generating the test result according to the feedback signals; the plurality of test signal sending ends of each test module are divided into N groups, N is a positive integer, and the processing unit sequentially performs N-group tests according to the test instruction, wherein the i-th group test comprises outputting the test signals to the i-th group of test signal sending ends, receiving the feedback signals of the test signal receiving ends, generating the i-th group of test results according to the test signals and the corresponding feedback signals; i = 1, 2,..., N; the uplink interface of the extension module is connected with the upper computer, and the plurality of downlink interfaces of the extension module are connected with the plurality of test modules respectively.
2. The test system according to claim 1, wherein: the uplink interface is specifically an interface for converting a USB protocol and a UART protocol; the downlink interface is specifically an I2C interface.
3. The test system of any of claims 1 to 2, wherein, The upper computer is connected with the to-be-tested audio module, and the upper computer compares whether the test state received by the to-be-tested audio module corresponds to the test instruction, and if not, it is determined that the wiring is incorrect.
4. The test system according to claim 3, wherein: the upper computer sends a wiring test instruction to the corresponding test module through a serial port address; each test module further comprises: an IO output end for connecting with an IO receiving end of the to-be-tested audio module and sending a test level to the IO receiving end when receiving the wiring test instruction of the upper computer; the upper computer judges whether the test level received by the to-be-tested audio module corresponds to the wiring test instruction, and if so, it is determined that the wiring is correct, and the test instruction is sent to the corresponding test module, and if not, it is determined that the wiring is incorrect.
5. The test system according to claim 4, wherein: the IO output end stops sending the test level to the IO receiving end after the processing unit generates the test result.
6. A method of testing a multi-channel audio module, the method comprising: The application relates to a test method applied to the upper computer of the test system for the multi-channel audio module according to any one of claims 1 to 5, and the test method comprises: The test instruction is sent to any test module, so that the test module sends a test signal to a corresponding audio module to be tested, receives a feedback signal sent by the audio module to be tested, and generates a test result according to the test signal and the feedback signal; a plurality of test signal sending ends of each test module are divided into N groups, N is a positive integer, the processing unit sequentially performs N group tests according to the test instruction, wherein the i-th group test includes: outputting the test signal to the i-th group of test signal sending ends, and receiving the feedback signal of the test signal receiving end, generating the test result of the i-th group according to the test signal and the corresponding feedback signal; i = 1, 2, … N; the host computer distinguishes the test modules in the form of serial port addresses or serial port numbers when positioning different test modules; The test result sent by the test module is received.
7. A method of testing a multi-channel audio module, characterized by, The test method is applied to any test module of the test system of the multi-channel audio module as claimed in any one of claims 1 to 5, and the test method comprises: When receiving the test instruction of the host computer, a test signal is sent to a corresponding audio module to be tested; a plurality of test signal sending ends of each test module are divided into N groups, N is a positive integer, the processing unit sequentially performs N group tests according to the test instruction, wherein the i-th group test includes: outputting the test signal to the i-th group of test signal sending ends, and receiving the feedback signal of the test signal receiving end, generating the test result of the i-th group according to the test signal and the corresponding feedback signal; i = 1, 2, … N; the host computer distinguishes the test modules in the form of serial port addresses or serial port numbers when positioning different test modules; The feedback signal sent by the audio module to be tested is received; A test result is generated according to the test signal and the feedback signal; The test result is uploaded to the host computer.
Citation Information
Patent Citations
Multiplex electronic switch and test device having the same
CN101377532A
Closed-loop automatic test system capable of realizing multi-interface index test and test board
CN111693849A
Audio equipment performance testing device
CN210381302U