Loudspeaker fault diagnosis method, system, device and medium
By filtering and feature extraction of the voltage and current data of the speaker, calculating the measured resistance value and feature energy data, and outputting special diagnostic signals under specific conditions, the problem of speaker fault diagnosis affecting audio playback and increasing power consumption in the prior art is solved, and more efficient fault detection is achieved.
Patent Information
- Application Number
- CN202510089120.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-21
- Publication Date
- 2025-02-25
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing speaker troubleshooting methods can affect the audio playback experience and increase speaker power consumption, especially power consumption problems caused by harmonic distortion and continuous output of special signals during detection.
By acquiring the voltage and current data of the speaker, filtering and feature data extraction, calculating the measured resistance value and feature energy data. If the feature energy data is less than the threshold, a special diagnostic signal is output to re-acquire the data, ensuring that fault detection is performed without affecting audio playback and no increase in power consumption.
The application scenarios of speaker failure detection are improved, and the impact on audio playback and the increase in speaker power consumption is avoided. At the same time, through the design of special diagnostic signals, the fault detection capability is ensured in silent or non-preset frequency bands.
Smart Images

Figure CN119521111A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of loudspeakers, and in particular to a loudspeaker fault diagnosis method, system, device and medium. Background Art
[0002] In existing audio products, if the product collides or ages, the connection between its speaker (or load) and the previous amplifier may become abnormal. In this case, if the product continues to be used, there may be risks such as abnormally increased power consumption and silence of the speaker. The commonly used speaker diagnosis method is to monitor whether the speaker has a short circuit fault or an open circuit fault by detecting the resistance of the load or the side monitoring resistance. In actual implementation, the existing detection will continuously output a special signal outside the audible range of the human ear to assist in detection.
[0003] The above existing practices have the following problems: 1) The frequency response of audio that can be heard by the human ear is usually 20 to 20 kHz, and special signals outside the audible range of the human ear may be heard as noise by the human ear due to the generation of harmonic distortion, thus seriously affecting the audio playback experience.
[0004] 2) Continuously outputting a special signal will increase the power consumption of the speaker, thereby reducing the standby time of the speaker. Summary of the invention
[0005] Embodiments of the present invention provide a speaker fault diagnosis method, system, device and medium, so as to improve the application scenarios of speaker fault detection without affecting the audio playback effect and increasing the power consumption of the speaker.
[0006] In order to solve the above technical problems, the technical solution of the present invention provides a fault diagnosis method for a speaker, wherein the first end and the second end of the speaker are respectively coupled to the first output end and the second output end of the amplifier, and the amplifier is used to amplify the input signal. The fault diagnosis method comprises: Acquire voltage and current data, where the voltage and current data are used to characterize the voltage and current at the first end and the second end of the speaker; Filtering the voltage and current data and extracting characteristic data to obtain characteristic voltage and current data, wherein the characteristic voltage and current data is within a preset frequency band; Calculating an accumulated value of the characteristic voltage and current data within a first preset time, and calculating a measured resistance value of the speaker based on the accumulated value; Calculate characteristic energy data of the characteristic voltage and current data within the first preset time, and compare the characteristic energy data with a first threshold: If the characteristic energy data is greater than a first threshold, the measured resistance value is compared with a lower threshold and an upper threshold respectively to diagnose the fault type of the speaker and output a diagnosis result; If the characteristic energy data is less than a first threshold, a special diagnostic signal is output, and the voltage and current data are reacquired based on the special diagnostic signal, the frequency band of the special diagnostic signal is within the preset frequency band, and the characteristic energy data obtained based on the special diagnostic signal is greater than the first threshold.
[0007] Optionally, if the characteristic energy data is less than a first threshold, outputting the special diagnostic signal specifically includes: If the characteristic energy data is less than the first threshold, timing is performed; If the characteristic energy data acquired within the second preset time are all less than the first threshold, outputting the special diagnosis signal; If the characteristic energy data acquired within the second preset time is greater than the first threshold, the measured resistance value corresponding to the characteristic energy data is compared with the lower threshold and the upper threshold respectively to diagnose the fault type of the speaker and output the diagnosis result.
[0008] Optionally, the special diagnostic signal includes at least: an infrasound signal, an ultrasonic signal or a direct current signal.
[0009] Optionally, if the special diagnostic signal is a DC signal, the DC signals outputted respectively within adjacent second preset time periods are switched between positive and negative.
[0010] Optionally, the first end and the second end of the speaker are connected to the first output end and the second output end of the amplifier respectively, and the voltage and current data are obtained, which specifically includes: Acquire a first voltage and a first current outputted from a first terminal of the amplifier, and acquire a second voltage and a second current outputted from a second terminal of the amplifier; The characteristic voltage and current data include: a first characteristic voltage corresponding to the first voltage, a first characteristic current corresponding to the first current, a second characteristic voltage corresponding to the second voltage, and a second characteristic current corresponding to the second current; Acquiring characteristic energy data of the characteristic voltage and current data within the first preset time specifically includes: Extract characteristic energy of the first characteristic voltage, the first characteristic current, the second characteristic voltage, and the first characteristic current within the first preset time, wherein the characteristic energy at least includes amplitude, energy, or decibel.
[0011] Optionally, the first end and the second end of the speaker are respectively connected to the first output end and the second output end of the amplifier, and the input end of the amplifier is connected to the output end of the digital-to-analog converter, and the voltage and current data are obtained, specifically including: Acquire a first current outputted by a first terminal of the amplifier, and acquire a second current outputted by a second terminal of the amplifier; Obtaining a first voltage estimate and a second voltage estimate of the digital-to-analog converter; The characteristic voltage and current data include: a first characteristic voltage corresponding to an estimated value of the first voltage, a first characteristic current corresponding to the first current, a second characteristic voltage corresponding to an estimated value of the second voltage, and a second characteristic current corresponding to the second current; Acquiring characteristic energy data of the characteristic voltage and current data within the first preset time specifically includes: Extract characteristic energy of the first characteristic voltage, the first characteristic current, the second characteristic voltage, and the first characteristic current within the first preset time, wherein the characteristic energy at least includes amplitude, energy, or decibel.
[0012] Optionally, comparing the measured resistance value with a lower threshold value and an upper threshold value respectively to diagnose a fault type of the speaker, specifically including: If the measured resistance value is less than the lower threshold value, it is determined that the speaker is in a short-circuit state; If the measured resistance value is greater than the lower threshold value and less than the upper threshold value, it is determined that the speaker is in a normal working state; If the measured resistance value is greater than the upper limit threshold, it is determined that the speaker is in an open circuit state.
[0013] The technical solution of the present invention also provides a speaker fault diagnosis system, comprising: A voltage and current data acquisition module, used to acquire voltage and current data, wherein the voltage and current data are used to characterize the voltage and current at the first end and the second end of the speaker; A characteristic voltage and current data acquisition module, used to filter the voltage and current data, acquire and output characteristic voltage and current data, wherein the characteristic voltage and current data is within a preset frequency band; A measured resistance value acquisition module, used to calculate the cumulative value of the characteristic voltage and current data within a first preset time, and calculate the measured resistance value of the speaker based on the cumulative value; A characteristic energy data acquisition module, used to calculate and output characteristic energy data of the characteristic voltage and current data within the first preset time; A data reliability judgment module, used for comparing the characteristic energy data with a first threshold; if the characteristic energy data is greater than or equal to the first threshold, the data reliability judgment module outputs a reliable signal; if the characteristic energy data is less than the first threshold, the data reliability judgment module outputs an unreliable signal; a fault diagnosis module, configured to compare the measured resistance value with a lower threshold value and an upper threshold value respectively according to the reliable signal, so as to diagnose the fault type of the speaker and output a diagnosis result; A special diagnostic module is used to output a special diagnostic signal according to the unreliable signal so that the voltage and current data acquisition module can reacquire the voltage and current data, the frequency band of the special diagnostic signal is within the preset frequency band, and the characteristic energy data obtained based on the special diagnostic signal is greater than the first threshold.
[0014] Optionally, the special diagnostic module is further used to: perform timing according to the unreliable signal; If the unreliable signal is continuously obtained within a second preset time, outputting the special diagnostic signal; If the reliable signal is obtained within the second preset time, the special diagnosis signal is not output.
[0015] Optionally, if the special diagnostic signal is a DC signal, the special diagnostic module is further used to convert the DC signals outputted respectively within adjacent second preset time periods into positive and negative signals.
[0016] The technical solution of the present invention also provides an electronic device, including a memory, a processor, and a program stored in the memory and executable on the processor, wherein the processor implements the steps in the speaker fault diagnosis method when executing the program.
[0017] The technical solution of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the speaker fault diagnosis method are implemented.
[0018] Compared with the prior art, the technical solution provided by the present invention has the following beneficial effects: The fault diagnosis method of the speaker provided by the technical solution of the present invention filters the acquired voltage and current data to obtain characteristic voltage and current data within a preset frequency band and calculate the measured resistance value of the corresponding speaker, and compares the characteristic energy data of the characteristic voltage and current data within the first preset time with the first threshold value. If the characteristic energy data is greater than the first threshold value, the characteristic energy data is reliable, and the fault type of the corresponding speaker is judged based on the measured resistance value. If the characteristic energy data is unreliable, a special diagnostic signal is output and the voltage and current data are re-acquired, so that the speaker fault detection can be performed even when there is no audio playing or the playing audio is not within the preset frequency band, thereby improving the application scenario of fault detection. And because normal audio playback can usually be used for speaker fault detection, the special diagnostic signal is not output when the audio is played normally, so that it will neither affect the auditory effect when the audio is played normally nor increase the power consumption of the speaker when the audio is played normally.
[0019] Furthermore, when the characteristic energy data is unreliable, the special diagnostic signal is not output directly, but timing is performed first and the special diagnostic signal is output only when the characteristic energy data obtained within the second preset time are all unreliable, thereby further reducing the power consumption of the speaker and avoiding the effect of audio playback being affected when the characteristic energy data is reliable within the second preset time.
[0020] Furthermore, when the special diagnostic signal is a DC signal, the DC signal is controlled to change between positive and negative within the adjacent second preset time, thereby avoiding misjudgment of speaker failure due to current collection error. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A flowchart of a fault diagnosis method for a speaker provided by an embodiment of the present invention; Figure 2 for Figure 1 The working effect waveform diagram of the loudspeaker fault diagnosis method shown; Figure 3 The frame of the speaker fault diagnosis system provided by the embodiment of the present invention is Figure 1 ; Figure 4 The frame of the speaker fault diagnosis system provided by the embodiment of the present invention is Figure 2 ; Figure 5 The frame of the speaker fault diagnosis system provided by the embodiment of the present invention is Figure 3 ; Figure 6 It is a schematic diagram of the structure of an exemplary electronic device in one embodiment of the present invention. DETAILED DESCRIPTION
[0022] Taking a car as an example, when a passenger wants to play music, the main control chip inside the car will transmit the audio signal to audio-related digital processing modules such as an equalizer, sampling rate converter, and digital signal processor for digital processing. After completing the digital processing of the audio signal, the digital processing module outputs the corresponding digital signal to the digital-to-analog converter to convert the digital signal into an analog signal. The converted analog signal is amplified by the amplifier and output to the speaker through the output end of the amplifier, and the audio is played by the speaker. When the amplifier amplifies the analog signal, the output end of the amplifier can detect voltage and current data, and the resistance of the speaker can be detected based on the voltage and current data.
[0023] As described in the background art, the prior art of fault detection of a speaker not only seriously affects the normal audio playback experience, but also increases the power consumption of the speaker and reduces the standby time of the speaker.
[0024] In view of this, an embodiment of the present invention provides a fault diagnosis method for a speaker, the method comprising: Acquire voltage and current data, where the voltage and current data are used to characterize the voltage and current at the first end and the second end of the speaker; Filtering the voltage and current data and extracting characteristic data to obtain characteristic voltage and current data, wherein the characteristic voltage and current data is within a preset frequency band; Calculating an accumulated value of the characteristic voltage and current data within a first preset time, and calculating a measured resistance value of the speaker based on the accumulated value; Calculate characteristic energy data of the characteristic voltage and current data within the first preset time, and compare the characteristic energy data with a first threshold: If the characteristic energy data is greater than a first threshold, the measured resistance value is compared with a lower threshold and an upper threshold respectively to diagnose the fault type of the speaker and output a diagnosis result; If the characteristic energy data is less than a first threshold, a special diagnostic signal is output, and the voltage and current data are reacquired based on the special diagnostic signal, the frequency band of the special diagnostic signal is within the preset frequency band, and the characteristic energy data obtained based on the special diagnostic signal is greater than the first threshold.
[0025] When the audio is played normally, the characteristic energy data obtained from the voltage and current data at the first and second ends of the speaker after the above steps are processed are usually greater than the first threshold. However, in the scenario where the audio is not played or the played audio is not within the preset frequency band, the voltage and current data at the first and second ends of the speaker will be very small, or the characteristic voltage and current data obtained by filtering the voltage and current data will be very small, resulting in the characteristic energy data obtained based on the characteristic voltage and current data being very small and less than the first threshold. In order to perform speaker fault detection in the above application scenario, the embodiment of the present invention will output a special diagnostic signal and re-acquire the voltage and current data based on the special diagnostic signal. Because the characteristic energy data obtained based on the special diagnostic signal is greater than the first threshold, it is ensured that the speaker can be fault-detected, thereby improving the application scenario of speaker fault detection. Because the special diagnostic signal is not output when the audio is played normally, it will neither affect the auditory effect when the audio is played normally nor increase the power consumption of the speaker when the audio is played normally.
[0026] In order to make the above-mentioned objects, features and beneficial effects of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in the field without creative work belong to the scope of protection of the present invention. The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] In practical applications, the first and second ends of the speaker are respectively connected to the first and second output ends of the amplifier, and the voltage and current data at the first and second output ends of the amplifier can be used to calculate the measured resistance value of the speaker.
[0028] The following describes in detail the fault diagnosis method of the speaker provided by the embodiment of the present invention by taking the voltage and current data at the first output terminal and the second output terminal of the amplifier as an example: in, Figure 1 A flowchart of a fault diagnosis method for a speaker provided by an embodiment of the present invention.
[0029] Please refer to Figure 1 The speaker fault diagnosis method provided by the embodiment of the present invention specifically includes the following steps: S11: Acquire voltage and current data outputted from the first output terminal and the second output terminal of the amplifier.
[0030] The voltage and current data specifically include: a first voltage and a first current outputted by the first end of the amplifier, and a second voltage and a second current outputted by the second end of the amplifier.
[0031] S12: filtering the voltage and current data and extracting characteristic data to obtain characteristic voltage and current data, where the characteristic voltage and current data is within a preset frequency band.
[0032] In one embodiment, the characteristic voltage and current data includes: a first characteristic voltage corresponding to the first voltage, a first characteristic current corresponding to the first current, a second characteristic voltage corresponding to the second voltage, and a second characteristic current corresponding to the second current; The filtering process is specifically a noise filtering process, so as to filter out high-frequency noise in the voltage and current data to prevent the noise from affecting the calculation result.
[0033] The feature extraction process is specifically to extract the signal of the voltage and current data in the preset frequency band as the feature voltage and current data. The purpose of the feature extraction process is that the impedance of the speaker is not constant in all frequency bands. Figure 4 As shown, the impedance of the woofer is unstable before 100 Hz and after 4000 Hz. Therefore, in order to perform stable fault detection on the woofer, the frequency band of the voltage and current data needs to be selected within 100 Hz to 4 kHz. Of course, the specific selection of the preset frequency band can also be adaptively changed according to the main energy composition of the music and the type of speaker, which is not limited here.
[0034] S13: Calculate the accumulated value of the characteristic voltage and current data within a first preset time, and calculate the measured resistance value of the speaker based on the accumulated value.
[0035] In one implementation, an average resistance value of the speaker within a first preset time may be obtained as the actual measured resistance value of the speaker.
[0036] In a specific implementation, based on the characteristic voltage and current data, a formula for calculating the measured resistance value of the speaker may be, for example: In another specific implementation, based on the characteristic voltage and current data, the formula for calculating the measured resistance value of the speaker may also be: If decibels are used to calculate the measured resistance value of the speaker, in a specific implementation, based on the characteristic voltage and current data, the formula for calculating the measured resistance value of the speaker can also be: in, is the measured resistance value of the speaker, used to characterize the differential voltage value between the first characteristic voltage and the second characteristic voltage, Used to characterize the smaller value between the first characteristic current and the second characteristic current.
[0037] It should be understood that the present invention does not limit the specific method of calculating the measured resistance value of the speaker, and it can also be obtained by other formulas for obtaining the average value. Those skilled in the art can select a suitable formula as needed.
[0038] S14: Calculate characteristic energy data of the characteristic voltage and current data within the first preset time.
[0039] Specifically, the amplitude, energy or decibel of the first characteristic voltage, the first characteristic current, the second characteristic voltage and the second characteristic current within the first preset time may be extracted.
[0040] Of course, technicians in this field can select different characteristics of the first characteristic voltage, the first characteristic current, the second characteristic voltage and the second characteristic current as the characteristic energy data according to the resource occupancy and accuracy requirements in actual scenarios.
[0041] S15: Determine whether the characteristic energy data is less than a first threshold value. If the characteristic energy data is greater than the first threshold value, it indicates that the characteristic energy data is reliable, and then jump to S16; if the characteristic energy data is less than the first threshold value, it indicates that the characteristic energy data is unreliable, and then jump to S17.
[0042] Among them, the purpose of judging whether the characteristic energy data is less than the first threshold is that: due to the presence of noise in the circuit, when the voltage and current data are small, the detected voltage and current data is likely to be caused by circuit noise, so it is necessary to arrange the influence of circuit noise by setting a first fixed threshold. The first threshold can be characterized as probability or energy. Taking probability as an example, if the differential voltage value between the first characteristic voltage and the second characteristic voltage exceeds 1V for no more than 60% of the time within the first preset time, it is considered that the credibility of this round of detection results is not high. Taking energy as an example, if the arithmetic mean of the differential voltage value between the first characteristic voltage and the second characteristic voltage does not exceed 0.6V within the first preset time, it is also considered that the credibility of this round of results is not high. There are many such methods, and the above are general conventional judgment methods.
[0043] S16: Compare the measured resistance value with the lower threshold and the upper threshold respectively to diagnose the fault type of the speaker and output the diagnosis result.
[0044] The fault types of the speaker include short circuit state, open circuit state and normal working state; If the measured resistance value is less than the lower threshold value, it is determined that the speaker is in a short-circuit state; If the measured resistance value is greater than the lower threshold value and less than the upper threshold value, it is determined that the speaker is in a normal working state; If the measured resistance value is greater than the upper limit threshold, it is determined that the speaker is in an open circuit state.
[0045] In a preferred embodiment, if the fault type of the speaker is a short circuit state or an open circuit state, the amplifier is controlled to stop outputting voltage and current to the speaker, and the fault of the speaker is reported. The specific reporting method includes: setting the state of a register to indicate the fault type of the amplifier.
[0046] S17: Inputting a special diagnosis signal as the input signal to the amplifier.
[0047] As a preferred implementation, if the characteristic energy data is less than the first threshold, timing is performed; Within the second preset time after timing, if the acquired characteristic energy data are all less than the first threshold, it means that the detection results within the second preset time are all unreliable. For example, the passengers in the car did not play any audio, the speaker has been in a silent state, or the audio played by the passengers has not been within the preset frequency band, that is, stable speaker fault detection cannot be performed through the audio played by the passengers. In this scenario, in order to perform speaker fault detection, this embodiment inputs the special diagnostic signal as an input signal to the amplifier. Since the frequency band of the special diagnostic signal is within the preset frequency band, and the characteristic energy data obtained based on the special diagnostic signal is greater than the first threshold, it is ensured that the speaker can be reliably detected based on the special diagnostic signal, thereby improving the application scenario of speaker fault detection.
[0048] Within the second preset time after timing, if the acquired characteristic energy data is greater than the first threshold, it means that within the second preset application time, the passengers in the car played audio that can be used for reliable speaker fault detection. Therefore, there is no need to output the special diagnostic signal to minimize the output frequency of the special diagnostic signal, thereby reducing the power consumption of the speaker caused by the special diagnostic signal.
[0049] Usually the second preset time is set at the millisecond level, for example, the second preset time is set to 500ms. In a silent scenario, the time interval without audio signal input may be at the minute level or even the hour level, so the audio signal will not be able to detect the fault of the speaker for a long time, that is, the characteristic energy data obtained based on the voltage and current data at the first output terminal and the second output terminal of the amplifier will always be less than the first threshold. Therefore, in the above scenario, the fault detection of the speaker can only be performed through the special diagnostic signal. And the output period of the special diagnostic signal is the second preset time, that is, the special diagnostic signal is output once every second preset time.
[0050] If the characteristic diagnostic signal is a DC signal, it is necessary to control the DC signal outputted within the adjacent second preset time to be positive and negative, so as to avoid misjudgment of the amplifier fault detection due to the error between the current detected at the first output terminal of the amplifier and the current detected at the second output terminal of the amplifier. The specific principle is as follows: By only outputting a fixed positive and negative DC signal, the current can only be detected at the fixed output end of the amplifier, so the measured resistance value obtained based on the current is also fixed. If there is a misjudgment in the current detection at different output ends of the amplifier, and the measured resistance value corresponding to the positive DC signal does not exceed the upper threshold, while the measured resistance value corresponding to the negative DC signal exceeds the upper threshold, then only outputting the positive DC signal will not be able to detect the fault problem of the amplifier. Therefore, by controlling the positive and negative conversion of the DC signal output within the adjacent second preset time, it is possible to ensure that the fault of the speaker caused by the current detection error is not misjudged.
[0051] Of course, if the special diagnostic signal is an infrasound signal or an ultrasonic signal, the above-mentioned DC signal problem does not exist. And on the basis of ensuring that the characteristic energy data obtained based on the special diagnostic signal is reliable, the special diagnostic signal is as small as possible to avoid the special diagnostic signal being noticed by passengers or users as much as possible. Of course, the specific size of the special diagnostic signal can also be adjusted according to actual needs, and is not limited here.
[0052] In order to better reflect the working effect of the present invention, Figure 2 The waveform diagram shown illustrates the working effect of the loudspeaker load diagnosis method of the present invention: R1 can be understood as the actual resistance value of the speaker; R2 can be understood as the calculated measured resistance value of the speaker.
[0053] Please refer to Figure 2 As the first preset time increases, the calculated measured resistance value of the speaker will be closer to the actual resistance value of the speaker, thereby improving the accuracy of fault detection on the speaker.
[0054] In summary, the speaker fault diagnosis method provided by the embodiment of the present invention can not only improve the application scenarios of speaker fault detection, but also will not affect the auditory effect during normal audio playback and will not increase the power consumption of the speaker during normal audio playback.
[0055] Furthermore, based on whether there is characteristic energy data greater than the first threshold within a second preset time after the characteristic energy data is less than the first threshold, it is determined whether to output the special diagnostic signal, thereby further reducing the speaker power consumption caused by the special diagnostic signal.
[0056] Furthermore, if the special diagnostic signal is a DC signal, the DC signal output within the adjacent second preset time is controlled to be positive and negative, so as to avoid misjudgment of the amplifier fault detection due to an error in current detection.
[0057] The embodiment of the present invention also provides a new loudspeaker fault diagnosis system.
[0058] in, Figure 3 The frame of the speaker fault diagnosis system provided by the embodiment of the present invention is Figure 1 .
[0059] Please refer to Figure 3 , the speaker fault diagnosis system provided by the embodiment of the present invention comprises: A loudspeaker 2 and an amplifier 1, wherein a first end and a second end of the loudspeaker 2 are respectively coupled to a first output end and a second output end of the amplifier 1, and the amplifier 1 is used to amplify an input signal 1; The voltage and current data acquisition module 3 is used to obtain and output the voltage and current data outputted from the first terminal and the second terminal of the amplifier 1; A characteristic voltage and current data acquisition module 4 is used to filter the voltage and current data, acquire characteristic voltage and current data and output the characteristic voltage and current data, wherein the characteristic voltage and current data is within a preset frequency band; The measured resistance value acquisition module 5 is used to calculate the accumulated value of the characteristic voltage and current data within a first preset time, and calculate the measured resistance value of the speaker 2 based on the accumulated value; A characteristic energy data acquisition module 6, used to calculate and output the characteristic energy data of the characteristic voltage and current data within the first preset time; A data reliability judgment module 7 is used to compare the characteristic energy data with a first threshold; if the characteristic energy data is greater than or equal to the first threshold, the data reliability judgment module 7 outputs a reliable signal; if the characteristic energy data is less than the first threshold, the data reliability judgment module 7 outputs an unreliable signal; a fault diagnosis module 8, for comparing the measured resistance value with a lower threshold value and an upper threshold value respectively according to the reliable signal, so as to diagnose the fault type of the speaker 2, and output a diagnosis result; The special diagnostic module is used to output a special diagnostic signal V2 to the amplifier 1 according to the unreliable signal, the frequency band of the special diagnostic signal V2 is within the preset frequency band, and the characteristic energy data obtained based on the special diagnostic signal V2 is greater than the first threshold.
[0060] Since the speaker 2 fault diagnosis system provided in this embodiment has the same beneficial effects as the above-mentioned diagnosis method, the corresponding beneficial effects and corresponding principles will not be described in detail here.
[0061] Wherein, the special diagnosis module is further used for: timing according to the unreliable signal; If the unreliable signal is continuously obtained within the second preset time, the special diagnostic signal V2 is output to the amplifier 1; If the reliable signal is obtained within the second preset time, the special diagnosis signal V2 is not output.
[0062] If the special diagnostic signal V2 is a DC signal, the special diagnostic module is further configured to convert the DC signals respectively outputted within the adjacent second preset time into positive and negative signals.
[0063] In one example, the amplifier 1 may be a class D amplifier, or a class S amplifier, etc. The present invention is not limited thereto, and those skilled in the art may select a suitable type of amplifier 1.
[0064] in, Figure 4 The framework of the speaker fault diagnosis system provided by the embodiment of the present invention Figure 2 .
[0065] Please refer to Figure 4 In a specific implementation, the voltage and current data acquisition module 3 includes a P-terminal current detector 31, an N-terminal current detector 32, and a voltage detector 33; the characteristic voltage and current data acquisition module 4 includes a P-terminal LC filter 41 and an N-terminal LC filter 42; The first end of the amplifier 1 is coupled to the first end of the speaker 2 through the P-end current detector 31 and the P-end LC filter 41 in sequence; The second end of the amplifier 1 is coupled to the second end of the speaker 2 through the N-end current detector 32 and the N-end LC filter 42 in sequence; The voltage detector 33 is used to detect the voltage between the first terminal and the second terminal of the amplifier 1 .
[0066] The voltage data outputted from the first terminal and the second terminal of the amplifier 1 obtained in this way can also be considered as a real voltage value.
[0067] in, Figure 5 The framework of the speaker fault diagnosis system provided by the embodiment of the present invention Figure 3 .
[0068] Please refer to Figure 5 , in order to save resources, in other specific implementations, the speaker load diagnosis system further includes a DAC module 10 and an audio digital module 11; The audio digital module 11 is used to receive the audio signal output by the main control chip (not shown in the figure) and convert it into the audio digital signal V3. The audio digital signal V3 is also used to control the equalizer, sampling rate conversion module and digital signal processor of the speaker 2.
[0069] The input end of the DAC module 10 receives the audio digital signal V3 output by the audio digital module 11, and the output end of the DAC module 10 is coupled to the input end of the amplifier 1 to output a voltage control signal 1, wherein the voltage control signal 1 includes voltage data output by the first output end and the second output end of the amplifier 1. The voltage control signal 1 is regarded as the input signal.
[0070] In this case, the voltage and current data acquisition module 3 may also be configured to: The current data outputted from the first output terminal and the second output terminal of the amplifier 1 are obtained, and the voltage control signal V1 outputted from the DAC module 10 is acquired, and the voltage data outputted from the first output terminal and the second output terminal of the amplifier 1 are obtained based on the voltage control signal V1.
[0071] The voltage data outputted from the first output terminal and the second output terminal of the amplifier 1 obtained in this way can be considered as an estimated voltage value. In actual implementation, the estimated voltage value is slightly different from the formal voltage value and can be substituted for each other.
[0072] In actual implementation, in one embodiment, the speaker load diagnosis system further includes a feedback module; The feedback module is used to receive the detection result and feed back the current working status of the speaker 2 to the main control chip.
[0073] The feedback module may include, for example, several registers, through which the current working state of the speaker 2 is fed back. It should be understood that the present invention does not limit the specific implementation form of the feedback module.
[0074] In addition, an embodiment of the present invention further provides an electronic device, please refer to Figure 6 The electronic device 10 includes a memory 102, a processor 101, and a program stored in the memory 102 and executable on the processor 101. When the processor 101 executes the program, the steps of the speaker load diagnosis method in the aforementioned solution of the present invention can be implemented. The processor 101 can communicate with the memory 102 via a bus 103.
[0075] In addition, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the speaker load diagnosis method in the aforementioned solution of the present invention are implemented.
[0076] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.
[0077] In a typical configuration, a computer includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0078] Memory may include non-permanent storage in a computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0079] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0080] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for diagnosing a fault of a loudspeaker, characterized in that: The fault diagnosis method comprises: Acquire voltage and current data, where the voltage and current data are used to characterize the voltage and current at the first end and the second end of the speaker; Filtering the voltage and current data and extracting characteristic data to obtain characteristic voltage and current data, wherein the characteristic voltage and current data is within a preset frequency band; Calculating an accumulated value of the characteristic voltage and current data within a first preset time, and calculating a measured resistance value of the speaker based on the accumulated value; Calculate characteristic energy data of the characteristic voltage and current data within the first preset time, and compare the characteristic energy data with a first threshold: If the characteristic energy data is greater than a first threshold, the measured resistance value is compared with a lower threshold and an upper threshold respectively to diagnose the fault type of the speaker and output a diagnosis result; If the characteristic energy data is less than a first threshold, a special diagnostic signal is output, and the voltage and current data are reacquired based on the special diagnostic signal, the frequency band of the special diagnostic signal is within the preset frequency band, and the characteristic energy data obtained based on the special diagnostic signal is greater than the first threshold.
2. The fault diagnosis method of a loudspeaker according to claim 1, characterized in that: If the characteristic energy data is less than the first threshold, outputting the special diagnosis signal specifically includes: If the characteristic energy data is less than the first threshold, timing is performed; If the characteristic energy data acquired within the second preset time are all less than the first threshold, outputting the special diagnosis signal; If the characteristic energy data acquired within the second preset time is greater than the first threshold, the measured resistance value corresponding to the characteristic energy data is compared with the lower threshold and the upper threshold respectively to diagnose the fault type of the speaker and output the diagnosis result.
3. The speaker fault diagnosis method according to claim 2, characterized in that: The special diagnostic signal at least includes: an infrasound signal, an ultrasonic signal or a direct current signal.
4. The speaker fault diagnosis method according to claim 3, characterized in that: If the special diagnostic signal is a DC signal, the DC signals outputted in adjacent second preset time periods are switched between positive and negative.
5. The speaker fault diagnosis method according to claim 1, characterized in that: The first end and the second end of the speaker are connected to the first output end and the second output end of the amplifier respectively, and the voltage and current data are obtained, specifically including: Acquire a first voltage and a first current outputted from a first terminal of the amplifier, and acquire a second voltage and a second current outputted from a second terminal of the amplifier; The characteristic voltage and current data include: a first characteristic voltage corresponding to the first voltage, a first characteristic current corresponding to the first current, a second characteristic voltage corresponding to the second voltage, and a second characteristic current corresponding to the second current; Acquiring characteristic energy data of the characteristic voltage and current data within the first preset time specifically includes: Extract characteristic energy of the first characteristic voltage, the first characteristic current, the second characteristic voltage, and the first characteristic current within the first preset time, wherein the characteristic energy at least includes amplitude, energy, or decibel.
6. The fault diagnosis method of a loudspeaker according to claim 1, characterized in that: The first end and the second end of the speaker are connected to the first output end and the second output end of the amplifier respectively, and the input end of the amplifier is connected to the output end of the digital-to-analog converter, and the voltage and current data are obtained, specifically including: Acquire a first current outputted by a first terminal of the amplifier, and acquire a second current outputted by a second terminal of the amplifier; Obtaining a first voltage estimate and a second voltage estimate of the digital-to-analog converter; The characteristic voltage and current data include: a first characteristic voltage corresponding to an estimated value of the first voltage, a first characteristic current corresponding to the first current, a second characteristic voltage corresponding to an estimated value of the second voltage, and a second characteristic current corresponding to the second current; Acquiring characteristic energy data of the characteristic voltage and current data within the first preset time specifically includes: Extract characteristic energy of the first characteristic voltage, the first characteristic current, the second characteristic voltage, and the first characteristic current within the first preset time, wherein the characteristic energy at least includes amplitude, energy, or decibel.
7. The fault diagnosis method of a loudspeaker according to any one of claims 1 to 6, characterized in that: The measured resistance value is compared with a lower threshold value and an upper threshold value respectively to diagnose the fault type of the speaker, specifically including: If the measured resistance value is less than the lower threshold value, it is determined that the speaker is in a short-circuit state; If the measured resistance value is greater than the lower threshold value and less than the upper threshold value, it is determined that the speaker is in a normal working state; If the measured resistance value is greater than the upper limit threshold, it is determined that the speaker is in an open circuit state.
8. A speaker fault diagnosis system, characterized in that: include: A voltage and current data acquisition module, used to acquire voltage and current data, wherein the voltage and current data are used to characterize the voltage and current at the first end and the second end of the speaker; A characteristic voltage and current data acquisition module, used to filter the voltage and current data, acquire and output characteristic voltage and current data, wherein the characteristic voltage and current data is within a preset frequency band; A measured resistance value acquisition module, used to calculate the cumulative value of the characteristic voltage and current data within a first preset time, and calculate the measured resistance value of the speaker based on the cumulative value; A characteristic energy data acquisition module, used to calculate and output characteristic energy data of the characteristic voltage and current data within the first preset time; A data reliability judgment module, used for comparing the characteristic energy data with a first threshold; if the characteristic energy data is greater than or equal to the first threshold, the data reliability judgment module outputs a reliable signal; if the characteristic energy data is less than the first threshold, the data reliability judgment module outputs an unreliable signal; a fault diagnosis module, configured to compare the measured resistance value with a lower threshold value and an upper threshold value respectively according to the reliable signal, so as to diagnose the fault type of the speaker and output a diagnosis result; A special diagnostic module is used to output a special diagnostic signal according to the unreliable signal so that the voltage and current data acquisition module can reacquire the voltage and current data, the frequency band of the special diagnostic signal is within the preset frequency band, and the characteristic energy data obtained based on the special diagnostic signal is greater than the first threshold.
9. The speaker fault diagnosis system according to claim 8, characterized in that: The special diagnostic module is further used to: perform timing according to the unreliable signal; If the unreliable signal is continuously obtained within a second preset time, outputting the special diagnostic signal; If the reliable signal is obtained within the second preset time, the special diagnosis signal is not output.
10. The speaker fault diagnosis system according to claim 9, characterized in that: If the special diagnostic signal is a DC signal, the special diagnostic module is further configured to convert the DC signals respectively outputted within adjacent second preset time periods into positive and negative signals.
11. An electronic device comprising a memory, a processor, and a program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method according to any one of claims 1 to 7 are implemented.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Fault detection method and device for acoustic wave signal, as well as equipment and readable medium
CN108419199A
Loudspeaker load diagnosis method, system, equipment and medium
CN117750288A
Speaker fault detector and speaker fault detection method
JP2002345091A
Water-in-oil type cosmetic composition and manufacturing method of the same
KR1020220042013A
Speaker load diagnostics
US20200112808A1