CN114604173B - Detection system, T-BOX and vehicle - Google Patents
Detection system, T-BOX and vehicle Download PDFInfo
- Publication number
- CN114604173B CN114604173B CN202011461978.XA CN202011461978A CN114604173B CN 114604173 B CN114604173 B CN 114604173B CN 202011461978 A CN202011461978 A CN 202011461978A CN 114604173 B CN114604173 B CN 114604173B
- Authority
- CN
- China
- Prior art keywords
- current
- resistor
- audio
- speaker
- detection system
- 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.)
- Active
Links
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60Q—ARRANGEMENT OF SIGNALLING OR LIGHTING DEVICES, THE MOUNTING OR SUPPORTING THEREOF OR CIRCUITS THEREFOR, FOR VEHICLES IN GENERAL
- B60Q11/00—Arrangement of monitoring devices for devices provided for in groups B60Q1/00 - B60Q9/00
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60Q—ARRANGEMENT OF SIGNALLING OR LIGHTING DEVICES, THE MOUNTING OR SUPPORTING THEREOF OR CIRCUITS THEREFOR, FOR VEHICLES IN GENERAL
- B60Q5/00—Arrangement or adaptation of acoustic signal devices
Landscapes
- Engineering & Computer Science (AREA)
- Mechanical Engineering (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
Description
技术领域Technical Field
本申请涉及检测电路技术领域,尤其涉及一种检测系统、T-BOX及车辆。The present application relates to the technical field of detection circuits, and in particular to a detection system, a T-BOX and a vehicle.
背景技术Background technique
汽车通过喇叭电路来实现音频功能,该喇叭电路一般包括依次连接的处理器、音频模块和喇叭。处理器生成音频信号并通过音频模块提供给喇叭,喇叭再将音频信号转换为声音信号,从而可以实现发声。The car realizes the audio function through the speaker circuit, which generally includes a processor, an audio module and a speaker connected in sequence. The processor generates an audio signal and provides it to the speaker through the audio module. The speaker then converts the audio signal into a sound signal, so that sound can be produced.
但是,在汽车生产过程中、运输装配中以及在用户使用了一定时间后,该喇叭电路中的喇叭都有可能出现故障。其中,出现的故障可能有多种情况,例如:喇叭短路到地、喇叭短路到电源、喇叭开路、喇叭线间短路等。However, during the automobile production process, transportation and assembly, and after a certain period of use by the user, the speaker in the speaker circuit may fail. There may be many kinds of failures, such as: the speaker is short-circuited to the ground, the speaker is short-circuited to the power supply, the speaker is open-circuited, the speaker wires are short-circuited, etc.
现有的检测方法通常是在喇叭的正极端口串联电阻并上拉到测试电源上,负极端口串联电阻并下拉到接地端,从而将喇叭作为一个电阻负载,利用电阻分压原理来检测喇叭是否故障,但是由于音频模块在工作时输出的直流信号和交流信号会对检测造成干扰,导致无法诊断,所以,现有的检测方法只能适用于音频模块不工作的情况。The existing detection method usually connects a resistor in series with the positive port of the speaker and pulls it up to the test power supply, and connects a resistor in series with the negative port and pulls it down to the ground terminal, thereby treating the speaker as a resistive load and using the resistor voltage divider principle to detect whether the speaker is faulty. However, the DC and AC signals output by the audio module when working will interfere with the detection, resulting in a failure to diagnose. Therefore, the existing detection method can only be applied to the case where the audio module is not working.
因此,亟待一种在音频模块工作时,能对喇叭进行检测的检测系统。Therefore, there is an urgent need for a detection system that can detect the speaker when the audio module is working.
发明内容Summary of the invention
本申请提供了一种检测系统、T-BOX及车辆,实现了在音频模块工作时,对喇叭进行故障检测的目的,可以检测出喇叭是否出现喇叭短路到地、喇叭短路到电源、喇叭线间短路、喇叭开路等故障。The present application provides a detection system, a T-BOX and a vehicle, which realize the purpose of fault detection of the speaker when the audio module is working, and can detect whether the speaker has faults such as short circuit to ground, short circuit to power supply, short circuit between speaker wires, and open circuit of the speaker.
为达到上述目的,本申请采用如下技术方案:In order to achieve the above objectives, this application adopts the following technical solutions:
第一方面,提供了一种检测系统,该检测系统与喇叭连接,检测系统包括:相连接的处理器和音频模块,以及与处理器和音频模块均连接的检测电路;音频模块包括具有音频正差分输出端和音频负差分输出端的音频功率放大器,喇叭具有正极端口和负极端口,音频正差分输出端与正极端口连接,音频负差分输出端与负极端口连接;In a first aspect, a detection system is provided, the detection system is connected to a speaker, and the detection system includes: a processor and an audio module connected to each other, and a detection circuit connected to both the processor and the audio module; the audio module includes an audio power amplifier having an audio positive differential output terminal and an audio negative differential output terminal, the speaker has a positive port and a negative port, the audio positive differential output terminal is connected to the positive port, and the audio negative differential output terminal is connected to the negative port;
检测电路用于采集音频正差分输出端与正极端口之间传输的第一电流,以及用于采集负极端口与音频负差分输出端之间传输的第二电流;The detection circuit is used to collect a first current transmitted between the audio positive differential output terminal and the positive port, and is used to collect a second current transmitted between the negative port and the audio negative differential output terminal;
检测电路还用于根据第一电流和第二电流向处理器提供第一信息,第一信息用于处理器确定喇叭是否出现第一故障。The detection circuit is also used to provide first information to the processor according to the first current and the second current, and the first information is used by the processor to determine whether a first fault occurs in the speaker.
第一方面提供的检测系统,通过检测系统中的检测电路采集音频功率放大器的音频正差分输出端和喇叭的正极端口之间传输的第一电流,以及在音频负差分输出端和喇叭的负极端口之间传输的第二电流,然后,根据第一电流和第二电流向处理器提供第一信息,以使得处理器可以判断喇叭是否出现第一故障。在该检测系统中,音频模块工作时,音频功率放大器输出的直流信号和交流信号并不会干扰电流的采集,从而该检测系统可以实现在音频模块工作时,对喇叭进行故障检测。The detection system provided in the first aspect collects the first current transmitted between the audio positive differential output terminal of the audio power amplifier and the positive port of the speaker, and the second current transmitted between the audio negative differential output terminal and the negative port of the speaker through the detection circuit in the detection system, and then provides the first information to the processor according to the first current and the second current, so that the processor can determine whether the speaker has a first fault. In the detection system, when the audio module is working, the DC signal and AC signal output by the audio power amplifier will not interfere with the current collection, so that the detection system can realize fault detection of the speaker when the audio module is working.
在第一方面一种可能的实现方式中,检测系统包括:串联于音频正差分输出端与正极端口之间的第一电流采集电路,串联于音频负差分输出端与负极端口之间的第二电流采集电路;第一电流采集电路用于采集音频正差分输出端与正极端口之间传输的第一电流并提供给处理器,第二电流采集电路用于采集负极端口与音频负差分输出端之间传输的第二电流并提供给处理器。In a possible implementation of the first aspect, the detection system includes: a first current acquisition circuit connected in series between the audio positive differential output terminal and the positive port, and a second current acquisition circuit connected in series between the audio negative differential output terminal and the negative port; the first current acquisition circuit is used to collect the first current transmitted between the audio positive differential output terminal and the positive port and provide it to the processor, and the second current acquisition circuit is used to collect the second current transmitted between the negative port and the audio negative differential output terminal and provide it to the processor.
在第一方面一种可能的实现方式中,检测系统还包括:具有三个连接端口的电流比较电路,电流比较电路的三个连接端口分别与第一电流采集电路、第二电流采集电路以及处理器连接;电流比较电路用于确定第一电流与第二电流之间的电流差值,相应的,第一信息包括电流差值。在该实现方式中,电流比较电路可用于计算第一电流和第二电流之间的电流差值,由此,处理器仅用于根据该计算得到电流差值进行故障判断,减少了处理器的计算量,提高了处理效率。In a possible implementation of the first aspect, the detection system further includes: a current comparison circuit having three connection ports, the three connection ports of the current comparison circuit being respectively connected to the first current acquisition circuit, the second current acquisition circuit, and the processor; the current comparison circuit is used to determine the current difference between the first current and the second current, and accordingly, the first information includes the current difference. In this implementation, the current comparison circuit can be used to calculate the current difference between the first current and the second current, whereby the processor is only used to perform fault judgment based on the current difference obtained by the calculation, thereby reducing the amount of calculation of the processor and improving processing efficiency.
在第一方面一种可能的实现方式中,检测系统还包括:与喇叭的正极端口和负极端口连接的电压采集电路;电压采集电路用于采集正极端口和负极端口之间的电压差值,相应的,第一信息包括第一电流、第二电流和电压差值。在该实现方式中,处理器根据电压采集电路采集到的电压差值,将电压差值与第一电流、第二电流结合起来计算喇叭对应的阻值,从而可以根据喇叭阻值大小更准确的判断出喇叭是否出现故障,以提高判断的准确性。In a possible implementation of the first aspect, the detection system further includes: a voltage acquisition circuit connected to the positive port and the negative port of the speaker; the voltage acquisition circuit is used to acquire the voltage difference between the positive port and the negative port, and accordingly, the first information includes the first current, the second current and the voltage difference. In this implementation, the processor combines the voltage difference with the first current and the second current according to the voltage difference acquired by the voltage acquisition circuit to calculate the corresponding resistance of the speaker, so that it can more accurately determine whether the speaker is faulty according to the size of the speaker resistance, so as to improve the accuracy of the judgment.
在第一方面一种可能的实现方式中,处理器还用于生成亚音频信号并通过音频模块提供给喇叭,亚音频信号的频率与音频信号的频率不同。在该实现方式中,在喇叭无声音播放时,可以通过检测亚音频信号传输时,所采集到的第一电流、第二电流以及电压差值来判断喇叭是否出现故障,从而可实现在音频模块无音频信号输出时,也能对喇叭电路进行检测。In a possible implementation of the first aspect, the processor is further used to generate a sub-audio signal and provide it to the speaker through the audio module, and the frequency of the sub-audio signal is different from the frequency of the audio signal. In this implementation, when the speaker does not play sound, it is possible to determine whether the speaker is faulty by detecting the first current, the second current, and the voltage difference collected when the sub-audio signal is transmitted, so that the speaker circuit can be detected when the audio module does not output an audio signal.
在第一方面一种可能的实现方式中,检测系统还包括:偏置电路,偏置电路分别与音频正差分输出端、音频负差分输出端连接;在音频模块未工作时,偏置电路用于给第一电流采集电路、喇叭及第二电流采集电路所在的电路回路施加偏置电压,处理器用于在施加偏置电压时,根据第一电流采集电路采集的第一电流、第二电流采集电路采集的第二电流以及电压采集电路采集的电压差值来确定喇叭是否出现第一故障。在该实现方式中,在音频模块不工作时,可以通过偏置电路施加偏置电压来判断喇叭是否出现第一故障。In a possible implementation of the first aspect, the detection system further includes: a bias circuit, the bias circuit is connected to the audio positive differential output terminal and the audio negative differential output terminal respectively; when the audio module is not working, the bias circuit is used to apply a bias voltage to the circuit loop where the first current acquisition circuit, the speaker and the second current acquisition circuit are located, and the processor is used to determine whether the speaker has a first fault according to the first current collected by the first current acquisition circuit, the second current collected by the second current acquisition circuit, and the voltage difference collected by the voltage acquisition circuit when applying the bias voltage. In this implementation, when the audio module is not working, the bias circuit can be used to apply a bias voltage to determine whether the speaker has a first fault.
在第一方面一种可能的实现方式中,第一电流采集电路包括:第一电阻和第一差分运算放大器;第一电阻串联于音频正差分输出端与正极端口之间,第一差分运算放大器的两个输入端分别与第一电阻的两端连接;第一差分运算放大器用于确定第一电阻两端的第一电压差值并提供给处理器,处理器用于根据第一电压差值和第一电阻确定第一电流。In a possible implementation of the first aspect, the first current acquisition circuit includes: a first resistor and a first differential operational amplifier; the first resistor is connected in series between the audio positive differential output terminal and the positive port, and the two input terminals of the first differential operational amplifier are respectively connected to the two ends of the first resistor; the first differential operational amplifier is used to determine a first voltage difference between the two ends of the first resistor and provide it to a processor, and the processor is used to determine a first current based on the first voltage difference and the first resistor.
在第一方面一种可能的实现方式中,第二电流采集电路包括:第二电阻和第二差分运算放大器,第二电阻与第一电阻相等;第二电阻串联于音频负差分输出端和负极端口之间,第二差分运算放大器的两个输入端分别与第二电阻的两端连接;第二差分运算放大器用于确定第二电阻两端的第二电压差值并提供给处理器,处理器用于根据第二电压差值和第二电阻确定第二电流。In a possible implementation of the first aspect, the second current acquisition circuit includes: a second resistor and a second differential operational amplifier, the second resistor is equal to the first resistor; the second resistor is connected in series between the audio negative differential output terminal and the negative port, and the two input terminals of the second differential operational amplifier are respectively connected to the two ends of the second resistor; the second differential operational amplifier is used to determine the second voltage difference across the second resistor and provide it to the processor, and the processor is used to determine the second current according to the second voltage difference and the second resistor.
在第一方面一种可能的实现方式中,电流比较电路包括:第三差分运算放大器;第三差分运算放大器的两个输入端分别与第一差分运算放大器的输出端、第二差分运算放大器的输出端连接;第三差分运算放大器用于确定第一电压差值和第二电压差值之间的第三电压差值并提供给处理器,处理器用于根据第三电压差值、第一电阻或第二电阻来确定电流差值。In a possible implementation of the first aspect, the current comparison circuit includes: a third differential operational amplifier; two input terminals of the third differential operational amplifier are respectively connected to the output terminal of the first differential operational amplifier and the output terminal of the second differential operational amplifier; the third differential operational amplifier is used to determine a third voltage difference between the first voltage difference and the second voltage difference and provide it to a processor, and the processor is used to determine the current difference based on the third voltage difference, the first resistor or the second resistor.
在第一方面一种可能的实现方式中,电压采集电路包括:第四差分运算放大器,第四差分运算放大器的两个输入端分别与喇叭的正极端口和负极端口连接;第四差分运算放大器用于确定喇叭的正极端口和负极端口之间的第四电压差值并提供给处理器。In a possible implementation of the first aspect, the voltage acquisition circuit includes: a fourth differential operational amplifier, two input terminals of the fourth differential operational amplifier are respectively connected to the positive port and the negative port of the speaker; the fourth differential operational amplifier is used to determine a fourth voltage difference between the positive port and the negative port of the speaker and provide it to the processor.
在第一方面一种可能的实现方式中,偏置电路包括:偏置电压端、第一偏置电阻、第二偏置电阻和接地端;第一偏置电阻的第一端与偏置电压端连接,第一偏置电阻的第二端与音频正差分输出端连接,第二偏置电阻的第一端与音频负差分输出端连接,第二偏置电阻的第二端与接地端连接。In a possible implementation of the first aspect, the bias circuit includes: a bias voltage terminal, a first bias resistor, a second bias resistor and a ground terminal; the first end of the first bias resistor is connected to the bias voltage terminal, the second end of the first bias resistor is connected to the audio positive differential output terminal, the first end of the second bias resistor is connected to the audio negative differential output terminal, and the second end of the second bias resistor is connected to the ground terminal.
在第一方面一种可能的实现方式中,第一故障包括喇叭短路到电源、喇叭短路到地、喇叭开路或喇叭线间短路。In a possible implementation manner of the first aspect, the first fault includes a speaker short circuit to a power supply, a speaker short circuit to a ground, a speaker open circuit, or a speaker wire short circuit.
第二方面,提供了一种电子设备,包括相连接的检测系统和喇叭,其中,检测系统为如第一方面或第一方面的任意可能的实现方式中提供的检测系统。In a second aspect, an electronic device is provided, comprising a detection system and a speaker connected to each other, wherein the detection system is a detection system provided in the first aspect or any possible implementation of the first aspect.
第三方面,提供了一种T-BOX,包括如第一方面或第一方面的任意可能的实现方式中提供的检测系统。In a third aspect, a T-BOX is provided, comprising a detection system as provided in the first aspect or any possible implementation of the first aspect.
在第三方面一种可能的实现方式中,T-BOX还包括与检测系统连接的喇叭。In a possible implementation manner of the third aspect, the T-BOX further includes a speaker connected to the detection system.
第四方面,提供了一种车辆,包括如第三方面或第三方面的任意可能的实现方式中提供的T-BOX。In a fourth aspect, a vehicle is provided, comprising the T-BOX provided in the third aspect or any possible implementation of the third aspect.
第五方面,提供了一种车辆,包括相连接的T-BOX和检测系统,其中,检测系统为如第一方面或第一方面的任意可能的实现方式中提供的检测系统。In a fifth aspect, a vehicle is provided, comprising a T-BOX and a detection system connected to each other, wherein the detection system is a detection system provided in the first aspect or any possible implementation of the first aspect.
在第五方面一种可能的实现方式中,该车辆还包括与检测系统连接的喇叭。In a possible implementation of the fifth aspect, the vehicle also includes a horn connected to the detection system.
本申请提供的检测系统、T-BOX及车辆,通过检测系统中的检测电路采集在音频功率放大器的音频正差分输出端和喇叭的正极端口之间传输的第一电流,在音频负差分输出端和喇叭的负极端口之间传输的第二电流,然后,通过处理器比较第一电流和第二电流的大小来判断喇叭电路是否出现喇叭短路到地、喇叭短路到电源的故障,再结合喇叭两端的电压差值来检测喇叭电路是否出现喇叭开路、喇叭线间短路的故障。由于,在音频模块工作时,音频功率放大器输出的直流信号和交流信号并不会干扰电流、电压的采集,从而该电路可以实现在音频模块工作时,对喇叭电路进行故障检测的目的。The detection system, T-BOX and vehicle provided by the present application collect the first current transmitted between the audio positive differential output terminal of the audio power amplifier and the positive port of the speaker, and the second current transmitted between the audio negative differential output terminal and the negative port of the speaker through the detection circuit in the detection system, and then, the processor compares the magnitude of the first current and the second current to determine whether the speaker circuit has a fault of the speaker short-circuited to the ground or the speaker short-circuited to the power supply, and then combines the voltage difference at both ends of the speaker to detect whether the speaker circuit has a fault of the speaker open circuit or the speaker wire short circuit. Because, when the audio module is working, the DC signal and AC signal output by the audio power amplifier will not interfere with the collection of current and voltage, so that the circuit can achieve the purpose of fault detection of the speaker circuit when the audio module is working.
此外,还通过增加亚音频信号、偏置电路来检测喇叭无声音播放、音频模块不工作时喇叭是否出现故障,以增加检测的全面性。In addition, sub-audio signals and bias circuits are added to detect whether the speaker is faulty when there is no sound or the audio module is not working, so as to increase the comprehensiveness of the detection.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本申请实施例提供的一种终端设备的结构示意图;FIG1 is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application;
图2为本申请实施例提供的一种T-BOX的结构示意图;FIG2 is a schematic diagram of the structure of a T-BOX provided in an embodiment of the present application;
图3为一种现有检测系统与喇叭的连接示意图;FIG3 is a schematic diagram of a connection between an existing detection system and a speaker;
图4为另一种现有检测系统与喇叭的连接示意图;FIG4 is a schematic diagram of another conventional detection system and a speaker connection;
图5为又一种现有检测系统与喇叭的连接示意图;FIG5 is a schematic diagram of a connection between another conventional detection system and a speaker;
图6为本申请实施例提供的一种检测系统与喇叭的连接示意图;FIG6 is a schematic diagram of a connection between a detection system and a speaker provided in an embodiment of the present application;
图7为本申请实施例提供的另一种检测系统与喇叭的连接示意图;FIG7 is a schematic diagram of another connection between a detection system and a speaker provided in an embodiment of the present application;
图8为本申请实施例提供的又一种检测系统与喇叭的连接示意图;FIG8 is a schematic diagram of a connection between another detection system and a speaker provided in an embodiment of the present application;
图9为本申请实施例提供的又一种检测系统与喇叭的连接示意图;FIG9 is a schematic diagram of a connection between another detection system and a speaker provided in an embodiment of the present application;
图10为本申请实施例提供的又一种检测系统与喇叭的连接示意图;FIG10 is a schematic diagram of a connection between another detection system and a speaker provided in an embodiment of the present application;
图11为本申请实施例提供的又一种检测系统与喇叭的连接示意图;FIG11 is a schematic diagram of a connection between another detection system and a speaker provided in an embodiment of the present application;
图12为本申请实施例提供的一种第一电流采集电路的结构示意图;FIG12 is a schematic diagram of the structure of a first current acquisition circuit provided in an embodiment of the present application;
图13为图11中的喇叭出现喇叭短路到地、喇叭短路到电源故障的等效结构示意图;FIG13 is a schematic diagram of an equivalent structure of the speaker in FIG11 when the speaker is short-circuited to ground or short-circuited to power supply;
图14为本申请实施例提供的又一种检测系统与喇叭的连接示意图。FIG. 14 is a schematic diagram of a connection between another detection system and a speaker provided in an embodiment of the present application.
附图标记:Reference numerals:
1-终端设备;2-检测系统;20-检测电路;100-T-BOX;110-处理器;120-音频模块;121-音频解码器;122-音频功率放大器;200-喇叭;210-第一电流采集电路;211-第一运放电路;220-第二电流采集电路;230-电流比较电路;240-偏置电路;SPKP-音频正差分输出端;SKPN-音频负差分输出端;VCC-偏置电压端;GND-接地端;RL-喇叭电阻;R11-第一电阻;R12-第二电阻;I_SPKP-第一电流;I_SPKN-第二电流;OP1-第一差分运算放大器;OP2-第二差分运算放大器;OP3-第三差分运算放大器;OP4-第四差分运算放大器;RS1-第一等效电阻;RS2-第二等效电阻;RT1-第一偏置电阻;RT2-第二偏置电阻;SW1-第一开关;SW2-第二开关;BAT-电源。1-terminal device; 2-detection system; 20-detection circuit; 100-T-BOX; 110-processor; 120-audio module; 121-audio decoder; 122-audio power amplifier; 200-speaker; 210-first current acquisition circuit; 211-first op amp circuit; 220-second current acquisition circuit; 230-current comparison circuit; 240-bias circuit; SPKP-audio positive differential output terminal; SKPN-audio negative differential output terminal; VCC-bias voltage terminal; GND-connection Ground; RL-speaker resistor; R11-first resistor; R12-second resistor; I_SPKP-first current; I_SPKN-second current; OP1-first differential operational amplifier; OP2-second differential operational amplifier; OP3-third differential operational amplifier; OP4-fourth differential operational amplifier; RS1-first equivalent resistor; RS2-second equivalent resistor; RT1-first bias resistor; RT2-second bias resistor; SW1-first switch; SW2-second switch; BAT-power supply.
具体实施方式Detailed ways
下面将结合附图,对本申请中的技术方案进行描述。The technical solution in this application will be described below in conjunction with the accompanying drawings.
在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。In the description of the embodiments of the present application, unless otherwise specified, "/" means or, for example, A/B can mean A or B; "and/or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.
此外,本申请中,“左”、“右”等方位术语可以包括但不限于相对附图中的部件示意置放的方位来定义的,应当理解到,这些方向性术语可以是相对的概念,它们用于相对性的描述和澄清,其可以根据附图中部件附图所放置的方位的变化而相应地发生变化。In addition, in the present application, directional terms such as "left" and "right" may be defined including but not limited to the orientation relative to the schematic placement of components in the drawings. It should be understood that these directional terms may be relative concepts. They are used for relative description and clarification, and may change accordingly according to changes in the orientation of the components in the drawings.
在本申请中,除非另有明确的规定和限定,术语“连接”应做广义理解,例如,“连接”可以是固定连接,也可以是可拆卸连接,或成一体;可以是直接相连,也可以通过中间媒介间接相连。此外,术语“电连接”可以是实现信号传输的电性连接的方式。“电连接”可以是直接的电性连接,也可以通过中间媒介间接电性连接。In this application, unless otherwise clearly specified and limited, the term "connection" should be understood in a broad sense. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection or an indirect connection through an intermediate medium. In addition, the term "electrical connection" can be a way of achieving electrical connection for signal transmission. "Electrical connection" can be a direct electrical connection or an indirect electrical connection through an intermediate medium.
本申请实施例的技术方案可以应用于各种终端设备。例如,本申请实施例中的终端设备可以为手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobilepersonal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等,本申请实施例对终端设备的具体类型不作任何限制。The technical solution of the embodiment of the present application can be applied to various terminal devices. For example, the terminal device in the embodiment of the present application can be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR)/virtual reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The embodiment of the present application does not impose any restrictions on the specific type of the terminal device.
以终端设备为车载设备为例,图1示出了本申请实施例提供的一种终端设备的结构示意图。如图1所示,终端设备1上设置有检测系统2和与检测系统2连接的多个喇叭200,该检测系统2包括相连接的处理器110和音频模块120,以及与处理器110和音频模块120均电连接的检测电路20,检测系统2用于对喇叭200进行检测。Taking the terminal device as a vehicle-mounted device as an example, Figure 1 shows a schematic diagram of the structure of a terminal device provided by an embodiment of the present application. As shown in Figure 1, a detection system 2 and a plurality of speakers 200 connected to the detection system 2 are provided on the terminal device 1. The detection system 2 includes a processor 110 and an audio module 120 connected thereto, and a detection circuit 20 electrically connected to the processor 110 and the audio module 120. The detection system 2 is used to detect the speakers 200.
其中,在该终端设备1中,音频模块120与喇叭200均连接。由此,处理器110可以生成音频信号并通过音频模块120提供给喇叭200,喇叭200再将音频信号转换为声音信号,从而可以实现音频功能,这样,用户可以利用终端设备1来收听音乐或广播等。In the terminal device 1, the audio module 120 is connected to the speaker 200. Therefore, the processor 110 can generate an audio signal and provide it to the speaker 200 through the audio module 120, and the speaker 200 converts the audio signal into a sound signal, thereby realizing the audio function, so that the user can use the terminal device 1 to listen to music or broadcast, etc.
厂商在生产车辆时,一般可能会将检测系统2中的处理器110、音频模块120以及检测电路20会设置在车辆中的中控台位置处,而将与音频模块120连接的喇叭200安装在车辆车门上。如图1所示,该车辆上设置有四个喇叭200,分别安装在车辆的左右前车门、左右后车门上,这样,在使用过程中,处理器110生成音频信号并将音频信号通过音频模块120提供给四个喇叭200,从而利用该四个位于不同位置的喇叭200在车内不仅能能实现音频功能,还能形成良好的音效,可以提高用户的体验。When a manufacturer produces a vehicle, the processor 110, the audio module 120 and the detection circuit 20 in the detection system 2 may generally be set at the center console position in the vehicle, and the speaker 200 connected to the audio module 120 is installed on the vehicle door. As shown in FIG1 , the vehicle is provided with four speakers 200, which are respectively installed on the left and right front doors and the left and right rear doors of the vehicle. In this way, during use, the processor 110 generates an audio signal and provides the audio signal to the four speakers 200 through the audio module 120, so that the four speakers 200 located at different positions can not only realize the audio function in the vehicle, but also form a good sound effect, which can improve the user experience.
当然,不同的车型上的喇叭数量和设置位置可以是不同的,该数量和设置位置可以根据需要进行更改,本申请对此不进行任何限制。Of course, the number and location of the horns on different vehicle models may be different, and the number and location may be changed as needed, and this application does not impose any restrictions on this.
以下对图1中的检测系统2的结构进行说明。The structure of the detection system 2 in FIG. 1 is described below.
应理解,该检测系统2可以设置在车辆的车载通讯盒子(telematics box,T-BOX)中,而与检测系统2连接的喇叭200则设置在T-BOX之外,或者,该检测系统2和与其连接的喇叭200可以均设置在T-BOX中,或者,该检测系统2还可以设置T-BOX之外,仅与T-BOX连接。It should be understood that the detection system 2 can be set in the vehicle's on-board communication box (telematics box, T-BOX), and the speaker 200 connected to the detection system 2 is set outside the T-BOX, or, the detection system 2 and the speaker 200 connected thereto can both be set in the T-BOX, or, the detection system 2 can also be set outside the T-BOX and only connected to the T-BOX.
以检测系统2和与检测系统2连接的喇叭200均设置在T-BOX中为例,图2示出了本申请实施例提供的一种T-BOX的结构示意图。图2中仅画出了一个喇叭200以作为示例。Taking the detection system 2 and the speaker 200 connected to the detection system 2 as an example, both are arranged in the T-BOX, FIG2 shows a schematic diagram of the structure of a T-BOX provided in an embodiment of the present application. FIG2 shows only one speaker 200 as an example.
其中,如图2所示,T-BOX包括相连接的检测系统2和喇叭200,检测系统2包括处理器110和音频模块120,以及与处理器11和音频模块120均连接的检测电路20,音频模块120可以包括音频解码器121和音频功率放大器122。As shown in Figure 2, the T-BOX includes a detection system 2 and a speaker 200 connected to each other. The detection system 2 includes a processor 110 and an audio module 120, and a detection circuit 20 connected to both the processor 11 and the audio module 120. The audio module 120 may include an audio decoder 121 and an audio power amplifier 122.
T-BOX用于提供应用在车辆上的包括第二代(2th generation,2G)通信技术,第三代(3th generation,3G)通信技术,第四代(4th generation,4G)通信技术,第五代(5thgeneration,5G)通信技术,无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(globalnavigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。T-BOX可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noiseamplifier,LNA)等。T-BOX可以由天线接收电磁波,并对接收的电磁波进行滤波,放大等处理。T-BOX还可以将调制后的信号放大,经天线转为电磁波辐射出去。T-BOX可以是集成至少一个通信处理模块的一个或多个器件。T-BOX is used to provide solutions for wireless communication applied in vehicles, including second generation (2G), third generation (3G), fourth generation (4G), fifth generation (5G), wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. T-BOX may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. T-BOX can receive electromagnetic waves through antennas, and filter and amplify the received electromagnetic waves. T-BOX can also amplify the modulated signal and convert it into electromagnetic waves for radiation through antennas. T-BOX can be one or more devices integrating at least one communication processing module.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路内置音频(inter-integrated circuit sound,I2S)接口等。In some embodiments, the processor 110 may include one or more interfaces, such as an inter-integrated circuit sound (I2S) interface.
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块120耦合,实现处理器110与音频模块120之间的通信。The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 120 via the I2S bus to achieve communication between the processor 110 and the audio module 120.
应理解,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对T-BOX的结构限定。在本申请另一些实施例中,T-BOX也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It should be understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the T-BOX. In other embodiments of the present application, the T-BOX may also adopt a different interface connection method from the above embodiments, or a combination of multiple interface connection methods.
车载设备通过音频模块120、喇叭200以及应用处理器等实现音频功能。The vehicle-mounted device implements audio functions through the audio module 120 , the speaker 200 , and the application processor.
音频模块120用于将数字音频信息转换成模拟音频信号输出,也可以用于将模拟音频输入转换为数字音频信号。音频模块120还可以用于对音频信号编码和解码,和/或,对音频信号进行功率放大。在一些实施例中,音频模块120可以设置于处理器110中,或将音频模块120的部分功能模块设置于处理器中。The audio module 120 is used to convert digital audio information into analog audio signal output, and can also be used to convert analog audio input into digital audio signals. The audio module 120 can also be used to encode and decode audio signals, and/or, to power amplify audio signals. In some embodiments, the audio module 120 can be arranged in the processor 110, or some functional modules of the audio module 120 can be arranged in the processor.
喇叭200,也叫扬声器,具有正极端口和负极端口,用于将音频信号转换为声音信号。The speaker 200 , also called a loudspeaker, has a positive terminal and a negative terminal, and is used to convert an audio signal into a sound signal.
其中,结合图2所示,音频模块120中的音频功率放大器122具有音频正差分输出端和音频负差分输出端。其中,如图2所示,SPKP用于表示音频正差分输出端,SPKN用于表示音频负差分输出端。音频功率放大器122的音频正差分输出端SPKP和喇叭200的正极端口电连接,音频功率放大器122的音频负差分输出端SPKN和喇叭200的负极端口电连接。音频模块120中的音频解码器121对处理器110输出的音频信号进行解码,并将解码后的音频信号提供给音频功率放大器122进行放大,然后,音频功率放大器122将放大的音频信号再通过音频正差分输出端SPKP和音频负差分输出端SPKN提供给喇叭200的正极端口、负极端口,由此,喇叭200接收后将音频信号转换成声音信号进行发声。As shown in FIG. 2 , the audio power amplifier 122 in the audio module 120 has an audio positive differential output terminal and an audio negative differential output terminal. As shown in FIG. 2 , SPKP is used to represent the audio positive differential output terminal, and SPKN is used to represent the audio negative differential output terminal. The audio positive differential output terminal SPKP of the audio power amplifier 122 is electrically connected to the positive port of the speaker 200, and the audio negative differential output terminal SPKN of the audio power amplifier 122 is electrically connected to the negative port of the speaker 200. The audio decoder 121 in the audio module 120 decodes the audio signal output by the processor 110, and provides the decoded audio signal to the audio power amplifier 122 for amplification. Then, the audio power amplifier 122 provides the amplified audio signal to the positive port and the negative port of the speaker 200 through the audio positive differential output terminal SPKP and the audio negative differential output terminal SPKN. As a result, the speaker 200 converts the audio signal into a sound signal for sounding after receiving it.
应理解,本申请实施例示意的结构并不构成对T-BOX的具体限定。在本申请另一些实施例中,T-BOX可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It should be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the T-BOX. In other embodiments of the present application, the T-BOX may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
基于依次连接的处理器、音频模块和喇叭所组成的喇叭电路中的喇叭或者独立使用的喇叭,在生产过程中、运输装配中以及在用户使用了一定时间后,该喇叭都有可能出现故障。其中,出现的故障可能有多种情况,例如喇叭短路到地、喇叭短路到电源、喇叭线间短路或者喇叭开路等。此时,需要对喇叭进行检测,判断出现的是什么故障,从而方便于后续对故障进行针对性维修。A speaker in a speaker circuit composed of a processor, an audio module, and a speaker connected in sequence, or a stand-alone speaker, may fail during the production process, during transportation and assembly, or after a certain period of use by the user. There may be many types of failures, such as a speaker short circuit to ground, a speaker short circuit to a power source, a speaker wire short circuit, or a speaker open circuit. At this point, the speaker needs to be tested to determine what the failure is, so as to facilitate subsequent targeted repairs of the failure.
应理解,喇叭短路到地指的是喇叭的正极端口短路到接地端或者喇叭的负极端口短路到接地端。喇叭短路到电源指的是喇叭的正极端口短路到电源或者喇叭的负极端口短路到电源。喇叭线间短路指的是喇叭的正极端口和负极端口直接导通所导致的短路,喇叭开路指的是在喇叭内部正极端口和负极端口之间断开。It should be understood that the speaker short circuit to ground refers to the positive terminal of the speaker short circuit to the ground terminal or the negative terminal of the speaker short circuit to the ground terminal. The speaker short circuit to power supply refers to the positive terminal of the speaker short circuit to the power supply or the negative terminal of the speaker short circuit to the power supply. The speaker line short circuit refers to the short circuit caused by the direct connection between the positive terminal and the negative terminal of the speaker, and the speaker open circuit refers to the disconnection between the positive terminal and the negative terminal inside the speaker.
那么,为了对喇叭进行故障检测,在现有技术中,已提出多种结构的检测电路20,下面以三种检测电路20为例进行说明。Then, in order to perform fault detection on a speaker, various structures of detection circuits 20 have been proposed in the prior art. Three types of detection circuits 20 are described below as examples.
图3示出了一种现有检测系统2与喇叭200的连接示意图。如图3所示,该检测系统2中的检测电路20设置在音频功率放大器122和喇叭200之间。该检测电路20包括电阻R1和开关SW,电阻R1的第一端连接在偏置电压端VCC上,第二端连接在喇叭200的正极端口上,开关SW的第一端连接在喇叭200的负极端口,第二端连接在接地端GND上。FIG3 shows a schematic diagram of a connection between an existing detection system 2 and a speaker 200. As shown in FIG3, the detection circuit 20 in the detection system 2 is arranged between the audio power amplifier 122 and the speaker 200. The detection circuit 20 includes a resistor R1 and a switch SW, wherein a first end of the resistor R1 is connected to the bias voltage terminal VCC, and a second end is connected to the positive electrode port of the speaker 200, and a first end of the switch SW is connected to the negative electrode port of the speaker 200, and a second end is connected to the ground terminal GND.
在开关SW闭合时,偏置电压端VCC上施加偏置电压,喇叭200可以看作是一个负载阻抗RL,从而经过电阻R1与喇叭电阻RL在偏置电压端VCC和接地端GND之间可形成一个导通回路。When the switch SW is closed, a bias voltage is applied to the bias voltage terminal VCC, and the speaker 200 can be regarded as a load impedance RL, so that a conduction loop can be formed between the bias voltage terminal VCC and the ground terminal GND through the resistor R1 and the speaker resistor RL.
基于所示导通回路,可以从喇叭200的正极端口外接一条检测线来检测喇叭200当作一负载阻抗RL时所分得的电压,进而根据喇叭200分得的电压大小,可以检测出喇叭200是否故障。Based on the conductive loop shown, a detection line can be connected to the positive terminal of the speaker 200 to detect the voltage divided when the speaker 200 acts as a load impedance RL, and then according to the voltage divided by the speaker 200, whether the speaker 200 is faulty can be detected.
示例性的,当偏置电压端VCC上施加1V电压时,连接到喇叭200的正极端口上的检测线所获取的电压值可以根据公式(1)计算得到。For example, when a voltage of 1 V is applied to the bias voltage terminal VCC, the voltage value obtained by the detection line connected to the positive terminal of the speaker 200 can be calculated according to formula (1).
其中,在公式(1),VDET0表示连接到喇叭200的正极端口上的检测线所获取的电压值。In formula (1), VDET0 represents the voltage value obtained by the detection line connected to the positive terminal of the speaker 200.
根据公式(1)可知,若喇叭200正常,则电压值VDET的大小应为0V~1V之间的中间电平;若喇叭200两端发生线间短路,喇叭阻值RL1将变小,则电压值VDET将接近0V;若喇叭200两端开路,则电压值VDET的大小将被上拉至1V。由此,可以以电阻分压的原理检测出喇叭对应的状态是正常,还是发生了线间短路或开路故障。According to formula (1), if the speaker 200 is normal, the voltage value VDET should be an intermediate level between 0V and 1V; if a short circuit occurs between the two ends of the speaker 200, the speaker resistance RL1 will become smaller, and the voltage value VDET will be close to 0V; if an open circuit occurs between the two ends of the speaker 200, the voltage value VDET will be pulled up to 1V. Therefore, the principle of resistance voltage division can be used to detect whether the corresponding state of the speaker is normal or a short circuit or open circuit fault occurs.
图4示出了另一种现有检测系统2的结构示意图。如图4所示,该检测系统2中的检测电路20设置在音频功率放大器122和喇叭200之间。该检测电路20包括电阻R2、电阻R3、电阻R4、电阻R5和电阻R6。其中,电阻R2的第一端连接偏置电压端VCC,第二端连接第一节点P1;电阻R3的第一端连接第一节点P1,第二端连接第二节点P2;电阻R4的第一端连接第二节点P2,第二端连接喇叭的正极端口,电阻R5的第一端连接第一节点P1,第二端连接接地端GND;电阻R6的第一端连接喇叭200的负极端口,第二端连接接地端GND。FIG4 shows a schematic diagram of the structure of another existing detection system 2. As shown in FIG4, the detection circuit 20 in the detection system 2 is arranged between the audio power amplifier 122 and the speaker 200. The detection circuit 20 includes a resistor R2, a resistor R3, a resistor R4, a resistor R5 and a resistor R6. Among them, the first end of the resistor R2 is connected to the bias voltage terminal VCC, and the second end is connected to the first node P1; the first end of the resistor R3 is connected to the first node P1, and the second end is connected to the second node P2; the first end of the resistor R4 is connected to the second node P2, and the second end is connected to the positive terminal of the speaker; the first end of the resistor R5 is connected to the first node P1, and the second end is connected to the ground terminal GND; the first end of the resistor R6 is connected to the negative terminal of the speaker 200, and the second end is connected to the ground terminal GND.
在偏置电压端VCC上施加偏置电压时,若将喇叭200看作一个电阻RL,则电阻R2和电阻R5形成了接在偏置电压端VCC和接地端GND之间的第一回路L1;电阻R3、电阻R4、喇叭对应的电阻RL2和电阻R6形成了接在偏置电压端VCC和接地端GND之间的第二回路L2。When a bias voltage is applied to the bias voltage terminal VCC, if the speaker 200 is regarded as a resistor RL, the resistor R2 and the resistor R5 form a first loop L1 connected between the bias voltage terminal VCC and the ground terminal GND; the resistor R3, the resistor R4, the resistor RL2 corresponding to the speaker, and the resistor R6 form a second loop L2 connected between the bias voltage terminal VCC and the ground terminal GND.
基于所示第一回路L1,可以从第一节点P1处外接一条检测线来检测电阻R5所分得的电压;基于所示第二回路L2,可以从第二节点P2处再外接一条检测线来检测电阻R4、喇叭对应的电阻RL2和电阻R6共同所分得的电压,进而通过比较第一节点P1和第二节点P2处测得的电压大小,可以检测出喇叭200是否故障。Based on the first circuit L1 shown, a detection line can be connected externally from the first node P1 to detect the voltage divided by the resistor R5; based on the second circuit L2 shown, another detection line can be connected externally from the second node P2 to detect the voltage divided by the resistor R4, the resistor RL2 corresponding to the speaker, and the resistor R6, and then by comparing the voltages measured at the first node P1 and the second node P2, it can be detected whether the speaker 200 is faulty.
示例性的,当偏置电压端VCC上施加10V电压时,从第一节点P1获取的电压值可以根据公式(2)得到,从第二节点P2获取的电压值可以根据公式(3)得到。For example, when a voltage of 10 V is applied to the bias voltage terminal VCC, the voltage value obtained from the first node P1 can be obtained according to formula (2), and the voltage value obtained from the second node P2 can be obtained according to formula (3).
其中,公式(2)中,VDET1表示从第一节点P1获取的电压值,公式(3)中,VDET2表示从第一节点P1获取的电压值。In formula (2), VDET1 represents the voltage value obtained from the first node P1, and in formula (3), VDET2 represents the voltage value obtained from the first node P1.
根据公式(2)和公式(3)可知,若喇叭200连接正常,则电压值VDET1和电压值VDET2应为0V~10V之间的中间电平,而且,电压值VDET1应大于电压值VDET2;若喇叭200两端发生线间短路,喇叭阻值RL2将变小,由此,相对于正常时,发生线间短路时对应的电压值VDET1将不变,但电压值VDET2将变小,并且电压值VDET1与电压值VDET2的差值将变大;若喇叭200两端开路,则第二回路L2无电流,由此,电压值VDET2将等于电压值VDET1。因此,通过比较第一节点P1和第二节点P2处的电压,就可以检测出喇叭对应的状态是正常还是发生了线间短路或开路故障。According to formula (2) and formula (3), if the speaker 200 is connected normally, the voltage value VDET1 and the voltage value VDET2 should be an intermediate level between 0V and 10V, and the voltage value VDET1 should be greater than the voltage value VDET2; if a short circuit occurs between the two ends of the speaker 200, the speaker resistance RL2 will decrease, and thus, compared with the normal state, the voltage value VDET1 corresponding to the short circuit will remain unchanged, but the voltage value VDET2 will decrease, and the difference between the voltage value VDET1 and the voltage value VDET2 will increase; if the two ends of the speaker 200 are open, there is no current in the second circuit L2, and thus, the voltage value VDET2 will be equal to the voltage value VDET1. Therefore, by comparing the voltages at the first node P1 and the second node P2, it is possible to detect whether the corresponding state of the speaker is normal or a short circuit or open circuit fault occurs.
上述图3和图4所示的两种现有的检测系统2都是通过在喇叭200的正极端口串联电阻并上拉到偏置电压端上,负极端口下拉到接地端,然后,将喇叭200作为一个负载阻抗,利用电阻分压原理来检测喇叭200是否故障。虽然图3和图4所示的检测电路20可以实现对喇叭200两端的连接状态的检测,但是都是基于音频模块不工作的情况下所进行的。如果音频模块120在工作,音频模块120中的音频功率放大器122的音频正差分输出端SPKP和音频负差分输出端SPKN输出的直流信号以及交流信号将会对检测造成干扰。按照图3和图4所示的检测电路20所获取到的检测电压,其实是无法得知是音频功率放大器122输出的电压还是喇叭200作为负载阻抗分压时所对应的电压,从而导致上述图3和图4所示的检测电路20无法在音频模块120工作时用于对喇叭200进行故障检测。The two existing detection systems 2 shown in FIG. 3 and FIG. 4 are both connected in series with a resistor at the positive port of the speaker 200 and pulled up to the bias voltage terminal, and the negative port is pulled down to the ground terminal, and then the speaker 200 is used as a load impedance, and the principle of resistance voltage division is used to detect whether the speaker 200 is faulty. Although the detection circuit 20 shown in FIG. 3 and FIG. 4 can detect the connection status of the two ends of the speaker 200, it is based on the case where the audio module is not working. If the audio module 120 is working, the DC signal and AC signal output by the audio positive differential output terminal SPKP and the audio negative differential output terminal SPKN of the audio power amplifier 122 in the audio module 120 will interfere with the detection. According to the detection voltage obtained by the detection circuit 20 shown in FIG. 3 and FIG. 4, it is actually impossible to know whether it is the voltage output by the audio power amplifier 122 or the voltage corresponding to the speaker 200 when the load impedance is divided, which causes the detection circuit 20 shown in FIG. 3 and FIG. 4 to be unable to be used for fault detection of the speaker 200 when the audio module 120 is working.
图5示出了另一种现有检测系统2与喇叭200的连接示意图。如图5所示,该检测系统2中的检测电路20中的一部分电路与图3所示的检测电路20的结构相同,在此不再赘述。但是在检测时,是利用音频功率放大器122对喇叭对应的状态是否为线间短路、开路进行判断,然后,音频功率放大器122将检测结果从端口(例如图5中所示的端口D)输出,这种方式完全依赖于音频功率放大器122内部的诊断功能。FIG5 shows a schematic diagram of another existing detection system 2 and a speaker 200. As shown in FIG5, a part of the detection circuit 20 in the detection system 2 has the same structure as the detection circuit 20 shown in FIG3, and will not be described in detail here. However, during the detection, the audio power amplifier 122 is used to determine whether the state corresponding to the speaker is a short circuit or an open circuit between lines. Then, the audio power amplifier 122 outputs the detection result from a port (such as port D shown in FIG5). This method completely relies on the internal diagnostic function of the audio power amplifier 122.
此外,音频功率放大器122与喇叭200连接的两线还与电压采集电路连接,电压采集电路与电压比较电路连接。电压采集电路用于采集喇叭200的正极端口和负极端口分别对应的电压,电压比较电路用于比较该两个电压,从而可以在施加偏置电压时,根据电压比较电路的输出结果,来检测喇叭两端的连接状态是否出现短路到电源或短路到地的故障。虽然上述图5相对于图3和图4,可以多检测出喇叭是否短路到电源或短路到地两种故障,但是,也只适用于音频模块120不工作的情况,无法在音频模块120工作时对喇叭故障进行检测。In addition, the two wires connecting the audio power amplifier 122 and the speaker 200 are also connected to the voltage collection circuit, and the voltage collection circuit is connected to the voltage comparison circuit. The voltage collection circuit is used to collect the voltages corresponding to the positive port and the negative port of the speaker 200, respectively, and the voltage comparison circuit is used to compare the two voltages, so that when the bias voltage is applied, according to the output result of the voltage comparison circuit, it can be detected whether the connection state of the two ends of the speaker is short-circuited to the power supply or short-circuited to the ground. Although the above-mentioned Figure 5 can detect two more faults of whether the speaker is short-circuited to the power supply or short-circuited to the ground relative to Figures 3 and 4, it is only applicable to the case where the audio module 120 is not working, and cannot detect the speaker fault when the audio module 120 is working.
因此,亟待一种可以在音频模块工作时,能对喇叭进行检测的检测系统。Therefore, there is an urgent need for a detection system that can detect the speaker when the audio module is working.
有鉴于此,本申请提供了一种检测系统,通过检测系统中的检测电路采集音频功率放大器的音频正差分输出端和喇叭的正极端口之间传输的第一电流,以及在音频负差分输出端和喇叭的负极端口之间传输的第二电流,然后,根据第一电流和第二电流向处理器提供第一信息,以使得处理器可以判断喇叭电路是否出现第一故障。在该检测系统中,音频模块工作时,音频功率放大器输出的直流信号和交流信号并不会干扰电流的采集,从而该电路可以实现在音频模块工作时,对喇叭进行故障检测。In view of this, the present application provides a detection system, which collects a first current transmitted between the audio positive differential output terminal of the audio power amplifier and the positive port of the speaker, and a second current transmitted between the audio negative differential output terminal and the negative port of the speaker through a detection circuit in the detection system, and then provides first information to a processor based on the first current and the second current, so that the processor can determine whether a first fault occurs in the speaker circuit. In the detection system, when the audio module is working, the DC signal and AC signal output by the audio power amplifier will not interfere with the current collection, so that the circuit can realize fault detection of the speaker when the audio module is working.
下面结合图6至图14对本申请实施例提供的检测系统2进行详细说明。The detection system 2 provided in the embodiment of the present application is described in detail below in conjunction with Figures 6 to 14.
图6示出了本申请实施例提供的一种检测系统2与喇叭200的连接示意图。该检测系统2与喇叭200连接。Fig. 6 shows a schematic diagram of the connection between a detection system 2 and a speaker 200 provided in an embodiment of the present application. The detection system 2 is connected to the speaker 200.
如图6所示,该检测系统2包括连接的处理器110和音频模块120,以及与处理器110和音频模块120均连接的检测电路20,音频模块120包括具有音频正差分输出端SPKP和音频负差分输出端SPKN的音频功率放大器122,喇叭200具有正极端口和负极端口,音频正差分输出端SPKP与喇叭200的正极端口电连接,音频负差分输出端SPKN与喇叭200的负极端口电连接,处理器110用于生成音频信号并通过音频模块120提供给喇叭200,喇叭200用于将音频信号转换为声音信号并播放。As shown in Figure 6, the detection system 2 includes a connected processor 110 and an audio module 120, and a detection circuit 20 connected to both the processor 110 and the audio module 120. The audio module 120 includes an audio power amplifier 122 having an audio positive differential output terminal SPKP and an audio negative differential output terminal SPKN. The speaker 200 has a positive port and a negative port. The audio positive differential output terminal SPKP is electrically connected to the positive port of the speaker 200, and the audio negative differential output terminal SPKN is electrically connected to the negative port of the speaker 200. The processor 110 is used to generate an audio signal and provide it to the speaker 200 through the audio module 120. The speaker 200 is used to convert the audio signal into a sound signal and play it.
在本申请实施例中,音频模块120一般还可以包括音频解码器121,音频解码器121的输入端与处理器110电连接,输出端与音频功率放大器122电连接。此时,处理器110用于生成音频信号并提供给音频解码器121进行解码,然后再经音频功率放大器122放大后传输给喇叭200。In the embodiment of the present application, the audio module 120 may generally further include an audio decoder 121, the input end of the audio decoder 121 is electrically connected to the processor 110, and the output end is electrically connected to the audio power amplifier 122. At this time, the processor 110 is used to generate an audio signal and provide it to the audio decoder 121 for decoding, and then amplified by the audio power amplifier 122 and transmitted to the speaker 200.
检测电路20用于采集音频正差分输出端SPKP与正极端口之间传输的第一电流,以及用于采集负极端口与音频负差分输出端之间传输的第二电流。The detection circuit 20 is used to collect a first current transmitted between the audio positive differential output terminal SPKP and the positive electrode port, and is used to collect a second current transmitted between the negative electrode port and the audio negative differential output terminal.
检测电路20还用于根据第一电流和第二电流向处理器110提供第一信息,第一信息用于处理器110确定喇叭电路10是否出现第一故障。The detection circuit 20 is further used to provide first information to the processor 110 according to the first current and the second current. The first information is used by the processor 110 to determine whether a first fault occurs in the speaker circuit 10 .
可选地,在本申请实施例中,第一故障包括喇叭短路到电源或喇叭短路到地。Optionally, in an embodiment of the present application, the first fault includes the speaker being short-circuited to a power source or the speaker being short-circuited to ground.
本申请实施例提供的检测系统,通过检测系统中的检测电路采集音频功率放大器的音频正差分输出端和喇叭的正极端口之间传输的第一电流,以及在音频负差分输出端和喇叭的负极端口之间传输的第二电流,然后,根据第一电流和第二电流向处理器提供第一信息,以使得处理器可以判断喇叭电路是否出现第一故障。在该检测系统中,音频模块工作时,音频功率放大器输出的直流信号和交流信号并不会干扰电流的采集,从而该电路可以实现在音频模块工作时,对喇叭进行故障检测。The detection system provided in the embodiment of the present application collects the first current transmitted between the audio positive differential output terminal of the audio power amplifier and the positive port of the speaker, and the second current transmitted between the audio negative differential output terminal and the negative port of the speaker through the detection circuit in the detection system, and then provides the first information to the processor according to the first current and the second current, so that the processor can determine whether the speaker circuit has a first fault. In the detection system, when the audio module is working, the DC signal and AC signal output by the audio power amplifier will not interfere with the current collection, so that the circuit can realize fault detection of the speaker when the audio module is working.
可选地,在本申请实施例中,图6中的检测电路20可以包括:Optionally, in the embodiment of the present application, the detection circuit 20 in FIG. 6 may include:
串联于音频正差分输出端SPKP和正极端口之间的第一电流采集电路210、以及串联于音频负差分输出端SPKN和负极端口之间的第二电流采集电路220。A first current collection circuit 210 is connected in series between the audio positive differential output terminal SPKP and the positive electrode port, and a second current collection circuit 220 is connected in series between the audio negative differential output terminal SPKN and the negative electrode port.
第一电流采集电路210用于采集音频正差分输出端SPKP与正极端口传输的第一电流并提供给处理器110。第二电流采集电路220用于采集负极端口与音频负差分输出端SPKN之间传输的第二电流并提供给处理器110。The first current acquisition circuit 210 is used to acquire the first current transmitted between the audio positive differential output terminal SPKP and the positive terminal and provide it to the processor 110. The second current acquisition circuit 220 is used to acquire the second current transmitted between the negative terminal and the audio negative differential output terminal SPKN and provide it to the processor 110.
应理解,此时,第一信息包括第一电流和第二电流,检测电路20将第一电流和第二电流提供给处理器110后,处理器110根据第一电流、第二电流就可以确定喇叭电路10是否出现第一故障。It should be understood that at this time, the first information includes the first current and the second current. After the detection circuit 20 provides the first current and the second current to the processor 110, the processor 110 can determine whether the speaker circuit 10 has a first fault based on the first current and the second current.
应理解,结合图6,当音频模块120工作时,音频功率放大器122的音频正差分输出端SPKP、喇叭200、音频负差分输出端SPKN之间形成的电路回路将导通,喇叭200可以当作串联于该电路回路中的一个负载阻抗RL。由此,根据电流处处相等的原理可知,音频正差分输出端SPKP与正极端口之间传输的第一电流与负极端口至音频负差分输出端SPKN之间传输的第二电流方向应相反,电流值应相等,并且均不为零,同时也等于经过喇叭200的电流值。It should be understood that, in conjunction with FIG6 , when the audio module 120 is working, the circuit loop formed between the audio positive differential output terminal SPKP of the audio power amplifier 122, the speaker 200, and the audio negative differential output terminal SPKN will be turned on, and the speaker 200 can be regarded as a load impedance RL connected in series in the circuit loop. Therefore, according to the principle that current is equal everywhere, the first current transmitted between the audio positive differential output terminal SPKP and the positive electrode port and the second current transmitted between the negative electrode port and the audio negative differential output terminal SPKN should be opposite in direction, and the current values should be equal and non-zero, and also equal to the current value passing through the speaker 200.
作为一种示例,若喇叭200短路到地,则会形成喇叭200连接到接地端GND的电路回路,形成电流分支,导致第一电流的大小大于第二电流。As an example, if the speaker 200 is short-circuited to the ground, a circuit loop will be formed in which the speaker 200 is connected to the ground terminal GND, forming a current branch, resulting in the magnitude of the first current being greater than the second current.
作为另一种示例,若喇叭200短路到电源,则会形成电源连接到喇叭200的电路回路,增加电流,导致第二电流的大小大于第一电流。As another example, if the speaker 200 is short-circuited to the power supply, a circuit loop will be formed in which the power supply is connected to the speaker 200, increasing the current, causing the magnitude of the second current to be greater than the first current.
因此,处理器110可以将第一电流采集电路210采集到的第一电流与第二电流采集电路220采集到的第二电流进行比较,从而在音频模块120工作时,可以根据第一电流和第二电流的大小来确定出喇叭200是否出现了短路到地或短路到电源的故障。Therefore, the processor 110 can compare the first current collected by the first current acquisition circuit 210 with the second current collected by the second current acquisition circuit 220, so that when the audio module 120 is working, it can determine whether the speaker 200 has a short circuit to the ground or a short circuit to the power supply based on the magnitude of the first current and the second current.
可选地,图7示出了本申请实施例提供的另一种检测系统2与喇叭200的连接示意图。如图7所示,在图6的基础上,该检测电路20还包括:具有三个连接端口的电流比较电路230。其中,如图7所示,三个连接端口分别为m1、m2和m3。Optionally, FIG7 shows a schematic diagram of another connection between a detection system 2 and a speaker 200 provided in an embodiment of the present application. As shown in FIG7, based on FIG6, the detection circuit 20 further includes: a current comparison circuit 230 having three connection ports. As shown in FIG7, the three connection ports are m1, m2 and m3 respectively.
电流比较电路230的三个连接端口分别与第一电流采集电路210、第二电流采集电路220以及处理器110电连接。The three connection ports of the current comparison circuit 230 are electrically connected to the first current acquisition circuit 210 , the second current acquisition circuit 220 , and the processor 110 , respectively.
电流比较电路230用于确定第一电流与第二电流之间的电流差值并提供给处理器110,处理器110用于根据第一电流和第二电流之间的电流差值来确定喇叭电路10是否出现第一故障。The current comparison circuit 230 is used to determine the current difference between the first current and the second current and provide the current difference to the processor 110. The processor 110 is used to determine whether the speaker circuit 10 has a first fault according to the current difference between the first current and the second current.
应理解,此时,第一信息为第一电流和第二电流之间的电流差值。It should be understood that, at this time, the first information is the current difference between the first current and the second current.
应理解,结合图7,当音频模块120工作时,若第一电流与第二电流方向相反,电流差值为零,则说明第一电流的大小等于第二电流且不为零,此时,可以判断喇叭电路10没有发生喇叭短路到地和喇叭短路到电源的故障。It should be understood that, in combination with Figure 7, when the audio module 120 is working, if the first current is in opposite directions to the second current and the current difference is zero, it means that the magnitude of the first current is equal to the second current and is not zero. At this time, it can be determined that the speaker circuit 10 does not have a fault of the speaker short-circuited to the ground or the speaker short-circuited to the power supply.
若第一电流与第二电流方向相反,电流差值为正值,第一电流的大小大于第二电流,则说明电路中电流被分流才可能导致第一电流的大小大于第二电流,由此,处理器110可以判断喇叭发生了喇叭短路到地的故障;若第一电流与第二电流方向相反,电流差值为负值,第一电流的大小小于第二电流,则说明电路中增加了电流所以才导致第一电流的大小小于第二电流,由此,处理器110可以判断喇叭发生了喇叭短路到电源的故障。If the first current and the second current are in opposite directions, the current difference is a positive value, and the magnitude of the first current is greater than the second current, it means that the current in the circuit is shunted, which may cause the magnitude of the first current to be greater than the second current. Therefore, the processor 110 can determine that the speaker has a short-circuit to ground fault; if the first current and the second current are in opposite directions, the current difference is a negative value, and the magnitude of the first current is less than the second current, it means that the current is increased in the circuit, which causes the magnitude of the first current to be less than the second current. Therefore, the processor 110 can determine that the speaker has a short-circuit to the power supply fault.
在图6的基础上,图7中增加的电流比较电路230可以用于计算第一电流和第二电流之间的电流差值,此时,处理器110仅用于根据该计算得到的电流差值进行故障判断,减少了处理器110的计算量,提高了处理效率。Based on Figure 6, the current comparison circuit 230 added in Figure 7 can be used to calculate the current difference between the first current and the second current. At this time, the processor 110 is only used to perform fault judgment based on the calculated current difference, which reduces the calculation amount of the processor 110 and improves processing efficiency.
在本申请实施例中,还可以在处理器110中预设不同故障所对应的电流差值阈值范围,从而在电流比较电路230确定出电流差值后,处理器110可以根据电流差值所匹配的阈值范围确定出该电流差值所对应的故障,从而提高诊断效率。其中,电流差值阈值范围可以根据需要进行设定和修改,本申请对此不进行任何限制。In the embodiment of the present application, the current difference threshold range corresponding to different faults can also be preset in the processor 110, so that after the current comparison circuit 230 determines the current difference, the processor 110 can determine the fault corresponding to the current difference according to the threshold range matched by the current difference, thereby improving the diagnostic efficiency. Among them, the current difference threshold range can be set and modified as needed, and the present application does not impose any restrictions on this.
可选地,图8示出了本申请实施例提供的另一种检测系统2与喇叭200的连接示意图。如图8所示,在图7的基础上,该检测电路20还包括:喇叭200的正极端口和负极端口连接的电压采集电路240。Optionally, Fig. 8 shows a schematic diagram of the connection between another detection system 2 provided in an embodiment of the present application and a speaker 200. As shown in Fig. 8, based on Fig. 7, the detection circuit 20 further includes: a voltage collection circuit 240 connected to the positive and negative ports of the speaker 200.
电压采集电路240用于采集喇叭200的正极端口和负极端口之间的电压差值,处理器110用于根据第一电流、第二电流和电压差值来确定喇叭电路是否出现第一故障。The voltage collection circuit 240 is used to collect the voltage difference between the positive port and the negative port of the speaker 200, and the processor 110 is used to determine whether a first fault occurs in the speaker circuit according to the first current, the second current and the voltage difference.
应理解,此时,第一信息包括第一电流、第二电流和电压差值。It should be understood that, at this time, the first information includes the first current, the second current and the voltage difference.
可选地,在本申请实施例中,第一故障还可以包括喇叭开路或喇叭线间短路。Optionally, in the embodiment of the present application, the first fault may also include an open circuit of the speaker or a short circuit between speaker wires.
应理解,由于在音频功率放大器122的音频正差分输出端SPKP和喇叭200的正极端口之间串联有第一电流采集电路210,在音频负差分输出端SPKN和喇叭200的负极端口之间串联有第二电流采集电路220,使得第一电流采集电路210、喇叭200和第二采集电路220形成了串联的电路回路,对音频功率放大器122的音频正差分输出端SPKP和音频负差分输出端SPKN之间的电压进行了分压。此时,在喇叭200的正极端口和负极端口上连接的电压采集电路240所采集到的电压并不是音频功率放大器122输出的电压,而是喇叭200当作一负载阻抗时所分得的电压。因此,在音频模块120工作时,该电压采集电路240可以准确采集到喇叭200当作一负载阻抗时所分得的电压,而不受音频功率放大器122的输出影响。It should be understood that, since the first current collection circuit 210 is connected in series between the audio positive differential output terminal SPKP of the audio power amplifier 122 and the positive port of the speaker 200, and the second current collection circuit 220 is connected in series between the audio negative differential output terminal SPKN and the negative port of the speaker 200, the first current collection circuit 210, the speaker 200 and the second collection circuit 220 form a series circuit loop, and the voltage between the audio positive differential output terminal SPKP and the audio negative differential output terminal SPKN of the audio power amplifier 122 is divided. At this time, the voltage collected by the voltage collection circuit 240 connected to the positive port and the negative port of the speaker 200 is not the voltage output by the audio power amplifier 122, but the voltage divided when the speaker 200 is used as a load impedance. Therefore, when the audio module 120 is working, the voltage collection circuit 240 can accurately collect the voltage divided when the speaker 200 is used as a load impedance, without being affected by the output of the audio power amplifier 122.
结合图8,在音频模块120工作时,若电压采集电路240采集到的电压差值接近于零,则说明喇叭200发生了短路导致电压差值特别小,由此,处理器110可以判断喇叭电路10发生了喇叭线间短路的故障;若电压差值特别大,甚至接近于音频模块120输出的电压差值,则说明喇叭发生了开路,由此,处理器110可以判断发生了喇叭开路故障;若电压差值大于零而小于音频模块120输出的电压,则说明喇叭正常工作,由此,处理器110可以判断喇叭正常。8 , when the audio module 120 is working, if the voltage difference value collected by the voltage collection circuit 240 is close to zero, it means that a short circuit has occurred in the speaker 200, resulting in a particularly small voltage difference value. Thus, the processor 110 can determine that a short circuit has occurred in the speaker circuit 10; if the voltage difference value is particularly large, or even close to the voltage difference value output by the audio module 120, it means that an open circuit has occurred in the speaker. Thus, the processor 110 can determine that an open circuit has occurred in the speaker. If the voltage difference value is greater than zero but less than the voltage output by the audio module 120, it means that the speaker is working normally. Thus, the processor 110 can determine that the speaker is normal.
由于喇叭200当作一负载阻抗时,阻值通常较小,单凭电压差值进行判断可能会无法区分出喇叭200正常工作和喇叭线间短路这两种状态,因此,为了检测的更准确,可以将图8所确定的电压差值和图6或图7中所确定的电流差值结合起来进行故障判断。Since the speaker 200 has a relatively small resistance when used as a load impedance, the voltage difference alone may not be able to distinguish between the normal operation of the speaker 200 and the short circuit between the speaker wires. Therefore, in order to detect more accurately, the voltage difference determined in FIG. 8 and the current difference determined in FIG. 6 or FIG. 7 may be combined for fault judgment.
例如,假设喇叭200发生线间短路,则喇叭200可当作一阻值小于第一阈值的电阻;假设喇叭200发生开路,可认为电路依然导通,但将喇叭200当作一阻值大于第二阈值的电阻;假设喇叭200正常工作,则喇叭200可当作一阻值大于第一阈值,但小于第二阈值的电阻。For example, assuming that a short circuit occurs between the lines of speaker 200, speaker 200 can be regarded as a resistor with a resistance value less than a first threshold value; assuming that an open circuit occurs in speaker 200, it can be considered that the circuit is still conductive, but speaker 200 can be regarded as a resistor with a resistance value greater than a second threshold value; assuming that speaker 200 works normally, speaker 200 can be regarded as a resistor with a resistance value greater than the first threshold value but less than the second threshold value.
结合图8,当音频模块120工作时,若第一电流采集电路210采集到的第一电流与第二电流采集电路220采集到的第二电流方向相反,大小相等,此时,也应等于经过喇叭200的电流值,因此,处理器110可以根据测量的喇叭200的正极端口和负极端口之间的电压差值,通过计算电压差值与第一电流的比值,或者计算电压差值与第二电流的比值来当作电压差值与经过喇叭200的电流值的比值,从而获取到喇叭200所对应喇叭阻值RL,然后,再根据计算出的喇叭阻值RL的大小来判断是否出现第一故障。In conjunction with Figure 8, when the audio module 120 is working, if the first current collected by the first current acquisition circuit 210 and the second current collected by the second current acquisition circuit 220 are opposite in direction and equal in magnitude, then, they should also be equal to the current value passing through the speaker 200. Therefore, the processor 110 can calculate the ratio of the voltage difference to the first current based on the measured voltage difference between the positive port and the negative port of the speaker 200, or calculate the ratio of the voltage difference to the second current as the ratio of the voltage difference to the current value passing through the speaker 200, thereby obtaining the speaker resistance RL corresponding to the speaker 200, and then, determine whether the first fault occurs based on the size of the calculated speaker resistance RL.
由此,若该计算得到的喇叭阻值RL大于第二阈值,则说明发生了喇叭开路故障;若该计算得到的喇叭阻值RL小于第一阈值,则说明发生了喇叭线间短路故障;若计算得到的喇叭阻值RL大于第一阈值而小于第二阈值,则说明喇叭正常工作。Therefore, if the calculated speaker resistance RL is greater than the second threshold, it means that an open circuit fault has occurred in the speaker; if the calculated speaker resistance RL is less than the first threshold, it means that a short circuit fault has occurred between the speaker wires; if the calculated speaker resistance RL is greater than the first threshold but less than the second threshold, it means that the speaker is working normally.
在本申请实施例中,第一阈值和第二阈值的大小可以根据需要进行设置和修改,本申请实施例对此不进行任何限制。In the embodiment of the present application, the sizes of the first threshold and the second threshold can be set and modified as needed, and the embodiment of the present application does not impose any restrictions on this.
结合上述例子,处理器110根据第一电流、第二电流的电流差值可以判断出是否出现喇叭短路到地、喇叭短路到电源的故障,再结合电压差值则可以准确判断是否出现喇叭线间短路或喇叭开路故障。In combination with the above example, the processor 110 can determine whether a speaker short-circuit to ground or a speaker short-circuit to power occurs based on the current difference between the first current and the second current, and can then accurately determine whether a speaker wire short-circuit or speaker open circuit occurs based on the voltage difference.
图6至图8的检测电路20可以解决在音频模块120正常工作时,检测喇叭所可能产生的各种故障问题,但是,当音频模块120非正常工作时,例如无音频信号输入或无音频信号输出时,则无法按照判断喇叭200是否出现第一故障,为此,本申请实施例又提供了一种检测电路20来解决此问题。The detection circuit 20 of Figures 6 to 8 can solve various fault problems that may occur in the speaker when the audio module 120 is working normally. However, when the audio module 120 is not working normally, for example, there is no audio signal input or no audio signal output, it is impossible to determine whether the speaker 200 has a first fault. For this reason, the embodiment of the present application provides a detection circuit 20 to solve this problem.
图9示出了本申请实施例提供的又一种检测系统2与喇叭200的结构示意图。如图9所示,处理器110除了生成音频信号,还用于生成亚音频信号并通过音频模块120输出至喇叭200,亚音频信号的频率与音频信号的频率不同。Fig. 9 shows a schematic diagram of the structure of another detection system 2 and a speaker 200 provided in an embodiment of the present application. As shown in Fig. 9, in addition to generating an audio signal, the processor 110 is also used to generate a sub-audio signal and output it to the speaker 200 through the audio module 120. The frequency of the sub-audio signal is different from the frequency of the audio signal.
由此,在喇叭200无声音播放时,处理器110可以根据亚音频信号传输时,第一电流采集电路210采集到的第一电流、第二电流采集电路220采集到的第二电流以及电压采集电路240采集到的电压差值来确定喇叭是否出现第一故障。Therefore, when the speaker 200 plays no sound, the processor 110 can determine whether the speaker has a first fault based on the first current collected by the first current acquisition circuit 210, the second current collected by the second current acquisition circuit 220, and the voltage difference collected by the voltage acquisition circuit 240 when the sub-audio signal is transmitted.
应理解,音频信号的频率一般在200Hz至4.3kHz之间,当处理器110生成音频信号并通过音频模块120传输给喇叭200时,喇叭200可以转换为人耳可以听见的声音,而亚音频信号的频率一般小于10Hz或者大于20kHz,当处理器110将生成的亚音频信号通过音频模块120传输给喇叭200时,人耳不可察觉。It should be understood that the frequency of the audio signal is generally between 200 Hz and 4.3 kHz. When the processor 110 generates an audio signal and transmits it to the speaker 200 through the audio module 120, the speaker 200 can convert it into a sound audible to the human ear. The frequency of the sub-audio signal is generally less than 10 Hz or greater than 20 kHz. When the processor 110 transmits the generated sub-audio signal to the speaker 200 through the audio module 120, it is imperceptible to the human ear.
基于此原理,本申请实施例中的处理器110在生成音频信号的同时可以生成亚音频信号,或者在无声音播放时使处理器110生成亚音频信号,这样,在音频模块120正常工作时,喇叭200将音频信号转换成的声音信号进行播放,亚音频信号不会造成干扰;当喇叭200无声音播放时,此时音频模块120无音频信号输入或无音频信号输出,但亚音频信号依然可正常传输,由此,可以通过检测亚音频信号传输时,第一电流采集电路210所采集到的第一电流、第二电流采集电路220所采集到的第二电流,以及电压采集模块240采集到的电压差值来判断喇叭是否出现第一故障。Based on this principle, the processor 110 in the embodiment of the present application can generate a sub-audio signal while generating an audio signal, or enable the processor 110 to generate a sub-audio signal when there is no sound playing. In this way, when the audio module 120 is working normally, the speaker 200 plays the sound signal converted from the audio signal, and the sub-audio signal will not cause interference; when the speaker 200 is not playing sound, the audio module 120 has no audio signal input or no audio signal output, but the sub-audio signal can still be transmitted normally. Therefore, it is possible to determine whether the speaker has a first fault by detecting the first current collected by the first current acquisition circuit 210, the second current collected by the second current acquisition circuit 220, and the voltage difference collected by the voltage acquisition module 240 when the sub-audio signal is transmitted.
可选地,图10示出了本申请实施例提供的又一种检测系统2与喇叭200的连接示意图。如图10所示,在图8或图9的基础上,检测电路20还可以包括:偏置电路250,偏置电路250分别与音频正差分输出端SPKP、音频负差分输出端SPKN电连接。Optionally, Figure 10 shows a connection diagram of another detection system 2 provided in an embodiment of the present application and a speaker 200. As shown in Figure 10, based on Figure 8 or Figure 9, the detection circuit 20 may further include: a bias circuit 250, and the bias circuit 250 is electrically connected to the audio positive differential output terminal SPKP and the audio negative differential output terminal SPKN respectively.
结合图10,在音频模块120未工作时,偏置电路250用于给第一电流采集电路210、喇叭200及第二电流采集电路220所在的电路回路施加偏置电压,处理器110用于在施加偏置电压时,根据第一电流采集电路210采集的第一电流、第二电流采集电路220采集的第二电流以及电压采集电路240采集的电压差值来确定喇叭200是否出现第一故障。In conjunction with Figure 10, when the audio module 120 is not working, the bias circuit 250 is used to apply a bias voltage to the circuit loop where the first current acquisition circuit 210, the speaker 200 and the second current acquisition circuit 220 are located, and the processor 110 is used to determine whether the speaker 200 has a first fault based on the first current collected by the first current acquisition circuit 210, the second current collected by the second current acquisition circuit 220 and the voltage difference collected by the voltage acquisition circuit 240 when applying the bias voltage.
应理解,若音频模块120首次上电,或者音频模块120出现故障保护、不工作时,偏置电路250上施加偏置电压后,可以使得音频功率放大器122的音频正差分输出端SPKP和音频负差分输出端SPKN之间的第一电流采集电路210、喇叭200及第二电流采集电路220所形成的电路回路导通,从而可根据第一电流采集电路210采集的第一电流、第二电流采集电路220采集的第二电流以及电压采集电路240采集的电压差值来确定喇叭200是否出现第一故障。此处,确定是否出现第一故障的过程可以参考上述对图6至图9的描述,为了简洁,在此不再赘述。It should be understood that if the audio module 120 is powered on for the first time, or the audio module 120 is in fault protection and does not work, after the bias voltage is applied to the bias circuit 250, the circuit loop formed by the first current acquisition circuit 210, the speaker 200 and the second current acquisition circuit 220 between the audio positive differential output terminal SPKP and the audio negative differential output terminal SPKN of the audio power amplifier 122 can be turned on, so that it can be determined whether the speaker 200 has a first fault based on the first current collected by the first current acquisition circuit 210, the second current collected by the second current acquisition circuit 220 and the voltage difference collected by the voltage acquisition circuit 240. Here, the process of determining whether the first fault has occurred can refer to the above description of Figures 6 to 9, and for the sake of brevity, it will not be repeated here.
上述结合图6至图10对检测系统2的整体结构进行了说明,下面将结合图11至图14对检测电路20中的每部分结构进行详细的说明。The overall structure of the detection system 2 is described above in conjunction with FIG. 6 to FIG. 10 . The following will describe in detail the structure of each part of the detection circuit 20 in conjunction with FIG. 11 to FIG. 14 .
可选地,图11示出了本申请实施例提供的又一种检测系统2与喇叭200的连接示意图。如图11所示,检测电路20中的第一电流采集电路210包括:第一电阻R11和第一差分运算放大器OP1。Optionally, Fig. 11 shows a schematic diagram of connection between another detection system 2 provided in an embodiment of the present application and a speaker 200. As shown in Fig. 11, the first current acquisition circuit 210 in the detection circuit 20 includes: a first resistor R11 and a first differential operational amplifier OP1.
第一电阻R11串联于音频正差分输出端SPKP与正极端口之间,第一差分运算放大器OP1的两个输入端分别与第一电阻R11的两端电连接;第一差分运算放大器OP1用于确定第一电阻R11两端的第一电压差值并提供给处理器110,处理器110用于根据第一电压差值和第一电阻R11确定第一电流I_SPKP。The first resistor R11 is connected in series between the audio positive differential output terminal SPKP and the positive port, and the two input terminals of the first differential operational amplifier OP1 are electrically connected to the two ends of the first resistor R11 respectively; the first differential operational amplifier OP1 is used to determine the first voltage difference between the two ends of the first resistor R11 and provide it to the processor 110, and the processor 110 is used to determine the first current I_SPKP according to the first voltage difference and the first resistor R11.
应理解,第一差分运算放大器OP1所确定的第一电阻R11两端的第一电压差值即为第一电阻R11的分压,根据欧姆定律计算第一电压差值与第一电阻R11的比值,即为经过第一电阻R11的电流值,也就是音频正差分输出端SPKP与喇叭200的正极端口之间传输的第一电流I_SPKP。It should be understood that the first voltage difference across the first resistor R11 determined by the first differential operational amplifier OP1 is the voltage divider of the first resistor R11. The ratio of the first voltage difference to the first resistor R11 calculated according to Ohm's law is the current value passing through the first resistor R11, that is, the first current I_SPKP transmitted between the audio positive differential output terminal SPKP and the positive port of the speaker 200.
下面对图11中的第一电流采集电路210进行详细说明。图12示出了一种第一电流采集电路210的结构示意图。如图12所示,在图11的基础上,第一电流采集电路210还可以包括:电阻R21、电阻R22、电阻R23、电阻R24、电容C1、电容C2。该电阻R21、电阻R22、电阻R23、电阻R24、电容C1、电容C2与第一差分运算放大器OP1所构成的电路记为第一运放电路211。The first current acquisition circuit 210 in FIG. 11 is described in detail below. FIG. 12 shows a schematic diagram of the structure of the first current acquisition circuit 210. As shown in FIG. 12, based on FIG. 11, the first current acquisition circuit 210 may further include: a resistor R21, a resistor R22, a resistor R23, a resistor R24, a capacitor C1, and a capacitor C2. The circuit formed by the resistor R21, the resistor R22, the resistor R23, the resistor R24, the capacitor C1, the capacitor C2 and the first differential operational amplifier OP1 is recorded as a first operational amplifier circuit 211.
其中,电阻R21串联在第一电阻R11的第一端a与第一差分运算放大器OP1的反相输入端(如图12中的所示的“-”)之间,电阻R22串联在第一电阻R11的第二端b与第一差分运算放大器OP1的同相输入端(如图12中的所示的“+”)之间,电阻R23串联在第一差分运算放大器OP1反相输入端与输出端之间,电容C1并联在电阻R23上,电阻R24串联在第一差分运算放大器OP1同相输入端与反馈电压端VREF之间,电容C2并联在电阻R24上。Among them, the resistor R21 is connected in series between the first end a of the first resistor R11 and the inverting input terminal of the first differential operational amplifier OP1 (as shown in "-" in Figure 12), the resistor R22 is connected in series between the second end b of the first resistor R11 and the non-inverting input terminal of the first differential operational amplifier OP1 (as shown in "+" in Figure 12), the resistor R23 is connected in series between the inverting input terminal and the output terminal of the first differential operational amplifier OP1, the capacitor C1 is connected in parallel to the resistor R23, the resistor R24 is connected in series between the non-inverting input terminal of the first differential operational amplifier OP1 and the feedback voltage terminal VREF, and the capacitor C2 is connected in parallel to the resistor R24.
下面对第一运放电路211的计算原理进行说明。The calculation principle of the first operational amplifier circuit 211 is described below.
在图12所示的例子中,由虚断(假设第一差分运算放大器内部开路)可知,通过电阻R21的电流等于通过电阻R23的电流,同理通过电阻R22的电流等于电阻R24的电流,由此,可以列出如下公式(3)和公式(4):In the example shown in FIG. 12 , it can be seen from the virtual disconnection (assuming that the first differential operational amplifier is open circuited) that the current passing through the resistor R21 is equal to the current passing through the resistor R23. Similarly, the current passing through the resistor R22 is equal to the current passing through the resistor R24. Therefore, the following formulas (3) and (4) can be listed:
公式(3)中,Va表示第一电阻R11的第一端a处的电压值,V-表示第一差分运算放大器OP1反相输入端的电压值,Vout表示第一差分运算放大器OP1输出端的电压值,公式(4)中,Vb表示第一电阻R11的第二端b处的电压值,V+表示第一差分运算放大器OP1同相输入端的电压值,Vref表示反馈电压端VREF的电压值。In formula (3), Va represents the voltage value at the first end a of the first resistor R11, V- represents the voltage value at the inverting input terminal of the first differential operational amplifier OP1, and Vout represents the voltage value at the output terminal of the first differential operational amplifier OP1. In formula (4), Vb represents the voltage value at the second end b of the first resistor R11, V+ represents the voltage value at the non-inverting input terminal of the first differential operational amplifier OP1, and Vref represents the voltage value of the feedback voltage terminal VREF.
如果设定R21=R23,化简公式(3)可得到公式(5);If R21=R23 is set, formula (3) can be simplified to obtain formula (5);
如果设定R22=R24,化简公式(4)可得到公式(6);If R22=R24 is set, formula (4) can be simplified to obtain formula (6);
而由虚短(假设第一差分运算放大器两个输入端之间短路)可得到公式(7);From the virtual short (assuming that the two input terminals of the first differential operational amplifier are short-circuited), we can get formula (7);
V+=V- (7)V+=V- (7)
结合公式(5)、公式(6)和公式(7)可得公式(8);Combining formula (5), formula (6) and formula (7), we can get formula (8);
Vout=Vb-Va+Vref (8)Vout=Vb-Va+Vref (8)
若假设Vref的值为0,则简化公式(8)可得公式(9);If we assume that the value of Vref is 0, we can simplify formula (8) to get formula (9);
Vout=Vb-Va (9)Vout=Vb-Va (9)
根据该公式(9)可知,第一运放电路211中第一差分运算放大器OP1输出端输出的电压值即为第一电阻R11两端的第一电压差值。According to formula (9), the voltage value outputted from the output terminal of the first differential operational amplifier OP1 in the first operational amplifier circuit 211 is the first voltage difference between the two ends of the first resistor R11.
应理解,上述仅仅是对第一运放电路211的举例说明,其它与第一运放电路211功能相同的结构在此不再一一赘述,但都应当属于本申请的保护范围。It should be understood that the above is merely an example of the first operational amplifier circuit 211, and other structures with the same functions as the first operational amplifier circuit 211 are not described here one by one, but should all fall within the protection scope of this application.
可选地,在本申请实施例中,如图11所示,检测电路20中的第二电流采集电路220包括:第二电阻R12和第二差分运算放大器OP2。其中,第二电阻R12与第一电阻R11相等。Optionally, in the embodiment of the present application, as shown in Fig. 11, the second current acquisition circuit 220 in the detection circuit 20 includes: a second resistor R12 and a second differential operational amplifier OP2. The second resistor R12 is equal to the first resistor R11.
第二电阻R12串联于音频负差分输出端SPKN和负极端口之间,第二差分运算放大器OP2的两个输入端分别与第二电阻R12的两端电连接;The second resistor R12 is connected in series between the audio negative differential output terminal SPKN and the negative electrode port, and the two input terminals of the second differential operational amplifier OP2 are electrically connected to the two ends of the second resistor R12 respectively;
第二差分运算放大器OP2用于确定第二电阻R12两端的第二电压差值并提供给处理器110,处理器110用于根据第二电压差值和第二电阻R12确定第二电流I_SPKN。The second differential operational amplifier OP2 is used to determine a second voltage difference across the second resistor R12 and provide the second voltage difference to the processor 110 . The processor 110 is used to determine a second current I_SPKN according to the second voltage difference and the second resistor R12 .
应理解,第二差分运算放大器OP2所确定的第二电阻R12两端的第二电压差值即为第二电阻R12的分压,根据欧姆定律计算第二电压差值与第二电阻R12的比值,即为经过第二电阻R12的电流值,也就是喇叭200的负极端口与音频负差分输出端SPKN之间传输的第二电流I_SPKN。It should be understood that the second voltage difference across the second resistor R12 determined by the second differential operational amplifier OP2 is the voltage divider of the second resistor R12. The ratio of the second voltage difference to the second resistor R12 calculated according to Ohm's law is the current value passing through the second resistor R12, that is, the second current I_SPKN transmitted between the negative port of the speaker 200 and the audio negative differential output terminal SPKN.
应理解,类似于图12的第一电流采集电路210,第二电流采集电路220还可以包括其他器件并与第二差分运算放大器OP2组成第二运放电路,该第二运放电路与图12中的第一运放电路211的结构可以相同,也可以不同,若相同时,两者的计算原理相同,在此不再赘述。It should be understood that, similar to the first current acquisition circuit 210 of Figure 12, the second current acquisition circuit 220 may also include other devices and form a second operational amplifier circuit with the second differential operational amplifier OP2. The structure of the second operational amplifier circuit may be the same as or different from the first operational amplifier circuit 211 in Figure 12. If they are the same, the calculation principles of the two are the same and will not be repeated here.
下面结合图13对图11中的喇叭200出现喇叭短路到地、喇叭短路到电源故障,检测电路20进行故障检测时的具体过程进行说明。13 , the specific process of the detection circuit 20 performing fault detection when the speaker 200 in FIG. 11 is short-circuited to the ground or the power supply fails will be described below.
图13中的(a)示出了图11中的喇叭200出现喇叭短路到地故障的等效结构示意图。如图13中的(a)所示,若喇叭200的负极端口短路到地,则相当于将喇叭200的负极端口连接到了接地端GND上。将负极端口与接地端GND之间的损耗等效为第一等效电阻RS1,负极端口至接地端GND之间的电流记为I_S1。FIG13(a) shows an equivalent structural schematic diagram of the speaker 200 in FIG11 having a speaker short-circuited to ground fault. As shown in FIG13(a), if the negative terminal of the speaker 200 is short-circuited to the ground, it is equivalent to connecting the negative terminal of the speaker 200 to the ground terminal GND. The loss between the negative terminal and the ground terminal GND is equivalent to the first equivalent resistance RS1, and the current between the negative terminal and the ground terminal GND is recorded as I_S1.
结合图13中的(a),音频正差分输出端SPKP与喇叭200的正极端口之间传输的第一电流I_SPKP经过喇叭200之后分成了两路,一路为喇叭200的负极端口与音频负差分输出端SPKN与之间传输的第二电流I_SPKN,另一路负极端口与接地端GND之间传输的电流I_S1,由此可得如下公式(10);In conjunction with (a) in FIG. 13 , the first current I_SPKP transmitted between the audio positive differential output terminal SPKP and the positive port of the speaker 200 is divided into two paths after passing through the speaker 200, one path being the second current I_SPKN transmitted between the negative port of the speaker 200 and the audio negative differential output terminal SPKN, and the other path being the current I_S1 transmitted between the negative port and the ground terminal GND, thereby obtaining the following formula (10);
I_SPKP=I_RL=I_SPKN+I_S1 (10)I_SPKP=I_RL=I_SPKN+I_S1 (10)
根据公式(10)可知,当喇叭200的负极端口短路到地时,第一电流I_SPKP的大小将大于第二电流I_SPKN。应理解,当喇叭200的正极端口短路到地时,电路的等效结构示意图与上述喇叭的负极端口短路到地的示意图类似,第一电流I_SPKP的大小还是大于第二电流I_SPKN,在此不再赘述。According to formula (10), when the negative terminal of the speaker 200 is short-circuited to the ground, the magnitude of the first current I_SPKP will be greater than the second current I_SPKN. It should be understood that when the positive terminal of the speaker 200 is short-circuited to the ground, the equivalent structural schematic diagram of the circuit is similar to the schematic diagram of the negative terminal of the speaker being short-circuited to the ground, and the magnitude of the first current I_SPKP is still greater than the second current I_SPKN, which will not be repeated here.
基于此,后续在检测时,若确定到第一电流I_SPKP大于第二电流I_SPKN,则说明出现了喇叭短路到地的故障。Based on this, during subsequent detection, if it is determined that the first current I_SPKP is greater than the second current I_SPKN, it indicates that a fault of the speaker being short-circuited to the ground has occurred.
图13中的(b)示出了图11中的喇叭出现喇叭短路到电源故障的等效结构示意图。如图13中的(b)所示,若喇叭电路10的正极端口短路到电源BAT,则相当于将喇叭200的正极端口连接到了高电平上。将电源BAT与正极端口之间的损耗等效为第二等效电阻RS2,电源BAT与正极端口之间的电流记为I_S2。FIG13(b) shows an equivalent structural schematic diagram of the speaker in FIG11 when a speaker short-circuit to power supply fault occurs. As shown in FIG13(b), if the positive terminal of the speaker circuit 10 is short-circuited to the power supply BAT, it is equivalent to connecting the positive terminal of the speaker 200 to a high level. The loss between the power supply BAT and the positive terminal is equivalent to the second equivalent resistor RS2, and the current between the power supply BAT and the positive terminal is recorded as I_S2.
结合图13中的(b),第一电流I_SPKP经过喇叭200之前与I_S2合成一路,然后经过喇叭200后再传输回音频负差分输出端SPKN,由此可得如下公式(11);Combined with (b) in FIG. 13 , the first current I_SPKP is combined with I_S2 before passing through the speaker 200 , and then transmitted back to the audio negative differential output terminal SPKN after passing through the speaker 200 , thereby obtaining the following formula (11);
I_SPKP+I_S2=I_RL=I_SPKN 公式(11)I_SPKP+I_S2=I_RL=I_SPKN Formula (11)
根据公式(11)可知,当喇叭200的正极端口短路到电源时,第一电流I_SPKP的大小将小于第二电流I_SPKN。应理解,当喇叭200的负极端口短路到电源时,电路的等效结构示意图与上述喇叭200的负极端口短路到地的示意图类似,第一电流I_SPKP的大小还是小于第二电流I_SPKN,在此不再赘述。According to formula (11), when the positive terminal of the speaker 200 is short-circuited to the power supply, the magnitude of the first current I_SPKP will be smaller than the second current I_SPKN. It should be understood that when the negative terminal of the speaker 200 is short-circuited to the power supply, the equivalent structural schematic diagram of the circuit is similar to the schematic diagram of the negative terminal of the speaker 200 being short-circuited to the ground, and the magnitude of the first current I_SPKP is still smaller than the second current I_SPKN, which will not be described in detail.
基于此,后续在检测时,若确定到第一电流I_SPKP小于第二电流I_SPKN,则说明喇叭电路10出现了喇叭短路到电源的故障。Based on this, during subsequent detection, if it is determined that the first current I_SPKP is smaller than the second current I_SPKN, it indicates that a fault occurs in the speaker circuit 10 where the speaker is short-circuited to the power supply.
可选地,在本申请实施例中,如图11所示,检测电路20中的电流比较电路230包括:第三差分运算放大器OP3。Optionally, in the embodiment of the present application, as shown in FIG. 11 , the current comparison circuit 230 in the detection circuit 20 includes: a third differential operational amplifier OP3 .
第三差分运算放大器OP3的两个输入端分别与第一差分运算放大器OP1的输出端、第二差分运算放大器OP2的输出端电连接。Two input terminals of the third differential operational amplifier OP3 are electrically connected to the output terminal of the first differential operational amplifier OP1 and the output terminal of the second differential operational amplifier OP2 respectively.
第三差分运算放大器OP3用于确定第一电压差值和第二电压差值之间的第三电压差值并提供给处理器110,处理器110用于根据第三电压差值、第一电阻R11或第二电阻R12来确定电流差值。The third differential operational amplifier OP3 is used to determine a third voltage difference between the first voltage difference and the second voltage difference and provide the third voltage difference to the processor 110. The processor 110 is used to determine a current difference according to the third voltage difference, the first resistor R11 or the second resistor R12.
应理解,第三差分运算放大器OP3所确定的第三电压差值即为第一电阻R11的分压与第二电阻R12的分压之间的差值。当第三电压差值为正值时,说明第一电阻R11的分压大于第二电阻R12的分压,由于第一电阻R11等于第二电阻R12,则处理器110根据欧姆定律计算第三电压差值与第一电阻R11(或第二电阻R12)的比值,即可得到电流差值,并且,该电流差值应该为正值。It should be understood that the third voltage difference determined by the third differential operational amplifier OP3 is the difference between the divided voltage of the first resistor R11 and the divided voltage of the second resistor R12. When the third voltage difference is a positive value, it means that the divided voltage of the first resistor R11 is greater than the divided voltage of the second resistor R12. Since the first resistor R11 is equal to the second resistor R12, the processor 110 calculates the ratio of the third voltage difference to the first resistor R11 (or the second resistor R12) according to Ohm's law to obtain the current difference, and the current difference should be a positive value.
该电流差值可以根据如下公式(12)计算得到:The current difference can be calculated according to the following formula (12):
其中,△I表示电流差值,△V1表示第一电压差值,△V2表示第二电压差值,△V3表示第三电压差值。基于此,后续在检测时,若处理器110根据第三电压差值△V3确定到电流差值△I为正值,则说明出现了喇叭短路到地的故障。Wherein, △I represents the current difference, △V1 represents the first voltage difference, △V2 represents the second voltage difference, and △V3 represents the third voltage difference. Based on this, in subsequent detection, if the processor 110 determines that the current difference △I is a positive value according to the third voltage difference △V3, it means that the speaker is short-circuited to the ground.
同理,当第三电压差值为负值时,说明第一电阻R11的分压小于第二电阻R12的分压,由于第一电阻R11等于第二电阻R12,则处理器110根据欧姆定律计算第三电压差值△V3与第一电阻R11(或第二电阻R12)的比值,即可得到电流差值△I,并且,该电流差值△I为负值。基于此,后续在检测时,若处理器110根据第三电压差值△V3确定到电流差值△I为负值,则说明出现了喇叭短路到电源的故障。Similarly, when the third voltage difference is a negative value, it means that the voltage division of the first resistor R11 is less than the voltage division of the second resistor R12. Since the first resistor R11 is equal to the second resistor R12, the processor 110 calculates the ratio of the third voltage difference △V3 to the first resistor R11 (or the second resistor R12) according to Ohm's law to obtain the current difference △I, and the current difference △I is a negative value. Based on this, during subsequent detection, if the processor 110 determines that the current difference △I is a negative value according to the third voltage difference △V3, it means that a fault of the speaker short-circuiting to the power supply has occurred.
当第三电压差值△V3为零时,则说明第一电阻R11的分压等于第二电阻R12的分压,此时,对应的电流差值△I应为零,基于此,后续在检测时,若处理器110根据第三电压差值△V3确定到电流差值△I为零,则说明未出现第一故障。When the third voltage difference △V3 is zero, it means that the divided voltage of the first resistor R11 is equal to the divided voltage of the second resistor R12. At this time, the corresponding current difference △I should be zero. Based on this, during subsequent detection, if the processor 110 determines that the current difference △I is zero based on the third voltage difference △V3, it means that the first fault has not occurred.
应理解,类似于图12的第一电流采集电路210,电流对比电路230还可以包括其他器件并与第三差分运算放大器OP3组成第三运放电路,该第三运放电路与图12第一运放电路211的结构可以相同,也可以不同,若相同时,两者的计算原理相同,在此不再赘述。It should be understood that, similar to the first current acquisition circuit 210 of Figure 12, the current comparison circuit 230 may also include other devices and form a third operational amplifier circuit with the third differential operational amplifier OP3. The structure of the third operational amplifier circuit may be the same as or different from the structure of the first operational amplifier circuit 211 of Figure 12. If they are the same, the calculation principles of the two are the same and will not be repeated here.
可选地,在本申请实施例中,如图11所示,电压采集电路240可以包括:第四差分运算放大器OP4,第四差分运算放大器OP4的两个输入端分别与喇叭200的正极端口和负极端口电连接;Optionally, in the embodiment of the present application, as shown in FIG. 11 , the voltage acquisition circuit 240 may include: a fourth differential operational amplifier OP4, wherein two input terminals of the fourth differential operational amplifier OP4 are electrically connected to the positive electrode port and the negative electrode port of the speaker 200, respectively;
第四差分运算放大器OP4用于确定喇叭200的正极端口和负极端口之间的第四电压差值并提供给处理器110。The fourth differential operational amplifier OP4 is used to determine a fourth voltage difference between the positive terminal and the negative terminal of the speaker 200 and provide the fourth voltage difference to the processor 110 .
应理解,在本申请实施例中,类似于图12中所示的第一电流采集电路210,电压采集电路240还可以包括其他器件并与第四差分运算放大器OP4组成第四运放电路,该第四运放电路与与图12第一运放电路211的结构可以相同,也可以不同,若相同时,两者的计算原理基本相同,在此不再赘述。It should be understood that in the embodiment of the present application, similar to the first current acquisition circuit 210 shown in Figure 12, the voltage acquisition circuit 240 may also include other devices and form a fourth operational amplifier circuit with the fourth differential operational amplifier OP4. The structure of the fourth operational amplifier circuit may be the same as or different from the structure of the first operational amplifier circuit 211 in Figure 12. If they are the same, the calculation principles of the two are basically the same and will not be repeated here.
可选地,图14示出了本申请实施例提供的又一种检测系统2的结构示意图。如图14所示,检测电路20中的偏置电路250包括:偏置电压端VCC、第一偏置电阻RT1、第二偏置电阻RT2和接地端GND。Optionally, Fig. 14 shows a schematic diagram of the structure of another detection system 2 provided in an embodiment of the present application. As shown in Fig. 14, the bias circuit 250 in the detection circuit 20 includes: a bias voltage terminal VCC, a first bias resistor RT1, a second bias resistor RT2 and a ground terminal GND.
第一偏置电阻RT1的第一端与偏置电压端VCC电连接,第一偏置电阻RT1的第二端与音频正差分输出端SPKP电连接,第二偏置电阻RT2的第一端与音频负差分输出端SPKN电连接,第二偏置电阻RT2的第二端与接地端GND电连接。The first end of the first bias resistor RT1 is electrically connected to the bias voltage terminal VCC, the second end of the first bias resistor RT1 is electrically connected to the audio positive differential output terminal SPKP, the first end of the second bias resistor RT2 is electrically connected to the audio negative differential output terminal SPKN, and the second end of the second bias resistor RT2 is electrically connected to the ground terminal GND.
可选地,在本申请实施例中,如图14所示,在第一偏置电阻RT1的第二端与音频正差分输出端SPKP之间还可以串联第一开关SW1,在第二偏置电阻RT2的第一端与音频负差分输出端SPKN还可以串联第二开关SW2。Optionally, in an embodiment of the present application, as shown in Figure 14, a first switch SW1 can be connected in series between the second end of the first bias resistor RT1 and the audio positive differential output terminal SPKP, and a second switch SW2 can be connected in series between the first end of the second bias resistor RT2 and the audio negative differential output terminal SPKN.
需要检测故障时,可以通过控制第一开关SW1与第二开关SW2同时闭合来导通偏置电压端VCC经喇叭200至接地端GND之间的电路回路,从而可以在音频模块120不工作时对喇叭电路10进行检测。When a fault needs to be detected, the first switch SW1 and the second switch SW2 can be controlled to be closed simultaneously to conduct the circuit loop from the bias voltage terminal VCC through the speaker 200 to the ground terminal GND, so that the speaker circuit 10 can be detected when the audio module 120 is not working.
应理解,本申请实施例示意的结构并不构成对检测电路20的具体限定。在本申请另一些实施例中,检测电路20可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It should be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the detection circuit 20. In other embodiments of the present application, the detection circuit 20 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
本申请提供的检测系统,通过检测系统中的检测电路采集在音频功率放大器的音频正差分输出端和喇叭的正极端口之间传输的第一电流,在音频负差分输出端和喇叭的负极端口之间传输的第二电流,然后,通过处理器比较第一电流和第二电流的大小来判断喇叭是否出现喇叭短路到地、喇叭短路到电源的故障,再结合喇叭两端的电压差值来检测喇叭电路是否出现喇叭开路、喇叭线间短路的故障。由于,在音频模块工作时,音频功率放大器输出的直流信号和交流信号并不会干扰电流、电压的采集,从而该电路可以实现在音频模块工作时,对喇叭电路进行故障检测的目的。The detection system provided by the present application collects the first current transmitted between the audio positive differential output terminal of the audio power amplifier and the positive port of the speaker, and the second current transmitted between the audio negative differential output terminal and the negative port of the speaker through the detection circuit in the detection system, and then, the processor compares the magnitude of the first current and the second current to determine whether the speaker has a short circuit to the ground or a short circuit to the power supply, and then combines the voltage difference at both ends of the speaker to detect whether the speaker circuit has an open circuit or a short circuit between speaker lines. Because, when the audio module is working, the DC signal and AC signal output by the audio power amplifier will not interfere with the collection of current and voltage, so that the circuit can achieve the purpose of fault detection of the speaker circuit when the audio module is working.
此外,还通过增加亚音频信号、偏置电路来检测喇叭无声音播放、音频模块不工作时喇叭是否出现故障,以增加检测的全面性。In addition, sub-audio signals and bias circuits are added to detect whether the speaker is faulty when there is no sound or the audio module is not working, so as to increase the comprehensiveness of the detection.
本申请实施例还提供一种电子设备,包括相连接的检测系统和喇叭。其中,检测系统为本申请实施例所提供的检测系统。The embodiment of the present application also provides an electronic device, including a detection system and a speaker connected to each other, wherein the detection system is the detection system provided in the embodiment of the present application.
例如,该电子设备可以为手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personaldigital assistant,PDA)等,本申请实施例对电子设备的具体类型不作任何限制。For example, the electronic device may be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR)/virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The embodiments of the present application do not impose any restrictions on the specific type of the electronic device.
本申请实施例还提供一种T-BOX,包括本申请实施例提供的检测系统。The embodiment of the present application also provides a T-BOX, including the detection system provided in the embodiment of the present application.
可选地,该T-BOX还包括与检测系统连接的喇叭。Optionally, the T-BOX further includes a speaker connected to the detection system.
本申请实施例还提供一种车辆,该车辆包括本申请实施例提供的T-BOX。An embodiment of the present application also provides a vehicle, which includes the T-BOX provided in the embodiment of the present application.
本申请实施例还提供一种车辆,包括相连接的T-BOX和检测系统。其中,该检测系统为上述本申请实施例提供的检测系统。The embodiment of the present application also provides a vehicle, comprising a T-BOX and a detection system connected to each other, wherein the detection system is the detection system provided in the embodiment of the present application described above.
可选地,车辆还包括与检测系统连接的喇叭。Optionally, the vehicle also includes a horn connected to the detection system.
应理解,对于车载设备来说,一般会提供一个外接接口,该外接接口与T-BOX电连接,车厂要求该外接接口可以实现故障诊断,并在故障发生时能及时上报。由此,在本申请实施例中,检测系统确定出喇叭是否出现了故障后,可通过与T-BOX电连接的外接接口将检测结果进行上报。It should be understood that for vehicle-mounted equipment, an external interface is generally provided, which is electrically connected to the T-BOX. The car manufacturer requires that the external interface can realize fault diagnosis and report the fault in time when it occurs. Therefore, in the embodiment of the present application, after the detection system determines whether the speaker has a fault, the detection result can be reported through the external interface electrically connected to the T-BOX.
应理解,上述只是为了帮助本领域技术人员更好地理解本申请实施例,而非要限制本申请实施例的范围。本领域技术人员根据所给出的上述示例,显然可以进行各种等价的修改或变化,例如,上述检测方法的各个实施例中某些步骤可以是不必须的,或者可以新加入某些步骤等。或者上述任意两种或者任意多种实施例的组合。这样的修改、变化或者组合后的方案也落入本申请实施例的范围内。It should be understood that the above is only to help those skilled in the art to better understand the embodiments of the present application, rather than to limit the scope of the embodiments of the present application. According to the above examples given, those skilled in the art can obviously make various equivalent modifications or changes. For example, some steps in each embodiment of the above detection method may be unnecessary, or some steps may be newly added. Or a combination of any two or any multiple embodiments of the above. Such modifications, changes or combined solutions also fall within the scope of the embodiments of the present application.
还应理解,上文对本申请实施例的描述着重于强调各个实施例之间的不同之处,未提到的相同或相似之处可以互相参考,为了简洁,这里不再赘述。It should also be understood that the above description of the embodiments of the present application focuses on emphasizing the differences between the various embodiments. The same or similar points that are not mentioned can be referenced to each other. For the sake of brevity, they will not be repeated here.
还应理解,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should also be understood that the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
还应理解,本申请实施例中,“预先设定”、“预先定义”可以通过在设备(例如,包括终端设备)中预先保存相应的代码、表格或其他可用于指示相关信息的方式来实现,本申请对于其具体的实现方式不做限定。It should also be understood that in the embodiments of the present application, "pre-setting" and "pre-definition" can be achieved by pre-saving corresponding codes, tables or other methods that can be used to indicate relevant information in a device (for example, including a terminal device), and the present application does not limit its specific implementation method.
还应理解,本申请实施例中的方式、情况、类别以及实施例的划分仅是为了描述的方便,不应构成特别的限定,各种方式、类别、情况以及实施例中的特征在不矛盾的情况下可以相结合。It should also be understood that the division of the methods, situations, categories and embodiments in the embodiments of the present application is only for the convenience of description and should not constitute a special limitation. The features of various methods, categories, situations and embodiments can be combined without contradiction.
还应理解,在本申请的各个实施例中,如果没有特殊说明以及逻辑冲突,不同的实施例之间的术语和/或描述具有一致性、且可以相互引用,不同的实施例中的技术特征根据其内在的逻辑关系可以组合形成新的实施例。It should also be understood that in the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and/or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their internal logical relationships.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims (18)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011461978.XA CN114604173B (en) | 2020-12-09 | 2020-12-09 | Detection system, T-BOX and vehicle |
PCT/CN2021/135520 WO2022121810A1 (en) | 2020-12-09 | 2021-12-03 | Detection system, t-box, and vehicle |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011461978.XA CN114604173B (en) | 2020-12-09 | 2020-12-09 | Detection system, T-BOX and vehicle |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114604173A CN114604173A (en) | 2022-06-10 |
CN114604173B true CN114604173B (en) | 2024-05-17 |
Family
ID=81856719
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011461978.XA Active CN114604173B (en) | 2020-12-09 | 2020-12-09 | Detection system, T-BOX and vehicle |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114604173B (en) |
WO (1) | WO2022121810A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118112309B (en) * | 2024-04-30 | 2024-08-23 | 苏州元脑智能科技有限公司 | Fault detection equipment, and fault detection method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000151297A (en) * | 1998-11-13 | 2000-05-30 | Sanyo Electric Co Ltd | Abnormality detecting circuit of power amplifying circuit |
CN103227614A (en) * | 2012-01-26 | 2013-07-31 | 株式会社东芝 | Power amplifying apparatus and audio system |
WO2013118250A1 (en) * | 2012-02-07 | 2013-08-15 | 三菱電機株式会社 | Vehicle proximity notification device and failure diagnosing method for same |
CN105636828A (en) * | 2013-09-20 | 2016-06-01 | 松下知识产权经营株式会社 | Vehicle assistant system and vehicle |
CN109963247A (en) * | 2017-12-25 | 2019-07-02 | 长城汽车股份有限公司 | Horn assembly detection circuit and horn assembly detection method |
CN111263288A (en) * | 2020-03-20 | 2020-06-09 | 深圳市元征科技股份有限公司 | Loudspeaker state diagnosis system, method, device and medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2741828Y (en) * | 2004-06-01 | 2005-11-23 | 戴文胜 | Vehicle alarm |
JP2007235526A (en) * | 2006-03-01 | 2007-09-13 | Matsushita Electric Ind Co Ltd | Pulse modulation type power amplifier |
JP2008085476A (en) * | 2006-09-26 | 2008-04-10 | Patoraito:Kk | Alarm tone generator |
JP5298169B2 (en) * | 2011-07-27 | 2013-09-25 | アンデン株式会社 | Vehicle approach notification device |
JP5500147B2 (en) * | 2011-09-17 | 2014-05-21 | 株式会社デンソー | Abnormality detection device for speaker circuit for generating vehicle operation notification sound |
CN109546978B (en) * | 2019-01-15 | 2023-09-19 | 上海艾为电子技术股份有限公司 | Current detection circuit of loudspeaker |
-
2020
- 2020-12-09 CN CN202011461978.XA patent/CN114604173B/en active Active
-
2021
- 2021-12-03 WO PCT/CN2021/135520 patent/WO2022121810A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000151297A (en) * | 1998-11-13 | 2000-05-30 | Sanyo Electric Co Ltd | Abnormality detecting circuit of power amplifying circuit |
CN103227614A (en) * | 2012-01-26 | 2013-07-31 | 株式会社东芝 | Power amplifying apparatus and audio system |
WO2013118250A1 (en) * | 2012-02-07 | 2013-08-15 | 三菱電機株式会社 | Vehicle proximity notification device and failure diagnosing method for same |
CN105636828A (en) * | 2013-09-20 | 2016-06-01 | 松下知识产权经营株式会社 | Vehicle assistant system and vehicle |
CN109963247A (en) * | 2017-12-25 | 2019-07-02 | 长城汽车股份有限公司 | Horn assembly detection circuit and horn assembly detection method |
CN111263288A (en) * | 2020-03-20 | 2020-06-09 | 深圳市元征科技股份有限公司 | Loudspeaker state diagnosis system, method, device and medium |
Also Published As
Publication number | Publication date |
---|---|
CN114604173A (en) | 2022-06-10 |
WO2022121810A1 (en) | 2022-06-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101646964B1 (en) | Circuit apparatus and method for recognition earphone in electronic device | |
US9398388B2 (en) | Method and circuit for testing an audio high-frequency loudspeaker being part of a loudspeaker system | |
JP6062716B2 (en) | Anomaly detection device | |
CN102265334B (en) | Variable noise masking during periods of substantial silence | |
CN114604173B (en) | Detection system, T-BOX and vehicle | |
CN110262921A (en) | A kind of method for diagnosing faults, system and the device of the vehicle-mounted loudspeaker of vehicle | |
CN109918041B (en) | Audio circuit, related equipment and control method | |
CN115941566B (en) | Circuit testing method, testing board and testing system | |
CN118695192A (en) | Vehicle audio link fault location method, device, equipment and storage medium | |
JP7681118B2 (en) | Car audio system and method for detecting open circuits in speakers thereof | |
CN117478080A (en) | Audio power amplifier, automobile sound system and automobile | |
CN209170638U (en) | Audio interface adaptive circuits, devices and electronic equipment | |
CN103218200A (en) | System and method for collecting audio signal by intelligent terminal | |
US10340872B1 (en) | Audio filter device for electronic interference with audio signals | |
CN214429712U (en) | Diagnostic circuit and vehicle of audio transmission bus | |
CN222602564U (en) | Audio switching circuit and terminal equipment | |
CN218826209U (en) | Digital sound console recording system | |
US20240056334A1 (en) | Methods and apparatus for digital data communication with bus power over interconnects | |
EP2461604B1 (en) | Differential microphone circuit | |
CN203179006U (en) | System for utilizing intelligent terminal to collect audio signals | |
JPWO2013179332A1 (en) | Audio equipment | |
CN116353480A (en) | Vehicle alarm device and vehicle | |
KR102319436B1 (en) | Apparatus and method for diagnosing open condition of the audio signal line of the external amplifier connected to the vehicle head unit | |
CN119521111A (en) | A method, system, device and medium for diagnosing faults of a loudspeaker | |
CN118945559A (en) | Circuit and method for detecting the state of a speaker connected to a power amplifier |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |