CN104053089B - A kind of determination method, COBBAIF and the electronic equipment of audio jack pin - Google Patents

A kind of determination method, COBBAIF and the electronic equipment of audio jack pin Download PDF

Info

Publication number
CN104053089B
CN104053089B CN201310076385.5A CN201310076385A CN104053089B CN 104053089 B CN104053089 B CN 104053089B CN 201310076385 A CN201310076385 A CN 201310076385A CN 104053089 B CN104053089 B CN 104053089B
Authority
CN
China
Prior art keywords
pin
audio
input
cobbaif
targeted
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.)
Active
Application number
CN201310076385.5A
Other languages
Chinese (zh)
Other versions
CN104053089A (en
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310076385.5A priority Critical patent/CN104053089B/en
Publication of CN104053089A publication Critical patent/CN104053089A/en
Application granted granted Critical
Publication of CN104053089B publication Critical patent/CN104053089B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Headphones And Earphones (AREA)
  • Stereophonic Arrangements (AREA)

Abstract

The invention discloses a kind of determination method, COBBAIF and the electronic equipment of audio jack pin, the determination method of the audio jack pin is applied in the first electronic equipment comprising COBBAIF, and this method includes:When COBBAIF accesses the audio jack of the second electronic equipment, determine that a pin is used as target pin from four pins of audio jack, to the default electric signal of target pin input first, to the default electric signal of its excess-three non-targeted pin input second of audio jack;Detect the current value of each non-targeted pin in three non-targeted pins of audio jack;If three current values are identical, it is audio input pin to determine target pin;If there is two current values identical in three current values, it is grounding pin to determine target pin;If three current values are differed, it is left/right audio output pin to determine target pin, so as to recognize audio jack, solves the technical problem that COBBAIF None- identified in the prior art uses the audio jack of various criterion.

Description

A kind of determination method, COBBAIF and the electronic equipment of audio jack pin
Technical field
The present invention relates to electronic technology field, more particularly to a kind of determination method of audio jack pin, COBBAIF and Electronic equipment.
Background technology
With the continuous development of scientific technology, the application of electronic product is more and more universal, such as mobile phone, computer, MP4, with The extensive use of these electronic equipments, the application of its corresponding audio input/output device earphone also increasingly increases.
Existing headset plug species is various, classifies by the size of plug, including 2.5mm and the classes of 3.5mm two;By plug Hop count divide, including three-stage and the class of four-part form two;The making standard used by it is come point, including international standard and country mark Accurate two classes, wherein, international standard is with the digital equipment such as iphone, HTC, Meizu mobile phone and PC PC, audio player MP3 To represent;National standard is then using mobile phones such as NOKIA, MOTO, OPPO, BBK as representative.Left sound is included with four-part form audio jack Exemplified by road L, R channel R, Mike MIC and earth terminal GND, the pin order of international standard is:Since plug foremost, One section be L channel L, second segment be R channel R, the 3rd section be earth terminal GND, the 4th section be Mike MIC;And national standard Pin order is then:First paragraph be L channel L, second segment be R channel R, the 3rd section be Mike MIC, the 4th section be earth terminal GND。
Present inventor is had found in the prior art using not during technical scheme in realizing the embodiment of the present application , there is following technical problem in the audio jack or COBBAIF made with standard:
In the prior art, because audio input/output device audio jack and audio output/input equipment COBBAIF are adopted Making standard disunity, the audio input interface Mike MIC's and grounding pin GND of such as international standard and national standard is suitable Sequence is different, causes the technical problem that the audio jack of various criterion is used using the COBBAIF None- identified of various criterion.
The content of the invention
The embodiment of the present invention provides a kind of determination method, COBBAIF and the electronic equipment of audio jack pin, for solving Certainly in the prior art using the COBBAIF None- identified of various criterion using the technical problem of the audio jack of various criterion, carry High audio interface compatibility.
The embodiment of the present application provides a kind of determination method of audio jack pin, described applied in the first electronic equipment First electronic equipment includes a COBBAIF, and the COBBAIF has access to the audio jack of the second electronic equipment, the sound Frequency plug includes the first pin, second pin, the 3rd pin and the 4th pin, and methods described includes:
When the COBBAIF accesses the audio jack, from first pin, second pin, the 3rd pin and the A pin is determined in four pins as target pin, and to the default electric signal of target pin input first, to being used as three The default electric signal of its excess-three pin input second of the audio jack of individual non-targeted pin, wherein, described first presets The magnitude of voltage of electric signal is more than the magnitude of voltage of the described second default electric signal;
The current value of each non-targeted pin in three non-targeted pins of the audio jack is detected, and will detection Obtained three current values composition current value group;
Judge whether three current values in the current value group are identical;
If three current values are identical, it is determined that the target pin is audio input pin;Or,
If having two current values identical in three current values, it is determined that the target pin is grounding pin;Or,
If three current values are differed, it is determined that the target pin is left audio output pin or right audio Output pin.
Optionally, it is described to the default electric signal of target pin input first, to the institute as three non-targeted pins The default electric signal of its excess-three pin input second for stating audio jack is specially:
By the target pin serial connection in one end of the first preset resistance, by the other end of the preset resistance to described The default electric signal of target pin input described first;
Three non-targeted pins are connected on to one end of three the second preset resistances respectively, pass through described three second The other end of preset resistance presets electric signal to three non-targeted pins input second.
Optionally, in three non-targeted pins of the detection audio jack each non-targeted pin electric current Value is specifically included:
Detect the magnitude of voltage on each non-targeted pin;
Resistance value based on the magnitude of voltage and second preset resistance, obtains the electric current of each non-targeted pin Value.
Optionally, the audio input pin, the grounding pin and the left audio output pin or the right side are being confirmed After audio output pin, methods described also includes:
Audio input pin pin corresponding with the electronic equipment sound intermediate frequency chip is connected;
Grounding pin pin corresponding with the audio chip is connected;
The left audio output pin or right audio output pin pin corresponding with the audio chip are connected.
The embodiment of the present application also provides a kind of COBBAIF, applied to the first electronic equipment, on first electronic equipment COBBAIF have access to the audio jack of the second electronic equipment, the audio jack includes the first pin, second pin, the Three pins and the 4th pin, the COBBAIF include:
Four access pins, when the audio jack accesses the COBBAIF, for connecting the audio jack Each pin;
Circuit is controlled, is connected with the access pin, for from first pin, second pin, the 3rd pin and the A pin is determined in four pins as target pin, and to the default electric signal of target pin input first, to being used as three The default electric signal of its excess-three pin input second of the audio jack of individual non-targeted pin, wherein, described first presets The magnitude of voltage of electric signal is more than the magnitude of voltage of the described second default electric signal;
Circuit is detected, is connected with the access pin, three non-targeted pins for detecting the audio jack In each non-targeted pin current value, and obtained three current values composition current value group will be detected;
Process chip, is connected with the detection circuit, for judging three current values in the current value group It is whether identical, if three current values are identical, it is determined that the target pin is audio input pin;Or, it is if described There are two current values identical in three current values, it is determined that the target pin is grounding pin;Or, if three electric currents Value is differed, it is determined that the target pin is left audio output pin or right audio output pin.
Optionally, it is described control circuit specifically for:
Inputted by the other end for the first preset resistance being connected on the target pin to the target pin described First default electric signal;
The other end of three the second preset resistances by being connected on three non-targeted pins is non-to described three The default electric signal of target pin input second.
Optionally, it is described detection circuit specifically for:
Detect the magnitude of voltage on each non-targeted pin;
Resistance value based on the magnitude of voltage and second preset resistance, obtains the electric current of each non-targeted pin Value.
Optionally, the COBBAIF specifically also includes:
Multiplexer, for by audio input pin pin phase corresponding with the electronic equipment sound intermediate frequency chip Even;Grounding pin pin corresponding with the audio chip is connected;The left audio output pin or right audio is defeated Go out pin pin corresponding with the audio chip to be connected.
The embodiment of the present application also provides a kind of electronic equipment, including:
Audio chip;
The COBBAIF of any audio jack pin function can be automatically confirmed that, is connected with the audio chip, can be by Each pin of the audio jack of access is connected with the pin of corresponding function on the audio chip.
The embodiment of the present application also provides a kind of electronic equipment, including:
Audio chip;
COBBAIF, is connected with the audio chip, includes four access pins, control circuit, detection circuit, processing core Piece and multiplexer;
Wherein, four accesses pin, for when audio jack accesses the COBBAIF, with the audio jack Four insertion pins correspond be connected;
The control circuit includes four groups of control sub-circuits, four groups of control sub-circuits and described four access pins one One correspondence connection, wherein, the control sub-circuit includes a commutator and a preset resistance, the output end of the commutator It is connected with one end of the preset resistance, the input selection end of the commutator may be optionally connected to high level end or ground connection End;
The detection circuit includes four voltage detectors, and one end of the voltage detector is connected in parallel on the access pin Between the preset resistance;
The process chip include four the first input pins and four controlling switch, four first input pins with The other end of four voltage detectors, which is corresponded, to be connected;
The multiplexer, includes four controlled pins, four the second input pins and four the second output pins, institute State four controlled pins to connect one to one with four controlling switch, four second input pins connect with described four Enter pin to connect one to one, four second output pins are connected with the audio chip.
Said one or multiple technical schemes in the embodiment of the present application, are at least imitated with following one or more technologies Really:
1st, by the current value for each pin for detecting audio jack on a preset condition based, so as to be analyzed to identify each pin Corresponding function, and then the audio jack using different making standards is recognized, solve in the prior art using various criterion COBBAIF None- identified reaches the technology for improving COBBAIF compatibility using the technical problem of the audio jack of various criterion Effect.
2nd, because the application to audio jack pin progress function when determining, the circuit characteristic connected according to audio jack Carry out Inspection and analysis, independent of the order of audio jack pin, though the audio jack of access use which kind of standard or Any standard is not met, the technical scheme that the application is provided can be identified, it is to avoid be directed to the sound of different making standards Frequency interface or audio jack make different converters respectively, reduce the cost of manufacture of audio input-output device.
3rd, because the application is after the corresponding function of each pin of audio jack is identified, it will be known by multiplexer Not Chu Lai audio jack each pin access audio chip corresponding pin so that realize audio file normal input and Output, reaches the technique effect for realizing Multifunctional audio interface.
Brief description of the drawings
Fig. 1 is a kind of flow chart of the confirmation method of audio jack pin provided in the embodiment of the present application one;
Fig. 2 is the schematic diagram of the audio input-output device earphone provided in the embodiment of the present application one;
Fig. 3 is the audio input-output device earphone pin specificity analysis figure that provides in the embodiment of the present application one;
Fig. 4 is a kind of structured flowchart of the COBBAIF provided in the embodiment of the present application two;
Fig. 5 is the block diagram of a kind of electronic equipment provided in the embodiment of the present application three;
Fig. 6 is the electric current block diagram of a kind of electronic equipment provided in the embodiment of the present application four.
Embodiment
Each in the technical scheme that the embodiment of the present application is provided, the plug by detecting audio input-output device earphone draws The corresponding function of pin, and then the audio jack using various criterion is recognized, and according to the pin function identified, pass through multichannel Each pin of audio jack is accessed the corresponding pin of audio chip by converter, is solved and is used various criterion in the prior art COBBAIF None- identified using various criterion audio jack technical problem so that COBBAIF can be applied flexibly In the audio jack of different pin orders, the technique effect for improving COBBAIF compatibility is reached.
Below in conjunction with the accompanying drawings to the main realization principle of the embodiment of the present application technical scheme, embodiment and its correspondingly The beneficial effect that can be reached is explained in detail.
Embodiment one
The invention relates to one first electronic equipment and the second electronic equipment, the first electronic equipment can for mobile phone, Computer, MP4 etc. have the electronic equipment of audio input output function, correspond to its audio input output function and are connect there is provided an audio Mouthful, the audio jack for external second electronic equipment earphone.Wherein the plug of the second electronic equipment is inserted for the earphone of four-part form In head, four sections, the i.e. headset plug with Mike are usually divided into by dead ring and include four pins:Audio input pin is Mike MIC pins, grounding pin GND, left audio output pin L and right audio output pin R.Due to being connect in audio jack insertion audio Before mouthful, the function of each pin of audio jack is not known, clear in order to describe, herein below since audio jack foremost The first pin, second pin, the 3rd pin and the 4th pin are named as successively.
Fig. 1 is refer to, the embodiment of the present application provides a kind of determination method of audio jack pin, set applied to the first electronics In standby, first electronic equipment includes a COBBAIF, and the audio that the COBBAIF has access to the second electronic equipment is inserted Head, the audio jack includes the first pin, second pin, the 3rd pin and the 4th pin, and methods described includes:
S101:When the COBBAIF accesses the audio jack, draw from first pin, second pin, the 3rd A pin is determined in pin and the 4th pin as target pin, and electric signal is preset to target pin input first, to As the default electric signal of its excess-three pin input second of the audio jack of three non-targeted pins, wherein, described the The magnitude of voltage of one default electric signal is more than the magnitude of voltage of the described second default electric signal.
In specific implementation process, the described first default electric signal and the second default electric signal specifically can be by first The power module of electronic equipment is provided, and the described first default electric signal concretely provides the electric signal of detection voltage, wherein examining The operating voltage that voltage is specifically less than earphone normal work is surveyed, if the operating voltage of general earphone is 5~6 volts, then inspection It can be then 3~4 volts to survey voltage;And the described second default electric signal is specifically then less than the first default electric signal electricity for magnitude of voltage The electric signal of pressure value, for example, when the magnitude of voltage of the first default electric signal is 4 volts, the second default electric signal can be then 3,2 Or 0 volt, for the ease of detecting and analyzing, the magnitude of voltage of the second default electric signal usually selects 0 volt, i.e., in the target pin During upper plus detection voltage, its excess-three non-targeted pin ground connection.
Audio is influenceed in order to avoid producing larger electric current when inputting first default electric signal and the second default electric signal The performance of input-output equipment earphone, the application connects one between the input and target pin of the default electric signal of input first Individual first preset resistance so that the first default electric signal is inputted from one end of the first preset resistance, passes through the another of preset resistance End inputs to target pin;Likewise, also respectively being connected between the input and non-targeted pin of the default electric signal of input second One the second preset resistance so that the second default electric signal is inputted from one end of each the second preset resistance respectively, by the The other end of two preset resistances inputs to each non-targeted pin, wherein, first preset resistance and the second preset resistance Resistance value can with it is identical, can also differ, the embodiment of the present application compares for convenience, here by first preset resistance and The second preset resistance resistance value be set to it is identical.
To the default electric signal of purpose pin input first, non-targeted pin input second is preset after electric signal, performed Next step:
S102:The current value of each non-targeted pin in three non-targeted pins of the audio jack is detected, and Obtained three current values composition current value group will be detected.
In specific implementation process, each non-targeted pin in three non-targeted pins of the audio jack is detected Electric current, can directly be detected by accessing ammeter, can also be by the voltage acquisition on pin come indirect detection.In order to not Increase the load of circuit, the method that the present embodiment uses indirect detection:The magnitude of voltage on each non-targeted pin is first detected, The resistance value of the magnitude of voltage and second preset resistance is then based on to obtain the current value of each non-targeted pin, Magnitude of voltage divided by resistance value can then be obtained by the current value on the circuit according to Ohm's law.Draw obtaining three non-targeted After current value on pin, it will detect that three obtained current values constitute current value group, then perform next step S103.
S103:Judge whether three current values in the current value group are identical.
Because the first pin of audio input-output device earphone, second pin, the 3rd pin and the 4th pin are connected Circuit it is obstructed, so the default electric signal of input second on the default electric signal of target leads ends input first, non-targeted pin Afterwards, the electric current on non-targeted pin can be different, is that this can do following judgement:
S104:If three current values are identical, it is determined that the target pin is audio input pin;Or,
S105:If having two current values identical in three current values, it is determined that the target pin is grounding lead Pin;Or,
S106:If three current values are differed, it is determined that the target pin be left audio output pin or Right audio output pin.
Wherein, S104~S106 basis for estimation is each of present inventor's discovery audio input-output device earphone The connection performance of pin is specially:Fig. 2 is refer to, left audio output pin L connects with left ear loudspeaker one end, right audio output Pin R is connected with right ear speakers one end, and the other end of the left audio output pin L other end and right audio output pin R is total to With accessing grounding pin GND after one microswitch of series connection, audio input pin MIC pass through the microswitch and Mike one End series connection, the other end are connected by the microswitch with grounding pin GND, and wherein Mike is when no phonetic entry Open circuit, it is seen that audio input pin MIC is now breaking, and left audio output pin and right audio with its excess-three pin The resistance of the loudspeaker of output pin connection is almost identical, therefore left audio output pin and the electricity of right audio output pin connection Road characteristic is almost identical, so in the default electric signal of target pin access first of headset plug, the access of remaining non-targeted pin During the second default electric signal, each pin of head circuit has following features:
It refer to Fig. 3, it is assumed that the magnitude of voltage of the first default electric signal is 3V, and the magnitude of voltage of the second default electric signal is 0V, So there is following four situation:
The first situation, with reference to the 2nd row in Fig. 3:When target pin is grounding pin GND, its excess-three non-targeted is drawn When pin is respectively left audio output pin L, right audio output pin R and audio input pin MIC, due to left audio output pin L and right audio output pin R are to connect with grounding pin GND, now left audio output pin L and right audio output pin R Two loops are formed with grounding pin GND, so having almost identical on left audio output pin L and right audio output pin R The first electric current;And because audio input pin MIC and grounding pin GND is open circuit, then without electricity on audio input pin MIC Stream.
Second of situation, with reference to the 3rd row in Fig. 3:When target pin is audio input pin MIC, the non-mesh of its excess-three When indexing pin for left audio output pin L, right audio output pin R and grounding pin GND, due to left audio output pin L, the right side Audio output pin R and grounding pin GND and audio input pin MIC is open circuit, so left audio output pin L, right sound The equal no current of electric current on frequency output pin R and grounding pin GND, now has identical current value zero on three pins.
The third situation, with reference to the 5th row in Fig. 3:When target pin is left audio output pin L, the non-mesh of its excess-three Index pin be right audio output pin R, grounding pin GND and audio input pin MIC when, due to right audio output pin R with Left audio output pin L primary Ioops in series, have accessed the loudspeaker of left and right two, so having on right audio output pin R Second electric current, and the second current value is less than the first current value;One is also constituted between grounding pin GND and left audio output pin L Loop and left speaker is wherein only accessed, so there is the first electric current on grounding pin GND;Audio input pin MIC and a left side Audio output pin L opens a way, so the no current on audio input pin MIC.
4th kind of situation, with reference to the 4th row in Fig. 3:When target pin is right audio output pin R, the non-mesh of its excess-three Index pin be left audio output pin L, grounding pin GND and audio input pin MIC when, due to right audio output pin R with Left audio output pin L primary Ioops in series, have accessed the loudspeaker of left and right two, so having on left audio output pin L Second electric current;Primary Ioops are also constituted between grounding pin GND and right audio output pin R and have wherein only accessed left speaker, So there is the first electric current on grounding pin GND;Audio input pin MIC and right audio output pin R opens a way, so in audio No current on input pin MIC, it is seen that the third situation and the current detecting result phase on the non-targeted pin of the 4th kind of situation Together.
In summary, when target pin is grounding pin GND, the current conditions on its excess-three non-targeted pin are: One 0 value, two electric currents of identical first;When target pin is audio input pin MIC, on its excess-three non-targeted pin Current conditions are:Three identicals 0 are worth;When target pin is right audio output pin R or left audio output pin L, remaining Current conditions on three non-targeted pins are:Three electric currents for differing:0th, the first electric current, the second electric current, it is possible to It is specifically audio input pin MIC that corresponding target pin is judged according to the three current value all sames detected;According to inspection Measuring three current values come has two identical to judge the corresponding target pin for grounding pin GND;According to what is detected Three current values differ to judge corresponding target pin for left audio output pin L or right audio output pins R.Because The circuit connection of the left and right audio output pin of headset plug is identical, and function is also identical, so herein can be without entering one again Step is distinguished.
In specific implementation process, in order to will identify that the earphone pin come accesses the first electronic equipment sound intermediate frequency chip pair The pin answered, the present embodiment additionally provides following methods:
Audio input pin pin corresponding with the electronic equipment sound intermediate frequency chip is connected;
Grounding pin pin corresponding with the audio chip is connected;
The left audio output pin or right audio output pin pin corresponding with the audio chip are connected.
Specifically, can be by processor to a multiplexer input control signal, the control signal control is more The change-over switch of road converter accesses each pin of headset plug on the corresponding pin of audio chip.For example, through S101~ S106 determines that the first pin of headset plug is that left audio output pin L, second pin are right audio output pin R, the 3rd Pin is that audio input pin MIC, the 4th pin are grounding pin GND, then processor then can export one to multiplexer Control signal, the first audio for controlling the change-over switch of multiplexer that the first pin of headset plug is accessed into audio chip is defeated Go out pin, second pin is accessed to the second audio output pin of audio chip, the 3rd pin is accessed to the audio of audio chip Input pin, four pins is accessed the grounding pin of audio chip;For another example determining the of headset plug through S101~S106 One pin is that left audio output pin L, second pin are that grounding pin GND, the 3rd pin are audio input pin MIC, the 4th Pin is right audio output pin R, then processor then can export another control signal to multiplexer, control multipath conversion The change-over switch of device accesses the first pin of headset plug the first audio output pin of audio chip, and second pin is accessed The grounding pin of audio chip, the 3rd pin is accessed the audio input pin of audio chip, and four pins are accessed into audio chip The second audio output pin.It can be seen that no matter the pin order of headset plug is any, by the detection of earphone interface and turn Connection is changed, can effectively be recognized, and the normal input and output of audio file are realized on the basis of identification, many work(are realized The beneficial effect of energy COBBAIF.
The such scheme of the present embodiment, by the current value of each pin of individual detection audio jack on a preset condition based, So as to be analyzed to identify the corresponding function of each pin, and then the audio jack using different making standards is recognized, solved existing Raising is reached using the technical problem of the audio jack of various criterion using the COBBAIF None- identified of various criterion in technology The technique effect of COBBAIF compatibility.The present embodiment to audio jack pin progress function when determining simultaneously, according to audio The circuit characteristic of plug connection carries out Inspection and analysis, independent of the order of audio jack pin, no matter the audio jack of access Use which kind of standard or do not meet any standard, the technical scheme that the application is provided can be identified, it is to avoid pin Different converters are made respectively to the COBBAIF or audio jack of different making standards, audio input-output device is reduced Cost of manufacture.
Embodiment two
Fig. 4 is refer to, the embodiment of the present application provides a kind of COBBAIF, applied to the first electronic equipment, first electricity COBBAIF in sub- equipment has access to the audio jack of the second electronic equipment, and the audio jack includes the first pin, the Two pins, the 3rd pin and the 4th pin, the COBBAIF include:
Four access pins 401, when the audio jack accesses the COBBAIF, for connecting the audio jack Each pin;
Control circuit 402, with it is described access pin be connected, for from first pin, second pin, the 3rd pin and A pin is determined in 4th pin as target pin, and to the default electric signal of target pin input first, to conduct The default electric signal of its excess-three pin input second of the audio jack of three non-targeted pins, wherein, described first is pre- If the magnitude of voltage of electric signal is more than the magnitude of voltage of the described second default electric signal;
Circuit 403 is detected, is connected with the access pin, for detecting that three non-targeted of the audio jack are drawn The current value of each non-targeted pin in pin, and will detect that three obtained current values constitute current value group;
Process chip 404, is connected with the detection circuit, for judging three electric currents in the current value group Whether value is identical, if three current values are identical, it is determined that the target pin is audio input pin;Or, if institute Stating has two current values identical in three current values, it is determined that the target pin is grounding pin;Or, if three electricity Flow valuve is differed, it is determined that the target pin is left audio output pin or right audio output pin.
In specific implementation process, it is described control circuit 402 specifically for:
Inputted by the other end for the first preset resistance being connected on the target pin to the target pin described First default electric signal;
The other end of three the second preset resistances by being connected on three non-targeted pins is non-to described three The default electric signal of target pin input second.
In specific implementation process, it is described detection circuit 403 specifically for:
Detect the magnitude of voltage on each non-targeted pin;
Resistance value based on the magnitude of voltage and second preset resistance, obtains the electric current of each non-targeted pin Value.
In order to which each pin detected is correctly linked on the corresponding pin of audio chip, the COBBAIF Specifically also provide:
Multiplexer 405, for drawing the audio input pin is corresponding with the electronic equipment sound intermediate frequency chip Pin is connected;Grounding pin pin corresponding with the audio chip is connected;By left the audio output pin or right sound Frequency output pin pin corresponding with the audio chip is connected.
Because the COBBAIF in the present embodiment is to determine the corresponding virtual bench of method with audio jack pin, its is specific The course of work it is same as mentioned above, so being just no longer specifically described.
The COBBAIF of the present embodiment, by the current value of each pin of individual detection audio jack on a preset condition based, So as to be analyzed to identify the corresponding function of each pin, and then the audio jack using different making standards is recognized, solved existing Raising is reached using the technical problem of the audio jack of various criterion using the COBBAIF None- identified of various criterion in technology The technique effect of COBBAIF compatibility.Meanwhile, the present embodiment to audio jack pin progress function when determining, according to audio The circuit characteristic of plug connection carries out Inspection and analysis, independent of the order of audio jack pin, no matter the audio jack of access Use which kind of standard or do not meet any standard, the technical scheme that the application is provided can be identified, it is to avoid pin Different converters are made respectively to the COBBAIF or audio jack of different making standards, audio input-output device is reduced Cost of manufacture.
Embodiment three
Fig. 5 is refer to, the embodiment of the present application provides a kind of electronic equipment, including:
Audio chip 501;
COBBAIF 502, is connected with the audio chip, can be by each pin of the audio jack of access and the sound The pin of corresponding function is connected on frequency chip;
Wherein, the COBBAIF is specifically included:
Four access pins, when the audio jack accesses the COBBAIF, for connecting the audio jack Each pin;
Circuit is controlled, is connected with the access pin, for from first pin, second pin, the 3rd pin and the A pin is determined in four pins as target pin, and to the default electric signal of target pin input first, to being used as three The default electric signal of its excess-three pin input second of the audio jack of individual non-targeted pin, wherein, described first presets The magnitude of voltage of electric signal is more than the magnitude of voltage of the described second default electric signal;
Circuit is detected, is connected with the access pin, three non-targeted pins for detecting the audio jack In each non-targeted pin current value, and obtained three current values composition current value group will be detected;
Process chip, is connected with the detection circuit, for judging three current values in the current value group It is whether identical, if three current values are identical, it is determined that the target pin is audio input pin;If described three There are two current values identical in current value, it is determined that the target pin is grounding pin;If three current values are not It is identical, it is determined that the target pin is left audio output pin or right audio output pin;
Multiplexer, for by audio input pin pin phase corresponding with the electronic equipment sound intermediate frequency chip Even;Grounding pin pin corresponding with the audio chip is connected;The left audio output pin or right audio is defeated Go out pin pin corresponding with the audio chip to be connected.
Because the electronic equipment in the present embodiment is to determine the corresponding virtual bench of method with audio jack pin, its is specific The course of work it is same as mentioned above, so being just no longer specifically described.
The electronic equipment of the present embodiment, each pin correspondence of headset plug is gone out by the detection Function detection of COBBAIF Function, it is further real and through multiplexer by the respective pins on each pin detected correspondence access audio chip Its existing audio input output function, solves the earphone interface None- identified of various criterion in the prior art using various criterion The technical problem of headset plug, has reached the compatibility for the earphone interface for improving electronic equipment.
Example IV
Fig. 6 is refer to, the embodiment of the present application provides a kind of electronic equipment, including:
Audio chip 610;
COBBAIF 620, is connected with the audio chip, includes four access pins, control circuit, detection circuit, place Manage chip and multiplexer;
Wherein, four accesses pin, for when audio jack accesses the COBBAIF, with the audio jack Four insertion pins correspond be connected;
The control circuit includes four groups of control sub-circuits, four groups of control sub-circuits and described four access pins one One correspondence connection, wherein, the control sub-circuit includes a commutator 631 and a preset resistance 632, the commutator 631 output end is connected with one end of the preset resistance 632, and connection may be selected in the input selection end of the commutator 631 To high level end or earth terminal;
The detection circuit includes four voltage detectors 640, and one end of the voltage detector 640 is connected in parallel on described connect Enter between pin and the preset resistance 632;
The process chip include four the first input pins and four controlling switch, four first input pins with The other end of four voltage detectors 640, which is corresponded, to be connected;
The multiplexer 650, draws comprising four controlled pins, four the second input pins and four second outputs Pin, four controlled pins connect one to one with four controlling switch, four second input pins with it is described Four access pins connect one to one, and four second output pins are connected with the audio chip 610.
Because the electronic equipment in the present embodiment is to determine the corresponding entity apparatus of method with audio jack pin, its is specific The course of work it is same as mentioned above, so being just no longer specifically described.
Pass through one or more of the embodiment of the present application technical scheme, it is possible to achieve following one or more technology effects Really:
1st, by the current value for each pin for detecting audio jack on a preset condition based, so as to be analyzed to identify each pin Corresponding function, and then the audio jack using different making standards is recognized, solve in the prior art using various criterion COBBAIF None- identified reaches the technology for improving COBBAIF compatibility using the technical problem of the audio jack of various criterion Effect.
2nd, because the application to audio jack pin progress function when determining, the circuit characteristic connected according to audio jack Carry out Inspection and analysis, independent of the order of audio jack pin, though the audio jack of access use which kind of standard or Any standard is not met, the technical scheme that the application is provided can be identified, it is to avoid be directed to the sound of different making standards Frequency interface or audio jack make different converters respectively, reduce the cost of manufacture of audio input-output device.
3rd, because the application is after the corresponding function of each pin of audio jack is identified, it will be known by multiplexer Not Chu Lai audio jack each pin access audio chip corresponding pin so that realize audio file normal input and Output, reaches the technique effect for realizing Multifunctional audio interface.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (10)

1. a kind of determination method of audio jack pin, applied in the first electronic equipment, first electronic equipment includes one COBBAIF, the COBBAIF has access to the audio jack of the second electronic equipment, the audio jack comprising the first pin, Second pin, the 3rd pin and the 4th pin, it is characterised in that methods described includes:
When the COBBAIF accesses the audio jack, draw from first pin, second pin, the 3rd pin and the 4th A pin is determined in pin as target pin, and to the default electric signal of target pin input first, to non-as three The default electric signal of its excess-three pin input second of the audio jack of target pin, wherein, the described first default telecommunications Number magnitude of voltage be more than the magnitude of voltage of the described second default electric signal;
The current value of each non-targeted pin in three non-targeted pins of the audio jack is detected, and detection is obtained Three current values composition current value group;
Judge whether three current values in the current value group are identical;
If three current values are identical, it is determined that the target pin is audio input pin;Or,
If having two current values identical in three current values, it is determined that the target pin is grounding pin;Or,
If three current values are differed, it is determined that the target pin is left audio output pin or right audio output Pin.
2. the method as described in claim 1, it is characterised in that described to the default electric signal of target pin input first, It is specially to the default electric signal of its excess-three pin input second of the audio jack as three non-targeted pins:
By the target pin serial connection in one end of the first preset resistance, by the other end of the preset resistance to the target The default electric signal of pin input described first;
Three non-targeted pins are connected on to one end of three the second preset resistances respectively, it is default by described three second The other end of resistance presets electric signal to three non-targeted pins input second.
3. method as claimed in claim 2, it is characterised in that three non-targeted of the detection audio jack are drawn The current value of each non-targeted pin is specifically included in pin:
Detect the magnitude of voltage on each non-targeted pin;
Resistance value based on the magnitude of voltage and second preset resistance, obtains the current value of each non-targeted pin.
4. the method as described in any claim in claims 1 to 3, it is characterised in that confirm the audio input pin, After the grounding pin and the left audio output pin or right audio output pin, methods described also includes:
Audio input pin pin corresponding with the electronic equipment sound intermediate frequency chip is connected;
Grounding pin pin corresponding with the audio chip is connected;
The left audio output pin or right audio output pin pin corresponding with the audio chip are connected.
5. a kind of COBBAIF, applied to the first electronic equipment, the COBBAIF on first electronic equipment has access to The audio jack of two electronic equipments, the audio jack includes the first pin, second pin, the 3rd pin and the 4th pin, its It is characterised by, the COBBAIF includes:
Four access pins, when the audio jack access the COBBAIF when, for connect the audio jack each Pin;
Circuit is controlled, is connected with the access pin, for drawing from first pin, second pin, the 3rd pin and the 4th A pin is determined in pin as target pin, and to the default electric signal of target pin input first, to non-as three The default electric signal of its excess-three pin input second of the audio jack of target pin, wherein, the described first default telecommunications Number magnitude of voltage be more than the magnitude of voltage of the described second default electric signal;
Circuit is detected, is connected with the access pin, it is every in three non-targeted pins for detecting the audio jack The current value of individual non-targeted pin, and will detect that three obtained current values constitute current value group;
Process chip, is connected with the detection circuit, for whether judging three current values in the current value group It is identical, if three current values are identical, it is determined that the target pin is audio input pin;Or, if described three There are two current values identical in current value, it is determined that the target pin is grounding pin;Or, if three current values are equal Differ, it is determined that the target pin is left audio output pin or right audio output pin.
6. COBBAIF as claimed in claim 5, it is characterised in that the control circuit specifically for:
By the other end for the first preset resistance being connected on the target pin described first is inputted to the target pin Default electric signal;
By the other end of three the second preset resistances that is connected on three non-targeted pins to three non-targeted The default electric signal of pin input second.
7. COBBAIF as claimed in claim 6, it is characterised in that the detection circuit specifically for:
Detect the magnitude of voltage on each non-targeted pin;
Resistance value based on the magnitude of voltage and second preset resistance, obtains the current value of each non-targeted pin.
8. the COBBAIF as described in any claim in claim 5~7, it is characterised in that the COBBAIF is specifically also wrapped Include:
Multiplexer, for audio input pin pin corresponding with the electronic equipment sound intermediate frequency chip to be connected; Grounding pin pin corresponding with the audio chip is connected;The left audio output pin or right audio output are drawn Pin pin corresponding with the audio chip is connected.
9. a kind of electronic equipment, it is characterised in that including:
Audio chip;
COBBAIF as described in any one claim of claim 5~8, is connected with the audio chip, will can access Each pin of audio jack be connected with the pin of corresponding function on the audio chip.
10. a kind of electronic equipment, it is characterised in that including:
Audio chip;
COBBAIF, is connected with the audio chip, comprising four access pins, control circuit, detection circuit, process chip and Multiplexer;
Wherein, it is described four access pin, for audio jack access the COBBAIF when, four with the audio jack Individual insertion pin, which is corresponded, to be connected;
The control circuit includes four groups of control sub-circuits, and four groups of control sub-circuits access pin 1 a pair with described four It should connect, wherein, the control sub-circuit includes a commutator and a preset resistance, the output end of the commutator and institute The one end for stating preset resistance is connected, and the input selection end of the commutator may be optionally connected to high level end or earth terminal;
The detection circuit includes four voltage detectors, and one end of the voltage detector is connected in parallel on the access pin and institute State between preset resistance;
The process chip include four the first input pins and four controlling switch, four first input pins with it is described The other end of four voltage detectors, which is corresponded, to be connected;
The multiplexer, includes four controlled pins, four the second input pins and four the second output pins, described four Individual controlled pin connects one to one with four controlling switch, and four second input pins draw with four accesses Pin connects one to one, and four second output pins are connected with the audio chip.
CN201310076385.5A 2013-03-11 2013-03-11 A kind of determination method, COBBAIF and the electronic equipment of audio jack pin Active CN104053089B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310076385.5A CN104053089B (en) 2013-03-11 2013-03-11 A kind of determination method, COBBAIF and the electronic equipment of audio jack pin

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310076385.5A CN104053089B (en) 2013-03-11 2013-03-11 A kind of determination method, COBBAIF and the electronic equipment of audio jack pin

Publications (2)

Publication Number Publication Date
CN104053089A CN104053089A (en) 2014-09-17
CN104053089B true CN104053089B (en) 2017-11-07

Family

ID=51505369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310076385.5A Active CN104053089B (en) 2013-03-11 2013-03-11 A kind of determination method, COBBAIF and the electronic equipment of audio jack pin

Country Status (1)

Country Link
CN (1) CN104053089B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111292716A (en) * 2020-02-13 2020-06-16 百度在线网络技术(北京)有限公司 Voice chip and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719610A (en) * 2009-12-30 2010-06-02 华为终端有限公司 Wired earphone compatible method and device
CN102404665A (en) * 2010-09-07 2012-04-04 中兴通讯股份有限公司 Earphone interface self-adaptation circuit
CN102638743A (en) * 2011-02-09 2012-08-15 苹果公司 Audio accessory type detection and connector pin signal assignment
CN202503657U (en) * 2012-01-09 2012-10-24 广州三星通信技术研究有限公司 Earphone socket circuit, and portable terminal applying the same
CN202721789U (en) * 2012-06-14 2013-02-06 天地融科技股份有限公司 Audio interface adaptive device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719610A (en) * 2009-12-30 2010-06-02 华为终端有限公司 Wired earphone compatible method and device
CN102404665A (en) * 2010-09-07 2012-04-04 中兴通讯股份有限公司 Earphone interface self-adaptation circuit
CN102638743A (en) * 2011-02-09 2012-08-15 苹果公司 Audio accessory type detection and connector pin signal assignment
CN202503657U (en) * 2012-01-09 2012-10-24 广州三星通信技术研究有限公司 Earphone socket circuit, and portable terminal applying the same
CN202721789U (en) * 2012-06-14 2013-02-06 天地融科技股份有限公司 Audio interface adaptive device

Also Published As

Publication number Publication date
CN104053089A (en) 2014-09-17

Similar Documents

Publication Publication Date Title
CN104035357B (en) Headset, charging and OTG equipment circuit design based on USB socket
CN104620567B (en) The system and method for ground wire and microphone input contact for detection in audio jack
CN108028978A (en) Audio connector and circuit
CN104427441B (en) Integrated audio signal processing circuit, audio system and the method for reducing cross-talk noise
CN104735591B (en) audio interface adapter circuit and electronic device
CN104144237B (en) Communication terminal audio frequency production line test method and test device
CN101990144A (en) Double earphone adapter, main board and method for detecting double earphones
CN102638745A (en) Earphone compatible method and system for terminal equipment and interface circuit of terminal equipment
US8724474B2 (en) Telecommunication port testing apparatus
CN206353652U (en) USB transmission line, mobile terminal
CN102355518A (en) Mobile phone and audio processing method thereof
CN103763440A (en) Information processing method, electronic device accessory and electronic device
CN104053089B (en) A kind of determination method, COBBAIF and the electronic equipment of audio jack pin
CN204968070U (en) Earphone socket, Headphone plug and electronic equipment
CN107885688A (en) A kind of signal switching method and device
CN103647863B (en) A kind of method and system that earphone loop is mutually measured based on two mobile terminals
EP3690633B1 (en) Signal transmission circuit, signal transmission method and intelligent terminal
CN105100991A (en) Compatible method and device of earphone
CN101907660A (en) Handheld device with measuring function and measuring method thereof
CN105049998A (en) Audio communication device
CN104683915B (en) Electronic equipment and earphone detection circuit, method and apparatus
CN105067944B (en) A kind of detection circuit and detection method for COBBAIF
CN108064013A (en) Earphone detection circuit, earphone detecting method and electronic equipment
CN108196818A (en) Earphone recognition apparatus
CN104754461A (en) Matched headset recognizing method and device and electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant