CN117939381A - Audio detection method and device applied to vehicle - Google Patents

Audio detection method and device applied to vehicle Download PDF

Info

Publication number
CN117939381A
CN117939381A CN202410092566.5A CN202410092566A CN117939381A CN 117939381 A CN117939381 A CN 117939381A CN 202410092566 A CN202410092566 A CN 202410092566A CN 117939381 A CN117939381 A CN 117939381A
Authority
CN
China
Prior art keywords
vehicle
audio data
audio
mounted power
detection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410092566.5A
Other languages
Chinese (zh)
Inventor
蔺树兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Avatr Technology Chongqing Co Ltd
Original Assignee
Avatr Technology Chongqing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Avatr Technology Chongqing Co Ltd filed Critical Avatr Technology Chongqing Co Ltd
Priority to CN202410092566.5A priority Critical patent/CN117939381A/en
Publication of CN117939381A publication Critical patent/CN117939381A/en
Pending legal-status Critical Current

Links

Abstract

The application provides an audio detection method and device applied to a vehicle, which can be used in the technical field of vehicles. The method comprises the following steps: receiving a detection instruction sent by a cabin domain controller in a vehicle; acquiring audio data according to the detection instruction; the audio data is transmitted to the cabin domain controller. The method can improve the audio detection efficiency of the vehicle-mounted power amplifier equipment.

Description

Audio detection method and device applied to vehicle
Technical Field
The present application relates to the field of vehicle technologies, and in particular, to an audio detection method and apparatus for a vehicle.
Background
In the process of using the vehicle by a user, the sound in the music and the video can be played through the vehicle-mounted power amplification equipment in the vehicle, and in order to ensure that the sound effect of the sound played by the vehicle-mounted power amplification equipment is normal, the vehicle-mounted power amplification equipment is required to be subjected to audio detection.
In the prior art, based on a manual processing mode, welding spots are arranged at the output end of the vehicle-mounted power amplification device so that the output end of the vehicle-mounted power amplification device is connected with a sound card, audio data transmitted by the vehicle-mounted power amplification device are acquired based on the sound card device, and the audio data acquired by the sound card device are analyzed and processed.
However, in the above manner, based on the manner of setting the welding spot at the output end of the vehicle-mounted power amplifier, the vehicle-mounted power amplifier needs to be disassembled and subjected to welding wire treatment, so that the operation is complex, and the audio detection efficiency of the vehicle-mounted power amplifier is reduced.
Disclosure of Invention
The application provides an audio detection method and device applied to a vehicle, which are used for solving the problem of low audio detection efficiency of the vehicle-mounted power amplifier device caused by the need of disassembling and welding wire processing of the vehicle-mounted power amplifier device.
In a first aspect, the present application provides an audio detection method applied to a vehicle, the method being applied to a vehicle-mounted power amplifier device in the vehicle; the method comprises the following steps:
Receiving a detection instruction sent by a cabin domain controller in a vehicle; the detection instruction is used for indicating the vehicle-mounted power amplification equipment for detecting the vehicle, and the message format adopted by the detection instruction is a format conforming to the Controller Area Network (CAN) protocol;
Acquiring audio data according to the detection instruction; the audio data are sound data transmitted in the vehicle-mounted power amplifier equipment;
transmitting the audio data to the cabin domain controller; the cabin domain controller is used for processing the audio data to obtain a detection result.
In one example, the detection instruction includes position information, where the position information characterizes a node position on a transmission channel used for transmitting an audio signal in the vehicle-mounted power amplification device; according to the detection instruction, obtaining audio data comprises the following steps:
collecting an audio signal corresponding to the position information according to the position information in the detection instruction; wherein the audio signal characterizes sound data transmitted by a node position corresponding to the position information;
And carrying out digital processing on the audio signal to obtain the audio data.
In one example, according to the position information in the detection instruction, collecting the audio signal corresponding to the position information includes:
Determining time information corresponding to the position information in the detection instruction according to a preset mapping relation; the preset mapping relation comprises a corresponding relation between position information and time information; the time information comprises the time of the audio signal transmitted by the transmission channel corresponding to the position information;
And acquiring the audio signal according to the time information and the position information in the detection instruction.
In one example, digitizing the audio signal to obtain the audio data includes:
determining transmission information of the audio signal; wherein the transmission information characterizes a transmission format of the audio signal;
And analyzing the audio signal according to the transmission information of the audio signal to obtain audio data corresponding to the audio signal.
In one example, the transmission information includes size end information and bit depth information, the size end information representing a byte order of the audio signal, the bit depth information representing an acquisition accuracy of the audio signal;
according to the transmission information of the audio signal, analyzing the audio signal to obtain audio data corresponding to the audio signal, including:
and analyzing the audio signal according to the size end information and the bit depth information in the transmission information to obtain audio data corresponding to the audio signal.
In a second aspect, the present application provides an audio detection method applied to a vehicle, the method being applied to a cabin controller in the vehicle; the method comprises the following steps:
Responding to an audio abnormality signal of a vehicle, and sending a detection instruction to a vehicle-mounted power amplification device in the vehicle;
Receiving audio data transmitted by the vehicle-mounted power amplifier equipment;
Determining and outputting a detection result according to the audio data; wherein the detection result characterizes whether the audio data are normal or not; and the detection result is used for debugging the vehicle-mounted power amplifier equipment.
In one example, determining and outputting a detection result according to the audio data includes:
Performing data reduction processing on the audio data to obtain and display a waveform diagram corresponding to the audio data; wherein the waveform map characterizes waveform characteristics of the audio data;
and determining and outputting the detection result according to the waveform diagram corresponding to the audio data.
In one example, determining the detection result according to the waveform diagram corresponding to the audio data includes:
determining characteristic information of a waveform diagram corresponding to the audio data; wherein, the characteristic information characterizes the waveform change condition in the waveform diagram;
if the characteristic information is determined to be not in accordance with the preset condition, determining that the detection result represents that the audio data are abnormal;
And if the characteristic information is determined to be in accordance with the preset condition, determining that the detection result represents that the audio data are normal.
In a third aspect, the present application provides an audio detection apparatus applied to a vehicle, the apparatus being applied to a vehicle-mounted power amplification device in the vehicle; the device comprises:
The receiving unit is used for receiving the detection instruction sent by the cabin area controller in the vehicle and acquiring audio data; the detection instruction is used for indicating the vehicle-mounted power amplification equipment for detecting the vehicle, and the message format adopted by the detection instruction is a format conforming to the Controller Area Network (CAN) protocol;
The acquisition unit is used for acquiring audio data according to the detection instruction; the audio data are sound data transmitted in the vehicle-mounted power amplifier equipment;
a transmission unit for transmitting the audio data to the cabin domain controller; the cabin domain controller is used for processing the audio data to obtain a detection result.
In a fourth aspect, the present application provides an audio detection apparatus for use in a vehicle, the apparatus being for use in a cabin controller in the vehicle; the device comprises:
a transmitting unit for transmitting a detection instruction to a vehicle-mounted power amplifier device in a vehicle in response to an audio abnormality signal of the vehicle;
The receiving unit is used for receiving the audio data transmitted by the vehicle-mounted power amplifier device;
The detection unit is used for determining and outputting a detection result according to the audio data; wherein the detection result characterizes whether the audio data are normal or not; and the detection result is used for debugging the vehicle-mounted power amplifier equipment.
In a fifth aspect, the present application provides a vehicle-mounted power amplifier apparatus, including: a processor, and a memory communicatively coupled to the processor;
The memory stores computer-executable instructions;
The processor executes computer-executable instructions stored in the memory to implement the method of the first aspect.
In a sixth aspect, the present application provides a cabin domain controller comprising: a processor, and a memory communicatively coupled to the processor;
The memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the method of the second aspect.
In a seventh aspect, the present application provides a computer readable storage medium having stored therein computer executable instructions for implementing the method of the first or second aspect when executed by a processor.
In an eighth aspect, the present application provides a computer program product comprising: a computer program stored in a readable storage medium, from which at least one processor of a vehicle-mounted power amplification apparatus can read, the at least one processor executing the computer program, such that the vehicle-mounted power amplification apparatus performs the method of the first or second aspect.
In a ninth aspect, the present application provides a vehicle, where the vehicle includes an on-board power amplification device, and a cabin controller communicatively connected to the on-board power amplification device, and the vehicle is configured to implement the method in the first aspect or the second aspect.
According to the audio detection method and device for the vehicle, provided by the application, the detection instruction in the CAN message format is sent to the vehicle-mounted power amplification equipment in the vehicle through the cabin controller in the vehicle to capture and analyze the audio data of the vehicle-mounted power amplification equipment, so that the detection result of the audio data is obtained, and the debugging treatment is carried out on the vehicle-mounted power amplification equipment; furthermore, the vehicle-mounted power amplifier device can be detected on the basis of no need of disassembling welding wires and external equipment, so that the audio detection efficiency of the vehicle-mounted power amplifier device is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic view of an application scenario provided by the present application;
fig. 2 is a schematic flow chart of an audio detection method applied to a vehicle according to an embodiment of the present application;
fig. 3 is a flowchart of another audio detection method applied to a vehicle according to an embodiment of the present application;
fig. 4 is a schematic diagram of an internal structure of a power amplifier chip according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an audio detection device applied to a vehicle according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of another audio detection device applied to a vehicle according to an embodiment of the present application;
Fig. 7 is a schematic structural diagram of a vehicle-mounted power amplifier device according to an embodiment of the present application;
Fig. 8 is a schematic structural diagram of a cabin domain controller according to an embodiment of the present application.
Specific embodiments of the present application have been shown by way of the above drawings and will be described in more detail below. The drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but rather to illustrate the inventive concepts to those skilled in the art by reference to the specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
In the process of using the vehicle by a user, the sound in the music and the video can be played through the vehicle-mounted power amplification equipment in the vehicle, and in order to ensure that the sound effect of the sound played by the vehicle-mounted power amplification equipment is normal, the vehicle-mounted power amplification equipment is required to be subjected to audio detection.
In one example, in the design of a vehicle-mounted audio system of a vehicle, the vehicle-mounted audio system comprises a cabin domain controller (Cabin Domain Controller, abbreviated as CDC) and vehicle-mounted power amplification equipment such as an external power amplifier, audio processing algorithms such as an active acoustic wave technology (Pulse Code Modulation, abbreviated as ASE), an active noise reduction (Pulse Code Modulation, abbreviated as RNC) and the like are integrated in the external power amplifier, audio data are transmitted between the CDC and the external power amplifier through an automobile audio bus (Automotive Audio Bus, abbreviated as A2B), and message interaction is performed through a controller local area network (Controller Area Network, abbreviated as Can); in order to realize functions such as voice awakening, the external power amplifier needs to mix audio data received from the CDC according to a certain rule through A2B and then transmit the audio data back (Loopback) to the CDC, namely an Android system on the CDC directly passes through an application programming interface (Application Programming Interface, API for short) of an advanced Linux sound architecture (Advanced Linux Sound Architecture, ALSA for short), and the uncompressed audio sampling data (Pulse Code Modulation, PCM for short) are grabbed so as to check the sources of abnormal data and introduce the analysis processing to the transmitted audio data.
In another example, based on a manual processing mode, by setting a welding spot on an output end of the vehicle-mounted power amplification device, the output end of the vehicle-mounted power amplification device is connected with a sound card, audio data transmitted by the vehicle-mounted power amplification device is acquired based on the sound card device, and the audio data acquired by the sound card device is analyzed and processed.
However, in the above manner, on one hand, the number of channels from the CDC to the external power amplifier is generally more than twenty, but the number of channels returned by the external power amplifier is generally only four, and the data processed by the ASE technology and the RNC technology is not returned to the CDC, so that the analysis process of the problems of noise introduced in the processing of the external power amplifier and noise caused by the processed data abnormality is more difficult; on the other hand, based on the way of arranging welding spots on the output end of the vehicle-mounted power amplification equipment, disassembling and welding wire treatment are required to be carried out on the vehicle-mounted power amplification equipment, and the operation is complex; furthermore, the audio detection efficiency of the vehicle-mounted power amplifier device is reduced.
The application provides an audio detection method and device applied to a vehicle, and aims to solve the technical problems in the prior art.
Fig. 1 is a schematic diagram of an application scenario provided by the present application, as shown in fig. 1, where the scenario includes an on-board power amplifier device 101 and a cabin controller (Cabin Domain Controller, abbreviated as CDC) 102. When the cabin domain controller 102 detects that the vehicle-mounted power amplification device 101 outputs an abnormal sound, a detection instruction is sent to the vehicle-mounted power amplification device 101 to instruct detection of the vehicle-mounted power amplification device 101, the vehicle-mounted power amplification device 101 detects in response to the received detection instruction, and a detection result is output.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 2 is a schematic flow chart of an audio detection method applied to a vehicle according to an embodiment of the present application, as shown in fig. 2, where the method is applied to a vehicle-mounted power amplifier device in the vehicle, and the method includes:
201. the cabin domain controller responds to the audio abnormality signal of the vehicle and sends a detection instruction to an on-board power amplifier device in the vehicle.
Illustratively, a cabin controller (Cabin Domain Controller, abbreviated as CDC) is further disposed in the vehicle, and audio data is transmitted between the CDC and the vehicle-mounted power amplification device through a vehicle audio bus (Automotive Audio Bus, abbreviated as A2B). When the vehicle-mounted power amplifier device is required to detect the audio, if an audio abnormality signal representing the audio abnormality of the vehicle is received, the CDC generates a detection instruction in a message format and sends the detection instruction to the vehicle-mounted power amplifier device in the vehicle.
202. And the vehicle-mounted power amplification equipment receives the detection instruction sent by the cabin area controller in the vehicle.
The CDC generates a detection instruction in a message format, where the message format adopted by the detection instruction is a format conforming to the controller area network CAN protocol, and sends the generated detection instruction in the message format to the vehicle-mounted power amplifier device through a controller area network (Controller Area Network, abbreviated as CAN) bus to instruct to detect the vehicle-mounted power amplifier device. The vehicle-mounted power amplifier equipment responds after receiving a detection instruction sent by the cabin area controller through a CAN protocol.
203. The vehicle-mounted power amplifier equipment acquires audio data according to the detection instruction; the audio data are sound data transmitted in the vehicle-mounted power amplifier device.
Illustratively, based on an application programming interface (Application Programming Interface, abbreviated as API) in the vehicle-mounted power amplification apparatus, the transmitted sound data, i.e., audio data, is obtained from the internal memory of the vehicle-mounted power amplification apparatus, and a plurality of audio data may be obtained to be processed.
204. The vehicle-mounted power amplification equipment transmits the audio data to the cabin controller; the cabin domain controller is used for processing the audio data to obtain a detection result.
The method includes the steps that based on the vehicle-mounted power amplifier device, one or more acquired audio data can be sent back to an Android system on the CDC in a routing mode, so that the CDC can analyze data of each audio data in the one or more acquired audio data based on the Android system, a detection result of the audio data is determined, and the detection result is output.
205. And the cabin domain controller receives the audio data transmitted by the vehicle-mounted power amplifier equipment.
Illustratively, the cabin domain controller receives audio data transmitted by the vehicle-mounted power amplifier device to be processed based on the ALSA API interface.
206. The cabin domain controller determines and outputs a detection result according to the audio data; wherein, the detection result represents whether the audio data are normal or not; the detection result is used for debugging the vehicle-mounted power amplifier equipment.
The cabin domain controller may directly perform data analysis on each audio data based on the audio analysis software on the cabin domain controller, and output a detection result of each audio data to prompt a user whether each audio data is normal, and the user may determine an abnormal internal position of the vehicle-mounted power amplifier device based on the detection result of each audio data output, and perform debugging processing on the vehicle-mounted power amplifier device; furthermore, the vehicle-mounted power amplifier device can be detected on the basis of no need of disassembling welding wires and external equipment, so that the detection efficiency of the vehicle-mounted power amplifier device is improved.
In the embodiment, an audio detection method applied to a vehicle is provided, and a detection instruction in a CAN message format is sent to a vehicle-mounted power amplifier device in the vehicle through a cabin controller in the vehicle to capture and analyze and process audio data of the vehicle-mounted power amplifier device, so as to obtain a detection result of the audio data, and debug the vehicle-mounted power amplifier device; furthermore, the vehicle-mounted power amplifier device can be detected on the basis of no need of disassembling welding wires and external equipment, so that the audio detection efficiency of the vehicle-mounted power amplifier device is improved.
Fig. 3 is a flowchart of another audio detection method applied to a vehicle according to an embodiment of the present application, as shown in fig. 3, the method includes:
301. The cabin domain controller responds to the audio abnormality signal of the vehicle and sends a detection instruction to an on-board power amplifier device in the vehicle.
Illustratively, this step is referred to in step 201, and will not be described in detail herein.
302. And the vehicle-mounted power amplification equipment receives the detection instruction sent by the cabin area controller in the vehicle.
Illustratively, this step is referred to in step 202, and will not be described in detail herein.
303. The vehicle-mounted power amplification equipment collects audio signals corresponding to the position information according to the position information in the detection instruction; the audio signal characterizes sound data transmitted by the node position corresponding to the position information.
In one example, the detection instruction includes location information, where the location information characterizes a node location on a transmission channel used for transmitting an audio signal in the vehicle-mounted power amplification device.
Fig. 4 is a schematic diagram of an internal structure of a power amplifier chip according to an embodiment of the present application, and as shown in fig. 4, a vehicle-mounted power amplifier device is a power amplifier chip, where the power amplifier chip includes a plurality of transmission channels including an audio signal input end, an audio signal processing end, and an audio signal output end. In order to further improve the detection efficiency, when the CDC monitors that the vehicle-mounted power amplification device, such as the audio output by the power amplification chip, is abnormal, the CDC generates a detection instruction in a message format, where the detection instruction includes node positions on a transmission channel of a plurality of preset vehicle-mounted power amplification devices for transmitting audio signals, that is, position information of a preset test point 1 and a preset test point 2 in the power amplification chip, and the CDC sends the generated detection instruction in the message format to the power amplification chip through the CAN bus to instruct to detect the power amplification chip. The power amplifier chip responds after receiving the detection instruction, and analyzes the detection instruction based on a preset message analysis mode to obtain one or more pieces of position information included in the detection instruction. And the power amplification chip collects sound data transmitted by the node position corresponding to each position information, namely audio signals transmitted by each test point, according to each position information included in the detection instruction.
In one example, step 303 includes the steps of:
A first step of step 303, determining time information corresponding to the position information in the detection instruction according to a preset mapping relation; the preset mapping relation comprises a corresponding relation between position information and time information; the time information includes a time at which the audio signal is transmitted through the transmission channel corresponding to the position information.
And a second step of step 303, collecting the audio signal according to the time information and the position information in the detection instruction.
For example, based on a Time division multiplexing technology (Time-Division Multiplexing, abbreviated as TDM) adopted on the vehicle-mounted power amplifier device, different signals are transmitted at different times on the vehicle-mounted power amplifier device, so that for each piece of analyzed position information, a Time when a transmission channel corresponding to each piece of position information transmits an audio signal needs to be determined, that is, each piece of Time information corresponding to each piece of position information, the vehicle-mounted power amplifier device invokes a preset mapping relationship, and the preset mapping relationship comprises a corresponding relationship between each piece of position information and each piece of Time information, and according to each piece of analyzed position information and the preset mapping relationship, each piece of position information in the received detection instruction is determined, and each piece of Time information corresponding to each piece of Time information is determined. The vehicle-mounted power amplifier device carries out clock configuration on the logic analyzer on the vehicle-mounted power amplifier device according to each piece of time information corresponding to each piece of received position information, and further, the voice data transmitted by the node position corresponding to each piece of position information, namely the audio signals transmitted by each test point, can be collected based on the logic analyzer on the vehicle-mounted power amplifier device according to each piece of configured time information and each piece of position information.
304. The vehicle-mounted power amplifier device performs digital processing on the audio signals to obtain audio data.
The digital signal converter on the vehicle-mounted power amplifier device digitizes each acquired audio signal to obtain audio data corresponding to each audio signal.
In one example, step 304 includes the steps of:
a first step of determining transmission information of the audio signal in step 304; wherein the transmission information characterizes a transmission format of the audio signal.
And step 304, analyzing the audio signal according to the transmission information of the audio signal to obtain audio data corresponding to the audio signal.
The signal transmitted by the vehicle-mounted power amplifier device includes an audio signal, a power signal, a communication signal, a diagnostic signal, and the like, and the audio signal transmitted by the vehicle-mounted power amplifier device adopts a preset transmission format, such as a transmission format corresponding to audio data of an integrated circuit built-in (IIS) for accurate analysis of the audio signal, so that the acquired audio signal needs to be analyzed, and therefore, for each obtained audio signal, the vehicle-mounted power amplifier device determines the transmission format of each audio signal, and according to the transmission information of each audio signal, analyzes each audio signal based on a signal analysis mode preset by the vehicle-mounted power amplifier device to obtain audio data corresponding to each audio signal, such as uncompressed waveform coded (Pulse Code Modulation, PCM) audio data.
In one example, the transmission information includes size end information and bit depth information, the size end information representing a byte order of the audio signal, the bit depth information representing an acquisition accuracy of the audio signal; the second step of step 304 includes: and analyzing the audio signal according to the size end information and the bit depth information in the transmission information to obtain audio data corresponding to the audio signal.
Specifically, the transmission information of each audio signal comprises size end information and bit depth information, wherein the size end information represents the byte sequence of the audio signal, and the bit depth information represents the acquisition precision of the audio signal; according to the size end information and the bit depth information of each audio signal, the vehicle-mounted power amplifier device analyzes each audio signal based on a preset signal analysis mode to obtain audio data corresponding to each audio signal.
305. The vehicle-mounted power amplification equipment transmits the audio data to the cabin controller; the cabin domain controller is used for processing the audio data to obtain a detection result.
Illustratively, this step is referred to in step 204, and will not be described in detail herein.
306. And the cabin domain controller receives the audio data transmitted by the vehicle-mounted power amplifier equipment.
Illustratively, this step is referred to in step 205, and will not be described in detail herein.
307. The cabin domain controller performs data reduction processing on the audio data to obtain and display a waveform diagram corresponding to the audio data; wherein the waveform map characterizes waveform characteristics of the audio data.
The cabin domain controller performs data reduction processing, i.e., waveform reduction processing, on each piece of obtained audio data based on a preset audio data analysis tool to obtain a waveform diagram corresponding to each piece of audio data, and displays each obtained waveform diagram to a user, thereby intuitively displaying waveform characteristics of each piece of audio data.
308. And the cabin domain controller determines and outputs a detection result according to the waveform diagram corresponding to the audio data.
The cabin domain controller analyzes the obtained waveform diagram of each audio data, for example, compares the waveform characteristics shown by each waveform diagram with the waveform diagram of the preset normal audio data to obtain a comparison result of the waveform diagram corresponding to each audio data, and further obtains a detection result of each audio data to determine whether each audio data is normal. And the cabin domain controller displays and outputs the obtained detection result of each audio data, so that a user can debug the vehicle-mounted power amplifier according to the detection result of each audio data, and the detection process of the vehicle-mounted power amplifier is completed.
In one example, step 308 includes the steps of:
a first step of step 308, determining characteristic information of a waveform diagram corresponding to the audio data; wherein the characteristic information characterizes the waveform change condition in the waveform diagram.
And a second step of step 308, if the feature information is determined not to meet the preset condition, determining that the detection result represents that the audio data is abnormal.
And step three of step 308, if the feature information is determined to meet the preset condition, determining that the detection result represents that the audio data is normal.
For example, for each waveform diagram corresponding to the audio data, based on a preset waveform data analysis technique, the cabin domain controller analyzes the waveform diagram corresponding to each audio data to obtain feature information of the waveform diagram corresponding to each audio data, so as to characterize a waveform change condition in each waveform diagram, such as time domain information or frequency domain information in each waveform diagram. The cabin domain controller calls preset conditions, if the preset characteristic information comprises preset time domain information or preset frequency domain information, judging whether the characteristic information of each determined waveform diagram accords with the called preset conditions, and if each characteristic information is determined not to accord with the called preset conditions, if the time domain information in each waveform diagram is not in a range corresponding to the preset time domain information, determining that the audio data corresponding to each characteristic information is abnormal; if each piece of characteristic information is determined to be in accordance with the preset condition, if the time domain information in each waveform diagram is in the range corresponding to the preset time domain information, determining that the audio data corresponding to each piece of characteristic information is normal; furthermore, the vehicle-mounted power amplifier device can obtain and output the detection result of each audio data, so that a user can debug the vehicle-mounted power amplifier device according to the detection result of each audio data, the accurate detection process of the vehicle-mounted power amplifier device is completed, and the detection efficiency and accuracy of the vehicle-mounted power amplifier device are improved.
In this embodiment, on the basis of the foregoing embodiment, on the one hand, through CDC in a vehicle, a detection instruction in a CAN message format is sent to a vehicle-mounted power amplification device in the vehicle to capture and analyze and process audio data of the vehicle-mounted power amplification device, so as to obtain a detection result of the audio data, so as to debug the vehicle-mounted power amplification device; furthermore, the detection efficiency of the vehicle-mounted power amplifier device can be improved; on the other hand, through CDC in the vehicle, waveform restoration processing is carried out on the audio data transmitted by the preset test node position on the vehicle-mounted power amplifier device, so that waveform characteristics of each audio data are obtained, further, the waveform characteristics of each audio data are analyzed, accurate detection results of each audio data are obtained, and therefore detection accuracy of the vehicle-mounted power amplifier device is improved.
Fig. 5 is a schematic structural diagram of an audio detection device applied to a vehicle according to an embodiment of the present application, where, as shown in fig. 5, the device is applied to a vehicle-mounted power amplifier device in the vehicle; the device comprises:
A receiving unit 401 for receiving a detection instruction sent by a cabin domain controller in a vehicle; the detection instruction is used for indicating the vehicle-mounted power amplifier equipment for detecting the vehicle, and the message format adopted by the detection instruction is a format conforming to the Controller Area Network (CAN) protocol.
An obtaining unit 402, configured to obtain audio data according to the detection instruction; the audio data are sound data transmitted in the vehicle-mounted power amplifier device.
A transmission unit 403 for transmitting the audio data to the cabin controller; the cabin domain controller is used for processing the audio data to obtain a detection result.
The device of the embodiment may execute the technical scheme in the above method, and the specific implementation process and the technical principle are the same and are not described herein again.
The embodiment of the application also provides an audio detection device applied to the vehicle, and the device is applied to vehicle-mounted power amplifier equipment in the vehicle; the device comprises:
A receiving unit 401 for receiving a detection instruction sent by a cabin domain controller in a vehicle; the detection instruction is used for indicating the vehicle-mounted power amplifier equipment for detecting the vehicle, and the message format adopted by the detection instruction is a format conforming to the Controller Area Network (CAN) protocol.
An obtaining unit 402, configured to obtain audio data according to the detection instruction; the audio data are sound data transmitted in the vehicle-mounted power amplifier device.
A transmission unit 403 for transmitting the audio data to the cabin controller; the cabin domain controller is used for processing the audio data to obtain a detection result.
In one example, the detection instruction includes position information, and the position information characterizes the position of a node on a transmission channel used for transmitting an audio signal in the vehicle-mounted power amplification device; an acquisition unit including:
The acquisition module is used for acquiring an audio signal corresponding to the position information according to the position information in the detection instruction; the audio signal characterizes sound data transmitted by the node position corresponding to the position information.
And the digitizing module is used for digitizing the audio signal to obtain audio data.
In one example, the acquisition module is specifically configured to:
determining time information corresponding to the position information in the detection instruction according to a preset mapping relation; the preset mapping relation comprises a corresponding relation between position information and time information; the time information includes a time at which the audio signal is transmitted through the transmission channel corresponding to the position information.
And acquiring an audio signal according to the time information and the position information in the detection instruction.
In one example, the digitizing module is specifically configured to:
determining transmission information of the audio signal; wherein the transmission information characterizes a transmission format of the audio signal.
And according to the transmission information of the audio signal, analyzing the audio signal to obtain audio data corresponding to the audio signal.
In one example, the transmission information includes size end information and bit depth information, the size end information characterizing a byte order of the audio signal, the bit depth information characterizing an acquisition accuracy of the audio signal.
The digitizing module is specifically used for:
And analyzing the audio signal according to the size end information and the bit depth information in the transmission information to obtain audio data corresponding to the audio signal.
The device of the embodiment may execute the technical scheme in the above method, and the specific implementation process and the technical principle are the same and are not described herein again.
Fig. 6 is a schematic structural diagram of another audio detection device applied to a vehicle according to an embodiment of the present application, as shown in fig. 6, where the device is applied to a cabin controller in a vehicle; the device comprises:
A transmitting unit 501 for transmitting a detection instruction to an in-vehicle power amplification apparatus in a vehicle in response to an audio abnormality signal of the vehicle.
And the receiving unit 502 is configured to receive audio data transmitted by the vehicle-mounted power amplifier device.
A detection unit 503 for determining and outputting a detection result according to the audio data; wherein, the detection result represents whether the audio data are normal or not; the detection result is used for debugging the vehicle-mounted power amplifier equipment.
The device of the embodiment may execute the technical scheme in the above method, and the specific implementation process and the technical principle are the same and are not described herein again.
The embodiment of the application also provides an audio detection device applied to the vehicle, and the device is applied to a cabin controller in the vehicle; the device comprises:
A transmitting unit 501 for transmitting a detection instruction to an in-vehicle power amplification apparatus in a vehicle in response to an audio abnormality signal of the vehicle.
And the receiving unit 502 is configured to receive audio data transmitted by the vehicle-mounted power amplifier device.
A detection unit 503 for determining and outputting a detection result according to the audio data; wherein, the detection result represents whether the audio data are normal or not; the detection result is used for debugging the vehicle-mounted power amplifier equipment. In one example, a detection unit includes:
the restoration module is used for carrying out data restoration processing on the audio data to obtain and display a waveform diagram corresponding to the audio data; wherein the waveform map characterizes waveform characteristics of the audio data.
And the detection module is used for determining and outputting a detection result according to the waveform diagram corresponding to the audio data.
In one example, the detection module is configured to:
determining characteristic information of a waveform diagram corresponding to the audio data; wherein the characteristic information characterizes the waveform change condition in the waveform diagram.
If the feature information is determined to be not in accordance with the preset condition, determining that the detection result represents that the audio data is abnormal.
If the feature information is determined to be in accordance with the preset condition, determining that the detection result represents that the audio data are normal.
The device of the embodiment may execute the technical scheme in the above method, and the specific implementation process and the technical principle are the same and are not described herein again.
Fig. 7 is a schematic structural diagram of a vehicle-mounted power amplifier device according to an embodiment of the present application, where, as shown in fig. 7, the vehicle-mounted power amplifier device includes: a memory 601, a processor 602; a memory 601; a memory for storing instructions executable by processor 602.
Wherein the processor 602 is configured to perform the method as provided by the above embodiments.
The in-vehicle power amplification apparatus further includes a receiver 603 and a transmitter 604. The receiver 603 is configured to receive instructions and data transmitted from other devices, and the transmitter 604 is configured to transmit instructions and data to external devices.
Fig. 8 is a schematic structural diagram of a cabin domain controller according to an embodiment of the present application, where, as shown in fig. 8, the cabin domain controller includes: a memory 701, a processor 702; a memory 701; a memory for storing instructions executable by the processor 702.
Wherein the processor 702 is configured to perform the methods as provided in the above embodiments.
The cabin domain controller further comprises a receiver 703 and a transmitter 704. The receiver 703 is configured to receive instructions and data transmitted from other devices, and the transmitter 704 is configured to transmit instructions and data to external devices.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as a memory, comprising instructions executable by a processor to perform the above-described method. For example, the non-transitory computer readable storage medium may be random access memory, magnetic tape, floppy disk, optical data storage device, and the like.
The embodiment of the application also provides a non-transitory computer readable storage medium, which when the instructions in the storage medium are executed by a processor, enables the vehicle-mounted power amplifier device to execute the method.
According to an embodiment of the present application, there is also provided a computer program product comprising: a computer program stored in a readable storage medium, from which the computer program can be read by at least one processor, the at least one processor executing the computer program to perform the solution provided by any of the embodiments described above.
The embodiment of the application also provides a vehicle, which comprises the vehicle-mounted power amplification equipment and a cabin controller in communication connection with the vehicle-mounted power amplification equipment, wherein the vehicle stores computer execution instructions which are used for realizing the method when being executed by a processor.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. An audio detection method applied to a vehicle is characterized in that the method is applied to a vehicle-mounted power amplifier device in the vehicle; the method comprises the following steps:
Receiving a detection instruction sent by a cabin domain controller in a vehicle; the detection instruction is used for indicating the vehicle-mounted power amplification equipment for detecting the vehicle, and the message format adopted by the detection instruction is a format conforming to the Controller Area Network (CAN) protocol;
Acquiring audio data according to the detection instruction; the audio data are sound data transmitted in the vehicle-mounted power amplifier equipment;
transmitting the audio data to the cabin domain controller; the cabin domain controller is used for processing the audio data to obtain a detection result.
2. The method according to claim 1, wherein the detection instruction includes position information, and the position information characterizes a node position on a transmission channel for transmitting an audio signal in the vehicle-mounted power amplification device; according to the detection instruction, obtaining audio data comprises the following steps:
collecting an audio signal corresponding to the position information according to the position information in the detection instruction; wherein the audio signal characterizes sound data transmitted by a node position corresponding to the position information;
And carrying out digital processing on the audio signal to obtain the audio data.
3. The method according to claim 2, wherein collecting the audio signal corresponding to the position information according to the position information in the detection instruction comprises:
Determining time information corresponding to the position information in the detection instruction according to a preset mapping relation; the preset mapping relation comprises a corresponding relation between position information and time information; the time information comprises the time of the audio signal transmitted by the transmission channel corresponding to the position information;
And acquiring the audio signal according to the time information and the position information in the detection instruction.
4. The method of claim 2, wherein digitizing the audio signal to obtain the audio data comprises:
determining transmission information of the audio signal; wherein the transmission information characterizes a transmission format of the audio signal;
And analyzing the audio signal according to the transmission information of the audio signal to obtain audio data corresponding to the audio signal.
5. The method of claim 4, wherein the transmission information includes size-end information and bit-depth information, the size-end information representing a byte order of the audio signal, the bit-depth information representing an acquisition accuracy of the audio signal;
according to the transmission information of the audio signal, analyzing the audio signal to obtain audio data corresponding to the audio signal, including:
and analyzing the audio signal according to the size end information and the bit depth information in the transmission information to obtain audio data corresponding to the audio signal.
6. An audio detection method applied to a vehicle, characterized in that the method is applied to a cabin controller in the vehicle; the method comprises the following steps:
Responding to an audio abnormality signal of a vehicle, and sending a detection instruction to a vehicle-mounted power amplification device in the vehicle;
Receiving audio data transmitted by the vehicle-mounted power amplifier equipment;
Determining and outputting a detection result according to the audio data; wherein the detection result characterizes whether the audio data are normal or not; and the detection result is used for debugging the vehicle-mounted power amplifier equipment.
7. The method of claim 6, wherein determining and outputting a detection result from the audio data comprises:
Performing data reduction processing on the audio data to obtain and display a waveform diagram corresponding to the audio data; wherein the waveform map characterizes waveform characteristics of the audio data;
and determining and outputting the detection result according to the waveform diagram corresponding to the audio data.
8. The method of claim 7, wherein determining the detection result from the waveform diagram corresponding to the audio data comprises:
determining characteristic information of a waveform diagram corresponding to the audio data; wherein, the characteristic information characterizes the waveform change condition in the waveform diagram;
if the characteristic information is determined to be not in accordance with the preset condition, determining that the detection result represents that the audio data are abnormal;
And if the characteristic information is determined to be in accordance with the preset condition, determining that the detection result represents that the audio data are normal.
9. An audio detection device applied to a vehicle is characterized in that the device is applied to a vehicle-mounted power amplification device in the vehicle; the device comprises:
A receiving unit for receiving a detection instruction sent by a cabin domain controller in a vehicle; the detection instruction is used for indicating the vehicle-mounted power amplification equipment for detecting the vehicle, and the message format adopted by the detection instruction is a format conforming to the Controller Area Network (CAN) protocol;
The acquisition unit is used for acquiring audio data according to the detection instruction; the audio data are sound data transmitted in the vehicle-mounted power amplifier equipment;
a transmission unit for transmitting the audio data to the cabin domain controller; the cabin domain controller is used for processing the audio data to obtain a detection result.
10. An audio detection device for a vehicle, the device being applied to a cabin controller in the vehicle; the device comprises:
a transmitting unit for transmitting a detection instruction to a vehicle-mounted power amplifier device in a vehicle in response to an audio abnormality signal of the vehicle;
The receiving unit is used for receiving the audio data transmitted by the vehicle-mounted power amplifier device;
The detection unit is used for determining and outputting a detection result according to the audio data; wherein the detection result characterizes whether the audio data are normal or not; and the detection result is used for debugging the vehicle-mounted power amplifier equipment.
CN202410092566.5A 2024-01-22 2024-01-22 Audio detection method and device applied to vehicle Pending CN117939381A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410092566.5A CN117939381A (en) 2024-01-22 2024-01-22 Audio detection method and device applied to vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410092566.5A CN117939381A (en) 2024-01-22 2024-01-22 Audio detection method and device applied to vehicle

Publications (1)

Publication Number Publication Date
CN117939381A true CN117939381A (en) 2024-04-26

Family

ID=90753393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410092566.5A Pending CN117939381A (en) 2024-01-22 2024-01-22 Audio detection method and device applied to vehicle

Country Status (1)

Country Link
CN (1) CN117939381A (en)

Similar Documents

Publication Publication Date Title
CN102419389B (en) Time domain measurement in test and sensing device
US8307344B2 (en) Sliding granularity time stamping
CN111506047B (en) Vehicle diagnosis method, device and storage medium
CN113904967B (en) Automatic testing device and testing method for automobile CAN communication module interface software
EP4283891A1 (en) Data transmission method and apparatus, and electronic device and storage medium
CN112214366B (en) Test method, device, system, equipment and medium
WO2023154739A3 (en) Method and system for servicing a vehicle using a test set
CN217541952U (en) Vehicle instrument test system
CN111726740A (en) Electronic equipment testing method and device
CN117939381A (en) Audio detection method and device applied to vehicle
CN107368061B (en) Self-diagnosis system and method for vehicle-mounted sound equipment
US20220206887A1 (en) Bus monitoring device and method, storage medium, and electronic device
JP2005172629A (en) Auxiliary diagnosis system for vehicle
CN116319475A (en) Signal analysis method, device, equipment and storage medium
CN112698587A (en) Data processing system and method
CN113671936A (en) Driving assistance system test method and system, electronic device and storage medium
CN111770074B (en) Data path test message generation device and method
CN111736924B (en) Method, device, equipment and medium for accessing data acquisition instrument based on Lua script
CN111479207A (en) Crosstalk detection method and system and audio analyzer
CN112596970B (en) Equipment testing method, system, equipment and medium
CN117240738B (en) Method, device, equipment and storage medium for testing vehicle-mounted Ethernet
CN114124992B (en) Method, device, equipment and system for monitoring running state of whole vehicle domain controller
CN216014047U (en) Driving auxiliary system test equipment and vehicle
CN117250937A (en) Function test method and device, electronic equipment and storage medium
JPH0553980A (en) Bus communication system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination