Disclosure of Invention
The application provides a vehicle-mounted entertainment system for sounding a warning sound and a function diagnosis method thereof, which are used for analyzing environmental sound waves in a vehicle, judging whether preset ultrasonic frequency exists in the environmental sound waves or not, and diagnosing the function of the warning sound sounding system on the premise of not influencing the driving of a driver based on the characteristics of ultrasonic waves.
In a first aspect, the present application provides an in-vehicle entertainment system for sounding a warning tone, the in-vehicle entertainment system comprising a digital signal processor and a warning tone system, the warning tone system comprising a warning tone power amplifier and a warning tone horn;
the digital signal processor is connected with the warning sound power amplifier, is used for generating a diagnosis signal according to a preset ultrasonic frequency and sending the diagnosis signal to the warning sound power amplifier according to a preset diagnosis period, and is also connected with a microphone, the digital signal processor is used for receiving an environmental sound wave in the vehicle acquired by the microphone and identifying whether the ultrasonic frequency corresponding to the diagnosis signal exists in the environmental sound wave, when the ultrasonic frequency corresponding to the diagnosis signal exists in the environmental sound wave, the warning sound system is judged to be normal in function, otherwise, the warning sound system is judged to be abnormal in function;
the warning sound power amplifier is connected with a warning sound loudspeaker and used for carrying out power amplification on the diagnosis signal and sending the diagnosis signal after power amplification to the warning sound loudspeaker;
the warning sound horn is used for playing the diagnosis signal after power amplification.
Further, the digital signal processor is further configured to superimpose the diagnostic signal and the warning sound signal to obtain a warning superimposed signal, and send the warning superimposed signal to the warning sound power amplifier;
the warning sound power amplifier is further used for carrying out power amplification on the warning superposed signal and sending and forwarding the warning superposed signal after power amplification to the warning sound loudspeaker;
the warning sound loudspeaker is also used for playing the warning superposed signal after power amplification.
Further, the vehicle-mounted entertainment system also comprises a media sound system, the media sound system comprises a media sound power amplifier and a media sound loudspeaker,
the digital signal processor is connected with the media sound power amplifier and is also used for sending the warning sound signal to the media sound power amplifier after judging that the warning sound system is abnormal in function,
the media audio power amplifier is connected with the media audio loudspeaker and used for performing power amplification on the diagnosis signal and sending the diagnosis signal after power amplification to the media audio loudspeaker;
and the media loudspeaker receives and plays the warning sound signal.
Further, the digital signal processor is further configured to generate warning sound system function abnormality information after determining that the warning sound system is abnormal in function, send the warning sound system function abnormality information to the MCU processor, and forward the warning sound system function abnormality information to the automobile instrument, and prompt the warning sound system function abnormality by using the automobile instrument.
Further, the digital signal processor is further configured to generate warning sound system function abnormality information after determining that the warning sound system function is abnormal, and upload the warning sound system function abnormality information to a preset cloud server.
In a second aspect, the present application provides a method of functional diagnosis for an in-vehicle entertainment system for sounding a warning tone, the in-vehicle entertainment system comprising a digital signal processor and a warning tone system, the warning tone system comprising a warning tone power amplifier and a warning tone horn, the method comprising the steps of:
the digital signal processor generates a diagnosis signal according to a preset ultrasonic frequency;
sending the diagnosis signal to a warning sound power amplifier according to a preset diagnosis period;
the warning sound power amplifier is used for carrying out power amplification on the diagnosis signal and sending the diagnosis signal after power amplification to the warning sound loudspeaker;
the warning sound horn plays the diagnosis signal after power amplification;
the digital signal processor acquires environmental sound waves in the vehicle by using a microphone, identifies whether the ultrasonic frequency corresponding to the diagnostic signal exists in the environmental sound waves, judges that the warning sound system has normal function when the ultrasonic frequency corresponding to the diagnostic signal exists in the environmental sound waves, and judges that the warning sound system has abnormal function otherwise.
Further, after generating the diagnostic signal, before the in-vehicle entertainment system acquires an ambient sound wave inside the vehicle by using a microphone and identifies whether the ultrasonic frequency exists in the ambient sound wave, the method further includes the following steps:
the digital signal processor superposes the diagnostic signal and the warning sound signal to obtain a warning superposed signal, and sends the warning superposed signal to the warning sound power amplifier;
the warning sound power amplifier is used for carrying out power amplification on the warning superposed signal and transmitting the warning superposed signal after power amplification to the warning sound loudspeaker;
and the warning sound horn plays the warning superposed signal after power amplification.
Further, after determining that the warning sound system is abnormal in function, the method further comprises the following steps:
the digital signal processor forwards the warning sound signal to a vehicle media sound system;
the vehicle media sound system receives and plays the warning sound signal.
Further, after determining that the warning sound system is abnormal in function, the method further comprises the following steps:
the digital signal processor generates warning sound system function abnormity information and sends the warning sound system function abnormity information to the MCU processor, and the MCU processor generates a prompt signal according to the warning sound system function abnormity information and sends the prompt signal to an automobile instrument for prompting;
and prompting the abnormal function of the warning sound system by using the automobile instrument.
Further, after determining that the warning sound system is abnormal in function, the method further comprises the following steps:
and the digital signal processor generates warning sound system function abnormal information and uploads the warning sound system function abnormal information to a preset cloud server.
The beneficial effect that technical scheme that this application provided brought includes:
the application provides a warning sound production function diagnostic technique, analyzes the environment sound wave in the car, judges whether there is predetermined ultrasonic frequency in the environment sound wave, based on the characteristic of ultrasonic wave, under the prerequisite that does not influence driver's driving, diagnoses the function of warning sound production system.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
The embodiment of the application provides a vehicle-mounted entertainment system for sounding a warning sound and a function diagnosis method thereof, which are used for analyzing environmental sound waves in a vehicle, judging whether preset ultrasonic frequency exists in the environmental sound waves or not, and diagnosing the function of the warning sound sounding system on the premise of not influencing the driving of a driver based on the characteristics of the ultrasonic waves.
In order to achieve the technical effects, the general idea of the application is as follows:
an in-vehicle entertainment system for sounding a warning tone, the in-vehicle entertainment system comprising a digital signal processor and a warning tone system, the warning tone system comprising a warning tone power amplifier and a warning tone horn:
the digital signal processor is connected with the warning sound power amplifier, is used for generating a diagnosis signal according to a preset ultrasonic frequency and sending the diagnosis signal to the warning sound power amplifier according to a preset diagnosis period, and is also connected with the microphone, and is used for receiving the environmental sound wave in the vehicle acquired by the microphone and identifying whether the ultrasonic frequency corresponding to the diagnosis signal exists in the environmental sound wave;
the warning sound power amplifier is connected with the warning sound loudspeaker and used for carrying out power amplification on the diagnosis signal and sending the diagnosis signal after power amplification to the warning sound loudspeaker;
and the warning sound horn is used for playing the diagnosis signal after power amplification.
Embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
Example 1
Referring to fig. 1 and 2, an embodiment of the present application provides an in-vehicle entertainment system for sounding a warning sound, the in-vehicle entertainment system including a digital signal processor and a warning sound system, the warning sound system including a warning sound power amplifier and a warning sound horn:
the digital signal processor is connected with the warning sound power amplifier and used for generating a diagnosis signal according to a preset ultrasonic frequency and sending the diagnosis signal to the warning sound power amplifier according to a preset diagnosis period, the digital signal processor is also connected with the microphone and used for receiving the environment sound wave in the vehicle obtained by the microphone and identifying whether the ultrasonic frequency corresponding to the diagnosis signal exists in the environment sound wave, when the ultrasonic frequency corresponding to the diagnosis signal exists in the environment sound wave, the warning sound system is judged to be normal in function, otherwise, the warning sound system is judged to be abnormal in function;
the warning sound power amplifier is connected with the warning sound loudspeaker and used for carrying out power amplification on the diagnosis signal and sending the diagnosis signal after power amplification to the warning sound loudspeaker;
and the warning sound horn is used for playing the diagnosis signal after power amplification.
The digital signal processor receives the ambient sound wave inside the vehicle acquired by the microphone, specifically, the digital signal processor receives a signal converted by the microphone according to the acquired ambient sound wave inside the vehicle.
In the embodiment of the application, the diagnostic signal for diagnosing the audio warning function is firstly generated according to the preset ultrasonic frequency, and because the frequency of the diagnostic signal is the ultrasonic frequency, when the diagnostic signal is played through the warning sound horn, the human ear cannot recognize the sound of the frequency, so that passengers in the vehicle cannot hear the sound corresponding to the diagnostic signal.
Receiving sound in the vehicle by using an automobile microphone or other equipment with a sound receiving function in the vehicle, namely receiving environmental sound waves in the vehicle, analyzing the environmental sound waves, and identifying whether frequency spectrums corresponding to the diagnosis signals exist in the environmental sound waves, namely identifying whether ultrasonic frequencies corresponding to the diagnosis signals exist in the environmental sound waves;
wherein, the environmental sound wave is the sound wave in the vehicle, which includes the sound wave corresponding to various sounds in the vehicle, when the warning sound system is in normal function, the sound in the vehicle includes the ultrasonic frequency corresponding to the diagnosis signal,
and when the ultrasonic frequency corresponding to the diagnostic signal exists in the environmental sound wave, judging that the warning sound system is normal in function, otherwise, judging that the warning sound system is abnormal in function.
In the embodiment of the application, the environment sound wave in the vehicle is analyzed, whether the preset ultrasonic frequency exists in the environment sound wave is judged, and the function of the warning sound sounding system is diagnosed on the premise of not influencing the driving of a driver based on the characteristics of the ultrasonic wave.
Furthermore, the vehicle-mounted entertainment system also comprises a media sound system, the media sound system comprises a media sound power amplifier and a media sound loudspeaker,
the digital signal processor is connected with the media sound power amplifier and is also used for sending the warning sound signal to the media sound power amplifier after judging that the warning sound system is abnormal in function,
the media audio power amplifier is connected with the media audio loudspeaker and used for carrying out power amplification on the diagnostic signal and sending the diagnostic signal after power amplification to the media audio loudspeaker;
the media loudspeaker receives and plays the warning sound signal;
in other words, in the embodiment of the present application, when the warning sound system is abnormal, the media sound system is used to play the warning sound signal, so as to ensure that the warning sound can be played normally.
Further, the digital signal processor is also used for generating warning sound system function abnormity information after judging that the warning sound system function is abnormal, and sending the warning sound system function abnormity information to the MCU processor, and the MCU processor generates a prompt signal according to the warning sound system function abnormity information and sends the prompt signal to the automobile instrument for prompting;
therefore, the warning sound system is intuitively prompted to the driver through the automobile instrument, so that the driver can maintain as early as possible, and normal use in the future is guaranteed.
Further, the digital signal processor is further configured to generate warning sound system function abnormality information after determining that the warning sound system function is abnormal, and upload the warning sound system function abnormality information to a preset cloud server;
therefore, the fault of the vehicle corresponding to the background staff can be informed, so that the background staff can timely carry out after-sale maintenance and collection of the vehicle quality condition.
In addition, the digital signal processor is also used for superposing the diagnostic signal and the warning sound signal to obtain a warning superposed signal and sending the warning superposed signal to the warning sound power amplifier;
the warning sound power amplifier is also used for carrying out power amplification on the warning superposed signal and transmitting the warning superposed signal after power amplification to the warning sound loudspeaker;
and the warning sound horn is also used for playing the warning superposed signal after power amplification.
At the moment, a signal superposition mode is adopted for diagnosis, when audio warning is needed, the generated diagnosis signal is firstly superposed with a warning sound signal corresponding to a preset warning sound, so that a warning superposition signal is obtained, and the warning superposition signal is still played by using a warning sound loudspeaker because audio warning is needed;
the mode only diagnoses the function of the warning sound system when audio warning is needed, namely, when the audio warning is needed, the superposed signals are played, the situation that the diagnostic signals are continuously played according to the preset diagnostic period is avoided, and the energy consumption is reduced to a certain extent.
Similarly, the detection process in this manner is the same as that when the diagnostic signal is continuously played according to the preset diagnostic period, that is, when the ultrasonic frequency corresponding to the diagnostic signal exists in the environmental sound wave, the warning sound system is determined to be normal in function, and otherwise, the warning sound system is determined to be abnormal in function.
In the embodiment of the present application, the functional diagnosis of the warning sound generating system is implemented based on system hardware of a vehicle, where the system hardware is composed of a communication module, an MCU processor, a vehicle instrument, a Digital Signal Processor (DSP), a warning sound power amplifier, a warning sound speaker, a vehicle media sound system, and a vehicle microphone, where the vehicle media sound system includes the media sound power amplifier and the media sound speaker.
The specific working principle is as follows:
in a first step, a Digital Signal Processor (DSP) generates an ultrasonic signal corresponding to a predetermined ultrasonic frequency (e.g., 21 khz) to be superimposed on a predetermined warning sound signal, which exceeds the auditory range of the human ear and is not audible to the human ear, thereby preventing the user from perceiving the warning sound signal during the diagnosis.
And secondly, outputting the warning sound signal superposed with the ultrasonic wave to a warning sound power amplifier by a Digital Signal Processor (DSP) for power amplification, wherein the ultrasonic wave signal is amplified to obtain an amplified ultrasonic wave signal with the same frequency (such as 21 KHz) as the input ultrasonic wave signal, and the amplified ultrasonic wave signal is output to a warning sound loudspeaker.
And thirdly, vibrating the warning sound signal superposed with the ultrasonic wave into the air by the warning sound horn to carry out space propagation.
And fourthly, the automobile microphone receives the environmental sound waves in the vehicle, namely various sound wave signals in the space, and outputs the received sound wave signals to a Digital Signal Processor (DSP).
Fifthly, the Digital Signal Processor (DSP) performs spectrum analysis on the received sound wave signal, and analyzes whether the ambient sound wave contains a spectrum of an ultrasonic wave signal (such as 21 khz) previously generated by the Digital Signal Processor (DSP):
judgment 1: if the environment sound wave contains the ultrasonic frequency spectrum, namely a Digital Signal Processor (DSP) outputs a result with normal function to an MCU processor,
and (3) judging: if the environment sound wave does not contain the ultrasonic frequency spectrum, the Digital Signal Processor (DSP) carries out sound mixing processing on the warning sound signal and the media sound signal, the warning sound and the media sound after sound mixing are output to the media sound power amplifier, the warning sound is played by the media sound power amplifier and the media sound loudspeaker, a driver is warned through the method, driving safety is improved, and the digital signal processor can also output a diagnosis fault result to the MCU processor.
And if the MCU processor receives a result that the function is normal, the MCU processor sends an output diagnosis result of normal function to the whole vehicle network.
If the MCU receives the result that the function is abnormal, the MCU processor outputs a diagnosis result of 'abnormal function' and sends the diagnosis result to the whole vehicle network and the communication module;
further, the meter displays a warning tone fault to remind the user;
meanwhile, the communication module reports the warning sound fault information to the cloud, the cloud can recognize and process the warning sound fault information and remind a user of entering a store for repair, and the cloud can contact a 4S store for repair.
It should be noted that, by using the technical scheme of the application, the whole vehicle warning sound sounding system is diagnosed under the condition that a user cannot perceive the warning sound sounding system, so that the failure of the warning sound is discovered as soon as possible, and the driving safety is improved;
even if the warning sound system fails, the entertainment system can be used for virtually generating warning sounds, so that the driving safety of the owner is improved;
in addition, the scheme does not need an additional diagnosis circuit, utilizes the existing circuit and architecture of the car networking equipment to the greatest extent, saves the cost and enhances the driving safety.
Example 2
Referring to fig. 3, an embodiment of the present application provides a method for diagnosing the function of an in-vehicle entertainment system for generating a warning sound, the in-vehicle entertainment system including a digital signal processor and a warning sound system, the warning sound system including a warning sound power amplifier and a warning sound speaker, the method including the steps of:
s1, generating a diagnosis signal by the digital signal processor according to a preset ultrasonic frequency;
s2, sending a diagnosis signal to a warning sound power amplifier according to a preset diagnosis period;
s3, the warning sound power amplifier amplifies the power of the diagnosis signal and sends the diagnosis signal after power amplification to the warning sound loudspeaker;
s4, the warning sound horn plays the diagnosis signal after power amplification;
and S5, the digital signal processor acquires the environmental sound wave in the vehicle by using the microphone, identifies whether the ultrasonic frequency corresponding to the diagnostic signal exists in the environmental sound wave, and judges that the warning sound system has normal function when the ultrasonic frequency corresponding to the diagnostic signal exists in the environmental sound wave, otherwise, judges that the warning sound system has abnormal function.
The digital signal processor receives the ambient sound wave inside the vehicle acquired by the microphone, specifically, the digital signal processor receives a signal converted by the microphone according to the acquired ambient sound wave inside the vehicle.
In the embodiment of the application, the diagnostic signal for diagnosing the audio warning function is firstly generated according to the preset ultrasonic frequency, and because the frequency of the diagnostic signal is the ultrasonic frequency, when the diagnostic signal is played through the warning sound horn, the human ear cannot recognize the sound of the frequency, so that passengers in the vehicle cannot hear the sound corresponding to the diagnostic signal.
Receiving sound in the vehicle by using an automobile microphone or other equipment with a sound receiving function in the vehicle, namely receiving environmental sound waves in the vehicle, analyzing the environmental sound waves, and identifying whether frequency spectrums corresponding to the diagnosis signals exist in the environmental sound waves, namely identifying whether ultrasonic frequencies corresponding to the diagnosis signals exist in the environmental sound waves;
wherein, the environmental sound wave is the sound wave in the vehicle, which includes the sound wave corresponding to various sounds in the vehicle, when the warning sound system is in normal function, the sound in the vehicle includes the ultrasonic frequency corresponding to the diagnosis signal,
and when the ultrasonic frequency corresponding to the diagnostic signal exists in the environmental sound wave, judging that the warning sound system is normal in function, otherwise, judging that the warning sound system is abnormal in function.
In the embodiment of the application, the environment sound wave in the vehicle is analyzed, whether the preset ultrasonic frequency exists in the environment sound wave is judged, and the function of the warning sound sounding system is diagnosed on the premise of not influencing the driving of a driver based on the characteristics of the ultrasonic wave.
Further, after determining that the warning sound system is abnormal in function, the method further comprises the following steps:
the digital signal processor forwards the warning sound signal to a vehicle media sound system;
the vehicle media sound system receives and plays the warning sound signal.
In other words, in the embodiment of the present application, when the warning sound system is abnormal, the media sound system is used to play the warning sound signal, so as to ensure that the warning sound can be played normally.
Further, after determining that the warning sound system is abnormal in function, the method further comprises the following steps:
the digital signal processor generates warning sound system function abnormity information and sends the warning sound system function abnormity information to the MCU processor, and the MCU processor generates a prompt signal according to the warning sound system function abnormity information and sends the prompt signal to the automobile instrument for prompting;
prompting the abnormal function of the warning sound system by using the automobile instrument;
therefore, the warning sound system is intuitively prompted to the driver through the automobile instrument, so that the driver can maintain as early as possible, and normal use in the future is guaranteed.
Further, after determining that the warning sound system is abnormal in function, the method further comprises the following steps:
the digital signal processor generates warning sound system function abnormity information and uploads the warning sound system function abnormity information to a preset cloud server;
therefore, the fault of the vehicle corresponding to the background staff can be informed, so that the background staff can timely carry out after-sale maintenance and collection of the vehicle quality condition.
In addition, after the diagnostic signal is generated, before the in-vehicle entertainment system acquires the environmental sound wave in the vehicle by using the microphone and identifies whether the ultrasonic frequency exists in the environmental sound wave, the method further comprises the following steps:
the digital signal processor superposes the diagnostic signal and the warning sound signal to obtain a warning superposed signal, and sends the warning superposed signal to a warning sound power amplifier;
the warning sound power amplifier is used for carrying out power amplification on the warning superposed signal and transmitting the warning superposed signal after power amplification to the warning sound loudspeaker;
the warning sound horn plays the warning superposed signal after power amplification.
At the moment, a signal superposition mode is adopted for diagnosis, when audio warning is needed, the generated diagnosis signal is firstly superposed with a warning sound signal corresponding to a preset warning sound, so that a warning superposition signal is obtained, and the warning superposition signal is still played by using a warning sound loudspeaker because audio warning is needed;
the mode only diagnoses the function of the warning sound system when audio warning is needed, namely, when the audio warning is needed, the superposed signals are played, the situation that the diagnostic signals are continuously played according to the preset diagnostic period is avoided, and the energy consumption is reduced to a certain extent.
Similarly, the detection process in this manner is the same as that when the diagnostic signal is continuously played according to the preset diagnostic period, that is, when the ultrasonic frequency corresponding to the diagnostic signal exists in the environmental sound wave, the warning sound system is determined to be normal in function, and otherwise, the warning sound system is determined to be abnormal in function.
It is noted that, in the present application, relational terms such as "first" and "second", and the like, are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present application and are presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.