Vehicle-mounted audio performance test method, system and device and storage medium
By integrating a control signal generator, the test sample, and an audio analyzer into a host computer, automated vehicle audio performance testing is achieved. This solves the inefficiency problem caused by manual operation, improves testing accuracy and efficiency, and ensures the accuracy and comparability of test results.
Patent Information
- Application Number
- CN202511252800.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-03
- Publication Date
- 2026-01-06
AI Technical Summary
Existing performance testing of in-vehicle audio equipment mainly relies on manual operation, resulting in a large amount of repetitive work and low efficiency.
By integrating a control signal generator, a prototype under test (DUT), and an audio analyzer into a host computer, the operating mode of the DUT is automatically set using ADB commands and hardware interfaces, and parameters are measured using the audio analyzer, thus achieving automated in-vehicle audio performance testing.
It reduces testing complexity, improves measurement efficiency, enhances testing accuracy, reduces testing precision and efficiency, eliminates errors introduced by human factors, and ensures the objectivity and comparability of test results.
Smart Images

Figure CN121284470A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of automated testing technology, and in particular to methods, systems, equipment, and storage media for testing in-vehicle audio performance. Background Technology
[0002] Currently, performance testing of in-vehicle audio equipment mainly involves manually adjusting the signal generator output and switching the operating mode of the device under test to meet testing requirements, followed by measuring the necessary parameters using measuring equipment. However, existing measurement techniques are primarily based on manual operation, resulting in a large amount of repetitive work and low efficiency. Summary of the Invention
[0003] The main purpose of this application is to provide a method, system, device, and storage medium for testing the performance of in-vehicle audio equipment, aiming to solve the technical problem of how to reduce testing complexity and improve testing efficiency when testing the performance of in-vehicle audio equipment.
[0004] To achieve the above objectives, this application proposes a method for testing in-vehicle audio performance, wherein the method is applied to a host computer and includes: Send parameter setting instructions to the signal generator so that the signal generator can generate radio frequency signals based on the parameter setting instructions and send the radio frequency signals to the test sample through the radio frequency output interface; Send Android Debug Bridge (ADB) commands to the prototype under test (DUT) so that the DUT can respond to the ADB commands and the radio frequency signals to perform functional mode operations, generate audio signals, and output the audio signals to the audio output interface. Send control commands to the audio analyzer so that the audio analyzer can set the measurement mode based on the control commands and receive the audio signal from the audio output interface of the sample under test through the audio input interface, and measure the audio signal to obtain measurement parameters; The measurement parameters returned by the audio analyzer are read, and power adjustment judgment and control are performed based on the measurement parameters until the output power of the test sample reaches the preset target power condition. The distortion value under the preset target power condition is obtained and recorded as the measurement parameter of the vehicle audio performance.
[0005] In one embodiment, the step of sending an Android Debug Bridge (ADB) command to the prototype under test (DUT) so that the DUT responds to the ADB command and the radio frequency signal to perform a function mode operation and generate an audio signal includes: Send a first ADB command to the prototype under test to cause the prototype under test to launch the broadcast application; and / or Send a second ADB command to the prototype under test (DUT) to enable the DUT to simulate the FM / AM reception function in a broadcast application and perform a station search operation, causing the DUT to lock onto the radio frequency signal and output the corresponding audio signal; and / or Send a third ADB command to the prototype under test to cause the prototype under test to launch a music playback application; and / or Send a fourth ADB command to the prototype under test to enable the prototype under test to simulate the Bluetooth / USB music playback function in the music playback application and output the corresponding audio signal.
[0006] In one embodiment, the step of performing power adjustment judgment and control based on the measurement parameters until the output power of the test sample reaches a preset target, and acquiring and recording the distortion value under the preset target power condition as a measurement parameter of the vehicle audio performance includes: Based on the measurement parameters, the power reading currently measured by the audio analyzer is determined; Compare the currently measured power value with the preset target power value; If the currently measured power value meets the preset target power value, a switching command is sent to the audio analyzer so that the audio analyzer can switch the measurement mode to the distortion measurement mode based on the switching command. Read the distortion value returned by the audio analyzer in the distortion measurement mode, and use the distortion value as a vehicle audio performance test parameter that meets the preset target power conditions; If the currently measured power value does not meet the preset target power value, an ADB command for volume adjustment is sent to the test sample, so that the test sample can adjust the gain of the audio output based on the ADB command and output the audio signal with adjusted gain. The audio analyzer is controlled to perform power measurement on the gain-adjusted audio signal, obtain the updated power value returned by the audio analyzer, and return to execute the comparison step until a distortion value that meets the preset target power condition is obtained.
[0007] Furthermore, to achieve the above objectives, this application also proposes a method for testing in-vehicle audio performance, characterized in that the method is applied to a signal generator, and the method includes: Receive parameter setting instructions sent by the host computer; Based on the parameter setting instructions, a radio frequency signal is generated; The radio frequency (RF) signal is sent to the device under test (DUT) via the RF output interface. The DUT then performs functional mode operation based on the RF signal and ADB commands sent by the host computer, generates an audio signal, and outputs the audio signal to the audio output interface. The audio signal is received and measured by an audio analyzer to obtain measurement parameters. The host computer reads the measurement parameters and performs power adjustment judgment and control based on the measurement parameters until the output power of the DUT reaches the preset target power condition. The distortion value under the preset target power condition is obtained and recorded as the measurement parameter of the vehicle audio performance.
[0008] Furthermore, to achieve the above objectives, this application also proposes a vehicle audio performance testing method, which is applied to the prototype under test, and includes: It receives ADB commands sent by the host computer and radio frequency signals sent by the signal generator; The system responds to the ADB command and the radio frequency signal to perform a function mode operation and generate an audio signal; The audio signal is output to the audio output interface so that the audio analyzer can receive the audio signal from the audio output interface of the test sample through the audio input interface and measure it to obtain measurement parameters. The host computer reads the measurement parameters and performs power adjustment judgment and control based on the measurement parameters until the output power of the test sample reaches the preset target power condition. The distortion value under the preset target power condition is obtained and recorded as the measurement parameter of the vehicle audio performance.
[0009] In one embodiment, the step of performing a function mode operation in response to the ADB command and the radio frequency signal, and generating an audio signal, includes: Receive the first ADB command sent by the host computer, and launch the broadcast application based on the first ADB command; and / or Receives a second ADB command sent by the host computer, simulates the FM / AM reception function in the broadcast application based on the second ADB command, performs a station search operation, locks the radio frequency signal, and outputs the corresponding audio signal; and / or After completing the performance measurement of the FM / AM receiving function, the system receives the third ADB command sent by the host computer and launches the music playback application based on the third ADB command; and / or The system receives the fourth ADB command sent by the host computer, simulates the Bluetooth / USB music playback function in the music playback application based on the fourth ADB command, and outputs the corresponding audio signal.
[0010] In one embodiment, after the step of outputting the audio signal to the audio output interface, the method further includes: Receive volume adjustment ADB commands sent by the host computer; The gain of the audio output is adjusted based on the ADB command, and the audio signal with adjusted gain is output. The audio signal with the output gain adjusted is output through the audio output interface.
[0011] Furthermore, to achieve the above objectives, this application also proposes a vehicle audio performance testing method, wherein the vehicle audio performance testing method is applied to an audio analyzer, and the vehicle audio performance testing method includes: Receive control commands sent by the host computer; Based on the control command, the measurement mode is set to obtain the required measurement parameters, and the audio signal from the audio output interface of the sample under test is received through the audio input interface. The audio signal is then measured to obtain the measurement parameters. The measurement parameters are sent to the host computer, which then performs power adjustment judgment and control based on the measurement parameters until the output power of the test sample reaches the preset target power condition. The distortion value under the preset target power condition is then acquired and recorded as a measurement parameter of the vehicle audio performance.
[0012] In addition, to achieve the above objectives, this application also proposes an in-vehicle audio performance testing system, which includes a host computer, a signal generator, a prototype under test, and an audio analyzer. The host computer includes: The first instruction sending module is used to send parameter setting instructions to the signal generator so that the signal generator can generate radio frequency signals based on the parameter setting instructions and send the radio frequency signals to the test sample through the radio frequency output interface. The second instruction sending module is used to send Android Debug Bridge (ADB) instructions to the prototype under test (DUT), so that the DUT can respond to the ADB instructions and the radio frequency signals to perform functional mode operations, generate audio signals, and output the audio signals to the audio output interface. The third instruction sending module is used to send control instructions to the audio analyzer so that the audio analyzer can set the measurement mode based on the control instructions, and receive the audio signal from the audio output interface of the sample under test through the audio input interface, and measure the audio signal to obtain measurement parameters. The testing module is used to read the measurement parameters returned by the audio analyzer and perform power adjustment judgment and control based on the measurement parameters until the output power of the test sample reaches the preset target power condition. The distortion value under the preset target power condition is obtained and recorded as the measurement parameter of the vehicle audio performance. The signal generator includes: The first instruction receiving module is used to receive parameter setting instructions sent by the host computer; The generation module is used to generate radio frequency signals based on the parameter setting instructions; The signal transmission module is used to send the radio frequency signal to the prototype under test through the radio frequency output interface, so that the prototype under test can perform functional mode operation based on the radio frequency signal and the ADB command sent by the host computer, and generate an audio signal; The test sample includes: The second instruction receiving module is used to receive ADB instructions sent by the host computer and radio frequency signals sent by the signal generator. The response module is used to perform functional mode operation in response to the ADB command and the radio frequency signal, and to generate an audio signal; The output module is used to output the audio signal to the audio output interface so that the audio analyzer can receive the audio signal from the audio output interface of the sample under test through the audio input interface. The audio analyzer includes: The third instruction receiving module is used to receive control instructions sent by the host computer. The measurement module is used to set the measurement mode based on the control command to obtain the required measurement parameters, and to receive the audio signal from the audio output interface of the sample under test through the audio input interface, and to measure the audio signal to obtain the measurement parameters. The parameter sending module is used to send the measurement parameters to the host computer, so that the host computer can perform power adjustment judgment and control based on the measurement parameters until the output power of the test sample reaches the preset target power condition, and acquire and record the distortion value under the preset target power condition as the measurement parameter of the vehicle audio performance.
[0013] In addition, to achieve the above objectives, this application also proposes an in-vehicle audio performance testing device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the in-vehicle audio performance testing method described above.
[0014] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the vehicle audio performance testing method described above.
[0015] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the vehicle audio performance testing method described above.
[0016] This application proposes a method, system, device, and storage medium for testing in-vehicle audio performance. The method includes: a host computer sending a parameter setting command to a signal generator, so that the signal generator generates a radio frequency (RF) signal based on the parameter setting command and sends the RF signal to a test device (DD) through an RF output interface; the host computer sending an ADB command to the DD, so that the DD responds to the ADB command and the RF signal to perform a function mode operation, generate an audio signal, and output the audio signal to an audio output interface; the host computer sending a control command to an audio analyzer, so that the audio analyzer sets a measurement mode based on the control command and receives the audio signal from the audio output interface of the DD through an audio input interface, measures the audio signal to obtain measurement parameters; reading the measurement parameters returned by the audio analyzer, and performing power adjustment judgment and control based on the measurement parameters until the output power of the DD reaches a preset target power condition, and obtaining and recording the distortion value under the preset target power condition as a measurement parameter of the in-vehicle audio performance. This solution integrates a host computer with a control signal generator, the prototype under test, and an audio analyzer to automate the performance testing process for in-vehicle audio equipment, thereby reducing testing complexity and improving measurement efficiency. Attached Figure Description
[0017] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0018] To more clearly illustrate the technical solutions in the embodiments of this application 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.
[0019] Figure 1 This is a flowchart illustrating an embodiment of the vehicle audio performance testing method of this application. Figure 2 This is a flowchart illustrating Embodiment 2 of the vehicle audio performance testing method of this application. Figure 3 This is a flowchart illustrating Embodiment 3 of the vehicle audio performance testing method of this application; Figure 4 This is a flowchart illustrating Embodiment 4 of the vehicle audio performance testing method of this application; Figure 5 A simplified flowchart illustrating the in-vehicle audio performance testing method provided in Embodiment 1 of this application; Figure 6 This is a schematic diagram of the module structure of the vehicle audio performance testing system according to an embodiment of this application; Figure 7This is a schematic diagram of the hardware operating environment involved in the vehicle audio performance testing method in this application embodiment.
[0020] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0021] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.
[0022] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0023] The main solution of this application embodiment is as follows: The host computer sends a parameter setting command to the signal generator, so that the signal generator generates a radio frequency signal based on the parameter setting command and sends the radio frequency signal to the prototype under test through the radio frequency output interface; the host computer sends an ADB command to the prototype under test, so that the prototype under test responds to the ADB command and the radio frequency signal to perform a function mode operation, generate an audio signal, and output the audio signal to the audio output interface; the host computer sends a control command to the audio analyzer, so that the audio analyzer sets the measurement mode based on the control command, receives the audio signal from the audio output interface of the prototype under test through the audio input interface, measures the audio signal to obtain measurement parameters; reads the measurement parameters returned by the audio analyzer, and performs power adjustment judgment and control based on the measurement parameters until the output power of the prototype under test reaches the preset target power condition, and obtains and records the distortion value under the preset target power condition as the measurement parameter of the vehicle audio performance.
[0024] In this embodiment, for ease of description, the following description uses an in-vehicle audio performance testing system as the execution subject.
[0025] Current performance testing of in-vehicle audio equipment mainly involves manually adjusting the signal generator output and switching the working mode of the test sample to meet the test requirements, and then measuring the required parameters by operating measuring equipment. This method is repetitive and inefficient.
[0026] This application provides a solution that, through software development, enables a host computer to set the operating mode of the prototype under test (DUT) using ADB, and simultaneously sets the signal generator through a hardware interface standard to bring the DUT to a state that meets the measurement requirements. The host computer then controls the measuring device (audio analyzer) to measure and record the parameters via a universal interface bus. This method, by using automated measurement technology, can reduce the workload of measurement personnel, improve measurement efficiency, and reduce potential errors introduced by manual operation.
[0027] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device capable of performing the above functions. The following description uses a personal computer as an example to illustrate this embodiment and the subsequent embodiments.
[0028] Based on this, this application provides a method for testing in-vehicle audio performance, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the vehicle audio performance testing method of this application.
[0029] In this embodiment, the vehicle audio performance testing method is applied to a host computer, and the method includes steps S10~S40: Step S10: Send a parameter setting command to the signal generator so that the signal generator can generate an RF signal based on the parameter setting command and send the RF signal to the test sample through the RF output interface. In this embodiment, in order to achieve precise automated control of radio frequency signal parameters, the host computer first sends an initialization command to the signal generator through a USB-GPIB, Ethernet (RJ45) interface, or RS232 interface, so that the signal generator restores the default settings and clears the unwanted settings.
[0030] Then, the host computer sends the corresponding parameter setting instructions to the signal generator so that the signal generator can receive and parse the instructions, configure the internal signal source to generate the corresponding radio frequency modulation signal (including but not limited to carrier frequency, modulation method, modulation frequency, frequency offset and signal level, etc.), and output the signal to the antenna input port of the prototype under test through the radio frequency feeder.
[0031] Next, the host computer sends an inquiry command to the signal generator to access information such as the currently set carrier frequency, modulation method, modulation frequency, frequency offset, and signal level, and waits for the signal generator to return the corresponding values based on the inquiry command. Finally, the obtained values are displayed through the display control.
[0032] Step S20: Send an Android Debug Bridge (ADB) command to the prototype under test (DUT) so that the DUT can respond to the ADB command and the radio frequency signal to perform a function mode operation, generate an audio signal, and output the audio signal to the audio output interface. It should be noted that ADB (Android debug bridge) is a command-line tool used during development and debugging to establish communication between a computer and an Android device (or emulator) and perform various operations, such as installing applications, transferring files, running shell commands, and debugging.
[0033] It is understandable that, since the system interface and application controls of different models of the test prototype may differ, and the startup and function switching of the application require a certain response time, executing step S20 can achieve compatibility control of different models of vehicle-mounted equipment and ensure the accurate execution of command operations.
[0034] In one feasible embodiment, step S20 may include steps S21 to S24: Step S21: Send a first ADB command to the prototype under test to cause the prototype under test to start the broadcast application; In this step, the host computer sends a specific first ADB command (such as `adb shell am start` or `adb shell monkey`) to the test device based on its model and system version to launch the built-in radio application. Since the application package name and main Activity may differ between different test device models, this first ADB command needs to be pre-configured in the test software's command library. After sending the first ADB command, a preset first delay time (e.g., 10 seconds) is allowed to ensure the application fully launches and enters a stable interface, accommodating differences in startup speeds between different test devices.
[0035] Step S22: Send a second ADB command to the prototype under test to enable the prototype under test to simulate the FM / AM reception function in the broadcast application and perform a station search operation, so that the prototype under test locks the radio frequency signal and outputs the corresponding audio signal; Specifically, after the broadcast application is started and the current environment is stable, the host computer sends a second ADB command (such as adb shell input tap [x] [y] or adb shell input keyevent command) to the test device, so that the test device simulates clicking the “FM” or “AM” switch button and the “AutoScan” function button on the application interface based on the second ADB command.
[0036] When the prototype under test performs a station search operation, its tuner scans the frequency and eventually locks onto a specific carrier frequency (e.g., 98.1MHz) emitted by the signal generator. After locking, the prototype demodulates the RF signal output by the signal generator to recover the internal modulated audio signal (e.g., a 1kHz sine wave) and prepares it for output through its audio processing circuit.
[0037] Step S23: Send a third ADB command to the prototype under test to cause the prototype under test to start the music playback application; Specifically, after completing the FM / AM performance measurement, the host computer sends a third ADB command, using commands such as amstart, to launch the prototype's built-in music playback application. Similar to step S21, after sending the command, a preset second delay time (e.g., 10 seconds) is required to ensure that the music playback app successfully loads and enters its main interface, preparing for subsequent playback function operations.
[0038] Step S24: Send the fourth ADB command to the prototype under test to enable the prototype under test to simulate the Bluetooth / USB music playback function in the music playback application and output the corresponding audio signal.
[0039] Specifically, when the prototype under test starts the music playback application, it returns a start success signal to the host computer. At this time, the host computer sends a fourth ADB command (such as the input tap command) to simulate clicking the "Bluetooth Music" or "BT Audio" entry in the music playback app, triggering the prototype to connect to the paired Bluetooth audio source (which can be simulated by the audio output of another device or signal generator) and start playing, outputting the corresponding Bluetooth audio signal.
[0040] Because the USB physical port of the prototype under test is usually occupied in USB mode (for ADB communication or file transfer) when connected to the host computer for ADB debugging, it cannot be simultaneously recognized by the system as a USB flash drive to play music, resulting in a functional mutual exclusion problem. Therefore, when it is necessary to measure USB audio performance, an ADB connection must be established in advance via Wi-Fi (i.e., Wi-Fi-ADB). After the Wi-Fi-ADB connection is established, the prototype's USB port can be freely switched to USB flash drive mode. At this time, the host computer sends a fourth ADB command to the prototype under test via Wi-Fi-ADB, so that the prototype under test simulates clicking the "USB Music" entry in a music playback app, enabling the prototype under test to recognize and play the test audio file on the connected USB flash drive, thereby outputting the corresponding USB audio signal.
[0041] Through the above steps, automated compatibility control of different models of in-vehicle audio devices can be achieved. The start-up and switching of broadcast and music playback functions can be completed without manual intervention, ensuring the accurate execution of the test process and effectively solving the control problem caused by port function mutual exclusion during USB audio testing. This lays the foundation for the subsequent automated measurement of in-vehicle audio performance parameters.
[0042] Step S30: Send a control command to the audio analyzer so that the audio analyzer can set the measurement mode based on the control command and receive the audio signal from the audio output interface of the sample under test through the audio input interface, and measure the audio signal to obtain measurement parameters. In this embodiment, the host computer first sends an initialization command to the audio analyzer, causing the audio analyzer to restore its default settings and clear any unwanted settings.
[0043] After initialization, the host computer sends a series of SCPI configuration commands to the audio analyzer via GPIB or USB interface. First, commands (e.g., INP:FILT:LPAS<frequency> and INP:FILT:HPAS<frequency>) are sent to set the low-pass and high-pass filters of the input channels to filter out out-of-band noise and ensure the purity of the measurement signal. Next, commands (e.g., INP:COUPling AC) are sent to the audio analyzer to set the input coupling mode to AC measurement, thus isolating the DC component and focusing on the AC component of the audio signal.
[0044] Then, based on the requirements of the current measurement phase, the host computer sends a command (e.g., UNIT: POWer W) to the audio analyzer, causing it to switch the measurement unit to watts (W). Subsequently, the host computer sends another command (e.g., SENSe: FUNCtion "POWer") to the audio analyzer, causing it to set the main measurement function to power measurement mode, preparing for subsequent power measurements.
[0045] Once the audio analyzer is configured, it receives the audio signal from the audio output interface of the test sample through its audio input interface, measures the audio signal, and finally obtains the measurement parameters.
[0046] Through the above steps, the host computer completed the fine-tuning of the audio analyzer, ensuring the accuracy and consistency of the measurement conditions, and laying the foundation for obtaining reliable and effective measurement parameters.
[0047] Step S40: Read the measurement parameters returned by the audio analyzer, and perform power adjustment judgment and control based on the measurement parameters until the output power of the test sample reaches the preset target power condition. Obtain and record the distortion value under the preset target power condition as the measurement parameter of the vehicle audio performance.
[0048] It should be noted that the distortion value refers to Total Harmonic Distortion plus Noise (THD+N), which represents the ratio of the total energy of all harmonic components to the fundamental energy in the audio signal output by the test sample, plus the comprehensive index of the ratio of noise energy to fundamental energy within the measurement bandwidth.
[0049] The measurement parameters for the vehicle audio performance include, but are not limited to: FM modes: frequency range, intermediate frequency, practical sensitivity, signal-to-noise ratio, -3dB sensitivity, noise convergence point, standard output distortion, automatic station stop sensitivity, intermediate frequency rejection, image rejection, amplitude modulation rejection, frequency response, FM total distortion, 10% distortion output power, 1% distortion output power, FM stereo separation, FM stereo signal-to-noise ratio, etc. AM mode: Frequency range, intermediate frequency, practical sensitivity, signal-to-noise ratio, -3dB sensitivity, automatic station stop sensitivity, intermediate frequency rejection, image rejection, selectivity, -6dB bandwidth, automatic gain control, frequency response, AM total distortion, standard output distortion, AM image rejection signal-to-noise ratio, 10% distortion output power, 1% distortion output power, AM output channel balance, feedback ratio, AM noise convergence point, bass control, treble control, left and right channel balance separation, front and rear speaker control, parallelism of various function outputs, etc. AUX mode: AUX separation, AUX frequency response; USB music section: signal-to-noise ratio, standard output distortion, channel separation, frequency response, 10% distortion output power, maximum noise output, minimum noise output, etc.
[0050] Understandably, since the distortion characteristics of audio equipment are closely related to its output power, distortion values measured directly at arbitrary power are not comparable. Therefore, step S40 is executed to precisely stabilize the output power of the test sample at the preset target power condition through closed-loop feedback control, and its distortion value is measured at this standardized operating point. This obtains quantifiable, repeatable, and horizontally comparable in-vehicle audio performance test parameters, ensuring the objectivity and accuracy of the test results.
[0051] In one feasible implementation, step S40 may include steps S41 to S46: Step S41: Based on the measurement parameters, determine the power reading currently measured by the audio analyzer; In this step, the host computer software sends a data read request to the audio analyzer via the GPIB / USB interface. Upon receiving the request, the audio analyzer returns the power value of its current measurement channel to the host computer. The host computer then calls a value conversion function to parse this power value into floating-point data, which is the currently measured power reading.
[0052] Step S42: Compare the currently measured power value with the preset target power value; In this step, the computer software compares the current measured power value with the preset target power value. The standard for comparison is usually set as an allowable error range, that is, whether the current power value falls within the allowable error range of the target power value.
[0053] Step S43: If the currently measured power value meets the preset target power value, a switching command is sent to the audio analyzer so that the audio analyzer can switch the measurement mode to the distortion measurement mode based on the switching command. In this step, if the comparison result shows that the current measured power value meets the preset target power value, the host computer sends a measurement mode switching command to the audio analyzer, so that the audio analyzer switches its main measurement function from "power" to "distortion" based on the command.
[0054] Step S44: Read the distortion value returned by the audio analyzer in the distortion measurement mode, and use the distortion value as the vehicle audio performance test parameter that meets the preset target power conditions; After confirming that the distortion measurement mode is activated, the host computer sends another read request to the audio analyzer. Based on this request, the audio analyzer performs distortion analysis on the current input signal, calculates the distortion value, and returns it as a string.
[0055] After receiving the distortion value, the host computer converts it into floating-point data. This data is a key parameter of comparable vehicle audio performance measured under preset target power conditions, and it is stored in the test result database and displayed on the display interface.
[0056] Step S45: If the currently measured power value does not meet the preset target power value, then send an ADB command for volume adjustment to the test sample, so that the test sample can adjust the gain of the audio output based on the ADB command and output the audio signal with adjusted gain. In this step, if the comparison result shows that the currently measured power value does not meet the preset target power value, the host computer generates a corresponding volume adjustment ADB command based on the power difference and sends it to the device under test. After receiving the command, the device under test simulates a user clicking the volume button to adjust the gain of its internal audio amplifier and outputs the adjusted audio signal.
[0057] Step S46: Control the audio analyzer to perform power measurement on the audio signal after gain adjustment, obtain the updated power value returned by the audio analyzer, and return to execute the comparison step until a distortion value that meets the preset target power condition is obtained.
[0058] After the volume is adjusted, the host computer sends another read request to the audio analyzer to obtain the updated power reading of the audio signal after gain adjustment. The computer software substitutes this new value into step S42 for comparison. This process constitutes a closed-loop feedback adjustment cycle, which continues to iterate until the power stabilizes at the preset target power. Finally, steps S43 and S44 are executed to complete the distortion measurement.
[0059] Through the above steps, automated closed-loop adjustment of the output power of the test sample is achieved. This allows for precise stabilization of the output level under preset target power conditions, and automatic switching to distortion measurement mode at this standardized operating point to obtain the final THD+N performance parameters. This process completely replaces manual listening, volume adjustment, and data recording, significantly improving the accuracy, repeatability, and efficiency of the test. It effectively eliminates errors introduced by human factors, ensuring the objectivity and comparability of the in-vehicle audio performance evaluation results.
[0060] In the above-described embodiment, the host computer sends parameter setting instructions to the signal generator, causing it to generate and output an RF signal to the prototype under test (DUT). Simultaneously, it sends an ADB command to the DUT to control its response to the RF signal, enabling it to perform functional operations, generate, and output an audio signal. The host computer then sends control instructions to the audio analyzer, causing it to receive the audio signal and perform measurements to obtain measurement parameters. The host computer reads these parameters, performs judgments and controls based on the power measurement results, and adjusts the DUT volume using the ADB command until the output power reaches a preset target. Finally, it obtains and records the distortion value under this target power condition as a performance measurement parameter. This solution integrates the control signal generator, the DUT, and the audio analyzer into a host computer, achieving an automated in-vehicle audio performance testing process, effectively reducing testing complexity and improving measurement efficiency.
[0061] Based on this, the embodiments of this application also provide another method for testing in-vehicle audio performance, referring to... Figure 2 , Figure 2 This is a flowchart illustrating the second embodiment of the vehicle audio performance testing method of this application.
[0062] In this embodiment, the vehicle audio performance testing method is applied to a signal generator, and the method includes steps A10 to A30: Step A10: Receive parameter setting instructions sent by the host computer; In this embodiment, the signal generator receives configuration commands from a host computer via its standard communication interface (such as GPIB, USB, or Ethernet RJ45). These commands follow standard instrument control protocols and contain key parameters for generating the required radio frequency signal, such as: carrier frequency (e.g., 98.1MHz for FM, or 600kHz for AM), modulation scheme (FM or AM), modulation signal type (typically a sine wave), modulation frequency (e.g., 1kHz), frequency offset (frequency deviation for FM, such as ±75kHz) or modulation depth (modulation depth for AM, such as 30%), and radio frequency output level (signal strength, such as -60dBm). The signal generator's control unit parses and receives these commands.
[0063] Step A20: Generate an radio frequency signal based on the parameter setting instructions; In this embodiment, the signal synthesis unit inside the signal generator (such as DDS - Direct Digital Frequency Synthesis or PLL - Phase-Locked Loop) generates an RF carrier of the corresponding frequency based on the received carrier frequency parameters. Subsequently, the modulation unit loads a modulated signal (such as a 1kHz sine wave) onto the RF carrier according to the modulation scheme, modulation frequency, and frequency offset / modulation amplitude parameters in the instruction, generating a compliant RF signal. For example, in FM mode, it generates an RF signal with a center frequency of 98.1MHz, a frequency offset of ±75kHz, and a modulated signal of 1kHz. The internal circuitry ensures that the signal's frequency accuracy, modulation purity, and output stability meet the test requirements.
[0064] Step A30: The radio frequency signal is sent to the prototype under test (DUT) via the radio frequency output interface, so that the DUT can perform functional mode operation based on the radio frequency signal and the ADB command sent by the host computer, generate an audio signal, and output the audio signal to the audio output interface; the audio signal is received and measured by the audio analyzer to obtain measurement parameters; the host computer reads the measurement parameters and performs power adjustment judgment and control based on the measurement parameters until the output power of the DUT reaches the preset target power condition, and obtains and records the distortion value under the preset target power condition as the measurement parameter of the vehicle audio performance.
[0065] In this embodiment, the signal generator transmits the generated radio frequency (RF) signal to the antenna input port of the prototype under test (DUT) via a physical connection through an RF feeder (coaxial cable) via the RF output interface (typically a BNC or SMA interface) on the front panel of the signal generator. Upon receiving the RF signal, the DUT, under the control of ADB commands sent by the host computer (such as launching a broadcast app, switching to FM / AM, or performing a station search), automatically searches for and locks onto the signal at that specific frequency. After locking, the demodulation circuit of the prototype restores the RF signal, generating an audio signal (such as a 1kHz sine wave) corresponding to the original modulation signal. This audio signal is amplified by the internal audio processing circuit of the prototype and output through its audio output interface (such as a dedicated test point, AUX interface, or power amplifier output). The output audio signal is received by an audio analyzer through its audio input interface and measured in real time to obtain preliminary measurement parameters, including output power. Subsequently, the host computer reads these measurement parameters and compares them with a preset target power value. If the power is not up to standard, the host computer sends an ADB command for volume adjustment to the device under test, forming a closed-loop feedback control until the output power of the device under test is precisely stabilized at the preset target power condition (e.g., 1W). In this stable state, the host computer controls the audio analyzer to switch to the distortion measurement mode, acquires and records the distortion value (THD+N) at this time.
[0066] Through the methods described above, the signal generator can accurately generate and output radio frequency signals that conform to test standards according to the instructions of the host computer, providing a stable and repeatable analog broadcast signal source for the prototype under test. This process realizes remote automated setting and output of signal parameters, ensuring the consistency and accuracy of test input conditions, effectively supporting the automated execution of subsequent functional operations of the prototype under test and the standardized measurement of audio performance, and is a key link in building a complete automated test closed loop.
[0067] Based on this, the embodiments of this application also provide another method for testing in-vehicle audio performance, referring to... Figure 3 , Figure 3 This is a flowchart illustrating the third embodiment of the vehicle audio performance testing method of this application.
[0068] In this embodiment, the vehicle audio performance testing method is applied to the prototype under test, and the method includes steps B10 to B30: Step B10: Receive the ADB command sent by the host computer and the radio frequency signal sent by the signal generator; In this embodiment, the prototype under test (DUT) receives Android Debug Bridge (ADB) commands from the host computer via its physical USB port or an established Wi-Fi network connection. Simultaneously, its antenna input port receives radio frequency (RF) signals generated and transmitted by a signal generator via an RF feed line. These two inputs form the basis for subsequent functional operations and audio signal generation.
[0069] Step B20: Respond to the ADB command and the radio frequency signal to perform a function mode operation and generate an audio signal; Understandably, since the prototype under test integrates broadcast reception and multimedia playback functions, and its user interface can be automatically simulated through ADB commands, executing step B20 can automatically complete the entire process from application startup, signal source switching, station search locking to audio decoding and playback without human intervention, providing the necessary audio output source for automated testing.
[0070] In one feasible embodiment, step B20 may further include steps B21 to B24: Step B21: Receive the first ADB instruction sent by the host computer, and start the broadcast application based on the first ADB instruction; In this step, after the test device receives the first ADB command, the operating system launches its built-in radio application.
[0071] Step B22: Receive the second ADB command sent by the host computer, simulate the FM / AM reception function in the broadcast application based on the second ADB command, perform a station search operation, lock the radio frequency signal, and output the corresponding audio signal; Specifically, after the broadcast app is launched, the test unit receives a second ADB command (such as `adb shell inputtap 500 300` simulating clicking the FM button, and `adb shell input keyevent 85` simulating clicking the play / search button). The app responds to these analog operations, switching to FM or AM reception mode and initiating automatic station search. During the search, the test unit's tuner scans the frequency, and when it detects a radio frequency signal emitted by the signal generator (such as a specific carrier frequency, such as 98.1MHz), it locks onto the signal. Subsequently, the internal demodulation circuit demodulates the radio frequency signal, restoring the original modulated audio signal (such as a 1kHz sine wave), forming an internal audio stream.
[0072] Step B23: After completing the performance measurement of the FM / AM receiving function, receive the third ADB command sent by the host computer, and start the music playback application based on the third ADB command; Specifically, after the FM / AM performance test is completed, the test unit receives a third ADB command sent by the host computer to close the broadcast app or run it in the background, and launch the built-in music playback application.
[0073] Step B24: Receive the fourth ADB command sent by the host computer, simulate the Bluetooth / USB music playback function in the music playback application based on the fourth ADB command, and output the corresponding audio signal.
[0074] Specifically, for Bluetooth playback, after receiving the fourth ADB command sent by the host computer, the test prototype triggers the App to connect to the paired Bluetooth audio source (provided by the test system) and starts playing the audio stream, generating the corresponding internal audio signal.
[0075] For USB playback, since the physical USB port cannot be simultaneously recognized as a USB flash drive during wired ADB communication, an ADB connection must be established via Wi-Fi beforehand when testing the USB audio function. Under this Wi-Fi-ADB connection, the USB port of the test device can correctly recognize the inserted USB flash drive. When the test device receives the fourth ADB command, it simulates clicking the "USB Music" entry in the app, reads the test audio file from the USB flash drive, decodes and plays it, and generates the corresponding internal audio signal.
[0076] Step B30: The audio signal is output to the audio output interface so that the audio analyzer can receive the audio signal from the audio output interface of the test sample through the audio input interface and measure it to obtain measurement parameters; the host computer reads the measurement parameters and performs power adjustment judgment and control based on the measurement parameters until the output power of the test sample reaches the preset target power condition, and obtains and records the distortion value under the preset target power condition as the measurement parameter of the vehicle audio performance.
[0077] Finally, the prototype under test will output the audio signal generated by the broadcast reception or music playback function in analog or digital form through its audio output interface (such as a dedicated test point, AUX interface, or speaker line through a power amplifier). This output signal is connected to the audio input interface of the audio analyzer via an audio cable, providing the physical input for the analyzer to measure performance parameters such as power and distortion.
[0078] After receiving the audio signal, the audio analyzer first sets itself to power measurement mode according to the instructions from the host computer, measures and returns the current power value in real time. The host computer continuously reads the measurement parameter and compares it with the preset target power value (e.g., 1W).
[0079] If the current power reading does not meet the preset target power condition, the host computer will send an ADB command for volume adjustment to the device under test, dynamically adjusting its audio output gain. This process constitutes a closed-loop feedback adjustment cycle, iterating continuously until the output power measured by the audio analyzer is precisely stable at the preset target power condition.
[0080] When the current power reading meets the preset target power condition, the host computer sends a command to the audio analyzer to switch its measurement mode to distortion measurement mode. The audio analyzer then analyzes the audio signal that meets the preset target power condition, calculates the distortion value, and returns it to the host computer. The host computer receives and records this distortion value measured under the preset target power condition.
[0081] Through the methods described above, the prototype under test can automatically switch and operate various functional modes, such as broadcast reception and multimedia playback, under the remote command control of the host computer, achieving full automation of device-side actions in the testing process. This method effectively solves the problems of cumbersome operation and poor consistency in traditional manual testing, and overcomes the problem of USB port function mutual exclusion through technologies such as Wi-Fi-ADB, ensuring smooth execution of different audio source test scenarios and providing a solid foundation for obtaining accurate and reliable in-vehicle audio performance test data.
[0082] Based on this, the embodiments of this application also provide another method for testing in-vehicle audio performance, referring to... Figure 4 , Figure 4 This is a flowchart illustrating the fourth embodiment of the vehicle audio performance testing method of this application.
[0083] In this embodiment, the vehicle audio performance testing method is applied to an audio analyzer, and the method includes steps C10 to C30: Step C10: Receive control commands sent by the host computer; In this embodiment, the audio analyzer receives SCPI (Programmable Instrument Standard Command) control commands from the host computer via its standard communication interface (such as GPIB, USB, or Ethernet). In this embodiment, the audio analyzer first receives a system initialization command (such as *RST) from the host computer and, based on this command, restores all internal configurations to their factory default state, clearing any residual settings that might affect the current measurement, ensuring the purity and repeatability of the test environment. Subsequently, it receives a series of control commands for configuring measurement conditions.
[0084] Step C20: Based on the control command, set the measurement mode to obtain the required measurement parameters, and receive the audio signal from the audio output interface of the sample under test through the audio input interface, and measure the audio signal to obtain the measurement parameters; In this embodiment, the audio analyzer parses and executes the received configuration instructions to complete the measurement preparation.
[0085] Specifically, the audio analyzer sets the low-pass and high-pass filters of the input channel according to the instructions to limit the measurement bandwidth and filter out out-of-band noise; at the same time, it sets the input coupling mode to AC to block DC components.
[0086] Then, according to the requirements of the testing phase, execute the command (e.g., UNIT:POW W) to switch the measurement unit to watts (W), and execute the command (e.g., SENSe:FUNCtion "POWer") to set the main measurement function to power measurement mode.
[0087] Once configured, the audio analyzer receives the audio signal from the output interface of the device under test via its audio input interface and an audio cable. Its internal high-speed ADC (Analog-to-Digital Converter) samples the input signal, and the digital signal processor calculates the current power reading in real time based on the current measurement mode, serving as preliminary measurement parameters.
[0088] Step C30: The measurement parameters are sent to the host computer so that the host computer can perform power adjustment judgment and control based on the measurement parameters until the output power of the test sample reaches the preset target power condition. The distortion value under the preset target power condition is obtained and recorded as the measurement parameter of the vehicle audio performance.
[0089] In this embodiment, the audio analyzer sends the calculated current power value back to the host computer via the communication interface. Upon receiving this data, the host computer software determines whether the power has reached the preset target power condition. If not, it adjusts the volume of the test device using ADB commands, forming a closed-loop control. Once the host computer software confirms that the power has stabilized within the preset target power range, it sends a new control command to the audio analyzer, switching its measurement mode to "distortion." The audio analyzer executes this mode switch and measures the audio signal again, calculates the distortion value, and sends the final measurement parameters to the host computer. The host computer receives and records this distortion value, which is the key indicator of in-vehicle audio performance under standardized power conditions.
[0090] Through the methods described above, the audio analyzer can complete initialization and precise configuration according to the instructions of the host computer, receive and accurately measure the audio signal output by the prototype under test in real time, convert analog audio into digital signals for analysis and processing, and reliably transmit key measurement parameters back to the host computer. This process achieves automation and high precision in the measurement stage, providing crucial data support for the closed-loop control of the entire testing system and obtaining reliable vehicle audio performance indicators under standardized power conditions, ensuring the objectivity and repeatability of the test results.
[0091] For example, to help understand the implementation process of the in-vehicle audio performance testing method obtained by combining this embodiment with the above embodiment one, please refer to... Figure 5 , Figure 5 A simplified flowchart of a method for testing in-vehicle audio performance is provided, specifically: First, the host computer transmits the corresponding parameter setting instructions to the signal generator via USB-GPIB / RJ45. The signal generator sets the radio frequency signal, including parameters such as amplitude modulation and frequency modulation, according to the parameter setting instructions, and connects the radio frequency signal to the signal input terminal of the test sample through the feeder.
[0092] Then, the host computer transmits the corresponding ADB commands to the test device via USB-ADB. The test device sets the corresponding working mode (AM, FM, Bluetooth, USB flash drive, etc.) based on the ADB commands and outputs the audio signal required for the test.
[0093] Next, the host computer transmits the corresponding control commands to the audio analyzer via APIB / GPIB. The audio analyzer sets the corresponding measurement mode based on the control commands and obtains the required measurement parameters.
[0094] Finally, the computer software reads the current power reading from the audio analyzer and compares it with the preset target power value. If the current power reading meets the preset target power value (e.g., within 10%), the audio analyzer switches the measurement mode to distortion. Then, the host computer software sends a read request to the audio analyzer and records the reading returned by the audio analyzer, which is the measurement parameter of the vehicle audio performance that meets the preset target power condition.
[0095] If the current power reading does not meet the preset target power value, the computer software sends an ADB command to the device under test to simulate clicking the volume button, then reads the updated power value and compares it with the preset target power value until it meets the preset target power. The host computer then sends a read request to the audio analyzer to obtain the updated power reading of the audio signal after gain adjustment. The host computer software compares this new value with the preset target power value again until the power stabilizes at the preset target power, acquires and records this value, and this new value is the measurement parameter for the in-vehicle audio performance that meets the preset target power condition.
[0096] Through the methods described in the above embodiments, software development enables the host computer to set the operating mode of the prototype under test via ADB, and simultaneously sets the signal generator via GPIB / RJ45 to bring the prototype under test to a state that meets the measurement requirements. The host computer then controls the measuring equipment (audio analyzer) via APIB / GPIB to measure and record the parameters. This method can reduce the workload of measurement personnel, improve measurement efficiency, and reduce potential errors introduced by manual operation.
[0097] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the vehicle audio performance testing method of this application. Any simple modifications based on this technical concept are within the protection scope of this application.
[0098] This application also provides an in-vehicle audio performance testing system; please refer to... Figure 6 The vehicle-mounted audio performance testing system includes a host computer, a signal generator, a test sample, and an audio analyzer. The host computer includes: The first instruction sending module 10 is used to send parameter setting instructions to the signal generator so that the signal generator can generate radio frequency signals based on the parameter setting instructions and send the radio frequency signals to the test sample through the radio frequency output interface. The second instruction sending module 20 is used to send Android Debug Bridge (ADB) instructions to the prototype under test (DUT), so that the DUT can respond to the ADB instructions and the radio frequency signals to perform functional mode operations, generate audio signals, and output the audio signals to the audio output interface. The third instruction sending module 30 is used to send control instructions to the audio analyzer so that the audio analyzer can set the measurement mode based on the control instructions, and receive the audio signal from the audio output interface of the sample under test through the audio input interface, and measure the audio signal to obtain measurement parameters. The test module 40 is used to read the measurement parameters returned by the audio analyzer and perform power adjustment judgment and control based on the measurement parameters until the output power of the test sample reaches the preset target power condition. The distortion value under the preset target power condition is obtained and recorded as the measurement parameter of the vehicle audio performance. The signal generator includes: The first instruction receiving module 50 is used to receive parameter setting instructions sent by the host computer; Generation module 60 is used to generate radio frequency signals based on the parameter setting instructions; The signal transmission module 70 is used to send the radio frequency signal to the prototype under test (DUT) through the radio frequency output interface, so that the DUT can perform functional mode operation based on the radio frequency signal and the ADB command sent by the host computer, generate an audio signal, and output the audio signal to the audio output interface; the audio signal is received and measured by the audio analyzer to obtain measurement parameters; the host computer reads the measurement parameters and performs power adjustment judgment and control based on the measurement parameters until the output power of the DUT reaches the preset target power condition, and obtains and records the distortion value under the preset target power condition as the measurement parameter of the vehicle audio performance; The test sample includes: The second instruction receiving module 80 is used to receive ADB instructions sent by the host computer and radio frequency signals sent by the signal generator. The response module 90 is used to perform functional mode operation in response to the ADB command and the radio frequency signal, and to generate an audio signal; The output module 100 is used to output the audio signal to the audio output interface, so that the audio analyzer can receive the audio signal from the audio output interface of the test sample through the audio input interface and measure it to obtain measurement parameters; the host computer reads the measurement parameters and performs power adjustment judgment and control based on the measurement parameters until the output power of the test sample reaches the preset target power condition, and obtains and records the distortion value under the preset target power condition as the measurement parameter of the vehicle audio performance; The audio analyzer includes: The third instruction receiving module 101 is used to receive control instructions sent by the host computer; Measurement module 102 is used to set the measurement mode based on the control command to obtain the required measurement parameters, and to receive the audio signal from the audio output interface of the sample under test through the audio input interface, and to measure the audio signal to obtain the measurement parameters. The parameter sending module 103 is used to send the measurement parameters to the host computer, so that the host computer can perform power adjustment judgment and control based on the measurement parameters until the output power of the test sample reaches the preset target power condition, and acquire and record the distortion value under the preset target power condition as the measurement parameter of the vehicle audio performance.
[0099] The in-vehicle audio performance testing system provided in this application, employing the in-vehicle audio performance testing method described in the above embodiments, can solve the technical problem of reducing testing complexity and improving testing efficiency when testing the performance of in-vehicle audio devices. Compared with the prior art, the beneficial effects of the in-vehicle audio performance testing system provided in this application are the same as those of the in-vehicle audio performance testing method provided in the above embodiments, and other technical features of the in-vehicle audio performance testing system are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0100] This application provides an in-vehicle audio performance testing device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the in-vehicle audio performance testing method in the above embodiment 1.
[0101] The following is for reference. Figure 7The diagram illustrates a structural schematic of an in-vehicle audio performance testing device suitable for implementing embodiments of this application. The in-vehicle audio performance testing device in this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 7 The in-vehicle audio performance testing equipment shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0102] like Figure 7 As shown, the in-vehicle audio performance testing equipment may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory 1002 or a program loaded from a storage device 1003 into a random access memory 1004. The random access memory 1004 also stores various programs and data required for the operation of the in-vehicle audio performance testing equipment. The processing unit 1001, the read-only memory 1002, and the random access memory 1004 are interconnected via a bus 1005. An input / output interface 1006 is also connected to the bus. Typically, the following systems can be connected to the input / output interface 1006: input devices 1007 including, for example, a touchscreen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. The communication device 1009 allows the in-vehicle audio performance testing equipment to communicate wirelessly or wiredly with other devices to exchange data. Although the figure shows an in-vehicle audio performance testing equipment with various systems, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.
[0103] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0104] The vehicle audio performance testing equipment provided in this application, employing the vehicle audio performance testing method described in the above embodiments, solves the technical problem of reducing testing complexity and improving testing efficiency when testing the performance of vehicle audio devices. Compared with the prior art, the beneficial effects of the vehicle audio performance testing equipment provided in this application are the same as those of the vehicle audio performance testing method provided in the above embodiments, and other technical features of this vehicle audio performance testing equipment are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0105] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0106] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0107] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the vehicle audio performance testing method in the above embodiments.
[0108] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0109] The aforementioned computer-readable storage medium may be included in the vehicle audio performance testing equipment; or it may exist independently and not be installed in the vehicle audio performance testing equipment.
[0110] The aforementioned computer-readable storage medium carries one or more programs. When these programs are executed by the vehicle-mounted audio performance testing equipment, the vehicle-mounted audio performance testing equipment: sends parameter setting instructions to a signal generator, so that the signal generator generates a radio frequency signal based on the parameter setting instructions and sends the radio frequency signal to the test device through the radio frequency output interface; the host computer sends an ADB instruction to the test device, so that the test device responds to the ADB instruction and the radio frequency signal to perform a function mode operation, generate an audio signal, and output the audio signal to the audio output interface; the host computer sends a control instruction to an audio analyzer, so that the audio analyzer sets a measurement mode based on the control instruction, receives the audio signal from the audio output interface of the test device through the audio input interface, measures the audio signal to obtain measurement parameters; reads the measurement parameters returned by the audio analyzer, and performs power adjustment judgment and control based on the measurement parameters until the output power of the test device reaches a preset target, and obtains and records the distortion value under the preset target power condition as the measurement parameter of the vehicle-mounted audio performance.
[0111] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof. These programming languages include object-oriented programming languages—such as Java, Smalltalk, C++, and Python—and conventional procedural programming languages—such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0112] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0113] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0114] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described vehicle audio performance testing method. This solves the technical problem of reducing testing complexity and improving testing efficiency when testing the performance of vehicle audio devices. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the vehicle audio performance testing method provided in the above embodiments, and will not be repeated here.
[0115] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the vehicle audio performance testing method described above.
[0116] The computer program product provided in this application solves the technical problem of reducing testing complexity and improving testing efficiency when testing the performance of in-vehicle audio equipment. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the in-vehicle audio performance testing method provided in the above embodiments, and will not be repeated here.
[0117] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
Claims
1. A method for testing audio performance in a vehicle, characterized in that, The vehicle-mounted audio performance test method is applied to an upper computer, and the vehicle-mounted audio performance test method comprises: sending a parameter setting instruction to a signal generator, so that the signal generator generates a radio frequency signal based on the parameter setting instruction and sends the radio frequency signal to a to-be-tested prototype through a radio frequency output interface; sending an Android Debug Bridge (ADB) instruction to the to-be-tested prototype, so that the to-be-tested prototype executes a function mode operation in response to the ADB instruction and the radio frequency signal, generates an audio signal, and outputs the audio signal to an audio output interface; sending a control instruction to an audio analyzer, so that the audio analyzer sets a measurement mode based on the control instruction, receives the audio signal of the audio output interface of the to-be-tested prototype through an audio input interface, and measures the audio signal to obtain a measurement parameter; reading the measurement parameter returned by the audio analyzer, and performing power adjustment judgment and control based on the measurement parameter until the output power of the to-be-tested prototype reaches a preset target power condition, obtaining and recording a distortion value under the preset target power condition as a measurement parameter of vehicle-mounted audio performance.
2. The method of claim 1, wherein, The step of sending an Android Debug Bridge (ADB) instruction to the to-be-tested prototype, so that the to-be-tested prototype executes a function mode operation in response to the ADB instruction and the radio frequency signal, and generates an audio signal comprises: sending a first ADB instruction to the to-be-tested prototype to start a broadcast application; and / or sending a second ADB instruction to the to-be-tested prototype to simulate an FM / AM receiving function in the broadcast application and execute a station searching operation, so that the to-be-tested prototype locks the radio frequency signal and outputs a corresponding audio signal; and / or sending a third ADB instruction to the to-be-tested prototype to start a music playing application; and / or sending a fourth ADB instruction to the to-be-tested prototype to simulate a Bluetooth / USB music playing function in the music playing application and output a corresponding audio signal.
3. The method of claim 1, wherein the vehicle audio performance test is performed in a vehicle. The step of performing power adjustment judgment and control based on the measurement parameter until the output power of the to-be-tested prototype reaches a preset target power condition, obtaining and recording a distortion value under the preset target power condition as a measurement parameter of vehicle-mounted audio performance comprises: determining a currently measured power indication value of the audio analyzer based on the measurement parameter; comparing the currently measured power indication value with a preset target power value; if the currently measured power indication value meets the preset target power value, sending a switching instruction to the audio analyzer, so that the audio analyzer switches the measurement mode to a distortion measurement mode based on the switching instruction; reading a distortion value returned by the audio analyzer in the distortion measurement mode, and taking the distortion value as a measurement parameter of vehicle-mounted audio performance that meets the preset target power condition; if the currently measured power indication value does not meet the preset target power value, sending an ADB instruction of volume adjustment to the to-be-tested prototype, so that the to-be-tested prototype adjusts the gain of audio output based on the ADB instruction and outputs an audio signal with adjusted gain. The audio analyzer controls the power measurement of the gain-adjusted audio signal, obtains the updated power indication returned by the audio analyzer, and returns to the comparison step until the distortion value meeting the preset target power condition is obtained.
4. A method for testing audio performance of a vehicle, characterized in that, The vehicle-mounted audio performance test method is applied to a signal generator, and the vehicle-mounted audio performance test method comprises: receiving a parameter setting instruction sent by an upper computer; generating a radio frequency signal based on the parameter setting instruction; sending the radio frequency signal to a to-be-tested sample machine through a radio frequency output interface, so that the to-be-tested sample machine performs a function mode operation based on the radio frequency signal and an ADB instruction sent by the upper computer, generates an audio signal, and outputs the audio signal to an audio output interface; the audio signal is received and measured by an audio analyzer to obtain measurement parameters; the upper computer reads the measurement parameters and performs power adjustment judgment and control based on the measurement parameters until the output power of the to-be-tested sample machine reaches a preset target power condition, and a distortion value under the preset target power condition is obtained and recorded as a measurement parameter of the vehicle-mounted audio performance.
5. A method for testing audio performance of a vehicle, characterized in that, The vehicle-mounted audio performance test method is applied to a to-be-tested sample machine, and the vehicle-mounted audio performance test method comprises: receiving an ADB instruction sent by an upper computer and a radio frequency signal sent by a signal generator; performing a function mode operation in response to the ADB instruction and the radio frequency signal, and generating an audio signal; outputting the audio signal to an audio output interface, so that an audio analyzer receives the audio signal of the audio output interface of the to-be-tested sample machine through an audio input interface and measures it to obtain measurement parameters; the upper computer reads the measurement parameters and performs power adjustment judgment and control based on the measurement parameters until the output power of the to-be-tested sample machine reaches a preset target power condition, and a distortion value under the preset target power condition is obtained and recorded as a measurement parameter of the vehicle-mounted audio performance.
6. The method of claim 5, wherein the vehicle audio performance test is performed by a vehicle audio performance test device. The step of performing a function mode operation in response to the ADB instruction and the radio frequency signal, and generating an audio signal comprises: receiving a first ADB instruction sent by an upper computer, and starting a broadcast application program based on the first ADB instruction; and / or receiving a second ADB instruction sent by the upper computer, and simulating an FM / AM receiving function in the broadcast application program based on the second ADB instruction, and performing a station searching operation, locking the radio frequency signal and outputting a corresponding audio signal; and / or after completing the performance index measurement of the FM / AM receiving function, receiving a third ADB instruction sent by the upper computer, and starting a music playing application program based on the third ADB instruction; and / or receiving a fourth ADB instruction sent by the upper computer, and simulating a Bluetooth / USB music playing function in the music playing application program based on the fourth ADB instruction, and outputting a corresponding audio signal.
7. The method of claim 5, wherein the vehicle audio performance test is performed by a vehicle audio performance test device. After the step of outputting the audio signal to the audio output interface, the following steps are further included: receiving an ADB instruction for volume adjustment sent by an upper computer; adjusting the gain of audio output based on the ADB instruction, and outputting a gain-adjusted audio signal; Output the audio signal with the adjusted output gain through the audio output interface.
8. A method for testing audio performance of a vehicle, characterized in that, The vehicle-mounted audio performance test method is applied to an audio analyzer, and the vehicle-mounted audio performance test method comprises: receiving a control instruction sent by the host computer; setting a measurement mode based on the control instruction to obtain measurement parameters, and receiving an audio signal of an audio output interface of the sample machine to be tested through an audio input interface, measuring the audio signal to obtain the measurement parameters; sending the measurement parameters to the host computer, so that the host computer performs power adjustment judgment and control based on the measurement parameters until the output power of the sample machine to be tested reaches a preset target power condition, and obtains and records a distortion value under the preset target power condition as a measurement parameter of the vehicle-mounted audio performance.
9. An in-vehicle audio performance test system, characterized by, The vehicle-mounted audio performance test system comprises a host computer, a signal generator, a sample machine to be tested, and an audio analyzer. The host computer comprises: a first instruction sending module configured to send a parameter setting instruction to the signal generator, so that the signal generator generates a radio frequency signal based on the parameter setting instruction and sends the radio frequency signal to the sample machine to be tested through a radio frequency output interface; a second instruction sending module configured to send an Android Debug Bridge (ADB) instruction to the sample machine to be tested, so that the sample machine to be tested performs a function mode operation in response to the ADB instruction and the radio frequency signal, generates an audio signal, and outputs the audio signal to an audio output interface; a third instruction sending module configured to send a control instruction to the audio analyzer, so that the audio analyzer sets a measurement mode based on the control instruction and receives an audio signal of an audio output interface of the sample machine to be tested through an audio input interface, and measures the audio signal to obtain measurement parameters; a test module configured to read the measurement parameters returned by the audio analyzer, and perform power adjustment judgment and control based on the measurement parameters until the output power of the sample machine to be tested reaches a preset target power condition, and obtain and record a distortion value under the preset target power condition as a measurement parameter of the vehicle-mounted audio performance. The signal generator comprises: a first instruction receiving module configured to receive a parameter setting instruction sent by the host computer; a generation module configured to generate a radio frequency signal based on the parameter setting instruction; a signal sending module configured to send the radio frequency signal to the sample machine to be tested through a radio frequency output interface, so that the sample machine to be tested performs a function mode operation based on the radio frequency signal and an ADB instruction sent by the host computer, generates an audio signal, and outputs the audio signal to an audio output interface; the audio signal is received and measured by the audio analyzer to obtain measurement parameters, the host computer reads the measurement parameters and performs power adjustment judgment and control based on the measurement parameters until the output power of the sample machine to be tested reaches a preset target power condition, and obtains and records a distortion value under the preset target power condition as a measurement parameter of the vehicle-mounted audio performance. The sample machine to be tested comprises: a second instruction receiving module configured to receive an ADB instruction sent by the host computer and a radio frequency signal sent by the signal generator; a response module configured to perform a function mode operation in response to the ADB instruction and the radio frequency signal, and generate an audio signal; The output module is configured to output the audio signal to an audio output interface, so that an audio analyzer receives an audio signal of the audio output interface of the to-be-tested prototype through an audio input interface and performs measurement to obtain a measurement parameter; the host computer reads the measurement parameter and performs power adjustment judgment and control based on the measurement parameter until the output power of the to-be-tested prototype reaches a preset target power condition, and obtains and records a distortion value under the preset target power condition as a measurement parameter of the vehicle-mounted audio performance; The audio analyzer comprises: The third instruction receiving module is configured to receive a control instruction sent by the host computer; The measurement module is configured to set a measurement mode based on the control instruction to obtain a required measurement parameter, and receive an audio signal of the audio output interface of the to-be-tested prototype through the audio input interface, and measure the audio signal to obtain a measurement parameter; The parameter sending module is configured to send the measurement parameter to the host computer, so that the host computer performs power adjustment judgment and control based on the measurement parameter until the output power of the to-be-tested prototype reaches a preset target power condition, and obtains and records a distortion value under the preset target power condition as a measurement parameter of the vehicle-mounted audio performance.
10. An in-vehicle audio performance test apparatus characterized by comprising: The device comprises a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the vehicle-mounted audio performance test method according to any one of claims 1 to 8.
11. A storage medium, characterized by The storage medium is a computer readable storage medium, and the storage medium stores a computer program. When the computer program is executed by the processor, the steps of the vehicle-mounted audio performance test method according to any one of claims 1 to 8 are implemented.
