WO2016004897A1 - Audio insert automatic wake-up device and audio insert automatic wake-up method - Google Patents

Audio insert automatic wake-up device and audio insert automatic wake-up method Download PDF

Info

Publication number
WO2016004897A1
WO2016004897A1 PCT/CN2015/083784 CN2015083784W WO2016004897A1 WO 2016004897 A1 WO2016004897 A1 WO 2016004897A1 CN 2015083784 W CN2015083784 W CN 2015083784W WO 2016004897 A1 WO2016004897 A1 WO 2016004897A1
Authority
WO
WIPO (PCT)
Prior art keywords
pin
audio
circuit
wake
automatic wake
Prior art date
Application number
PCT/CN2015/083784
Other languages
French (fr)
Chinese (zh)
Inventor
刘士影
Original Assignee
国民技术股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 国民技术股份有限公司 filed Critical 国民技术股份有限公司
Publication of WO2016004897A1 publication Critical patent/WO2016004897A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Definitions

  • the present invention relates to the field of electronics, and in particular to an audio insertion automatic wake-up device and an audio insertion automatic wake-up method.
  • miniaturized mobile terminals such as mobile phones, tablet computers and handheld computers have gradually become mainstream consumer products in the market due to their convenience.
  • people's daily lives are inseparable from mobile terminals such as smart phones and tablet computers.
  • These mobile terminals are often audio terminal devices with audio interfaces, and data transmission and interaction are often required between them.
  • these mobile terminals generally It only contains two interfaces of USB interface and audio interface, and the USB interface of the mobile terminal belongs to the slave device interface, and its use is limited. Therefore, how to use the audio interface for data transmission and interaction has become a research hotspot.
  • the audio interface of the existing mobile terminal is generally a four-segment audio interface, including a left channel pin, a right channel pin, a MIC pin and a GND pin, wherein the left channel pin and the right channel
  • the pin connection order is fixed, and the connection order of the MIC pin and the GND pin is not fixed.
  • the MIC pin and GND pin are undefined.
  • existing terminals cannot automatically wake up when they are connected to each other by using an audio interface, which is disadvantageous. For energy savings.
  • existing terminals cannot achieve active common ground between the two when they are connected to each other by using an audio interface.
  • the technical problem to be solved by the present invention is to provide an audio insertion automatic wake-up device and an audio insertion automatic wake-up method, which can solve the problem that the system cannot automatically recognize the audio terminal device after detecting the insertion of the audio terminal device in the prior art by using the audio interface communication.
  • the connection order of the MIC pin and the GND pin does not automatically wake up, and the technical problems of the common ground cannot be automatically realized.
  • an audio insertion automatic wake-up device for connecting with an audio terminal device and performing data interaction or transmission, including: an audio interface, a detection circuit, and a control circuit.
  • the audio interface is used for connecting to an audio interface of the audio terminal device, wherein the audio interface includes a first pin, a second pin, a third pin, and a fourth pin, and the first pin and the second pin respectively serve as Left channel pin and right channel pin, and one of the third pin and the fourth pin acts as a microphone pin (MIC pin) and the other acts as a ground pin (GND pin);
  • the detecting circuit comprises two input ends and two output ends, wherein two input ends of the detecting circuit are respectively connected to the third pin and the fourth pin in the audio interface, so as to be connected to the audio terminal device in the audio insertion automatic wake-up device When the detection circuit processes the electrical signals of the two inputs, the wake-up signal is output to the control circuit, and the detection circuit automatically connects the ground pin to the
  • the terminal device and the audio insertion automatic wake-up device are common; the control circuit is connected to the two outputs of the detection circuit to receive the wake-up signal output by the detection circuit to make the system enter a normal working state, and detect and identify the third pin and the fourth pin. Which is the microphone pin, which is the ground pin, and the control circuit is further connected to the first pin and the second pin of the audio interface to process the received audio signal.
  • the audio insertion automatic wake-up device further includes a power supply circuit that connects the detection circuit and the control circuit to supply power to the detection circuit and the control circuit.
  • the detecting circuit comprises a common ground circuit and a voltage comparing circuit
  • the common ground circuit is connected to the third pin and the fourth pin in the audio interface through the two input ends of the detecting circuit to insert the automatic wake-up device and the audio in the audio
  • the third pin or the fourth pin as the ground pin is automatically connected to the ground
  • the voltage comparison circuit is disposed between the two input ends and the two output ends of the detecting circuit to automatically wake up in the audio insertion.
  • the electrical signals of the two input terminals of the detection circuit are processed to output a wake-up signal to the control circuit to wake up the control circuit to bring the system into a normal working state.
  • the common ground circuit includes a first switching element including a control end, a first path end, and a second path end, wherein the control end of the first switching element is connected to the second end of the detecting circuit An input end, a first path end of the first switching element is connected to the first input end of the detecting circuit, and a second path end of the first switching element is grounded;
  • the second switching element includes a control end, a first path end and a second path An end, wherein a control end of the second switching element is connected to the first input end of the detecting circuit, a first path end of the second switching element is connected to the second input end of the detecting circuit, and a second path end of the second switching element Grounding; wherein the first switching element and the second switching element are transistors of the same type.
  • the first switching element and the second switching element are NMOS transistors.
  • the voltage comparison circuit includes: a first voltage comparator and a second voltage comparator, the first voltage comparator includes a non-inverting input terminal, an inverting input terminal, and an output terminal, wherein the positive phase input terminal of the first voltage comparator Connecting the first input end of the detecting circuit, the inverting input end of the first voltage comparator is connected to the reference voltage, and the output end of the first voltage comparator is used as the first output end of the detecting circuit; the second voltage comparator comprises the positive phase input a terminal, an inverting input terminal and an output terminal, wherein a non-inverting input terminal of the second voltage comparator is connected to the second input terminal of the detecting circuit, and an inverting input terminal of the second voltage comparator is connected to the reference voltage, and the second voltage is compared
  • the output of the device acts as the second output of the detection circuit.
  • the control circuit comprises a filter circuit, an analog switch circuit, a gain amplifying circuit and an MCU main control circuit, and the filter circuit is connected to the first pin and the second pin of the audio interface to connect with the audio terminal device in the audio insertion automatic wake-up device Receiving, by the first pin and the second pin of the audio interface, the audio signal output by the audio terminal device and filtering the audio signal; the analog switch circuit is connected to the filter circuit for performing the audio insertion automatic wake-up device and the audio terminal device When connected, the audio signal output by the left channel pin and the right channel pin of the audio terminal device is received by the first and second pins of the filter circuit and the audio interface; the gain amplifying circuit is connected to the analog switch a circuit for amplifying the received audio signal; the MCU main control circuit is connected to the gain amplifier circuit, the analog switch circuit, and the third pin and the fourth pin of the audio interface, wherein the MCU main control circuit is used for detecting and identifying the third Which of the pin and the fourth pin acts as a microphone pin, which acts as
  • an audio insertion automatic wake-up method which comprises: connecting an audio interface of an audio terminal device with an audio interface of an audio insertion automatic wake-up device;
  • the detection circuit of the device processes the electrical signals of the two input terminals to output a wake-up signal, and automatically connects the ground pin to the ground by using the detection circuit to realize the audio terminal device and the audio insertion automatic wake-up device; using the audio insertion to automatically wake up
  • the control circuit of the device receives the wake-up signal to bring the system into a normal working state, and detects which of the third pin and the fourth pin of the audio interface is recognized as a microphone pin, which is used as a ground pin, and the audio is controlled by the control circuit.
  • the audio signals received by the first pin and the second pin of the interface are processed.
  • the voltage comparison circuit of the detection circuit processes the electrical signals of the two input ends of the detection circuit and outputs a wake-up signal to the control circuit.
  • control circuit is connected to the two output ends of the detecting circuit to receive the wake-up signal outputted by the detecting circuit to make the system enter the normal working state, and detect which of the third pin and the fourth pin is recognized as the microphone pin, which is As a ground pin.
  • the common ground circuit of the detecting circuit automatically connects the ground pin to the ground to realize the audio terminal device and the audio insertion automatic wake-up device.
  • the invention has the beneficial effects that the invention is different from the prior art, and the invention is connected to the third pin and the fourth pin in the audio interface through two input ends of the detecting circuit, and the automatic wake-up device and the audio terminal are inserted in the audio.
  • the detection circuit processes the electrical signals of the two input terminals to output a wake-up signal, and the detection circuit automatically connects the ground pin to the ground to realize the audio terminal device and the audio insertion automatic wake-up device, and the control circuit is detected according to the detection.
  • Electrical signal detection at the two outputs of the circuit identifies the third and fourth pins Which of them is used as a microphone pin and as a ground pin, thereby enabling recognition of a microphone pin and a ground pin, an automatic wake-up audio insertion automatic wake-up device, and an audio terminal device and an audio insertion automatic wake-up device.
  • FIG. 1 is a block diagram of an audio insertion automatic wake-up device of the present invention
  • FIG. 2 is a schematic diagram showing the circuit structure of the detecting circuit of FIG. 1;
  • FIG. 3 is a block diagram of the control circuit of Figure 1;
  • FIG. 4 is a flow chart of an audio insertion automatic wake-up method of the present invention.
  • FIG. 1 is a schematic diagram of a module of an audio insertion automatic wake-up device of the present invention
  • FIG. 2 is a schematic diagram of a circuit structure of the detection circuit of FIG. 1
  • FIG. 3 is a control circuit of FIG. Schematic diagram of the module.
  • the audio insertion automatic wake-up device is used for connecting with the audio terminal device for data interaction or transmission
  • the audio insertion automatic wake-up device includes: the power supply circuit 10, the audio interface 11, the detection circuit 12, and the control circuit 13.
  • the audio insertion automatic wake-up device may be an audio KEY, an access device, etc.
  • the audio insertion automatic wake-up device may also be other devices.
  • the audio terminal device may be a smart phone, a tablet computer, or the like. In other embodiments, other terminal devices with an audio interface may also be used.
  • the power supply circuit 10 is connected to the detection circuit 12 and the control circuit 13 to detect the circuit 12 Power is supplied to the control circuit 13.
  • the audio interface 11 is configured to be connected to an audio interface of the audio terminal device, wherein the audio interface 11 includes a first pin 111, a second pin 112, a third pin 113, and a fourth pin 114, and the first pin 111 And the second pin 112 serves as a left channel pin and a right channel pin, respectively, and one of the third pin 113 and the fourth pin 114 serves as a microphone pin (MIC pin), and the other As a ground pin (GND pin).
  • MIC pin microphone pin
  • GND pin ground pin
  • the left channel pin and the right channel pin are connected to each other regardless of the MIC pin and the GND pin in the audio terminal device, which are respectively the third reference in the audio interface 11 of the audio insertion automatic wake-up device.
  • the foot 113 and the fourth pin 114 form a connection.
  • the detection circuit 12 includes two input terminals 121, 122 and two output terminals 123, 124, wherein the two input terminals 121, 122 of the detection circuit are respectively connected to the third pin 113 and the fourth pin 114 in the audio interface 11. .
  • the detection circuit 12 includes a common ground circuit 20, a voltage comparison circuit 21, and a voltage input circuit 22.
  • the common ground circuit 20 is connected to the third pin 113 and the fourth pin 114 in the audio interface 11 through the two input terminals 121, 122 of the detecting circuit 12 to automatically connect when the audio insertion automatic wake-up device is connected to the audio terminal.
  • the third pin 113 or the fourth pin 114 which is a ground pin, is connected to the ground.
  • the common ground circuit 20 includes a first switching element N1 and a second switching element N2,
  • the first switching element N1 includes a control terminal 2011, a first path end 2012, and a second path end 2013.
  • the control terminal 2011 of the first switching element N1 is connected to the second input terminal 122 of the detection circuit 12, and the first path end 2012 of the first switching element N1 is connected to the first input terminal 121 of the detection circuit 12, preferably,
  • the first path end 2012 of a switching element N1 is connected to the first input terminal 121 via a third resistor R3 of the voltage input circuit 22, and the second path end 2013 of the first switching element N1 is grounded.
  • the second switching element N2 includes a control terminal 2021, a first path end 2022, and a second path end 2023.
  • the control terminal 2021 of the second switching element N2 is connected to the first input terminal 121 of the detection circuit 12, and the first path end 2022 of the second switching element N2 is connected to the second input terminal 122 of the detection circuit 12, preferably, The first path end 2022 of the second switching element N2 is connected to the second input terminal 122 through the fifth resistor R5 of the voltage input circuit 22, and the second path end 2023 of the second switching element N2 is grounded.
  • the first switching element N1 and the second switching element N2 are transistors of the same type.
  • the first switching element N1 and the second switching element N2 are NMOS transistors
  • the first path end 2012 of the first switching element N1 is the gate of the NMOS transistor
  • the second path end 2013 is the source
  • the control terminal 2014 is The drain
  • the first pass terminal 2022 of the second switching element N2 is the gate of the NMOS transistor
  • the second via terminal 2023 is the source
  • the control terminal 2024 is the drain.
  • the common ground circuit 20 automatically connects the ground pin to ground to implement the audio terminal device and the audio insertion automatic wake-up device.
  • the ground pin is grounded.
  • the common ground circuit 20 of the embodiment realizes automatic The ground pin is connected to ground.
  • the voltage comparison circuit 21 is disposed between the two input terminals 121, 122 and the two output terminals 123, 124 of the detection circuit 12 for pairing the two inputs of the detection circuit 12 when the audio insertion automatic wake-up device is connected to the audio terminal
  • the electrical signals of 121, 122 are processed to output a wake-up signal to the control circuit 13 to wake up the control circuit 13, thereby causing the system to enter a normal operating state.
  • the voltage comparison circuit 21 includes a first voltage comparator A, a second voltage comparator B, a reference voltage circuit 211, a fourth resistor R4, and a sixth resistor R6.
  • the first voltage comparator A comprises a non-inverting input, an inverting input and an output, wherein the non-inverting input of the first voltage comparator A is connected to the first input 121 of the detection circuit 12, preferably the first voltage
  • the non-inverting input of comparator A is coupled to first input 121 via a third resistor R3 of voltage input circuit 22.
  • the inverting input of the first voltage comparator A is connected to the reference voltage, and the output of the first voltage comparator A serves as the first output 123 of the detection circuit 12.
  • the second voltage comparator B includes a non-inverting input, an inverting input and an output, wherein the non-inverting input of the second voltage comparator B is coupled to the second input 122 of the detection circuit 12, preferably the second voltage
  • the non-inverting input terminal of the comparator B is connected to the second input terminal 122 through the fifth resistor R5 of the voltage input circuit 22, the inverting input terminal of the second voltage comparator B is connected to the reference voltage, and the output of the second voltage comparator B is connected. Terminal as detection circuit The second output 124 of 12.
  • the input terminal of the reference voltage circuit 211 is connected to the power supply circuit 10, and the output terminal of the reference voltage circuit 211 is connected to the inverting input terminals of the first voltage comparator A and the second voltage comparator B to provide a reference voltage.
  • the first input end 121 of the detecting circuit 12 is connected to the third pin 113 of the audio interface 11, and the second input end 122 of the detecting circuit 12 is connected to the fourth pin 114 of the audio interface 11.
  • the reference voltage circuit 211 includes a first resistor R1 and a second resistor R2.
  • the first end of the first resistor R1 is connected to the power supply circuit 10 as an input end of the reference voltage circuit 211, and the second end of the first resistor R2 is connected to the second end.
  • the first end of the resistor R2, the second end of the second resistor R2 is grounded, and the first end of the second resistor R2 serves as an output end of the reference voltage circuit 211.
  • the fourth resistor R4 is connected to the non-inverting input of the first voltage comparator A, and the fourth resistor R4 is a pull-down resistor.
  • the first end of the fourth resistor R4 is connected to the non-inverting input terminal, and the second end of the fourth resistor R4 is grounded.
  • the sixth resistor R6 is connected to the non-inverting input of the second voltage comparator B, and the sixth resistor R6 is a pull-down resistor.
  • the first end of the sixth resistor R6 is connected to the non-inverting input terminal, and the second end of the sixth resistor R6 is grounded.
  • the voltage input circuit 22 includes a first input terminal 121, a second input terminal 122, a third resistor R3, and a fifth resistor R5 of the detection circuit 12.
  • the first end 121 of the third resistor R3 serves as the first input 121 of the detection circuit 12, and the first end 122 of the fifth resistor R5 serves as the second input 122 of the detection circuit 12.
  • the second end of the third resistor R3 is connected to the non-inverting input of the first voltage comparator A.
  • the second end of the fifth resistor R5 and the positive phase input of the second voltage comparator B connection Preferably, the second end of the fifth resistor R5 and the positive phase input of the second voltage comparator B connection.
  • the resistances of the first voltage comparator A and the second voltage comparator B and the connection manner thereof may be changed according to actual needs, which is not limited by the present invention, for example, voltage input.
  • the circuit 22 and the reference voltage circuit 211 may have other configurations.
  • the control circuit 13 includes a filter circuit 30, an analog switch circuit 31, a gain amplifying circuit 32, and an MCU master circuit 33.
  • the control circuit 13 is further connected to the first pin 111 and the second pin 112 of the audio interface 11.
  • the filter circuit 30 is connected to the first pin 111 and the second pin 112 of the audio interface 11 to pass through the first pin 111 and the first of the audio interface 11 when the audio insertion automatic wake-up device is connected to the audio terminal device
  • the two pins 112 receive the audio signal output by the audio terminal device and filter the audio signal.
  • the analog switch circuit 31 is connected to the filter circuit 30 to receive the audio terminal by the filter circuit 30 and the first pin 111 and the second pin 112 of the audio interface 11 when the audio insertion automatic wake-up device is connected to the audio terminal device. Audio signal output from the left and right channel pins of the device.
  • the gain amplifying circuit 32 is connected to the analog switch circuit 31 to perform amplification processing on the received audio signal.
  • the MCU main control circuit 33 is connected to the gain amplifying circuit 32, the analog switch circuit 31, and the third pin 113 and the fourth pin 114 of the audio interface 11, wherein the MCU main control circuit 33 is for detecting and identifying the third pin 113 and the Which of the four pins 114 acts as a microphone pin, which acts as a ground pin, and passes through the third pin 113 and the fourth pin of the audio interface 11
  • the processed audio signal is transmitted to the audio terminal device.
  • the MCU main control circuit 33 can perform path selection control on the analog switch circuit 31 through an address selection signal, and the MCU main control circuit 33 can digitally control the gain amplifying circuit 32 to control its amplification factor.
  • the third pin 113 and the fourth pin are connected when the audio terminal device and the audio insertion automatic wake-up device are connected through the audio interface.
  • One of the 114s serves as a microphone pin (MIC pin) and the other as a ground pin (GND pin), but is not sure of the third pin 113 and the fourth pin 114 in the audio interface 11. Which is used as a microphone pin and which is used as a ground pin.
  • the control circuit 13 detects, based on the electrical signals of the two output terminals 123, 124 of the detection circuit 12, which of the third pin and the fourth pin is identified as a microphone, preferably based on the voltage signals of the two output terminals 123, 124.
  • the pin which is the ground pin, if the first output 123 of the detection circuit 12 is a high voltage signal or a pulse signal and the second output 124 of the detection circuit 12 is always a low voltage signal, the control circuit 13 identifies the third reference
  • the foot 113 is a microphone pin
  • the fourth pin 114 is a ground pin.
  • the control circuit 13 recognizes that the third pin 113 is a ground pin, and the fourth pin 114 is a microphone pin.
  • the detecting circuit 12 processes the electrical signals of the two input terminals 121 and 122 to output a wake-up signal.
  • the wake-up signal is a pulse signal or a high-power output of the first output terminal 123 or the second output terminal 124 of the detecting circuit 12.
  • Flat signal is used as a signal for detecting which of the third pin 113 and the fourth pin 114 is used as a ground pin, and also as a wake-up signal, and is controlled.
  • the circuit 13 is connected to the two output terminals 123, 124 of the detection circuit 12 to receive the wake-up signal output from the detection circuit 12 and the control circuit 13 is woken up after receiving the wake-up signal, thereby causing the system to enter a normal operating state, and the control circuit 13 is not receiving
  • the control enters a low power state when the wake-up signal is reached, thereby causing the system to enter a low power state, and finally the control circuit 13 processes the received audio signals from the first pin 111 and the second pin 112.
  • the system refers to a system in which an audio is inserted into an automatic wake-up device or a system in which an audio is inserted into an automatic wake-up device and an audio terminal device, which is not limited in this embodiment.
  • FIG. 4 is a flowchart of the audio insertion automatic wake-up method of the present invention.
  • the audio insertion automatic wake-up method includes the following steps:
  • Step S11 The audio interface of the audio terminal device is connected to the audio interface of the audio insertion automatic wake-up device.
  • Step S12 The detection circuit of the audio insertion automatic wake-up device processes the electrical signals of the two input terminals to generate a wake-up signal, and automatically connects the ground pin to the ground by using the detection circuit to realize the audio terminal device and the audio insertion automatic wake-up device. Ground.
  • step S12 the voltage comparison circuit 21 of the detection circuit 12 processes the electrical signals of the two input terminals of the detection circuit 12, and outputs a wake-up signal.
  • the common ground circuit 20 of the test circuit 12 automatically connects the ground pin to ground to implement the audio terminal device and the audio insertion automatic wake-up device.
  • Step S13 receiving a wake-up signal by using a control circuit of the audio insertion automatic wake-up device to cause the system to enter a normal working state, and detecting which of the third pin and the fourth pin of the audio interface is used as a microphone pin, which is used as a grounding lead And the control circuit is used to process the audio signals received by the first pin and the second pin of the audio interface.
  • the foregoing method may be implemented by the foregoing audio insertion automatic wake-up device, and details are not described herein again.
  • the present invention connects the third pin and the fourth pin of the audio interface respectively through two input ends of the detecting circuit, and detects the circuit pair when the audio insertion automatic wake-up device is connected with the audio terminal device.
  • the electrical signals of the two input terminals are processed to output a wake-up signal, and the detecting circuit automatically connects the grounding pin to the ground to realize the audio terminal device and the audio insertion automatic wake-up device, and the control circuit is based on the electric power of the two output terminals of the detecting circuit.
  • the signal detection identifies which of the third pin and the fourth pin is used as a microphone pin, and which serves as a ground pin, thereby enabling identification of the microphone pin and the ground pin, automatic wake-up audio insertion, automatic wake-up device, and implementation of the audio terminal device. And the audio is inserted into the automatic wake-up device.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Monitoring And Testing Of Transmission In General (AREA)

Abstract

The present invention discloses an audio insert automatic wake-up device, comprising: an audio interface, a detection circuit, and a control circuit. The two input terminals of the detection circuit are connected to the third pin and fourth pin of the audio interface, respectively; when the audio insert automatic wake-up device is connected to an audio terminal equipment, electrical signals of the two input terminals are processed, then a wake-up signal is outputted to the control circuit; the detection circuit automatically connects the ground pin to the ground; the control circuit connects to the two output terminals of the detection circuit to receive the wake-up signal outputted by the detection circuit, so that the system enters a normal operating state; of the third pin and fourth pin, the pin serving as the microphone pin and the pin serving as the ground pin are detected and identified. The present invention also discloses an audio insert automatic wake-up method; by means of the described scheme, the present invention accomplishes identification of a microphone pin and a ground pin, automatic wake-up of an audio insert automatic wake-up device, and an audio terminal equipment and audio insert automatic wake-up device having a common ground.

Description

音频插入自动唤醒装置以及音频插入自动唤醒方法Audio insertion automatic wake-up device and audio insertion automatic wake-up method 技术领域Technical field
本发明涉及电子领域,特别是涉及一种音频插入自动唤醒装置以及音频插入自动唤醒方法。The present invention relates to the field of electronics, and in particular to an audio insertion automatic wake-up device and an audio insertion automatic wake-up method.
背景技术Background technique
随着科技的进步和互联网的迅速崛起,手机、平板电脑以及掌上电脑等小型化移动终端因其便捷性逐渐成为市场主流消费产品。目前,人们的日常生活已经离不开智能手机、平板电脑等移动终端,该类移动终端往往为具有音频接口的音频终端设备,它们之间往往需要进行数据传输、交互,然而,这些移动终端一般仅包含USB接口和音频接口两个接口,而移动终端的USB接口属于从设备接口,使用受限,因此,如何利用音频接口进行数据传输和交互成为了研究热点。With the advancement of technology and the rapid rise of the Internet, miniaturized mobile terminals such as mobile phones, tablet computers and handheld computers have gradually become mainstream consumer products in the market due to their convenience. At present, people's daily lives are inseparable from mobile terminals such as smart phones and tablet computers. These mobile terminals are often audio terminal devices with audio interfaces, and data transmission and interaction are often required between them. However, these mobile terminals generally It only contains two interfaces of USB interface and audio interface, and the USB interface of the mobile terminal belongs to the slave device interface, and its use is limited. Therefore, how to use the audio interface for data transmission and interaction has become a research hotspot.
现有移动终端的音频接口,一般为四段式音频接口,包括左声道引脚、右声道引脚、MIC引脚和GND引脚四部分,其中,左声道引脚、右声道引脚连接顺序固定,而MIC引脚和GND引脚的连接顺序不固定,有两种通用标准,两种通用标准中MIC引脚和GND引脚连接顺序刚好相反,这样,就导致了音频接口MIC引脚和GND引脚不确定。且现有的终端在利用音频接口相互连接时无法自动唤醒,不利 于能源的节约。另外,现有的终端在利用音频接口相互连接时无法实现二者之间主动的共地。The audio interface of the existing mobile terminal is generally a four-segment audio interface, including a left channel pin, a right channel pin, a MIC pin and a GND pin, wherein the left channel pin and the right channel The pin connection order is fixed, and the connection order of the MIC pin and the GND pin is not fixed. There are two general standards. In the two general standards, the MIC pin and the GND pin are connected in the reverse order, thus resulting in an audio interface. The MIC pin and GND pin are undefined. Moreover, existing terminals cannot automatically wake up when they are connected to each other by using an audio interface, which is disadvantageous. For energy savings. In addition, existing terminals cannot achieve active common ground between the two when they are connected to each other by using an audio interface.
因此,需要提供一种音频插入自动唤醒装置以及音频插入自动唤醒方法,以解决上述问题。Therefore, there is a need to provide an audio insertion automatic wake-up device and an audio insertion automatic wake-up method to solve the above problem.
发明内容Summary of the invention
本发明主要解决的技术问题是提供一种音频插入自动唤醒装置以及音频插入自动唤醒方法,能够解决现有技术中利用音频接口通讯时在检测到音频终端设备插入后系统无法自动识别音频终端设备的MIC引脚和GND引脚的连接顺序、不能自动唤醒、不能自动实现共地的技术问题。The technical problem to be solved by the present invention is to provide an audio insertion automatic wake-up device and an audio insertion automatic wake-up method, which can solve the problem that the system cannot automatically recognize the audio terminal device after detecting the insertion of the audio terminal device in the prior art by using the audio interface communication. The connection order of the MIC pin and the GND pin does not automatically wake up, and the technical problems of the common ground cannot be automatically realized.
为解决上述技术问题,本发明采用的一个技术方案是:提供一种音频插入自动唤醒装置,用于与音频终端设备连接并进行数据交互或者传输,其包括:音频接口、检测电路以及控制电路。音频接口用于与音频终端设备的音频接口进行连接,其中,音频接口包括第一引脚、第二引脚、第三引脚和第四引脚,第一引脚和第二引脚分别作为左声道引脚和右声道引脚,而第三引脚和第四引脚中的一者作为麦克风引脚(MIC引脚),而另一者作为接地引脚(GND引脚);检测电路包括两个输入端和两个输出端,其中,检测电路的两个输入端分别连接音频接口中的第三引脚和第四引脚,以在音频插入自动唤醒装置与音频终端设备连接时,检测电路对其两个输入端的电信号进行处理后输出唤醒信号至控制电路,且检测电路自动将接地引脚连接至地以实现音频 终端设备和音频插入自动唤醒装置共地;控制电路连接检测电路的两个输出端以接收检测电路输出的唤醒信号以使得系统进入正常工作状态,并检测识别第三引脚和第四引脚中的何者作为麦克风引脚,何者作为接地引脚,且控制电路进一步连接音频接口的第一引脚和第二引脚以对接收的音频信号进行处理。In order to solve the above technical problem, a technical solution adopted by the present invention is to provide an audio insertion automatic wake-up device for connecting with an audio terminal device and performing data interaction or transmission, including: an audio interface, a detection circuit, and a control circuit. The audio interface is used for connecting to an audio interface of the audio terminal device, wherein the audio interface includes a first pin, a second pin, a third pin, and a fourth pin, and the first pin and the second pin respectively serve as Left channel pin and right channel pin, and one of the third pin and the fourth pin acts as a microphone pin (MIC pin) and the other acts as a ground pin (GND pin); The detecting circuit comprises two input ends and two output ends, wherein two input ends of the detecting circuit are respectively connected to the third pin and the fourth pin in the audio interface, so as to be connected to the audio terminal device in the audio insertion automatic wake-up device When the detection circuit processes the electrical signals of the two inputs, the wake-up signal is output to the control circuit, and the detection circuit automatically connects the ground pin to the ground to implement the audio. The terminal device and the audio insertion automatic wake-up device are common; the control circuit is connected to the two outputs of the detection circuit to receive the wake-up signal output by the detection circuit to make the system enter a normal working state, and detect and identify the third pin and the fourth pin. Which is the microphone pin, which is the ground pin, and the control circuit is further connected to the first pin and the second pin of the audio interface to process the received audio signal.
其中,音频插入自动唤醒装置进一步包括供电电路,该供电电路连接检测电路与控制电路,以为检测电路和控制电路进行供电。The audio insertion automatic wake-up device further includes a power supply circuit that connects the detection circuit and the control circuit to supply power to the detection circuit and the control circuit.
其中,检测电路包括共地电路和电压比较电路,共地电路通过检测电路的两个输入端而与音频接口中的第三引脚和第四引脚相连,以在音频插入自动唤醒装置与音频终端连接时,自动将作为接地引脚的第三引脚或者第四引脚连接至地;电压比较电路设置在检测电路的两个输入端和两个输出端之间,以在音频插入自动唤醒装置与音频终端连接时,对检测电路的两个输入端的电信号进行处理后输出唤醒信号至控制电路以唤醒控制电路从而使得系统进入正常工作状态。Wherein, the detecting circuit comprises a common ground circuit and a voltage comparing circuit, and the common ground circuit is connected to the third pin and the fourth pin in the audio interface through the two input ends of the detecting circuit to insert the automatic wake-up device and the audio in the audio When the terminal is connected, the third pin or the fourth pin as the ground pin is automatically connected to the ground; the voltage comparison circuit is disposed between the two input ends and the two output ends of the detecting circuit to automatically wake up in the audio insertion. When the device is connected to the audio terminal, the electrical signals of the two input terminals of the detection circuit are processed to output a wake-up signal to the control circuit to wake up the control circuit to bring the system into a normal working state.
其中,共地电路包括第一开关元件和第二开关元件,第一开关元件包括控制端、第一通路端和第二通路端,其中,第一开关元件的控制端连接至检测电路的第二输入端,第一开关元件的第一通路端连接至检测电路的第一输入端,而第一开关元件的第二通路端接地;第二开关元件包括控制端、第一通路端和第二通路端,其中,第二开关元件的控制端连接至检测电路的第一输入端,第二开关元件的第一通路端连接至检测电路的第二输入端,而第二开关元件的第二通路端接地;其中,第一开关元件和第二开关元件为同类型的晶体管。 The common ground circuit includes a first switching element including a control end, a first path end, and a second path end, wherein the control end of the first switching element is connected to the second end of the detecting circuit An input end, a first path end of the first switching element is connected to the first input end of the detecting circuit, and a second path end of the first switching element is grounded; the second switching element includes a control end, a first path end and a second path An end, wherein a control end of the second switching element is connected to the first input end of the detecting circuit, a first path end of the second switching element is connected to the second input end of the detecting circuit, and a second path end of the second switching element Grounding; wherein the first switching element and the second switching element are transistors of the same type.
其中,第一开关元件和第二开关元件为NMOS晶体管。Wherein, the first switching element and the second switching element are NMOS transistors.
其中,电压比较电路包括:第一电压比较器和第二电压比较器,第一电压比较器包括正相输入端、反相输入端和输出端,其中,第一电压比较器的正相输入端连接检测电路的第一输入端,第一电压比较器的反相输入端连接参考电压,而第一电压比较器的输出端作为检测电路的第一输出端;第二电压比较器包括正相输入端、反相输入端和输出端,其中,第二电压比较器的正相输入端连接检测电路的第二输入端,第二电压比较器的反相输入端连接参考电压,而第二电压比较器的输出端作为检测电路的第二输出端。The voltage comparison circuit includes: a first voltage comparator and a second voltage comparator, the first voltage comparator includes a non-inverting input terminal, an inverting input terminal, and an output terminal, wherein the positive phase input terminal of the first voltage comparator Connecting the first input end of the detecting circuit, the inverting input end of the first voltage comparator is connected to the reference voltage, and the output end of the first voltage comparator is used as the first output end of the detecting circuit; the second voltage comparator comprises the positive phase input a terminal, an inverting input terminal and an output terminal, wherein a non-inverting input terminal of the second voltage comparator is connected to the second input terminal of the detecting circuit, and an inverting input terminal of the second voltage comparator is connected to the reference voltage, and the second voltage is compared The output of the device acts as the second output of the detection circuit.
其中,控制电路包括滤波电路、模拟开关电路、增益放大电路以及MCU主控电路,滤波电路连接音频接口的第一引脚和第二引脚,以在音频插入自动唤醒装置与音频终端设备进行连接时,通过音频接口的第一引脚和第二引脚而接收音频终端设备输出的音频信号并对音频信号进行滤波;模拟开关电路连接滤波电路,以在音频插入自动唤醒装置与音频终端设备进行连接时,通过滤波电路和音频接口的第一引脚和第二引脚而分时接收音频终端设备的左声道引脚和右声道引脚而输出的音频信号;增益放大电路连接模拟开关电路,以对接收的音频信号进行放大处理;MCU主控电路连接增益放大电路、模拟开关电路和音频接口的第三引脚和第四引脚,其中,MCU主控电路用于检测识别第三引脚和第四引脚中的何者作为麦克风引脚,何者作为接地引脚,并通过音频接口的第三引脚和第四引脚而将处理后的音频信号传输至音频终端设备。 The control circuit comprises a filter circuit, an analog switch circuit, a gain amplifying circuit and an MCU main control circuit, and the filter circuit is connected to the first pin and the second pin of the audio interface to connect with the audio terminal device in the audio insertion automatic wake-up device Receiving, by the first pin and the second pin of the audio interface, the audio signal output by the audio terminal device and filtering the audio signal; the analog switch circuit is connected to the filter circuit for performing the audio insertion automatic wake-up device and the audio terminal device When connected, the audio signal output by the left channel pin and the right channel pin of the audio terminal device is received by the first and second pins of the filter circuit and the audio interface; the gain amplifying circuit is connected to the analog switch a circuit for amplifying the received audio signal; the MCU main control circuit is connected to the gain amplifier circuit, the analog switch circuit, and the third pin and the fourth pin of the audio interface, wherein the MCU main control circuit is used for detecting and identifying the third Which of the pin and the fourth pin acts as a microphone pin, which acts as a ground pin and passes through the audio interface The third pin and the fourth pin and the audio signal to the audio processing after the terminal device.
为解决上述技术问题,本发明采用的另一个技术方案是:提供一种音频插入自动唤醒方法,其包括:将音频终端设备的音频接口与音频插入自动唤醒装置的音频接口连接;音频插入自动唤醒装置的检测电路对其两个输入端的电信号进行处理后输出唤醒信号,且利用检测电路自动将接地引脚连接至地以实现音频终端设备和音频插入自动唤醒装置共地;利用音频插入自动唤醒装置的控制电路接收唤醒信号从而使得系统进入正常工作状态,并检测识别音频接口的第三引脚和第四引脚中的何者作为麦克风引脚,何者作为接地引脚,且利用控制电路对音频接口的第一引脚和第二引脚接收的音频信号进行处理。In order to solve the above technical problem, another technical solution adopted by the present invention is to provide an audio insertion automatic wake-up method, which comprises: connecting an audio interface of an audio terminal device with an audio interface of an audio insertion automatic wake-up device; The detection circuit of the device processes the electrical signals of the two input terminals to output a wake-up signal, and automatically connects the ground pin to the ground by using the detection circuit to realize the audio terminal device and the audio insertion automatic wake-up device; using the audio insertion to automatically wake up The control circuit of the device receives the wake-up signal to bring the system into a normal working state, and detects which of the third pin and the fourth pin of the audio interface is recognized as a microphone pin, which is used as a ground pin, and the audio is controlled by the control circuit. The audio signals received by the first pin and the second pin of the interface are processed.
其中,利用检测电路的电压比较电路对检测电路两个输入端的电信号进行处理后输出唤醒信号至控制电路。Wherein, the voltage comparison circuit of the detection circuit processes the electrical signals of the two input ends of the detection circuit and outputs a wake-up signal to the control circuit.
其中,利用控制电路连接检测电路的两个输出端以接收检测电路输出的唤醒信号以使得系统进入正常工作状态,并检测识别第三引脚和第四引脚中的何者作为麦克风引脚,何者作为接地引脚。Wherein, the control circuit is connected to the two output ends of the detecting circuit to receive the wake-up signal outputted by the detecting circuit to make the system enter the normal working state, and detect which of the third pin and the fourth pin is recognized as the microphone pin, which is As a ground pin.
其中,利用检测电路的共地电路自动将接地引脚连接至地以实现音频终端设备和音频插入自动唤醒装置共地。Wherein, the common ground circuit of the detecting circuit automatically connects the ground pin to the ground to realize the audio terminal device and the audio insertion automatic wake-up device.
本发明的有益效果是:区别于现有技术的情况,本发明通过检测电路的两个输入端分别连接音频接口中的第三引脚和第四引脚,在音频插入自动唤醒装置与音频终端设备连接时,检测电路对其两个输入端的电信号进行处理后输出唤醒信号,且检测电路自动将接地引脚连接至地以实现音频终端设备和音频插入自动唤醒装置共地,控制电路根据检测电路的两个输出端的电信号检测识别第三引脚和第四引脚 中的何者作为麦克风引脚,何者作为接地引脚,从而能够实现识别麦克风引脚与接地引脚、自动唤醒音频插入自动唤醒装置以及实现音频终端设备和音频插入自动唤醒装置共地。The invention has the beneficial effects that the invention is different from the prior art, and the invention is connected to the third pin and the fourth pin in the audio interface through two input ends of the detecting circuit, and the automatic wake-up device and the audio terminal are inserted in the audio. When the device is connected, the detection circuit processes the electrical signals of the two input terminals to output a wake-up signal, and the detection circuit automatically connects the ground pin to the ground to realize the audio terminal device and the audio insertion automatic wake-up device, and the control circuit is detected according to the detection. Electrical signal detection at the two outputs of the circuit identifies the third and fourth pins Which of them is used as a microphone pin and as a ground pin, thereby enabling recognition of a microphone pin and a ground pin, an automatic wake-up audio insertion automatic wake-up device, and an audio terminal device and an audio insertion automatic wake-up device.
附图说明DRAWINGS
图1是本发明音频插入自动唤醒装置的模块示意图;1 is a block diagram of an audio insertion automatic wake-up device of the present invention;
图2是图1中检测电路的电路结构示意图;2 is a schematic diagram showing the circuit structure of the detecting circuit of FIG. 1;
图3是图1中控制电路的模块示意图;Figure 3 is a block diagram of the control circuit of Figure 1;
图4是本发明音频插入自动唤醒方法的流程图。4 is a flow chart of an audio insertion automatic wake-up method of the present invention.
具体实施方式detailed description
下面结合附图和实施例对本发明进行详细的说明。The invention will now be described in detail in conjunction with the drawings and embodiments.
请一并参阅图1、图2以及图3,其中,图1是本发明音频插入自动唤醒装置的模块示意图,图2是图1中检测电路的电路结构示意图,图3是图1中控制电路的模块示意图。在本实施例中,音频插入自动唤醒装置用于与音频终端设备连接并进行数据交互或者传输,音频插入自动唤醒装置包括:供电电路10、音频接口11、检测电路12以及控制电路13。在本实施例中,音频插入自动唤醒装置可以为音频KEY,门禁装置等,在其他实施例中,音频插入自动唤醒装置也可以为其他装置。在本实施例中,音频终端设备可以为智能手机、平板电脑等,在其他实施例中,也可以是其他带有音频接口的终端设备。Please refer to FIG. 1 , FIG. 2 and FIG. 3 , wherein FIG. 1 is a schematic diagram of a module of an audio insertion automatic wake-up device of the present invention, FIG. 2 is a schematic diagram of a circuit structure of the detection circuit of FIG. 1 , and FIG. 3 is a control circuit of FIG. Schematic diagram of the module. In this embodiment, the audio insertion automatic wake-up device is used for connecting with the audio terminal device for data interaction or transmission, and the audio insertion automatic wake-up device includes: the power supply circuit 10, the audio interface 11, the detection circuit 12, and the control circuit 13. In this embodiment, the audio insertion automatic wake-up device may be an audio KEY, an access device, etc. In other embodiments, the audio insertion automatic wake-up device may also be other devices. In this embodiment, the audio terminal device may be a smart phone, a tablet computer, or the like. In other embodiments, other terminal devices with an audio interface may also be used.
供电电路10连接检测电路12与控制电路13,以为检测电路12 和控制电路13进行供电。The power supply circuit 10 is connected to the detection circuit 12 and the control circuit 13 to detect the circuit 12 Power is supplied to the control circuit 13.
音频接口11用于与音频终端设备的音频接口进行连接,其中,音频接口11包括第一引脚111、第二引脚112、第三引脚113和第四引脚114,第一引脚111和第二引脚112分别作为左声道引脚和右声道引脚,而第三引脚113和第四引脚114中的一者作为麦克风引脚(MIC引脚),而另一者作为接地引脚(GND引脚)。本领域技术人员可以理解的是,当音频插入自动唤醒装置利用音频接口11与音频终端设备进行连接时,则音频接口11中的第一引脚111和第二引脚112可以分别与音频终端设备的左声道引脚和右声道引脚相互连接,而不管音频终端设备中的MIC引脚和GND引脚如何设置,其是分别与音频插入自动唤醒装置的音频接口11中的第三引脚113和第四引脚114形成连接。The audio interface 11 is configured to be connected to an audio interface of the audio terminal device, wherein the audio interface 11 includes a first pin 111, a second pin 112, a third pin 113, and a fourth pin 114, and the first pin 111 And the second pin 112 serves as a left channel pin and a right channel pin, respectively, and one of the third pin 113 and the fourth pin 114 serves as a microphone pin (MIC pin), and the other As a ground pin (GND pin). It will be understood by those skilled in the art that when the audio insertion automatic wake-up device is connected to the audio terminal device by using the audio interface 11, the first pin 111 and the second pin 112 in the audio interface 11 can respectively be connected to the audio terminal device. The left channel pin and the right channel pin are connected to each other regardless of the MIC pin and the GND pin in the audio terminal device, which are respectively the third reference in the audio interface 11 of the audio insertion automatic wake-up device. The foot 113 and the fourth pin 114 form a connection.
检测电路12包括两个输入端121、122和两个输出端123、124,其中,检测电路的两个输入端121、122分别连接音频接口11中的第三引脚113和第四引脚114。The detection circuit 12 includes two input terminals 121, 122 and two output terminals 123, 124, wherein the two input terminals 121, 122 of the detection circuit are respectively connected to the third pin 113 and the fourth pin 114 in the audio interface 11. .
优选地,检测电路12包括共地电路20、电压比较电路21以及电压输入电路22。Preferably, the detection circuit 12 includes a common ground circuit 20, a voltage comparison circuit 21, and a voltage input circuit 22.
共地电路20通过检测电路12的两个输入端121、122而与音频接口11中的第三引脚113和第四引脚114相连,以在音频插入自动唤醒装置与音频终端连接时,自动将作为接地引脚的第三引脚113或者第四引脚114连接至地。The common ground circuit 20 is connected to the third pin 113 and the fourth pin 114 in the audio interface 11 through the two input terminals 121, 122 of the detecting circuit 12 to automatically connect when the audio insertion automatic wake-up device is connected to the audio terminal. The third pin 113 or the fourth pin 114, which is a ground pin, is connected to the ground.
具体地,共地电路20包括第一开关元件N1和第二开关元件N2, 第一开关元件N1包括控制端2011、第一通路端2012和第二通路端2013。其中,第一开关元件N1的控制端2011连接至检测电路12的第二输入端122,第一开关元件N1的第一通路端2012连接至检测电路12的第一输入端121,优选地,第一开关元件N1的第一通路端2012通过电压输入电路22的第三电阻R3与第一输入端121连接,而第一开关元件N1的第二通路端2013接地。第二开关元件N2包括控制端2021、第一通路端2022和第二通路端2023。其中,第二开关元件N2的控制端2021连接至检测电路12的第一输入端121,第二开关元件N2的第一通路端2022连接至检测电路12的第二输入端122,优选地,第二开关元件N2的第一通路端2022通过电压输入电路22的第五电阻R5与第二输入端122连接,而第二开关元件N2的第二通路端2023接地。优选地,第一开关元件N1和第二开关元件N2为同类型的晶体管。更优选地,第一开关元件N1和第二开关元件N2为NMOS晶体管,第一开关元件N1的第一通路端2012为NMOS晶体管的栅极,第二通路端2013为源极,控制端2014为漏极,第二开关元件N2的第一通路端2022为NMOS晶体管的栅极,第二通路端2023为源极,控制端2024为漏极。共地电路20自动将接地引脚连接至地以实现音频终端设备和音频插入自动唤醒装置共地。Specifically, the common ground circuit 20 includes a first switching element N1 and a second switching element N2, The first switching element N1 includes a control terminal 2011, a first path end 2012, and a second path end 2013. The control terminal 2011 of the first switching element N1 is connected to the second input terminal 122 of the detection circuit 12, and the first path end 2012 of the first switching element N1 is connected to the first input terminal 121 of the detection circuit 12, preferably, The first path end 2012 of a switching element N1 is connected to the first input terminal 121 via a third resistor R3 of the voltage input circuit 22, and the second path end 2013 of the first switching element N1 is grounded. The second switching element N2 includes a control terminal 2021, a first path end 2022, and a second path end 2023. The control terminal 2021 of the second switching element N2 is connected to the first input terminal 121 of the detection circuit 12, and the first path end 2022 of the second switching element N2 is connected to the second input terminal 122 of the detection circuit 12, preferably, The first path end 2022 of the second switching element N2 is connected to the second input terminal 122 through the fifth resistor R5 of the voltage input circuit 22, and the second path end 2023 of the second switching element N2 is grounded. Preferably, the first switching element N1 and the second switching element N2 are transistors of the same type. More preferably, the first switching element N1 and the second switching element N2 are NMOS transistors, the first path end 2012 of the first switching element N1 is the gate of the NMOS transistor, the second path end 2013 is the source, and the control terminal 2014 is The drain, the first pass terminal 2022 of the second switching element N2 is the gate of the NMOS transistor, the second via terminal 2023 is the source, and the control terminal 2024 is the drain. The common ground circuit 20 automatically connects the ground pin to ground to implement the audio terminal device and the audio insertion automatic wake-up device.
下面描述共地电路的工作原理:当检测电路12的第一输入端121连接的为接地引脚且其第二输入端122时连接的为麦克风引脚时,第一开关元件N1的第一通路端2012和第二通路端2013导通,第二开关元件N2的第一通路端2022与第二通路端2023截止,从而实现接 地引脚接地,类似地,当检测电路12的第一输入端121连接的为麦克风引脚且其第二输入端122时连接的为接地引脚时,第二开关元件N2的第一通路端2022与第二通路端2023导通,第一开关元件N1的第一通路端2012和第二通路端2013截止,从而实现接地引脚接地,因此本实施例的共地电路20实现了自动的将接地引脚连接至地。The following describes the working principle of the common ground circuit: when the first input terminal 121 of the detecting circuit 12 is connected to the ground pin and the second input terminal 122 is connected to the microphone pin, the first path of the first switching element N1 The terminal 2012 and the second path end 2013 are turned on, and the first path end 2022 of the second switching element N2 and the second path end 2023 are turned off, thereby implementing the connection. The ground pin is grounded. Similarly, when the first input terminal 121 of the detecting circuit 12 is connected to the microphone pin and the second input terminal 122 is connected to the ground pin, the first path end of the second switching element N2 The second path end 2023 is turned on, and the first path end 2012 and the second path end 2013 of the first switching element N1 are turned off, thereby implementing grounding pin grounding. Therefore, the common ground circuit 20 of the embodiment realizes automatic The ground pin is connected to ground.
电压比较电路21设置在检测电路12的两个输入端121、122和两个输出端123、124之间,以在音频插入自动唤醒装置与音频终端连接时,对检测电路12的两个输入端121、122的电信号进行处理后输出唤醒信号至控制电路13,以唤醒控制电路13,从而使得系统进入正常工作状态。The voltage comparison circuit 21 is disposed between the two input terminals 121, 122 and the two output terminals 123, 124 of the detection circuit 12 for pairing the two inputs of the detection circuit 12 when the audio insertion automatic wake-up device is connected to the audio terminal The electrical signals of 121, 122 are processed to output a wake-up signal to the control circuit 13 to wake up the control circuit 13, thereby causing the system to enter a normal operating state.
优选地,电压比较电路21包括第一电压比较器A、第二电压比较器B、参考电压电路211、第四电阻R4以及第六电阻R6。第一电压比较器A包括正相输入端、反相输入端和输出端,其中,第一电压比较器A的正相输入端连接检测电路12的第一输入端121,优选地,第一电压比较器A的正相输入端通过电压输入电路22的第三电阻R3与第一输入端121连接。第一电压比较器A的反相输入端连接参考电压,而第一电压比较器A的输出端作为检测电路12的第一输出端123。第二电压比较器B包括正相输入端、反相输入端和输出端,其中,第二电压比较器B的正相输入端连接检测电路12的第二输入端122,优选地,第二电压比较器B的正相输入端通过电压输入电路22的第五电阻R5与第二输入端122连接,第二电压比较器B的反相输入端连接参考电压,而第二电压比较器B的输出端作为检测电路 12的第二输出端124。参考电压电路211的输入端连接供电电路10,参考电压电路211的输出端连接第一电压比较器A和第二电压比较器B的反相输入端,以提供参考电压。在本实施例中,检测电路12的第一输入端121连接音频接口11的第三引脚113,检测电路12的第二输入端122连接音频接口11的第四引脚114。Preferably, the voltage comparison circuit 21 includes a first voltage comparator A, a second voltage comparator B, a reference voltage circuit 211, a fourth resistor R4, and a sixth resistor R6. The first voltage comparator A comprises a non-inverting input, an inverting input and an output, wherein the non-inverting input of the first voltage comparator A is connected to the first input 121 of the detection circuit 12, preferably the first voltage The non-inverting input of comparator A is coupled to first input 121 via a third resistor R3 of voltage input circuit 22. The inverting input of the first voltage comparator A is connected to the reference voltage, and the output of the first voltage comparator A serves as the first output 123 of the detection circuit 12. The second voltage comparator B includes a non-inverting input, an inverting input and an output, wherein the non-inverting input of the second voltage comparator B is coupled to the second input 122 of the detection circuit 12, preferably the second voltage The non-inverting input terminal of the comparator B is connected to the second input terminal 122 through the fifth resistor R5 of the voltage input circuit 22, the inverting input terminal of the second voltage comparator B is connected to the reference voltage, and the output of the second voltage comparator B is connected. Terminal as detection circuit The second output 124 of 12. The input terminal of the reference voltage circuit 211 is connected to the power supply circuit 10, and the output terminal of the reference voltage circuit 211 is connected to the inverting input terminals of the first voltage comparator A and the second voltage comparator B to provide a reference voltage. In the present embodiment, the first input end 121 of the detecting circuit 12 is connected to the third pin 113 of the audio interface 11, and the second input end 122 of the detecting circuit 12 is connected to the fourth pin 114 of the audio interface 11.
优选地,参考电压电路211包括第一电阻R1和第二电阻R2,第一电阻R1的第一端作为参考电压电路211的输入端连接供电电路10,第一电阻R2的第二端连接第二电阻R2的第一端,第二电阻R2的第二端接地,第二电阻R2的第一端作为参考电压电路211的输出端。Preferably, the reference voltage circuit 211 includes a first resistor R1 and a second resistor R2. The first end of the first resistor R1 is connected to the power supply circuit 10 as an input end of the reference voltage circuit 211, and the second end of the first resistor R2 is connected to the second end. The first end of the resistor R2, the second end of the second resistor R2 is grounded, and the first end of the second resistor R2 serves as an output end of the reference voltage circuit 211.
优选地,第四电阻R4与第一电压比较器A的正相输入端相连,第四电阻R4为下拉电阻。其中,第四电阻R4的第一端与正相输入端连接,第四电阻R4第二端接地。Preferably, the fourth resistor R4 is connected to the non-inverting input of the first voltage comparator A, and the fourth resistor R4 is a pull-down resistor. The first end of the fourth resistor R4 is connected to the non-inverting input terminal, and the second end of the fourth resistor R4 is grounded.
优选地,第六电阻R6与第二电压比较器B的正相输入端相连,第六电阻R6为下拉电阻。其中,第六电阻R6的第一端与正相输入端连接,第六电阻R6第二端接地。Preferably, the sixth resistor R6 is connected to the non-inverting input of the second voltage comparator B, and the sixth resistor R6 is a pull-down resistor. The first end of the sixth resistor R6 is connected to the non-inverting input terminal, and the second end of the sixth resistor R6 is grounded.
电压输入电路22包括检测电路12的第一输入端121、第二输入端122、第三电阻R3以及第五电阻R5。第三电阻R3的第一端121作为检测电路12的第一输入端121,而第五电阻R5的第一端122作为检测电路12的第二输入端122。The voltage input circuit 22 includes a first input terminal 121, a second input terminal 122, a third resistor R3, and a fifth resistor R5 of the detection circuit 12. The first end 121 of the third resistor R3 serves as the first input 121 of the detection circuit 12, and the first end 122 of the fifth resistor R5 serves as the second input 122 of the detection circuit 12.
优选地,第三电阻R3第二端与第一电压比较器A的正相输入端连接。Preferably, the second end of the third resistor R3 is connected to the non-inverting input of the first voltage comparator A.
优选地,第五电阻R5第二端与第二电压比较器B的正相输入端 连接。Preferably, the second end of the fifth resistor R5 and the positive phase input of the second voltage comparator B connection.
值得注意的是,在其他实施例中,可以根据实际需要对第一电压比较器A和第二电压比较器B周边的电阻及其连接方式进行改变,本发明对此不做限定,例如电压输入电路22以及参考电压电路211也可以为其他的结构。It should be noted that, in other embodiments, the resistances of the first voltage comparator A and the second voltage comparator B and the connection manner thereof may be changed according to actual needs, which is not limited by the present invention, for example, voltage input. The circuit 22 and the reference voltage circuit 211 may have other configurations.
控制电路13包括滤波电路30、模拟开关电路31、增益放大电路32以及MCU主控电路33。控制电路13进一步连接音频接口11的第一引脚111和第二引脚112。The control circuit 13 includes a filter circuit 30, an analog switch circuit 31, a gain amplifying circuit 32, and an MCU master circuit 33. The control circuit 13 is further connected to the first pin 111 and the second pin 112 of the audio interface 11.
具体地,滤波电路30连接音频接口11的第一引脚111和第二引脚112,以在音频插入自动唤醒装置与音频终端设备进行连接时,通过音频接口11的第一引脚111和第二引脚112而接收音频终端设备输出的音频信号并对音频信号进行滤波。Specifically, the filter circuit 30 is connected to the first pin 111 and the second pin 112 of the audio interface 11 to pass through the first pin 111 and the first of the audio interface 11 when the audio insertion automatic wake-up device is connected to the audio terminal device The two pins 112 receive the audio signal output by the audio terminal device and filter the audio signal.
模拟开关电路31连接滤波电路30,以在音频插入自动唤醒装置与音频终端设备进行连接时,通过滤波电路30和音频接口11的第一引脚111和第二引脚112而分时接收音频终端设备的左声道引脚和右声道引脚而输出的音频信号。The analog switch circuit 31 is connected to the filter circuit 30 to receive the audio terminal by the filter circuit 30 and the first pin 111 and the second pin 112 of the audio interface 11 when the audio insertion automatic wake-up device is connected to the audio terminal device. Audio signal output from the left and right channel pins of the device.
增益放大电路32连接模拟开关电路31,以对接收的音频信号进行放大处理。The gain amplifying circuit 32 is connected to the analog switch circuit 31 to perform amplification processing on the received audio signal.
MCU主控电路33连接增益放大电路32、模拟开关电路31和音频接口11的第三引脚113和第四引脚114,其中,MCU主控电路33用于检测识别第三引脚113和第四引脚114中的何者作为麦克风引脚,何者作为接地引脚,并通过音频接口11的第三引脚113和第四引脚 114而将处理后的音频信号传输至音频终端设备。优选地,MCU主控电路33可以通过地址选择信号对模拟开关电路31进行通路选择控制,MCU主控电路33可以对增益放大电路32进行数字编程控制其放大倍数。The MCU main control circuit 33 is connected to the gain amplifying circuit 32, the analog switch circuit 31, and the third pin 113 and the fourth pin 114 of the audio interface 11, wherein the MCU main control circuit 33 is for detecting and identifying the third pin 113 and the Which of the four pins 114 acts as a microphone pin, which acts as a ground pin, and passes through the third pin 113 and the fourth pin of the audio interface 11 The processed audio signal is transmitted to the audio terminal device. Preferably, the MCU main control circuit 33 can perform path selection control on the analog switch circuit 31 through an address selection signal, and the MCU main control circuit 33 can digitally control the gain amplifying circuit 32 to control its amplification factor.
下面描述本实施例的音频插入自动唤醒装置的工作原理。The operation of the audio insertion automatic wake-up apparatus of this embodiment will be described below.
由于不同的音频终端设备的音频接口的麦克风引脚和接地引脚的连接顺序不确定,因此在音频终端设备与音频插入自动唤醒装置通过音频接口连接时,第三引脚113和第四引脚114中的一者作为麦克风引脚(MIC引脚),而另一者作为接地引脚(GND引脚),但是不确定音频接口11中的第三引脚113和第四引脚114中的何者作为麦克风引脚,何者作为接地引脚。在音频终端设备与音频插入自动唤醒装置通过音频接口连接时,音频插入自动唤醒装置的检测电路12中的共地电路20实现自动的将接地引脚连接至地(其原理如前所述)。其次,控制电路13根据检测电路12的两个输出端123、124的电信号,优选地根据两个输出端123、124的电压信号检测识别第三引脚和第四引脚中的何者作为麦克风引脚,何者作为接地引脚,若检测电路12的第一输出端123为高电压信号或脉冲信号且检测电路12的第二输出端124始终为低电压信号,则控制电路13识别第三引脚113为麦克风引脚,第四引脚114为接地引脚,反之若检测电路12的第一输出端123始终为低电压信号且检测电路12的第二输入端124为高电压信号或脉冲信号则控制电路13识别第三引脚113为接地引脚,第四引脚114为麦克风引脚。 Since the connection order of the microphone pin and the ground pin of the audio interface of different audio terminal devices is uncertain, the third pin 113 and the fourth pin are connected when the audio terminal device and the audio insertion automatic wake-up device are connected through the audio interface. One of the 114s serves as a microphone pin (MIC pin) and the other as a ground pin (GND pin), but is not sure of the third pin 113 and the fourth pin 114 in the audio interface 11. Which is used as a microphone pin and which is used as a ground pin. When the audio terminal device is connected to the audio insertion automatic wake-up device through the audio interface, the common ground circuit 20 in the detection circuit 12 of the audio insertion automatic wake-up device automatically connects the ground pin to ground (the principle is as described above). Next, the control circuit 13 detects, based on the electrical signals of the two output terminals 123, 124 of the detection circuit 12, which of the third pin and the fourth pin is identified as a microphone, preferably based on the voltage signals of the two output terminals 123, 124. The pin, which is the ground pin, if the first output 123 of the detection circuit 12 is a high voltage signal or a pulse signal and the second output 124 of the detection circuit 12 is always a low voltage signal, the control circuit 13 identifies the third reference The foot 113 is a microphone pin, and the fourth pin 114 is a ground pin. Otherwise, if the first output end 123 of the detecting circuit 12 is always a low voltage signal and the second input end 124 of the detecting circuit 12 is a high voltage signal or a pulse signal Then, the control circuit 13 recognizes that the third pin 113 is a ground pin, and the fourth pin 114 is a microphone pin.
检测电路12对两个输入端121、122的电信号进行处理后输出唤醒信号,优选地,唤醒信号为检测电路12的上述第一输出端123或者第二输出端124输出的脉冲信号或者高电平信号。因此,在本实施例中,脉冲信号或者高电平信号即作为检测第三引脚113和第四引脚114中的何者作为麦克风引脚何者作为接地引脚的信号,也作为唤醒信号,控制电路13连接检测电路12的两个输出端123、124以接收检测电路12输出的唤醒信号且控制电路13在接收到唤醒信号后被唤醒,从而使得系统进入正常工作状态,控制电路13在未接收到唤醒信号时控制进入低功耗状态,从而使得系统进入低功耗状态,最后控制电路13对接收的来自第一引脚111和第二引脚112音频信号进行处理。在本实施例中,系统指音频插入自动唤醒装置的整个系统或者音频插入自动唤醒装置与音频终端设备构成的系统,本实施例对此不做限定。The detecting circuit 12 processes the electrical signals of the two input terminals 121 and 122 to output a wake-up signal. Preferably, the wake-up signal is a pulse signal or a high-power output of the first output terminal 123 or the second output terminal 124 of the detecting circuit 12. Flat signal. Therefore, in the present embodiment, the pulse signal or the high level signal is used as a signal for detecting which of the third pin 113 and the fourth pin 114 is used as a ground pin, and also as a wake-up signal, and is controlled. The circuit 13 is connected to the two output terminals 123, 124 of the detection circuit 12 to receive the wake-up signal output from the detection circuit 12 and the control circuit 13 is woken up after receiving the wake-up signal, thereby causing the system to enter a normal operating state, and the control circuit 13 is not receiving The control enters a low power state when the wake-up signal is reached, thereby causing the system to enter a low power state, and finally the control circuit 13 processes the received audio signals from the first pin 111 and the second pin 112. In this embodiment, the system refers to a system in which an audio is inserted into an automatic wake-up device or a system in which an audio is inserted into an automatic wake-up device and an audio terminal device, which is not limited in this embodiment.
请参阅图4,图4是本发明音频插入自动唤醒方法的流程图。在本实施例中,音频插入自动唤醒方法包括以下步骤:Please refer to FIG. 4. FIG. 4 is a flowchart of the audio insertion automatic wake-up method of the present invention. In this embodiment, the audio insertion automatic wake-up method includes the following steps:
步骤S11:将音频终端设备的音频接口与音频插入自动唤醒装置的音频接口连接。Step S11: The audio interface of the audio terminal device is connected to the audio interface of the audio insertion automatic wake-up device.
步骤S12:音频插入自动唤醒装置的检测电路对其两个输入端的电信号进行处理后出唤醒信号,且利用检测电路自动将接地引脚连接至地以实现音频终端设备和音频插入自动唤醒装置共地。Step S12: The detection circuit of the audio insertion automatic wake-up device processes the electrical signals of the two input terminals to generate a wake-up signal, and automatically connects the ground pin to the ground by using the detection circuit to realize the audio terminal device and the audio insertion automatic wake-up device. Ground.
在步骤S12中,例如,利用检测电路12的电压比较电路21对检测电路12的两个输入端的电信号进行处理后输出唤醒信号,利用检 测电路12的共地电路20自动将接地引脚连接至地以实现音频终端设备和音频插入自动唤醒装置共地。In step S12, for example, the voltage comparison circuit 21 of the detection circuit 12 processes the electrical signals of the two input terminals of the detection circuit 12, and outputs a wake-up signal. The common ground circuit 20 of the test circuit 12 automatically connects the ground pin to ground to implement the audio terminal device and the audio insertion automatic wake-up device.
步骤S13:利用音频插入自动唤醒装置的控制电路接收唤醒信号以使得系统进入正常工作状态,并检测识别音频接口的第三引脚和第四引脚中的何者作为麦克风引脚,何者作为接地引脚,且利用控制电路对音频接口的第一引脚和第二引脚接收的音频信号进行处理。Step S13: receiving a wake-up signal by using a control circuit of the audio insertion automatic wake-up device to cause the system to enter a normal working state, and detecting which of the third pin and the fourth pin of the audio interface is used as a microphone pin, which is used as a grounding lead And the control circuit is used to process the audio signals received by the first pin and the second pin of the audio interface.
在本实施例中,上述方法可由前述音频插入自动唤醒装置实现,此处不再赘述。In this embodiment, the foregoing method may be implemented by the foregoing audio insertion automatic wake-up device, and details are not described herein again.
区别于现有技术的情况,本发明通过检测电路的两个输入端分别连接音频接口中的第三引脚和第四引脚,在音频插入自动唤醒装置与音频终端设备连接时,检测电路对其两个输入端的电信号进行处理后输出唤醒信号,且检测电路自动将接地引脚连接至地以实现音频终端设备和音频插入自动唤醒装置共地,控制电路根据检测电路的两个输出端的电信号检测识别第三引脚和第四引脚中的何者作为麦克风引脚,何者作为接地引脚,从而能够实现识别麦克风引脚与接地引脚、自动唤醒音频插入自动唤醒装置以及实现音频终端设备和音频插入自动唤醒装置共地。Different from the prior art, the present invention connects the third pin and the fourth pin of the audio interface respectively through two input ends of the detecting circuit, and detects the circuit pair when the audio insertion automatic wake-up device is connected with the audio terminal device. The electrical signals of the two input terminals are processed to output a wake-up signal, and the detecting circuit automatically connects the grounding pin to the ground to realize the audio terminal device and the audio insertion automatic wake-up device, and the control circuit is based on the electric power of the two output terminals of the detecting circuit. The signal detection identifies which of the third pin and the fourth pin is used as a microphone pin, and which serves as a ground pin, thereby enabling identification of the microphone pin and the ground pin, automatic wake-up audio insertion, automatic wake-up device, and implementation of the audio terminal device. And the audio is inserted into the automatic wake-up device.
以上所述仅为本发明的实施方式,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。 The above is only the embodiment of the present invention, and is not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the invention and the drawings are directly or indirectly applied to other related technologies. The fields are all included in the scope of patent protection of the present invention.

Claims (10)

  1. 一种音频插入自动唤醒装置,用于与音频终端设备连接并进行数据交互或者传输,其特征在于,所述音频插入自动唤醒装置包括:音频接口、检测电路以及控制电路,所述音频接口用于与所述音频终端设备的音频接口进行连接,其中,所述音频接口包括第一引脚、第二引脚、第三引脚和第四引脚,所述第一引脚和所述第二引脚分别作为左声道引脚和右声道引脚,而所述第三引脚和所述第四引脚中的一者作为麦克风引脚(MIC引脚),而另一者作为接地引脚(GND引脚);所述检测电路包括两个输入端和两个输出端,其中,所述检测电路的两个输入端分别连接所述音频接口中的所述第三引脚和所述第四引脚,以在所述音频插入自动唤醒装置与所述音频终端设备连接时,对所述两个输入端的电信号进行处理后输出唤醒信号至所述控制电路,且所述检测电路自动将所述接地引脚连接至地以实现所述音频终端设备和所述音频插入自动唤醒装置共地;所述控制电路连接所述检测电路的两个输出端以接收所述检测电路输出的所述唤醒信号使得系统进入正常工作状态,并检测识别所述第三引脚和所述第四引脚中的何者作为麦克风引脚,何者作为所述接地引脚,且所述控制电路进一步连接所述音频接口的所述第一引脚和所述第二引脚以对接收的音频信号进行处理。An audio insertion automatic wake-up device for connecting to an audio terminal device for data interaction or transmission, characterized in that the audio insertion automatic wake-up device comprises: an audio interface, a detection circuit and a control circuit, the audio interface is used for Connecting with an audio interface of the audio terminal device, wherein the audio interface includes a first pin, a second pin, a third pin, and a fourth pin, the first pin and the second pin The pins are respectively a left channel pin and a right channel pin, and one of the third pin and the fourth pin is used as a microphone pin (MIC pin), and the other is used as a ground. a pin (GND pin); the detection circuit includes two input terminals and two output terminals, wherein two input terminals of the detection circuit are respectively connected to the third pin and the a fourth pin for processing an electrical signal of the two input terminals to output a wake-up signal to the control circuit when the audio insertion automatic wake-up device is connected to the audio terminal device, and the detecting circuit Automatically The ground pin is connected to ground to implement the audio terminal device and the audio insertion automatic wake-up device; the control circuit is coupled to the two outputs of the detection circuit to receive the output of the detection circuit The wake-up signal causes the system to enter a normal working state, and detects which of the third pin and the fourth pin is recognized as a microphone pin, which is the ground pin, and the control circuit further connects the The first pin and the second pin of the audio interface process the received audio signal.
  2. 根据权利要求1所述的音频插入自动唤醒装置,其特征在于, 进一步包括:The audio insertion automatic wake-up device according to claim 1, wherein Further includes:
    供电电路,连接所述检测电路与所述控制电路,以为所述检测电路和所述控制电路进行供电。a power supply circuit connecting the detection circuit and the control circuit to supply power to the detection circuit and the control circuit.
  3. 根据权利要求2所述的音频插入自动唤醒装置,其特征在于,所述检测电路包括:The audio insertion automatic wake-up device according to claim 2, wherein the detection circuit comprises:
    共地电路,通过所述检测电路的两个输入端而与所述音频接口中的所述第三引脚和第四引脚相连,以在所述音频插入自动唤醒装置与所述音频终端连接时,自动将作为所述接地引脚的所述第三引脚或者所述第四引脚连接至地;a common ground circuit connected to the third pin and the fourth pin of the audio interface through two inputs of the detecting circuit to be connected to the audio terminal at the audio insertion automatic wake-up device Automatically connecting the third pin or the fourth pin as the ground pin to the ground;
    电压比较电路,设置在所述检测电路的两个输入端和两个输出端之间,以在所述音频插入自动唤醒装置与所述音频终端连接时,对所述两个输入端的电信号进行处理后输出唤醒信号至所述控制电路以唤醒所述控制电路从而使得所述系统进入正常工作状态。a voltage comparison circuit disposed between the two input ends and the two output ends of the detection circuit to perform electrical signals on the two input terminals when the audio insertion automatic wake-up device is connected to the audio terminal A wake-up signal is output to the control circuit after processing to wake up the control circuit to cause the system to enter a normal operating state.
  4. 根据权利要求3所述的音频插入自动唤醒装置,其特征在于,所述共地电路包括:The audio insertion automatic wake-up device according to claim 3, wherein the common ground circuit comprises:
    第一开关元件,其包括控制端、第一通路端和第二通路端,其中,所述第一开关元件的控制端连接至所述检测电路的第二输入端,所述第一开关元件的第一通路端连接至所述检测电路的第一输入端,而所述第一开关元件的第二通路端接地;a first switching element including a control end, a first path end and a second path end, wherein a control end of the first switching element is coupled to a second input end of the detection circuit, the first switching element a first path end connected to the first input end of the detecting circuit, and a second path end of the first switching element being grounded;
    第二开关元件,其包括控制端、第一通路端和第二通路端,其中, 所述第二开关元件的控制端连接至所述检测电路的第一输入端,所述第二开关元件的第一通路端连接至所述检测电路的第二输入端,而所述第二开关元件的第二通路端接地;a second switching element including a control end, a first path end, and a second path end, wherein a control end of the second switching element is connected to a first input end of the detection circuit, a first path end of the second switching element is connected to a second input end of the detection circuit, and the second switch The second path end of the component is grounded;
    其中,所述第一开关元件和所述第二开关元件为同类型的晶体管。Wherein, the first switching element and the second switching element are transistors of the same type.
  5. 根据权利要求4所述的音频插入自动唤醒装置,其特征在于,所述第一开关元件和所述第二开关元件为NMOS晶体管。The audio insertion automatic wake-up device according to claim 4, wherein said first switching element and said second switching element are NMOS transistors.
  6. 根据权利要求3所述的音频插入自动唤醒装置,其特征在于,所述电压比较电路包括:The audio insertion automatic wake-up device according to claim 3, wherein the voltage comparison circuit comprises:
    第一电压比较器,其包括正相输入端、反相输入端和输出端,其中,所述第一电压比较器的正相输入端连接所述检测电路的第一输入端,所述第一电压比较器的反相输入端连接参考电压,而所述第一电压比较器的输出端作为所述检测电路的第一输出端;a first voltage comparator comprising a non-inverting input, an inverting input, and an output, wherein a non-inverting input of the first voltage comparator is coupled to a first input of the detection circuit, the first An inverting input terminal of the voltage comparator is connected to the reference voltage, and an output end of the first voltage comparator is used as a first output end of the detecting circuit;
    第二电压比较器,其包括正相输入端、反相输入端和输出端,其中,所述第二电压比较器的正相输入端连接所述检测电路的第二输入端,所述第二电压比较器的反相输入端连接所述参考电压,而所述第二电压比较器的输出端作为所述检测电路的第二输出端。a second voltage comparator comprising a non-inverting input, an inverting input and an output, wherein a non-inverting input of the second voltage comparator is coupled to a second input of the detection circuit, the second An inverting input of the voltage comparator is coupled to the reference voltage, and an output of the second voltage comparator is coupled to a second output of the detection circuit.
  7. 根据权利要求1所述的音频插入自动唤醒装置,其特征在于,所述控制电路包括:The audio insertion automatic wake-up device according to claim 1, wherein the control circuit comprises:
    滤波电路,连接所述音频接口的所述第一引脚和所述第二引脚,以在所述音频插入自动唤醒装置与所述音频终端设备进行连接时,通 过所述音频接口的所述第一引脚和所述第二引脚而接收所述音频终端设备输出的音频信号并对所述音频信号进行滤波;a filter circuit connecting the first pin and the second pin of the audio interface to communicate when the audio insertion automatic wake-up device is connected to the audio terminal device Receiving an audio signal output by the audio terminal device and filtering the audio signal through the first pin and the second pin of the audio interface;
    模拟开关电路,连接所述滤波电路,以在所述音频插入自动唤醒装置与所述音频终端设备进行连接时,通过所述滤波电路和所述音频接口的所述第一引脚和所述第二引脚而分时接收所述音频终端设备的左声道引脚和右声道引脚而输出的所述音频信号;An analog switch circuit coupled to the filter circuit to pass the filter circuit and the first pin and the first portion of the audio interface when the audio insertion automatic wake-up device is connected to the audio terminal device Receiving, by the second pin, the audio signal output by the left channel pin and the right channel pin of the audio terminal device;
    增益放大电路,连接所述模拟开关电路,以对接收的所述音频信号进行放大处理;a gain amplifying circuit connected to the analog switch circuit to perform amplification processing on the received audio signal;
    MCU主控电路,连接所述增益放大电路、所述模拟开关电路和所述音频接口的所述第三引脚和所述第四引脚,其中,所述MCU主控电路用于检测识别所述第三引脚和所述第四引脚中的何者作为麦克风引脚,何者作为所述接地引脚并通过所述音频接口的所述第三引脚和所述第四引脚而将处理后的所述音频信号传输至所述音频终端设备。An MCU main control circuit, connected to the gain amplifying circuit, the analog switch circuit, and the third pin and the fourth pin of the audio interface, wherein the MCU main control circuit is configured to detect an identification Which of the third pin and the fourth pin is the microphone pin, which is handled as the ground pin and through the third pin and the fourth pin of the audio interface The latter audio signal is transmitted to the audio terminal device.
  8. 一种音频插入自动唤醒方法,其特征在于,所述方法包括:An audio insertion automatic wake-up method, characterized in that the method comprises:
    将音频终端设备的音频接口与音频插入自动唤醒装置的音频接口连接;Connecting the audio interface of the audio terminal device to the audio interface of the audio insertion automatic wake-up device;
    所述音频插入自动唤醒装置的检测电路对其两个输入端的电信号进行处理后输出唤醒信号,且利用所述检测电路自动将所述接地引脚连接至地以实现所述音频终端设备和所述音频插入自动唤醒装置共地; The detection circuit of the audio insertion automatic wake-up device processes the electrical signals of the two inputs thereof to output a wake-up signal, and automatically connects the ground pins to the ground by the detection circuit to implement the audio terminal device and the The audio is inserted into the automatic wake-up device;
    利用所述音频插入自动唤醒装置的控制电路接收所述唤醒信号使得系统进入正常工作状态,并检测识别所述音频接口的第三引脚和第四引脚中的何者作为麦克风引脚,何者作为接地引脚,且利用所述控制电路对所述音频接口的第一引脚和第二引脚接收的音频信号进行处理。Receiving, by the control circuit of the audio insertion automatic wake-up device, the wake-up signal causes the system to enter a normal working state, and detecting which of the third pin and the fourth pin of the audio interface is recognized as a microphone pin, which is a ground pin, and the audio signal received by the first pin and the second pin of the audio interface is processed by the control circuit.
  9. 根据权利要求8所述的音频插入自动唤醒方法,其特征在于,利用所述检测电路的电压比较电路对所述检测电路的两个输入端的电信号进行处理后输出唤醒信号至所述控制电路以唤醒所述控制电路从而使得所述系统进入正常工作状态。The audio insertion automatic wake-up method according to claim 8, wherein the voltage comparison circuit of the detection circuit processes the electrical signals of the two input ends of the detection circuit, and outputs a wake-up signal to the control circuit. The control circuit is woken up to bring the system into a normal operating state.
  10. 根据权利要求9所述的音频插入自动唤醒方法,其特征在于,利用所述检测电路的共地电路自动将所述接地引脚连接至地以实现所述音频终端设备和所述音频插入自动唤醒装置共地。 The audio insertion automatic wake-up method according to claim 9, wherein the grounding pin is automatically connected to the ground by the common ground circuit of the detecting circuit to realize automatic wake-up of the audio terminal device and the audio insertion The device is common.
PCT/CN2015/083784 2014-07-11 2015-07-10 Audio insert automatic wake-up device and audio insert automatic wake-up method WO2016004897A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410330837.2 2014-07-11
CN201410330837.2A CN105282653B (en) 2014-07-11 2014-07-11 Audio is inserted into automatic waking device and audio is inserted into automatic awakening method

Publications (1)

Publication Number Publication Date
WO2016004897A1 true WO2016004897A1 (en) 2016-01-14

Family

ID=55063604

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/083784 WO2016004897A1 (en) 2014-07-11 2015-07-10 Audio insert automatic wake-up device and audio insert automatic wake-up method

Country Status (2)

Country Link
CN (1) CN105282653B (en)
WO (1) WO2016004897A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110058830A (en) * 2018-01-19 2019-07-26 杭州海康威视数字技术股份有限公司 Signal deteching circuit and method, audio processing equipment
CN111157796A (en) * 2020-01-21 2020-05-15 深圳市鑫王牌科技发展有限公司 External device awakening detection circuit, detection device and electronic product
CN114650485A (en) * 2020-12-18 2022-06-21 广西三诺数字科技有限公司 Signal transmission method and device, computer equipment and storage medium
CN112820303B (en) * 2020-12-31 2022-10-25 北京握奇数据股份有限公司 Audio interface authentication device
CN114924639B (en) * 2022-05-12 2024-05-28 芯海科技(深圳)股份有限公司 Electronic device and method for waking up micro control unit

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103208987A (en) * 2013-03-19 2013-07-17 福建联迪商用设备有限公司 Starting up awakening method for external connection terminal of audio frequency device
CN103533181A (en) * 2012-07-02 2014-01-22 北京鼎合远传技术有限公司 Device and method for awakening external equipment of mobile terminal
CN103607680A (en) * 2013-11-13 2014-02-26 北京旋极信息技术股份有限公司 An audio frequency apparatus

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103376876B (en) * 2012-04-26 2016-03-30 国民技术股份有限公司 Audio Interface Unit and method for managing power supply thereof
CN103442317A (en) * 2013-08-26 2013-12-11 深圳市文鼎创数据科技有限公司 Audio port identification circuit, audio port identification method and communication device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533181A (en) * 2012-07-02 2014-01-22 北京鼎合远传技术有限公司 Device and method for awakening external equipment of mobile terminal
CN103208987A (en) * 2013-03-19 2013-07-17 福建联迪商用设备有限公司 Starting up awakening method for external connection terminal of audio frequency device
CN103607680A (en) * 2013-11-13 2014-02-26 北京旋极信息技术股份有限公司 An audio frequency apparatus

Also Published As

Publication number Publication date
CN105282653B (en) 2019-04-05
CN105282653A (en) 2016-01-27

Similar Documents

Publication Publication Date Title
CN105867593B (en) A kind of USB Type-C interface circuits and its control device
WO2016004897A1 (en) Audio insert automatic wake-up device and audio insert automatic wake-up method
US9128691B2 (en) Method and terminal for selecting internal circuit according to USB interface status
CN101373388B (en) Adjusting apparatus
US8458372B2 (en) Master-slave device communication system based on current
US20130101132A1 (en) Method and Device for Earphone and USB to Share Micro-USB Interface
US9215526B2 (en) Circuit for microphone pin assignment detection and method thereof
WO2015176621A1 (en) Interface detection circuit, apparatus and method
EP2863652A1 (en) Audio interface self-adaptation device
EP2658222A1 (en) Method and electronic device for determining headset line sequence
US20160105747A1 (en) Electronic device and method for detecting plug type of audio device inserted into electronic device
JP2015518323A5 (en)
CN205692122U (en) A kind of USB Type C interface circuit and control device thereof
US20170223449A1 (en) Electronic device, earphone, and electronic device system
WO2014146510A1 (en) Method and terminal for automatically identifying pluggable audio devices
US20170192916A1 (en) Automatic usb identification and communication system with star architecture and method thereof
US9848270B2 (en) Electronic device, earphone, and electronic device system
AU2013275897B2 (en) Method, device, and electronic signature tool for use in matching with audio interface of mobile terminal
US9448578B1 (en) Interface supply circuit
KR20230016687A (en) Data cables and charging devices
EP2806655B1 (en) Audio interface adapter device and audio signal receiving apparatus
US10051395B2 (en) Accessory management and data communication using audio port
US20160226483A1 (en) Control circuit and electronic device using the same
US9608435B2 (en) Electronic device and motherboard
US20130329917A1 (en) Portable electronic device having universal earphone jack

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15818991

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15818991

Country of ref document: EP

Kind code of ref document: A1