Method, device, system and equipment for testing audio function of communication module to be tested
By converting sine wave signals into digital signals, performing signal processing and write-back operations, and acquiring signal voltage values, the problem of low efficiency in audio function testing of communication modules under test is solved, enabling fast and efficient audio function testing.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- FIBOCOM AUTO SOFTWARE INC
- Filing Date
- 2025-12-22
- Publication Date
- 2026-04-14
AI Technical Summary
The existing audio function testing of the communication module under test is inefficient and requires manual operation, resulting in low testing efficiency.
By converting a sine wave signal into a digital signal, using a digital signal processor and control interface for signal processing and write-back operations, and acquiring the signal voltage value of the target digital signal, the system determines whether the audio function is normal.
It improves the efficiency of audio function testing of communication modules under test, and can quickly determine whether the audio function is normal or not, reducing manual intervention.
Smart Images

Figure CN121865191A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication module testing, and in particular to a method, apparatus, system and device for testing the audio function of a communication module under test. Background Technology
[0002] After the factory produces 4G / 5G communication modules or after the software version of the 4G / 5G communication modules is released, audio function testing is required to ensure the normal use of the audio function.
[0003] Existing testing methods typically involve manually testing the audio functionality. This manual testing approach is inefficient for testing the audio functionality of 4G / 5G communication modules. Summary of the Invention
[0004] This application provides a method, apparatus, system, and device for testing the audio function of a communication module under test, in order to solve the technical problem of low efficiency in testing the audio function of the communication module under test.
[0005] In a first aspect, this application provides a method for testing the audio function of a communication module under test, comprising: converting a sinusoidal signal generated by an acquired sinusoidal circuit into a first digital signal; calling the digital signal processing interface of the digital signal processor in the communication module under test, and converting the first digital signal into a data file through the digital signal processor; calling the control interface of an application in the communication module under test, and initiating a control command through the application to write the data file back to the digital signal processor to obtain a target digital signal; and determining whether the audio function of the communication module under test is normal by acquiring the signal voltage value of the target digital signal.
[0006] As an optional example, the process involves calling the digital signal processing interface of the digital signal processor in the communication module under test (DUT) to convert the first digital signal into a data file; and calling the control interface of the application in the DUT to initiate control commands and write the data file back to the DUT to obtain the target digital signal. This includes: determining a preset target number of read / write operations (N); calling the digital signal processing interface of the DUT to convert the first digital signal into a data file; calling the control interface of the application in the DUT to initiate control commands and write the data file back to the DUT to obtain the second digital signal, which is considered as one read / write operation; performing N read / write operations to obtain N second digital signals; and determining the N second digital signals as the target digital signal.
[0007] As an optional example, the process involves calling the digital signal processing interface of the digital signal processor in the communication module under test (DUT) to convert the first digital signal into a data file; and calling the control interface of the application in the DUT to initiate control commands and write the data file back to the DUT to obtain the target digital signal. This includes: determining a preset target number N; calling the digital signal processing interface of the DUT to convert the first digital signal into a data file; calling the control interface of the application in the DUT to initiate control commands and write the data file back to the DUT to obtain the second digital signal, which is considered the first read / write operation; when performing the second to Nth read / write operations, the output of the previous read / write operation is used as the input of the next read / write operation, wherein the steps of the second to Nth read / write operations are the same as the steps of the first read / write operation; after performing N read / write operations, the second digital signal output by each read / write operation is determined as the target digital signal.
[0008] As an optional example, determining whether the audio function of the communication module under test is normal by acquiring the signal voltage value of the target digital signal includes: calculating the average signal voltage value of multiple second digital signals in the target digital signal; determining that the audio function of the communication module under test is abnormal when the average signal voltage value exceeds a preset range; and determining that the audio function of the communication module under test is normal when the average signal voltage value is within the preset range.
[0009] As an optional example, after determining that the audio function of the communication module under test is normal, the above method further includes: comparing the signal voltage value of each second digital signal in the target digital signal with a preset range; when the number of signal voltage values exceeding the preset range accounts for more than a preset percentage of N, the communication module under test is determined as a pending communication module, wherein the pending communication module will be tested again with different sine wave signals.
[0010] As an optional example, after determining whether the audio function of the communication module under test is normal by acquiring the signal voltage value of the target digital signal, the above method further includes: when the audio function is abnormal, acquiring one or more sine wave signals with frequencies or peak values different from the sine wave signal; and using the acquired new sine wave signal to test the audio function of the communication module under test.
[0011] As an optional example, determining whether the audio function of the communication module under test is normal by acquiring the signal voltage value of the target digital signal includes: determining that the audio function of the communication module under test is abnormal when the signal voltage value of the target digital signal exceeds a preset range; and determining that the audio function of the communication module under test is normal when the signal voltage value of the target digital signal is within a preset range.
[0012] Secondly, this application provides an audio function testing device for a communication module under test, comprising: a conversion module for converting a sinusoidal signal generated by a sinusoidal circuit into a first digital signal; a first calling module for calling the digital signal processing interface of the digital signal processor in the communication module under test, and converting the first digital signal into a data file through the digital signal processor; a second calling module for calling the control interface of an application in the communication module under test, and initiating control commands through the application to write the data file back to the digital signal processor to obtain a target digital signal; and a determination module for determining whether the audio function of the communication module under test is normal by acquiring the signal voltage value of the target digital signal.
[0013] Thirdly, this application also provides an audio function testing system for a communication module under test, comprising: a sine wave circuit for generating a sine wave signal; the communication module under test; an integrated circuit chip for converting the acquired sine wave signal generated by the sine wave circuit into a first digital signal; calling the digital signal processing interface of the digital signal processor in the communication module under test to convert the first digital signal into a data file through the digital signal processor; calling the control interface of the application in the communication module under test to initiate control commands through the application to write the data file back to the digital signal processor to obtain a target digital signal; and determining whether the audio function of the communication module under test is normal by acquiring the signal voltage value of the target digital signal.
[0014] Fourthly, this application provides an apparatus comprising: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor connected to the at least one bus; and at least one memory connected to the at least one bus, wherein the memory stores a computer program, and the processor is configured to implement an audio function testing method for a communication module under test as described above when executing the computer program.
[0015] Compared with the prior art, the above-mentioned technical solution provided in this application has the following advantages: The solution provided in this application converts the sine wave signal generated by the acquired sine wave circuit into a first digital signal; calls the digital signal processing interface of the digital signal processor in the communication module under test, and converts the first digital signal into a data file through the digital signal processor; calls the control interface of the application in the communication module under test, and initiates control commands through the application to write the data file back to the digital signal processor to obtain the target digital signal; by collecting the signal voltage value of the target digital signal, it is determined whether the audio function of the communication module under test is normal. Thus, the first digital signal can be obtained using the sine wave signal, the first digital signal is processed into a data file by the digital signal processor of the communication module under test, and then written back to the digital signal processor to obtain the target digital signal. This completes the process of recording the first digital signal into a data file and then playing it back as the target digital signal. By collecting the signal voltage value of the target digital signal, it is possible to determine whether the audio function of the communication module under test is normal, thereby improving the testing efficiency for determining whether the audio of the communication module under test is normal. Attached Figure Description
[0016] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.
[0019] Figure 1 A flowchart of an audio function testing method for a communication module under test provided in this application embodiment; Figure 2 A schematic diagram illustrating the generation of a target digital signal for an audio function testing method for a communication module under test provided in this application embodiment; Figure 3 A schematic diagram illustrating the generation of a target digital signal for another audio function testing method for a communication module under test provided in this application embodiment; Figure 4 A flowchart of another audio function testing method for a communication module under test provided in this application embodiment; Figure 5 A system block diagram of an audio function testing system for a communication module under test provided in this application embodiment; Figure 6 A schematic diagram of the structure of an audio function testing device for a communication module under test provided in this application embodiment; Figure 7 This is a schematic diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0021] The following disclosure provides numerous different embodiments or examples for implementing various structures of the invention. To simplify the disclosure, specific examples of components and arrangements are described below. These are merely examples and are not intended to limit the scope of the invention. Furthermore, reference numerals and / or letters may be repeated in different examples. Such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed.
[0022] To address the technical problem of low efficiency in testing the audio function of communication modules under test in existing technologies, this application provides a method for testing the audio function of communication modules under test, which can improve the testing efficiency of determining whether the audio of the communication module under test is normal.
[0023] Figure 1 This is a flowchart illustrating a method for testing the audio function of a communication module under test, as provided in an embodiment of this application. Figure 1 As shown, the audio function test method for the above-mentioned communication module under test includes: S102, convert the obtained sine wave signal generated by the sine wave circuit into a first digital signal; S104, call the digital signal processing interface of the digital signal processor in the communication module under test, and convert the first digital signal into a data file through the digital signal processor; S106, call the control interface of the application in the communication module under test, initiate control commands through the application, write the data file back to the digital signal processor, and obtain the target digital signal; S108 determines whether the audio function of the communication module under test is normal by collecting the signal voltage value of the target digital signal.
[0024] Optionally, this application can be applied to the testing of the audio function of the communication module under test. The communication module under test can be a 4G / 5G communication module, which is an integrated hardware component that achieves high-speed wireless data transmission and network connectivity by loading hardware of a specific frequency band and running standard LTE / 5G protocol software.
[0025] To ensure the proper functioning of the audio function of the communication module under test, a sine wave signal can be used for testing in this example. During testing, a sine wave signal generated by a sine wave circuit is first acquired, and then encoded and decoded using a codec to obtain a first digital signal. The codec can include a digital-to-analog converter circuit and an analog-to-digital converter circuit. In this application, an analog-to-digital converter circuit can be used to perform an analog-to-digital conversion operation on the sine wave signal to obtain the first digital signal.
[0026] After obtaining the first digital signal, the digital signal processing interface of the digital signal processor (DSP) in the communication module under test (DUT) can be invoked to call the DSP's data processing function to process the first digital signal. The DSP can convert the first digital signal into a data file, which is in analog signal format. In other words, the DSP converts the first digital signal into an analog signal data file, which can be played by the application or external devices. In this application, after obtaining the analog signal data file, the control interface of the application in the DUT is invoked. The application initiates a control command to write the data file back to the DSP, that is, the analog signal data file is converted back into a digital signal. This digital signal is then named the target digital signal to distinguish it from the first digital signal.
[0027] For the target digital signal, the audio function of the communication module under test is checked by collecting its signal voltage value.
[0028] In the above process, the first digital signal is converted into a data file by the digital signal processor of the communication module under test (DUT), which can be regarded as a recording process, and the resulting data file can be regarded as a recording file. It is then converted into a target digital signal by the DUT, which can be regarded as a playback and recording process, i.e., playing the recording file and acquiring the digital signals within it to obtain the target digital signal. Thus, the first digital signal undergoes a loop of recording, playback, and digital signal acquisition within the DUT. If the audio function of the DUT is normal, the acquired target digital signal should be without problems. Therefore, the normality of the audio function of the DUT can be determined by acquiring the signal voltage value of the target digital signal.
[0029] Because the communication module under test converts the first digital signal into a data file and then into a target digital signal during the aforementioned process, if the target digital signal is abnormal, it cannot be determined whether the abnormality lies in the digital-to-analog conversion stage of the first digital signal or the analog-to-digital conversion stage of the data file. Therefore, after the communication module under test converts the first digital signal into a data file, the data file can be played through an application or software to check if it is normal. This method, based on the previous approach, can further determine whether the abnormality in the communication module under test lies in the digital-to-analog conversion stage or the analog-to-digital conversion stage.
[0030] Compared with the prior art, the above-mentioned technical solution provided in this application has the following advantages: The solution provided in this application converts the sine wave signal generated by the acquired sine wave circuit into a first digital signal; calls the digital signal processing interface of the digital signal processor in the communication module under test, and converts the first digital signal into a data file through the digital signal processor; calls the control interface of the application in the communication module under test, and initiates control commands through the application to write the data file back to the digital signal processor to obtain the target digital signal; by collecting the signal voltage value of the target digital signal, it is determined whether the audio function of the communication module under test is normal. Thus, the first digital signal can be obtained using the sine wave signal, the first digital signal is processed into a data file by the digital signal processor of the communication module under test, and then written back to the digital signal processor to obtain the target digital signal. This completes the process of recording the first digital signal into a data file and then playing it back as the target digital signal. By collecting the signal voltage value of the target digital signal, it is possible to determine whether the audio function of the communication module under test is normal, thereby improving the testing efficiency for determining whether the audio of the communication module under test is normal.
[0031] In this application, after acquiring the target digital signal, the signal voltage value of the target digital signal is collected and compared with a preset range to determine whether the communication module under test is normal. This process can be divided into several cases.
[0032] The first method of determining whether the audio function of the communication module under test is normal by collecting the signal voltage value of the target digital signal is as follows: when the signal voltage value of the target digital signal exceeds the preset range, the audio function of the communication module under test is determined to be abnormal; when the signal voltage value of the target digital signal is within the preset range, the audio function of the communication module under test is determined to be normal.
[0033] In this example, both the target digital signal and the first digital signal are single signals. The first digital signal is converted into a data file, which is then converted back into the target digital signal. No other conversion operations are performed on the data in between. Therefore, the signal voltage value of the target digital signal can be directly acquired and compared with a preset range.
[0034] The aforementioned preset range is a numerical range obtained by performing digital-to-analog conversion on the first digital signal to obtain a data file, and then performing analog-to-digital conversion on the data file to obtain the target digital signal. It represents the range of signal voltage values of the target digital signal output by a normal communication module. If the signal voltage value of the target digital signal output by the communication module under test is within this preset range, then the communication module under test is determined to be a normal communication module.
[0035] The second method, which determines whether the audio function of the communication module under test is normal by collecting the signal voltage value of the target digital signal, involves calculating the average signal voltage value of multiple second digital signals in the target digital signal; when the average signal voltage value exceeds a preset range, the audio function of the communication module under test is determined to be abnormal; when the average signal voltage value is within the preset range, the audio function of the communication module under test is determined to be normal.
[0036] In this example, the target digital signal includes multiple second digital signals; the target digital signal is a collective term for these multiple second digital signals. The reason for including multiple second digital signals in the target digital signal is explained below. After the first digital signal undergoes digital-to-analog conversion, a data file is obtained. During the process of converting the data file from analog to digital to obtain a digital signal, multiple second digital signals are generated. These multiple second digital signals may be the same or different. For each of the multiple second digital signals, a signal voltage value can be acquired. The average signal voltage value is obtained by averaging the signal voltage values of all the second digital signals. By comparing the average signal voltage value with a preset range, it is determined whether the communication module under test is functioning correctly.
[0037] In this case, if the audio function of the communication module under test is determined to be normal, another judgment can be made, that is, the signal voltage value of each second digital signal in the target digital signal is compared with the preset range; when the number of signal voltage values exceeding the preset range accounts for more than the preset percentage of N, the communication module under test is determined as a pending communication module. The pending communication module will be tested again with different sine wave signals.
[0038] In this example, if the average signal voltage values of all the second digital signals are calculated and fall within a preset range, then the audio function of the communication module under test can be determined to be normal. Alternatively, further judgment can be made by comparing the signal voltage value of each second digital signal to see if it falls within the preset range. The purpose of this further judgment is to check if a large number of second digital signals have signal voltage values falling within the preset range. If so, it means that the signal voltage values of most second digital signals meet the requirements. However, if, during further judgment, the number of second digital signals with signal voltage values falling within the preset range is small, representing only a small portion of all second digital signals, it means that the signal voltage values of most second digital signals do not meet the requirements, and only a small number of second digital signals do. In this case, the communication module under test can be determined as a pending communication module, requiring further testing or judgment to determine whether it is normal.
[0039] For communication modules under test (DUTs) or pending communication modules that fail the test, this application can acquire one or more sine wave signals with frequencies or peak values different from the sine wave signal; the acquired new sine wave signals are then used to test the audio function of the DUTs. If, after testing the DUTs or pending communication modules with the new sine wave signals, the DUTs or pending communication modules remain abnormal or pending, then they can be determined to be abnormal communication modules.
[0040] The reason why the target digital signal includes multiple second digital signals is due to the different processing operations in the process of calling the digital signal processing interface of the digital signal processor in the communication module under test, converting the first digital signal into a data file through the digital signal processor; and calling the control interface of the application in the communication module under test, initiating control commands through the application to write the data file back to the digital signal processor to obtain the target digital signal.
[0041] One approach involves determining a preset target number of read / write operations (N); calling the digital signal processing interface of the digital signal processor in the communication module under test (DST) to convert the first digital signal into a data file; calling the control interface of the application in the DST to initiate control commands and write the data file back to the DST, thus obtaining a second digital signal, which is considered one read / write operation; performing N read / write operations to obtain N second digital signals; and determining the N second digital signals as the target digital signal.
[0042] In this example, for the first digital signal, the first digital signal is converted into a data file, and then the data file is converted into a second digital signal. This operation is considered as one read / write operation. The number of read / write operations determines the number of second digital signals generated. In this example, a preset target number N can be determined, and then N second digital signals are generated. These N generated second digital signals are then identified as the target digital signal.
[0043] Another approach involves determining a preset target number of read / write operations (N); calling the digital signal processing interface of the digital signal processor in the communication module under test (DST) to convert the first digital signal into a data file; calling the control interface of the application in the DST to initiate control commands and write the data file back to the DST, obtaining the second digital signal as the first read / write operation; during the second to Nth read / write operations, the output of the previous read / write operation is used as the input of the next read / write operation, wherein the steps of the second to Nth read / write operations are the same as those of the first read / write operation; after completing N read / write operations, the second digital signal output from each read / write operation is determined as the target digital signal.
[0044] The difference between this example and the first example is that in this example, the first read / write operation uses the first digital signal as input, converts it into a data file, and then converts the data file into a second digital signal. Each subsequent read / write operation uses the output of the previous operation as the input for the next. After the first and subsequent N read / write operations, N second digital signals obtained from each operation are used as the target digital signal.
[0045] Two operating methods, such as Figure 2 and Figure 3 As shown. Figure 2 In this process, the first digital signal undergoes N read / write operations to obtain N data files, and each of the N data files is converted into a second digital signal. Figure 3 In this process, the output of the previous read / write operation is used as the input of the next read / write operation, resulting in N second digital signals.
[0046] Figure 4 This is a flowchart illustrating the testing process for the communication module under test according to this application. In this application, a sine wave circuit generates a 1kHz sine wave signal, which is then processed by an integrated circuit chip. The integrated circuit chip can be a codec chip. The sine wave signal is connected to the positive input pin of the codec chip's mic (mic) terminal, while the ADC (Analog-to-Digital) function pin of the communication module under test is connected to the SPK (Split-K) output pin of the codec chip. The block diagram is as follows: Figure 5As shown. After the system starts, it initializes the ADC function, initializes the codec chip, configures the codec chip to single-ended input mode, and registers the sound card. It then starts the audio test daemon to complete the initialization of the ADC interface, playback interface, and recording interface. The playback interface is the control interface used in the communication module under test mentioned above, and the recording interface is the digital signal processing interface mentioned above. When the test begins, the audio test daemon enters the application audio loopback mode (reading the first data signal from the sound card, converting it into a data file, writing the data file back to the sound card, and converting it into a second data signal). In loopback mode, 20 read / write operations are performed to obtain 20 second data signals. The signal voltage value of each second data signal is collected, and the average signal voltage value is calculated. If the average value is zero, the communication module under test is abnormal; if the average signal voltage value is between 100mV and 400mV, the communication module under test is considered normal, with an optimal value of approximately 300mV. The audio test daemon exits the loopback mode, and the audio test function ends.
[0047] Figure 6 This is a schematic diagram of the structure of an audio function testing device for a communication module under test provided in an embodiment of this application. Figure 6 As shown, the audio function testing device for the aforementioned communication module under test includes: The conversion module 602 is used to convert the acquired sine wave signal generated by the sine wave circuit into a first digital signal; The first calling module 604 is used to call the digital signal processing interface of the digital signal processor in the communication module under test, and convert the first digital signal into a data file through the digital signal processor; The second calling module 606 is used to call the control interface of the application in the communication module under test, initiate control commands through the application, write the data file back to the digital signal processor, and obtain the target digital signal. The determination module 608 is used to determine whether the audio function of the communication module under test is normal by acquiring the signal voltage value of the target digital signal.
[0048] To ensure the proper functioning of the audio function of the communication module under test, a sine wave signal can be used for testing in this example. During testing, a sine wave signal generated by a sine wave circuit is first acquired, and then encoded and decoded using a codec to obtain a first digital signal. The codec can include a digital-to-analog converter circuit and an analog-to-digital converter circuit. In this application, an analog-to-digital converter circuit can be used to perform an analog-to-digital conversion operation on the sine wave signal to obtain the first digital signal.
[0049] After obtaining the first digital signal, the digital signal processing interface of the digital signal processor (DSP) in the communication module under test (DUT) can be invoked to call the DSP's data processing function to process the first digital signal. The DSP can convert the first digital signal into a data file, which is in analog signal format. In other words, the DSP converts the first digital signal into an analog signal data file, which can be played by the application or external devices. In this application, after obtaining the analog signal data file, the control interface of the application in the DUT is invoked. The application initiates a control command to write the data file back to the DSP, that is, the analog signal data file is converted back into a digital signal. This digital signal is then named the target digital signal to distinguish it from the first digital signal.
[0050] For the target digital signal, the audio function of the communication module under test is checked by collecting its signal voltage value.
[0051] In the above process, the first digital signal is converted into a data file by the digital signal processor of the communication module under test (DUT), which can be regarded as a recording process, and the resulting data file can be regarded as a recording file. It is then converted into a target digital signal by the DUT, which can be regarded as a playback and recording process, i.e., playing the recording file and acquiring the digital signals within it to obtain the target digital signal. Thus, the first digital signal undergoes a loop of recording, playback, and digital signal acquisition within the DUT. If the audio function of the DUT is normal, the acquired target digital signal should be without problems. Therefore, the normality of the audio function of the DUT can be determined by acquiring the signal voltage value of the target digital signal.
[0052] Because the communication module under test converts the first digital signal into a data file and then into a target digital signal during the aforementioned process, if the target digital signal is abnormal, it cannot be determined whether the abnormality lies in the digital-to-analog conversion stage of the first digital signal or the analog-to-digital conversion stage of the data file. Therefore, after the communication module under test converts the first digital signal into a data file, the data file can be played through an application or software to check if it is normal. This method, based on the previous approach, can further determine whether the abnormality in the communication module under test lies in the digital-to-analog conversion stage or the analog-to-digital conversion stage.
[0053] Compared with the prior art, the above-mentioned technical solution provided in this application has the following advantages: The solution provided in this application converts the sine wave signal generated by the acquired sine wave circuit into a first digital signal; calls the digital signal processing interface of the digital signal processor in the communication module under test, and converts the first digital signal into a data file through the digital signal processor; calls the control interface of the application in the communication module under test, and initiates control commands through the application to write the data file back to the digital signal processor to obtain the target digital signal; by collecting the signal voltage value of the target digital signal, it is determined whether the audio function of the communication module under test is normal. Thus, the first digital signal can be obtained using the sine wave signal, the first digital signal is processed into a data file by the digital signal processor of the communication module under test, and then written back to the digital signal processor to obtain the target digital signal. This completes the process of recording the first digital signal into a data file and then playing it back as the target digital signal. By collecting the signal voltage value of the target digital signal, it is possible to determine whether the audio function of the communication module under test is normal, thereby improving the testing efficiency for determining whether the audio of the communication module under test is normal.
[0054] For other examples of this embodiment, please refer to the examples above, which will not be repeated here.
[0055] This application also provides an audio function testing system for a communication module under test, including: A sine wave circuit is used to generate sine wave signals. Communication module under test; An integrated circuit chip is used to convert the sinusoidal signal generated by the acquired sinusoidal circuit into a first digital signal; call the digital signal processing interface of the digital signal processor in the communication module under test, and convert the first digital signal into a data file through the digital signal processor; call the control interface of the application in the communication module under test, and write the data file back to the digital signal processor through the application to obtain the target digital signal; and determine whether the audio function of the communication module under test is normal by collecting the signal voltage value of the target digital signal.
[0056] To ensure the proper functioning of the audio function of the communication module under test, a sine wave signal can be used for testing in this example. During testing, a sine wave signal generated by a sine wave circuit is first acquired, and then encoded and decoded using a codec to obtain a first digital signal. The codec can include a digital-to-analog converter circuit and an analog-to-digital converter circuit. In this application, an analog-to-digital converter circuit can be used to perform an analog-to-digital conversion operation on the sine wave signal to obtain the first digital signal.
[0057] After obtaining the first digital signal, the digital signal processing interface of the digital signal processor (DSP) in the communication module under test (DUT) can be invoked to call the DSP's data processing function to process the first digital signal. The DSP can convert the first digital signal into a data file, which is in analog signal format. In other words, the DSP converts the first digital signal into an analog signal data file, which can be played by the application or external devices. In this application, after obtaining the analog signal data file, the control interface of the application in the DUT is invoked. The application initiates a control command to write the data file back to the DSP, that is, the analog signal data file is converted back into a digital signal. This digital signal is then named the target digital signal to distinguish it from the first digital signal.
[0058] For the target digital signal, the audio function of the communication module under test is checked by collecting its signal voltage value.
[0059] In the above process, the first digital signal is converted into a data file by the digital signal processor of the communication module under test (DUT), which can be regarded as a recording process, and the resulting data file can be regarded as a recording file. It is then converted into a target digital signal by the DUT, which can be regarded as a playback and recording process, i.e., playing the recording file and acquiring the digital signals within it to obtain the target digital signal. Thus, the first digital signal undergoes a loop of recording, playback, and digital signal acquisition within the DUT. If the audio function of the DUT is normal, the acquired target digital signal should be without problems. Therefore, the normality of the audio function of the DUT can be determined by acquiring the signal voltage value of the target digital signal.
[0060] Because the communication module under test converts the first digital signal into a data file and then into a target digital signal during the aforementioned process, if the target digital signal is abnormal, it cannot be determined whether the abnormality lies in the digital-to-analog conversion stage of the first digital signal or the analog-to-digital conversion stage of the data file. Therefore, after the communication module under test converts the first digital signal into a data file, the data file can be played through an application or software to check if it is normal. This method, based on the previous approach, can further determine whether the abnormality in the communication module under test lies in the digital-to-analog conversion stage or the analog-to-digital conversion stage.
[0061] Compared with the prior art, the above-mentioned technical solution provided in this application has the following advantages: The solution provided in this application converts the sine wave signal generated by the acquired sine wave circuit into a first digital signal; calls the digital signal processing interface of the digital signal processor in the communication module under test, and converts the first digital signal into a data file through the digital signal processor; calls the control interface of the application in the communication module under test, and initiates control commands through the application to write the data file back to the digital signal processor to obtain the target digital signal; by collecting the signal voltage value of the target digital signal, it is determined whether the audio function of the communication module under test is normal. Thus, the first digital signal can be obtained using the sine wave signal, the first digital signal is processed into a data file by the digital signal processor of the communication module under test, and then written back to the digital signal processor to obtain the target digital signal. This completes the process of recording the first digital signal into a data file and then playing it back as the target digital signal. By collecting the signal voltage value of the target digital signal, it is possible to determine whether the audio function of the communication module under test is normal, thereby improving the testing efficiency for determining whether the audio of the communication module under test is normal.
[0062] For other examples of this embodiment, please refer to the examples above, which will not be repeated here.
[0063] like Figure 7 As shown in the figure, this application provides an electronic device, including a processor 111, a communication interface 112, a memory 113, and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114. Memory 113 is used to store computer programs; In one embodiment of this application, the processor 111, when executing the program stored in the memory 113, implements the audio function testing method for the communication module under test provided in any of the foregoing method embodiments.
[0064] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the audio function testing method for the communication module under test as provided in any of the foregoing method embodiments.
[0065] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0066] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented using software plus a general-purpose hardware platform, or of course, using hardware. Based on this understanding, the above technical solutions, in essence or the parts that contribute to the related technology, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0067] It should be understood that the terminology used herein is for the purpose of describing particular exemplary embodiments only and is not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms “a,” “an,” and “described” as used herein may also include the plural forms. The terms “comprising,” “including,” “containing,” and “having” are inclusive and therefore indicate the presence of the stated features, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, elements, components, and / or combinations thereof. The method steps, processes, and operations described herein are not construed as requiring them to be performed in a particular order described or illustrated unless the order of performance is explicitly indicated. It should also be understood that additional or alternative steps may be used.
[0068] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for testing the audio function of a communication module under test, characterized in that, include: The sinusoidal signal generated by the acquired sinusoidal circuit is converted into a first digital signal; The digital signal processing interface of the digital signal processor in the communication module under test is invoked to convert the first digital signal into a data file through the digital signal processor. The control interface of the application in the communication module under test is invoked, and the control command is initiated through the application to write the data file back to the digital signal processor to obtain the target digital signal; By collecting the signal voltage value of the target digital signal, it is determined whether the audio function of the communication module under test is normal.
2. The method according to claim 1, characterized in that, The digital signal processing interface of the digital signal processor in the communication module under test is invoked to convert the first digital signal into a data file; the control interface of the application in the communication module under test is invoked to initiate control commands through the application to write the data file back to the digital signal processor, thereby obtaining the target digital signal, including: Determine the preset target number of times N; The digital signal processing interface of the digital signal processor in the communication module under test is called to convert the first digital signal into a data file through the digital signal processor; the control interface of the application in the communication module under test is called to initiate a control command through the application to write the data file back to the digital signal processor, and the resulting second digital signal is regarded as a read-write operation; Perform the read / write operation N times to obtain N second digital signals; The N second digital signals are determined as the target digital signal.
3. The method according to claim 1, characterized in that, The digital signal processing interface of the digital signal processor in the communication module under test is invoked to convert the first digital signal into a data file; the control interface of the application in the communication module under test is invoked to initiate control commands through the application to write the data file back to the digital signal processor, thereby obtaining the target digital signal, including: Determine the preset target number of times N; The digital signal processing interface of the digital signal processor in the communication module under test is called to convert the first digital signal into a data file through the digital signal processor; the control interface of the application in the communication module under test is called to initiate a control command through the application to write the data file back to the digital signal processor, and the resulting second digital signal is regarded as the first read and write operation. When performing the second to Nth read / write operations, the output of the previous read / write operation is used as the input of the next read / write operation. The steps of the second to Nth read / write operations are the same as those of the first read / write operation. After performing N read and write operations, the second digital signal output by each read and write operation is determined as the target digital signal.
4. The method according to claim 2 or 3, characterized in that, Determining whether the audio function of the communication module under test is normal by collecting the signal voltage value of the target digital signal includes: Calculate the average signal voltage value of the plurality of second digital signals in the target digital signal; When the average signal voltage value exceeds a preset range, it is determined that the audio function of the communication module under test is abnormal. When the average signal voltage value is within the preset range, the audio function of the communication module under test is determined to be normal.
5. The method according to claim 4, characterized in that, After confirming that the audio function of the communication module under test is normal, the method further includes: The signal voltage value of each of the second digital signals in the target digital signal is compared with a preset range; When the number of signal voltage values exceeding the preset range accounts for a greater than preset percentage of N, the communication module under test is identified as a pending communication module. The pending communication module will then be tested again with different sine wave signals.
6. The method according to claim 1, characterized in that, After determining whether the audio function of the communication module under test is normal by acquiring the signal voltage value of the target digital signal, the method further includes: When the audio function is abnormal, acquire one or more sine wave signals with frequencies or peak values different from the sine wave signal; The audio function of the communication module under test is tested using the acquired new sine wave signal.
7. The method according to claim 1, characterized in that, Determining whether the audio function of the communication module under test is normal by collecting the signal voltage value of the target digital signal includes: When the signal voltage value of the target digital signal exceeds a preset range, it is determined that the audio function of the communication module under test is abnormal. When the signal voltage value of the target digital signal is within the preset range, it is determined that the audio function of the communication module under test is normal.
8. A testing device for the audio function of a communication module under test, characterized in that, include: The conversion module is used to convert the sinusoidal signal generated by the acquired sinusoidal circuit into a first digital signal; The first calling module is used to call the digital signal processing interface of the digital signal processor in the communication module under test, and convert the first digital signal into a data file through the digital signal processor. The second calling module is used to call the control interface of the application in the communication module under test, and initiate control commands through the application to write the data file back to the digital signal processor to obtain the target digital signal; The determination module is used to determine whether the audio function of the communication module under test is normal by collecting the signal voltage value of the target digital signal.
9. A test system for the audio function of a communication module under test, characterized in that, include: A sine wave circuit is used to generate sine wave signals. The communication module under test; An integrated circuit chip is used to convert the acquired sine wave signal generated by the sine wave circuit into a first digital signal; and to call the digital signal processing interface of the digital signal processor in the communication module under test to convert the first digital signal into a data file through the digital signal processor. The control interface of the application in the communication module under test is invoked, and the control command is initiated through the application to write the data file back to the digital signal processor to obtain the target digital signal; By collecting the signal voltage value of the target digital signal, it is determined whether the audio function of the communication module under test is normal.
10. An electronic device, characterized in that, include: At least one communication interface; At least one bus connected to the at least one communication interface; At least one processor connected to the at least one bus; At least one memory connected to the at least one bus, wherein the memory stores a computer program, and the processor executes the computer program to implement the audio function test method for the communication module under test as described in any one of claims 1 to 7.