Automated testing method and apparatus for vehicle acoustic warning systems
By using automated testing methods and an integrated testing framework, combined with navigation modules, vehicle acoustic alarm systems, and in-vehicle infotainment systems, vehicle speed and audio data are analyzed, solving the problem of testing accuracy of new energy vehicle acoustic alarm systems in real road environments, and improving the reliability and safety of testing.
Patent Information
- Application Number
- CN202411109179.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2044-08-13
AI Technical Summary
In existing technologies, the test results of the vehicle acoustic alarm system of new energy vehicles at low speeds are not accurate enough and cannot reflect the accuracy of laboratory tests in actual road conditions, which leads to an increased risk of traffic accidents.
An automated testing method is adopted to acquire real-time vehicle speed data and audio data, analyze whether the sound amplitude trend conforms to the vehicle speed range and trend, and conduct integrated testing using navigation module, vehicle acoustic alarm system, reference sound module and in-vehicle infotainment system to ensure the purity and integrity of audio data. The automated testing service module is used for comprehensive analysis.
This improves the testing accuracy of vehicle acoustic alarm systems in real-world road conditions, ensures the accuracy and integrity of audio data, and enhances vehicle driving safety and testing reliability.
Smart Images

Figure CN119198110B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of vehicles, in particular to a method and device for automatically testing a vehicle acoustic alerting system. BACKGROUND
[0002] The production and sales of the automobile industry are steadily and rapidly increasing, and new energy vehicles will become the direction of future automobile development. However, since new energy vehicles are not powered by engines, they lack engine sound, so the outside is exceptionally quiet when driving at low speed, making it difficult for other road users, including pedestrians, cyclists, and especially the blind and visually impaired, to detect the approach of a vehicle, which can lead to traffic accidents. Therefore, in electric vehicles with pure electric driving mode, a vehicle acoustic alerting system (AVAS) is required, which can emit a warning tone when driving at low speed to reduce the probability of traffic accidents with pedestrians.
[0003] Currently, the test of the low-speed warning tone system is limited to the laboratory, and there are differences between the laboratory environment and the actual road environment, which leads to inaccurate AVAS test results. SUMMARY
[0004] The present application provides a method and device for automatically testing a vehicle acoustic alerting system to solve the problem of inaccurate AVAS test results.
[0005] In a first aspect, the present application provides a method for automatically testing a vehicle acoustic alerting system, the method comprising:
[0006] obtaining real-time vehicle speed data and audio data for low-speed warning based on the vehicle acoustic alerting system;
[0007] analyzing the vehicle speed data and the audio data to determine whether the sound amplitude trend in the audio data conforms to the vehicle speed range and vehicle speed trend in the vehicle speed data;
[0008] If it is consistent, it is determined that the vehicle acoustic alerting system passes the test.
[0009] Optionally, analyzing the vehicle speed data and the audio data to determine whether the sound amplitude trend in the audio data conforms to the vehicle speed range and vehicle speed trend in the vehicle speed data comprises:
[0010] determining adjacent first and second audio segments in the audio data, and comparing the sound amplitude of the first audio segment with the sound amplitude of the second audio segment to determine the current sound amplitude trend;
[0011] determining a first time corresponding to the first audio segment and a second time corresponding to the second audio segment;
[0012] determining a vehicle speed at the first time and a vehicle speed at the second time in the vehicle speed data;
[0013] determining a current vehicle speed range according to the vehicle speed at the first time, and determining a current vehicle speed trend by comparing the vehicle speed at the first time and the vehicle speed at the second time;
[0014] determining whether the current sound amplitude trend conforms to the current vehicle speed range and the current vehicle speed trend according to a set relationship among the vehicle speed range, the vehicle speed trend and the sound amplitude trend.
[0015] Optionally, the set relationship among the vehicle speed range, the vehicle speed trend and the sound amplitude trend is:
[0016] when the vehicle speed increases between 0 and m, the sound amplitude gradually decreases with the increase of the vehicle speed; when the vehicle speed increases between m and n, the sound amplitude continues to decrease with the increase of the vehicle speed; when the vehicle speed exceeds n, the sound amplitude decreases to a mute state;
[0017] when the vehicle speed is in a range greater than n, the sound amplitude remains in a mute state; in the process of reducing the vehicle speed from n to m, the sound amplitude gradually increases with the decrease of the vehicle speed; when the vehicle speed further decreases to the interval of m to 0, the sound amplitude decreases with the decrease of the vehicle speed;
[0018] wherein m and n are positive integers, and m < n.
[0019] Optionally, after determining that the vehicle acoustic warning system test is passed, the method further comprises:
[0020] building a two-dimensional rectangular coordinate system with time as the horizontal coordinate and sound amplitude and vehicle speed as the vertical coordinates, respectively;
[0021] determining a curve of the vehicle speed and the sound amplitude changing with time according to the test result, and displaying the curve in the two-dimensional rectangular coordinate system.
[0022] Optionally, the real-time vehicle speed data is sent by a navigation module based on GPS signal calculation, and after obtaining the real-time vehicle speed data, the method further comprises:
[0023] obtaining vehicle speed data based on an instrument panel from a log;
[0024] calculating an error between the vehicle speed data based on the GPS signal of the vehicle and the vehicle speed data based on the instrument panel;
[0025] if the error does not exceed a set error range, the error is included in the vehicle speed range.
[0026] Optionally, obtaining the audio data for low-speed warning based on the vehicle acoustic warning system comprises:
[0027] obtaining the audio data generated by the vehicle acoustic warning system but not played by the speaker by using a reference sound module;
[0028] obtaining the audio data from the reference sound module by the in-vehicle infotainment system.
[0029] In a second aspect, the present application provides a vehicle, comprising a navigation module, a vehicle acoustic warning system, a reference sound module, an in-vehicle infotainment system and an automated test service module:
[0030] The navigation module is configured to calculate real-time vehicle speed data;
[0031] The vehicle acoustic warning system is configured to generate audio data for low-speed warning;
[0032] The reference sound module is connected to the vehicle acoustic warning system and configured to obtain the audio data;
[0033] The in-vehicle infotainment system is connected to the reference sound module and configured to obtain and transmit the audio data;
[0034] The automated test service module is connected to the navigation module and the in-vehicle infotainment system respectively and configured to analyze the vehicle speed data and the audio data, determine whether the sound amplitude trend in the audio data conforms to the vehicle speed range and the vehicle speed trend in the vehicle speed data, and if so, determine that the vehicle acoustic warning system passes the test.
[0035] In a third aspect, the present application provides an automated test device for a vehicle acoustic warning system, comprising:
[0036] An obtaining module configured to obtain real-time vehicle speed data and obtain audio data for low-speed warning based on the vehicle acoustic warning system;
[0037] An analyzing module configured to analyze the vehicle speed data and the audio data, and determine whether the sound amplitude trend in the audio data conforms to the vehicle speed range and the vehicle speed trend in the vehicle speed data;
[0038] A determining module configured to determine that the vehicle acoustic warning system passes the test if the sound amplitude trend in the audio data conforms to the vehicle speed range and the vehicle speed trend in the vehicle speed data.
[0039] In a fourth aspect, the present application provides an electronic device, comprising: at least one communication interface; at least one bus connected with the at least one communication interface; at least one processor connected with the at least one bus; and at least one memory connected with the at least one bus.
[0040] In a fifth aspect, the present application further provides a computer storage medium storing computer executable instructions for executing the method for automatically testing the vehicle acoustic warning system according to any one of the above aspects.
[0041] The above technical solution provided by the embodiments of the present application has the following advantages compared with the prior art: in actual road testing, the automatic testing service module analyzes the actual vehicle speed data and the audio data, and determines that the actual testing meets the algorithm of the vehicle acoustic warning system according to the algorithm limit of the vehicle acoustic warning system itself, that is, the sound amplitude trend in the audio data meets the vehicle speed range and the vehicle speed trend in the vehicle speed data, and then determines that the vehicle acoustic warning system testing is passed. Compared with the laboratory testing in the prior art, the actual road testing in the present application can restore the real environment and improve the accuracy of the vehicle acoustic warning system testing. BRIEF DESCRIPTION OF DRAWINGS
[0042] The accompanying drawings, which are incorporated herein and form a part of the specification, illustrate embodiments consistent with the present application and, together with the description, further serve to explain the principles of the application.
[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced as follows. Obviously, for those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
[0044] One or more embodiments are illustrated by way of example in the drawings that are for illustrative purposes only, and are not intended to limit the scope of the embodiments. Elements having the same reference number in the drawings represent similar elements, unless otherwise specified. The drawings in the accompanying drawings do not constitute a proportional limitation.
[0045] Figure 1 A method flowchart for automatically testing a vehicle acoustic warning system according to an embodiment of the present application is provided.
[0046] Figure 2 A method flowchart for determining whether a condition is met according to an embodiment of the present application is provided.
[0047] Figure 3 A schematic diagram of a real-time recording table according to an embodiment of the present application is provided.
[0048] Figure 4 The AVAS audio schematic diagram provided by the embodiment of the present application is at a vehicle speed of 20 km / h;
[0049] Figure 5 The curve schematic diagram provided by the embodiment of the present application is shown in the figure;
[0050] Figure 6 The overall technical block diagram provided by the embodiment of the present application is shown in the figure;
[0051] Figure 7 The overall flowchart of the automatic testing method of the vehicle acoustic warning system provided by the embodiment of the present application is shown in the figure;
[0052] Figure 8 The structural schematic diagram of the automatic testing device of the vehicle acoustic warning system provided by the embodiment of the present application is shown in the figure;
[0053] Figure 9 The structural schematic diagram of the electronic device provided by the embodiment of the present application is shown in the figure. DETAILED DESCRIPTION
[0054] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor fall within the scope of protection of the present application.
[0055] The following disclosure provides many different embodiments, or examples, for implementing different structures of the present application. For the purpose of simplifying the present application, the components and settings of specific examples are described below. Of course, they are merely examples, and the purpose is not to limit the present application. In addition, the present application can repeatedly refer to numbers and / or letters in different examples. Such repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.
[0056] The present application discloses an automatic testing method of a vehicle acoustic warning system, applied to an automatic testing service module, for improving the accuracy of testing the vehicle acoustic warning system, as shown in Figure 1 The method comprises the following steps:
[0057] Step 101: Obtain real-time vehicle speed data, and obtain audio data for low-speed warning based on the vehicle acoustic warning system.
[0058] Step 102: Determine whether the sound amplitude trend in the audio data conforms to the vehicle speed range and speed trend in the vehicle speed data by analyzing the vehicle speed data and audio data.
[0059] Step 103: If it is consistent, determine that the vehicle acoustic warning system test is passed.
[0060] The automated test service module is the core component of the entire test framework, which can be integrated on mobile terminals such as mobile phones, computers or tablets, or embedded in vehicle terminals. This flexible configuration allows testing in various environments, meeting the needs of different test scenarios. This module is responsible for obtaining real-time vehicle speed data, which can be obtained based on GPS signals or based on instrument panel signals. This diversified data acquisition method ensures the comprehensiveness and accuracy of test data.
[0061] On electric vehicles with pure electric driving mode, a vehicle acoustic warning system (AVAS) is required, which can emit a warning tone when driving at low speed to reduce the probability of traffic accidents with pedestrians. Before the vehicle acoustic warning system emits a warning tone through the horn, it sends the audio data to be emitted to the automated test service module through the reference sound module and the in-vehicle infotainment system (IVI). This process ensures the originality and integrity of the audio data, avoiding external noise interference, and provides an accurate data basis for subsequent sound amplitude trend analysis.
[0062] The automated test service module conducts comprehensive analysis on the collected vehicle speed data and audio data. First, determine the sound amplitude trend in the audio data, which reflects the volume change of the warning tone; second, analyze the speed range and speed trend in the speed data, because the size of the warning tone emitted by AVAS is dynamically adjusted according to the vehicle speed. Specifically, when the vehicle speed increases in the range of 0~m, the volume of the warning tone gradually decreases as the vehicle speed increases; when the vehicle speed increases in the range of m~n, the volume continues to decrease as the vehicle speed increases; when the speed exceeds nkm / h, AVAS no longer emits a warning tone. Conversely, during the process of speed reduction, the change of sound amplitude also presents a corresponding rule. When the vehicle speed is greater than n, AVAS does not emit a warning tone; when the vehicle speed decreases between n~m, the volume of the warning tone gradually increases as the vehicle speed decreases; when the vehicle speed decreases between m~0, the volume decreases as the vehicle speed decreases.
[0063] The set relationship between the speed range, speed trend and sound amplitude trend is as follows.
[0064] I. Vehicle speed increases.
[0065] The sound amplitude decreases with the increase of the vehicle speed in the vehicle speed range of 0-20km / h.
[0066] The sound amplitude decreases with the increase of the vehicle speed in the vehicle speed range of 20-35km / h.
[0067] The sound amplitude is zero in the vehicle speed range of more than 35km / h.
[0068] The vehicle speed decreases.
[0069] The sound amplitude is zero in the vehicle speed range of more than 35km / h.
[0070] The sound amplitude increases with the decrease of the vehicle speed in the vehicle speed range of 35-20km / h.
[0071] The sound amplitude decreases with the decrease of the vehicle speed in the vehicle speed range of 20-0km / h.
[0072] Only when the sound amplitude trend in the audio data conforms to the vehicle speed range and the vehicle speed trend in the vehicle speed data, the vehicle acoustic warning system test is determined to be passed, otherwise, the vehicle acoustic warning system test is determined to be failed.
[0073] In the embodiment of the application, in the actual road test, the automatic test service module analyzes the actual vehicle speed data and the audio data, and determines that the actual test meets the algorithm of the vehicle acoustic warning system when the sound amplitude trend in the audio data conforms to the vehicle speed range and the vehicle speed trend in the vehicle speed data, that is, the vehicle acoustic warning system test is determined to be passed. Compared with the laboratory test in the prior art, the actual road test in the application can restore the real environment and improve the accuracy of the vehicle acoustic warning system test.
[0074] A large number of vehicle acoustic warning system tests in the application can ensure that the function is more reliable and improve the safety of vehicle driving.
[0075] As an optional implementation, whether the sound amplitude trend in the audio data conforms to the vehicle speed range and the vehicle speed trend in the vehicle speed data is determined by analyzing the vehicle speed data and the audio data, as shown in FIG. 2, including the following steps: Figure 2
[0076] Step 201: determining the adjacent first audio segment and second audio segment in the audio data, and determining the current sound amplitude trend by comparing the sound amplitude of the first audio segment and the sound amplitude of the second audio segment;
[0077] Step 202: determining the first time corresponding to the first audio segment and the second time corresponding to the second audio segment;
[0078] Step 203: determining the vehicle speed at the first time and the vehicle speed at the second time in the vehicle speed data;
[0079] Step 204: determining the current vehicle speed range according to the vehicle speed at the first time, and determining the current vehicle speed trend by comparing the vehicle speed at the first time and the vehicle speed at the second time;
[0080] Step 205: determining whether the current sound amplitude trend conforms to the current vehicle speed range and the current vehicle speed trend according to the set relationship among the vehicle speed range, the vehicle speed trend and the sound amplitude trend.
[0081] After the automatic test service module obtains the audio data, the audio data is written into a file for saving. Specifically, if a 200MB-sized audio is saved in the file, subsequent audio data is written into another file, and up to 10 audio files can be saved. The automatic test service module reads the audio segments in the order of audio writing. Specifically, after reading a first audio segment each time, the sound amplitude of the first audio segment is determined, and the sound amplitude is compared with the audio amplitude of a second adjacent audio segment. If the sound amplitude of the first audio segment is larger, it can be determined that the sound amplitude trend is gradually increasing, and vice versa. If the sound amplitude of the first audio segment is smaller, it can be determined that the sound amplitude trend is gradually decreasing.
[0082] The first time refers to the time corresponding to the last frame of the first audio segment, and the second time refers to the time corresponding to the last frame of the second audio segment. For example, the first audio segment of 0-10 milliseconds is obtained at 10:20:00 of the 10th millisecond, and the second audio segment of 10-20 milliseconds is obtained at 10:20:00 of the 20th millisecond. The first time and the second time are not continuous, but have a certain time interval, such as a millisecond-level time interval. The second time is later than the first time.
[0083] Each audio segment is bound to a corresponding system time. The audio segments and the vehicle speed can be one-to-one corresponding according to the system time, so as to determine whether the sound amplitude trend meets the vehicle speed range and the vehicle speed trend at the same time. Specifically, the automatic test service module determines the sound amplitude trend by using two times, which are the first time corresponding to the last frame of the first audio segment and the second time corresponding to the last frame of the second audio segment. Therefore, the vehicle speed at the two time points needs to be obtained to determine the vehicle speed trend, that is, the vehicle speed at the first time and the vehicle speed at the second time are compared. If the vehicle speed at the first time is larger, it is determined that the vehicle speed is rising. If the vehicle speed at the first time is smaller, it is determined that the vehicle speed is falling.
[0084] In addition, the automated test service module divides the vehicle speed range in advance according to the algorithm of the vehicle acoustic warning system, and can determine the vehicle speed range in which the first time point is located.
[0085] After the above operation, it can be known whether the vehicle speed is rising or falling, the vehicle speed range, and whether the sound amplitude is increasing or decreasing at the first time point, and then it is judged whether the above setting relationship is satisfied.
[0086] For example, when a 10-millisecond audio segment is obtained, and the last 10-millisecond audio segment is obtained, the sound amplitudes of the two audio segments are compared to determine whether the volume is increasing or decreasing, and the abnormal information is judged according to the vehicle speed range and the vehicle speed trend and recorded.
[0087] In the embodiment of the application, the processing flow of the audio data and the vehicle speed data includes the following key steps:
[0088] 1. Determine the sound amplitude trend. First, the automated test service module will identify the first audio segment and the second audio segment adjacent to the first audio segment in the audio data. By comparing the sound amplitudes of the two audio segments, it can be determined whether the sound amplitude is increasing or decreasing, thereby determining the current sound amplitude trend. For example, if the sound amplitude of the first audio segment is higher than that of the second audio segment, the sound amplitude trend is considered to be rising. If the sound amplitude of the first audio segment is lower than that of the second audio segment, the sound amplitude trend is considered to be falling. If the sound amplitude of the first audio segment is equal to that of the second audio segment, the sound amplitude trend is considered to be stable.
[0089] 2. Record the time point. The automated test service module will record the time point corresponding to each audio segment, i.e. the first time point and the second time point. These time points are not continuous, but have a certain interval, such as millisecond level. Through the system time marker, it is ensured that each audio segment can be corresponded to the corresponding vehicle speed data, providing accurate time reference for subsequent analysis.
[0090] 3. Obtain and compare vehicle speed data: According to the recorded time point, the automated test service module will obtain the vehicle speed data at the corresponding time point. By comparing the vehicle speed at the first time point with the vehicle speed at the second time point, the trend of the vehicle speed can be determined, such as the vehicle speed rising or falling. At the same time, the vehicle speed range in which the vehicle is located can also be determined according to the current vehicle speed.
[0091] 4. Comprehensive judgment: According to the preset setting relationship, the automated test service module will evaluate whether the sound amplitude trend matches the current vehicle speed range and vehicle speed trend. This judgment is based on the algorithm logic set in advance, which considers the rationality of the sound amplitude change in different vehicle speed ranges.
[0092] 5. Saving audio data: During the processing, to ensure the integrity and traceability of the data, the automation test service module also writes the received audio data into a file for saving. For example, save a file every time 200MB of audio data is written, and start writing a new file, a maximum of 10 audio files are saved. This mechanism ensures that even if an accident occurs during data processing, enough data can be retained for analysis and problem positioning.
[0093] Suppose in a test, the automation test service module obtains a 10-millisecond audio segment and the previous 10-millisecond audio segment. By comparing the sound amplitude of the two segments, it is found that the sound amplitude has increased. At the same time, by analyzing the vehicle speed data at the corresponding time, it is found that the vehicle speed also shows an upward trend. According to the preset setting relationship, if the increase in sound amplitude and the increase in vehicle speed are as expected, the test result may be considered normal. Conversely, if the sound amplitude increases and the vehicle speed decreases, there may be an abnormal situation that needs further checking.
[0094] Through this series of steps, the automation test service module can effectively test the performance of the vehicle acoustic alarm system under different conditions, ensure that it works as expected, and thus improve the safety performance of the vehicle.
[0095] In this application, by comparing the sound amplitudes between adjacent audio segments, the sound amplitude trend is determined, and by comparing the vehicle speed at the corresponding time, the vehicle speed trend is determined, so as to determine whether the sound amplitude trend conforms to the vehicle speed range and the vehicle speed trend, and thus determine whether the vehicle acoustic alarm system test is passed.
[0096] As an optional implementation, after determining that the vehicle acoustic alarm system test is passed, the method further comprises: constructing a two-dimensional rectangular coordinate system with time as the horizontal coordinate and sound amplitude and vehicle speed as the vertical coordinates, respectively; determining the curves of vehicle speed and sound amplitude changing with time according to the test results, and displaying the curves in the two-dimensional rectangular coordinate system.
[0097] After the test is completed, the automation test service module exports the recorded vehicle speed data and audio data, and the real-time record table can be obtained, as shown in Figure 3 The record table records the changes of vehicle speed and DB amplitude over time.
[0098] The automation test service module can also export the audio data at a certain vehicle speed for the user to view, Figure 4 AVAS audio for vehicle speed of 20km / h.
[0099] When the test exception occurs, in order to facilitate the analysis of the abnormal data, the exported vehicle speed data and the sound amplitude can be used to draw a curve, and the user can intuitively review the sound change caused by the vehicle speed change on the terminal. The audio data can be shot type PCM (Pulse Code Modulation) audio data. Figure 5 As a curve diagram, it can be seen that the time is the horizontal coordinate, and the sound amplitude and the vehicle speed are the vertical coordinates, respectively. It can be seen that as the vehicle speed increases, the sound amplitude increases when the vehicle speed is 0-20km / h, the sound amplitude decreases when the vehicle speed is 20-35km / h, and the sound amplitude is very small when the vehicle speed is greater than 35km / h.
[0100] As an optional implementation, the real-time vehicle speed data is sent by the navigation module based on the GPS signal. After obtaining the real-time vehicle speed data, the method further comprises: obtaining the vehicle speed data obtained based on the instrument panel from the log; calculating the error between the vehicle speed data obtained based on the GPS signal of the vehicle and the vehicle speed data obtained based on the instrument panel; if the error does not exceed the set error range, the error is included in the vehicle speed range.
[0101] In the embodiment of the application, the vehicle speed data used by the automated test service module during testing is calculated by the navigation module based on the GPS signal. The vehicle speed data can also be calculated based on the instrument panel data, but the vehicle speed data calculated based on the GPS signal is faster, and the test efficiency is also improved accordingly, so the vehicle speed calculated based on the GPS signal is preferred in the embodiment of the application.
[0102] The real-time vehicle speed information calculated by the GPS signal is realized by the Doppler effect. The Global Positioning System (GPS) can not only provide geographic position information, but also measure the speed of moving objects through its precise technical means. This function plays an important role in vehicle navigation and speed monitoring. The working principle of GPS speed measurement is to analyze the frequency change of satellite signals. When there is relative motion between the GPS receiver and the satellite, the frequency of the signal received by the receiver will not be consistent with the frequency of the transmitted signal. This phenomenon is called the Doppler effect. The GPS receiver can accurately measure its motion speed in three-dimensional space by analyzing the signal difference from at least three satellites. Specifically, the GPS receiver continuously tracks the signals sent by the satellites and calculates the frequency change rate in real time through internal algorithms, thereby obtaining the speed data. GPS devices follow the classic formula: speed = distance / time to calculate the speed. When the vehicle is driving, the GPS device will continuously track the position of the vehicle and measure the distance traveled by the vehicle. The distance traveled divided by the time taken by the vehicle to travel between two points is the speed of the vehicle between the two points.
[0103] Before the formal test, the automated test service module needs to verify whether its algorithm is accurate. The specific verification method is: when analyzing the performance and accuracy of the vehicle, the accurate recording and monitoring of vehicle speed data is crucial. Therefore, two main methods are usually used to obtain vehicle speed data: one is to directly read through the vehicle dashboard, and the other is to calculate using the vehicle's GPS signal. Although the purpose is the same, due to the difference in measurement principle and method, the data obtained may have slight differences.
[0104] On the one hand, vehicle speed data can be directly read from the vehicle's dashboard. These data are usually measured directly through the wheel speed sensor or vehicle speed sensor, reflecting the instantaneous speed of the vehicle. The advantage of this method is that it directly obtains data from the vehicle's own sensors, which is usually reliable and real-time. On the other hand, the vehicle speed data calculated through the GPS signal is determined by the rate of change of the vehicle's position. Specifically, the GPS device receives satellite signals and calculates the vehicle's moving speed through continuous position information. The advantage of this method is that it can provide a more objective speed measurement and is not affected by the errors of the vehicle's own sensors.
[0105] To ensure the accuracy and consistency of the data, the vehicle speed data obtained by the two methods needs to be compared and analyzed. First, based on the data in the log file, the vehicle speed information based on the dashboard can be extracted, and then these vehicle speed information is compared with the vehicle speed data calculated through the GPS signal to calculate the error between them. If the error is within the pre-set acceptable range (such as ± 2 km / h), it can be considered that the two sets of data have sufficient consistency, and the vehicle speed data has no significant problem. In this case, this error range can be included in the application of vehicle speed data, such as considering this error as normal fluctuation when drawing speed curves. This can provide more realistic and comprehensive information in data analysis and display, and is also beneficial to subsequent performance evaluation and adjustment.
[0106] This error tolerance and inclusion helps to maintain flexibility and practicality in data analysis, especially when dealing with dynamic data collected in actual road conditions. By this way, verifying the accuracy of the algorithm of the automated test service module can not only ensure the reliability of the data, but also enhance the adaptability and practicality of data analysis, better serving the optimization of vehicle performance and the improvement of driving safety.
[0107] As an optional implementation, obtaining audio data for low-speed warning based on the vehicle acoustic alarm system includes: using a reference sound module to obtain audio data generated by the vehicle acoustic alarm system without being played through the speaker; and obtaining the audio data from the reference sound module through the vehicle infotainment system.
[0108] When evaluating and testing the effectiveness of a vehicle acoustic vehicle alert system (AVAS), it is crucial to ensure the accuracy and clarity of the audio data collected. Typically, the alert sound produced by the AVAS is played externally through the vehicle's horn system. However, when this process is conducted on the road, the audio data can be disturbed by various environmental factors such as road noise, tire noise, and other disturbances. These disturbances can significantly affect the quality of the recording, resulting in test results that reflect not only the pure AVAS sound performance but also the mixed effect influenced by external noise.
[0109] To address this issue, a more direct and controlled data collection method is considered. Instead of collecting sound that has been played through the horn, the audio data is obtained directly from the acoustic alert system before it is played through the horn. This method effectively avoids external noise interference, ensuring that the collected audio data is pure and accurate, providing a more reliable basis for subsequent analysis and evaluation. Additionally, this method does not require external devices such as sound cards, and can be tested using an unmanned electric vehicle, reducing the cost of additional test personnel.
[0110] However, implementing this solution faces a technical challenge: the vehicle acoustic alert system is not usually directly connected to the in-vehicle infotainment system (IVI system), and there is a lack of direct data transmission interface between the two. To bridge this technical gap, the application proposes adding a reference sound module. This reference sound module can directly obtain original, unplayed audio data from the AVAS and transmit it to the in-vehicle infotainment system. Once the audio data is transmitted to the in-vehicle infotainment system, it can be further sent to an automated test service module for processing and analysis. This automated test service module can be a combination of software and hardware provided by the vehicle manufacturer or a third party, specifically designed to test and optimize the performance of the AVAS.
[0111] In this way, not only can the quality of the collected AVAS audio data be ensured, but also the computing and communication capabilities of the in-vehicle infotainment system can be utilized to transmit data to remote servers or cloud platforms for more in-depth analysis. Such an integrated testing process not only improves the accuracy of the data, but also enhances the efficiency and reliability of the testing work, providing solid data support for the continuous improvement and optimization of the vehicle acoustic alert system.
[0112] Based on the same technical concept, the application provides a whole technical block diagram as shown in Figure 6 which mainly includes the following key modules.
[0113] Navigation module: responsible for providing vehicle speed data, providing a reference benchmark for subsequent sound amplitude trend analysis.
[0114] Vehicle acoustic warning system (AVAS): generates warning audio when the vehicle is traveling at low speed to alert pedestrians and other road users.
[0115] Reference sound module: closely connected with AVAS, responsible for directly obtaining the original audio data generated by AVAS, avoiding external noise interference.
[0116] In-vehicle infotainment system (IVI system): as the center of information processing and display inside the vehicle, interfaces with the reference sound module to receive audio data.
[0117] Automated test service module: processes vehicle speed data from the navigation module and audio data from the IVI system for comprehensive analysis.
[0118] The DSP module includes: vehicle acoustic warning system and reference sound module, the reference sound module transmits the audio data generated by the DSP module to the in-vehicle infotainment system through the Output pin, for this, the IVI system interfaces with the reference sound interface of the DSP module to ensure smooth data passage. At the same time, the IVI system provides a special AVAS recording interface for the automated test service module by expanding the Android or Linux native interface.
[0119] Specifically, when configuring the audio path, the IVI system configures the output of AVAS as the input of the reference sound module, and at the same time, the PCM data path of the reference sound module is opened, so that the DSP module maps the audio of AVAS as a recording to the independent recording device, and then expands the Android recording interface so that the App can be called.
[0120] The automated test service module is the brain of the entire framework, which is connected with the navigation module and the in-vehicle infotainment system, and performs the following tasks:
[0121] Data collection: obtain vehicle speed data from the navigation module and audio data from the IVI system.
[0122] Data analysis: analyze whether the sound amplitude trend in the audio data matches the vehicle speed range and trend in the vehicle speed data.
[0123] Test result determination: if the sound amplitude trend of the audio data is consistent with the vehicle speed data, it is determined that the AVAS test is passed.
[0124] Through such an integrated and automated test framework, the efficiency and accuracy of AVAS testing can be greatly improved, ensuring that the AVAS system can effectively alert the surrounding environment during actual driving, thereby improving driving safety. In addition, the framework also supports flexible expansion and upgrading, and can be adjusted and optimized accordingly according to future technological developments.
[0125] The present application provides a schematic diagram of the overall process of automated testing of a vehicle acoustic warning system, as shown in Figure 7 The steps include the following.
[0126] Step 701: Turn on the navigation, connect the navigation interface in the test APP, and listen to the real-time vehicle speed data sent by the navigation.
[0127] Step 702: Obtain the audio data of the vehicle acoustic warning system (AVAS) through the interface of the reference sound module and the interface of the in-vehicle information entertainment system (IVI), and save the audio to a file.
[0128] Step 703: Real-time analysis of vehicle speed data and audio data to determine whether the sound amplitude trend in the audio data conforms to the vehicle speed range and vehicle speed trend in the vehicle speed data. If it conforms, execute step 704, if it does not conform, execute step 705.
[0129] Step 704: Determine that the vehicle acoustic warning system test is passed.
[0130] Step 705: Show the curve of vehicle speed and sound amplitude changing over time.
[0131] The present application also provides an automated testing device for a vehicle acoustic warning system, as shown in Figure 8 The device includes:
[0132] The acquisition module 801 is configured to acquire real-time vehicle speed data and audio data for low-speed warning based on the vehicle acoustic warning system;
[0133] The analysis module 802 is configured to analyze the vehicle speed data and the audio data to determine whether the sound amplitude trend in the audio data conforms to the vehicle speed range and vehicle speed trend in the vehicle speed data.
[0134] The determination module 803 is configured to determine that the vehicle acoustic warning system test is passed if it conforms.
[0135] Optionally, the analysis module 802 is configured to:
[0136] Determine the adjacent first audio segment and second audio segment in the audio data, and determine the current sound amplitude trend by comparing the sound amplitude of the first audio segment and the sound amplitude of the second audio segment.
[0137] determine a first time corresponding to the first audio segment and a second time corresponding to the second audio segment;
[0138] determine a first speed in the first time and a second speed in the second time in the speed data;
[0139] determine a current speed range according to the first speed, and determine a current speed trend by comparing the first speed and the second speed;
[0140] determine whether the current sound amplitude trend conforms to the current speed range and the current speed trend according to a set relationship among the speed range, the speed trend and the sound amplitude trend.
[0141] Optionally, the set relationship among the speed range, the speed trend and the sound amplitude trend is:
[0142] when the speed increases from 0 to m, the sound amplitude gradually decreases with the increase of the speed; when the speed increases from m to n, the sound amplitude continues to decrease with the increase of the speed; when the speed exceeds n, the sound amplitude decreases to a mute state;
[0143] when the speed is greater than n, the sound amplitude remains in a mute state; in the process that the speed decreases from n to m, the sound amplitude gradually increases with the decrease of the speed; when the speed further decreases to the interval from m to 0, the sound amplitude decreases with the decrease of the speed;
[0144] wherein m and n are positive integers and m < n.
[0145] Optionally, the apparatus is further configured to:
[0146] construct a two-dimensional rectangular coordinate system with time as the horizontal coordinate and sound amplitude and speed as the vertical coordinates, respectively;
[0147] determine a curve of the speed and the sound amplitude changing with time according to the test result, and display the curve in the two-dimensional rectangular coordinate system.
[0148] Optionally, the apparatus is further configured to:
[0149] obtain speed data based on the dashboard from the log;
[0150] calculate an error between speed data based on the GPS signal of the vehicle and speed data based on the dashboard;
[0151] if the error does not exceed a set error range, the error is included in the speed range.
[0152] Optionally, the obtaining module 801 is configured to:
[0153] acquire, by a reference sound module, audio data generated by a vehicle acoustic warning system and not played by a speaker;
[0154] acquire, by a vehicle infotainment system, the audio data from the reference sound module.
[0155] As shown in Figure 9 Embodiments of the present application provide an electronic device, which includes a processor 901, a communication interface 902, a memory 903 and a communication bus 904, wherein the processor 901, the communication interface 902 and the memory 903 complete mutual communication through the communication bus 904.
[0156] The memory 903 is configured to store a computer program.
[0157] In an embodiment of the present application, the processor 901 is configured to execute the program stored in the memory 903, and implement the automatic testing method of the vehicle acoustic warning system provided by any one of the preceding method embodiments, including the following contents.
[0158] acquire real-time vehicle speed data and audio data for low-speed warning based on the vehicle acoustic warning system;
[0159] determine whether a sound amplitude trend in the audio data conforms to a vehicle speed range and a vehicle speed trend in the vehicle speed data by analyzing the vehicle speed data and the audio data;
[0160] If yes, it is determined that the vehicle acoustic warning system passes the test.
[0161] Optionally, determining whether the sound amplitude trend in the audio data conforms to the vehicle speed range and the vehicle speed trend in the vehicle speed data by analyzing the vehicle speed data and the audio data includes:
[0162] determining adjacent first and second audio segments in the audio data, and determining a current sound amplitude trend by comparing a sound amplitude of the first audio segment with a sound amplitude of the second audio segment;
[0163] determining a first time corresponding to the first audio segment and a second time corresponding to the second audio segment;
[0164] determining a vehicle speed at the first time and a vehicle speed at the second time in the vehicle speed data;
[0165] determining a current vehicle speed range according to the vehicle speed at the first time, and determining a current vehicle speed trend by comparing the vehicle speed at the first time with the vehicle speed at the second time;
[0166] determining whether the current sound amplitude trend conforms to the current vehicle speed range and the current vehicle speed trend according to a set relationship among the vehicle speed range, the vehicle speed trend and the sound amplitude trend.
[0167] Optionally, the set relationship between the vehicle speed range, the vehicle speed trend and the sound amplitude trend is:
[0168] When the vehicle speed increases between 0 and m, the sound amplitude gradually decreases with the increase of the vehicle speed; when the vehicle speed increases between m and n, the sound amplitude continues to decrease with the increase of the vehicle speed; when the vehicle speed exceeds n, the sound amplitude decreases to a mute state;
[0169] When the vehicle speed is in a range greater than n, the sound amplitude remains in a mute state; in the process of reducing the vehicle speed from n to m, the sound amplitude gradually increases with the decrease of the vehicle speed; when the vehicle speed further decreases in the range of m to 0, the sound amplitude decreases with the decrease of the vehicle speed;
[0170] Wherein, m and n are positive integers, and m < n.
[0171] Optionally, after determining that the vehicle acoustic warning system test is passed, the method further comprises:
[0172] A two-dimensional rectangular coordinate system is constructed with time as the horizontal coordinate and sound amplitude and vehicle speed as the vertical coordinates, respectively;
[0173] According to the test results, a curve of the change of the vehicle speed and the sound amplitude with time is determined, and the curve is displayed in the two-dimensional rectangular coordinate system.
[0174] Optionally, the real-time vehicle speed data is sent by the navigation module based on the GPS signal, and after obtaining the real-time vehicle speed data, the method further comprises:
[0175] Obtaining the vehicle speed data obtained based on the instrument panel from the log;
[0176] Calculating the error between the vehicle speed data obtained based on the GPS signal of the vehicle and the vehicle speed data obtained based on the instrument panel;
[0177] If the error does not exceed the set error range, the error is included in the vehicle speed range.
[0178] Optionally, the audio data for low-speed warning obtained based on the vehicle acoustic warning system comprises:
[0179] Using the reference sound module to obtain the audio data generated by the vehicle acoustic warning system without playing through the loudspeaker;
[0180] Obtaining the audio data from the reference sound module through the in-vehicle infotainment system.
[0181] The embodiments of the application also provide a computer readable storage medium having a computer program stored thereon, and the computer program is executed by a processor to implement the steps of the automatic testing method of the vehicle acoustic warning system provided by any one of the preceding method embodiments.
[0182] The device embodiments described above are only illustrative, wherein the units illustrated as separate components can or can not be physically separated, and the components illustrated as units can or can not be physical units, i.e., can be located in one place, or can be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the embodiment.
[0183] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be realized by means of software plus a general hardware platform, and of course can also be realized by hardware. Based on such understanding, the above technical solutions can be embodied in the form of a software product, and the computer software product can be stored in a computer readable storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, etc., and includes a plurality of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the methods described in each embodiment or some parts of the embodiments.
[0184] It should be understood that the terms used herein are for the purpose of describing particular example embodiments only and are not intended to be limiting. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. The terms "comprises", "comprising", "includes", "including" and "has" are inclusive and therefore specify the presence of stated features, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, steps, operations, elements, components, and / or groups thereof. The method steps, processes, and operations described herein are not to be construed as necessarily requiring their performance in the particular order in which they are described, unless specifically indicated as such. It is also to be understood that additional or alternative steps can be employed.
[0185] The above description is merely illustrative of the application and is not intended to limit the scope of the application. Various modifications can be made to the embodiments described herein, and the principles described herein can be applied to other embodiments without departing from the spirit or scope of the application. Accordingly, the application is not to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method of automated testing of a vehicle acoustic warning system, characterized in that, The method comprises: acquiring real-time vehicle speed data and audio data for low-speed warning based on a vehicle acoustic warning system; determining whether a sound amplitude trend in the audio data conforms to a vehicle speed range and a vehicle speed trend in the vehicle speed data by analyzing the vehicle speed data and the audio data; if so, determining that the vehicle acoustic warning system test is passed; wherein determining whether the sound amplitude trend in the audio data conforms to the vehicle speed range and the vehicle speed trend in the vehicle speed data by analyzing the vehicle speed data and the audio data comprises: determining adjacent first and second audio segments in the audio data and determining a current sound amplitude trend by comparing a sound amplitude of the first audio segment with a sound amplitude of the second audio segment; determining a first time corresponding to the first audio segment and a second time corresponding to the second audio segment; determining a vehicle speed at the first time and a vehicle speed at the second time in the vehicle speed data; determining a current vehicle speed range according to the vehicle speed at the first time and determining a current vehicle speed trend by comparing the vehicle speed at the first time with the vehicle speed at the second time; determining whether the current sound amplitude trend conforms to the current vehicle speed range and the current vehicle speed trend according to a set relationship between the vehicle speed range, the vehicle speed trend and the sound amplitude trend.
2. The method of claim 1, wherein, The set relationship between the vehicle speed range, the vehicle speed trend and the sound amplitude trend is: when the vehicle speed increases between 0 and m, the sound amplitude gradually decreases with the increase of the vehicle speed; when the vehicle speed increases between m and n, the sound amplitude continues to decrease with the increase of the vehicle speed; when the vehicle speed exceeds n, the sound amplitude decreases to a mute state; when the vehicle speed is greater than n, the sound amplitude remains in a mute state; in the process of reducing the vehicle speed from n to m, the sound amplitude gradually increases with the decrease of the vehicle speed; when the vehicle speed further decreases to the interval of m to 0, the sound amplitude decreases with the decrease of the vehicle speed; wherein m and n are positive integers and m < n.
3. The method of claim 1, wherein, After determining that the vehicle acoustic warning system test is passed, the method further comprises: constructing a two-dimensional rectangular coordinate system with time as the horizontal coordinate and sound amplitude and vehicle speed as the vertical coordinates, respectively; determining a curve of vehicle speed and sound amplitude changing over time according to the test results and displaying the curve in the two-dimensional rectangular coordinate system.
4. The method of claim 1, wherein, The real-time vehicle speed data is sent by a navigation module based on GPS signals, and after acquiring the real-time vehicle speed data, the method further comprises: acquiring vehicle speed data based on an instrument panel from a log; calculating an error between the vehicle speed data based on the vehicle GPS signals and the vehicle speed data based on the instrument panel; if the error does not exceed a set error range, the error is included in the vehicle speed range.
5. The method of claim 1, wherein, Acquiring audio data for low-speed warning based on a vehicle acoustic warning system comprises: acquiring audio data generated by the vehicle acoustic warning system without being played by a loudspeaker by using a reference sound module; acquiring the audio data from the reference sound module by a vehicle information entertainment system.
6. A vehicle to which an automated test method for the vehicle acoustic warning system according to claim 1 is applied, characterized in that, The vehicle comprises a navigation module, a vehicle acoustic alarm system, a reference sound module, an in-vehicle information entertainment system and an automated test service module: The navigation module is configured to calculate real-time vehicle speed data; The vehicle acoustic alarm system is configured to generate audio data for low-speed warning; The reference sound module is connected to the vehicle acoustic alarm system and configured to obtain the audio data; The in-vehicle information entertainment system is connected to the reference sound module and configured to obtain and transmit the audio data; The automated test service module is connected to the navigation module and the in-vehicle information entertainment system respectively and configured to analyze the vehicle speed data and the audio data, determine whether the sound amplitude trend in the audio data conforms to the vehicle speed range and the vehicle speed trend in the vehicle speed data, and if so, determine that the vehicle acoustic alarm system passes the test; The automated test service module is further configured to determine adjacent first and second audio segments in the audio data, compare the sound amplitude of the first audio segment with the sound amplitude of the second audio segment, and determine the current sound amplitude trend; determine the first time corresponding to the first audio segment and the second time corresponding to the second audio segment; determine the vehicle speed at the first time and the vehicle speed at the second time in the vehicle speed data; determine the current vehicle speed range according to the vehicle speed at the first time, and determine the current vehicle speed trend by comparing the vehicle speed at the first time with the vehicle speed at the second time; determine whether the current sound amplitude trend conforms to the current vehicle speed range and the current vehicle speed trend according to a set relationship among the vehicle speed range, the vehicle speed trend and the sound amplitude trend.
7. An automated testing device for a vehicle acoustic warning system, characterized in that The device comprises: an acquisition module configured to acquire real-time vehicle speed data and audio data for low-speed warning based on a vehicle acoustic alarm system; an analysis module configured to analyze the vehicle speed data and the audio data, and determine whether the sound amplitude trend in the audio data conforms to the vehicle speed range and the vehicle speed trend in the vehicle speed data; a determination module configured to determine that the vehicle acoustic alarm system passes the test if the sound amplitude trend conforms to the vehicle speed range and the vehicle speed trend; The analysis module is configured to: determine adjacent first and second audio segments in the audio data, compare the sound amplitude of the first audio segment with the sound amplitude of the second audio segment, and determine the current sound amplitude trend; determine the first time corresponding to the first audio segment and the second time corresponding to the second audio segment; determine the vehicle speed at the first time and the vehicle speed at the second time in the vehicle speed data; determine the current vehicle speed range according to the vehicle speed at the first time, and determine the current vehicle speed trend by comparing the vehicle speed at the first time with the vehicle speed at the second time; determine whether the current sound amplitude trend conforms to the current vehicle speed range and the current vehicle speed trend according to a set relationship among the vehicle speed range, the vehicle speed trend and the sound amplitude trend.
8. An electronic device, comprising: The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the method in any one of claims 1-5. The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the method in any one of claims 1-5. The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the method in any one of claims 1-5.
9. A computer-readable storage medium, characterized in that,
Citation Information
Patent Citations
Detection system suitable for new energy automobile speed and low speed prompt tone function
CN217237207U