An audio path production line detection method, device and computer readable storage medium

By using a differential symmetrical loop circuit between the module under test and the production test fixture, audio path detection without the need for special equipment and acoustic devices is achieved, solving the problems of slow detection speed and insufficient discrimination dimensions in existing technologies, and realizing efficient production line testing.

CN123164385APending Publication Date: 2026-11-24SHEN ZHEN GAO XIN XING RUI LIAN KE JI YOU XIAN GONG SI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611687785.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-29
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing audio path detection methods rely on dedicated audio testing equipment, acoustic devices, and acoustic environments. The detection subject is separated from the module under test, the discrimination dimensions cannot cover frequency and amplitude, the detection speed is slow, and it is difficult to match the production line pace.

Method used

A differential symmetrical loop circuit is used to connect the module under test to the production test fixture. The signal is played through the audio output path and the output signal of the loop circuit is recorded. The module's own resources are used to automatically distinguish the frequency and amplitude, realizing the test without the need for special equipment and acoustic devices.

Benefits of technology

It enables the tested module itself to act as the detection subject, covering the discrimination of frequency and amplitude, and the detection speed can match the production line cycle, reducing hardware costs and detection time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123164385A_ABST
    Figure CN123164385A_ABST
Patent Text Reader

Abstract

This invention discloses an audio path production line testing method, device, and computer-readable storage medium. The method includes: playing a first audio signal through an audio output path and inputting it to a loopback circuit; simultaneously, recording a second audio signal output through the loopback circuit via an audio input path; determining whether the first tolerance of the main frequency and the second tolerance of the amplitude of the first and second audio signals are both within their respective preset ranges; if within the preset ranges, determining that the audio path of the module under test is normal; if not within the preset ranges, determining that the audio path of the module under test is abnormal. This invention achieves an audio path testing scheme that does not rely on dedicated audio testing equipment, acoustic devices, or acoustic environment. The module under test itself acts as the testing subject, and the discrimination dimensions cover frequency and amplitude. The testing speed can match the production line pace.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electronic product testing technology, and in particular to an audio path production line testing method, equipment, and computer-readable storage medium. Background Technology

[0002] In the existing technology, with the development of technologies such as the Internet of Things and artificial intelligence, smart devices are deployed in large numbers in all corners of production and life; as the core component for smart devices to achieve wide area networking, communication modules exist in almost all smart devices; the core function of communication modules is to connect to base stations, help devices access wide area networks, and realize data interaction between devices and the cloud.

[0003] Because the internal radio frequency circuitry of communication modules has high requirements for wiring, ESD protection, and interference immunity, it is generally designed separately by specialized communication module manufacturers and then provided to smart device manufacturers for integration. Communication modules expose functional pins during design, such as GPIO (General Purpose Input / Output), power, and audio pins. Before delivery, module manufacturers must ensure the proper functioning of these exposed pins, requiring a rigorous production line testing environment to ensure that the function of each pin in each module meets design requirements. While GPIO and power pins can be functionally determined through simple connectivity / level tests, audio pins, involved in the entire process of analog signal transmission, reception, and encoding / decoding, cannot be guaranteed by connectivity alone and require specialized testing methods.

[0004] Currently, the detection of audio pathways mainly relies on the following methods: First, manual testing with specialized audio instruments: This involves professional personnel measuring and interpreting each item using specialized equipment such as audio signal generators and audio analyzers. While this method offers high measurement accuracy, the equipment is expensive, the operation is complex, and the time-consuming process of testing each item makes it unsuitable for production line pace and difficult to scale to multiple workstations in parallel. Second, the whole-machine acoustic loopback self-test: the device under test plays a known test tone through its own speaker, which is transmitted through the air and collected by the pickup device. The processor judges whether the collected signal is normal. This method relies on the built-in speaker and microphone of the device under test, and the air coupling is greatly affected by environmental noise. Threshold parameters need to be adjusted for each usage environment, and a single test takes more than 3 seconds. Thirdly, audio loopback detection using an external test module: A separate test module connects to the input and output of the device under test (DUT). The signal generated by the module is transmitted back via an external test link, and the test module compares the transmitted and received signals to determine the fault. This method can be used for module-level testing, but it requires custom development of an active test module for the DUT, resulting in higher hardware costs and complexity. Furthermore, it requires simultaneous replacement and reconfiguration when changing device models. Fourth, manual verification / call checking: Voice call verification is performed manually. This relies entirely on human intervention, resulting in unquantifiable, untraceable, and non-automatable outcomes. Furthermore, existing loop closure detection solutions mostly use a single amplitude threshold (or tone presence or absence) for discrimination, which can only detect faults such as "completely non-functional". They lack the ability to intercept faults such as frequency offset, amplitude attenuation, and bandwidth degradation, which are "semi-failures". Defective products can easily flow to the downstream complete machine stage.

[0005] In summary, existing audio path testing relies on dedicated audio testing equipment, acoustic devices, and acoustic environments. The testing subject is separated from the module under test, the discrimination dimensions cannot cover frequency and amplitude, the testing speed is slow, and it is difficult to match the production line pace. Summary of the Invention

[0006] In order to overcome the shortcomings of the prior art, the present invention aims to provide an audio path production line testing method, equipment and computer-readable storage medium to solve the problems of current audio path testing, which relies on dedicated audio testing equipment, acoustic devices and acoustic environment, separates the testing subject from the module under test, cannot cover frequency and amplitude in the discrimination dimension, has a slow testing speed and is difficult to match the production line rhythm.

[0007] This invention proposes an audio path production line testing method, applied to a module under test. The module under test is connected to a production test fixture. The module under test includes an audio output path and an audio input path. The production test fixture is equipped with a loop circuit with a differential symmetrical structure composed of voltage divider resistors and DC blocking capacitors. The loop circuit connects the audio output path and the audio input path. This method includes: The first audio signal is played through the audio output path and input to the loopback circuit. At the same time, the second audio signal output through the loopback circuit is recorded through the audio input path. Determine whether the first tolerance of the main frequency and the second tolerance of the amplitude of the first audio signal and the second audio signal are both within their respective preset ranges; If both the first tolerance and the second tolerance are within their respective preset ranges, then the audio path of the module under test is determined to be normal. If the first tolerance and / or the second tolerance are not within their respective preset ranges, the audio path of the module under test is determined to be abnormal.

[0008] Optionally, the first audio signal is played through the audio output path, specifically including: The first audio signal is composed of two sinusoidal signals at frequencies of 2kHz and 5kHz. Play two sine signals in sequence.

[0009] Optionally, determining whether the first tolerance of the main frequency and the second tolerance of the amplitude of the first audio signal and the second audio signal are both within their respective preset ranges further includes: Determine whether the first and second tolerances of the two sinusoidal signals are both within their respective preset ranges; If the first and second tolerances corresponding to the two sinusoidal signals are both within their respective preset ranges, then the audio path of the module under test is determined to be normal. If the two sets of first and / or second tolerances corresponding to the two sinusoidal signals are not within their respective preset ranges, then the audio path of the module under test is determined to be abnormal.

[0010] Optionally, the second audio signal output through the loopback circuit is recorded via the audio input path, specifically including: The digital audio signal output through the loopback circuit is acquired via the audio input path; The digital audio signal is then subjected to normalization, windowing, and cropping processes in sequence to obtain the second audio signal.

[0011] Optionally, determining whether the first tolerance of the main frequency and the second tolerance of the amplitude of the first audio signal and the second audio signal are both within their respective preset ranges specifically includes: Perform a fast Fourier transform on the second audio signal to obtain a frequency domain complex array with the same sampling frequency and the same number of sampling points as the first audio signal; Taking the modulus of the complex frequency domain array yields the sampling point with the largest modulus. The second main frequency and the second amplitude of the second main frequency of the second audio signal are calculated based on the sampling point with the largest modulus. Determine whether the first tolerance between the first main frequency and the second main frequency of the first audio signal is within a preset first range, and whether the second tolerance between the first amplitude and the second amplitude of the first main frequency is within a preset second range.

[0012] Optionally, a fast Fourier transform is performed on the second audio signal to obtain a frequency domain complex array with the same sampling frequency and the same number of sampling points as the first audio signal, specifically including: The second audio signal is divided into frames of fixed length, where each frame has a length of N, where N is a power of 2. Perform a Fast Fourier Transform on each frame: X[k]=Σ x[n]·e^(j2πkn / N),k=0,1,…,N−1 ,in, k For frequency components, n The sampling point number, e It is a natural constant. j It is the imaginary unit.

[0013] Optionally, taking the modulus of the complex frequency array to obtain the sampling point with the largest modulus value includes: pass |X[k]|=√(Re(X[k])² + Im(X[k])²) Calculate the amplitude of each frequency point of the second audio signal. X ; The sampling point with the largest magnitude is determined based on the amplitude of each frequency point. k_max .

[0014] Optionally, the second main frequency and the second amplitude of the second main frequency of the second audio signal are calculated based on the sampling point with the largest modulus value, specifically including: The frequency resolution of the second audio signal is calculated using Δf = fs / N, where fs is the sampling frequency. according to f_max = k_max·Δf The second main frequency is calculated, and the second amplitude corresponding to the second main frequency is extracted.

[0015] The present invention also proposes an audio path production line testing device, the device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the audio path production line testing method as described in any of the preceding claims.

[0016] The present invention also proposes a computer-readable storage medium storing an audio path production line detection program, wherein when the audio path production line detection program is executed by a processor, the steps of the audio path production line detection method as described in any of the preceding claims are implemented.

[0017] The audio path production line testing method, equipment, and computer-readable storage medium of the present invention play a first audio signal through an audio output path and input it to a loopback circuit. Simultaneously, a second audio signal is recorded through an audio input path and output through the loopback circuit. The method determines whether the first tolerance of the main frequency and the second tolerance of the amplitude of the first and second audio signals are both within their respective preset ranges. If both the first and second tolerances are within their respective preset ranges, the audio path of the module under test is determined to be normal. If the first and / or second tolerances are not within their respective preset ranges, the audio path of the module under test is determined to be abnormal. This achieves an audio path testing scheme that does not rely on dedicated audio testing equipment, acoustic devices, or an acoustic environment. The module under test itself acts as the testing subject, and the discrimination dimensions cover frequency and amplitude. The testing speed can match the production line pace. Attached Figure Description

[0018] The present invention will be further described below with reference to the accompanying drawings and embodiments. In the accompanying drawings: Figure 1 This is a flowchart of the first embodiment of the audio path production line detection method of the present invention; Figure 2 This is a flowchart of the second embodiment of the audio path production line detection method of the present invention; Figure 3 This is a flowchart of the third embodiment of the audio path production line detection method of the present invention; Figure 4 This is a flowchart of the fourth embodiment of the audio path production line detection method of the present invention; Figure 5 This is a flowchart of the fifth embodiment of the audio path production line detection method of the present invention; Figure 6 This is a flowchart of the sixth embodiment of the audio path production line detection method of the present invention; Figure 7 This is a flowchart of the seventh embodiment of the audio path production line detection method of the present invention; Figure 8 This is a flowchart of the eighth embodiment of the audio path production line testing method of the present invention; Figure 9 This is a schematic diagram illustrating the working principle of the audio path production line testing method of the present invention; Figure 10 This is a simplified circuit diagram of the audio path production line detection method of the present invention. Detailed Implementation

[0019] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.

[0020] In the following description, the use of suffixes such as "module," "part," or "unit" to denote elements is solely for the purpose of illustrative purposes and has no specific meaning in itself. Therefore, "module," "part," or "unit" may be used interchangeably.

[0021] Example 1 Figure 1 This is a flowchart of the first embodiment of the audio path production line testing method of the present invention. An audio path production line testing method is applied to a module under test, which is connected to a production test fixture. The module under test includes an audio output path and an audio input path. The production test fixture is equipped with a loop circuit with a differential symmetrical structure composed of voltage divider resistors and DC blocking capacitors. The loop circuit connects the audio output path and the audio input path. This method includes: S1. Play the first audio signal through the audio output path and input it to the loopback circuit. At the same time, record the second audio signal output by the loopback circuit through the audio input path. S2. Determine whether the first tolerance of the main frequency and the second tolerance of the amplitude of the first audio signal and the second audio signal are both within their respective preset ranges; S3. If both the first tolerance and the second tolerance are within their respective preset ranges, then the audio path of the module under test is determined to be normal. S4. If the first tolerance and / or the second tolerance are not within their respective preset ranges, the audio path of the module under test is determined to be abnormal.

[0022] In this embodiment, a rapid audio path detection method is provided for the communication module production line testing stage. This method requires no dedicated audio testing equipment, no acoustic components such as speakers / phone chips, and no manual listening, thereby achieving automated detection and defect interception of audio output and input paths, and meeting the production line's requirements for testing time.

[0023] In this embodiment, the audio playback and recording resources of the module under test are used, combined with the passive loopback network on the production test fixture board, to form a detection link of "digital excitation - electrical loopback - digital data acquisition - automatic discrimination".

[0024] In the test triggering phase of this embodiment: the production test host computer or the production test station program notifies the module under test to enter the audio path detection process through AT commands or other communication commands (production test commands), and selects or switches the audio path according to the commands.

[0025] In the signal excitation stage of this embodiment: the module under test plays a preset test audio signal with known characteristics stored in its storage area, such as a test audio signal with a preset frequency of Freq0 and an amplitude of Amp0.

[0026] In the electrical loopback stage of this embodiment: the test audio signal is output through the module's audio output pin (SPK speaker), and directly electrically coupled to the module's audio input pin (MIC microphone) through the passive loopback network on the production test fixture board. It is then sampled back by the module's audio input path, without going through the acoustic conversion of speaker-air-microphone chip.

[0027] In the automatic discrimination stage of this embodiment: the communication module itself, or the communication module back to the host computer, performs preprocessing and spectrum analysis on the recorded audio file, extracts the measured frequency Freq1 and amplitude Amp1, and compares them with the above-mentioned preset feature Freq0 / Amp0 with two-parameter tolerance. If they are within the tolerance range, the channel is judged to be normal. If either parameter exceeds the tolerance, the channel is judged to be abnormal, so that the production line can reject the communication module.

[0028] In this embodiment, a passive loopback network is used to connect the audio output and input paths into a loop. On the other hand, the output signal amplitude is attenuated to a safe / appropriate range for the input path by voltage division, and the DC bias effect is eliminated by DC blocking capacitor, thereby ensuring that the audio input path can reliably capture the signal output by the audio output path.

[0029] The beneficial effect of this embodiment is that a first audio signal is played through the audio output path and input to the loopback circuit, while a second audio signal output through the loopback circuit is recorded through the audio input path. It determines whether the first tolerance of the main frequency and the second tolerance of the amplitude of the first and second audio signals are both within their respective preset ranges. If both the first and second tolerances are within their respective preset ranges, the audio path of the module under test is determined to be normal. If the first and / or second tolerances are not within their respective preset ranges, the audio path of the module under test is determined to be abnormal. This achieves an audio path detection scheme that does not rely on dedicated audio testing equipment, acoustic devices, or an acoustic environment. The module under test itself acts as the detection subject, and the judgment dimensions cover frequency and amplitude. The detection speed can match the production line pace.

[0030] Example 2 Figure 2 This is a flowchart of the second embodiment of the audio path production line detection method of the present invention. Based on the above embodiment, the method plays a first audio signal through the audio input path, specifically including: S11. The first audio signal is formed by two sinusoidal signals at 2KHz and 5KHz frequencies. S12. Play the two sine signals in sequence.

[0031] In this embodiment, considering that the human ear can hear frequencies of approximately 20Hz to 20kHz and is most sensitive to sounds in the range of 2kHz to 5kHz, the test signal only needs to cover the frequency band most sensitive to the human ear. Preferably, two frequency points (e.g., 2kHz and 5kHz) within this sensitive frequency band are selected to form the test sound source.

[0032] In this embodiment, test sound sources consisting of sinusoidal signals at two frequency points, 2KHz and 5KHz, are played separately or sequentially. Furthermore, the test sound sources are pre-made and stored in the module storage area, and the playback duration is designed according to the detection duration requirements; for example, hundreds of milliseconds to several seconds, determined by the production line cycle.

[0033] The beneficial effects of this embodiment are that the amplitude-frequency characteristics of the path in different frequency bands can be verified separately by using dual frequency points, which provides more comprehensive coverage than single frequency points and has a stronger ability to intercept path bandwidth defects (e.g., coupling capacitor failure, bandwidth narrowing); in addition, both frequency points are located in the flat and sensitive areas of the module audio path (voice band), resulting in a high signal-to-noise ratio and more stable discrimination.

[0034] Example 3 Figure 3This is a flowchart of the third embodiment of the audio path production line testing method of the present invention. Based on the above embodiment, determining whether the first tolerance of the main frequency and the second tolerance of the amplitude of the first audio signal and the second audio signal are both within their respective preset ranges further includes: S31. Determine whether the first and second tolerances of the two sinusoidal signals are both within their respective preset ranges. S32. If the first and second tolerances corresponding to the two sinusoidal signals are both within their respective preset ranges, then the audio path of the module under test is determined to be normal. S33. If the two sets of first tolerances and / or second tolerances corresponding to the two sinusoidal signals are not within their respective preset ranges, then the audio path of the module under test is determined to be abnormal.

[0035] In this embodiment, firstly, a dual-parameter tolerance of frequency and amplitude is used for discrimination; secondly, the above-mentioned dual-frequency point method is used for discrimination. Combining the two, the four sets of discrimination can further intercept bandwidth-related defects.

[0036] In this embodiment, the detection and judgment operations of steps S1-S5 above are performed on the two frequency points respectively. The audio path can only be determined to be normal when the frequency and amplitude of both frequency points pass the judgment.

[0037] The beneficial effect of this embodiment is that, through the frequency and amplitude discrimination scheme of the above dual frequency points, it is possible to effectively detect the low-frequency response degradation caused by the attenuation of DC blocking capacitor capacity, as well as bandwidth defects in other interception paths.

[0038] Example 4 Figure 4 This is a flowchart of the fourth embodiment of the audio path production line detection method of the present invention. Based on the above embodiment, the second audio signal output through the loopback circuit is recorded through the audio input path, specifically including: S21. Acquire the digital audio signal output through the loopback circuit via the audio input path; S22. The digital audio signal is subjected to normalization, windowing, and cropping processes in sequence to obtain the second audio signal.

[0039] In this embodiment, considering that the communication module acquires the above-mentioned digital audio signal through ADC (Analog to Digital Converter), and that the above-mentioned digital audio signal is a discrete time series, it is necessary to preprocess the sampling signal of the audio input path: first, normalization processing; second, windowing processing, such as Hanning window or Hamming window; and third, trimming processing, deleting the beginning and end of the recording file.

[0040] The beneficial effects of this embodiment are that, through the above-mentioned normalization processing, windowing processing, and clipping processing, DC offset is eliminated, spectral leakage is reduced, and erroneous / invalid data caused by the phase difference between playback and recording start are removed, which facilitates subsequent comparison.

[0041] Example 5 Figure 5 This is a flowchart of the fifth embodiment of the audio path production line testing method of the present invention. Based on the above embodiment, it determines whether the first tolerance of the main frequency and the second tolerance of the amplitude of the first audio signal and the second audio signal are both within their respective preset ranges, specifically including: S6. Perform a fast Fourier transform on the second audio signal to obtain a frequency domain complex array with the same sampling frequency and the same number of sampling points as the first audio signal. S7. Take the modulus of the complex array in the frequency domain to obtain the sampling point with the largest modulus value; S8. Calculate the second main frequency and the second amplitude of the second main frequency of the second audio signal based on the sampling point with the largest modulus. S9. Determine whether the first tolerance between the first main frequency and the second main frequency of the first audio signal is within a preset first range, and whether the second tolerance between the first amplitude and the second amplitude of the first main frequency is within a preset second range.

[0042] In this embodiment, firstly, the digital audio recording file recorded by the MIC microphone is subjected to FFT (Fast Fourier Transform) to obtain a frequency domain complex array with the same sampling frequency and the same number of sampling points; then, the modulus of the complex result is taken to find the index (ID) of the point with the largest modulus value; finally, the measured frequency and amplitude are calculated from the ID, and the results are judged by threshold (or tolerance).

[0043] Please refer to Figure 9In a specific example, a complete testing chain is provided, distributed across two parts: the module under test (DUT) and the production test fixture. Specifically: In the initial stage, preset audio sources (Freq0, Amp0) are stored in the DUT's memory area; during the production line testing stage, the production test station notifies the module to enter the audio testing process and select the audio input path via AT commands, and the module plays the preset audio signal; the signal is then processed by SPK... The speaker circuit (i.e., the audio output path) outputs to the outside of the communication module and enters the loop circuit on the fixture board. The loop circuit electrically couples the signal to the MIC microphone circuit (i.e., the audio output path / audio input path). The communication module can obtain a recorded audio source containing the measured Freq1 and Amp1 by recording. Further, the communication module uses a preset detection algorithm to perform spectrum analysis on the recorded audio source and calculate the measured frequency and amplitude. Finally, the measured values ​​(i.e., the above Freq1 and Amp1) are compared with the original preset values ​​(i.e., the above Freq0 and Amp0). If both are within the tolerance range, a message indicating that the detection has passed is returned to the host computer. If either one exceeds the tolerance range, a message indicating that the detection has failed is returned to the host computer, so that the production line can promptly reject the communication module.

[0044] Example 6 Figure 6 This is a flowchart of the sixth embodiment of the audio path production line detection method of the present invention. Based on the above embodiment, a fast Fourier transform is performed on the second audio signal to obtain a frequency domain complex array with the same sampling frequency and the same number of sampling points as the first audio signal, specifically including: S61. Divide the second audio signal into frames of fixed length, where the length of each frame is N, and N is a power of 2. S62. Perform a Fast Fourier Transform on each frame: X[k]=Σ x[n]·e^(j2πkn / N),k=0,1,…,N−1 ,in, k For frequency components, n The sampling point number, e It is a natural constant. j It is the imaginary unit.

[0045] In this embodiment, firstly, erroneous / invalid data at the beginning and end of the two audio signals caused by the phase difference between playback and recording start are deleted. Then, the second audio signal is divided into frames of fixed length, where the length of each frame is N, and N is a power of 2.

[0046] The beneficial effects of this embodiment are that by performing a fast Fourier transform on the second audio signal, a frequency domain complex array with the same sampling frequency and the same number of sampling points as the first audio signal is obtained. This fully utilizes the fact that there is no environmental noise interference in the electrical loop, eliminating the need to lengthen the playback / acquisition time to ensure the signal-to-noise ratio, and eliminating the need to adjust the threshold for each environment. Furthermore, the preset audio source is short, and the discrimination based on the fast Fourier transform can be completed within the communication module. A single detection can be controlled within the second level, thereby matching the production line rhythm.

[0047] Example 7 Figure 7 This is a flowchart of the seventh embodiment of the audio path production line detection method of the present invention. Based on the above embodiment, the sampling point with the largest modulus value is obtained by taking the modulus of the frequency domain complex array, specifically including: S71, Through |X[k]|=√(Re(X[k])²+Im(X[k])²) Calculate the amplitude of each frequency point of the second audio signal. X ; S72. Determine the sampling point with the largest magnitude based on the amplitude of each frequency point. k_max .

[0048] In this embodiment, considering that the test sound source consists of sinusoidal signals at two frequency points, 2KHz and 5KHz, and is played separately or sequentially, it is necessary to perform the above calculation operation of the sampling point with the largest modulus value for each frequency point, so as to facilitate the subsequent dual-frequency point discrimination.

[0049] Example 8 Figure 8 This is a flowchart of the eighth embodiment of the audio path production line detection method of the present invention. Based on the above embodiment, the second main frequency of the second audio signal and the second amplitude of the second main frequency are calculated according to the sampling point with the largest modulus value, specifically including: S81. Calculate the frequency resolution of the second audio signal using Δf=fs / N, where fs is the sampling frequency; S82, according to f_max = k_max·Δf The second main frequency is calculated, and the second amplitude corresponding to the second main frequency is extracted.

[0050] In this embodiment, considering that the test sound source consists of sinusoidal signals at two frequency points of 2KHz and 5KHz, and is played separately or sequentially, it is necessary to perform the above-mentioned calculation of the second main frequency and extraction of the second amplitude corresponding to the second main frequency for each frequency point, so as to facilitate the subsequent dual-frequency point discrimination and intercept bandwidth defects in the path (e.g., low-frequency response degradation caused by DC blocking capacitor capacitance attenuation).

[0051] Example 9 Please refer to Figure 10 Based on the above embodiments, the present invention also proposes a loop circuit.

[0052] In this embodiment, the loopback circuit is set on the test fixture board, and the audio output (SPK) and audio input (MIC) of the module under test are connected through voltage divider resistors and DC blocking capacitors.

[0053] In this embodiment, taking the differential structure as an example, in each branch: the audio output pin (DAC_N or DAC_P) is led out through the series resistor R1 (or R3), and after R1 (R3), a voltage divider network is formed through the ground resistor R2 (R4) to attenuate the output signal amplitude to the safe range of the audio input path; the voltage divider node is coupled to the corresponding audio input pin (MIC_N or MIC_P) through the DC blocking capacitor C1 (or C2).

[0054] In this embodiment, the function of the loopback circuit is as follows: First, connect: connect the audio input channels to form a loop to ensure that the audio input channels can work normally while capturing the audio signal being played. Second, voltage division: The output amplitude of DAC / power amplifier is usually greater than the full scale of MIC input. By using the voltage division ratio of R1 / R2 (R3 / R4), it can be adjusted to a suitable range to avoid recording clipping distortion affecting amplitude discrimination. Third, DC isolation: C1 / C2 isolates DC bias, transmitting only AC audio components to ensure that the DC operating point of the MIC is not disturbed.

[0055] The beneficial effect of this embodiment is that by designing a loop circuit, there is no need for dedicated audio testing equipment, audio signal generator or audio analyzer. It can be completed using only the resources of the module under test and a small number of resistors and capacitors on the fixture board, which greatly reduces the cost of testing hardware.

[0056] Example 10 Based on the above embodiments, the present invention also proposes an audio path production line testing device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the audio path production line testing method as described in any of the above embodiments.

[0057] It should be noted that the above-described device embodiments and method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments, and the technical features in the method embodiments are also applicable to the device embodiments, which will not be repeated here.

[0058] Example 11 Based on the above embodiments, the present invention also proposes a computer-readable storage medium storing an audio path production line detection program, wherein when the audio path production line detection program is executed by a processor, the steps of the audio path production line detection method as described in any of the above claims are implemented.

[0059] It should be noted that the above-described medium embodiments and method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments, and the technical features in the method embodiments are also applicable to the medium embodiments, which will not be repeated here.

[0060] The audio path production line testing method, equipment, and computer-readable storage medium of the present invention play a first audio signal through an audio output path and input it to a loopback circuit. Simultaneously, a second audio signal is recorded through an audio input path and output through the loopback circuit. The method determines whether the first tolerance of the main frequency and the second tolerance of the amplitude of the first and second audio signals are both within their respective preset ranges. If both the first and second tolerances are within their respective preset ranges, the audio path of the module under test is determined to be normal. If the first and / or second tolerances are not within their respective preset ranges, the audio path of the module under test is determined to be abnormal. This achieves an audio path testing scheme that does not rely on dedicated audio testing equipment, acoustic devices, or an acoustic environment. The module under test itself acts as the testing subject, and the discrimination dimensions cover frequency and amplitude. The testing speed can match the production line pace.

[0061] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0062] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0063] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0064] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims. All of these forms are within the protection scope of the present invention.

Claims

1. An audio path chain detection method applied to a device under test (DUT), wherein the DUT is connected to a test fixture, and the method comprises the steps of: providing a test signal to the DUT; receiving a response signal from the DUT; and determining a path chain of the DUT based on the test signal and the response signal. The module under test includes an audio output path and an audio input path. The test fixture includes a loop circuit with a differential symmetrical structure composed of voltage divider resistors and DC blocking capacitors. The loop circuit connects the audio output path and the audio input path. The method includes: The first audio signal is played through the audio output path and input to the loopback circuit. At the same time, the second audio signal output by the loopback circuit is recorded through the audio input path. Determine whether the first tolerance of the main frequency and the second tolerance of the amplitude of the first audio signal and the second audio signal are both within their respective preset ranges; If both the first tolerance and the second tolerance are within their respective preset ranges, then the audio path of the module under test is determined to be normal. If the first tolerance and / or the second tolerance are not within their respective preset ranges, then the audio path of the module under test is determined to be abnormal.

2. The audio path production line testing method according to claim 1, characterized in that, Playing the first audio signal through the audio output path specifically includes: The first audio signal is composed of two sinusoidal signals at frequencies of 2kHz and 5kHz. Play the two sinusoidal signals sequentially, respectively.

3. The audio path production line testing method according to claim 2, characterized in that, The step of determining whether the first tolerance of the main frequency and the second tolerance of the amplitude of the first audio signal and the second audio signal are both within their respective preset ranges further includes: Determine whether the first tolerance and the second tolerance of the two sinusoidal signals are both within their respective preset ranges; If both sets of the first tolerance and the second tolerance corresponding to the two sinusoidal signals are within their respective preset ranges, then the audio path of the module under test is determined to be normal. If the two sets of first tolerances and / or second tolerances corresponding to the two sinusoidal signals are not within their respective preset ranges, then the audio path of the module under test is determined to be abnormal.

4. The audio path production line testing method according to claim 1, characterized in that, The recording of the second audio signal output through the loopback circuit via the audio input path specifically includes: The digital audio signal output from the loopback circuit is acquired through the audio input path; The digital audio signal is then subjected to normalization, windowing, and cropping processes in sequence to obtain the second audio signal.

5. The audio path production line testing method according to claim 1, characterized in that, The step of determining whether the first tolerance of the main frequency and the second tolerance of the amplitude of the first audio signal and the second audio signal are both within their respective preset ranges specifically includes: Perform a fast Fourier transform on the second audio signal to obtain a frequency domain complex array with the same sampling frequency and the same number of sampling points as the first audio signal; Take the modulus of the frequency domain complex array to obtain the sampling point with the largest modulus value; The second main frequency and the second amplitude of the second main frequency of the second audio signal are calculated based on the sampling point with the largest modulus. Determine whether the first main frequency and the second main frequency of the first audio signal are within a preset first range, and whether the second amplitude of the first main frequency and the second amplitude are within a preset second range.

6. The audio path production line testing method according to claim 5, characterized in that, The step of performing a Fast Fourier Transform on the second audio signal to obtain a frequency domain complex array with the same sampling frequency and the same number of sampling points as the first audio signal specifically includes: The second audio signal is divided into frames of fixed length, where each frame has a length of N, where N is a power of 2. Perform a Fast Fourier Transform on each frame: X[k]=Σ x[n]·e^(j2πkn / N),k=0,1,…,N−1 ,in, k For frequency components, n The sampling point number, e It is a natural constant. j It is the imaginary unit.

7. The audio path production line testing method according to claim 6, characterized in that, The step of taking the modulus of the frequency domain complex array to obtain the sampling point with the largest modulus specifically includes: pass |X[k]|=√(Re(X[k])² + Im(X[k])²) Calculate the amplitude of each frequency point of the second audio signal. X ; The sampling point with the largest magnitude is determined based on the amplitude of each frequency point. k_max .

8. The audio path production line testing method according to claim 7, characterized in that, The step of calculating the second main frequency and the second amplitude of the second main frequency of the second audio signal based on the sampling point with the largest modulus specifically includes: The frequency resolution of the second audio signal is calculated using Δf = fs / N, where fs is the sampling frequency. according to f_max = k_max·Δf The second main frequency is calculated, and the second amplitude corresponding to the second main frequency is extracted.

9. An audio path production line testing device, characterized in that, The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the audio path production line inspection method as described in any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores an application audio path production line detection program, which, when executed by a processor, implements the steps of the audio path production line detection method as described in any one of claims 1 to 8.