CN103414981A - Device, method and terminal for recognizing audio interface pins - Google Patents

Device, method and terminal for recognizing audio interface pins Download PDF

Info

Publication number
CN103414981A
CN103414981A CN2013103004122A CN201310300412A CN103414981A CN 103414981 A CN103414981 A CN 103414981A CN 2013103004122 A CN2013103004122 A CN 2013103004122A CN 201310300412 A CN201310300412 A CN 201310300412A CN 103414981 A CN103414981 A CN 103414981A
Authority
CN
China
Prior art keywords
pin
channel
audio interface
mike
impedance
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
CN2013103004122A
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.)
Tendyron Technology Co Ltd
Original Assignee
Tendyron 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 Tendyron Technology Co Ltd filed Critical Tendyron Technology Co Ltd
Priority to CN2013103004122A priority Critical patent/CN103414981A/en
Publication of CN103414981A publication Critical patent/CN103414981A/en
Priority to PCT/CN2014/081773 priority patent/WO2015007170A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/04Circuit arrangements, e.g. for selective connection of amplifier inputs/outputs to loudspeakers, for loudspeaker detection, or for adaptation of settings to personal preferences or hearing impairments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2410/00Microphones

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Headphones And Earphones (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The invention discloses a device, method and terminal for recognizing audio interface pins. The device is connected to an audio interface, and comprises a control module which is connected to one or more of a left channel pin and a right channel pin and is connected to one or more of a first pin and a second pin; the control module is used for measuring the impedance between one or more of the left channel pin and the right channel pin and the first pin, and/ or for measuring the impedance between one or more of the left channel pin and the right channel pin and the second pin, the first pin and the second pin are a microphone pin and a ground wire pin respectively according to the measurement result, or the first the first pin and the second pin are the ground wire pin and the microphone pin respectively. The device for recognizing the audio interface pins is utilized for measuring the impedance between the pins, and which of the first pin and the second pin is the microphone pin and which of the first pin and the second pin is the ground wire pin can be determinedaccording to the measured impedance value. The measuring method is simple, reliable and flexible, and the device is easy to achieve, convenient to use and wide in application range.

Description

Audio interface pin recognition device, method and terminal
Technical field
The present invention relates to a kind of electronic technology field, relate in particular to a kind of audio interface pin recognition device, method and terminal.
Background technology
At present, the audio interface (plug) of the equipment such as electronic signature token, earphone generally adopts the four-part form interface, wherein, two audio frequency pins is arranged, i.e. L channel pin and R channel pin.But, for different audio interface, the effect of another two pins (the first pin and the second pin) except the audio frequency pin is different, have following two types: a kind of is that the first pin is Mike's pin MIC, the second pin is ground wire pin GND, another kind is that the first pin is ground wire pin GND, and the second pin is Mike's pin MIC.
Owing to there being above-mentioned dissimilar audio interface, when the audio signal transmitting apparatus (for example, mobile terminal) audio interface and audio signal receiving equipment are (for example, earphone, headset, electronic signature token etc.) audio interface while not mating, not only can't communicate by the MIC pin, also can't normally use the audio frequency pin to carry out the transmission of audio signal.
Therefore, need to provide a kind of device or method to realize the identification of audio interface pin, to solve the uncertain problem that causes hardware incompatibility of Mike's pin and ground wire pin, carry out better the transmission of audio signal.
Summary of the invention
The invention provides a kind of audio interface pin recognition device, method and terminal, solve at least the uncertain problem that causes hardware incompatibility of Mike's pin and ground wire pin.
According to an aspect of the present invention, a kind of audio interface pin recognition device is provided, described audio interface comprises: L channel pin, R channel pin, the first pin and the second pin, one in described the first pin and described the second pin as Mike's pin, and another is as the ground wire pin; Described device is connected to described audio interface, and described device comprises: control module, described control module one of be connected in described L channel pin and described R channel pin at least and described the first pin and described the second pin in one of at least; Described control module for measure described L channel pin and described R channel pin one of at least and described the first pin between impedance, and/or, in described L channel pin and described R channel pin one of at least and the impedance between described the second pin, and determine that according to measurement result described the first pin and described the second pin are respectively Mike's pin and ground wire pin, or be respectively ground wire pin and Mike's pin.
In addition, if described control module one of is measured in described L channel pin and described R channel pin at least and described the first pin between impedance be the earth impedance sum of earth impedance and Mike's pin of one of described L channel pin and described R channel pin, determine that described the first pin is Mike's pin, described the second pin is the ground wire pin; If described control module one of is measured in described L channel pin and described R channel pin at least and described the first pin between impedance be the earth impedance of described L channel pin or described R channel pin, determine that described the first pin is the ground wire pin, described the second pin is Mike's pin.
In addition, if described control module one of is measured in described L channel pin and described R channel pin at least and described the second pin between impedance be the earth impedance sum of earth impedance and Mike's pin of one of described L channel pin and described R channel pin, determine that described the first pin is the ground wire pin, described the second pin is Mike's pin; If described control module one of is measured in described L channel pin and described R channel pin at least and described the second pin between impedance be the earth impedance of described L channel pin or described R channel pin, determine that described the first pin is Mike's pin, described the second pin is the ground wire pin.
In addition, described device also comprises switch module, and wherein, described switch module is connected to described control module, and is connected to L channel pin, R channel pin, the first pin and second pin of described audio interface; When the communication interface at described device by terminal is connected with described terminal, the communication interface of described terminal comprises L channel pin, R channel pin, Mike's pin and ground wire pin, and described switch module is connected with L channel pin, R channel pin, Mike's pin and the ground wire pin of described communication interface; Wherein: described switch module, before in described control module, measuring the impedance between pin, one of disconnect in the described L channel pin of described audio interface and described R channel pin at least with described terminal in the connection of corresponding pin, being connected of pin in described the first pin that disconnects described audio interface and described terminal, being connected of the pin in described the second pin that disconnects described audio interface and described terminal; And, after described control module is determined pin, the pin that the described L channel pin of described audio interface and described R channel pin are broken is connected with the corresponding pin in described terminal, and described first pin of described audio interface is connected with the corresponding pin in described terminal respectively with described the second pin.
In addition, described device is micro-control unit (Micro Control Unit, referred to as MCU).
In addition, described audio interface is the audio jack in headset plug or electronic signature token.
According to another aspect of the present invention, provide a kind of terminal, comprised above-mentioned any audio interface pin recognition device.
According to a further aspect of the invention, the recognition methods of a kind of audio interface pin is provided, described audio interface comprises: L channel pin, R channel pin, the first pin and the second pin, one in described the first pin and described the second pin as Mike's pin, and another is as the ground wire pin; Described method comprises: one of utilize in the audio interface pin recognition device described L channel pin of measurement be connected with described audio interface and described R channel pin at least and described the first pin between impedance, and/or, in described L channel pin and described R channel pin one of at least and the impedance between described the second pin, and determine that according to measurement result described the first pin and described the second pin are respectively Mike's pin and ground wire pin, or be respectively ground wire pin and Mike's pin.
In addition, according to measurement result, determine that described the first pin and described the second pin are respectively Mike's pin and ground wire pin, respectively perhaps that ground wire pin and Mike's pin comprise: if one of measure in described L channel pin and described R channel pin at least and described the first pin between impedance be the earth impedance sum of earth impedance and Mike's pin of one of described L channel pin and described R channel pin, determine that described the first pin is Mike's pin, described the second pin is the ground wire pin; If one of measure in described L channel pin and described R channel pin at least and described the first pin between impedance be the earth impedance of described L channel pin or described R channel pin, determine that described the first pin is the ground wire pin, described the second pin is Mike's pin.
In addition, according to measurement result, determine that described the first pin and described the second pin are respectively Mike's pin and ground wire pin, respectively perhaps that ground wire pin and Mike's pin comprise: if one of measure in described L channel pin and described R channel pin at least and described the second pin between impedance be the earth impedance sum of earth impedance and Mike's pin of one of described L channel pin and described R channel pin, determine that described the first pin is the ground wire pin, described the second pin is Mike's pin; If one of measure in described L channel pin and described R channel pin at least and described the first pin between impedance be the earth impedance of described L channel pin or described R channel pin, determine that described the first pin is Mike's pin, described the second pin is the ground wire pin.
In addition, in utilizing the audio interface pin recognition device described L channel pin of measurement be connected with described audio interface and described R channel pin one of at least and the impedance between described the first pin, and/or, in described L channel pin and described R channel pin one of at least and before the impedance between described the second pin, described method also comprises: utilize described audio interface pin recognition device one of disconnect in the described L channel pin of described audio interface and described R channel pin at least with terminal in the connection of corresponding pin, being connected of pin in described the first pin that disconnects described audio interface and described terminal, being connected of pin in described the second pin that disconnects described audio interface and described terminal, wherein, described terminal is connected to described audio interface pin recognition device or described terminal comprises described audio interface pin recognition device.
In addition, determining that according to measurement result described the first pin and described the second pin are respectively Mike's pin and ground wire pin, respectively perhaps after ground wire pin and Mike's pin, described method also comprises: utilize described audio interface pin recognition device that the pin that the described L channel pin of described audio interface and described R channel pin break is connected with the corresponding pin in described terminal, described first pin of described audio interface is connected with the corresponding pin in described terminal respectively with described the second pin.
In addition, described audio interface pin recognition device is above-mentioned any audio interface pin recognition device.
By above-mentioned technical scheme, can be found out, utilize control module 10 in audio interface pin recognition device one of measure in L channel pins and R channel pin at least and the first pin between impedance, and/or, one of measure in L channel pin and R channel pin at least and the second pin between impedance, thereby can determine that in the first pin and the second pin, which is Mike's pin according to the resistance value of measuring, which is the ground wire pin, the impedance of measuring between above-mentioned a pair of pin can be determined MIC and GND pin, metering system is simple, reliably, flexibly, also can be in conjunction with several metering systems, to guarantee accuracy, and while using, above-mentioned audio interface pin recognition device is connected and gets final product with the audio interface that needs definite pin, do not need existing terminal, earphone or electronic signature token are changed, realization is simple, uses simply, applied widely, this device volume is less, is convenient for carrying,
In addition, above-mentioned audio interface pin recognition device can be connected in the audio interface of terminal and the audio interface of earphone or electronic signature token simultaneously, after disconnecting the connection between pin, measure the impedance between pin, determine MIC pin and GND pin, and after definite Mike's pin and ground wire pin, each pin is connected with the corresponding pin in terminal, thereby solved the uncertain problem that causes hardware incompatibility of Mike's pin and ground wire pin, can normally use the audio frequency pin to realize the transmission of audio signal;
In addition, utilize micro-control unit MCU to realize audio interface pin recognition device, implementation is simple and reliable.
The accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, in below describing embodiment, the accompanying drawing of required use is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite of not paying creative work, can also obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is the structural representation of the audio interface pin recognition device that provides of the embodiment of the present invention one;
Fig. 2 is the circuit diagram of the audio interface that provides of the embodiment of the present invention one;
Fig. 3 is the structural representation of the audio interface pin recognition device that provides of the embodiment of the present invention two;
Fig. 4 is the structural representation that audio interface pin recognition device that the embodiment of the present invention three provides is positioned at terminal;
Fig. 5 is the flow chart of the audio interface pin recognition methods that provides of the embodiment of the present invention four;
Fig. 6 is the flow chart of the audio signal transmission method that provides of the embodiment of the present invention five.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Based on embodiments of the invention, those of ordinary skills, not making under the creative work prerequisite the every other embodiment obtained, belong to protection scope of the present invention.
In description of the invention, it will be appreciated that, term " " center ", " vertically ", " laterally ", " on ", D score, " front ", " afterwards ", " left side ", " right side ", " vertically ", " level ", " top ", " end ", " interior ", orientation or the position relationship of indications such as " outward " are based on orientation shown in the drawings or position relationship, only the present invention for convenience of description and simplified characterization, rather than device or the element of indication or hint indication must have specific orientation, with specific orientation structure and operation, therefore can not be interpreted as limitation of the present invention.In addition, term " first ", " second " be only be used to describing purpose, and can not be interpreted as indication or hint relative importance or quantity or position.
In description of the invention, it should be noted that, unless otherwise clearly defined and limited, term " installation ", " being connected ", " connection " should be done broad understanding, for example, can be to be fixedly connected with, and can be also to removably connect, or connect integratedly; Can be mechanical connection, can be also to be electrically connected to; Can be directly to be connected, also can indirectly be connected by intermediary, can be the connection of two element internals.For the ordinary skill in the art, can concrete condition understand above-mentioned term concrete meaning in the present invention.
Below in conjunction with accompanying drawing, the embodiment of the present invention is described in further detail.
Audio interface described in following examples comprises: L channel pin, R channel pin, the first pin and the second pin, and wherein, one in the first pin and the second pin as Mike's pin, and another is as the ground wire pin.Preferably, above-mentioned audio interface can be the audio jack in headset plug or electronic signature token.For this class audio frequency interface, before using, need identification or determine that in the first pin and the second pin, which is Mike's pin MIC, which is ground wire pin GND, make while by audio interface, being connected with terminal, the MIC pin can be connected with the MIC pin in terminal, and the GND pin can be connected with the GND pin in terminal, thus the transmission of audio signal.
Embodiment mono-
The present embodiment provides a kind of audio interface pin recognition device, by the audio interface of this device and the definite pin of needs (for example, the audio jack of the equipment such as earphone, headset or electronic signature token) connect, preferably, can in this device, jack be set, in order to be connected with the audio jack in headset plug or electronic signature token.After connection, by measuring the impedance between an audio frequency pin (being L channel pin or R channel pin) and the first pin, perhaps measure the impedance between an audio frequency pin and the second pin, can determine MIC pin and GND pin according to the resistance value of measuring.Certainly, in order to guarantee the resistance value of measuring and the accuracy of finally determining pin, also can measure in conjunction with several modes in above-mentioned metering system, for example, impedance between impedance, L channel pin and the second pin between measurement L channel pin and the first pin and the impedance between R channel pin and the first pin, according to three results that obtain, determine MIC pin and GND pin, guarantee accuracy.
Fig. 1 is the structural representation of the audio interface pin recognition device that provides of the embodiment of the present invention one, as shown in Figure 1, during use, this device is connected to audio interface, this device comprises: control module 10, control module 10 one of be connected in the L channel pin of audio interface and R channel pin at least and the first pin and the second pin in one of at least, certainly, control module 10 also can all be connected with each pin, and (control module 10 of take in Fig. 1 is connected to the L channel pin and the first pin is example, dotted line means to connect, and can not connect); Control module 10 for measure L channel pin and R channel pin one of at least and the first pin between impedance, and/or, in L channel pin and R channel pin one of at least and the impedance between the second pin, and determine that according to measurement result the first pin and the second pin are respectively Mike's pin and ground wire pin, or be respectively ground wire pin and Mike's pin.
In fact, for above-mentioned audio interface, the earth impedance of its L channel pin and R channel pin is 32 ohm (Ω), and MIC pin earth impedance is 2.2K Ω, therefore, can determine MIC pin and ground wire pin by the resistance value of measuring between pin.Fig. 2 is the circuit diagram of the audio interface that provides of the embodiment of the present invention one, and as shown in Figure 2, the earth impedance of L channel pin and R channel pin is R1, and the value of R1 is generally 32 Ω; The earth impedance of MIC pin is R2, and the value of R2 is generally 2.2K Ω.Shown in Figure 2 is that the first pin is the situation of MIC pin, if the first pin is the GND pin, the other end of R2 is ground connection.Owing to being earth impedance, an end of R1 ground connection can be regarded as with the ground wire pin and is connected, as shown in phantom in Figure 2.
Below respectively impedance and the corresponding result thereof of measuring between different pins described.
(1) one of measure in L channel pin and R channel pin at least and the first pin between impedance
If control module 10 one of is measured in L channel pin and R channel pin at least and the first pin between impedance be the earth impedance sum (i.e. 32 Ω+2.2K Ω) of earth impedance and Mike's pin of one of L channel pin and R channel pin, determine that the first pin is Mike's pin, the second pin is the ground wire pin; If control module 10 one of is measured in L channel pin and R channel pin at least and the first pin between impedance be the earth impedance (i.e. 32 Ω) of L channel pin or R channel pin, determine that the first pin is the ground wire pin, the second pin is Mike's pin.
In practical application, because 32 Ω are mutually far short of what is expected with 2.2K Ω size, can remember concrete resistance value, according to the resistance value size, determine pin roughly.Particularly, can think that when resistance value between L channel pin and the first pin was very large, the first pin was Mike's pin, the second pin is the ground wire pin; When resistance value was very little, the first pin was the ground wire pin, and the second pin is Mike's pin.For the situation of measuring the impedance between R channel pin and the first pin, same as described above, repeat no more herein.
(2) one of measure in L channel pin and R channel pin at least and the second pin between impedance
If control module 10 one of is measured in L channel pin and R channel pin at least and the second pin between impedance be the earth impedance sum (i.e. 32 Ω+2.2K Ω) of earth impedance and Mike's pin of one of L channel pin and R channel pin, determine that the first pin is the ground wire pin, the second pin is Mike's pin; If control module 10 one of is measured in L channel pin and R channel pin at least and the second pin between impedance be the earth impedance (i.e. 32 Ω) of L channel pin or R channel pin, determine that the first pin is Mike's pin, the second pin is the ground wire pin.
In practical application, because 32 Ω are mutually far short of what is expected with 2.2K Ω size, can remember concrete resistance value, according to the resistance value size, determine pin roughly.Particularly, can think that when resistance value between L channel pin and the second pin was very large, the first pin was the ground wire pin, the second pin is Mike's pin; When resistance value was very little, the first pin was Mike's pin, and the second pin is the ground wire pin.For the situation of measuring the impedance between R channel pin and the second pin, same as described above, repeat no more herein.
Preferably, said apparatus can utilize micro-control unit MCU to realize, implementation is simple and reliable.Also can on this device, display screen be set, the result of determining pin is shown, for example: be shown as " Mike, ground wire " and mean that the first pin is Mike's pin, the second pin is the ground wire pin.
From above description, can find out, utilize control module 10 in audio interface pin recognition device one of measure in L channel pins and R channel pin at least and the first pin between impedance, and/or, one of measure in L channel pin and R channel pin at least and the second pin between impedance, thereby can determine that in the first pin and the second pin, which is Mike's pin according to the resistance value of measuring, which is the ground wire pin, the impedance of measuring between above-mentioned a pair of pin can be determined MIC and GND pin, metering system is simple, reliably, flexibly, also can be in conjunction with several metering systems, to guarantee accuracy, and while using, above-mentioned audio interface pin recognition device is connected and gets final product with the audio interface that needs definite pin, do not need existing terminal, earphone or electronic signature token are changed, realize simple, easy to use, applied widely, in addition, this device volume is less, is convenient for carrying.
Embodiment bis-
How the present embodiment after the MIC pin and GND pin of determining audio interface, realizes equipment under this audio interface and the connection of terminal (for example, mobile phone, panel computer, PC etc.), to carry out the transmission of audio signal in connection with Fig. 3 explanation.
Fig. 3 is the structural representation of the audio interface pin recognition device that provides of the embodiment of the present invention two, as shown in Figure 3, in the present embodiment in order to realize the transmission of audio signal, audio interface pin recognition device can also be connected to terminal, preferably, can realize above-mentioned the connection by the plug mated with the audio jack of terminal is set on this device.
In order to realize the transmission of audio signal, audio interface pin recognition device is except comprising the control module 10 described in embodiment mono-, can also comprise switch module 12, as shown in Figure 3, switch module 12 is connected to control module 10, each pin that also is connected to audio interface (is the L channel pin, the R channel pin, the first pin and the second pin), when the communication interface of this device by terminal is connected with terminal, the communication interface of terminal comprises L channel pin (L), R channel pin (R), Mike's pin (MIC) and ground wire pin (GND), the L channel pin of switch module 12 and communication interface, the R channel pin, Mike's pin is connected with the ground wire pin.
Switch module 12, before the impedance of measuring between pin in control module 10, one of disconnect in the L channel pin of audio interface and R channel pin at least with terminal in the connection of corresponding pin, being connected of pin in the first pin that disconnects audio interface and terminal, being connected of the pin in the second pin of disconnection audio interface and terminal; And after control module 10 was determined pin, the pin that the L channel pin of audio interface and R channel pin are broken was connected with the corresponding pin in terminal, and the first pin of audio interface is connected with the corresponding pin in terminal respectively with the second pin.Before the impedance of measuring between pin, disconnect the operation that pin connects, after determining pin, the pin connection by corresponding in the pin of equipment audio interface and terminal, can realize the transmission of audio signal.
Before the impedance of measuring between pin, carry out the above-mentioned operation disconnected, while because of equipment such as earphone or electronic signature tokens, being in connection status by audio interface and terminal, no matter whether MIC pin and GND pin connect instead, all can't utilize the impedance between the pin of said apparatus Measurement accuracy equipment side, therefore, before the impedance of measuring between pin, the pin that needs the off device audio interface is connected with the pin of terminal.It should be noted that, while no matter measuring the impedance between pin, utilize the first pin or the second pin, all need to disconnect the two and being connected of terminal pin; For L channel pin and R channel pin, can use which pin just to disconnect the connection of corresponding pin in which pin and terminal; The connection of corresponding pin in left and right acoustic channels pin and terminal all can certainly be disconnected, as long as connect after determining pin.For example, measure the impedance between L channel pin and the first pin, except disconnect the first pin and terminal pin be connected and being connected of the second pin and terminal pin, can only disconnect being connected of L channel pin and the left sound channel pin of terminal, also the connection of corresponding pin in left and right acoustic channels pin and terminal all can be disconnected.
Above-mentioned switch module 12 can adopt hardware mode or software mode to realize, as follows:
Hardware switch or button: structure is hardware mode, realizes disconnection or the connection between pin by switch or button, need manually control;
Software push buttons: the display by terminal or the display on audio interface pin recognition device show " button ", are software realization mode, realize the disconnection between equipment pin and terminal pin or are connected by clicking this " button "; Perhaps control module 10 in the situation that know that equipment is connected by audio interface with terminal, transmits control signal to switch module 12, realizes disconnection or the connection between pin by software mode.
Preferably, the described device of the present embodiment (comprising control module 10 and switch module 12) can utilize micro-control unit MCU to realize, implementation is simple and reliable.
From above description, can find out, before the impedance of measuring between pin, the disconnection pin connects, to measure the impedance between pin, determine MIC pin and GND pin, then pin corresponding in the pin of equipment audio interface and terminal is connected, thereby utilize external audio interface pin recognition device can determine MIC pin and GND pin, solve the uncertain problem that causes hardware incompatibility of Mike's pin and ground wire pin, can normally use the audio frequency pin to realize the transmission of audio signal.
Embodiment tri-
The present embodiment provides a kind of terminal, and this terminal comprises embodiment mono-or the described audio interface pin of embodiment bis-recognition device, namely said apparatus is integrated in to terminal inner, referring to Fig. 4.This installs and being connected of audio jack of equipment (earphone, headset or electric signing tools) can, by the audio jack of terminal, also can on terminal, increase a new jack.At terminal inner, switch module 12 can be arranged on terminal end surface while adopting hardware mode to realize due to the audio interface pin recognition device in the present embodiment.
Embodiment tetra-
The present embodiment provides the recognition methods of a kind of audio interface pin, and the method is based on that the audio interface pin recognition device described in embodiment mono-to three realizes.Fig. 5 is the flow chart of the audio interface pin recognition methods that provides of the embodiment of the present invention four, and as shown in Figure 5, the method comprises the steps:
Step 501, one of utilize in the audio interface pin recognition device measurement L channel pin be connected with audio interface and R channel pin at least and the first pin between impedance, and/or, in L channel pin and R channel pin one of at least and the impedance between the second pin;
Step 502, determine that according to measurement result the first pin and the second pin are respectively Mike's pin and ground wire pin, or be respectively ground wire pin and Mike's pin.
Particularly, step 502 comprises: if one of measure in L channel pin and R channel pin at least and the first pin between impedance be the earth impedance sum of earth impedance and Mike's pin of one of L channel pin and R channel pin, determine that the first pin is Mike's pin, the second pin is the ground wire pin; If one of measure in L channel pin and R channel pin at least and the first pin between impedance be the earth impedance of L channel pin or R channel pin, determine that the first pin is the ground wire pin, the second pin is Mike's pin.If one of measure in L channel pin and R channel pin at least and the second pin between impedance be the earth impedance sum of earth impedance and Mike's pin of one of L channel pin and R channel pin, determine that the first pin is the ground wire pin, the second pin is Mike's pin; If one of measure in L channel pin and R channel pin at least and the first pin between impedance be the earth impedance of L channel pin or R channel pin, determine that the first pin is Mike's pin, the second pin is the ground wire pin.Concrete consistent with the description in embodiment mono-, repeat no more herein.
From above description, can find out, utilize audio interface pin recognition device one of measure in L channel pin and R channel pin at least and the first pin between impedance, and/or, one of measure in L channel pin and R channel pin at least and the second pin between impedance, thereby can determine that in the first pin and the second pin, which is Mike's pin according to the resistance value of measuring, which is the ground wire pin, the impedance of measuring between above-mentioned a pair of pin can be determined MIC and GND pin, metering system is simple, reliably, flexibly, also can be in conjunction with several metering systems, to guarantee accuracy, and while using, above-mentioned audio interface pin recognition device is connected and gets final product with the audio interface that needs definite pin, do not need existing terminal, earphone or electronic signature token are changed, realize simple, easy to use, applied widely.
Embodiment five
The present embodiment provides a kind of audio signal transmission method, the method is based on the audio interface pin recognition device realization shown in embodiment bis-or embodiment tri-, on the basis of the described audio interface pin of embodiment tetra-recognition methods, increased the step that connects and connect respective pin between the off-tube pin.Fig. 6 is the flow chart of the audio signal transmission method that provides of the embodiment of the present invention five, and as shown in Figure 6, the method comprises the steps:
Step 601, one of utilize in the L channel pin of the audio interface pin recognition device disconnection audio interface connected with audio interface and R channel pin at least with terminal in being connected of corresponding pin, being connected of pin in the first pin that disconnects audio interface and terminal, being connected of pin in the second pin that disconnects audio interface and terminal, wherein, terminal is connected to audio interface pin recognition device or terminal comprises audio interface pin recognition device;
Step 602, utilize audio interface pin recognition device one of measure in L channel pin and R channel pin at least and the first pin between impedance, and/or, in L channel pin and R channel pin one of at least and the impedance between the second pin;
Step 603, determine that according to measurement result the first pin and the second pin are respectively Mike's pin and ground wire pin, or be respectively ground wire pin and Mike's pin; Concrete consistent with step 502 in embodiment tetra-, repeat no more herein.
Step 604, utilize audio interface pin recognition device that the pin that the L channel pin of audio interface and R channel pin break is connected with the corresponding pin in terminal, the first pin of audio interface is connected with the corresponding pin in terminal respectively with the second pin, for example, the first pin is the MIC pin, the second pin is the GND pin, the first pin is connected with the MIC pin of terminal, and the second pin is connected with the GND pin of terminal.
From above description, can find out, disconnect the connection between pin, just can measure the impedance between pin, determine MIC pin and GND pin, then pin corresponding in the pin of equipment audio interface and terminal is connected, thereby utilize the audio interface pin recognition device of external audio interface pin recognition device or terminal inner can determine MIC pin and GND pin, solve the uncertain problem that causes hardware incompatibility of Mike's pin and ground wire pin, can normally use the audio frequency pin to realize the transmission of audio signal.
In flow chart or in this any process of otherwise describing or method, describe and can be understood to, mean to comprise one or more module, fragment or part be used to the code of the executable instruction of the step that realizes specific logical function or process, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can be not according to order shown or that discuss, comprise according to related function by the mode of basic while or by opposite order, carry out function, this should be understood by the embodiments of the invention person of ordinary skill in the field.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, a plurality of steps or method can realize with being stored in memory and by software or firmware that suitable instruction execution system is carried out.For example, if realize with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: have for data-signal being realized to the discrete logic of the logic gates of logic function, application-specific integrated circuit (ASIC) with suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that and realize that all or part of step that above-described embodiment method is carried is to come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, this program, when carrying out, comprises step of embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, can be also that the independent physics of unit exists, and also can be integrated in a module two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, also can adopt the form of software function module to realize.If described integrated module usings that the form of software function module realizes and during as production marketing independently or use, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
In the description of this specification, the description of reference term " embodiment ", " some embodiment ", " example ", " concrete example " or " some examples " etc. means to be contained at least one embodiment of the present invention or example in conjunction with specific features, structure, material or the characteristics of this embodiment or example description.In this manual, the schematic statement of above-mentioned term not necessarily referred to identical embodiment or example.And the specific features of description, structure, material or characteristics can be with suitable mode combinations in any one or more embodiment or example.
Although the above has illustrated and has described embodiments of the invention, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, those of ordinary skill in the art is not in the situation that break away from principle of the present invention and aim can change above-described embodiment within the scope of the invention, modification, replacement and modification.Scope of the present invention is by claims and be equal to and limit.

Claims (13)

1. audio interface pin recognition device, described audio interface comprises: L channel pin, R channel pin, the first pin and the second pin, one in described the first pin and described the second pin as Mike's pin, another is as the ground wire pin, it is characterized in that, described device is connected to described audio interface, described device comprises: control module, described control module one of be connected in described L channel pin and described R channel pin at least and described the first pin and described the second pin in one of at least;
Described control module for measure described L channel pin and described R channel pin one of at least and described the first pin between impedance, and/or, in described L channel pin and described R channel pin one of at least and the impedance between described the second pin, and determine that according to measurement result described the first pin and described the second pin are respectively Mike's pin and ground wire pin, or be respectively ground wire pin and Mike's pin.
2. device according to claim 1, is characterized in that,
If described control module one of is measured in described L channel pin and described R channel pin at least and described the first pin between impedance be the earth impedance sum of earth impedance and Mike's pin of one of described L channel pin and described R channel pin, determine that described the first pin is Mike's pin, described the second pin is the ground wire pin;
If described control module one of is measured in described L channel pin and described R channel pin at least and described the first pin between impedance be the earth impedance of described L channel pin or described R channel pin, determine that described the first pin is the ground wire pin, described the second pin is Mike's pin.
3. device according to claim 1, is characterized in that,
If described control module one of is measured in described L channel pin and described R channel pin at least and described the second pin between impedance be the earth impedance sum of earth impedance and Mike's pin of one of described L channel pin and described R channel pin, determine that described the first pin is the ground wire pin, described the second pin is Mike's pin;
If described control module one of is measured in described L channel pin and described R channel pin at least and described the second pin between impedance be the earth impedance of described L channel pin or described R channel pin, determine that described the first pin is Mike's pin, described the second pin is the ground wire pin.
4. according to the described device of any one in claims 1 to 3, it is characterized in that, described device also comprises switch module, wherein, described switch module is connected to described control module, and is connected to L channel pin, R channel pin, the first pin and second pin of described audio interface;
When the communication interface at described device by terminal is connected with described terminal, the communication interface of described terminal comprises L channel pin, R channel pin, Mike's pin and ground wire pin, and described switch module is connected with L channel pin, R channel pin, Mike's pin and the ground wire pin of described communication interface; Wherein:
Described switch module, before in described control module, measuring the impedance between pin, one of disconnect in the described L channel pin of described audio interface and described R channel pin at least with described terminal in the connection of corresponding pin, being connected of pin in described the first pin that disconnects described audio interface and described terminal, being connected of the pin in described the second pin that disconnects described audio interface and described terminal; And, after described control module is determined pin, the pin that the described L channel pin of described audio interface and described R channel pin are broken is connected with the corresponding pin in described terminal, and described first pin of described audio interface is connected with the corresponding pin in described terminal respectively with described the second pin.
5. according to the described device of any one in claims 1 to 3, it is characterized in that, described device is micro-control unit MCU.
6. according to the described device of any one in claims 1 to 3, it is characterized in that, described audio interface is the audio jack in headset plug or electronic signature token.
7. a terminal, is characterized in that, comprises the described audio interface pin of any one recognition device in claim 1 to 6.
8. audio interface pin recognition methods, described audio interface comprises: L channel pin, R channel pin, the first pin and the second pin, and one in described the first pin and described the second pin as Mike's pin, and another is as the ground wire pin, it is characterized in that, described method comprises:
One of utilize in the audio interface pin recognition device described L channel pin of measurement be connected with described audio interface and described R channel pin at least and described the first pin between impedance, and/or, in described L channel pin and described R channel pin one of at least and the impedance between described the second pin, and determine that according to measurement result described the first pin and described the second pin are respectively Mike's pin and ground wire pin, or be respectively ground wire pin and Mike's pin.
9. method according to claim 8, is characterized in that, determines that according to measurement result described the first pin and described the second pin are respectively Mike's pin and ground wire pin, or be respectively that ground wire pin and Mike's pin comprise:
If one of measure in described L channel pin and described R channel pin at least and described the first pin between impedance be the earth impedance sum of earth impedance and Mike's pin of one of described L channel pin and described R channel pin, determine that described the first pin is Mike's pin, described the second pin is the ground wire pin;
If one of measure in described L channel pin and described R channel pin at least and described the first pin between impedance be the earth impedance of described L channel pin or described R channel pin, determine that described the first pin is the ground wire pin, described the second pin is Mike's pin.
10. method according to claim 8, is characterized in that, determines that according to measurement result described the first pin and described the second pin are respectively Mike's pin and ground wire pin, or be respectively that ground wire pin and Mike's pin comprise:
If one of measure in described L channel pin and described R channel pin at least and described the second pin between impedance be the earth impedance sum of earth impedance and Mike's pin of one of described L channel pin and described R channel pin, determine that described the first pin is the ground wire pin, described the second pin is Mike's pin;
If one of measure in described L channel pin and described R channel pin at least and described the first pin between impedance be the earth impedance of described L channel pin or described R channel pin, determine that described the first pin is Mike's pin, described the second pin is the ground wire pin.
11. the described method of any one according to Claim 8 to 10, it is characterized in that, in utilizing the audio interface pin recognition device described L channel pin of measurement be connected with described audio interface and described R channel pin one of at least and the impedance between described the first pin, and/or, in described L channel pin and described R channel pin one of at least and before the impedance between described the second pin, described method also comprises:
Utilize described audio interface pin recognition device one of disconnect in the described L channel pin of described audio interface and described R channel pin at least with terminal in the connection of corresponding pin, being connected of pin in described the first pin that disconnects described audio interface and described terminal, being connected of pin in described the second pin that disconnects described audio interface and described terminal, wherein, described terminal is connected to described audio interface pin recognition device or described terminal comprises described audio interface pin recognition device.
12. method according to claim 11, is characterized in that, determining that according to measurement result described the first pin and described the second pin are respectively Mike's pin and ground wire pin, or be respectively after ground wire pin and Mike's pin, described method also comprises:
Utilize described audio interface pin recognition device that the pin that the described L channel pin of described audio interface and described R channel pin break is connected with the corresponding pin in described terminal, described first pin of described audio interface is connected with the corresponding pin in described terminal respectively with described the second pin.
13. according to Claim 8 to 10, the described method of any one, is characterized in that, described audio interface pin recognition device is the described audio interface pin of any one recognition device in claim 1 to 6.
CN2013103004122A 2013-07-17 2013-07-17 Device, method and terminal for recognizing audio interface pins Pending CN103414981A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2013103004122A CN103414981A (en) 2013-07-17 2013-07-17 Device, method and terminal for recognizing audio interface pins
PCT/CN2014/081773 WO2015007170A1 (en) 2013-07-17 2014-07-07 Apparatus and method for identifying audio interface pin, and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013103004122A CN103414981A (en) 2013-07-17 2013-07-17 Device, method and terminal for recognizing audio interface pins

Publications (1)

Publication Number Publication Date
CN103414981A true CN103414981A (en) 2013-11-27

Family

ID=49607958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013103004122A Pending CN103414981A (en) 2013-07-17 2013-07-17 Device, method and terminal for recognizing audio interface pins

Country Status (2)

Country Link
CN (1) CN103414981A (en)
WO (1) WO2015007170A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873988A (en) * 2014-01-09 2014-06-18 北京奇虎科技有限公司 External device recognition circuit, method, device and system based on headphone jack
WO2015007170A1 (en) * 2013-07-17 2015-01-22 天地融科技股份有限公司 Apparatus and method for identifying audio interface pin, and terminal
CN104735591A (en) * 2015-03-30 2015-06-24 天地融科技股份有限公司 Audio interface adaptation circuit and electronic device
CN105554604A (en) * 2015-12-08 2016-05-04 潍坊歌尔电子有限公司 Headset interface conversion device and electronic equipment
CN105959845A (en) * 2014-01-09 2016-09-21 北京奇虎科技有限公司 External equipment identification circuit, method, device and system based on earphone socket
CN106383288A (en) * 2016-08-25 2017-02-08 歌尔股份有限公司 Test equipment for USB interface earphone
CN107005762A (en) * 2015-04-09 2017-08-01 华为技术有限公司 Audio connector recognition methods and portable electric appts

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1728082A (en) * 2005-07-29 2006-02-01 上海贝豪通讯电子有限公司 Method for raising versatility of earphone interface
CN102300003A (en) * 2011-09-20 2011-12-28 惠州Tcl移动通信有限公司 Mobile terminal capable of automatically detecting earphone jack
CN102395069A (en) * 2011-08-22 2012-03-28 华为终端有限公司 Method for being compatible with earphones with different plug types, apparatus and terminal equipment
CN102404665A (en) * 2010-09-07 2012-04-04 中兴通讯股份有限公司 Earphone interface self-adaptation circuit
CN202310052U (en) * 2011-11-10 2012-07-04 中兴通讯股份有限公司 Earphone socket circuit
CN102780949A (en) * 2012-06-13 2012-11-14 天地融科技股份有限公司 Method and device for automatically identifying MAC (Media Access Control) pin and ground pin of audio interface
CN102833649A (en) * 2012-08-17 2012-12-19 惠州Tcl移动通信有限公司 Earphone interface circuit and mobile communication device
CN202634659U (en) * 2012-05-23 2012-12-26 东莞宇龙通信科技有限公司 Earphone interface self-adaptive circuit and mobile terminal
CN102892065A (en) * 2011-07-22 2013-01-23 飞兆半导体公司 Media stream plug detecting and shifting device and method thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5703512A (en) * 1995-06-06 1997-12-30 Sgs-Thomson Microelectronics, Inc. Method and apparatus for test mode entry during power up
US7372967B2 (en) * 2002-11-29 2008-05-13 Sigmatel, Inc. Microphone bias circuit
CN101719610A (en) * 2009-12-30 2010-06-02 华为终端有限公司 Wired earphone compatible method and device
CN103414981A (en) * 2013-07-17 2013-11-27 天地融科技股份有限公司 Device, method and terminal for recognizing audio interface pins

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1728082A (en) * 2005-07-29 2006-02-01 上海贝豪通讯电子有限公司 Method for raising versatility of earphone interface
CN102404665A (en) * 2010-09-07 2012-04-04 中兴通讯股份有限公司 Earphone interface self-adaptation circuit
CN102892065A (en) * 2011-07-22 2013-01-23 飞兆半导体公司 Media stream plug detecting and shifting device and method thereof
CN102395069A (en) * 2011-08-22 2012-03-28 华为终端有限公司 Method for being compatible with earphones with different plug types, apparatus and terminal equipment
CN102300003A (en) * 2011-09-20 2011-12-28 惠州Tcl移动通信有限公司 Mobile terminal capable of automatically detecting earphone jack
CN202310052U (en) * 2011-11-10 2012-07-04 中兴通讯股份有限公司 Earphone socket circuit
CN202634659U (en) * 2012-05-23 2012-12-26 东莞宇龙通信科技有限公司 Earphone interface self-adaptive circuit and mobile terminal
CN102780949A (en) * 2012-06-13 2012-11-14 天地融科技股份有限公司 Method and device for automatically identifying MAC (Media Access Control) pin and ground pin of audio interface
CN102833649A (en) * 2012-08-17 2012-12-19 惠州Tcl移动通信有限公司 Earphone interface circuit and mobile communication device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015007170A1 (en) * 2013-07-17 2015-01-22 天地融科技股份有限公司 Apparatus and method for identifying audio interface pin, and terminal
CN103873988A (en) * 2014-01-09 2014-06-18 北京奇虎科技有限公司 External device recognition circuit, method, device and system based on headphone jack
CN103873988B (en) * 2014-01-09 2016-06-01 北京奇虎科技有限公司 Based on external equipment identify circuit, the methods, devices and systems of earphone socket
CN105959845A (en) * 2014-01-09 2016-09-21 北京奇虎科技有限公司 External equipment identification circuit, method, device and system based on earphone socket
CN105959845B (en) * 2014-01-09 2019-03-01 北京奇虎科技有限公司 External equipment identification circuit, methods, devices and systems based on earphone socket
CN104735591A (en) * 2015-03-30 2015-06-24 天地融科技股份有限公司 Audio interface adaptation circuit and electronic device
CN107005762A (en) * 2015-04-09 2017-08-01 华为技术有限公司 Audio connector recognition methods and portable electric appts
CN107005762B (en) * 2015-04-09 2019-12-13 华为技术有限公司 Audio connector identification method and portable electronic equipment
CN105554604A (en) * 2015-12-08 2016-05-04 潍坊歌尔电子有限公司 Headset interface conversion device and electronic equipment
CN106383288A (en) * 2016-08-25 2017-02-08 歌尔股份有限公司 Test equipment for USB interface earphone

Also Published As

Publication number Publication date
WO2015007170A1 (en) 2015-01-22

Similar Documents

Publication Publication Date Title
CN103414981A (en) Device, method and terminal for recognizing audio interface pins
US9749748B2 (en) Electronic device and method for detecting plug type of audio device inserted into electronic device
US7746090B1 (en) System for testing connections of two connectors
JP2013109410A (en) Determination circuit
CN103988088A (en) Plug type detection
CN104023294A (en) Interface multiplexing apparatus in terminal, and adaptor panel
EP2806662A1 (en) Apparatus for detecting the type of an audio interface
WO2013066525A1 (en) Connectors for invoking and supporting device testing
WO2012097615A2 (en) Multi-purpose connector for multiplexing headset interface into high definition video and audio interface and handheld electronic device
CN103686534A (en) Method and apparatus for detecting insertion of external audio outputting device in electronic device
CN103078224B (en) Connecting line, control method, control circuit and electronic equipment
CN103379420A (en) Method and electronic device for determining earphone line sequence
JP2010251859A (en) Mobile terminal
CN104244160A (en) Electronic device capable of being debugged through earphone port
CN105721980A (en) Audio differential signal implementation method
CA2875380C (en) Method, system and device for audio data tranmission, and electronic signature tool
CN105281153B (en) A kind of interface, USB plug and mobile terminal
US8724474B2 (en) Telecommunication port testing apparatus
CN204350272U (en) Universal audio adaptive device and electronic equipment
EP2871853A1 (en) Identification device for matching audio interface of mobile terminal and electronic signature tool
EP3690633B1 (en) Signal transmission circuit, signal transmission method and intelligent terminal
CN104581527A (en) Interface circuit, as well as external detection method and external sensor based on circuit
US10515025B2 (en) Communication protocol adapter
CN206387909U (en) A kind of universal satellite navigation receiver test platform
CN105979423B (en) Mute circuit and method of microphone on earphone

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20131127