Vehicle-mounted audio system fault positioning method and device
By acquiring audio source data from the vehicle audio system and transmitting it to various functional modules for processing and analysis, the complex fault analysis of the silent vehicle audio system problem was solved, and simplified fault location and rapid troubleshooting were achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SAIC GM WULING AUTOMOBILE CO LTD
- Filing Date
- 2025-12-19
- Publication Date
- 2026-05-08
AI Technical Summary
In the existing technology, the fault analysis of the silent problem of the vehicle audio system is difficult, requires a high level of expertise, has a single fault analysis method, and the log analysis process is complex.
By acquiring the audio source data of the target audio channel in the vehicle audio system, transmitting it to each target functional module for processing, and acquiring the audio data to be tested from each module, data loss and audio quality analysis are performed to determine fault information.
It enables fault location without log analysis and data entry points, lowers the testing threshold, and is suitable for ordinary field staff to quickly troubleshoot faults.
Smart Images

Figure CN122002203A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle infotainment testing technology, and more specifically, to a method, apparatus, medium, and electronic device for locating faults in a vehicle audio system. Background Technology
[0002] In-vehicle audio systems are designed to provide customers with a high-quality music experience. A typical in-vehicle audio system comprises at least three independent modules: the infotainment system, the amplifier, and the speakers. Some system controls may also require a gateway. From an audio channel perspective, different in-vehicle software applications are needed to handle the audio sources. The audio is then processed through an intermediate layer, an underlying layer, and a hardware interface before being output to the amplifier for sound effects processing and frequency division, and finally distributed to the individual speakers in the vehicle. Various problems may arise during the use of an in-vehicle audio system, such as no sound playback. This can lead to the absence of safety alarm sounds and vehicle status alerts, affecting driving safety.
[0003] Currently, testing for silent issues in in-vehicle audio systems primarily involves analyzing logs to identify error messages. Log generation mainly involves embedding logging points within the software; during software runtime, these logging points record the software's operational trajectory in the logs.
[0004] However, if the logs do not leave any error traces, the analysis becomes more difficult. In short, the entire log analysis process requires a high level of expertise, and the fault analysis methods are relatively limited.
[0005] Therefore, this application provides a method for locating faults in a vehicle audio system to solve the above-mentioned technical problems. Summary of the Invention
[0006] The purpose of this application is to provide a method, device, medium, and electronic device for locating faults in a vehicle audio system, which can solve at least one of the aforementioned technical problems. The specific solution is as follows: According to a specific embodiment of this application, in a first aspect, this application provides a method for locating faults in a vehicle audio system, comprising: Acquire the audio source data of the target audio channel in the vehicle audio system; The audio source data is transmitted sequentially to each target functional module through the target audio channel for corresponding functional processing. Obtain the audio data to be tested that are fed back by each target functional module after processing; Fault analysis is performed based on the audio data to be tested from each target functional module to determine the fault information of the target audio channel.
[0007] Optionally, the step of performing fault analysis based on the audio data under test of each target functional module to determine the fault information of the target audio channel includes: Data loss analysis is performed on the audio data to be tested from each target functional module to determine the fault information of each target functional module and the target audio channel. Audio quality analysis is performed based on the audio data to be tested from each target functional module to determine the fault information of each target functional module and the target audio channel.
[0008] Optionally, the step of performing data loss analysis on the audio data to be tested for each target functional module to determine the fault information of each target functional module and the target audio channel includes: The amount of audio data to be tested in each target functional module is compared with the preset normal data amount threshold of the corresponding target functional module to obtain the amount of data loss in the corresponding target functional module. When the data loss of any target functional module exceeds the data loss threshold of the corresponding target functional module, it is determined that the target functional module of the target audio channel has lost data.
[0009] Optionally, each target functional module includes a digital audio processing module, a power amplifier module, and a recording module arranged sequentially based on the generation order of the audio data to be tested, wherein the digital audio processing module is communicatively connected to the power amplifier module; The step of performing audio quality analysis based on the audio data to be tested from each target functional module to determine the fault information of each target functional module and the target audio channel includes: Based on the output audio data of the digital audio processing module, audio amplitude analysis is performed on the audio rendering data of the power amplifier module to determine the fault information of the digital audio processing module and the target audio channel. Based on the audio recording data retrieved by the recording module, audio amplitude analysis is performed to determine the fault information of the recording module and the target audio channel. Based on the audio rendering data and the audio recording data, audio spectrum analysis is performed to determine the fault information of the recording module and the target audio channel.
[0010] Optionally, the step of performing audio amplitude analysis on the audio rendering data of the power amplifier module based on the output audio data of the digital audio processing module to determine the fault information of the digital audio processing module and the target audio channel includes: Based on multiple preset relative time periods, multiple audio data segments are extracted from the output audio data and the audio rendering data, respectively. The maximum audio amplitude of each segment is obtained based on the first audio data segment in the output audio data and the second audio data segment in the audio rendering data within any preset relative time period. When the maximum audio amplitude of the first audio data segment and the maximum audio amplitude of the second audio data segment are within the same relative time point range, and the difference between the two maximum audio amplitudes exceeds the preset normal amplitude range, it is determined that the output of the digital audio processing module and the volume of the target audio channel are abnormal. When the maximum audio amplitude of the first audio data segment and the maximum audio amplitude of the second audio data segment are not within the same relative time point range, it is determined that the output of the digital audio processing module and the volume of the target audio channel are abnormal.
[0011] Optionally, the step of performing audio amplitude analysis based on the audio recording data retrieved by the recording module to determine the fault information of the recording module and the target audio channel includes: When the maximum amplitude of the audio recording data is greater than the preset maximum amplitude of the environment, it is determined that the volume of the recording module re-sampled and the target audio channel is abnormal.
[0012] Optionally, the step of performing audio spectrum analysis based on the audio rendering data and the audio recording data to determine the fault information of the recording module and the target audio channel includes: Calculate the ratio of the peak value of the audio recording data to the peak value of the audio rendering data to obtain the peak retention rate value; When the peak hold rate value is less than the preset normal peak hold rate threshold, it is determined that the sound effect processing of the recording module and the power amplifier module of the target audio channel is abnormal.
[0013] Optionally, the acquisition of each audio data to be tested, processed and fed back by each target functional module, includes: The output audio data fed back by the digital audio processing module and the audio rendering data fed back by the power amplifier module are obtained through the backup audio channel. Audio recording data is retrieved via the recording module.
[0014] Optionally, before acquiring the audio source data of the target audio channel in the vehicle audio system, the method further includes: The gateway module sends a self-test command to trigger the power amplifier module to perform a self-test on the speaker of the target audio channel; The gateway module obtains the self-test results fed back by the power amplifier module based on the self-test command.
[0015] According to a specific embodiment of this application, in a second aspect, this application provides a device for locating faults in a vehicle audio system, comprising: The audio source acquisition unit is used to acquire the audio source data of the target audio channel in the vehicle audio system; The data processing unit is used to transmit the sound source data to each target functional module through the target audio channel, and perform corresponding functional processing respectively. The data feedback unit is used to acquire the audio data to be tested that are fed back by each target functional module after processing. The fault determination unit is used to perform fault analysis based on the audio data under test of each target functional module to determine the fault information of the target audio channel.
[0016] According to a specific embodiment of this application, in a third aspect, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for locating faults in a vehicle audio system as described in any of the preceding claims.
[0017] According to a specific embodiment of this application, in a fourth aspect, this application provides an electronic device, including: one or more processors; and a storage device for storing one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement the vehicle audio system fault location method as described in any of the above claims.
[0018] Compared with the prior art, the above-described solutions of this application have at least the following beneficial effects: This application provides a method, apparatus, medium, and electronic device for locating faults in a vehicle audio system. This application transmits audio source data sequentially to various target functional modules through the target audio channel in the vehicle audio system, where each module performs corresponding functional processing. Then, it acquires the audio data to be tested fed back by each target functional module after processing. Based on the audio data to be tested from each target functional module, fault analysis is performed to determine the fault information of the target audio channel. By comprehensively analyzing the audio data to be tested fed back by each target functional module in the processing and propagation path of the audio source data, fault information in the propagation path is located. This eliminates the need for program-based testing, avoiding the professionalism of log analysis and data entry, and lowering the testing threshold. It is suitable for ordinary field personnel to troubleshoot faults promptly. Attached Figure Description
[0019] Figure 1 A flowchart of a method for locating faults in a vehicle audio system according to an embodiment of this application is shown; Figure 2 A schematic diagram of the structure of a vehicle audio system according to an embodiment of this application is shown; Figure 3 A unit block diagram of a vehicle audio system fault location device according to an embodiment of this application is shown. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0021] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the application. The singular forms “a,” “said,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms, and “multiple” generally includes at least two unless the context clearly indicates otherwise.
[0022] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.
[0023] It should be understood that although the terms first, second, third, etc., may be used in the embodiments of this application, these descriptions should not be limited to these terms. These terms are only used to distinguish the descriptions. For example, first may also be referred to as second without departing from the scope of the embodiments of this application, and similarly, second may also be referred to as first.
[0024] Depending on the context, the words “if” or “suppose” as used here can be interpreted as “when” or “in response to determination” or “in response to detection.” Similarly, depending on the context, the phrases “if determination” or “if detection (of the stated condition or event)” can be interpreted as “when determination” or “in response to determination” or “when detection (of the stated condition or event)” or “in response to detection (of the stated condition or event).”
[0025] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that an article or device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such an article or device. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the article or device that includes said element.
[0026] It should be noted that any symbols and / or numbers present in the specification that are not marked in the accompanying drawings are not reference numerals.
[0027] The optional embodiments of this application are described in detail below with reference to the accompanying drawings.
[0028] Example 1 The embodiments provided in this application are embodiments of a method for locating faults in a vehicle audio system.
[0029] The following is combined Figure 1 The embodiments of this application will be described in detail.
[0030] Step S101: Obtain the audio source data of the target audio channel in the vehicle audio system.
[0031] like Figure 2 The in-vehicle audio system includes: an on-chip module, a digital audio processing module, a power amplifier module, a gateway module, a speaker, a recording module, and a microphone.
[0032] The on-chip module communicates and connects with the digital audio processing module, recording module, and gateway module, respectively, and is responsible for entertainment domain-related functions. It runs on the QNX real-time operating system and an Android / Linux virtual machine system, meeting the functional requirements of the entertainment domain.
[0033] The digital audio processing module communicates with the power amplifier module, and its main function is to control the frequency response and process and modify the audio signal. When you play music in the car, the digital audio processing module adjusts the harmony according to different modes (such as bass, pop, rock, etc.) to ensure that the sound quality of the music is at its best.
[0034] The recording module is connected in communication with the microphone and, in this embodiment, records audio played by the speaker through the microphone.
[0035] The power amplifier module, which communicates with the gateway module and the speakers respectively, is the core component of the car audio system. Its main function is to render and cross-frequency audio data to drive the speakers, which can improve sound quality and reduce driving noise interference.
[0036] The gateway module is mainly responsible for coordinating the communication between the on-chip modules and the power amplifier module to ensure stable transmission of audio signals and network security.
[0037] In this embodiment, when the vehicle is in a closed environment, the vehicle audio system plays audio through the speakers, and the recording module records the played audio through the microphone for fault location.
[0038] In a car audio system, the digital audio processing module and the power amplifier module constitute multiple audio channels. For example, a car audio system has six active audio channels, including: the left media audio channel, the right media audio channel, the navigation audio channel, the voice audio channel, the safety prompt audio channel, and the information prompt audio channel; there are also two spare audio channels. This application's embodiments are not limited to this. The target audio channel can be one of the multiple active audio channels (such as the left media audio channel), and the method for locating faults in other audio channels is the same.
[0039] Audio source data is the audio data stored in the car audio system used to test the target audio channel. The audio source data for each audio channel can be the same, or it can be dedicated audio source data suitable for the characteristics of each audio channel.
[0040] The embodiments of this application are applied to on-chip modules.
[0041] Step S102: The audio source data is transmitted sequentially to each target functional module through the target audio channel for corresponding functional processing.
[0042] The target functional module refers to the module in the vehicle audio system associated with this test. For example, if the target audio channel is the left audio channel of the media, the target functional module includes: a digital audio processing module and a power amplifier module associated with the left audio channel of the media, as well as a recording module. The on-chip module sends the audio source data (i.e., wav0) of the test media left audio channel to the digital audio processing module. The digital audio processing module performs frequency response control and processing on the received audio data and modifies the audio signal (i.e., wav1). Then, the digital audio processing module transmits the processed audio data to the power amplifier module, which renders and divides the audio data (i.e., wav1-R1). Then, the power amplifier module plays wav1-R1 through the left speaker, and the recording module captures the audio played by the speaker through the microphone (i.e., wav1-R2).
[0043] Step S103: Obtain the audio data to be tested that are processed and fed back by each target functional module.
[0044] For example, continuing the above example, the digital audio processing module feeds back the first audio data to be tested (i.e., wav1), the power amplifier module feeds back the second audio data to be tested (i.e., wav1-R1), and the recording module feeds back the third audio data to be tested (i.e., wav1-R2).
[0045] There are many methods for providing feedback on the various audio data to be tested, such as through a gateway module. In some specific embodiments, preferably, obtaining the various audio data to be tested that are processed and fed back by each target functional module includes: Step S103a: Obtain the output audio data fed back by the digital audio processing module and the audio rendering data fed back by the power amplifier module through the backup audio channel.
[0046] In this specific embodiment, the processed audio data is transmitted back through the backup audio channels inside the digital audio processing module and the power amplifier module, avoiding data transmission through external interfaces and improving the efficiency of data transmission.
[0047] Step S103b: Audio recording data is retrieved via the recording module.
[0048] For example, continuing the above example, a closed environment was created inside the vehicle for testing. When the amplifier module played audio through the left speaker, the recording module collected audio recording data from inside the vehicle through the microphone.
[0049] In this specific embodiment, steps S103a and S103b are parallel and can be executed in any order.
[0050] Step S104: Perform fault analysis based on the audio data to be tested from each target functional module to determine the fault information of the target audio channel.
[0051] This application embodiment analyzes the data changes caused by various target functional modules in the processing and propagation path of the audio source data, thereby determining the fault information of the vehicle audio system.
[0052] In some specific embodiments, preferably, the audio data to be tested from each target functional module is subjected to fault analysis to determine the fault information of the target audio channel, including: Step S104a: Perform data loss analysis on the audio data to be tested for each target functional module to determine the fault information of each target functional module and the target audio channel.
[0053] In some specific embodiments, specifically, it includes: Step S104a-1: Compare the amount of audio data to be tested in each target functional module with the preset normal data amount threshold of the corresponding target functional module to obtain the amount of data loss in the corresponding target functional module.
[0054] Data loss refers to the amount of audio data to be tested in the target functional module that is reduced compared to the preset normal data volume threshold of the corresponding target functional module.
[0055] The preset normal data volume threshold is an empirical value obtained through a large number of experiments.
[0056] For example, continuing the example above, the audio source data (i.e., wav0) is fed back by the digital audio processing module as the first audio data to be tested (i.e., wav1), the power amplifier module as the second audio data to be tested (i.e., wav1-R1), and the recording module as the third audio data to be tested (i.e., wav1-R2). The preset normal data volume threshold is compared with the data volume of wav1, wav1-R1, and wav1-R2 respectively. For example, if the preset normal data volume threshold is 5000KB, if the data volume of wav1 is 4300KB, then the data loss of the digital audio processing module is 5000-4300=700KB; if the data volume of wav1-R1 is 4000KB, then the data loss of the power amplifier module is 5000-4000=1000KB; if the data volume of wav1-R2 is 4600KB, then the data loss of the recording module is 5000-4600=400KB.
[0057] Step S104a-2: When the data loss of any target functional module is greater than the data loss threshold of the corresponding target functional module, it is determined that the target functional module of the target audio channel has lost data.
[0058] The data loss threshold for each target functional module is an empirical value determined through numerous experiments under the condition of fixed audio source data.
[0059] For example, continuing the above example, if the data loss threshold for the digital audio processing module is 300 KB and the data loss of the digital audio processing module is 700 KB, both exceeding the data loss threshold, then it is determined that the digital audio processing module of the left audio channel of the media has lost data. If the data loss threshold for the power amplifier module is 800 KB and the data loss of the digital audio processing module is 1000 KB, both exceeding the data loss threshold, then it is determined that the power amplifier module of the left audio channel of the media has lost data. If the data loss threshold for the recording module is 200 KB and the data loss of the recording module is 400 KB, both exceeding the data loss threshold, then it is determined that the recording module of the left audio channel of the media has lost data.
[0060] This specific embodiment analyzes the data loss caused by each target functional module in the processing and propagation path of the audio source data, thereby determining the fault information of the vehicle audio system.
[0061] Step S104b: Perform audio quality analysis based on the audio data to be tested from each target functional module to determine the fault information of each target functional module and the target audio channel.
[0062] In this specific embodiment, steps S104a and S104b are parallel and can be executed in any order.
[0063] In the method for audio quality analysis, this specific embodiment mainly focuses on extracting and analyzing key feature data of audio quality in the audio data to be tested of each target functional module, so as to determine the fault information of the target audio channel through the key feature data of audio quality of each target functional module.
[0064] In some specific embodiments, each target functional module includes a digital audio processing module, a power amplifier module, and a recording module arranged sequentially based on the generation order of the audio data to be tested, wherein the digital audio processing module is communicatively connected to the power amplifier module.
[0065] The step of performing audio quality analysis based on the audio data to be tested from each target functional module to determine the fault information of each target functional module and the target audio channel includes: Step S104ba: Based on the output audio data of the digital audio processing module, perform audio amplitude analysis on the audio rendering data of the power amplifier module to determine the fault information of the digital audio processing module and the target audio channel.
[0066] Audio amplitude refers to the magnitude of the amplitude of audio data, usually expressed as the effective value or peak-to-peak value, and is used to calculate metrics such as power and loudness. It directly determines the loudness (volume) of a sound. The larger the audio amplitude, the louder the sound; the smaller the audio amplitude, the softer the sound. In audio processing, audio amplitude is usually quantized in decibels (dB).
[0067] In this specific embodiment, the main focus is on analyzing the quality of the audio amplitude to determine the fault information of the digital audio processing module and the target audio channel.
[0068] In some specific embodiments, specifically, it includes: Step S104ba-1: Based on multiple preset relative time periods, extract multiple audio data segments from the output audio data and the audio rendering data respectively.
[0069] In this specific embodiment, the output audio data is aligned with the audio rendering data, and the start time point of both the aligned output audio data and the audio rendering data is zero.
[0070] A preset relative time period is a pre-set relative time period determined relative to the aligned start time point (i.e., midnight). The preset relative time period is represented by a start relative time point and an end relative time point.
[0071] A relative time point refers to the duration value calculated relative to the aligned start time point (i.e., zero point). For example, if the output duration of both the audio data and the audio rendering data is 30 seconds, the first preset relative time period is [0, 15 seconds], where the end relative time point of 15 seconds is the duration value calculated relative to zero point; the second preset relative time period is [15 seconds, 20 seconds], and the third preset relative time period is [20 seconds, 30 seconds]. Then, the output audio data and the audio rendering data are divided into three audio data segments by the first, second, and third preset relative time periods, respectively.
[0072] Multiple preset relative time periods can have different durations, and there can be overlap between adjacent preset relative time periods. The specific division method can be based on the key feature information of the output audio data and the audio rendering data (for example, when the audio data has a low frequency of change, the duration of the preset relative time period can be set larger, and the audio data segments can be sparser; when the audio data has a high frequency of change, the duration of the preset relative time period can be set smaller, and the audio data segments can be denser, so as to extract the key feature information of the audio data). This specific implementation is not limited to this.
[0073] In other words, both the output audio data and the audio rendering data have an audio data segment within any preset relative time period.
[0074] Step S104ba-2: Obtain the maximum audio amplitude of the first audio data segment in the output audio data and the second audio data segment in the audio rendering data within any preset relative time period.
[0075] The first audio data segment is an audio data segment extracted from the output audio data during any preset relative time period; the second audio data segment is an audio data segment extracted from the audio rendering data during any preset relative time period.
[0076] Step S104ba-3a: When the maximum audio amplitude of the first audio data segment and the maximum audio amplitude of the second audio data segment are within the same relative time point range, and the difference between the two maximum audio amplitudes exceeds the preset normal amplitude range, it is determined that the output of the digital audio processing module and the volume of the target audio channel are abnormal.
[0077] A relative time point refers to the duration value calculated relative to the aligned start time point (i.e., zero point).
[0078] The relative time point range refers to the relative time point ± a preset range value. For example, if the relative time point is 15s and the preset range value is 1s, then the relative time point range is [14s, 16s].
[0079] The maximum audio amplitude of the first audio data segment and the maximum audio amplitude of the second audio data segment are within the same relative time range, which can be understood as the maximum audio amplitude of the first audio data segment and the maximum audio amplitude of the second audio data segment occurring at the same time point.
[0080] If two maximum audio amplitudes occur at the same time and the two maximum audio amplitudes differ significantly, it is determined that the output of the digital audio processing module and the volume of the target audio channel are abnormal.
[0081] Step S104ba-3b: When the maximum audio amplitude of the first audio data segment and the maximum audio amplitude of the second audio data segment are not within the same relative time point range, it is determined that the output of the digital audio processing module and the volume of the target audio channel are abnormal.
[0082] The maximum audio amplitude of the first audio data segment and the maximum audio amplitude of the second audio data segment are not within the same relative time range, which can be understood as the maximum audio amplitude of the first audio data segment and the maximum audio amplitude of the second audio data segment occurring at different times. Therefore, it is determined that the output of the digital audio processing module and the volume of the target audio channel are abnormal.
[0083] This specific embodiment analyzes the audio amplitude of the audio data caused by the output of the digital audio processing module in the processing and propagation path of the audio source data, thereby determining that the output of the digital audio processing module is abnormal in volume with the target audio channel.
[0084] In this specific embodiment, steps S104ba-3a and S104ba-3b are parallel and can be executed in any order.
[0085] Step S104bb: Based on the audio recording data retrieved by the recording module, perform audio amplitude analysis to determine the fault information of the recording module and the target audio channel.
[0086] To ensure the validity of the audio recording data when the recording module retrieves the audio recording data, the speaker output volume is adjusted to the maximum volume during testing in a closed vehicle environment.
[0087] In some specific embodiments, specifically, it includes: Step S104bba: When the maximum amplitude of the audio recording data is greater than the preset maximum amplitude of the environment, it is determined that the volume of the recording module re-samples and the target audio channel is abnormal.
[0088] In this specific embodiment, under normal circumstances, the normal amplitude of the audio recording data is less than or equal to the preset maximum amplitude value (e.g., 0dBFS). If the amplitude of the audio recording data is greater than the preset maximum amplitude value, it is determined that the volume of the recording module re-samples the target audio channel is abnormal.
[0089] This specific embodiment analyzes the audio amplitude of the audio data re-collected by the recording module during the processing and propagation path of the audio source data, thereby determining the volume anomaly between the re-collected audio data and the target audio channel.
[0090] Step S104bc: Based on the audio rendering data and the audio recording data, perform audio spectrum analysis to determine the fault information of the recording module and the target audio channel.
[0091] In this specific embodiment, audio spectrum analysis is also an important part of audio quality analysis.
[0092] In some specific embodiments, specifically, it includes: Step S104bc-1: Calculate the ratio of the peak value of the audio recording data to the peak value of the audio rendering data to obtain the peak retention rate value.
[0093] Audio peak value refers to the maximum value of audio data that deviates from zero level, and is usually used to measure the instantaneous maximum amplitude of a signal.
[0094] In theory, a peak retention rate of 1 means that the peak value of the recorded audio data is the same as the peak value of the rendered audio data. However, in practice, sound is lost during propagation.
[0095] Step S104bc-2: When the peak retention rate value is less than the preset normal peak retention rate threshold, it is determined that the sound effect processing of the recording module and the power amplifier module of the target audio channel is abnormal.
[0096] If the peak retention rate value is greater than or equal to the preset normal peak retention rate threshold (e.g., 90%), then it is determined that the sound effect processing of the recording module and the power amplifier module of the target audio channel is normal.
[0097] If the peak hold rate value is less than the preset normal peak hold rate threshold, it is determined that the sound effect processing of the recording module and the power amplifier module of the target audio channel is abnormal.
[0098] This specific embodiment performs audio spectrum analysis on the audio recording data retrieved by the recording module and the audio rendering data rendered by the power amplifier module during the processing and propagation path of the audio source data, thereby determining that the audio processing of the recording module and the power amplifier module of the target audio channel is abnormal.
[0099] In this specific embodiment, steps S104ba, S104bb, and S104bc are parallel and can be executed in any order.
[0100] This embodiment transmits audio source data sequentially to various target functional modules through the target audio channel in the vehicle audio system, where each module performs corresponding functional processing. Then, it acquires the test audio data returned by each target functional module after processing. Based on the audio source data and the test audio data from each target functional module, it analyzes the data to determine the fault information of the target audio channel. By comprehensively analyzing the test audio data returned by each target functional module during the processing and propagation path of the audio source data, fault information in the propagation path can be located. This eliminates the need for program-based testing, avoiding the expertise required for log analysis and data entry, and lowering the testing threshold. It is suitable for ordinary field personnel to troubleshoot problems promptly.
[0101] In some other specific embodiments, before acquiring the audio source data of the target audio channel in the vehicle audio system, the method further includes: Step S100-1: The gateway module sends a self-test command to trigger the power amplifier module to perform a self-test on the speaker of the target audio channel.
[0102] Step S100-2: Obtain the self-test result fed back by the power amplifier module based on the self-test command through the gateway module.
[0103] In this embodiment, before performing fault testing on the target audio channel using audio source data, a self-test command is first issued through the gateway module to trigger the power amplifier module to perform a self-test on the speaker of the target audio channel. The self-test result is then transmitted back to the on-chip module through the gateway module. The on-chip module performs a comprehensive analysis by combining the fault information of the target audio channel determined by the method described above with the self-test result, thereby determining a more accurate fault location result.
[0104] Transmitting self-test data via the gateway module avoids mutual interference with audio data in the target audio channel.
[0105] Example 2 This application also provides an apparatus embodiment that follows the above embodiments, used to implement the method steps described in the above embodiments. The interpretation of the same names is the same as that in the above embodiments, and the same technical effects are achieved. Therefore, it will not be repeated here.
[0106] like Figure 3 As shown, this application provides a vehicle audio system fault location device 300, comprising: The audio source acquisition unit 301 is used to acquire audio source data of the target audio channel in the vehicle audio system; Data processing unit 302 is used to transmit the sound source data to each target functional module through the target audio channel for corresponding functional processing. The data feedback unit 303 is used to acquire the audio data to be tested that are fed back by each target function module after processing. The fault determination unit 304 is used to perform fault analysis based on the audio data to be tested of each target functional module to determine the fault information of the target audio channel.
[0107] The audio source data is sequentially transmitted to various target functional modules through the target audio channel in the vehicle audio system, where each module performs its corresponding functional processing. Then, the audio data to be tested fed back from each target functional module after processing is acquired. Based on the audio data to be tested from each target functional module, fault analysis is performed to determine the fault information of the target audio channel. A comprehensive analysis of the audio data to be tested fed back from each target functional module along the processing and propagation path of the audio source data is conducted to locate fault information in the propagation path. This method eliminates the need for programmatic testing, avoiding the professionalism of log analysis and instrumentation, and lowers the testing threshold. It is suitable for ordinary field personnel to troubleshoot problems promptly.
[0108] Example 3 This embodiment provides an electronic device, comprising: 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, the instructions being executed by the at least one processor to enable the at least one processor to perform the method steps described in the above embodiment.
[0109] Example 4 This application provides a non-volatile computer storage medium storing computer-executable instructions that can perform the steps described in the above embodiments.
[0110] Finally, it should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the systems or apparatus disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and relevant parts can be referred to the method section.
[0111] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A method for locating faults in a vehicle audio system, characterized in that, include: Acquire the audio source data of the target audio channel in the vehicle audio system; The audio source data is transmitted sequentially to each target functional module through the target audio channel for corresponding functional processing. Obtain the audio data to be tested that are fed back by each target functional module after processing; Fault analysis is performed based on the audio data to be tested from each target functional module to determine the fault information of the target audio channel.
2. The method according to claim 1, characterized in that, The fault analysis based on the audio data under test of each target functional module to determine the fault information of the target audio channel includes: Data loss analysis is performed on the audio data to be tested from each target functional module to determine the fault information of each target functional module and the target audio channel. Audio quality analysis is performed based on the audio data to be tested from each target functional module to determine the fault information of each target functional module and the target audio channel.
3. The method according to claim 2, characterized in that, The step of performing data loss analysis on the audio data to be tested for each target functional module, and determining the fault information of each target functional module and the target audio channel, includes: The amount of audio data to be tested in each target functional module is compared with the preset normal data amount threshold of the corresponding target functional module to obtain the amount of data loss in the corresponding target functional module. When the data loss of any target functional module exceeds the data loss threshold of the corresponding target functional module, it is determined that the target functional module of the target audio channel has lost data.
4. The method according to claim 2, characterized in that, Each target functional module includes a digital audio processing module, a power amplifier module, and a recording module arranged sequentially based on the generation order of the audio data to be tested, wherein the digital audio processing module is communicatively connected to the power amplifier module; The step of performing audio quality analysis based on the audio data to be tested from each target functional module to determine the fault information of each target functional module and the target audio channel includes: Based on the output audio data of the digital audio processing module, audio amplitude analysis is performed on the audio rendering data of the power amplifier module to determine the fault information of the digital audio processing module and the target audio channel. Based on the audio recording data retrieved by the recording module, audio amplitude analysis is performed to determine the fault information of the recording module and the target audio channel. Based on the audio rendering data and the audio recording data, audio spectrum analysis is performed to determine the fault information of the recording module and the target audio channel.
5. The method according to claim 4, characterized in that, The step of analyzing the audio amplitude of the power amplifier module's audio rendering data based on the output audio data of the digital audio processing module to determine the fault information of the digital audio processing module and the target audio channel includes: Based on multiple preset relative time periods, multiple audio data segments are extracted from the output audio data and the audio rendering data, respectively. The maximum audio amplitude of each segment is obtained based on the first audio data segment in the output audio data and the second audio data segment in the audio rendering data within any preset relative time period. When the maximum audio amplitude of the first audio data segment and the maximum audio amplitude of the second audio data segment are within the same relative time point range, and the difference between the two maximum audio amplitudes exceeds the preset normal amplitude range, it is determined that the output of the digital audio processing module and the volume of the target audio channel are abnormal. When the maximum audio amplitude of the first audio data segment and the maximum audio amplitude of the second audio data segment are not within the same relative time point range, it is determined that the output of the digital audio processing module and the volume of the target audio channel are abnormal.
6. The method according to claim 4, characterized in that, The step of performing audio amplitude analysis based on the audio recording data retrieved by the recording module to determine the fault information of the recording module and the target audio channel includes: When the maximum amplitude of the audio recording data is greater than the preset maximum amplitude of the environment, it is determined that the volume of the recording module re-sampled and the target audio channel is abnormal.
7. The method according to claim 4, characterized in that, The step of performing audio spectrum analysis based on the audio rendering data and the audio recording data to determine the fault information of the recording module and the target audio channel includes: Calculate the ratio of the peak value of the audio recording data to the peak value of the audio rendering data to obtain the peak retention rate value; When the peak hold rate value is less than the preset normal peak hold rate threshold, it is determined that the sound effect processing of the recording module and the power amplifier module of the target audio channel is abnormal.
8. The method according to claim 4, characterized in that, The acquisition of each audio data to be tested, processed and fed back by each target functional module, includes: The output audio data fed back by the digital audio processing module and the audio rendering data fed back by the power amplifier module are obtained through the backup audio channel. Audio recording data is retrieved via the recording module.
9. The method according to claim 4, characterized in that, Before acquiring the audio source data of the target audio channel in the vehicle audio system, the process also includes: The gateway module sends a self-test command to trigger the power amplifier module to perform a self-test on the speaker of the target audio channel; The gateway module obtains the self-test results fed back by the power amplifier module based on the self-test command.
10. A device for locating faults in a vehicle audio system, characterized in that, include: The audio source acquisition unit is used to acquire the audio source data of the target audio channel in the vehicle audio system; The data processing unit is used to transmit the sound source data to each target functional module through the target audio channel, and perform corresponding functional processing respectively. The data feedback unit is used to acquire the audio data to be tested that are fed back by each target functional module after processing. The fault determination unit is used to perform fault analysis based on the audio data under test of each target functional module to determine the fault information of the target audio channel.