Method and system for testing stability of Bluetooth audio playing of Android vehicle-mounted system
Through audio feature recognition algorithms and test scripts, stability testing of vehicle Bluetooth audio playback functions is solved, and the problem of lack of stability testing in the existing technology is realized, and effective stability detection and analysis of vehicle Bluetooth audio playback functions is realized.
Patent Information
- Application Number
- CN202411493542.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-24
- Publication Date
- 2025-03-07
AI Technical Summary
The existing technology lacks a stability test solution for the on-board Bluetooth audio playback function, which leads to the stability problems of on-board Bluetooth audio playback from time to time, affecting the user experience.
The audio feature recognition algorithm is used to generate single-frequency sound files and spectrum analysis, combine with the fast Fourier transform algorithm to extract the decibel value of the sound frequency, calibrate the threshold for sound detection, and perform a large amount of audio playback operations on the vehicle Bluetooth audio playback function through test scripts, collect sound and picture data in real time, compare whether it is consistent, and automatically save inconsistent audio and video records.
The stability test of the on-board Bluetooth audio playback function is realized, saving manpower, shortening test time, improving testing efficiency, and ensuring the stability of on-board Bluetooth audio playback.
Smart Images

Figure CN119584036A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of automobile testing, and in particular relates to a stability testing method and system for Bluetooth audio playback of an Android vehicle-mounted system. Background Art
[0002] With the rapid development of automobile intelligence, the in-car Bluetooth audio playback function has become one of the standard configurations of modern cars, and many car manufacturers' car systems are developed based on the Android operating system. However, in actual use, stability problems of in-car Bluetooth audio playback often occur, seriously affecting the user experience. At present, there is no solution in the industry to conduct stability testing on the in-car Bluetooth audio playback function. The closest technical solutions in the industry are to test the functions or performance of Bluetooth connection and Bluetooth calls, or simple functional tests of in-car Bluetooth music playback, which do not involve stability testing scenarios. Therefore, there is a technical gap in the industry for stability testing of in-car Bluetooth audio playback functions.
[0003] In summary, the prior art has the problem that there is only a simple functional test for the in-vehicle Bluetooth audio playback, but lacks a stability test for the in-vehicle Bluetooth audio playback. Summary of the invention
[0004] The purpose of this section is to summarize some aspects of the embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and the invention title of the present invention to avoid blurring the purpose of this section, the specification abstract and the invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.
[0005] Therefore, the purpose of the present invention is to provide a method and system for testing the stability of Bluetooth audio playback in an Android vehicle system, which can solve the problem that the prior art only has simple functional tests for vehicle-mounted Bluetooth audio playback, but lacks stability tests for vehicle-mounted Bluetooth audio playback. The present invention provides a method and system for testing the stability of Bluetooth audio playback in an Android vehicle system, and the method and system for testing the stability of Bluetooth audio playback in an Android vehicle system include: step S1: using audio production software to generate a single-frequency sound file within 8000Hz, and using the audio production software to perform spectrum analysis on the sound file, and then importing the single-frequency sound file into a smart phone, and connecting an external power supply; Step S2: Programming and implementing an audio feature recognition algorithm; Step S3: Use programming software to implement the test case into a test script, set the number of tests required in the script, and then start the test; Step S4: During the test, the specific main control device operates the in-vehicle Bluetooth audio playback function through the Android debugging command according to the definition of the test script, and the playback volume of the in-vehicle central control host and the smart phone is set to the volume used when determining the threshold. At the same time, the specific main control device collects the sound played by the in-vehicle speaker, the display screen connected to the in-vehicle central control host and the smart phone screen in real time, and compares the current actual audio frequency played with the audio information displayed by the in-vehicle central control host collected by the screen to see if they are consistent, and completes the test within a few seconds; Step S5: Record the test results. If the comparison results in step S4 are inconsistent, the specific main control device automatically saves the audio and video records. Then continue to execute the next test script, repeating until the set number of tests is reached.
[0006] Optionally, the step S2.1: extracting the decibel value of the sound frequency: the program calls the audio and video acquisition of the specific main control device, collects real-time audio data, and extracts the decibel value of the target frequency involved in the sound file in step S1 in combination with the fast Fourier transform algorithm; Step S2.2: calibrating the threshold for sound detection: It is required that the environmental noise of the specific main control device and the object under test is low. When the target sound file is not played, the specific main control device is used to monitor the decibel value of the target sound frequency in the environmental noise for one hour, and the highest decibel value A of the target frequency is recorded. Then, the tested vehicle central control host and the smart phone in step S1 are connected by Bluetooth, and each sound file produced in step S1 is played in turn through the vehicle Bluetooth audio playback function, and the volume is adjusted to an appropriate volume to ensure that the specific main control device can monitor that the lowest decibel value B of the target sound frequency is at least twice or more than A, and then determine that the value slightly lower than the B value is the specified threshold; Step S2.3: Implement result judgment logic: The program judges whether the decibel value of the target frequency collected in real time exceeds the above threshold. If it exceeds the threshold and meets the specified conditions, it is judged that the sound is playing.
[0007] Optionally, there are at least three single-frequency sound files described in step S1.
[0008] Optionally, the environmental noise level in step S2.2 is lower than 45 decibels.
[0009] Optionally, the audio and video acquisition in step S2.1 is a microphone for audio acquisition and a camera for video acquisition.
[0010] Optionally, the specific main control device module is used to run Android debugging software, common programming software and audio production software, including a script control logic module, a result generation logic module, a sound detection logic module, and an abnormality recording logic module; An audio and video acquisition module is connected to the sound detection logic module of the specific main control device module through a data line, and is used to transmit the acquired audio and video to the specific main control device module; The vehicle-mounted central control host module is connected to the specific main control device module via a data cable and connected to the smartphone via Bluetooth for subsequent comparative testing.
[0011] Optionally, the script control logic module is used to execute control logic including test scripts and test times; Result generation logic module, used to generate test reports; The sound detection logic module is used to execute the audio feature recognition algorithm and related judgment logic, including judging whether the decibel value of the target frequency meets the standard; The exception recording logic module is used to automatically save audio and video records and then continue to execute the next test script.
[0012] In summary, the present invention includes at least one of the following beneficial effects: The present invention adopts an audio feature recognition algorithm to calibrate the threshold for sound detection, constrains the audio that meets the stability requirement, and then automatically detects the sound data generated by a large number of audio playback operations of the vehicle-mounted Bluetooth music system through a test script, thereby achieving the effect of testing the playback stability of the vehicle-mounted Bluetooth music system, saving manpower and shortening the time. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0014] Figure 1 A system structure diagram of a stability testing method and system for Bluetooth audio playback of an Android vehicle system of the present invention; Figure 2 A method and system for testing the stability of Bluetooth audio playback in an Android vehicle system of the present invention; DETAILED DESCRIPTION
[0015] The following is combined with Figure 1-2 The present invention is described in further detail.
[0016] Embodiment 1, refer to Figure 1-2In order to solve the problem that the prior art only has simple functional tests for in-vehicle Bluetooth audio playback and lacks stability tests for in-vehicle Bluetooth audio playback, the present embodiment discloses a stability test method and system for Bluetooth audio playback in an Android in-vehicle system, and a stability test method for Bluetooth audio playback in an Android in-vehicle system, comprising step S1: according to the normal hearing detection frequency range of the human ear (within 8000Hz), using audio production software to generate single-frequency sound files within 8000Hz (at least 3, the sound frequency used in each file is the target frequency for subsequent monitoring), and using audio production software to perform spectrum analysis on the sound files to ensure that there is no frequency overlap in the generated files, and then importing these single-frequency sound files into a smart phone and connecting an external power supply.
[0017] Step S2: Programming to implement the audio feature recognition algorithm: Step S2.1: Extracting the decibel value of the sound frequency: The program calls the audio acquisition device (such as a microphone) of a specific main control device to collect real-time audio data, and extracts the decibel value of the target frequency involved in the sound file in the above steps in combination with the fast Fourier transform algorithm.
[0018] Step S2.2: Calibrate the threshold for sound detection: The specific main control device and the object under test are required to be in an environment with low noise (less than 45 decibels). When the target sound file is not played, the specific main control device is used to monitor the decibel value of the target sound frequency in the environmental noise for a period of time (for example, 1 hour), and the highest decibel value A of the target frequency is recorded. Then, the vehicle-mounted central control host under test and the smartphone in step 1 are connected via Bluetooth, and each sound file produced in step 1 is played in turn through the vehicle-mounted Bluetooth audio playback function, and the volume is adjusted to an appropriate volume to ensure that the specific main control device can monitor that the lowest decibel value B of the target sound frequency is at least twice or more than A, and then a value slightly lower than the B value is determined as the specified threshold.
[0019] Step S2.3: Implement result judgment logic: The program judges whether the decibel value of the target frequency collected in real time exceeds the above threshold. If it exceeds the threshold and meets the specified conditions (such as time exceeding 3 seconds), it is judged that the sound is playing.
[0020] Step S3: Use programming software to implement the test case as a test script, set the number of tests required in the script, and then start the test.
[0021] Step S4: During the test, the specific main control device operates the vehicle Bluetooth audio playback function (such as song switching, pause / resume, etc.) through Android debugging commands according to the definition of the test script. The playback volume of the vehicle central control host and the smart phone is set to the volume used when determining the threshold. At the same time, the specific main control device collects the sound played by the vehicle speakers, the display screen connected to the vehicle central control host and the smart phone screen in real time, and compares the actual audio frequency being played with the audio information displayed by the vehicle central control host collected by the screen to see if they are consistent. The detection is completed within a few seconds.
[0022] Step S5: Record the test results. If the comparison results in step 4 are inconsistent, the specific main control device automatically saves the audio and video records. Then continue to execute the next test script, repeating until the set number of tests is reached.
[0023] An Android vehicle-mounted system Bluetooth audio playback stability test system using the above method includes a specific main control device module for running Android debugging software, common programming software and audio production software, including a script control logic module, a result generation logic module, a sound detection logic module, and an abnormal recording logic module. The script control logic module is used to execute the control logic including the test script and the test number; the result generation logic module is used to generate a test report; the sound detection logic module is used to execute the audio feature recognition algorithm and related judgment logic, including judging whether the decibel value of the target frequency meets the standard; the abnormal recording logic module is used to automatically save the audio and video records, and then continue to execute the next test; An audio and video acquisition module is connected to the sound detection logic module of the specific main control device module through a data line, and is used to transmit the detected audio and video to the specific main control device module; The vehicle-mounted central control host module is connected to a specific main control device module via a data cable (such as a USB cable). The central control host turns on the USB debugging function and is connected to the smartphone via Bluetooth for subsequent comparative testing.
[0024] Specific implementation principle: First, use audio production software to generate a single-frequency sound file within 8000Hz to ensure that there is no frequency overlap, import the single-frequency sound file into the mobile phone, connect the mobile phone and the vehicle-mounted central control host module via Bluetooth, and play the sound file in the above steps. The specific main control device module collects the sound and extracts the decibel value of the target frequency involved in the sound file in the above steps in combination with the fast Fourier transform algorithm. The threshold and specified conditions are determined by the audio feature recognition algorithm, the specific main control device module is connected to the vehicle-mounted central control host module, and the test script is written and executed. The vehicle-mounted Bluetooth audio playback function (such as song switching, The playback volume of the vehicle central control host module and the smart phone is set to the volume used when determining the threshold value. The sound played by the vehicle central control host module is collected using a specific main control device module to determine whether the audio frequency actually played and the audio information displayed by the vehicle central control host module collected by the screen are consistent. Regardless of whether they are consistent, the test results must be recorded. Before the specified number of tests is reached, the test script will be looped until the set number of tests is completed. However, for inconsistent data, the specific main control device module will automatically save the audio and video records to facilitate the output test result analysis of the fault and determine the stability of the vehicle Bluetooth audio.
[0025] The above are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for testing the stability of Bluetooth audio playback in an Android vehicle system, characterized in that: The following steps are involved: Step S1: Generate a single-frequency sound file within 8000 Hz using audio production software, perform spectrum analysis on the sound file using the audio production software, import the single-frequency sound file into the smart phone, and then connect the external power supply; Step S2: Programming and implementing an audio feature recognition algorithm; Step S3: Use programming software to implement the test case into a test script, set the number of tests required in the script, and then start the test; Step S4: During the test, the specific main control device operates the in-vehicle Bluetooth audio playback function through the Android debugging command according to the definition of the test script, and the playback volume of the in-vehicle central control host and the smart phone is set to the volume used when determining the threshold. At the same time, the specific main control device collects the sound played by the in-vehicle speaker, the display screen connected to the in-vehicle central control host and the smart phone screen in real time, and compares the current actual audio frequency played with the audio information displayed by the in-vehicle central control host collected by the screen to see if they are consistent, and completes the test within a few seconds; Step S5: Record the test results. If the comparison results in step S4 are inconsistent, the specific main control device automatically saves the audio and video records. Then continue to execute the next test script, repeating until the set number of tests is reached.
2. According to claim 1, a method for testing the stability of Bluetooth audio playback in an Android vehicle system is characterized in that: The step S2 comprises the following steps: Step S2.1: Extracting the decibel value of the sound frequency: The program calls the audio and video acquisition of a specific main control device, collects real-time audio data, and extracts the decibel value of the target frequency involved in the sound file in step S1 in combination with the fast Fourier transform algorithm; Step S2.2: calibrate the threshold for sound detection: the specific main control device and the object under test are required to be in an environment with low noise. When the target sound file is not played, the specific main control device is used to monitor the decibel value of the target sound frequency in the environmental noise for one hour, and the highest decibel value A of the target frequency is recorded. Then, the vehicle-mounted central control host under test and the smartphone in step S1 are connected by Bluetooth, and each sound file produced in step S1 is played in turn through the vehicle-mounted Bluetooth audio playback function, and the volume is adjusted to an appropriate volume to ensure that the specific main control device can monitor that the lowest decibel value B of the target sound frequency is greater than or equal to twice of A, and then the value less than the value B is determined to be the specified threshold; Step S2.3: Implement result judgment logic: The program judges whether the decibel value of the target frequency collected in real time exceeds the above threshold. If it exceeds the threshold and meets the specified conditions, it is judged that the sound is playing.
3. According to claim 1, a method for testing the stability of Bluetooth audio playback in an Android vehicle system is characterized in that: The number of the single-frequency sound files in step S1 is at least 3.
4. The method for testing the stability of Bluetooth audio playback in an Android vehicle-mounted system according to claim 2, characterized in that: The environmental noise level in step S2.2 is lower than 45 decibels.
5. The method for testing the stability of Bluetooth audio playback in an Android vehicle-mounted system according to claim 2, characterized in that: The audio and video acquisition in step S2.1 is a microphone for audio acquisition and a camera for video acquisition.
6. A stability test system for Bluetooth audio playback of an Android vehicle system using the method described in claim 1, characterized in that: It includes a specific master control device module for running Android debugging software, common programming software, and audio production software, including a script control logic module, a result generation logic module, a sound detection logic module, and an abnormality recording logic module; An audio and video acquisition module is connected to the sound detection logic module of the specific main control device module through a data line, and is used to transmit the acquired audio and video to the specific main control device module; The vehicle-mounted central control host module is connected to the specific main control device module via a data cable and connected to the smartphone via Bluetooth for subsequent comparative testing.
7. The stability test system for Bluetooth audio playback of an Android vehicle-mounted system according to claim 6, characterized in that: The script control logic module is used to execute the control logic including the test script and the test times; Result generation logic module, used to generate test reports; The sound detection logic module is used to execute the audio feature recognition algorithm and related judgment logic, including judging whether the decibel value of the target frequency meets the standard; The exception recording logic module is used to automatically save audio and video records and then continue to execute the next test script.