A glass break detector and a testing method
By using a microprocessor to detect the self-test signal attenuation of the electret microphone in the glass breaker detector, the problem of failure of the electret microphone in the prior art is solved, and the reduction of product volume and cost and the simplification of the self-test complexity is achieved.
Patent Information
- Application Number
- CN202111627191.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-28
- Publication Date
- 2025-05-30
- Estimated Expiration
- 2041-12-28
AI Technical Summary
Existing glass breaker detectors cannot effectively detect the failure of the electret microphone during self-test, and require the cooperation of speakers or buzzers, resulting in higher product volume and cost and higher implementation complexity.
By introducing a microprocessor into the glass breaker detector, the AC signal emitted by the microprocessor is attenuated by the electret microphone, and whether the electret microphone fails according to the amplitude or attenuation amplitude of the second AC signal is determined, so that the self-test process does not require the coordination of a speaker or a buzzer.
The product volume and cost of the electret microphone screen breaker detector is reduced, the complexity of self-test is simplified, and efficient self-test of electret microphones is achieved.
Smart Images

Figure CN114245252B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of security technologies, and in particular, to a glass break detector and a test method. Background Art
[0002] As the most important sensor component of a passive acoustic glass break detector, monitoring whether the microphone is deliberately damaged, bitten by insects, or fails due to long-term dust accumulation is both a practical need and a requirement of the new version of the EN50131 standard.
[0003] Currently, in some glass break detector products, self-checking of the product is achieved through an Application Specific Integrated Circuit (ASIC). However, this self-checking process only performs self-checking on the analog and digital circuits outside the microphone, and does not perform self-checking on the microphone. Although there are also some glass break detectors including an electret microphone that include a self-checking function for the microphone, this detector requires the cooperation of a sound-emitting device such as a speaker or a buzzer to achieve, and the size and volume of the detector product are large, the cost is high, and the implementation complexity is high. Summary of the Invention
[0004] Embodiments of the present application provide a glass break detector and a test method, which can reduce the product volume and cost of a glass break detector with an electret microphone, and reduce the implementation complexity of self-checking on the electret microphone.
[0005] To achieve the above object, the embodiments of the present application adopt the following technical solutions:
[0006] In a first aspect, a glass break detector is provided, including a microprocessor, a first voltage driving circuit, a second voltage driving circuit, and an electret microphone, wherein: the microprocessor is configured to send a first AC signal to the first voltage driving circuit; the first voltage driving circuit is configured to send a pulse signal to the electret microphone to drive the electret microphone to work, and the pulse signal received by the electret microphone is the same as the first AC signal; the electret microphone is configured to perform voltage division and attenuation with the second voltage driving circuit when the electret microphone is working, so that the second voltage driving circuit outputs a second AC signal to the microprocessor; the microprocessor is further configured to determine whether the electret microphone fails according to the second AC signal or the attenuation amplitude of the second AC signal relative to the first AC signal.
[0007] Therefore, for the glass break detector of the present application, when performing the self-check of the electret microphone, it is possible to determine whether the electret microphone fails based on the amplitude of the second AC signal that reaches the microprocessor after the AC signal sent by the microprocessor is attenuated by the electret microphone or the attenuation amplitude of the signal. The present application does not require the cooperation of sound-emitting devices such as speakers or buzzers to achieve self-check, nor does it require specific self-check pins, which can save costs, reduce the volume of the detector product, and also reduce the complexity of implementing the self-check of the electret microphone.
[0008] In a possible design, the first AC signal and the second AC signal have the same frequency, and the amplitude of the second AC signal is less than or equal to the amplitude of the first AC signal. That is to say, if the electret microphone fails, the amplitude of the second AC signal fed back and received by the microprocessor may be the same as the amplitude of the first AC signal, and at this time the electret microphone may be in a short-circuit state. If the amplitude of the fed-back second AC signal is less than the amplitude of the first AC signal, the electret microphone may be in a state with poor sound effect.
[0009] In a possible design, the first voltage drive circuit is used to amplify the current of the first AC signal that reaches the first voltage drive circuit after attenuation, so as to send a pulse signal to the electret microphone, and the frequency and amplitude of the pulse signal are the same as the frequency and amplitude of the first AC signal. That is to say, the first voltage drive circuit can input the first AC signal to the electret microphone without attenuation. Similarly, the second voltage drive circuit can also input the second AC signal after voltage division and attenuation between the electret microphone and the second voltage drive circuit to the microprocessor without attenuation.
[0010] In a possible design, the electret microphone includes a first capacitor, and a second capacitor is coupled to the input side of the second voltage drive module; when the electret microphone fails, the first capacitor and the second capacitor are used to perform voltage division and attenuation on the first AC signal, and attenuate the first AC signal into a second AC signal. This is because when capacitors are connected in series, there will be a situation of voltage division and attenuation. When the electret microphone fails, the electret microphone is in a static working mode, and the pulsed power supply input to the electret microphone is voltage-divided and attenuated by the capacitor inside the microphone and the input capacitor of the second voltage drive module, obtaining the attenuated second AC signal, and then it is possible to determine whether the electret microphone fails based on the second AC signal.
[0011] In a possible design, when the microprocessor is used to determine whether the electret microphone fails according to the second AC signal, the microprocessor is specifically configured to: perform analog-to-digital conversion on the second AC signal, sample the amplitude of the signal after analog-to-digital conversion, and determine the maximum amplitude and the minimum amplitude corresponding to the second AC signal; when the maximum amplitude is within the first threshold range and the minimum amplitude is within the second threshold range, determine that the electret microphone passes the detection; when the maximum amplitude is not within the first threshold range or the minimum amplitude is not within the second threshold range, determine that the electret microphone fails the detection, and the electret microphone failing the detection indicates that the electret microphone fails. That is to say, in this application, the microprocessor needs to determine whether the maximum amplitude and the minimum amplitude respectively reach their respective threshold ranges. If they reach the threshold ranges, it is determined that the detection passes this time; if the maximum amplitude or the minimum amplitude does not reach the threshold range, it is determined that the detection fails this time.
[0012] In a possible design, the microprocessor is specifically configured to: trigger the first voltage drive circuit to input a plurality of AC signals to the electret microphone, the plurality of AC signals including the first AC signal, and there is a time interval between adjacent AC signals in the plurality of AC signals; determine the number of times the electret microphone fails the detection according to the attenuated AC signals output by the electret microphone and the second voltage drive circuit based on the plurality of AC signals received by the microprocessor, and the first threshold range and the second threshold range; when the number of times the electret microphone fails the detection is greater than or equal to a preset number of times, determine that the electret microphone fails. This multiple self-check process can avoid misjudgment that may be caused by a single self-check.
[0013] In a possible design, when the microprocessor is used to determine whether the electret microphone fails according to the attenuation amplitude of the second AC signal relative to the first AC signal, the microprocessor is specifically configured to: determine whether the attenuation amplitude is within the third threshold range; when the attenuation amplitude is within the third threshold range, determine that the electret microphone does not fail; when the attenuation amplitude is not within the third threshold range, determine that the electret microphone fails. It can be understood that if the attenuation amplitude is too large, it can be understood that the electret microphone has failed; if the attenuation amplitude is still within the acceptable range, it can be understood that the electret microphone has not failed.
[0014] In a possible design, the glass break detector further includes a bias circuit; the bias circuit is used to provide a stable direct current to provide a bias voltage for the AC signal output by the electret microphone. Because if the electret microphone is damaged, the capacitance of the electret microphone will change, and the signal level of the electret microphone will also change accordingly. However, the capacitance of the electret microphone is very small. Therefore, the attenuation of the normal working electret microphone to the first AC signal is small, and there is little difference from the waveform without attenuation when the electret microphone is short-circuited, which may lead to misjudgment. And the bias circuit with capacitance can increase the attenuation of the AC signal during the self-check of the normal working electret microphone.
[0015] In a possible design, the first output terminal of the microprocessor is coupled to the input terminal of the first voltage driving circuit, the second output terminal of the microprocessor is coupled to the input terminal of the bias circuit, and the first input terminal of the microprocessor is coupled to the output terminal of the second voltage driving circuit; the output terminal of the first voltage driving circuit is coupled to the first input terminal of the electret microphone; the first output terminal of the electret microphone is coupled to the input terminal of the second voltage driving circuit; the output terminal of the bias circuit is coupled to the output terminal of the electret microphone and the input terminal of the second voltage driving circuit.
[0016] In a second aspect, a method for testing a glass break detector is provided. The glass break detector includes a microprocessor, a first voltage driving circuit, a second voltage driving circuit, and an electret microphone. The method includes: the glass break detector controls the microprocessor to send a first AC signal to the electret microphone through the first voltage driving circuit to drive the electret microphone to work; the pulse signal received by the electret microphone is the same as the first AC signal; the glass break detector controls the electret microphone to perform voltage division attenuation with the second voltage driving circuit during operation, so that the second voltage driving circuit outputs a second AC signal to the microprocessor; the glass break detector controls the microprocessor to determine whether the electret microphone fails according to the second AC signal or the attenuation amplitude of the second AC signal relative to the first AC signal.
[0017] For the beneficial effects of the second aspect, reference can be made to the description of the first aspect.
[0018] In a possible design, the first AC signal and the second AC signal have the same frequency, and the amplitude of the second AC signal is less than the amplitude of the first AC signal.
[0019] In a possible design, the electret microphone includes a first capacitor, and a second capacitor is coupled to the input side of the second voltage driving module; when the electret microphone fails, the first capacitor and the second capacitor are used to perform voltage division attenuation on the first AC signal and attenuate the first AC signal into the second AC signal.
[0020] In a possible design, the glass break detector controls the microprocessor to determine whether the electret microphone fails according to the attenuation amplitude between the second AC signal and the first AC signal, including: performing analog-to-digital conversion on the second AC signal, sampling the amplitude of the signal after analog-to-digital conversion, and determining the maximum amplitude and the minimum amplitude corresponding to the second AC signal; when the maximum amplitude is within the first threshold range and the minimum amplitude is within the second threshold range, it is determined that the electret microphone passes the detection; when the maximum amplitude is not within the first threshold range or the minimum amplitude is not within the second threshold range, it is determined that the electret microphone fails to pass the detection, and the electret microphone failing to pass the detection indicates that the electret microphone fails.
[0021] In a possible design, the method further includes: triggering a first voltage driving circuit to input a plurality of alternating current signals to the electret microphone, where the plurality of alternating current signals include a first alternating current signal, and there is a time interval between adjacent alternating current signals in the plurality of alternating current signals; determining the number of times the electret microphone fails the detection according to the attenuated alternating current signals output by the electret microphone and the second voltage driving circuit based on the plurality of alternating current signals received by the microprocessor, and a first threshold range and a second threshold range; and determining that the electret microphone fails when the number of times the electret microphone fails the detection is greater than or equal to a preset number of times.
[0022] In a possible design, for the glass break detector to control the microprocessor to determine whether the electret microphone fails according to the attenuation amplitude of the second alternating current signal relative to the first alternating current signal includes: determining whether the attenuation amplitude is within a third threshold range; when the attenuation amplitude is within the third threshold range, determining that the electret microphone does not fail; and when the attenuation amplitude is not within the third threshold range, determining that the electret microphone fails.
[0023] In a third aspect, a detection device is provided, including at least one processor, where the at least one processor is connected to a memory, and the at least one processor is configured to read and execute a program stored in the memory, so that the device executes the method according to any one of the above second aspects or the second aspect.
[0024] In a fourth aspect, a chip is provided, where the chip is coupled to a memory and is configured to read and execute program instructions stored in the memory to implement the method according to any one of the above second aspects or the second aspect.
[0025] In a fifth aspect, a glass break detector is provided, and the glass break detector includes: a memory and a processor. The above memory and processor are coupled. The memory is configured to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the cloud center is caused to execute any one of the glass break detector test methods provided by the first aspect or its corresponding possible design.
[0026] In a sixth aspect, an embodiment of the present application provides a glass break detection device, which is included in an electronic device, and the device has a function of implementing the behavior of the electronic device in any one of the above aspects and any possible implementation manner. This function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules or circuits corresponding to the above functions. For example, a processing unit, a voltage driving module or circuit, an electret microphone, etc.
[0027] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, including computer instructions, which, when running on an electronic device, cause the electronic device to execute the test method of the glass break detector in any of the above aspects and any possible implementation manners.
[0028] In an eighth aspect, an embodiment of the present application provides a computer program product, which, when running on a computer or a processor, causes the computer or the processor to execute the test method of the glass break detector in any of the above aspects and any possible implementation manners.
[0029] It can be understood that any of the above-provided detection devices, chips, glass break detectors, glass break detection devices, computer-readable storage media, or computer program products can be applied to the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods, which will not be elaborated here.
[0030] These aspects or other aspects of the present application will be more clearly understood in the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 FIG. [ID] is a schematic circuit structure diagram of a glass break detector provided by an embodiment of the present application;
[0032] Figure 2 FIG. [ID] is a schematic circuit structure diagram of a glass break detector provided by an embodiment of the present application;
[0033] Figure 3 FIG. [ID] is a schematic flow diagram of a detection method of a glass break detector provided by an embodiment of the present application;
[0034] Figure 4 FIG. [ID] is a schematic diagram comparing an AC signal before attenuation and an AC signal after attenuation provided by an embodiment of the present application;
[0035] Figure 5 FIG. [ID] is a schematic diagram of an AC signal obtained by self-checking a condenser microphone multiple times at intervals provided by an embodiment of the present application;
[0036] Figure 6 FIG. [ID] is a schematic structure diagram of a glass break detector provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0037] For ease of understanding, some descriptions of concepts related to the embodiments of the present application are given as examples for reference. As follows:
[0038] Passive glass break detector: It refers to a detector that can respond to the shock wave transmitted through the glass when the glass breaks, and is composed of one (or more) sensors and a signal processing unit.
[0039] There are two different types of passive glass break detectors: acoustic glass break detectors and piezoelectric glass break detectors.
[0040] Acoustic glass break detector: It uses an acoustic wave sensor (such as a small microphone) for detection. The acoustic wave sensor is triggered by a sound event carried by air. It monitors the acoustic waves of the perimeter collected, analyzes the amplitude, frequency, and timing of the acoustic waves, and determines the special audio frequency of glass breakage, while avoiding false alarms caused by sounds with similar frequencies to glass breakage sounds, such as porcelain cracking, ringing, and keys dropping. A single acoustic glass break detector can monitor multiple pieces of glass simultaneously, which is similar to the human ear being able to distinguish whether multiple pieces of glass within the audible range are broken.
[0041] Piezoelectric glass break detector: It uses a piezoelectric sensor, which is bonded to the glass surface through an adhesive. The piezoelectric sensor detects the vibration when the glass breaks, so it senses motion rather than sound. It needs to be installed on each piece of glass that is expected to be protected, and a single piezoelectric glass break detector cannot be used for multiple pieces of glass, which is similar to pressing a person's finger on the surface of a piece of glass and judging whether the glass is broken by feeling the vibration on the glass surface through touch.
[0042] Next, the technical solutions in the embodiments of the present application will be described in conjunction with the accompanying drawings in the embodiments of the present application. Among them, in the description of the embodiments of the present application, unless otherwise specified, " / " means "or". For example, A / B can mean A or B; herein, "and / or" is merely 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 simultaneously, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0043] Hereinafter, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of this embodiment, unless otherwise specified, the meaning of "multiple" is two or more than two.
[0044] Currently, for glass break detector products containing electret microphones, although there is a self-check function currently, it requires the cooperation of sound-emitting devices such as speakers or buzzers, which is likely to cause an increase in the volume of the product, and the finished product is relatively high, consumes a large amount, and the implementation complexity is also relatively large.
[0045] For products of other non-glass break detectors, the implementation methods of microphone self-check in the products can be, for example, as follows.
[0046] 1) The self-check of the microphone is realized by the cooperation of sound-emitting devices such as speakers or buzzers, but the above-mentioned drawbacks also exist.
[0047] 2) A signal generator is coupled outside the product. The signal generator can input an audio signal with a preset frequency and amplitude to the microphone through the microphone self-check pin, and collect the output signal of the microphone to the signal generator in real time. The signal generator compares the output signal with the preset audio signal. When it is determined that the difference between the two signals is large, the microphone is judged to be abnormal. However, this self-check method requires the configuration of an independent self-check circuit, with more component units and higher complexity. There are also problems of larger occupied volume and higher cost.
[0048] 3) The microphone is judged whether it fails by monitoring the magnitude of the current consumed by the microphone, and the complexity of this implementation method is also high.
[0049] In view of this, the present application provides a glass break detector and a detection method. The glass break detector can perform self-check on the electret microphone in the glass break detector, and determine whether the electret microphone fails by determining the attenuation degree of the AC signal output by the microcontroller unit (MCU) of the glass break detector when fed back to the MCU through the electret microphone. It can be applied to passive glass break detectors, such as acoustic glass break detectors, without the participation of additional components, with a lower implementation cost and a simpler implementation method.
[0050] In some embodiments, the detection method of the present application can be applied to products such as wired glass break detectors, wired passive infrared detectors (PIR), and glass break composite detectors, and can also be applied to other glass break detectors, which is not limited in the present application.
[0051] In order to make the glass break detector in the best working state, a reasonable installation position needs to be selected. For example, look for an installation range on the ceiling or wall adjacent to or facing the glass to be measured, and avoid approaching noisy objects such as bells, fans, compressors, and loud sounds. Determine the accurate installation range and direction of the glass break detector to ensure that the microphone of the glass break detector has a direct and unobstructed view of the glass to be measured.
[0052] Generally, glass break detectors are applicable to all places where glass anti-breakage needs to be guarded. In addition to protecting general door and window glasses, they can effectively control large-area glass display windows, showcases, kiosks, etc.
[0053] For a glass break detector including an electret microphone, as Figure 1 shown, it may include an MCU 110, a first voltage driving circuit 120, a second voltage driving circuit 130, an electret microphone 140, a power supply circuit 150, an alarm device 160, etc.
[0054] Among them, the power supply circuit 150 is used to supply power to devices other than the MCU power supply circuit;
[0055] The MCU 110 can be understood as a software operation platform. When the electret microphone 140 is not being detected, the MCU 110 outputs a DC signal to drive the electret microphone 140 to work. In this application, when it is determined to detect the electret microphone 140, the MCU 110 outputs an AC signal. While driving the electret microphone 140 to work, this AC signal can be understood as a monitoring signal, usually a voltage signal with a specific frequency and amplitude. By sampling this monitoring signal and through software algorithms, it is judged whether the electret microphone 140 and other hardware circuits are normal;
[0056] The first voltage driving circuit 120 and the second voltage driving circuit 130 have voltage buffering and isolation, which can improve the load-carrying capacity;
[0057] The electret microphone 140 is a capacitive sound-electricity conversion device made of electret material, which can convert sound signals into voltage signals. When it is determined to perform self-check on the electret microphone 140, the electret microphone 140 can be considered to be in a static working mode.
[0058] The alarm device 160 usually includes devices such as a horn and can output warning information to remind of glass breakage.
[0059] Referring to Figure 1 , in terms of the coupling relationship of each module, the first output terminal a of the MCU 110 is coupled to the input terminal b of the first voltage driving circuit 120, and the first input terminal e of the MCU 110 is coupled to the output terminal f of the second voltage driving circuit 130;
[0060] The output terminal g of the first voltage driving circuit 120 is coupled to the first input terminal h of the electret microphone 140; the first output terminal i of the electret microphone 140 is coupled to the input terminal j of the second voltage driving circuit 130;
[0061] In some embodiments, as Figure 2 shown, the glass break detector in this application further includes a bias circuit 170.
[0062] A bias circuit 170 is configured to provide a stable direct current to supply a bias voltage or a reference voltage to an alternating current signal output by the electret microphone 140.
[0063] Reference Figure 2 , the second output terminal c of the MCU 110 is coupled to the input terminal d of the bias circuit 170, and the output terminal k of the bias circuit 170 is coupled to the output terminal i of the electret microphone and the input terminal j of the second voltage driving circuit.
[0064] When the MCU 110 needs to output signals to the first voltage driving circuit 120 and the bias circuit 170, a digital-to-analog converter (DAC) is required to convert digital signals into analog signals for output. When the MCU 110 receives a voltage signal from the second voltage driving circuit 130, an analog-to-digital converter (ADC) is also required for analog-to-digital conversion. Therefore, in Figure 2 , the MCU includes a DAC1, a DAC2, and an ADC. The DAC1 is configured to convert a preset alternating current voltage value into an analog signal and output it to the first voltage driving circuit 120, and the DAC2 is configured to convert a preset direct current voltage value into an analog signal and output it to the bias circuit 170. The ADC is configured to convert an alternating current signal received from the second voltage driving circuit 130 into a digital signal, i.e., an alternating current voltage value.
[0065] The MCU in this application can compare the preset alternating current voltage value of the DAC1 with the alternating current voltage value received by the ADC to determine whether the electret microphone 140 fails.
[0066] The principle of microphone self-check for the glass break detector provided in this application is introduced below.
[0067] Utilizing Figure 1 and Figure 2 shown in the glass break detector, the glass break detector provided in this application includes an MCU 110, a first voltage driving circuit 120, a second voltage driving circuit 130, and an electret microphone 140. When the glass break detector determines to start the electret microphone self-check process, its self-check principle can be as follows.
[0068] The MCU 110 is configured to send a first alternating current signal to the first voltage driving circuit 120. The voltage of the first alternating current signal can be, for example, a specific waveform, such as a square wave, a triangular wave, or a sine wave, etc. The first alternating current signal can be, for example, Figure 2 generated by the DAC1 in
[0069] The first voltage driving circuit 120 is configured to send a pulse signal to the electret microphone 140 to drive the electret microphone 140 to operate. The pulse signal received by the electret microphone 140 is the same as the first AC signal. That is to say, the first voltage driving circuit 120 is used to amplify the current when the first AC signal attenuates when reaching the first voltage driving circuit 120. This is because there will be attenuation when the first AC signal is output to the first voltage driving circuit 120, and the first voltage driving circuit 120 can perform current amplification, so that when the first voltage driving module outputs an AC signal to the electret microphone 140, the pulse signal or AC signal received by the electret microphone 140 is the same as the first AC signal, including the frequency and amplitude of the signal being the same, that is, the first AC signal output from the a terminal will reach the h terminal of the electret microphone 140 without attenuation after current amplification.
[0070] The electret microphone 140 is configured to perform voltage division and attenuation with the second voltage driving circuit 130 when the electret microphone 140 operates, so that the second voltage driving circuit 130 outputs a second AC signal to the MCU 110. If the electret microphone 140 fails, the first AC signal will inevitably attenuate after passing through the electret microphone 140 and the second voltage driving circuit 130.
[0071] The MCU 110 is further configured to determine whether the electret microphone 140 fails according to the second AC signal.
[0072] When the MCU 110 determines that the amplitude of the output second AC signal is small, for example, outside a certain range, the MCU 110 can determine that the electret microphone has failed. At this time, it is considered that the attenuation amplitude of the first AC signal being attenuated to the second AC signal is large.
[0073] Therefore, the present application can perform self-check on the electret microphone in the glass break detector, without the need to cooperate with additional sound-emitting devices such as speakers or buzzers, which can reduce the volume and cost of the glass break detector and reduce the implementation complexity.
[0074] Combined with the above self-check principle, the self-check method for the electret microphone in the glass break detector of the present application is introduced below, as Figure 3 shown, the method includes:
[0075] 301. The glass break detector controls the MCU 110 to output a DC signal to the first voltage driving circuit 120 and the bias circuit 170.
[0076] Generally, the MCU 110 outputs direct current through the DAC 1, and outputs direct current to the electret microphone 140 through the first voltage driving circuit 120. This direct current is equivalent to the supply current of the electret microphone 140. When driving the electret microphone 140 to work, the electret microphone 140 can collect sound signals in real time, and convert the sound signals into voltage signals through the capacitive sound-electric conversion device in the electret microphone 140. This voltage signal will be transmitted to the ADC in the MCU 110 through the second voltage driving circuit, and the ADC will convert the received voltage signal into a digital signal to determine the received voltage value.
[0077] Since the amplitude of the voltage signal output by the electret microphone may be small, when the DAC2 in the MCU outputs direct current to the bias circuit 170, the bias circuit 170 can provide a bias voltage for the voltage signal output by the electret microphone while providing a stable direct current, so that the amplitude of the biased voltage signal will not be too small when it is transmitted to the ADC through the second voltage driving circuit 130.
[0078] 302. The glass break detector controls the MCU 110 to collect the voltage signal output by the electret microphone 140, and determines the self-check process of the electret microphone 140 to be started according to the voltage signal.
[0079] For example, the MCU 110 can collect the voltage value after ADC conversion every 1 s. If the voltage value is greater than the preset voltage value, such as greater than 1 V, within a period of time, the MCU 110 can determine that the electret microphone 140 is not failed. If the voltage value is less than 1 V within this period of time, the MCU 110 can determine that the electret microphone may be failed, and the self-check process of the electret microphone 140 needs to be started. For example, the period of time here is 1 hour or 2 hours, etc. When entering the self-check process of the electret microphone 140, it can be considered that the electret microphone 140 is in the static working mode.
[0080] 303. The glass break detector controls the MCU 110 to output a first alternating current signal to the first voltage driving circuit 120, and controls the first voltage driving circuit 120 to output the first alternating current signal to the electret microphone 140 without attenuation.
[0081] In some embodiments, the first alternating current signal can be understood as a control signal with a specific frequency and amplitude. The waveform of the control signal can be a square wave, a triangular wave or a sine wave, etc., which is not limited in this application.
[0082] In some embodiments, the first voltage driving circuit 120 and the second voltage driving circuit 130 of this application may include one of the following devices: operational amplifier voltage follower, triode voltage follower, field effect transistor voltage follower, triode totem pole push-pull drive or field effect transistor totem pole push-pull drive, etc.
[0083] When the first AC signal reaches the first voltage driving circuit 120, there will be signal attenuation. The first voltage driving circuit 120 can amplify the current when the first AC signal reaches the first voltage driving circuit 120 after attenuation, and send a pulse signal to the electret microphone to drive the electret microphone 140 to work. The pulse signal received by the electret microphone 140 is the same as the AC signal.
[0084] Exemplarily, the DAC1 outputs a triangular wave with an amplitude of 5V. When it reaches the input terminal h of the electret microphone, it is still a triangular wave with an amplitude not reaching 5V.
[0085] 304. The glass break detector controls the operation of the electret microphone 140, so that when the electret microphone 140 is working, it performs voltage division attenuation with the second voltage driving circuit, and the second voltage driving circuit outputs a second AC signal to the microprocessor.
[0086] For example, when the electret microphone 140 receives a first AC signal with a specific frequency and an amplitude of 5V, it is equivalent to receiving a controlled pulse power supply, and the frequency and amplitude of the pulse power supply are consistent with the frequency and amplitude of the first AC signal.
[0087] In some embodiments, the electret microphone 140 includes a first capacitor, and a second capacitor is coupled to the input side of the second voltage driving circuit 130. When the electret microphone 140 fails, the first capacitor and the second capacitor are used to perform voltage division attenuation on the first AC signal, and attenuate the first AC signal into a second AC signal. The second voltage driving circuit 130 is similar to the first voltage driving circuit 120, and can also play the role of voltage buffering and isolation, that is, current amplification, and transmit the second AC signal to the ADC of the MCU110 without attenuation.
[0088] Here, it can be understood that: if the electret microphone 140 fails, the capacitance value of the first capacitor inside the electret microphone 140 will change, and the signal level of the electret microphone 140 will also change with the change of the capacitance value of the first capacitor. At this time, the first capacitor of the electret microphone 140 and the second capacitor of the second voltage driving circuit 130 are equivalent to being connected in series, and when capacitors are connected in series, they will play the role of voltage division attenuation, and attenuate the first AC signal into a second AC signal and output it to the MCU110.
[0089] Thus, when the electret microphone 140 is in the static working mode, the first AC signal and the second AC signal have the same frequency, but the amplitude of the second AC signal is less than or equal to the amplitude of the first AC signal. Among them, the attenuation multiple of the first AC signal is related to the capacitance values of the first capacitor and the second capacitor. When the capacitance value changes, the attenuation multiple will also change, and the amplitude of the second AC signal output to the ADC will also change.
[0090] In some embodiments, if the electret microphone fails, the capacitance value of the capacitor in the electret microphone will also change, and the level of the electret microphone will also change. However, considering that the capacitance value of the capacitor in the electret microphone is small, the attenuation amplitude of the alternating current signal by the electret microphone during normal operation is small, and there is little difference from the non-attenuated waveform when the electret microphone is short-circuited, so misdetection may occur. Therefore, the glass break detector in the present application is also provided with a bias circuit 170 for increasing the attenuation of the alternating current signal during self-check of the normally operating electret microphone 140.
[0091] When the glass break detector further includes a bias circuit 170, the bias circuit 170 is used to provide a stable direct current to provide a bias voltage for the alternating current signal output by the electret microphone 140. The voltage provided by the bias circuit 170 here is equivalent to a voltage reference when the electret microphone 140 is in a quiet operating mode.
[0092] Exemplarily, it is assumed that when the self-check process is not started, the DAC1 outputs a direct current of 2V to supply power to the electret microphone 140, and the DAC2 outputs a direct current bias voltage of 0.5V. If the electret microphone 140 does not collect a sound signal, the ADC will receive a direct current signal of 0.5V. If the self-check process is started, the second alternating current signal received by the ADC is an alternating current waveform with a reference of 0.5V, and the amplitude fluctuates up and down around 0.5V.
[0093] Among them, the bias circuit 170 in the present application may include a combination of resistors, capacitors or resistors and capacitors and field effect transistors (FETs), etc., and the present application does not make a limitation.
[0094] In some embodiments, if the bias circuit 170 includes a third capacitor, then the first capacitor in the electret microphone 140, the second capacitor in the second voltage driving circuit 130, and the third capacitor will all play a role in voltage division and attenuation. These three capacitors form a capacitor network, and the signal discrimination is better and the attenuation degree is greater. It can be understood that the second capacitor and the third capacitor are in parallel and then in series with the first capacitor here.
[0095] Specifically, whether to add a capacitor to the bias circuit 170 can be determined according to the type of the electret microphone 140. If the signal discrimination of some electret microphones is high, or in other words, the percentage of signal attenuation is large, the capacitor may not be added to the bias circuit 170; if the signal discrimination of some electret microphones is low, or in other words, the percentage of signal attenuation is small, the capacitor may be added to the bias circuit 170 to further attenuate the signal output by the electret microphone.
[0096] 305. The glass break detector determines whether the electret microphone fails according to the received second AC signal.
[0097] In some embodiments, the MCU 110 may be specifically configured to:
[0098] Perform analog-to-digital conversion on the second AC signal, sample the amplitude of the signal after analog-to-digital conversion, and determine the maximum amplitude and the minimum amplitude corresponding to the second AC signal.
[0099] When the maximum amplitude is within the first threshold range and the minimum amplitude is within the second threshold range, it is determined that the electret microphone passes the detection.
[0100] When the maximum amplitude is not within the first threshold range or the minimum amplitude is not within the second threshold range, it is determined that the electret microphone fails the detection. The electret microphone failing the detection indicates that the electret microphone fails.
[0101] Exemplarily, as Figure 4 shown, assuming that the first AC signal includes 5 consecutive triangular wave signals with an amplitude of, when these 5 triangular wave signals reach the ADC after passing through the capacitance voltage division of the electret microphone 140, the bias circuit 170, and the second voltage drive circuit 130, the frequency of these 5 triangular wave signals may not change, but the amplitude will attenuate, and the amplitudes of these 5 triangular wave signals after attenuation may not be exactly the same. At this time, the maximum amplitude and the minimum amplitude of the amplitudes in the attenuated triangular wave signals can be taken, the maximum amplitude is compared with the first threshold range, and the minimum amplitude is compared with the second threshold range.
[0102] Assume that the first threshold range is (1.8V, 2.1V) and the second threshold range is (0.9V, 1.1V). As Figure 4 shown, the maximum amplitude is 2V and the minimum amplitude is 1V. The maximum amplitude is within the first threshold range and the minimum amplitude is also within the second threshold range. The MCU 110 may determine that the microphone detection passes this time.
[0103] Assume that the maximum amplitude is 5V and the minimum amplitude is 0V. At this time, it can be determined that the maximum amplitude is not within the first threshold range and the minimum amplitude is not within the second threshold range, and it is determined that the electret microphone 140 fails the detection. Moreover, when the second AC signal received by the ADC has the same amplitude and frequency as the first AC signal, it can be determined that the fault type of the electret microphone 140 is a short circuit.
[0104] Assume again that the amplitude of the second AC signal received by the ADC is very small, almost a very small amplitude centered on the bias voltage, or in other words, the received signal is the bias voltage signal, for example, 2.5V. At this time, in addition to determining that the amplitude of the second AC signal is not within the first threshold range and the second threshold range, it can also be determined that the failure type of the electret microphone 140 is an open circuit.
[0105] Assume again that when the maximum amplitude of the second AC signal received by the ADC is not within the first threshold range, or the minimum amplitude is not within the second threshold range, the MCU 110 can determine that the failure type of the electret microphone 140 is poor sound signal acquisition effect, etc.
[0106] In some embodiments, in order to avoid false detection in the result of a single self-check process, the present application can also perform multiple self-check processes, and there is a time interval between two adjacent self-check processes.
[0107] Therefore, the MCU 110 of the present application can also be specifically configured to:
[0108] Trigger the first voltage drive circuit 120 to input multiple AC signals to the electret microphone 140, the multiple AC signals include the first AC signal, and there is a time interval between adjacent AC signals in the multiple AC signals;
[0109] According to the attenuated AC signals output by the multiple AC signals received by the MCU 110 via the electret microphone 140 and the second voltage drive circuit 130, and the first threshold range and the second threshold range, determine the number of times the electret microphone 140 fails the detection;
[0110] When it is determined that the number of times the electret microphone 140 fails the detection is greater than or equal to a preset number of times, determine that the electret microphone 140 fails.
[0111] That is to say, after each self-check process is completed, the present application can also judge the current self-check times. If the preset number of times M has been reached, and among these M times, the result of N times is that the detection fails, then it can be considered that the electret microphone 140 fails. M and N are integers greater than or equal to 1.
[0112] For example, the time interval is 1s, M is 6, and N is 4. After the DAC1 outputs 5 triangular waves with specific frequencies and amplitudes, if the time interval after completing this self-check process reaches 1s, as Figure 5 shown, the DAC1 outputs 5 triangular waves with specific frequencies and amplitudes again. Until after the 6th output of 5 triangular waves and the self-check process is completed, if the self-check results of 4 times indicate that the detection fails, the MCU 110 determines that the electret microphone fails.
[0113] In some other embodiments, the glass break detector may control the microprocessor to determine whether the electret microphone fails according to the attenuation amplitude of the second AC signal relative to the first AC signal.
[0114] Exemplarily, if the frequency and amplitude of the second AC signal received by the microprocessor at the ADC are the same as those of the first AC signal, or the attenuation amplitude is within a very small range, that is, the second AC signal has no attenuation relative to the first AC signal, it can be considered that the electret microphone is in a short - circuit state at this time.
[0115] If the microprocessor cannot receive the second AC signal at the ADC, it can be considered that the second AC signal is 0 at this time, and then it is considered that the electret microphone is in an open - circuit state;
[0116] If the attenuation amplitude of the second AC signal relative to the first AC signal is within the third threshold range, for example, the attenuation amplitude is greater than or equal to the third threshold and less than or equal to the fourth threshold, it is determined that the electret microphone has not failed; if the attenuation amplitude of the second AC signal relative to the first AC signal is not within the third threshold range, for example, the attenuation amplitude is less than the third threshold or greater than the fourth threshold, the microprocessor determines that the electret microphone has failed.
[0117] Exemplarily, the third threshold range is 7% to 50% of the amplitude of the first AC signal, that is, the above - mentioned third threshold is 7% of the amplitude of the first AC signal, and the fourth threshold is 50% of the amplitude of the first AC signal. That is to say, when the attenuation amplitude is understood as a percentage of the amplitude of the first AC signal, if 7% ≤ attenuation amplitude ≤ 50%, it is considered that the electret microphone has not failed; if the attenuation amplitude < 7%, it can be considered that the electret microphone is in a short - circuit state at this time, or the attenuation amplitude > 50%, it is considered that the electret microphone is in an open - circuit state, or the electret microphone cannot work properly due to environmental factors, etc.
[0118] Thus, for the glass break detector of the present application, its self - inspection range includes the electret microphone itself. The circuit structure used when normally powering the electret microphone is the same as the circuit structure used to start the self - inspection process of the electret microphone, and there is no need to use sound - producing devices such as speakers or buzzers when self - inspecting the electret microphone, which saves costs.
[0119] Moreover, in the case of the same circuit structure, no specific self-checking pins are required, which can save circuits such as detection signal injection. That is to say, when the electret microphone is normally powered, the MCU can output a DC signal to the electret microphone through DAC1. The DC signal output by the first voltage driving module is the DC reference for the electret microphone. Once the self-checking process is started, the circuit structure remains unchanged, and only the DC signal output by DAC1 needs to be changed to an AC signal with a specific frequency. In this way, the components required for self-checking can be reduced, the cost can be lowered, the space occupation can be reduced, and it is more suitable for the application scenario of security detectors.
[0120] In addition, the bias circuit in this application can greatly improve the discrimination between the short-circuit abnormality and normal operation of the electret microphone. That is, the bias circuit with a capacitor used in this application can increase the attenuation of the AC signal during the self-check of the normally operating microphone.
[0121] It can be understood that in order to implement the above functions, the glass break detector includes the corresponding hardware and / or software modules for executing each function. Combining the algorithm steps of each example described in the embodiments disclosed herein, this application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the way of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to exceed the scope of this application.
[0122] This embodiment can divide the functional modules of the glass break detector according to the above method examples. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is illustrative, only a logical function division, and there can be other division methods in actual implementation.
[0123] In the case of dividing each functional module corresponding to each function, Figure 6 shows a possible composition schematic diagram of the glass break detector 60 involved in the above embodiment, as Figure 6 shown, the glass break detector 60 may include: a microprocessor MCU, a voltage driving circuit (a first voltage driving circuit and a second voltage driving circuit), an electret microphone, and a bias circuit. Among them, when the microcontroller executes the self-checking process of the electret microphone, the MCU can functionally include a power control unit 601, a signal sampling and processing unit 602, a processing result determination unit 603, and a processing times monitoring unit 604.
[0124] Among them, the power control unit 601 can be used to support the glass break detector 60 to perform the above-mentioned steps 301, 303, steps, etc., and / or other processes of the technologies described herein.
[0125] The signal sampling and processing unit 602 can be used to support the glass break detector 60 to perform the above-mentioned steps 302, 304, etc., and / or other processes of the technologies described herein.
[0126] The processing result determination unit 603 can be used to support the glass break detector 60 to perform the above-mentioned step 305, etc., and / or other processes of the technologies described herein.
[0127] The processing times monitoring unit 604 can be used to support the glass break detector 60 to perform the process of determining the self-check times.
[0128] It should be noted that all relevant contents of the steps involved in the above method embodiments can be cited in the function descriptions of the corresponding functional modules, and will not be elaborated here.
[0129] The glass break detector 60 provided in this embodiment is used to execute the above-mentioned test method of the glass break detector, so the same effect as the above implementation method can be achieved.
[0130] In the case of adopting an integrated unit, the microprocessor in the glass break detector 60 may include an analog-to-digital conversion module, a digital-to-analog conversion module, a processing module, and a storage module. Among them, the processing module can be used to control and manage the actions of the glass break detector 60. For example, it can be used to support the glass break detector 60 to perform the steps executed by the above-mentioned power control unit 601, signal sampling and processing unit 602, processing result determination unit 603, and processing times monitoring unit 604. The storage module can be used to support the glass break detector 60 to store program codes, data, etc. The analog-to-digital conversion module can include, for example, the ADC described above, and the digital-to-analog conversion module can include, for example, the DAC1 and DAC2 described above.
[0131] An embodiment of the present application also provides a computer storage medium, in which computer instructions are stored. When the computer instructions run on an electronic device, the electronic device is enabled to execute the above-mentioned relevant method steps to implement the test method of the glass break detector in the above embodiment.
[0132] An embodiment of the present application also provides a computer program product. When the computer program product runs on a computer, the computer is enabled to execute the above-mentioned relevant steps to implement the test method of the glass break detector executed by the electronic device in the above embodiment.
[0133] In addition, an embodiment of the present application further provides a device, which may specifically be a chip, component or module. The device may include a processor and a memory connected to each other. The memory is used to store computer-executable instructions. When the device runs, the processor may execute the computer-executable instructions stored in the memory, so that the chip executes the test method of the glass break detector executed by the electronic device in the above method embodiments.
[0134] Among them, the electronic device, glass break detector, computer storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be elaborated here.
[0135] Through the description of the above embodiments, those skilled in the art can understand that for the convenience and simplicity of description, only the above division of each functional module is used as an example. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
[0136] In several embodiments provided in the present application, it should be understood that the disclosed device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection may be through some interfaces. The indirect coupling or communication connection of the device or unit may be in an electrical, mechanical or other form.
[0137] The unit described as a separated component may or may not be physically separated. The component displayed as a unit may be a physical unit or multiple physical units, that is, it may be located in one place, or may be distributed to multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0138] In addition, each functional unit in the various embodiments of the present application may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0139] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on such an understanding, the technical solution of the embodiments of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The software product is stored in a storage medium and includes several instructions for causing a device (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application. The foregoing storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read only memory (ROM), random access memory (RAM), magnetic disks, or optical discs.
[0140] The above content is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of changes or substitutions, which should all be covered by the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A glass break detector, characterized in that, it includes a microprocessor, a first voltage drive circuit, a second voltage drive circuit and an electret microphone, wherein: the microprocessor is used to send a first AC signal to the first voltage drive circuit; the first voltage drive circuit is used to send a pulse signal to the electret microphone to drive the electret microphone to work, and the pulse signal received by the electret microphone is the same as the first AC signal; the electret microphone is used to perform voltage division attenuation with the second voltage drive circuit when the electret microphone is working, so that the second voltage drive circuit outputs a second AC signal to the microprocessor; the microprocessor is further used to determine whether the electret microphone fails according to the second AC signal or the attenuation amplitude of the second AC signal relative to the first AC signal.
2. The glass break detector according to claim 1, characterized in that, the first AC signal and the second AC signal have the same frequency, and the amplitude of the second AC signal is less than or equal to the amplitude of the first AC signal.
3. The glass break detector according to claim 1 or 2, characterized in that, the electret microphone includes a first capacitor, and a second capacitor is coupled to the input side of the second voltage drive circuit; when the electret microphone fails, the first capacitor and the second capacitor are used to perform voltage division attenuation on the first AC signal and attenuate the first AC signal into the second AC signal.
4. The glass break detector according to claim 3, characterized in that, when the microprocessor is used to determine whether the electret microphone fails according to the second AC signal, the microprocessor specifically is used for: performing analog-to-digital conversion on the second AC signal, sampling the amplitude of the signal after analog-to-digital conversion, and determining the maximum amplitude and the minimum amplitude corresponding to the second AC signal; when the maximum amplitude is within the first threshold range and the minimum amplitude is within the second threshold range, it is determined that the electret microphone passes the detection; when the maximum amplitude is not within the first threshold range, or the minimum amplitude is not within the second threshold range, it is determined that the electret microphone fails to pass the detection, and the electret microphone failing to pass the detection indicates that the electret microphone fails.
5. The glass break detector according to claim 4, characterized in that, the microprocessor specifically is used for: triggering the first voltage drive circuit to input a plurality of AC signals to the electret microphone, the plurality of AC signals include the first AC signal, and there is a time interval between adjacent AC signals in the plurality of AC signals; determining the number of times the electret microphone fails to pass the detection according to the attenuated AC signals output by the plurality of AC signals received by the microprocessor via the electret microphone and the second voltage drive circuit, and the first threshold range and the second threshold range; when it is determined that the number of times the electret microphone fails to pass the detection is greater than or equal to a preset number of times, it is determined that the electret microphone fails.
6. The glass breakage detector according to claim 3, wherein, when the microprocessor is used to determine whether the electret microphone fails according to the attenuation amplitude of the second AC signal relative to the first AC signal, the microprocessor is specifically configured to: determine whether the attenuation amplitude is within a third threshold range; when the attenuation amplitude is within the third threshold range, determine that the electret microphone has not failed; when the attenuation amplitude is not within the third threshold range, determine that the electret microphone has failed.
7. The glass breakage detector according to claim 1, wherein, the glass breakage detector further includes a bias circuit; the bias circuit is used to provide a stable direct current to provide a bias voltage for the AC signal output by the electret microphone; a first output terminal of the microprocessor is coupled to an input terminal of the first voltage driving circuit, a second output terminal of the microprocessor is coupled to an input terminal of the bias circuit, and a first input terminal of the microprocessor is coupled to an output terminal of the second voltage driving circuit; an output terminal of the first voltage driving circuit is coupled to a first input terminal of the electret microphone; a first output terminal of the electret microphone is coupled to an input terminal of the second voltage driving circuit; an output terminal of the bias circuit is coupled to an output terminal of the electret microphone and an input terminal of the second voltage driving circuit.
8. A test method for a glass breakage detector, wherein, the glass breakage detector includes a microprocessor, a first voltage driving circuit, a second voltage driving circuit, and an electret microphone, and the method includes: the glass breakage detector controls the microprocessor to send a first AC signal to the first voltage driving circuit, triggering the first voltage driving circuit to send a pulse signal to the electret microphone to drive the electret microphone to work; the pulse signal received by the electret microphone is the same as the first AC signal; the glass breakage detector controls the electret microphone to perform voltage division attenuation with the second voltage driving circuit during operation, so that the second voltage driving circuit outputs a second AC signal to the microprocessor; the glass breakage detector controls the microprocessor to determine whether the electret microphone fails according to the second AC signal or the attenuation amplitude of the second AC signal relative to the first AC signal.
9. The method according to claim 8, wherein, the first AC signal and the second AC signal have the same frequency, and the amplitude of the second AC signal is less than or equal to the amplitude of the first AC signal.
10. The method according to claim 8 or 9, wherein, the electret microphone includes a first capacitor, and a second capacitor is coupled to an input side of the second voltage driving circuit; when the electret microphone fails, the first capacitor and the second capacitor are used to perform voltage division attenuation on the first AC signal and attenuate the first AC signal into the second AC signal.
11. The method according to claim 10, wherein, The glass break detector controls the microprocessor to determine whether the electret microphone fails according to the second AC signal, including: Performing analog-to-digital conversion on the second AC signal, sampling the amplitude of the signal after analog-to-digital conversion, and determining the maximum amplitude and the minimum amplitude corresponding to the second AC signal; When the maximum amplitude is within the first threshold range and the minimum amplitude is within the second threshold range, it is determined that the electret microphone passes the detection; When the maximum amplitude is not within the first threshold range or the minimum amplitude is not within the second threshold range, it is determined that the electret microphone fails to pass the detection, and the electret microphone failing to pass the detection indicates that the electret microphone fails.
12. The method according to claim 11, wherein, the method further includes: Triggering the first voltage drive circuit to input a plurality of AC signals to the electret microphone, the plurality of AC signals including the first AC signal, and there is a time interval between adjacent AC signals in the plurality of AC signals; According to the attenuated AC signals output by the plurality of AC signals received by the microprocessor via the electret microphone and the second voltage drive circuit, and the first threshold range and the second threshold range, determining the number of times the electret microphone fails to pass the detection; When it is determined that the number of times the electret microphone fails to pass the detection is greater than or equal to a preset number of times, it is determined that the electret microphone fails.
13. The method according to claim 10, wherein, The glass break detector controls the microprocessor to determine whether the electret microphone fails according to the attenuation amplitude of the second AC signal relative to the first AC signal, including: Determining whether the attenuation amplitude is within a third threshold range; When the attenuation amplitude is within the third threshold range, it is determined that the electret microphone does not fail; When the attenuation amplitude is not within the third threshold range, it is determined that the electret microphone fails.
14. A computer-readable storage medium, wherein, stores computer instructions, and when the computer instructions run on an electronic device, the electronic device is caused to execute the method according to any one of claims 8-13 above.
Citation Information
Patent Citations
Electret microphone current test circuit and test method thereof
CN107167649A
Microphone
CN205847598U