CN110012407A - A kind of earphone detection circuit in place and detection method - Google Patents
A kind of earphone detection circuit in place and detection method Download PDFInfo
- Publication number
- CN110012407A CN110012407A CN201910316126.2A CN201910316126A CN110012407A CN 110012407 A CN110012407 A CN 110012407A CN 201910316126 A CN201910316126 A CN 201910316126A CN 110012407 A CN110012407 A CN 110012407A
- Authority
- CN
- China
- Prior art keywords
- earphone
- port
- place
- level
- comparator
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1041—Mechanical or electronic switches, or control elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R29/00—Monitoring arrangements; Testing arrangements
Abstract
The invention proposes a kind of earphone detection circuit in place and detection methods, it include: primary processor, audio processor, earphone detection circuit in place, Mike's signal wire, left channel signals line, right-channel signals line and push button signalling line, earphone detection circuit in place includes comparator, first resistor, second resistance, 3rd resistor and the 4th resistance, the GPIO port of the connection of one end of Mike's signal wire and magnetic bead, push button signalling line and primary processor connects;The right channel port of the connection of the L channel port of left channel signals line and audio processor, right-channel signals line and audio processor connects.The present invention is connected to the first, second, third and fourth capacitor over the ground by Mike's signal wire, push button signalling line, the first sound channel signal line, second sound channel signal wire respectively, inhibits the external High-frequency Interference introduced;It is connected to transient voltage suppressor over the ground, respectively for preventing electrostatic from damaging to signaling interface.
Description
Technical field
The present invention relates to technical field of electronic equipment, in particular to a kind of earphone detection circuit in place and detection method.
Background technique
In many mobile communication equipments, 3.5mm standard headphone plug can be all used as earphone interface form.For general
Logical four-part form 3.5mm earphone socket structure, currently used earphone are mainly inserted using earphone into and out the detection of situation
Reed state inside seat is realized.As depicted in figs. 1 and 2, earphone into and out, will lead to detection signal HP_DET and
Connection status between headset left channel HPH_L changes, and then becomes the level state detected on signal HP_DET
Change, thus identify earphone into and out.The prior art also provides a kind of detection circuit, although not using in earphone socket
The reed state in portion carrys out test earphone plug, but realizes and detect by 32 ohmages of earphone speaker, can give earphone
L channel provides a very strong drop-down level, realizes the level state variation of L channel HPH_L, and identification earphone is inserted into and pulls out
Out.But this mode depends on earphone impedance, for external speaker class equipment, can not just detect inserting for equipment tone frequency channel wire
Enter.
However for the industry mobile communication equipment with three proofings function, use environment is extremely complex, and often needs
The hand-held microphone of connecting band audio frequency power amplifier is wanted to use as talk back equipment.So, 3.5mm standard earphone interface there is some
Limitation, such as be easy by silt foreign matters from being blocked and do not allow easy to clean, it is unreliable to connect, and earphone is easy to be anticipated in strenuous exercise
Outer extraction etc..In order to cope with these problems, many industry mobile communication equipments have to abandon 3.5mm standard earphone interface, choosing
Select other more reliable earphone interface forms.For example, substituting 3.5mm standard earphone using based on the Quick Release interface of POGO bullet needle
Interface.Although making interface easy cleaning in this way, the reliability of earphone interface also will increase, but then, can bring earphone
It is easy to appear misrecognition and serious plosive problem during the connection process.
Summary of the invention
The purpose of the present invention aims to solve at least one of described technological deficiency.
For this purpose, it is an object of the invention to propose a kind of earphone detection circuit in place and detection method.
To achieve the goals above, the embodiment of the present invention provides a kind of earphone detection circuit in place, comprising: main process task
Device, audio processor, earphone detection circuit in place, Mike's signal wire, left channel signals line, right-channel signals line and push button signalling
Line, wherein
The earphone detection circuit in place includes comparator, first resistor, second resistance, 3rd resistor and the 4th resistance,
Wherein, the first port of the comparator is connected to one end of the end power supply VMIC and first resistor, the first resistor it is another
End is connected to the third port of the comparator, and the second port of the comparator is connected to the ground one end with second resistance, institute
The other end for stating second resistance is connect with the other end of the first resistor, the 4th port of the comparator and 3rd resistor
One end connection, the output end of the comparator connect with the headset detection port of the primary processor, with to the headset detection
Port provides high level, and the primary processor is further connect with audio processor,
The connection of one end of Mike's signal wire and magnetic bead, the other end of the other end of the magnetic bead and the 3rd resistor
It is connected with the Mike port of the audio processor, the push button signalling line is connect with the GPIO port of the primary processor;Institute
It states left channel signals line to connect with the L channel port of the audio processor, the right-channel signals line and the audio processing
The right channel port of device connects.
Further, the other end of the magnetic bead and the 5th resistance one end, one end of the first transient voltage suppressor diode,
The Mike port connection of one end of one capacitor, audio processor, the 5th resistance other end are connect with the end power supply VMIC, with for
Audio signal provides bias voltage, the other end of the first transient voltage suppressor diode RV1 and the other end of first capacitor
It is grounded, to prevent exterior static damage internal interface and filter out high-frequency noise.
Further, the push button signalling line and one end of the second transient voltage suppressor diode, one end of the second capacitor, master
The GPIO port of processor is connected, the other end of second transient voltage suppressor diode and another termination of the second capacitor
Ground, to prevent exterior static damage internal interface and filter out high-frequency noise.
Further, the first port is the feeder ear of the comparator, and the second port is connecing for the comparator
Ground terminal, the third port are the reference voltage input terminal of the comparator, and the 4th port is the input of the comparator
Signal end.
The present invention also proposes that a kind of earphone in position detecting method, includes the following steps:
Step S1, primary processor test earphone detect the level state of port, judge earphone according to the level state
State in place executes step S2 when judging that the earphone is not in place, no to then follow the steps S3;
Step S2, when the earphone is not in place, setting triggering interrupt mode is that low level triggering is interrupted, and waits touching to be interrupted
Hair, while earphone state is reported, record current earphone detects the level value of interface in place;Judge current level value and down trigger
Otherwise whether preceding level on the contrary, if it is S3 is thened follow the steps continues that low level triggering interruption is arranged;
Step S3 opens earphone and MIC access when the earphone is in place, and setting triggering interrupt mode is high level touching
Hair interrupts, and waits down trigger, while reporting earphone state, and record current earphone detects the level value of interface in place;Judgement is worked as
Otherwise whether the level before preceding level value and down trigger on the contrary, if it is S2 is thened follow the steps continues that high level triggering is arranged
It interrupts.
Further, when the headset detection port is high level, judge that the earphone is not in place;When the headset detection
When port is low level, judge that the earphone is in place.
Further, when the headset detection port is low level, judge that the earphone is not in place;When the headset detection
When port is high level, judge that the earphone is in place.
Further, in the step S2 and step S3, after triggering is interrupted, after the preset duration that is delayed, earphone state is reported,
Record current earphone detects the level value of interface in place.
Further, the delay duration is 300ms to 800ms.
Earphone according to an embodiment of the present invention detection circuit in place and detection method, pass through Mike's signal wire, push button signalling
Line, the first sound channel signal line, second sound channel signal wire, are connected to the first, second, third and fourth capacitor over the ground respectively, are used for
Inhibit the external High-frequency Interference introduced;It is connected to transient voltage suppressor over the ground, respectively for preventing electrostatic from connecing to signal
Mouth damages.Structure type of the present invention independent of earphone interface, and can judge common 32 Europe earphone and with power amplifier hand
The state in place of miaow largely eliminates signal jitter bring and judges problem by accident, greatly reduces earphone and examine in place
The False Rate of survey realizes simple, high reliablity.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partially become from the following description
Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect of the invention and advantage will become from the description of the embodiment in conjunction with the following figures
Obviously and it is readily appreciated that, in which:
Fig. 1 is the structural schematic diagram of NO type earphone base;
Fig. 2 is the structural schematic diagram of NC type earphone base;
Fig. 3 is the schematic diagram according to the earphone detection circuit in place of the embodiment of the present invention;
Fig. 4 is the work flow diagram according to the earphone of the embodiment of the present invention in position detecting method
Fig. 5 is the schematic diagram according to the earphone of the embodiment of the present invention in position detecting method.
Specific embodiment
The embodiment of the present invention is described below in detail, the example of embodiment is shown in the accompanying drawings, wherein identical from beginning to end
Or similar label indicates same or similar element or element with the same or similar functions.It is retouched below with reference to attached drawing
The embodiment stated is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
In the present invention unless specifically defined or limited otherwise, term " installation ", " connected ", " connection ", " fixation " etc.
Term shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can be machine
Tool connection, is also possible to be electrically connected;It can be directly connected, two members can also be can be indirectly connected through an intermediary
Connection inside part.For the ordinary skill in the art, above-mentioned term can be understood in this hair as the case may be
Concrete meaning in bright.
The present invention provides a kind of earphone detection circuit in place, can not depend on earphone socket structure and realize detection.
As shown in figure 3, the earphone of embodiment of the present invention detection circuit in place, comprising: primary processor 1, audio processor 2,
Mike's signal wire MIC, left channel signals line HPH_L, right-channel signals line HPH_R, push button signalling line PTT, earphone detect in place
Circuit 3.Wherein, Mike's signal wire MIC is connected with earphone detection circuit 3 in place with audio processor 2 respectively, left channel signals line
HPH_L, right-channel signals line HPH_R are connected with audio processor 3;Output end, the push button signalling line of earphone detection circuit 3 in place
PTT is connected with primary processor 1, and primary processor 1 is connected with audio processor 2.
Specifically, earphone detection circuit 3 in place include comparator, first resistor R1, second resistance R2,3rd resistor R3 and
4th resistance R4.Wherein, the first port of comparator is connected to the one end at the end power supply VMIC and first resistor R1, first resistor R1
The other end be connected to the third port of comparator, the second port of comparator is connected to the ground one end with second resistance R2,
The other end of two resistance R2 is connect with the other end of first resistor R1, provides a reference voltage for comparator.
4th port of comparator is connect with one end of 3rd resistor R3, is connected to Mike's signal by 3rd resistor R3.
The headset detection port HP_DET connection of the output end and primary processor of comparator, it is high to be provided to headset detection port HP_DET
Level, primary processor are further connect with audio processor.
Comparator first port is comparator feeder ear, and second port is comparator ground terminal, and third port is comparator
Reference voltage input terminal, the 4th port are input signal end.Power supply VMIC is divided over the ground by first resistor R1 and second resistance R2
Pressure, provides a reference voltage for comparator third port.The fifth port of comparator is comparator output terminal, is connected to the 4th
Resistance R4 is used to provide high level state for output port, meanwhile, fifth port is connected to the headset detection end of terminal handler
Mouthful.
Mike's signal wire is connect with one end of magnetic bead L1, the other end of magnetic bead and the other end of 3rd resistor and audio processing
The Mike port of device connects.By the above-mentioned means, Mike's signal wire is connected with magnetic bead, may be implemented to inhibit external signal to Mike
The interference of generation.
The other end of magnetic bead L1 and the 5th one end resistance R5, one end of the first transient voltage suppressor diode RV1, the first electricity
Hold one end of C1, the Mike port connection of audio processor 2, the 5th resistance R5 other end is connect with the end power supply VMIC, for sound
Frequency MIC signal provides bias voltage, and the other end of the first transient voltage suppressor diode RV1 and the C1 other end of first capacitor are equal
Ground connection, to prevent exterior static damage internal interface and filter out high-frequency noise.Signal wire GND is connected to the ground.
Mike's signal wire is pulled upward to power supply VMIC by the 5th resistance, provides bias for Mike's signal wire.Mike's signal wire
When being connect with Mike, power supply VMIC can be divided with the 5th resistance R5, so as to cause the 4th port level state of comparator
It changes compared with reference level.By the way that the intrinsic standoff ratio of first resistor R1 and second resistance R2 is arranged, so that in not connected ear
When machine, the 4th port of comparator is pulled upward to power supply VMIC by 3rd resistor R3 and the 5th resistance R5, and level is inputted higher than third
The reference level of interface, the 5th output port of comparator are pulled upward to VDD by the 4th resistance R4, export high level.Work as engaging lug
When machine, power supply VMIC is divided over the ground by the 5th resistance and Mike's internal resistance, so that the 4th port level of comparator is lower than third
The reference voltage of port, the 5th output port of comparator export low level.
Push button signalling line PTT is connect with the GPIO port of primary processor 1.Push button signalling line and the second transient voltage inhibit two
One end of pole pipe RV2, one end of the second capacitor C2, the GPIO port of primary processor 1 are connected, the second transient voltage suppressor diode
The other end of the other end of RV2 and the second capacitor C2 ground connection, to prevent exterior static damage internal interface and filter out high-frequency noise.
The connection of the L channel port of left channel signals line and audio processor, the right side of right-channel signals line and audio processor
The connection of sound channel port.
Specifically, one end of left channel signals line HPH_L and third transient voltage suppressor diode RV3, third capacitor C3
One end, audio processor 2 port HPL be connected, the other end of third transient voltage suppressor diode RV3 and third capacitor C3
Ground connection is respectively intended to prevent exterior static damage internal interface and filters out high-frequency noise.
One end of right-channel signals line HPH_R and signal wire HPH_R and the 4th transient voltage suppressor diode RV4, the 4th
One end of capacitor C4, audio processor 2 port HPR be connected, the 4th transient voltage suppressor diode RV4 and the 4th capacitor C4's
Other end ground connection is respectively intended to prevent exterior static damage internal interface and filters out high-frequency noise.
In summary, Mike's signal wire, push button signalling line, the first sound channel signal line, second sound channel signal wire, are connected to respectively
The first, second, third and fourth capacitor over the ground, for inhibiting the external High-frequency Interference introduced;It is connected to transition over the ground respectively
Voltage suppression diode, for preventing electrostatic from damaging to signaling interface.
Audio processor 2 passes to primary processor for receiving Mike's signal after handling, or receives and carry out host processor
Audio signal, sent after processing by earphone interface.Primary processor is for judging headset detection interface and keystroke interface
State, receive and processing the signal from audio processor, audio signal is sent to audio processor by signaling interface.
Primary processor passes through the level state of headset detection port, and earphone shape in place is identified according to following several situations
State:
(1) level state of primary processor test earphone detection port, and judge accordingly and report earphone state in place, together
When be arranged headset detection port down trigger mode, wait interrupt response to be triggered.Primary processor detects headset detection port
Level state after, need to record this level state, the foundation as subsequent judgement
(2) reporting interruption event after triggering is interrupted shows earphone state in place, and the interruption touching of headset detection port is arranged
Originating party formula, waiting trigger interrupt response next time.After the triggering of headset detection port is interrupted, the T that is delayed is needed, for removing earphone inspection
Survey the shake of interface signal.The triggering of headset detection port is interrupted and is delayed after T, needs to read the level of current earphone detection port
State, and be compared with the level state recorded before.If level state on the contrary, if directly sentenced according to current level state
Otherwise disconnected earphone state in place resets the down trigger mode of headset detection port, waits interrupt response to be triggered.
In an embodiment of the present invention, primary processor uses the processor chips of model LC1860, and audio processor is adopted
With the audio processing modules of LC1160.
As shown in Figure 4 and Figure 5, the earphone of the embodiment of the present invention includes the following steps: in position detecting method
Step S1, primary processor test earphone detect the level state of port, judge the in place of earphone according to level state
State executes step S2 when judging that earphone is not in place, no to then follow the steps S3.
In this step, according to the difference of the wiring relationship of two input terminals of comparator in Fig. 3, sentenced according to level state
The state in place of disconnected earphone, including following two situation:
(1) when headset detection port is high level, judge that earphone is not in place;When headset detection port is low level, sentence
Disconnected earphone is in place.
(2) when headset detection port is low level, judge that earphone is not in place;When headset detection port is high level, sentence
Disconnected earphone is in place.
Step S2, when earphone is not in place, setting triggering interrupt mode is that low level triggering is interrupted, and waits down trigger,
Earphone state is reported simultaneously, and record current earphone detects the level value of interface in place;Before judging current level value and down trigger
Level whether on the contrary, if it is S3 is thened follow the steps, otherwise continue low level is arranged to trigger and interrupt;
Step S3 opens earphone and MIC access when earphone is in place, and setting triggering interrupt mode is in high level triggering
It is disconnected, down trigger is waited, while reporting earphone state, record current earphone detects the level value of interface in place;The current electricity of judgement
Otherwise whether the level before level values and down trigger on the contrary, if it is S2 is thened follow the steps continues that high level triggering interruption is arranged.
In an embodiment of the present invention, after triggering is interrupted, after the preset duration that is delayed, earphone state is reported, record works as vestibule
Machine detects the level value of interface in place.Wherein, delay duration is 300ms to 800ms.
Preferably, delay duration 500ms.
Specifically, after system electrification, each earpiece audio access should be at off-state, and primary processor reads earphone first
The level state of detection port in place, and judge accordingly and report earphone state in place.If being read as high level, judge at this time
Earphone is not in place, and setting headset detection interface is that low level triggers interrupt mode, waits down trigger, while reporting earphone shape
State, record current earphone detect the level value of interface in place.If being read as low level, judge that earphone is in place at this time, opens ear
Machine voice-frequency channel, it is that high level triggers interrupt mode that setting earphone detects interface in place, waits down trigger, while reporting earphone
State, the level value of record current earphone detection interface.
After triggering is interrupted, delay time T, this event T can be according to the signals generated in earphone actual installation disassembly process
Shaky time is arranged, such as 500ms.
Next, if master chip reads the level value that current earphone detects interface in place, and and the last level recorded
Value is compared.If level is consistent, illustrate that this interrupt event is false triggering event, it should which earphone is detected to interface weight in place
It is newly set as and last consistent down trigger state, waiting is interrupted next time.If level is inconsistent, current earphone is reported to exist
Position state, while control opens or closes earpiece audio access detects earphone in place during interface is set as opposite with last time
Disconnected triggering state waits next down trigger.
For example, current earphone is state in place, it is low level that earphone detects interface level in place, and down trigger mode is height
Level triggers.After down trigger, reads earphone and detect interface level in place.If low level, then do not change earphone in place and
Voice-frequency channel state, and earphone is detected into interface in place and is re-set as high level trigger mode, wait next down trigger.If
After down trigger, reading earphone and detecting interface level in place is high level, then reports display earphone in place, not simultaneously close off ear
Machine voice-frequency channel, it is that low level triggers interrupt mode that setting earphone detects interface in place, waits next down trigger.
Earphone according to an embodiment of the present invention detection circuit in place and detection method, pass through Mike's signal wire, push button signalling
Line, the first sound channel signal line, second sound channel signal wire, are connected to the first, second, third and fourth capacitor over the ground respectively, are used for
Inhibit the external High-frequency Interference introduced;It is connected to transient voltage suppressor over the ground, respectively for preventing electrostatic from connecing to signal
Mouth damages.Structure type of the present invention independent of earphone interface, and can judge common 32 Europe earphone and with power amplifier hand
The state in place of miaow largely eliminates signal jitter bring and judges problem by accident, greatly reduces earphone and examine in place
The False Rate of survey realizes simple, high reliablity.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any
One or more embodiment or examples in can be combined in any suitable manner.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example
Property, it is not considered as limiting the invention, those skilled in the art are not departing from the principle of the present invention and objective
In the case where can make changes, modifications, alterations, and variations to the above described embodiments within the scope of the invention.The scope of the present invention
By appended claims and its equivalent limit.
Claims (10)
1. a kind of earphone detection circuit in place characterized by comprising primary processor, audio processor, earphone detect electricity in place
Road, Mike's signal wire, left channel signals line, right-channel signals line and push button signalling line, wherein
The earphone detection circuit in place includes comparator, first resistor, second resistance, 3rd resistor and the 4th resistance, wherein
The first port of the comparator is connected to one end of the end power supply VMIC and first resistor, the other end connection of the first resistor
To the third port of the comparator, the second port of the comparator is connected to the ground one end with second resistance, and described second
The other end of resistance is connect with the other end of the first resistor, and the 4th port of the comparator and one end of 3rd resistor connect
It connects, the output end of the comparator is connect with the headset detection port of the primary processor, to mention to the headset detection port
For high level, the primary processor is further connect with audio processor,
The connection of one end of Mike's signal wire and magnetic bead, the other end and institute of the other end of the magnetic bead and the 3rd resistor
The Mike port connection of audio processor is stated, the push button signalling line is connect with the GPIO port of the primary processor;The left side
Sound channel signal line is connect with the L channel port of the audio processor, the right-channel signals line and the audio processor
The connection of right channel port.
2. earphone detection circuit in place as described in claim 1, which is characterized in that the other end of the magnetic bead and the 5th resistance
The Mike port connection of one end, one end of the first transient voltage suppressor diode, one end of first capacitor, audio processor, institute
It states the 5th resistance other end to connect with the end power supply VMIC, to provide bias voltage, the first transient voltage suppression for audio signal
The other end of diode RV1 processed and the other end of first capacitor are grounded, to prevent exterior static damage internal interface and filter out
High-frequency noise.
3. earphone detection circuit in place as described in claim 1, which is characterized in that the push button signalling line and the second transient state electricity
Oppressive one end of diode processed, one end of the second capacitor, the GPIO port of primary processor are connected, and second transient voltage inhibits
The other end of the other end of diode and the second capacitor ground connection, to prevent from exterior static damage internal interface and filter out high frequency to make an uproar
Sound.
4. earphone detection circuit in place as described in claim 1, which is characterized in that the left channel signals line with third wink
One end of state voltage suppression diode, one end of third capacitor, the L channel port of audio processor are connected, the third transient state
The other end of voltage suppression diode and the other end ground connection of third capacitor, to prevent exterior static damage internal interface and filter out
High-frequency noise;
The right-channel signals line and one end of the 4th transient voltage suppressor diode, one end of the 4th capacitor, at the audio
It manages device right channel port to be connected, the other end of the 4th transient voltage suppressor diode and another termination of the 4th capacitor C4
Ground, to prevent exterior static damage internal interface and filter out high-frequency noise.
5. earphone detection circuit in place as described in claim 1, which is characterized in that the first port is the comparator
Feeder ear, the second port are the ground terminal of the comparator, and the third port is that the reference voltage of the comparator is defeated
Enter end, the 4th port is the input signal end of the comparator.
6. a kind of earphone using the described in any item earphones of claim 1-5 detection circuit in place is in position detecting method, spy
Sign is, includes the following steps:
Step S1, primary processor test earphone detect the level state of port, judge the in place of earphone according to the level state
State executes step S2 when judging that the earphone is not in place, no to then follow the steps S3;
Step S2, when the earphone is not in place, setting triggering interrupt mode is that low level triggering is interrupted, and waits down trigger,
Earphone state is reported simultaneously, and record current earphone detects the level value of interface in place;Before judging current level value and down trigger
Level whether on the contrary, if it is S3 is thened follow the steps, otherwise continue low level is arranged to trigger and interrupt;
Step S3 opens earphone and MIC access when the earphone is in place, and setting triggering interrupt mode is in high level triggering
It is disconnected, down trigger is waited, while reporting earphone state, record current earphone detects the level value of interface in place;The current electricity of judgement
Otherwise whether the level before level values and down trigger on the contrary, if it is S2 is thened follow the steps continues that high level triggering interruption is arranged.
7. earphone as claimed in claim 6 is in position detecting method, which is characterized in that in the step S1, when the earphone
When detection port is high level, judge that the earphone is not in place;When the headset detection port is low level, the ear is judged
Machine is in place.
8. earphone as claimed in claim 6 is in position detecting method, which is characterized in that in the step S1, when the earphone
When detection port is low level, judge that the earphone is not in place;When the headset detection port is high level, the ear is judged
Machine is in place.
9. earphone as claimed in claim 6 is in position detecting method, which is characterized in that in the step S2 and step S3, touching
After hair interrupts, after the preset duration that is delayed, earphone state is reported, record current earphone detects the level value of interface in place.
10. earphone as claimed in claim 9 is in position detecting method, which is characterized in that the delay duration be 300ms extremely
800ms。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910316126.2A CN110012407A (en) | 2019-04-19 | 2019-04-19 | A kind of earphone detection circuit in place and detection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910316126.2A CN110012407A (en) | 2019-04-19 | 2019-04-19 | A kind of earphone detection circuit in place and detection method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110012407A true CN110012407A (en) | 2019-07-12 |
Family
ID=67172968
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910316126.2A Pending CN110012407A (en) | 2019-04-19 | 2019-04-19 | A kind of earphone detection circuit in place and detection method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110012407A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111757202A (en) * | 2020-06-22 | 2020-10-09 | 环鸿电子(昆山)有限公司 | Earphone recognition device, sound playing device and earphone recognition method |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201509235U (en) * | 2009-09-25 | 2010-06-16 | 宇龙计算机通信科技(深圳)有限公司 | Headphone detection circuit of mobile terminal and mobile terminal thereof |
CN101784001A (en) * | 2009-12-18 | 2010-07-21 | 华为终端有限公司 | Headset socket and headset keypad detection method |
CN201657320U (en) * | 2010-06-12 | 2010-11-24 | 广东欧珀移动通信有限公司 | Earphone plug-pull detecting circuit for mobile phone |
CN201733438U (en) * | 2010-07-15 | 2011-02-02 | 广东欧珀移动通信有限公司 | Earphone plugging and pulling detection circuit |
CN103188594A (en) * | 2011-12-28 | 2013-07-03 | 比亚迪股份有限公司 | Detection circuit and detection method for earphone |
CN203734838U (en) * | 2014-02-26 | 2014-07-23 | 北京信威通信技术股份有限公司 | Earphone plugging detection apparatus |
US20140294184A1 (en) * | 2013-04-01 | 2014-10-02 | Acer Incorporated | Detection circuit |
-
2019
- 2019-04-19 CN CN201910316126.2A patent/CN110012407A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201509235U (en) * | 2009-09-25 | 2010-06-16 | 宇龙计算机通信科技(深圳)有限公司 | Headphone detection circuit of mobile terminal and mobile terminal thereof |
CN101784001A (en) * | 2009-12-18 | 2010-07-21 | 华为终端有限公司 | Headset socket and headset keypad detection method |
CN201657320U (en) * | 2010-06-12 | 2010-11-24 | 广东欧珀移动通信有限公司 | Earphone plug-pull detecting circuit for mobile phone |
CN201733438U (en) * | 2010-07-15 | 2011-02-02 | 广东欧珀移动通信有限公司 | Earphone plugging and pulling detection circuit |
CN103188594A (en) * | 2011-12-28 | 2013-07-03 | 比亚迪股份有限公司 | Detection circuit and detection method for earphone |
US20140294184A1 (en) * | 2013-04-01 | 2014-10-02 | Acer Incorporated | Detection circuit |
CN203734838U (en) * | 2014-02-26 | 2014-07-23 | 北京信威通信技术股份有限公司 | Earphone plugging detection apparatus |
Non-Patent Citations (1)
Title |
---|
许立群,周玉坤,修丽梅: "《DSP技术与应用》", 31 May 2015, 北京航空航天大学出版社 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111757202A (en) * | 2020-06-22 | 2020-10-09 | 环鸿电子(昆山)有限公司 | Earphone recognition device, sound playing device and earphone recognition method |
CN111757202B (en) * | 2020-06-22 | 2022-05-27 | 环鸿电子(昆山)有限公司 | Earphone recognition device, sound playing device and earphone recognition method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9877126B2 (en) | Apparatus, systems and methods for detecting insertion or removal of an audio accessory from an electronic device | |
KR101946486B1 (en) | Ear-phone Operation System and Ear-phone Operating Method, and Portable Device supporting the same | |
CN105611459B (en) | It is a kind of to switch and detection circuit and corresponding operation method | |
US20080130911A1 (en) | Electronic device Capable of Automatically Discriminating Headset Type and Related Method | |
CN101841753A (en) | Drive-by-wire earphone for portable electronic equipment and method for realizing drive-by-wire | |
CN101917497A (en) | Method and device for earphone and USB to share micro-USB interface | |
CN104918154B (en) | The method whether earphone socket and test earphone are inserted in place | |
CN101453510A (en) | Earphone recognition apparatus and method for mobile communication terminal | |
CN102158779A (en) | Earphone socket and realization method thereof | |
CN107786741A (en) | A kind of HAC systems and its implementation based on mobile terminal | |
CN106465005A (en) | Earphone type identification method, apparatus and terminal device | |
CN110012407A (en) | A kind of earphone detection circuit in place and detection method | |
CN105142072B (en) | A kind of audio devices and audio frequency playing method of external player | |
CN101990144A (en) | Double earphone adapter, main board and method for detecting double earphones | |
KR20120102810A (en) | Earphone pulling and plugging detection circuit | |
CN107613446B (en) | Detection method for preventing microphone from howling, mobile terminal and storage medium | |
CN107885480A (en) | Interface detects circuit and audio frequency apparatus | |
CN204539418U (en) | A kind of multifunctional headphone | |
CN103647863B (en) | A kind of method and system that earphone loop is mutually measured based on two mobile terminals | |
KR101507296B1 (en) | Transfer device, electronic signature tool, detection device and interface detection system | |
US8660273B2 (en) | Interface circuit and electronic device using the same | |
CN104093104A (en) | Circuit and method for eliminating POP sound of earphone | |
EP2806655B1 (en) | Audio interface adapter device and audio signal receiving apparatus | |
CN102769697B (en) | Method and system for preventing false key-pressing caused by earphone inserted into terminal device | |
EP2770748B1 (en) | Apparatus, systems and methods for detecting insertion or removal of an audio accessory from an electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190712 |
|
RJ01 | Rejection of invention patent application after publication |