CN107172515A - Test earphone plug is inserted in mobile terminal detection circuit and mobile terminal - Google Patents

Test earphone plug is inserted in mobile terminal detection circuit and mobile terminal Download PDF

Info

Publication number
CN107172515A
CN107172515A CN201710358890.7A CN201710358890A CN107172515A CN 107172515 A CN107172515 A CN 107172515A CN 201710358890 A CN201710358890 A CN 201710358890A CN 107172515 A CN107172515 A CN 107172515A
Authority
CN
China
Prior art keywords
headset
detection circuit
voltage
mobile terminal
detection
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
Application number
CN201710358890.7A
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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201710358890.7A priority Critical patent/CN107172515A/en
Publication of CN107172515A publication Critical patent/CN107172515A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/05Detection of connection of loudspeakers or headphones to amplifiers

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Headphones And Earphones (AREA)

Abstract

The embodiment of the present invention provides the detection circuit and mobile terminal that test earphone plug is inserted in a kind of mobile terminal.The detection circuit that test earphone plug is inserted in mobile terminal of the present invention, the first input end of the detection circuit is electrically connected with the headset detection pin of main control chip in mobile terminal, second input of the detection circuit is electrically connected with a constant voltage, and the constant voltage is less than the minimum voltage for being not inserted into headset detection pin during headset plug;The detection circuit is used for the voltage and the constant voltage for comparing the headset detection pin, and when the voltage of the headset detection pin is less than the constant voltage, the first level is exported to the I/O pins of the main control chip;The main control chip is used to be inserted according to the first level detection headset plug of the I/O pins.The embodiment of the present invention can reduce the probability of mobile terminal misrecognition headset plug insertion.

Description

Test earphone plug is inserted in mobile terminal detection circuit and mobile terminal
Technical field
The present embodiments relate to the detection that test earphone plug in electronic technology, more particularly to a kind of mobile terminal is inserted Circuit and mobile terminal.
Background technology
Earphone is a kind of converting unit, and it receives the electric signal that media player or receiver are sent, using pressing close to ear Piece loudspeaker convert it into the sound wave that can be heard.Earphone is typically, profit separable with media player or receiver Connected with a plug.With continuing to develop for Mobile terminal equipment, earphone is widely used in mobile phone, walkman, radio reception Machine, portable electronic game and digital music player etc..
Headset plug with Mike's function is usually the plug of four-part form, and Fig. 1 is the knot of existing four-section type headset plug Structure schematic diagram, as shown in figure 1, being followed successively by L channel section (L), R channel section (R), signal circuit from headset plug end to tip Section (G) and transmitter section (M).Wherein, L channel section (L) and the L channel connection of mobile terminal, it is mobile whole for transmitting The audio signal of L channel output, R channel section (R) and the R channel connection of mobile terminal are held, for transmitting mobile terminal The audio signal of R channel output, signal circuit section (G) and the signal circuit connection of mobile terminal, for being grounded, send words The transmitter connection of device section (M) and mobile terminal, for mobile terminal input audio signal.
It is adapted with the structure of above-mentioned headset plug, the interface of the earphone socket of mobile terminal is as shown in Fig. 2 earphone socket Including headset detection pin (DET '), left channel pin (L '), right channel pin (R '), GND pin and MIC pins.Wherein, When being not inserted into headset plug, the headset detection pin DET of main control chip voltage is 1.8V in mobile terminal, when headset detection is drawn When pin DET voltage is less than 1.62V, mobile terminal determines there is headset plug insertion according to headset detection pin DET change, from And carry out the operation of next step.
However, above-mentioned judge the mode whether headset plug inserts, there is problems with:When conducting medium (such as water) enters When entering earphone socket, conducting medium can be by headset detection pin (DET ') and left channel pin (L ') or earphone ground pin (GND) Short circuit so that the headset detection pin DET of main control chip voltage pull-down in mobile terminal, usually 0.5V is between 1.4V, Less than threshold voltage 1.62V, so as to cause mobile terminal to misidentify headset plug insertion.
The content of the invention
The embodiment of the present invention provides the detection circuit and mobile terminal that test earphone plug is inserted in a kind of mobile terminal, with Reduce the probability of mobile terminal misrecognition headset plug insertion.
In a first aspect, the embodiment of the present invention provides the detection circuit that test earphone plug is inserted in a kind of mobile terminal, the One input is electrically connected with the headset detection pin of main control chip in mobile terminal, and the second input is electrically connected with a constant voltage Connect, the constant voltage is less than the minimum voltage for being not inserted into headset detection pin during headset plug;
The detection circuit is used for the voltage and the constant voltage for comparing the headset detection pin, and when the earphone When detecting that the voltage of pin is less than the constant voltage, the first level is exported to the I/O pins of the main control chip;
The main control chip is used to be inserted according to the first level detection headset plug of the I/O pins.
Second aspect, the embodiment of the present invention provides a kind of mobile terminal, including detection circuit as described in relation to the first aspect and Main control chip.
Phase is inserted with the headset detection pin DET test earphones plug in the prior art by main control chip in mobile terminal Than whether the present invention is inserted using the common test earphone plug of headset detection pin DET and I/O pins of main control chip, specifically Ground, by setting the detection circuit that test earphone plug is inserted in mobile terminal, the first input end of the detection circuit and movement The headset detection pin electrical connection of main control chip in terminal, the second input of detection circuit is electrically connected with a constant voltage, permanent Threshold voltage is less than the minimum voltage of headset detection pin when being not inserted into headset plug (when being not inserted into headset plug, situations such as water inlet The voltage of headset detection pin can be caused to decline), the detection circuit compares the voltage and constant voltage of headset detection pin, and works as The voltage of headset detection pin be less than constant voltage when, to main control chip I/O pins export the first level, main control chip according to First level detection headset plug is inserted, and is whether the correct test earphone plug of main control chip is inserted there is provided being effectively ensured, from And misrecognition is prevented effectively from, to reduce the probability of mobile terminal misrecognition headset plug insertion.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are this hairs Some bright embodiments, for those of ordinary skill in the art, without having to pay creative labor, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the structural representation of existing four-section type headset plug;
Fig. 2 is the structural representation of the pin of earphone socket of the present invention;
Fig. 3 is the structural representation of the detection embodiment one of circuit 1 of test earphone plug insertion in mobile terminal of the present invention;
Fig. 4 is the structural representation of the detection circuit embodiments two of test earphone plug insertion in mobile terminal of the present invention;
Fig. 5 is the structural representation of the detection circuit embodiments three of test earphone plug insertion in mobile terminal of the present invention;
Fig. 6 is the structural representation of mobile terminal embodiment one of the present invention;
Fig. 7 is flow chart of the present invention using the embodiment of the method one for detecting the identification of circuit realiration headset plug.
Fig. 8 is flow chart of the present invention using the embodiment of the method two for detecting the identification of circuit realiration headset plug.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Term " first ", " second ", " the 3rd " in description and claims of this specification and above-mentioned accompanying drawing, " The (if present)s such as four " are for distinguishing similar object, without for describing specific order or precedence.It should manage The data that solution is so used can be exchanged in the appropriate case, so as to embodiments of the invention described herein for example can with except Order beyond those for illustrating or describing herein is implemented.In addition, term " comprising " and " having " and theirs is any Deformation, it is intended that covering is non-exclusive to be included, for example, containing the process of series of steps or unit, method, system, production Product or equipment are not necessarily limited to those steps clearly listed or unit, but may include not list clearly or for this A little processes, method, product or the intrinsic other steps of equipment or unit.
" multiple " involved by this paper refer to two or more."and/or", describes the incidence relation of affiliated partner, Expression may have three kinds of relations, for example, A and/or B, can be represented:Individualism A, while there is A and B, individualism B this Three kinds of situations.It is a kind of relation of "or" that character "/", which typicallys represent forward-backward correlation object,.
Earphone socket involved by this paper refers specifically to the socket being connected in mobile terminal with headset plug, and the earphone socket can With the socket for being the socket that matches with three-section earphone plug or matching with four-section type headset plug, the present invention Embodiment is done by taking the earphone socket matched with four-section type headset plug as shown in Figure 1 as an example for example, the earphone socket Specifically can be with as shown in Fig. 2 the embodiment of the present invention be in this, as limitation.Headset plug is connected by connecting line with equipment, The equipment can be earphone or self-shooting bar etc..Specifically, continuing to develop with electronic technology, is only applicable to before The earphone socket of headset plug is inserted, be used to that other equipment, such as self-shooting bar can be connected.Inserted with the earphone for lifting mobile terminal The utilization rate of seat, more multifunctional application is provided the user by the equipment being connected with earphone socket.
Mobile terminal involved by this paper, refers to the equipment (device) for providing a user voice and/or data connectivity, bag Include wireless terminal or catv terminal.Wireless terminal can be portable equipment with wireless connecting function or be connected to wireless Other processing equipments of modem, the mobile terminal communicated through wireless access network with one or more core nets.Example Such as, wireless terminal can be mobile phone (or being " honeycomb " phone) and the computer with mobile terminal.And for example, it is wireless whole End can also be portable, pocket, hand-held, built-in computer or vehicle-mounted mobile device.For another example, wireless terminal Can be with smart mobile phone, tablet personal computer, intelligent watch etc..
The structure for the embodiment one of detection circuit 1 whether Fig. 3 inserts for test earphone plug in mobile terminal of the present invention is shown It is intended to, as shown in figure 3, the first input end 11 of detection circuit 1 of the present embodiment is examined with the earphone of main control chip 2 in mobile terminal Pin DET (pin 22) electrical connections are surveyed, the second input 12 of the detection circuit 1 is electrically connected with a constant voltage, constant electricity Pressure is less than the minimum voltage of headset detection pin DET when being not inserted into headset plug.I.e. the constant voltage is less than being not inserted into earphone The positive count of headset detection pin DET minimum voltage during plug.A kind of specifically achievable mode, the constant voltage is more than 0 and less than 0.5V, such as constant voltage can be 0.35V.
Wherein, the detection circuit 1 is used for the voltage and the constant voltage for comparing headset detection pin DET, and works as earphone When detecting that pin DET 22 voltage is less than the constant voltage, to input/output (Input/Output, letter of the main control chip 2 Claim I/O) the first level of output of pin 21, the main control chip 2 is for the first level detection headset plug according to the I/O pins 21 Insertion.
Specifically, a kind of achievable mode is:It is high level to set the first level, and main control chip 2 is true according to the high level Determine headset plug insertion earphone socket.
Another achievable mode is:It is low level to set the first level, and main control chip 2 determines earphone according to the low level Plug inserts earphone socket.
Wherein, high level, for example, can be 1.8V, low level for example can be 0V.It will of course be understood that, can also It is other values to set high level, low level.
Optionally, the detection circuit 1 can be also used for when headset detection pin DET voltage is more than the constant voltage, The second electrical levels different from the first level are exported to the I/O pins 21, the main control chip 2 can be also used for according to I/O pins 21 Second electrical level test earphone plug be not inserted into.
Specifically, a kind of achievable mode is:It is high level to set the first level, and main control chip 2 is true according to the high level Determine headset plug insertion earphone socket, setting second electrical level is low level, and main control chip 2 is inserted according to the second electrical level test earphone Head is not inserted into.
Another achievable mode is:It is low level to set the first level, and main control chip 2 determines earphone according to the low level Plug inserts earphone socket, and setting second electrical level is high level, and main control chip 2 is not inserted according to the second electrical level test earphone plug Enter.
Wherein, high level, for example, can be 1.8V, low level for example can be 0V.It will of course be understood that, can also It is other values to set high level, low level.
Above-mentioned embodiment can flexibly be set according to demand, and the embodiment of the present invention is not in this, as limit System.Following embodiments are illustrated so that the first level is low level, second electrical level is high level as an example.
The mobile terminal of the detection circuit 1 of the embodiment of the present invention is provided with, when the earphone socket of mobile terminal is not inserted into ear During machine transplanting of rice head, headset detection pin DET (pin 22) magnitude of voltage is 1.8V, detects the voltage of the first input end 11 of circuit 1 Value is also 1.8V, and detects the magnitude of voltage of the second input 12 of circuit 1 for the constant voltage, and the constant voltage, which is less than, to be not inserted into Headset detection pin DET minimum voltage during headset plug, so, the magnitude of voltage of first input end 11 is more than the second input 12 Magnitude of voltage, the output high level of output end 13 of detection circuit 1, such as 1.8V, main control chip 2 determines earphone according to the high level Headset plug is not inserted into socket.Headset plug is wherein not inserted into earphone socket includes two states:(1) do not have in earphone socket There is headset plug;(2) headset plug is extracted from earphone socket.
As can be seen here, main control chip 2 is when the magnitude of voltage of I/O pins 21 is high level, it may be determined that in earphone socket not Headset plug is inserted, main control chip 2 can also determine ear when it is high level that the magnitude of voltage of I/O pins 21 is by low level upset Headset plug is not inserted into machine transplanting of rice seat.
When the earphone socket of mobile terminal inserts headset plug, headset detection pin DET ' is led with left channel pin L ' It is logical, specifically, due to each section of headset plug (by taking Fig. 1 as an example) be insulator, headset plug insertion between conductor, adjacent segment During earphone, headset detection pin DET (pin 22) as shown in Figure 3 and left channel pin L (pin 23) respectively with as shown in Figure 1 One section of headset plug low order end connection, headset detection pin DET and left channel pin L is turned on by the section, L channel Pin L can be grounded, then headset detection pin DET voltage is also 0, detects the magnitude of voltage of the first input end 11 of circuit 1 For 0V, and detect that the magnitude of voltage of the second input 12 of circuit 1 is the constant voltage, so, the magnitude of voltage of first input end 11 Less than the magnitude of voltage of the second input 12, the output low level of output end 13 of detection circuit 1, such as 0V, main control chip 2 is according to this Low level determines to insert headset plug in earphone socket.Headset plug is inserted wherein in earphone socket includes two states:(1) ear There is headset plug in machine transplanting of rice seat;(2) in headset plug insertion earphone socket.
As can be seen here, main control chip 2 is when the magnitude of voltage of I/O pins 21 is low level, it may be determined that inserted in earphone socket Enter headset plug, main control chip 2 can also determine earphone when it is low level that the magnitude of voltage of I/O pins 21 is by high level upset Headset plug is inserted in socket.
For the embodiment of the present invention earphone socket water inlet when, headset detection pin DET (pin 22) and left channel pin L (pin 23) formation micro-short circuit, headset detection pin DET (pin 22) voltage is 0.5V to 1.4V, the first of detection circuit 1 The magnitude of voltage of input 11 is also 0.5V to 1.4V, that is, headset detection pin DET (pin 22) is most when being not inserted into headset plug Small voltage is 0.5V, and detects the magnitude of voltage of the second input 12 of circuit 1 for constant voltage, and the constant voltage, which is less than, to be not inserted into Headset detection pin DET (pin 22) minimum voltage during earphone, the constant voltage is more than 0V and less than 0.5, so, first is defeated The magnitude of voltage for entering end 11 is more than the magnitude of voltage of the second input 12, the output high level of output end 13 of detection circuit 1, Ke Yiwei 1.8V, main control chip 2 determines to be not inserted into headset plug in earphone socket according to the high level.So as to the feelings intake in earphone socket Under condition, it can also correctly recognize and headset plug is not inserted into earphone socket, be prevented effectively from misrecognition.
It should be noted that above-mentioned detection circuit 1 can be specifically comparator or power switch pipe, the master control Chip 2 can be realized by software and/or hardware.
Optionally, the detection circuit 1 of the embodiment of the present invention can specifically include comparator or power switch pipe, the power Switching tube can be triode, FET etc., the above-mentioned functions for realizing detection circuit 1.
The present embodiment, by the detection circuit for setting test earphone plug in mobile terminal to insert, the of the detection circuit One input is electrically connected with the headset detection pin of main control chip in mobile terminal, detects the second input and a constant of circuit Voltage is electrically connected, and constant voltage is less than the minimum voltage of headset detection pin when being not inserted into headset plug, and the detection circuit compares The voltage and constant voltage of headset detection pin, and when the voltage of headset detection pin is less than constant voltage, to main control chip I/O pins export the first level, main control chip insert according to the first level detection headset plug, wherein, detected due to setting Circuit, and the second input and the constant less than the minimum voltage of headset detection pin when being not inserted into headset plug of detection circuit Voltage electricity electrical connection, detection circuit works as headset detection pin by comparing the voltage and the constant voltage of headset detection pin Voltage export the first level to main control chip when being less than the constant voltage, be that the insertion of main control chip correct test earphone plug is carried Supply to be effectively ensured, so that misrecognition is prevented effectively from, to reduce the probability of mobile terminal misrecognition headset plug insertion.
Several specific embodiments are used below, and the technical scheme to embodiment illustrated in fig. 3 is described in detail.
Fig. 4 is the structural representation of the detection circuit embodiments two of test earphone plug insertion in mobile terminal of the present invention, As shown in figure 4, on the basis of structure shown in Fig. 3, the perseverance electrically connected with the second input 12 of detection circuit 1 of the present embodiment Threshold voltage can be provided by bleeder circuit 3, and the voltage that the bleeder circuit 3 is used for the power supply 4 to detecting circuit 1 is divided Pressure.
Wherein, as shown in figure 4, the left channel pin L (pin 23) of main control chip 2 or earphone socket in mobile terminal Resistance R can be connected between left channel pin L ' and ground2, the headset detection pin DET ' and master of earphone socket in mobile terminal Resistance R can be connected between the headset detection pin DET (pin 22) for controlling chip 21
A kind of specifically achievable mode bleeder circuit 3 can specifically include:Resistance R3With resistance R4.Wherein, resistance R3 One end be connected with power supply 4, the other end respectively with resistance R4One end connection and the second input 12 connect, resistance R4 The other end ground connection.
Optionally, the power supply 4 can also be with detecting that the power input VCC of circuit 1 is connected.
Specifically, the detection circuit 1 of the embodiment of the present invention is illustrated in figure 4 comparator, the first input end of circuit 1 is detected 11 be the IN+ shown in Fig. 4, and the second input 12 of detection circuit 1 is the IN- shown in Fig. 4.
Wherein, the magnitude of voltage of power supply 5 can be 1.8V.On the one hand, the power supply 5 by bleeder circuit 5 to inspection Second input 12 of slowdown monitoring circuit 1 provides magnitude of voltage, i.e., above-mentioned constant voltage, and the constant voltage is more than 0V and less than 0.5.It is another Aspect, the power supply 5 provides supply voltage to detection circuit 1.Optionally, it can also be set between the power supply 5 and ground Electric capacity C2.
The present embodiment, by the detection circuit for setting test earphone plug in mobile terminal to insert, the of the detection circuit One input is electrically connected with the headset detection pin of main control chip in mobile terminal, detects the second input and a constant of circuit Voltage is electrically connected, and constant voltage is less than the minimum voltage of headset detection pin when being not inserted into headset plug, and the detection circuit compares The voltage and constant voltage of headset detection pin, and when the voltage of headset detection pin is less than constant voltage, to main control chip I/O pins export the first level, main control chip insert according to the first level detection headset plug, wherein, detected due to setting Circuit, and the second input and the constant less than the minimum voltage of headset detection pin when being not inserted into headset plug of detection circuit Voltage electricity electrical connection, detection circuit works as headset detection pin by comparing the voltage and the constant voltage of headset detection pin Voltage export the first level to main control chip when being less than the constant voltage, be that the insertion of main control chip correct test earphone plug is carried Supply to be effectively ensured, so that misrecognition is prevented effectively from, to reduce the probability of mobile terminal misrecognition headset plug insertion.
Further, by setting bleeder circuit 3 to realize the power supply electricity by providing supply voltage to detection circuit 1 Source 5, to detect that the second input 12 of circuit 1 provides constant voltage, to ensure correct detection that whether headset plug inserts.
The structural representation for the detection circuit embodiments three whether Fig. 5 inserts for test earphone plug in mobile terminal of the present invention Figure, as shown in figure 5, on the basis of structure shown in Fig. 3 or Fig. 4, the detection circuit 1 of the present embodiment can also include:Filtered electrical Road 6.The filter circuit 6 includes resistance R5With electric capacity C1.Resistance R5It is connected to first input end 11 and the headset detection pin Between DET (pin 22).Electric capacity C1 one end is connected with first input end 11, electric capacity C1 other end ground connection.
Optionally, resistance R5For 20K ohm, electric capacity C1 is 82nF.
The present embodiment, by the detection circuit for setting test earphone plug in mobile terminal to insert, the of the detection circuit One input is electrically connected with the headset detection pin of main control chip in mobile terminal, detects the second input and a constant of circuit Voltage is electrically connected, and constant voltage is less than the minimum voltage of headset detection pin when being not inserted into headset plug, and the detection circuit compares The voltage and constant voltage of headset detection pin, and when the voltage of headset detection pin is less than constant voltage, to main control chip I/O pins export the first level, main control chip insert according to the first level detection headset plug, wherein, detected due to setting Circuit, and the second input and the constant less than the minimum voltage of headset detection pin when being not inserted into headset plug of detection circuit Voltage electricity electrical connection, detection circuit works as headset detection pin by comparing the voltage and the constant voltage of headset detection pin Voltage export the first level to main control chip when being less than the constant voltage, be that the insertion of main control chip correct test earphone plug is carried Supply to be effectively ensured, so that misrecognition is prevented effectively from, to reduce the probability of mobile terminal misrecognition headset plug insertion.
Further, by setting bleeder circuit 3 to realize the power supply electricity by providing supply voltage to detection circuit 1 Source 5, to detect that the second input 12 of circuit 1 provides constant voltage, to ensure correct detection that whether headset plug inserts.
Further, by setting filter circuit 6, it is possible to prevente effectively from the generation of situations below:In insertion headset plug Media play is carried out, when the voltage peak-to-peak value of headset plug L channel section (L) is larger, detects that the IN+ of circuit 1 voltage is excessive, Cause IN+>IN-, the voltage for detecting the output end of circuit 1 is 1.8V, so that what main control module was exported according to detection module Voltage detecting goes out headset plug extraction, causes erroneous judgement.
In any of the above-described embodiment, resistance R1Resistance can be specifically 20K ohm, resistance R is set1, for preventing ear The microphone of machine can not be used.
Fig. 6 is the structural representation of mobile terminal embodiment one of the present invention, as shown in fig. 6, the mobile terminal can include Detection circuit and main control chip as described in above-mentioned any embodiment.Wherein, the concrete function and structure of detection circuit can join See the explanation of above-described embodiment, its implementing principle and technical effect is similar, and here is omitted.
Wherein, the main control chip be additionally operable to detect headset plug insertion when, obtain left channel pin to ground resistance It is anti-, and the device type for determining to be connected with the headset plug according to the earth impedance.
The main control chip is additionally operable to, when the earth impedance is less than the first predetermined threshold value, determine that the device type is Earphone, and when the earth impedance is more than the second predetermined threshold value, it is self-shooting bar to determine the device type.
Optionally, the first predetermined threshold value is specifically as follows 600 ohm, and the second predetermined threshold value is specifically as follows 1000 ohm, Other values can certainly be chosen, the embodiment of the present invention is not in this, as limitation.
The mobile terminal of the embodiment of the present invention is by setting detection circuit and main control chip, it is possible to prevente effectively from misrecognition, To reduce the probability of mobile terminal misrecognition headset plug insertion.
Further, by obtaining the earth impedance of left channel pin, and determined and the ear according to the earth impedance The device type of machine transplanting of rice head connection, so as to realize that pair equipment being connected with headset plug is effectively recognized.
It can realize that headset plug inserts the correct detection of earphone socket using the detection circuit of any of the above-described embodiment.Under Method for distinguishing is known to the specific detection circuit realiration headset plug using the embodiment of the present invention by one embodiment and carried out in detail in face Describe in detail bright.
Fig. 7 is flow chart of the present invention using the embodiment of the method one for detecting the identification of circuit realiration headset plug, such as Fig. 7 institutes Show, the method for the present embodiment can include:
Step 701, to detect circuit first input end magnitude of voltage and constant voltage be compared.
If step 702, the magnitude of voltage of the first input end of detection circuit are more than constant voltage, detect that the output end of circuit is defeated Go out high level, determined to be not inserted into headset plug in earphone socket according to high level.
If step 703, the magnitude of voltage of the first input end of detection circuit are less than constant voltage, detect that the output end of circuit is defeated Go out low level, determined to insert headset plug in earphone socket according to low level.
The present embodiment, voltage and the constant electricity of the headset detection pin being connected by detecting circuit to compare with first input end Pressure, and high level or low level are exported according to comparative result, whether inserted according to high level or low level test earphone plug, its In, detection circuit is whether correct test earphone plug is inserted there is provided being effectively ensured, so that misrecognition is prevented effectively from, to reduce The probability of mobile terminal misrecognition headset plug insertion.
Fig. 8 is flow chart of the present invention using the embodiment of the method two for detecting the identification of circuit realiration headset plug, such as Fig. 8 institutes Show, on the basis of embodiment illustrated in fig. 7, can also pair device type being connected with headset plug be identified, the present embodiment Method can include:
If step 801, the magnitude of voltage of the first input end of detection circuit are less than constant voltage, detect that the output end of circuit is defeated Go out low level, headset plug is inserted in the earphone socket that mobile terminal is determined according to low level.
Step 802, the earth impedance for obtaining left channel pin.
Step 803, judge the earth impedance whether be less than 600 ohm, or the earth impedance be more than 1000 ohm. If the earth impedance is less than 600 ohm, step 804 is performed, if the earth impedance is more than 1000 ohm, step is performed 805。
The device type that step 804, determination are connected with headset plug is earphone.
The device type that step 805, determination are connected with headset plug is self-shooting bar.
When in the earphone socket for detecting mobile terminal insert headset plug when, by obtain left channel pin to ground resistance It is anti-, and the device type for determining be connected with the headset plug according to the earth impedance, so as to realize pair and headset plug company The equipment connect is effectively recognized.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to The related hardware of programmed instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journey Sequence upon execution, performs the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to The technical scheme described in foregoing embodiments can so be modified, or which part or all technical characteristic are entered Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology The scope of scheme.

Claims (10)

1. the detection circuit that test earphone plug is inserted in a kind of mobile terminal, it is characterised in that first input end is whole with movement The headset detection pin electrical connection of main control chip in end, the second input is electrically connected with a constant voltage, and the constant voltage is small The minimum voltage of headset detection pin when headset plug is not inserted into;
The detection circuit is used for the voltage and the constant voltage for comparing the headset detection pin, and when the headset detection When the voltage of pin is less than the constant voltage, the first level is exported to the I/O pins of the main control chip;
The main control chip is used to be inserted according to the first level detection headset plug of the I/O pins.
2. detection circuit according to claim 1, it is characterised in that the detection circuit is additionally operable to work as the headset detection When the voltage of pin is more than the constant voltage, the second electrical levels different from first level are exported to the I/O pins;
The main control chip is additionally operable to be not inserted into according to the second electrical level test earphone plug of the I/O pins.
3. detection circuit according to claim 1 or 2, it is characterised in that the constant voltage is provided by a bleeder circuit, The bleeder circuit is used to carry out partial pressure to the voltage of the power supply of the detection circuit.
4. detection circuit according to claim 3, it is characterised in that the bleeder circuit includes first resistor and the second electricity Resistance;
One end of the first resistor is connected with the power supply, the other end be connected respectively with one end of the second resistance with And the second input connection, the other end ground connection of the second resistance.
5. detection circuit according to claim 1 or 2, it is characterised in that the detection circuit includes comparator or work( Rate switching tube.
6. detection circuit according to claim 1 or 2, it is characterised in that the detection circuit also include 3rd resistor and First electric capacity;
The 3rd resistor is connected between the first input end and the headset detection pin;
One end of first electric capacity is connected with the first input end, other end ground connection.
7. detection circuit according to claim 1 or 2, it is characterised in that the constant voltage is more than 0 and less than 0.5V.
8. a kind of mobile terminal, it is characterised in that including the detection circuit and master control core as any one of claim 1-7 Piece.
9. mobile terminal according to claim 8, it is characterised in that the main control chip is additionally operable to insert detecting earphone During head insertion, the earth impedance of left channel pin is obtained, and determine what is be connected with the headset plug according to the earth impedance Device type.
10. mobile terminal according to claim 9, it is characterised in that the main control chip is additionally operable to described to ground resistance When resisting less than the first predetermined threshold value, it is earphone to determine the device type, and is more than the second default threshold in the earth impedance During value, it is self-shooting bar to determine the device type.
CN201710358890.7A 2017-05-19 2017-05-19 Test earphone plug is inserted in mobile terminal detection circuit and mobile terminal Pending CN107172515A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710358890.7A CN107172515A (en) 2017-05-19 2017-05-19 Test earphone plug is inserted in mobile terminal detection circuit and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710358890.7A CN107172515A (en) 2017-05-19 2017-05-19 Test earphone plug is inserted in mobile terminal detection circuit and mobile terminal

Publications (1)

Publication Number Publication Date
CN107172515A true CN107172515A (en) 2017-09-15

Family

ID=59815800

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710358890.7A Pending CN107172515A (en) 2017-05-19 2017-05-19 Test earphone plug is inserted in mobile terminal detection circuit and mobile terminal

Country Status (1)

Country Link
CN (1) CN107172515A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108646852A (en) * 2018-04-04 2018-10-12 厦门美图移动科技有限公司 Identify equipment, method and the mobile terminal of self-timer
CN110213686A (en) * 2019-05-28 2019-09-06 维沃移动通信有限公司 A kind of detection method and terminal of earphone socket
CN111295871A (en) * 2017-11-13 2020-06-16 三星电子株式会社 Apparatus and method for controlling microphone according to connection of external accessory
WO2020134812A1 (en) * 2018-12-25 2020-07-02 维沃移动通信有限公司 Terminal device, adapter, and charging method
CN111586549A (en) * 2020-05-14 2020-08-25 西安闻泰电子科技有限公司 Earphone insertion detection circuit
CN112468923A (en) * 2020-11-30 2021-03-09 维沃移动通信有限公司 Audio processing circuit, method and device, electronic equipment and readable storage medium
CN112653959A (en) * 2019-10-11 2021-04-13 Oppo广东移动通信有限公司 Earphone box, earphone device and mobile terminal
WO2022247577A1 (en) * 2021-05-28 2022-12-01 山东英信计算机技术有限公司 Rj45 socket apparatus, server and network switching method

Citations (7)

* Cited by examiner, † Cited by third party
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
CN201657320U (en) * 2010-06-12 2010-11-24 广东欧珀移动通信有限公司 Earphone plug-pull detecting circuit for mobile phone
US20130293240A1 (en) * 2012-05-03 2013-11-07 Samsung Electronics Co., Ltd. Apparatus and method for preventing erroneous detection of jack
CN203734838U (en) * 2014-02-26 2014-07-23 北京信威通信技术股份有限公司 Earphone plugging detection apparatus
CN104683914A (en) * 2013-11-28 2015-06-03 展讯通信(上海)有限公司 Electronic equipment and earphone detection circuit, method and device
CN105120388A (en) * 2015-08-12 2015-12-02 青岛海信移动通信技术股份有限公司 Identification method and device of selfie stick
CN106231021A (en) * 2016-07-22 2016-12-14 柳州易旺科技有限公司 A kind of self-shooting bar identification system

Patent Citations (7)

* Cited by examiner, † Cited by third party
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
CN201657320U (en) * 2010-06-12 2010-11-24 广东欧珀移动通信有限公司 Earphone plug-pull detecting circuit for mobile phone
US20130293240A1 (en) * 2012-05-03 2013-11-07 Samsung Electronics Co., Ltd. Apparatus and method for preventing erroneous detection of jack
CN104683914A (en) * 2013-11-28 2015-06-03 展讯通信(上海)有限公司 Electronic equipment and earphone detection circuit, method and device
CN203734838U (en) * 2014-02-26 2014-07-23 北京信威通信技术股份有限公司 Earphone plugging detection apparatus
CN105120388A (en) * 2015-08-12 2015-12-02 青岛海信移动通信技术股份有限公司 Identification method and device of selfie stick
CN106231021A (en) * 2016-07-22 2016-12-14 柳州易旺科技有限公司 A kind of self-shooting bar identification system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111295871A (en) * 2017-11-13 2020-06-16 三星电子株式会社 Apparatus and method for controlling microphone according to connection of external accessory
CN111295871B (en) * 2017-11-13 2022-08-16 三星电子株式会社 Apparatus and method for controlling microphone according to connection of external accessory
CN108646852A (en) * 2018-04-04 2018-10-12 厦门美图移动科技有限公司 Identify equipment, method and the mobile terminal of self-timer
WO2020134812A1 (en) * 2018-12-25 2020-07-02 维沃移动通信有限公司 Terminal device, adapter, and charging method
US11860805B2 (en) 2018-12-25 2024-01-02 Vivo Mobile Communication Co., Ltd. Terminal device, adapter, and charging method
CN110213686A (en) * 2019-05-28 2019-09-06 维沃移动通信有限公司 A kind of detection method and terminal of earphone socket
CN112653959A (en) * 2019-10-11 2021-04-13 Oppo广东移动通信有限公司 Earphone box, earphone device and mobile terminal
CN111586549A (en) * 2020-05-14 2020-08-25 西安闻泰电子科技有限公司 Earphone insertion detection circuit
CN112468923A (en) * 2020-11-30 2021-03-09 维沃移动通信有限公司 Audio processing circuit, method and device, electronic equipment and readable storage medium
CN112468923B (en) * 2020-11-30 2023-03-28 维沃移动通信有限公司 Audio processing circuit, method and device, electronic equipment and readable storage medium
WO2022247577A1 (en) * 2021-05-28 2022-12-01 山东英信计算机技术有限公司 Rj45 socket apparatus, server and network switching method

Similar Documents

Publication Publication Date Title
CN107172515A (en) Test earphone plug is inserted in mobile terminal detection circuit and mobile terminal
CN105120388B (en) The recognition methods of self-shooting bar and device
CN104023294B (en) Interface duplex device and pinboard in terminal
CN103581787B (en) The method of self-configuration device and operation electronic equipment
CN103988088B (en) plug type detection
CN103686531B (en) The method of the terminal and the operation terminal of earphone connection interface including earphone connection interface
CN103634724B (en) Earphone connection interface, earphone operating method and the terminal for supporting the interface and method
CN101739374B (en) Signal transmission path selecting and apply the electronic installation of this circuit
CN101917497A (en) Method and device for earphone and USB to share micro-USB interface
CN105554606A (en) Digital earphone and electronic device
CN103078224B (en) Connecting line, control method, control circuit and electronic equipment
CN207783087U (en) Wireless earphone circuit with wired function and wireless headset
CN105933823A (en) Backward compatible system and method for using 4P audio jack to provide power and signal to headset with active noise cancellation
CN102073470B (en) Electronic equipment and control method thereof
CN201750528U (en) Audio processing device
CN103379397B (en) Data transfer, treatment, the signal processing method based on COBBAIF and module
CN105635902A (en) Audio interface compatible with digital audio device and implementation method
CN107635171B (en) Circuit for improving earphone compatibility
CN107005762A (en) Audio connector recognition methods and portable electric appts
CN104599672B (en) There are the audio codec and audio grafting detection method of audio grafting detectability
CN104969568B (en) For the circuit of test earphone actuation of keys, terminal and earphone
CN104093104A (en) Circuit and method for eliminating POP sound of earphone
CN106603755B (en) A kind of mobile terminal and the data processing method based on mobile terminal
CN108196818B (en) Earphone recognition device
CN107908387B (en) Signal transmission circuit, signal transmission system, signal transmission method and intelligent terminal

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: 20170915

RJ01 Rejection of invention patent application after publication