CN102928734A - Interrupt detecting device and interrupt detecting method - Google Patents

Interrupt detecting device and interrupt detecting method Download PDF

Info

Publication number
CN102928734A
CN102928734A CN 201210454895 CN201210454895A CN102928734A CN 102928734 A CN102928734 A CN 102928734A CN 201210454895 CN201210454895 CN 201210454895 CN 201210454895 A CN201210454895 A CN 201210454895A CN 102928734 A CN102928734 A CN 102928734A
Authority
CN
China
Prior art keywords
plug
baseband chip
detection unit
pin
state
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.)
Withdrawn
Application number
CN 201210454895
Other languages
Chinese (zh)
Inventor
徐敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huaqin Telecom Technology Co Ltd
Original Assignee
Huaqin Telecom Technology Co Ltd
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 Huaqin Telecom Technology Co Ltd filed Critical Huaqin Telecom Technology Co Ltd
Priority to CN 201210454895 priority Critical patent/CN102928734A/en
Publication of CN102928734A publication Critical patent/CN102928734A/en
Priority to CN201310129589.0A priority patent/CN103197199B/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

The invention discloses an interrupt detecting device and an interrupt detecting method. The interrupt detecting device comprises a plug hole, a baseband chip, an electrical level detecting unit and a state detecting unit. The plug hole comprises a DETECT pin. The electrical level detecting unit is used to detect whether a LAUDIO pin of the plug pin is connected with the DETECT pin. If the LAUDIO pin is connected with the DETECT pin, a trigger signal is generated by the electrical level detecting unit and transmitted to the baseband chip. When receiving the trigger signal, the baseband chip starts the state detecting unit. The state detecting unit is used to detect whether a MIC pin is connected with the DETECT pin. If the MIC pin is connected with the DETECT pin, a state value is generated by the state detecting unit and transmitted to the baseband chip. The baseband chip receives the state value and judges whether a plug is connected with a cellphone flash or an earphone based on the state value. The interrupt detecting device and the interrupt detecting method have the advantages that stabilization time does need considering and identification of the plug by the interrupt detecting device is not affected by excessively rapid or slow plugging of the plug and the like.

Description

Interrupt detection apparatus and method
Technical field
The present invention relates to a kind of pick-up unit and method, especially relate to a kind of interrupt detection apparatus and method.
Background technology
At present, the mobile phone that has occurred adopts earphone and incoming call flashing to share same interface mostly, this mode need to strictly distinguish earphone and the incoming call flashing that inserts, it is earphone or incoming call flashing that plug is identified in now most of variations of adopting the ADC interruption to read the level in the insertion process, as shown in Figure 1, this recognition method need to be considered the anti-shake time, and the level that the ADC interruption detects in the process of inserting is unstable, especially in the situation that insertion speed is excessively slow, the impact of the speed that the variation of level is inserted is very large, so that the probability of error of the identification of the plug that inserts is increased.
In Fig. 1,1 the expression be GND(ground connection) pin, 2 the expression be MIC(Mike) pin, 3 the expression be the RAUDIO(R channel) pin, 4 expressions be that DETECT(detects) pin, 5 the expression be L AUDIO(L channel) pin, vdd18 interrupts providing drawing level for EINT, so that when inserting without plug, EINT interrupts for high level, when plug inserts, DETECT pin and L AUDIO pin short circuit, so that the level that originally interrupted for the EINT of high level changes, ADC interrupts detecting this level, is earphone or incoming call flashing based on this plug of this electrical level judging.Wherein, this EINT interruption, ADC interrupt being the self-defining interruption of deviser.Earphone can be divided into four joints, and first segment is the LAUDIO(L channel), second section is the RAUDIO(R channel), the 3rd joint is for MIC(Mike) and the 4th joint be GND(ground connection), wherein, earphone also can be divided into three joint earphone, like this MIC(Mikes) and GND(ground connection) shared joint.
Summary of the invention
The technical problem to be solved in the present invention is that to interrupt the plug that identification inserts be that this recognition method of earphone or incoming call flashing need to be considered the anti-shake time in order to overcome available technology adopting ADC, level is unstable and insert plug and cross when slow the defective that the probability of error to the identification of plug increases when inserting plug, a kind of interrupt detection apparatus and method are provided, have and need not to consider the anti-shake time, the plug that inserts is too fast or cross and all do not affect interrupt detection apparatus to the identification of the classification of plug when slow, and the accurate advantage such as identification.
The present invention solves above-mentioned technical matters by following technical proposals:
A kind of interrupt detection apparatus, it comprises a jack and a baseband chip, and this jack comprises a DETECT pin, and its characteristics are, and this interrupt detection apparatus also comprises a level detection unit and a state detection unit;
Whether this level detection unit is connected with this DETECT pin for detection of the LAUDIO pin of a plug, if, then this level detection unit produces a trigger pip and transfers to this baseband chip, and this baseband chip starts this state detection unit after receiving this trigger pip;
Whether this state detection unit is connected with this DETECT pin for detection of the MIC pin of this plug, if, then this state detection unit produces a state value and transfers to this baseband chip, and what this baseband chip received this state value and judged the access of this plug based on this state value is an incoming call flashing or an earphone.
Wherein, this incoming call flashing refers to that mobile phone is to the base station transmitted signal time, can send very strong electromagnetic wave, according to electromagnetic theory, electromagnetic wave runs into antenna aloft, stage casing at antenna will produce voltage and current, incoming call flashing is exactly a receiving antenna in fact, it becomes voltage and current to the electromagnetic wave signal of mobile phone and causes luminous, existing mobile phone adopts earphone and incoming call flashing to share same interface mostly, so this plug that need to insert this jack is that this incoming call flashing or this earphone are accurately identified.
Preferably, this state value that this baseband chip receives is 3 o'clock, and what this plug accessed is this incoming call flashing; This state value that this baseband chip receives is 1 o'clock, being earphone and being one or four joint earphones of this plug access; This state value that this baseband chip receives is 0 o'clock, being earphone and being one or three joint earphones of this plug access.
Wherein, what this state value that this baseband chip receives and this plug accessed is that this incoming call flashing, this three joint earphone or this four joints earphone exist one to one relation, but this one-to-one relationship is not unalterable, and it is different and different along with the corresponding relation that arranges in the software program.As: this state value that this baseband chip receives is 0 o'clock, and what this plug accessed is this incoming call flashing; This state value that this baseband chip receives is 1 o'clock, being earphone and being this four joints earphone of this plug access; This state value that this baseband chip receives is 3 o'clock, being earphone and being this three joints earphone of this plug access.
Preferably, this level detection unit comprises an inductance, one first resistance, one second resistance and a power supply, and this inductance is connected with this baseband chip by this first resistance, and this inductance is connected with this power supply by this second resistance.
Preferably, this state detection unit comprises that one punctures diode, one the 3rd resistance and an electric capacity, and this breakdown diode is connected with this baseband chip by the 3rd resistance, and this breakdown diode is by this capacity earth.
The present invention also provides a kind of interruption detection method, and its characteristics are, it adopts above-mentioned interrupt detection apparatus to realize, this interruption detection method may further comprise the steps:
Step S 1, whether this level detection unit L AUDIO pin of detecting this plug be connected with this DETECT pin, if then enter step S 2, otherwise repeating step S 1
Step S 2, this level detection unit produces this trigger pip and transfers to this baseband chip;
Step S 3, this baseband chip receives and starts this state detection unit after this trigger pip;
Step S 4, whether this state detection unit MIC pin of detecting this plug be connected with this DETECT pin, if then enter step S 5, otherwise process ends;
Step S 5, this state detection unit produces this state value and transfers to this baseband chip;
Step S 6, this baseband chip judges that based on this state value this plug that this jack inserts is this incoming call flashing or this earphone.
Preferably, this step S 6For:
This state value is 3 o'clock, and what this plug accessed is this incoming call flashing; This state value is 1 o'clock, being earphone and being one or four joint earphones of this plug access; This state value is 0 o'clock, being earphone and being one or three joint earphones of this plug access.
Positive progressive effect of the present invention is:
Interrupt detection apparatus of the present invention and method, by utilizing level detection unit to produce trigger pip, baseband chip is received starting state detecting unit after the trigger pip, state detection unit produces state value, and what baseband chip accepting state value and state-based value were judged the plug access is incoming call flashing or earphone.This implementation need not to consider the anti-shake time, and the plug of insertion does not all affect interrupt detection apparatus to the identification of the classification of plug when too fast or excessively slow, and can accurately identify.
Description of drawings
Fig. 1 is the circuit structure diagram of the interrupt detection apparatus of prior art.
Fig. 2 is the structural drawing of the interrupt detection apparatus of preferred embodiment of the present invention.
Fig. 3 is the circuit structure diagram of the interrupt detection apparatus of preferred embodiment of the present invention.
Fig. 4 is the process flow diagram of interruption detection method of the interrupt detection apparatus of preferred embodiment of the present invention.
Embodiment
Provide preferred embodiment of the present invention below in conjunction with accompanying drawing, describing technical scheme of the present invention in detail, but therefore do not limit the present invention among the described scope of embodiments.
As shown in Figure 2, the interrupt detection apparatus of the present embodiment comprises a jack 21, a baseband chip 22, a level detection unit 23 and a state detection unit 24, this jack 21 comprises a DETECT pin 4, this baseband chip 22 is with MTK(MediaTek, MediaTek Inc) the platform baseband chip is example.
Wherein, whether this level detection unit 23 is connected with this DETECT pin 4 for detection of the L AUDIO pin of a plug, if, then this level detection unit 23 produces a trigger pip and transfers to this baseband chip 22, this baseband chip 22 starts this state detection unit 24 after receiving this trigger pip, if not, then whether the LAUDIO pin of these level detection unit 23 these plugs of continuation detection is connected with this DETECT pin 4.
Whether this state detection unit 24 is connected with this DETECT pin 4 for detection of the MIC pin of this plug, if, then this state detection unit 24 produces state values and transfers to this baseband chip 22, and what this baseband chip 22 received these state values and judged this plug access based on this state value is an incoming call flashing or an earphone.When this state value was 3, what this plug accessed was this incoming call flashing; When this state value is 1, being earphone and being one or four joint earphones of this plug access; When this state value is 0, being earphone and being one or three joint earphones of this plug access.
Certainly, what this state value that this baseband chip 22 receives and this plug accessed is that this incoming call flashing, this three joint earphone or this four joints earphone exist one to one relation, but this one-to-one relationship is not unalterable, and it is different and different along with the corresponding relation that arranges in the software program.
With reference to shown in Figure 3, it is the circuit structure diagram of interrupt detection apparatus of the present invention, and the present embodiment is described in detail this interrupt detection apparatus in conjunction with the structure of above-mentioned interrupt detection apparatus and the circuit structure diagram of Fig. 3:
This level detection unit 23 comprises an inductance, one first resistance, one second resistance and a power supply, this inductance interrupts being connected with the EINT of this baseband chip 22 by this first resistance, and this inductance access on the vdd18(by this second resistance draw level), when this jack 21 there is no the access plug, this vdd18 is so that the EINT of this baseband chip 22 interrupts being high level, when this jack 21 access plug, whether the L AUDIO pin that this level detection unit 23 detects this plug is connected with this DETECT pin 4, if, then this level detection unit 23 produces these trigger pips and the EINT by this baseband chip 22 interrupts transferring to this baseband chip 22, this trigger pip is the negative edge trigger pip, this baseband chip 22 starts this state detection unit 24 after receiving this trigger pip, if not, then whether the LAUDIO pin of these level detection unit 23 these plugs of continuation detection is connected with this DETECT pin 4.
This state detection unit 24 comprises that one punctures diode, one the 3rd resistance and an electric capacity, this breakdown diode is connected with this baseband chip 22 by the 3rd resistance, and this breakdown diode is by this capacity earth, whether the MIC pin that this state detection unit 24 detects this plug is connected with this DETECT pin 4, if, then this state detection unit 24 is exported a state, produce this state value and the ACCDET by this baseband chip 22 interrupts transferring to this baseband chip 22, what this baseband chip 22 received these state values and judged this plug access based on this state value is this incoming call flashing or this earphone.For example: when the state of these state detection unit 24 outputs was high-impedance state, this state value was 3; When the state of these state detection unit 24 outputs was high level, this state value was 1; When the state of these state detection unit 24 outputs was low level, this state value was 0.When this state value was 3, what this plug accessed was this incoming call flashing; When this state value is 1, being earphone and being one or four joint earphones of this plug access; When this state value is 0, being earphone and being one or three joint earphones of this plug access.
Wherein, the EINT in this baseband chip 22 interrupts and ACCDET interrupts being the self-defining interruption of deviser, and certainly, this interruption can be with other name nominating.
In addition, the state of these state detection unit 24 outputs and the corresponding relation of this state value can be arbitrarily, and what this state value and this plug accessed is that this incoming call flashing, this three joint earphone or this four corresponding relation that saves earphone also are arbitrarily.
The present invention also provides a kind of interruption detection method, and its characteristics are, it adopts above-mentioned interrupt detection apparatus to realize, this interruption detection method may further comprise the steps:
Whether the L AUDIO pin that step 101, this level detection unit detect this plug is connected with this DETECT pin, if, then enter step 102, otherwise repeating step 101;
Step 102, this level detection unit produce this trigger pip and transfer to this baseband chip;
Step 103, this baseband chip start this state detection unit after receiving this trigger pip;
Whether the MIC pin that step 104, this state detection unit detect this plug is connected with this DETECT pin, if, then enter step 105, otherwise process ends;
Step 105, this state detection unit produce this state value and transfer to this baseband chip;
What step 106, this baseband chip were judged this plug access based on this state value is this incoming call flashing or this earphone, this state value is 3 o'clock, what this plug accessed is this incoming call flashing, this state value is 1 o'clock, this plug that this jack inserts is earphone and is one or four joint earphones, this state value is 0 o'clock, being earphone and being one or three joint earphones of this plug access.
Each functional module among the present invention all can be realized in conjunction with existing software programming means under existing hardware condition, do not give unnecessary details therefore at this its concrete methods of realizing is not all done.
Although more than described the specific embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, protection scope of the present invention is limited by appended claims.Those skilled in the art can make various changes or modifications to these embodiments under the prerequisite that does not deviate from principle of the present invention and essence, but these changes and modification all fall into protection scope of the present invention.

Claims (6)

1. interrupt detection apparatus, it comprises a jack and a baseband chip, and this jack comprises a DETECT pin, it is characterized in that, and this interrupt detection apparatus also comprises a level detection unit and a state detection unit;
Whether this level detection unit is connected with this DETECT pin for detection of the LAUDIO pin of a plug, if, then this level detection unit produces a trigger pip and transfers to this baseband chip, and this baseband chip starts this state detection unit after receiving this trigger pip;
Whether this state detection unit is connected with this DETECT pin for detection of the MIC pin of this plug, if, then this state detection unit produces a state value and transfers to this baseband chip, and what this baseband chip received this state value and judged the access of this plug based on this state value is an incoming call flashing or an earphone.
2. interrupt detection apparatus as claimed in claim 1 is characterized in that, this state value that this baseband chip receives is 3 o'clock, and what this plug accessed is this incoming call flashing; This state value that this baseband chip receives is 1 o'clock, being earphone and being one or four joint earphones of this plug access; This state value that this baseband chip receives is 0 o'clock, being earphone and being one or three joint earphones of this plug access.
3. interrupt detection apparatus as claimed in claim 1, it is characterized in that, this level detection unit comprises an inductance, one first resistance, one second resistance and a power supply, and this inductance is connected with this baseband chip by this first resistance, and this inductance is connected with this power supply by this second resistance.
4. interrupt detection apparatus as claimed in claim 1, it is characterized in that, this state detection unit comprises that one punctures diode, one the 3rd resistance and an electric capacity, and this breakdown diode is connected with this baseband chip by the 3rd resistance, and this breakdown diode is by this capacity earth.
5. one kind interrupts detection method, it is characterized in that, it adopts such as the described interrupt detection apparatus of any one among the claim 1-4 and realizes, this interruption detection method may further comprise the steps:
Step S 1, whether this level detection unit L AUDIO pin of detecting this plug be connected with this DETECT pin, if then enter step S 2, otherwise repeating step S 1
Step S 2, this level detection unit produces this trigger pip and transfers to this baseband chip;
Step S 3, this baseband chip receives and starts this state detection unit after this trigger pip;
Step S 4, whether this state detection unit MIC pin of detecting this plug be connected with this DETECT pin, if then enter step S 5, otherwise process ends;
Step S 5, this state detection unit produces this state value and transfers to this baseband chip;
Step S 6, this baseband chip judges the access of this plug based on this state value is this incoming call flashing or this earphone.
6. interruption detection method as claimed in claim 5 is characterized in that, this step S 6For:
This state value is 3 o'clock, and what this plug accessed is this incoming call flashing; This state value is 1 o'clock, being earphone and being one or four joint earphones of this plug access; This state value is 0 o'clock, being earphone and being one or three joint earphones of this plug access.
CN 201210454895 2012-11-13 2012-11-13 Interrupt detecting device and interrupt detecting method Withdrawn CN102928734A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN 201210454895 CN102928734A (en) 2012-11-13 2012-11-13 Interrupt detecting device and interrupt detecting method
CN201310129589.0A CN103197199B (en) 2012-11-13 2013-04-15 Interrupt detection apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201210454895 CN102928734A (en) 2012-11-13 2012-11-13 Interrupt detecting device and interrupt detecting method

Publications (1)

Publication Number Publication Date
CN102928734A true CN102928734A (en) 2013-02-13

Family

ID=47643578

Family Applications (2)

Application Number Title Priority Date Filing Date
CN 201210454895 Withdrawn CN102928734A (en) 2012-11-13 2012-11-13 Interrupt detecting device and interrupt detecting method
CN201310129589.0A Active CN103197199B (en) 2012-11-13 2013-04-15 Interrupt detection apparatus and method

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201310129589.0A Active CN103197199B (en) 2012-11-13 2013-04-15 Interrupt detection apparatus and method

Country Status (1)

Country Link
CN (2) CN102928734A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104821981A (en) * 2015-03-13 2015-08-05 惠州Tcl移动通信有限公司 Detection method for earphone operation

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104849554B (en) * 2014-02-14 2018-01-05 快捷半导体(苏州)有限公司 Impedance detection circuit, method and integrated circuit
CN112350888B (en) * 2020-10-23 2022-10-11 英业达科技有限公司 Starting state detection system and method thereof

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4182802B2 (en) * 2003-04-25 2008-11-19 ソニー株式会社 Acoustic signal input / output device, input / output circuit switching method
CN101069410A (en) * 2004-10-25 2007-11-07 诺基亚公司 Detection, identification and operation of peripherals connected via an audio/video-plug to an electronic device
CN100442893C (en) * 2006-03-08 2008-12-10 华为技术有限公司 Method for preventing mobile terminal earphone keystroke mis-operation and mobile terminal
CN201657320U (en) * 2010-06-12 2010-11-24 广东欧珀移动通信有限公司 Earphone plug-pull detecting circuit for mobile phone
CN202310062U (en) * 2011-09-02 2012-07-04 广东欧珀移动通信有限公司 Compatible three-section earphone insertion detection circuit
CN202425042U (en) * 2011-12-23 2012-09-05 闻泰通讯股份有限公司 Earphone plugging-unplugging detecting device of mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104821981A (en) * 2015-03-13 2015-08-05 惠州Tcl移动通信有限公司 Detection method for earphone operation
CN104821981B (en) * 2015-03-13 2017-11-07 惠州Tcl移动通信有限公司 A kind of detection method of earphone operation

Also Published As

Publication number Publication date
CN103197199A (en) 2013-07-10
CN103197199B (en) 2016-01-20

Similar Documents

Publication Publication Date Title
CN100495377C (en) Method for inspecting type of connected peripheral apparatus and terminal interface
US8796988B2 (en) Input-output circuit
CN201359725Y (en) USB interface circuit and portable hand-held device provided with the circuit
CN202634659U (en) Earphone interface self-adaptive circuit and mobile terminal
US9077195B2 (en) Input-output circuit
CN101431708A (en) Terminal and method for recognizing headphone type
CN102739231B (en) Input-output circuit
CN103095855B (en) I2C communication interface unit
CN102231543A (en) System capable of identifying charging capability of charger and charging method thereof
EP2860638B1 (en) Serial communication over communication control pin
US20150125005A1 (en) Audio interface self-adaptation device
US9749748B2 (en) Electronic device and method for detecting plug type of audio device inserted into electronic device
US20150016619A1 (en) Apparatus for detecting type of audio interface
CN102158779A (en) Earphone socket and realization method thereof
CN102928734A (en) Interrupt detecting device and interrupt detecting method
CN103379402B (en) Earphone interface circuit and the portable electron device with the earphone interface circuit
CN103078224A (en) Connecting line, control method, control circuit and electronic equipment
CN206353652U (en) USB transmission line, mobile terminal
CN104066028A (en) Communication method based on headset jack and terminal device
CN110489283A (en) The test device and method of USB interface
CN106105101B (en) For the system and method by testing RF transceiver via interruption control testing process is caused
CN106374309A (en) USB transmission line, mobile terminal and USB charging method
CN109713511B (en) Detection circuit, earphone socket, method and mobile terminal
CN105048018A (en) Charging method and device for terminal having on-the-go (OTG) function
CN1867134A (en) Method for preventing mobile terminal earphone keystroke mis-operation and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C04 Withdrawal of patent application after publication (patent law 2001)
WW01 Invention patent application withdrawn after publication

Application publication date: 20130213