Audio test system, method and equipment and computer readable storage medium
By designing an audio testing system including a vehicle network terminal, a test board and a computer, the existing T-BOX audio testing method relies on manual operation, achieving more efficient and accurate audio testing, and reducing testing costs.
Patent Information
- Application Number
- CN202510329287.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-18
- Publication Date
- 2025-06-20
AI Technical Summary
The existing T-BOX audio testing methods rely on manual operations, with complex testing processes, expensive equipment, inefficient testing, and prone to human errors.
Design an audio testing system, including a vehicle network terminal, a test board and a computer. The test board includes an MCU module, an analog audio signal generation module and an audio signal acquisition module. The Internet of Vehicles terminal includes a MIC circuit module, a Codec processing module, a SOC module, a LINE-OUT circuit module and an eMMC storage module. The system receives test instructions through an automated process, generates and processes audio signals, and counts the output signals to determine the test results.
It improves the degree of automation of audio testing, improves testing accuracy and efficiency, reduces testing costs, and reduces human error.
Smart Images

Figure CN120186543A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of in-vehicle electronic technologies, and particularly to an audio test system, method, device, and computer-readable storage medium. Background Art
[0002] In the prior art, with the continuous evolution of vehicle intelligence and networking, the T-BOX (Telematics Box, in-vehicle networking terminal) plays a crucial role in vehicle-to-external network communication and various in-vehicle data interactions. Among them, the audio function is particularly important, and functions such as voice calls and voice control all belong to the category of audio functions.
[0003] In the production test process of the T-BOX, it is extremely crucial to accurately and efficiently test the audio function. In view of the current technical situation, the T-BOX audio test method often relies on manual operation, which has many drawbacks. For example, the test process is complicated, the test equipment is expensive, the test efficiency is low, and at the same time, human errors are prone to occur.
[0004] Therefore, it is very necessary to develop an efficient audio test solution. Summary of the Invention
[0005] In order to overcome the deficiencies in the prior art, the purpose of the present invention is to provide an audio test system, method, device, and computer-readable storage medium to solve the problems that the current T-BOX audio test method often relies on manual operation, the test process is complicated, the test equipment is expensive, the test efficiency is low, and at the same time, human errors are prone to occur.
[0006] The present invention proposes an audio test system, which includes an in-vehicle networking terminal, a test board and a host computer respectively connected to the in-vehicle networking terminal. The test board includes an MCU module, an analog audio signal generation module and an audio signal acquisition module respectively connected to the MCU module. The in-vehicle networking terminal includes a MIC circuit module, a Codec processing module connected to the MIC circuit, a SOC module connected to the Codec processing module, a LINE-OUT circuit module, and an eMMC storage module connected to the SOC module; wherein:
[0007] The in-vehicle networking terminal is configured to receive the audio signal sent by the test board, process the audio signal, and then play and output it again;
[0008] The test board is configured to count the output signals of the in-vehicle networking terminal within a preset period, and the number of output signals obtained through loopback testing;
[0009] The host computer is used to send test instructions to the vehicle networking terminal and collect test results from the test board.
[0010] Optionally, the analog audio signal generation module is used to convert the PWM pulse width modulation wave with a preset frequency sent by the MCU module into an analog audio signal with the same frequency, and the analog audio signal is transmitted to the MIC circuit module;
[0011] The MCU module is used to send the PWM wave to the analog audio signal generation module and receive the digital pulse signal sent by the audio signal acquisition module;
[0012] The audio signal acquisition module is used to receive the audio signal output by the LINE_OUT circuit module, convert the audio signal into a digital pulse signal, and then input it into the MCU module.
[0013] Optionally, the MIC circuit module is used to collect the analog audio signal output by the audio signal generation module, condition the analog audio signal, and then send it to the Codec processing module;
[0014] The Codec processing module is used to perform quantization and encoding operations on the analog audio signal sent by the MIC circuit module, convert it into a digital signal, and then transmit the digital signal to the SOC module through the I2S interface. And, in the voice output link, it is also used to decode the digital signal input by the SOC module through the I2S interface, convert it into an analog signal, and then send the analog signal to the LINE-OUT circuit module;
[0015] The SOC module is used to receive the digital signal sent by the Codec processing module, store the digital signal in the eMMC storage module, and, in the voice output link, it is also used to retrieve the stored digital signal from the eMMC storage module and send the digital signal to the Codec processing module;
[0016] The eMMC storage module is used to store the digital signal sent by the SOC module;
[0017] The LINE-OUT circuit module is used to perform the playback output of the audio signal. Among them, the LINE-OUT circuit module receives the analog audio signal decoded by the Codec processing module, and after being conditioned by the LINE-OUT circuit module, it is sent to the audio signal acquisition module through a cable.
[0018] Optionally, the host computer is connected to the vehicle networking terminal via USB, and the vehicle networking terminal is connected to the test board via a UART serial port;
[0019] The test instruction is generated by the host computer and transmitted to the SOC module of the vehicle networking terminal via the USB, or after passing through the SOC module, it is transmitted to the MCU module of the test board via the UART serial port.
[0020] The present invention also proposes an audio test method, which is applied to a test board. The test board is connected to a vehicle networking terminal, and the vehicle networking terminal is connected to a host computer. The method includes:
[0021] Receiving a test instruction generated by the host computer and sent by the vehicle networking terminal, generating a first PWM wave with a preset frequency according to the test instruction, and converting the first PWM wave into an analog audio signal;
[0022] Sending the analog audio signal to the vehicle networking terminal so that the vehicle networking terminal processes the analog audio signal and then plays it out again;
[0023] Collecting the audio signal played out by the vehicle networking terminal and converting the audio signal into a second PWM wave;
[0024] Counting the converted second PWM wave and comparing it with the number of the first PWM waves. Among them, if the error in the comparison is within a preset range, it is determined that the vehicle networking terminal passes the audio test; otherwise, it is determined that the audio test fails.
[0025] The present invention also proposes an audio test method, which is applied to a vehicle networking terminal. The vehicle networking terminal is respectively connected to a test board and a host computer. The method includes:
[0026] Receiving a recording instruction sent by the host computer and receiving the analog audio signal sent by the test board according to the recording instruction;
[0027] Converting the analog audio signal into a digital audio signal and storing it;
[0028] Receiving a play instruction sent by the host computer, extracting the stored digital audio signal according to the play instruction, and converting it into an analog audio signal for output;
[0029] If the playback is successful, a playback success flag is sent back to the host computer; otherwise, an error message is sent back to the host computer.
[0030] The present invention also provides an audio testing method, which is applied to a host computer. The host computer is connected to a vehicle networking terminal, and the vehicle networking terminal is connected to a test board. The method includes:
[0031] Sending an audio output instruction to the test board via the vehicle networking terminal, and receiving an output success flag returned by the vehicle networking terminal after the test board successfully executes the audio output instruction;
[0032] Sending an audio recording instruction to the vehicle networking terminal, and receiving a recording success flag returned after the vehicle networking terminal successfully records audio;
[0033] Sending an audio playback instruction to the vehicle networking terminal, and receiving a playback success flag returned after the vehicle networking terminal successfully plays audio;
[0034] Sending an audio testing instruction to the test board via the vehicle networking terminal, receiving a test result returned by the vehicle networking terminal after the test board successfully executes the audio testing instruction, and judging and outputting the test result.
[0035] Optionally, after judging whether the test result is successful, it includes:
[0036] Sending an audio stop output instruction to the vehicle networking terminal, so that the vehicle networking terminal returns a deletion success flag after deleting the stored audio data.
[0037] The present invention also provides an audio testing device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the audio testing system described in any one of the above.
[0038] The present invention also provides a computer-readable storage medium, on which an audio testing program is stored. When the audio testing program is executed by a processor, it implements the steps of the audio testing system described in any one of the above.
[0039] Implementing the audio test system, method, device and computer-readable storage medium of the present invention, by proposing an audio test system, which includes a vehicle networking terminal, a test board and a host computer respectively connected to the vehicle networking terminal. The test board includes an MCU module, an analog audio signal generation module and an audio signal acquisition module respectively connected to the MCU module. The vehicle networking terminal includes a MIC circuit module, a Codec processing module connected to the MIC circuit, an SOC module connected to the Codec processing module, a LINE-OUT circuit module, and an eMMC storage module connected to the SOC module; wherein: the vehicle networking terminal is used to receive the audio signal sent by the test board, process the audio signal, and then play and output it again; the test board is used to count the output signals of the vehicle networking terminal within a preset period and the number of output signals obtained through loopback testing; the host computer is used to send test instructions to the vehicle networking terminal and collect test results from the test board. An audio test solution for vehicle networking terminals with a higher degree of automation is realized, improving the test accuracy and test efficiency and reducing the test cost. Description of the Drawings
[0040] The present invention will be further described below in conjunction with the drawings and embodiments. In the drawings:
[0041] Figure 1 is a block diagram of the audio test system of the present invention;
[0042] Figure 2 is a circuit diagram of the audio test system of the present invention;
[0043] Figure 3 is the first flowchart of the audio test method of the present invention;
[0044] Figure 4 is the second flowchart of the audio test method of the present invention;
[0045] Figure 5 is the third flowchart of the audio test method of the present invention. Detailed Embodiments
[0046] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0047] In the following description, suffixes such as "module", "component" or "unit" used to represent elements are only for the convenience of describing the present invention and have no specific meaning in themselves. Therefore, "module", "component" or "unit" can be used interchangeably.
[0048] Figure 1It is the block diagram of the first module of the audio test system of the present invention. This embodiment proposes an audio test system, which includes a vehicle networking terminal 20, a test board 10 and a host computer 30 that are respectively connected to the vehicle networking terminal 20. The test board 10 includes an MCU module 102, an analog audio signal generation module 101 and an audio signal acquisition module 103 that are respectively connected to the MCU module 102. The vehicle networking terminal 20 includes a MIC circuit module 201, a Codec processing module 202 connected to the MIC circuit module 201, a SOC module 203 connected to the Codec processing module 202, a LINE-OUT circuit module 205, and an eMMC storage module 204 connected to the SOC module 203; wherein:
[0049] The vehicle networking terminal 20 is configured to receive the audio signal sent by the test board 10, process the audio signal, and then play and output it again;
[0050] The test board 10 is configured to count the output signals of the vehicle networking terminal 20 within a preset period and the number of output signals obtained through loopback testing;
[0051] The host computer 30 is configured to send a test instruction to the vehicle networking terminal 20 and collect a test result from the test board 10.
[0052] In this embodiment, the vehicle networking terminal 20 is the T-BOX, the test board 10 is the Bench board, and the host computer 30 is a PC. Specifically, with the help of the analog audio generation and test circuits designed inside the Bench board, the loopback test work is carried out. That is, after the relevant audio circuits in the T-BOX receive the audio signal, the audio signal is processed and then played and output again. The Bench board counts the number of output signals within a specific period and the number of signals measured after loopback. If the error range of the comparison between the two is within the given interval, it is determined that the audio module test is successful.
[0053] Specifically, during the operation of the above system: The MCU module 102 first generates a PWM wave with a specific frequency and transmits it to the analog audio signal generation module 101; the analog audio signal generation module 101 converts the received PWM wave into an analog audio signal and then inputs it to the MIC_IN interface of the T-BOX; after receiving the analog audio signal, the T-BOX converts it into a digital signal with the help of the Codec codec chip, and then the SOC module 203 stores it in the eMMC module; when the T-BOX receives a play instruction, the SOC module 203 retrieves the digital audio signal from the eMMC module, converts it through the Codec processing module 202, and outputs it to the audio signal acquisition module 103 through the LINE_OUT interface; the audio signal acquisition module 103 converts the captured audio signal into a PWM wave again and transmits it to the MCU module 102; the MCU module 102 counts the received PWM signal and compares it with the number of initially transmitted PWM waves. If the error is within the preset range, it is determined that the audio module test is qualified; after the test passes, the MCU module 102 issues an instruction to delete the test data stored in the eMMC module, which marks the end of the test process.
[0054] It can be seen that in this embodiment, through the coordinated operation of each functional unit, the audio function of the T-BOX can be accurately tested. Compared with the traditional test equipment with complex structure and high cost, this test scheme adopts a modular design concept, effectively reducing the hardware cost.
[0055] The beneficial effect of this embodiment is that by proposing an audio test system, the system includes a vehicle networking terminal 20, a test board 10 and a host computer 30 respectively connected to the vehicle networking terminal 20. The test board 10 includes an MCU module 102, an analog audio signal generation module 101 and an audio signal acquisition module 103 respectively connected to the MCU module 102. The vehicle networking terminal 20 includes a MIC circuit module 201, a Codec processing module 202 connected to the MIC circuit, an SOC module 203 connected to the Codec processing module 202, a LINE-OUT circuit module 205 and an eMMC storage module 204 connected to the SOC module 203. Among them: The vehicle networking terminal 20 is used to receive the audio signal sent by the test board 10, process the audio signal, and then play and output it again; the test board 10 is used to count the output signals of the vehicle networking terminal 20 within a preset period and the number of output signals obtained through the loopback test; the host computer 30 is used to send a test instruction to the vehicle networking terminal 20 and collect the test result from the test board 10. An audio test scheme for the vehicle networking terminal 20 with a higher degree of automation is realized, improving the test accuracy and test efficiency and reducing the test cost.
[0056] In this embodiment, the analog audio signal generation module 101 is configured to convert the PWM pulse width modulation wave with a preset frequency sent by the MCU module 102 into an analog audio signal with the same frequency, and the analog audio signal is transmitted to the MIC circuit module 201;
[0057] The MCU module 102 is configured to send the PWM wave to the analog audio signal generation module 101 and receive the digital pulse signal sent by the audio signal acquisition module 103;
[0058] The audio signal acquisition module 103 is configured to receive the audio signal output by the LINE_OUT circuit module, convert the audio signal into a digital pulse signal, and then input it to the MCU module 102.
[0059] In this embodiment, the Bench board is mainly designed to verify whether the functions of each module of the T-BOX meet the requirements; optionally, the audio test circuit is integrated inside the Bench board; the audio test circuit mainly consists of three parts, namely, the analog audio generation module, the MCU module 102 connected to the analog audio generation module, and the audio signal acquisition module 103 connected to the MCU module 102, specifically as follows: The analog audio signal generation module 101 in the Bench board is configured to convert the PWM wave with a specific frequency sent by the MCU module 102 into an analog audio signal with the same frequency, and the analog audio signal can be presented in the form of a sine wave, and this signal will be transmitted to the audio signal input interface MIC_IN of the T-BOX; The MCU module 102 in the Bench board, as the main controller of the Bench test board 10, undertakes the key tasks of sending the PWM wave to the analog audio signal generation module 101 and receiving the signal collected by the audio signal acquisition module 103 in the audio test circuit. The audio signal acquisition module 103 in the Bench board is responsible for receiving the signal output by the audio playback output interface LINE_OUT of the T-BOX, converting the audio signal into a digital pulse signal, and then inputting it to the MCU module 102.
[0060] In this embodiment, the MIC circuit module 201 is configured to collect the analog audio signal output by the audio signal generation module, condition the analog audio signal, and then send it to the Codec processing module 202;
[0061] The Codec processing module 202 is configured to perform quantization and encoding operations on the analog audio signal sent by the MIC circuit module 201, convert it into a digital signal, and then transmit the digital signal to the SOC module 203 through the I2S interface. Also, in the voice output process, it is further configured to perform decoding processing on the digital signal input by the SOC module 203 through the I2S interface, convert it into an analog signal, and then send the analog signal to the LINE-OUT circuit module;
[0062] The SOC module 203 is configured to receive the digital signal sent by the Codec processing module 202, store the digital signal in the eMMC storage module 204, and also, in the voice output process, retrieve the stored digital signal from the eMMC storage module 204 and send the digital signal to the Codec processing module 202;
[0063] The eMMC storage module 204 is configured to store the digital signal sent by the SOC module 203;
[0064] The LINE-OUT circuit module is configured to perform playback output of the audio signal. Specifically, the LINE-OUT circuit module receives the analog audio signal decoded by the Codec processing module 202, and after conditioning by the LINE-OUT circuit module, it is sent to the audio signal acquisition module 103 through a cable.
[0065] In this embodiment, the T-BOX 20 is the device to be tested; the audio-related circuit modules for testing are integrated inside the T-BOX; the audio-related circuit mainly consists of five parts, namely the MIC circuit module 201, the Codec processing module 202 connected to the MIC circuit, the SOC module 203 connected to the Codec processing module 202, the LINE-OUT circuit module, and the eMMC storage module 204 connected to the SOC module 203, as follows: The MIC circuit module 201 is mainly used for the input, acquisition, and conditioning of audio signals in this embodiment. The MIC circuit module 201 is connected to the audio signal generation module of the Bench board through a cable and acquires the analog audio signal output by the audio signal generation module. After being conditioned, this signal is sent to the Codec processing module 202 for subsequent processing; The Codec processing module 202 is used to perform quantization and encoding operations on the analog audio signal input by the MIC circuit module 201 during the voice recording link in this embodiment, and then convert it into a digital signal. Subsequently, this digital signal is transmitted to the SOC module 203 through the I2S interface. At the same time, during the voice output link in this embodiment, it is also used to decode the digital signal input by the SOC module 203 through the I2S interface, convert it into an analog signal, and then send this analog signal to the LINE-OUT circuit module; The SOC module 203 is mainly used to receive the digital signal transmitted by the Codec processing module 202 and store it in the eMMC storage module 204 in this embodiment. At the same time, the SOC module 203 has the function of retrieving the digital signal stored in the eMMC storage module 204 and sending it to the Codec processing module 202. The eMMC storage module 204 mainly undertakes the responsibility of storing the digital signal transmitted by the SOC module 203 in this embodiment; The LINE-OUT circuit module is used for the playback output of audio signals in this embodiment. Among them, the analog audio signal after being decoded by the Codec is conditioned by the LINE-OUT circuit module and then transmitted to the audio signal acquisition module 103 of the Bench board through a cable. Among them, the PC is the host computer 30 in this embodiment. The PC runs specific client software, and this client software drives the development of the T-BOX audio test work through instructions.
[0066] In this embodiment, the host computer 30 is connected to the vehicle networking terminal 20 via USB, and the vehicle networking terminal 20 is connected to the test board 10 via a UART serial port. The test instruction is generated by the host computer 30 and transmitted via USB to the SOC module 203 of the vehicle networking terminal 20, or after passing through the SOC module 203, it is transmitted via the UART (Universal Asynchronous Receiver / Transmitter) serial port to the MCU module 102 of the test board 10.
[0067] Please refer to Figure 2 , in this embodiment, the analog audio signal generation module 101 is located on the Bench board and is composed of resistors R6, R7, capacitors C2, C3, C4, and operational amplifier U1. Among them, resistors R6, R7, capacitors C2, C3, and operational amplifier U1 together form a second-order low-pass filter, whose function is to filter out the high-frequency components in the PWM wave sent by the MCU and convert it into a sine wave output. Capacitor C4 is used for signal coupling and then transmits the signal to the MIC_IN interface of the T-BOX; the MCU module 102 on the Bench board is composed of the MCU and its peripheral circuits and, as the core part of the Bench board, is responsible for controlling the reception of signals and the issuance of instructions, as well as the generation and processing of waveforms. In this embodiment, the MCU module 102 receives the instructions from the T-BOX via the serial port and makes corresponding responses; at the same time, it generates a PWM waveform according to the instructions and tests the converted audio signal; the audio signal acquisition module 103 on the Bench board is composed of resistors R1, R2, R3, R4, R5, capacitor C1, and voltage comparator U2. Among them, resistors R1, R2, R3, R4, and voltage comparator U2 form a voltage comparison circuit. By adjusting the resistance values of R1 and R2, it is ensured that the overall voltage of the audio signal waveform sent by the T-BOX via LINE_OUT is greater than 0V after being coupled by C1, so as to reach the non-inverting input voltage V+ of PIN3 of the voltage comparator U2; by adjusting the resistance values of R3 and R4 to divide the voltage of VCC, the reference voltage V- of the inverting input terminal PIN2 of the voltage comparator U2 is obtained, and then the voltage magnitudes of V+ and V- are compared. When V+>V-, the voltage comparator outputs a high level; when V+<V-, it outputs a low level. In this way, the voltage comparator outputs a pulse signal.
[0068] In this embodiment, the T-BOX is the device under test. The MIC_IN interface of the T-BOX is connected to the analog audio signal output interface of the Bench board, and the LINE_OUT interface of the T-BOX is connected to the audio signal input acquisition interface of the Bench board.
[0069] In this embodiment, the frequency of the audio signal usually lies in the range of 20 Hz - 20 kHz, which is the audio frequency range recognizable by the human ear. The MCU module 102 generates a PWM wave within this frequency range, such as 1 kHz, which means 1000 pulses are generated per second. This PWM wave is converted into a 1 kHz audio signal by the analog audio signal generation module 101. Subsequently, this 1 kHz audio signal is quantized and encoded by the Codec of the T-BOX and stored in the eMMC. Then, this audio signal is broadcast via an instruction, decoded by the Codec of the T-BOX, output through LINE-OUT, and finally converted into a pulse signal by the audio signal acquisition module 103. If the error between the frequency of the PWM wave generated by the MCU and the number of pulse signals collected by the MCU is within a given range, for example, the error is less than 1%, it is determined that the audio module of the T-BOX passes the test.
[0070] Please refer to Figure 3 , the present invention also proposes an audio test method, which is applied to a test board. The test board is connected to a vehicle networking terminal, and the vehicle networking terminal is connected to a host computer. The method includes:
[0071] S101. Receive a test instruction generated by the host computer and sent by the vehicle networking terminal, generate a first PWM wave with a preset frequency according to the test instruction, and convert the first PWM wave into an analog audio signal;
[0072] S102. Send the analog audio signal to the vehicle networking terminal so that the vehicle networking terminal processes the analog audio signal and then plays it out again;
[0073] S103. Collect the audio signal played out by the vehicle networking terminal and convert the audio signal into a second PWM wave;
[0074] S104. Statistically analyze the converted second PWM wave and compare it with the number of the first PWM wave. Among them, if the error in the comparison is within a preset range, it is determined that the vehicle networking terminal passes the audio test; otherwise, it is determined that the audio test fails.
[0075] In this embodiment, the PC client software issues an audio test instruction to the T-BOX via USB. After receiving the audio test instruction, the T-BOX sends an analog audio test instruction to the Bench board through the UART interface. After receiving the test instruction, the MCU module of the Bench board counts the number of pulse signals output by the audio signal test module within a certain period. If the number of pulses within the tested certain period and the output frequency of the MCU module are within the error range, a success flag is returned; otherwise, an error message is returned.
[0076] In this embodiment, the PC issues an audio instruction to the T-BOX of the test system through the client software. At this time, the audio signal acquisition module in the Bench board receives the audio signal output from the LINE_OUT interface, and after processing, it is input to the MCU module. The MCU compares the frequency error between the emitted analog audio signal and the received audio signal. For example, the MCU emits a 1kHz square wave, that is, 1000 pulses are emitted per second. If the number of pulse signals received by the MCU per second is between 990 and 1010, and the error range is within 1%, it indicates that the T-BOX audio module test is successful, and an OK flag is returned to the PC client software; otherwise, ERROR is returned.
[0077] Please refer to Figure 4 , the present invention also proposes an audio test method, which is applied to an Internet of Vehicles terminal. The Internet of Vehicles terminal is respectively connected to a test board and a host computer. The method includes:
[0078] S201. Receive a recording instruction sent by the host computer, and receive an analog audio signal sent by the test board according to the recording instruction;
[0079] S202. Convert the analog audio signal into a digital audio signal and store it;
[0080] S203. Receive a playback instruction sent by the host computer, extract the stored digital audio signal according to the playback instruction, and convert it into an analog audio signal for output;
[0081] S204. If the playback is successful, transmit a playback success flag to the host computer; otherwise, transmit an error message to the host computer.
[0082] In this embodiment, the PC client software issues an audio recording instruction to the T-BOX through USB; after the T-BOX receives the recording instruction, the Codec sends the parsed digital signal to the SOC module through the I2S interface, and the SOC module then stores the data in the eMMC storage module; after the recording is successful, a recording success flag is transmitted back. If the recording is not successful, an error message is transmitted back and the user is informed through the PC client software.
[0083] In this embodiment, the PC client software issues an instruction to the T-BOX of the test system. The audio module of the T-BOX uses the MIC_IN interface to collect an analog audio signal, and converts the analog signal into a digital signal through the Codec and stores it in the eMMC module. If the execution is successful, the T-BOX returns an OK flag to the PC client software; otherwise, ERROR is returned.
[0084] Please refer to Figure 5, the present invention also provides an audio testing method, which is applied to a host computer. The host computer is connected to a vehicle networking terminal, and the vehicle networking terminal is connected to a test board. The method includes:
[0085] S301. Send an audio output instruction to the test board via the vehicle networking terminal, and receive an output success flag returned by the vehicle networking terminal after the test board successfully executes the audio output instruction;
[0086] S302. Send an audio recording instruction to the vehicle networking terminal, and receive a recording success flag returned by the vehicle networking terminal after successful audio recording;
[0087] S303. Send an audio playback instruction to the vehicle networking terminal, and receive a playback success flag returned by the vehicle networking terminal after successful audio playback;
[0088] S304. Send an audio testing instruction to the test board via the vehicle networking terminal, receive a test result returned by the vehicle networking terminal after the test board successfully executes the audio testing instruction, and judge and output the test result.
[0089] In this embodiment, the PC client software sends an audio output instruction to the Bench board. After the Bench board successfully executes the instruction, it returns an output success flag to the PC; the PC client software sends an audio recording instruction to the T-BOX. After the T-BOX successfully records the audio, it returns a recording success flag to the PC; the PC client software sends an audio playback instruction to the T-BOX. After the T-BOX successfully plays the audio, it returns a playback success flag to the PC; the PC client software sends an audio testing instruction to the Bench board. After the Bench board successfully executes the instruction, it returns a test result to the PC and judges whether the result is successful; the PC client software sends an audio stop output instruction to the T-BOX and deletes the audio data stored in the eMMC. After successful execution, it returns a success flag.
[0090] In this embodiment, the PC client software sends a request instruction for sending an analog audio signal to the T-BOX via the USB interface; after receiving the analog audio sending instruction, the T-BOX sends an analog audio output instruction to the Bench board via the UART interface; after successfully receiving the instruction, the Bench board returns a receive success flag. If not successful, it returns an error message and notifies the user through the PC client software; the Bench board outputs an analog audio signal with a specific frequency, and the signal is input to the Codec chip through the MIC_IN interface of the T-BOX for parsing, and the parsed signal is a digital signal.
[0091] In this embodiment, the PC issues an instruction to the T-BOX of the test system through the client software, and then issues an instruction to the Bench board to generate a simulated audio signal. If the generation is successful, the Bench board uploads an OK flag to the T-BOX, and then returns an OK flag to the PC client software; otherwise, it returns ERROR.
[0092] In this embodiment, after determining whether the test result is successful, it includes:
[0093] S305. Send an audio stop output instruction to the vehicle networking terminal, so that the vehicle networking terminal returns a deletion success flag after deleting the stored audio data.
[0094] In this embodiment, the PC client software issues an audio stop test instruction to the T-BOX through USB; after receiving the stop test instruction, the T-BOX stops the recording and playing operations and deletes the audio information stored in the eMMC. After execution is completed, it returns a success flag.
[0095] In this embodiment, when the T-BOX audio test is completed, the PC client software needs to issue an audio stop test instruction to the T-BOX through USB. At this time, the T-BOX will stop the playing action and delete the previously stored simulated audio data in the eMMC, complete the test and return an OK flag to the PC client software. If it is not successful, it returns ERROR. Thus, all the T-BOX audio tests are executed.
[0096] Based on the above embodiments, the present invention also proposes an audio test device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the audio test system described in any one of the above.
[0097] It should be noted that the above device embodiment and method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are all correspondingly applicable in the device embodiment, so they will not be elaborated here.
[0098] Based on the above embodiments, the present invention also proposes a computer-readable storage medium, on which an audio test program is stored. When the audio test program is executed by a processor, it implements the steps of the audio test system described in any one of the above.
[0099] It should be noted that the above medium embodiment and method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are all correspondingly applicable in the medium embodiment, so they will not be elaborated here.
[0100] Implementing the audio test system, method, device and computer-readable storage medium of the present invention, by proposing an audio test system, the system includes a vehicle networking terminal, a test board and a host computer respectively connected to the vehicle networking terminal. The test board includes an MCU module, an analog audio signal generation module and an audio signal acquisition module respectively connected to the MCU module. The vehicle networking terminal includes a MIC circuit module, a Codec processing module connected to the MIC circuit, an SOC module connected to the Codec processing module, a LINE-OUT circuit module and an eMMC storage module connected to the SOC module; wherein: the vehicle networking terminal is used to receive the audio signal sent by the test board, process the audio signal, and then play and output it again; the test board is used to count the output signals of the vehicle networking terminal within a preset period and the number of output signals obtained through loopback testing; the host computer is used to send test instructions to the vehicle networking terminal and collect test results from the test board. An audio test solution for vehicle networking terminals with higher automation is realized, improving the test accuracy and test efficiency and reducing the test cost.
[0101] Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions for causing a terminal (which can 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.
[0102] It should be noted that in this article, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including that element.
[0103] The embodiments of the present invention have been described above in conjunction with the accompanying drawings. However, the present invention is not limited to the above specific embodiments. The above specific embodiments are merely illustrative rather than restrictive. Under the inspiration of the present invention, those of ordinary skill in the art can also make many forms without departing from the spirit of the present invention and the scope protected by the claims. All of these fall within the protection scope of the present invention.
Claims
1. An audio test system, characterized in that: The system includes a vehicle networking terminal, a test board and a host computer respectively connected to the vehicle networking terminal, the test board includes an MCU module, an analog audio signal generation module and an audio signal acquisition module respectively connected to the MCU module, and the vehicle networking terminal includes a MIC circuit module, a Codec processing module connected to the MIC circuit, a SOC module connected to the Codec processing module, a LINE-OUT circuit module, and an eMMC storage module connected to the SOC module; wherein: The Internet of Vehicles terminal is used to receive the audio signal sent by the test board, process the audio signal, and then play and output it again; The test board is used to count the output signals of the Internet of Vehicles terminal within a preset period and the number of output signals obtained through a loopback test; The host computer is used to send test instructions to the Internet of Vehicles terminal and collect test results from the test board.
2. The audio test system according to claim 1, characterized in that: The analog audio signal generating module is used to convert the PWM pulse width modulation wave of a preset frequency emitted by the MCU module into an analog audio signal of the same frequency, and the analog audio signal is transmitted to the MIC circuit module; The MCU module is used to send the PWM wave to the analog audio signal generation module and receive the digital pulse signal sent by the audio signal acquisition module; The audio signal acquisition module is used to receive the audio signal output by the LINE_OUT circuit module, and convert the audio signal into a digital pulse signal and then input it into the MCU module.
3. The audio test system according to claim 2, characterized in that: The MIC circuit module is used to collect the analog audio signal output by the audio signal generation module, and send the analog audio signal to the Codec processing module after conditioning the analog audio signal; The Codec processing module is used to quantize and encode the analog audio signal sent by the MIC circuit module, convert it into a digital signal, and then transmit the digital signal to the SOC module through the I2S interface. In addition, in the voice output link, it is also used to decode the digital signal input by the SOC module through the I2S interface, convert it into an analog signal, and then send the analog signal to the LINE-OUT circuit module; The SOC module is used to receive the digital signal sent by the Codec processing module and store the digital signal in the eMMC storage module, and, in the voice output link, is also used to take out the stored digital signal from the eMMC storage module and send the digital signal to the Codec processing module; The eMMC storage module is used to store the digital signal sent by the SOC module; The LINE-OUT circuit module is used to perform the playback output of the audio signal, wherein the LINE-OUT circuit module receives the analog audio signal decoded by the Codec processing module, and after being conditioned by the LINE-OUT circuit module, sends it to the audio signal acquisition module through a cable.
4. The audio test system according to claim 3, characterized in that: The host computer is connected to the Internet of Vehicles terminal via a USB, and the Internet of Vehicles terminal is connected to the test board via a UART serial port; The test instruction is generated by the host computer and transmitted to the SOC module of the Internet of Vehicles terminal through the USB, or after passing through the SOC module, is transmitted to the MCU module of the test board through the UART serial port.
5. An audio testing method, applied to a test board, characterized in that: The test board is connected to a vehicle networking terminal, the vehicle networking terminal is connected to a host computer, and the method includes: Receiving a test instruction generated by the host computer and sent via the Internet of Vehicles terminal, generating a first PWM wave of a preset frequency according to the test instruction, and converting the first PWM wave into an analog audio signal; Sending the analog audio signal to the Internet of Vehicles terminal so that the Internet of Vehicles terminal processes the analog audio signal and then plays and outputs it again; Collecting the audio signal played and output by the Internet of Vehicles terminal, and converting the audio signal into a second PWM wave; The converted second PWM waves are counted and compared with the number of the first PWM waves, wherein if the comparison error is within a preset range, it is determined that the Internet of Vehicles terminal has passed the audio test, otherwise, it is determined that the audio test has failed.
6. An audio testing method, applied to a vehicle networking terminal, characterized in that: The Internet of Vehicles terminal is connected to the test board and the host computer respectively, and the method includes: Receiving a recording instruction sent by the host computer, and receiving an analog audio signal sent by the test board according to the recording instruction; Convert the analog audio signal into a digital audio signal and store it; Receiving a play instruction sent by the host computer, extracting the stored digital audio signal according to the play instruction, and converting it into an analog audio signal for output; If the playback is successful, a playback success flag is sent back to the host computer; otherwise, an error message is sent back to the host computer.
7. An audio testing method, applied to a host computer, characterized in that: The host computer is connected to a vehicle networking terminal, the vehicle networking terminal is connected to a test board, and the method includes: Sending an audio output instruction to the test board via the Internet of Vehicles terminal, and receiving an output success flag transmitted back by the Internet of Vehicles terminal after the test board successfully executes the audio output instruction; Sending an audio recording instruction to the Internet of Vehicles terminal, and receiving a recording success indicator returned by the Internet of Vehicles terminal after the audio recording is successful; Sending an audio playback instruction to the Internet of Vehicles terminal, and receiving a playback success indicator returned by the Internet of Vehicles terminal after the audio playback is successful; An audio test instruction is sent to the test board via the Internet of Vehicles terminal, a test result after the test board successfully executes the audio test instruction is received and transmitted back by the Internet of Vehicles terminal, and the test result is judged and output.
8. The audio testing method according to claim 7, characterized in that: After determining whether the test result is successful, the method further comprises: An audio output stop instruction is sent to the Internet of Vehicles terminal, so that the Internet of Vehicles terminal returns a deletion success mark after deleting the stored audio data.
9. An audio testing device, characterized in that: The device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the audio test system according to any one of claims 5 to 8 when executed by the processor.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an audio test program, and when the audio test program is executed by a processor, the steps of the audio test system according to any one of claims 5 to 8 are implemented.