CN104581527A - Interface circuit, as well as external detection method and external sensor based on circuit - Google Patents

Interface circuit, as well as external detection method and external sensor based on circuit Download PDF

Info

Publication number
CN104581527A
CN104581527A CN201410660335.6A CN201410660335A CN104581527A CN 104581527 A CN104581527 A CN 104581527A CN 201410660335 A CN201410660335 A CN 201410660335A CN 104581527 A CN104581527 A CN 104581527A
Authority
CN
China
Prior art keywords
pin
earphone
control circuit
holding wire
earphone socket
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.)
Granted
Application number
CN201410660335.6A
Other languages
Chinese (zh)
Other versions
CN104581527B (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201410660335.6A priority Critical patent/CN104581527B/en
Publication of CN104581527A publication Critical patent/CN104581527A/en
Application granted granted Critical
Publication of CN104581527B publication Critical patent/CN104581527B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Headphones And Earphones (AREA)

Abstract

The invention discloses an interface circuit, as well as an external detection method and an external sensor based on the circuit. The interface circuit comprises a control circuit, a combinational circuit and an earphone socket, wherein the control circuit confirms the external equipment type of the earphone socket according to the received voltage value or level value entering and leaving detecting pins; when the access external equipment is confirmed to be the earphone, the control circuit control the combinational circuit to connect the earphone control wire pins of the control circuit with the signal wire port if the earphone socket; when the access external equipment is confirmed to be the sensor, the control circuit controls the combinational circuit to connect sensor control wire pins of the control circuit with the signal wire port of the earphone socket to achieve the purpose that the sensor is expanded by connecting the external sensor through the earphone output interface.

Description

A kind of interface circuit and peripherals detecting method, outer sensor based on this circuit
Technical field
The present invention relates to electronic device field, be specifically related to a kind of interface circuit and peripherals detecting method, outer sensor based on this circuit.
Background technology
Along with MEMS (Microelectro Mechanical Systems, MEMS (micro electro mechanical system)) development of technology, the miniaturization gradually of the various kinds of sensors of industrial use, and bring into use on a large amount of mobile phones, such as, the structure sensor of many moneys microelectric technique such as gravity sensor, distance photosensitive sensors, temperature sensor, geomagnetic sensor has been integrated with at present on mobile terminals successively.
Along with sensor plan gets more and more, and mobile terminal is by the restriction of motherboard space, and impossible integrated all transducers, on mainboard, therefore cannot satisfy the demands of consumers.Therefore, be badly in need of a kind of external sensor access technology, to meet the user demand of user to different sensors.
Summary of the invention
The embodiment of the present invention provides a kind of interface circuit and peripherals detecting method, outer sensor based on this circuit, is connected by this interface circuit in order to realize outer sensor with mobile terminal, reaches the object of expansion mobile terminal transducer.
To achieve these goals, embodiments provide a kind of interface circuit, comprising: control circuit, combinational, earphone socket;
The earphone control line pin of described control circuit is optionally connected with the holding wire port of described earphone socket by described combinational, and is connected with the holding wire port of described earphone socket by the sensor control lines pin of described control circuit;
The holding wire port of described earphone socket comprises MIC holding wire port, ground connection GND holding wire port, left channel signals line cap and right-channel signals line cap; Right-channel signals line cap in described earphone socket is connected with the detection pin of described control circuit;
The earphone of described earphone socket inserts switch port and the earphone of described control circuit and inserts and detect pin and be connected;
Described control circuit is used for according to the magnitude of voltage of the input of described detection pin or level value, determine the external equipment type that described earphone socket accesses, and when the external equipment determining access is earphone, control described combinational the earphone control line pin of described control circuit is connected with the holding wire port of described earphone socket, when the external equipment determining access is transducer, controls described combinational and the sensor control lines pin of described control circuit is connected with the holding wire port of described earphone socket.
Preferably, described control circuit also for:
When insert according to earphone detect the input voltage of pin determine current do not have external equipment to access, control described combinational and the earphone control line pin of described control circuit be connected with the holding wire port of described earphone socket;
When insert according to earphone detect the input voltage of pin determine current have external equipment to access, described control circuit controls described combinational and is connected with the IIC device power supply (DPS) output pin of described control circuit by the MIC holding wire port of described earphone socket, control described combinational SPK (R) the holding wire port of described earphone socket is neither linked with the IIC equipment SDA pin of described control circuit, be not also connected with earphone SPK (R) pin of described control circuit.
Preferably, described control circuit specifically for:
When described detection pin is ADC pin, judge whether the input voltage value of described ADC pin is less than A* electric power output voltage, if, then determine that the external equipment that described earphone socket accesses is earphone, if not, then determine that the external equipment that described earphone socket accesses is transducer, wherein said A is the coefficient of described electric power output voltage;
When described detection pin is GPIO pin, whether the input level value judging described GPIO pin is high level, if so, then determines that the external equipment that described earphone socket accesses is transducer, if not, then determine that the external equipment that described earphone socket accesses is earphone.
Preferably, described combinational comprises: the first switch, second switch, 3rd switch and the 4th switch, the first end of described first switch is fixedly connected with the MIC holding wire port of described earphone socket, second end selectivity connects IIC device power supply (DPS) output pin and the earphone MIC pin of described control circuit, the first end of described second switch is fixedly connected with SPK (L) the holding wire port of described earphone socket, second end selectivity connects IIC equipment SCL pin and earphone SPK (L) pin of described control circuit, the first end of described 3rd switch is fixedly connected with the ground signalling line cap of described earphone socket, second end selectivity connects IIC equipment ground pin and the earphone grounding pin of described control circuit, the first end of described 4th switch is fixedly connected with SPK (R) the holding wire port of described earphone socket, second end selectivity connects IIC equipment SDA pin and earphone SPK (R) pin of described control circuit,
Described control circuit specifically for:
When the external equipment determining access is earphone, the second end controlling described first switch is connected to the earphone MIC pin of described control circuit, the second end controlling described second switch is connected to earphone SPK (L) pin of described control circuit, the second end controlling described 3rd switch is connected to the earphone grounding pin of described control circuit, and the second end controlling described 4th switch is connected to earphone SPK (R) pin of described control circuit;
When the external equipment determining access is transducer, the second end controlling described first switch is connected to the IIC device power supply (DPS) output pin of described control circuit, the second end controlling described second switch is connected to the IIC equipment SCL pin of described control circuit, the second end controlling described 3rd switch is connected to the IIC equipment ground pin of described control circuit, and the second end controlling described 4th switch is connected to the IIC equipment SDA pin of described control circuit.
The embodiment of the present invention additionally provides a kind of peripherals detecting method based on foregoing circuit, and the method comprises:
Receive the magnitude of voltage or level value that detect pin input;
The magnitude of voltage inputted according to the detection pin of described reception or level value, determine the external equipment type that earphone socket accesses, and when the external equipment determining access is earphone, the earphone control line pin of control circuit is connected with the holding wire port of described earphone socket by control switchgroup circuit, when the external equipment determining access is transducer, controls described combinational and the sensor control lines pin of described control circuit is connected with the holding wire port of described earphone socket.
Preferably, the magnitude of voltage that the described detection pin according to described reception inputs or level value, determine to comprise the external equipment type that earphone socket accesses:
When described detection pin is ADC pin, judge whether the input voltage value of described ADC pin is less than A* electric power output voltage, if, then determine that the external equipment that described earphone socket accesses is earphone, if not, then determine that the external equipment that described earphone socket accesses is transducer, wherein said A is the coefficient of described electric power output voltage;
When described detection pin is GPIO pin, whether the input level value judging described GPIO pin is high level, if so, then determines that the external equipment that described earphone socket accesses is transducer, if not, then determine that the external equipment that described earphone socket accesses is earphone.
Preferably, also comprise:
When the external equipment determining access is earphone, the second end controlling the first switch is connected to the earphone MIC pin of described control circuit, the second end controlling second switch is connected to earphone SPK (L) pin of described control circuit, the second end controlling the 3rd switch is connected to the earphone grounding pin of described control circuit, and the second end controlling the 4th switch is connected to earphone SPK (R) pin of described control circuit;
When the external equipment determining access is transducer, the second end controlling described first switch is connected to the IIC device power supply (DPS) output pin of described control circuit, the second end controlling described second switch is connected to the IIC equipment SCL pin of described control circuit, the second end controlling described 3rd switch is connected to the IIC equipment ground pin of described control circuit, and the second end controlling described 4th switch is connected to the IIC equipment SDA pin of described control circuit.
Preferably, also comprise:
When insert according to earphone detect the input voltage of pin determine current do not have external equipment to access, control described combinational and the earphone control line pin of described control circuit be connected with the holding wire port of described earphone socket;
When insert according to earphone detect the input voltage of pin determine current have external equipment to access, control described combinational the MIC holding wire port of described earphone socket is connected with the IIC device power supply (DPS) output pin of described control circuit, control described combinational SPK (R) the holding wire port of described earphone socket is neither linked with the IIC equipment SDA pin of described control circuit, be not also connected with earphone SPK (R) pin of described control circuit.
The embodiment of the present invention additionally provides the outer sensor of a kind of and above-mentioned interface circuit adaptation, comprising: headset plug and sensor assembly, and described headset plug is for inserting the earphone socket of described interface circuit;
The holding wire port of described headset plug comprises microphone MIC holding wire port, ground connection GND holding wire port, left channel signals line cap and right-channel signals line cap, the MIC holding wire port of described headset plug is used for being connected with the MIC holding wire port in described earphone socket, the GND holding wire port of described headset plug is used for being connected with the GND holding wire port in described earphone socket, the left channel signals line cap of described headset plug is used for being connected with the left channel signals line cap in described earphone socket, the right-channel signals line cap of described headset plug is used for being connected with the right-channel signals line cap in described earphone socket,
The POWER port of described sensor assembly is connected with the MIC holding wire port of described headset plug, the GND port of described sensor assembly is connected with the GND holding wire port of described headset plug, the clock signal SCL port of described sensor assembly is connected with the left channel signals line cap of described headset plug, and the clock signal SDA port of described sensor assembly is connected with the right-channel signals line cap of described headset plug;
Pull-up resistor R is provided with between the SCL port of described sensor assembly and POWER port sCL, and be provided with pull-up resistor R between the SDA port of described sensor assembly and POWER port sDA.
Preferably, if be provided with strong pull-up resistance between the IIC equipment SDA pin of the control circuit in described interface circuit and IIC device power supply (DPS) output pin, and be provided with strong pull-up resistance between the IIC equipment SCL pin of described control circuit and IIC device power supply (DPS) output pin, then described pull-up resistor R sCLwith described pull-up resistor R sDAbe weak pull-up resistance.
Preferably, if between the IIC equipment SDA pin of the control circuit in described interface circuit and IIC device power supply (DPS) output pin, and between the IIC equipment SCL pin of described control circuit and IIC device power supply (DPS) output pin, all pull-up resistor is not set, then described pull-up resistor R sCLwith described pull-up resistor R sDAbe strong pull-up resistance.
Preferably, described sensor assembly has multiple.
In interface circuit in above-described embodiment, comprise control circuit, combinational, earphone socket, wherein, the earphone control line pin of described control circuit is optionally connected with the holding wire port of described earphone socket by described combinational, and is connected with the holding wire port of described earphone socket by the sensor control lines pin of described control circuit; Right-channel signals line cap in described earphone socket is connected with the detection pin of described control circuit; The earphone of described earphone socket inserts switch port and the earphone of described control circuit and inserts and detect pin and be connected.Described control circuit detects the magnitude of voltage that detects of pin or level value according to it, can determine the external equipment type of described earphone socket, and according to the Type Control combinational of external equipment to realize the adaptation of interface circuit and external equipment.Concrete, when the external equipment determining access is earphone, described control circuit controls described combinational and is connected with the holding wire port of described earphone socket by the earphone control line pin of described control circuit, when the external equipment determining access is transducer, described control circuit controls described combinational and is connected with the holding wire port of described earphone socket by the sensor control lines pin of described control circuit, to realize, by described headset output interface access outer sensor, reaching the object of extension sensor.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly introduced, 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 not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the electrical block diagram of a kind of earphone in prior art;
Fig. 2 is the electrical block diagram of a kind of transducer in prior art;
Fig. 3 a is the structural representation of another kind of interface circuit in the embodiment of the present invention;
Fig. 3 b is the structural representation of a kind of combinational switching based on Fig. 3 a;
Fig. 4 is a kind of peripherals detecting method in the embodiment of the present invention;
Fig. 5 is a kind of outer sensor in the embodiment of the present invention;
Fig. 6 is another kind of outer sensor in the embodiment of the present invention;
Fig. 7 is the electrical block diagram that in the embodiment of the present invention, a kind of outer sensor is connected with interface circuit.
Embodiment
In order to make the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the present invention is described in further detail, and obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 shows a kind of electrical block diagram of earphone.Head circuit interface comprises microphone interface (showing in figure for MIC), ground interface (showing in figure for GND), left channel interface (showing in figure for SPK (L)) and right channel interface (showing in figure for SPK (R)).In addition, between left channel interface and ground interface, be connected to left acoustical device (showing for SL in figure, as loud speaker), between right channel interface and ground interface, be connected to right acoustical device (showing for SR in figure, as loud speaker).
Fig. 2 shows a kind of electrical block diagram of transducer.The circuit interface of described transducer comprises input power interface (showing in figure for POWER), clock signal line interface (showing in figure for SCL), grounding pin (showing in figure for GND), data-signal line interface (showing in figure for SDA).In addition, between SCL interface and POWER interface, pull-up resistor R is connected to sCL, between SDA interface and POWER interface, be connected to pull-up resistor R sDA.
The embodiment of the present invention passes through the multiplexing head circuit of earphone socket and the sensor circuit of electronic equipment, realizes the expansion to transducer.IIC (Inter-Integrated Circuit, integrated circuit (IC) bus) equipment in the embodiment of the present invention is the sensor device namely in the embodiment of the present invention, is the equipment connected by iic bus.Because the left and right acoustic channels of general earphone is two acoustical devices in earphone inside, its power born is generally a few milliwatt, and the signal voltage of the clock cable of transducer and data signal line is usually at 1.8V or 2.8V, if this voltage-drop loading can be produced more than 100MW power to two acoustical devices of earphone, this power can burn the acoustical device of earphone inside, therefore, needs a kind of new interface circuit, meet electronic equipment and both can access earphone, also can access transducer.
Fig. 3 a provides another kind of interface circuit structure.This interface circuit can perform flow process as shown in Figure 4.This interface circuit comprises: control circuit 301, combinational 302, earphone socket 303.
As shown in the figure, control circuit 301 comprises the microphone pin (showing in figure for MIC) in earphone control line pin, left channel pin (showing in figure for SPK (L)), grounding pin (GND), R channel pin (SPK (R)), with the IIC device power supply (DPS) output pin (showing in figure for POWER) in sensor control lines pin, IIC equipment clock holding wire pin (showing in figure for SCL), IIC equipment ground pin (showing in figure for GND), IIC device data holding wire pin (showing in figure for SDA), also comprise and detect pin 3011 and earphone insertion detection pin 3012.
The earphone control line pin of control circuit 301 is optionally connected with the holding wire port of earphone socket 303 by combinational 302, and is connected with the holding wire port of earphone socket 303 by the sensor control lines pin of control circuit 301.
The holding wire port of described earphone socket comprises MIC holding wire port, ground connection GND holding wire port, left channel signals line cap and right-channel signals line cap, wherein, the right-channel signals line cap in earphone socket 303 is connected with the detection pin 3011 of control circuit 301.
The earphone of earphone socket 303 inserts switch port and the earphone of control circuit 301 and inserts and detect pin 3012 and be connected.
Control circuit 301 is for according to the magnitude of voltage of input or the level value that detect pin 3011, determine the external equipment type that described earphone socket 303 accesses, and when the external equipment determining access is earphone, the earphone control line pin of control circuit 301 is connected with the holding wire port of earphone socket 303 by control switchgroup circuit 302, when the external equipment determining access is transducer, the sensor control lines pin of control circuit 301 is connected with the holding wire port of earphone socket 303 by control switchgroup circuit 302.
Preferably, the initial position of the switch in combinational 302 is: be connected with the holding wire port of earphone socket 303 by the earphone control line pin of control circuit 301.When determine current do not have external equipment to access, control circuit 301 control switchgroup circuit 302 is in initial position.The setting of the initial position of the switch in combinational 302 ensure that, when earphone accesses, the acoustical device of earphone inside can not be burnt.The structural representation that the combinational 302 based on Fig. 3 a as shown in Figure 3 b switches, as shown in the figure, when insert according to earphone detect the input voltage of pin 3012 determine current have external equipment to access, the MIC holding wire port of earphone socket 303 is connected with the IIC device power supply (DPS) output pin of control circuit 301 by control circuit 301 control switchgroup circuit 302, SPK (R) the holding wire port of earphone socket 303 neither links with the IIC equipment SDA pin of control circuit 301 by control switchgroup circuit 302, also be not connected with earphone SPK (R) pin of control circuit 301.In the embodiment of the present invention, when current have external equipment to access, after the IIC device power supply (DPS) output pin of control circuit 301 provides the earphone load resistance of an electric power output voltage through external equipment or sensor load resistance, the grounding pin of access control circuit 301 forms a loop, control circuit 301 detects magnitude of voltage or the level value in this loop by detecting pin 3011, can realize the object of the type of the external equipment distinguishing access.
Further, when control circuit 301 according to earphone insert detect the input voltage of pin 3012 determine current have external equipment to access, when the detection pin 3011 of control circuit 301 is ADC pin, judge whether the input voltage value of ADC pin is less than A* electric power output voltage, if, then determine that the external equipment that earphone socket 303 accesses is earphone, if not, then determine that the external equipment that earphone socket 303 accesses is transducer, wherein A is the coefficient of described electric power output voltage, it can be the arbitrary number between 0 ~ 1, as 0.5, 0.6, 0.7, 0.8 number such as grade, can set according to actual conditions, when the detection pin 3011 of control circuit 301 is GPIO pin, whether the input level value judging described GPIO pin is high level, if so, then determines that the external equipment that earphone socket 303 accesses is transducer, if not, then determine that the external equipment that earphone socket 303 accesses is earphone.In embodiments of the present invention, when headset output interface has external equipment to access, after the IIC device power supply (DPS) output pin of control circuit 301 provides the earphone load resistance of a voltage through external equipment or sensor load resistance, the grounding pin of access control circuit 301 forms a loop, because the resistance difference of earphone load resistance or sensor load resistance is very large, therefore, the voltage during access of two kinds of external equipments or level not identical yet, control circuit 301 is by detecting magnitude of voltage or the level value of pin 3011 input, thus realize the object of the type of the external equipment distinguishing access.
Preferably, combinational 302 comprises: the first switch, second switch, 3rd switch and the 4th switch, the first end of the first switch is fixedly connected with the MIC holding wire port of earphone socket 303, the IIC device power supply (DPS) output pin of the second end selectivity connection control circuit 301 and earphone MIC pin, the first end of second switch is fixedly connected with SPK (L) the holding wire port of earphone socket 303, the IIC equipment SCL pin of the second end selectivity connection control circuit 301 and earphone SPK (L) pin, the first end of the 3rd switch is fixedly connected with the ground signalling line cap of earphone socket 303, the IIC equipment ground pin of the second end selectivity connection control circuit 301 and earphone grounding pin, the first end of the 4th switch is fixedly connected with SPK (R) the holding wire port of earphone socket 303, the IIC equipment SDA pin of the second end selectivity connection control circuit 301 and earphone SPK (R) pin.
Control circuit 301 specifically for: when the external equipment determining access is earphone, the second end controlling the first switch is connected to the earphone MIC pin of control circuit 301, the second end controlling second switch is connected to earphone SPK (L) pin of control circuit 301, the second end controlling the 3rd switch is connected to the earphone grounding pin of control circuit 301, and the second end controlling the 4th switch is connected to earphone SPK (R) pin of control circuit 301; When the external equipment determining access is transducer, the second end controlling the first switch is connected to the IIC device power supply (DPS) output pin of control circuit 301, the second end controlling second switch is connected to the IIC equipment SCL pin of control circuit 301, the second end controlling the 3rd switch is connected to the IIC equipment ground pin of control circuit 301, and the second end controlling the 4th switch is connected to the IIC equipment SDA pin of control circuit 301.Control circuit 301, by the switching of the switch in control combination circuit, realizes the access of external equipment earphone or transducer, can need each transducer of access by access user at any time, realize the expanded function of transducer to reach.If what earphone socket 303 accessed is transducer, the sensor control lines pin of described control circuit 301 is connected with the holding wire port of earphone socket 303 by control circuit 301 control switchgroup circuit 302, after described transducer no longer accesses earphone socket 303, switch in control circuit 301 control switchgroup circuit 302 recovers initial position, earphone control line pin by control circuit 301 is connected with the holding wire port of earphone socket 303, is convenient to the access of external equipment next time.
Correspondingly, when confirm that described earphone socket 303 accesses be transducer time, by one of following manner, control circuit 301 can judge whether described transducer is extracted:
Mode one, when control circuit 301 is made mistakes with described sensor communication, described control circuit 301 is judged as that the equipment of None-identified or the equipment that is identified as occur abnormal, then be considered as described transducer to extract, described control circuit 301 controls described combinational 302 and is connected with the holding wire port of earphone socket 303 by the earphone control line pin of control circuit 301.
Mode two, after the sensor control lines pin of control circuit 301 is connected with the holding wire port of earphone socket 303 by control circuit 301 control switchgroup circuit 302, what the IIC equipment SDA pin of control circuit 301 needed the cycle sends low level pulse, now the earphone of control circuit 301 inserts detection pin 3012 needs periodic low voltage pulse to be detected, if earphone inserts detection, pin 3012 can't detect, then control circuit 301 judges that described transducer is extracted, described control circuit 301 controls described combinational 302 and is connected with the holding wire port of earphone socket 303 by the earphone control line pin of control circuit 301.
Mode three, the detection pin 3011 of control circuit 301 and earphone insert detection pin 3012 and interconnect, the signal that control circuit 301 receives is that real-time synchronization is equal to, when transducer is extracted, the circuit detected between pin 3011 and earphone insertion detection pin 3012 disconnects, now, if control circuit 301 judges that the signal that detection pin 3011 and earphone insertion detection pin 3012 receive is not identical, then judge that described transducer is extracted, described control circuit 301 controls described combinational 302 and is connected with the holding wire port of earphone socket 303 by the earphone control line pin of control circuit 301.
Above-described embodiment shows, because the resistance difference of the load resistance of earphone and the load resistance of transducer is very large, therefore the voltage of the IIC device power supply (DPS) output voltage of control circuit after dividing potential drop or level value are also different, control circuit 301 can distinguish the type of the external equipment that earphone socket 303 accesses according to the input voltage value or level value that detect pin 3011, and then according to the type of the external equipment determined, the switching of the switch in control switchgroup circuit 302, carrys out the external equipment that frames connecting with headphone socket 303 accesses.
Based on above-mentioned interface circuit, the schematic flow sheet of a kind of peripherals detecting method as shown in Figure 4, this flow process can be performed by the interface circuit shown in Fig. 3 a and 3b.The concrete steps of this flow process comprise:
Step S401, receives the magnitude of voltage or level value that detect pin 3011 input.
Concrete, control circuit 301 is by detecting magnitude of voltage or the level value of pin 3011 input, if described detection pin 3011 is ADC pins, then what input is magnitude of voltage, if GPIO pin during described detection pin 3011, then what input is level value.
Step S402, the magnitude of voltage inputted according to the detection pin 3011 of described reception or level value, determine the external equipment type that earphone socket 303 accesses, and when the external equipment determining access is earphone, the earphone control line pin of control circuit 301 is connected with the holding wire port of described earphone socket 303 by control switchgroup circuit 302, when the external equipment determining access is transducer, the holding wire port of the sensor control lines pin of control circuit 301 with described earphone socket 303 is connected by control switchgroup circuit 302.
In described step S402, when detection pin 3011 is ADC pin, what namely detect pin 3011 input is magnitude of voltage, control circuit 301 judges whether the input voltage value of ADC pin is less than A* electric power output voltage, if, then determine that the external equipment that earphone socket 303 accesses is earphone, if not, then determine that the external equipment that earphone socket 303 accesses is transducer, wherein A is the coefficient of described electric power output voltage, can be the arbitrary number between 0 ~ 1, as the number such as 0.5,0.6,0.7,0.8, can set according to actual conditions.When detection pin 3011 is GPIO pin, what namely detect pin 3011 input is level value, control circuit 301 judges whether the input level value of GPIO pin is high level, if, then determine that the external equipment that earphone socket 303 accesses is transducer, if not, then determine that the external equipment that earphone socket 303 accesses is earphone.In embodiments of the present invention, when headset output interface has external equipment to access, after the IIC device power supply (DPS) output pin of control circuit 301 provides the earphone load resistance of an electric power output voltage through external equipment or sensor load resistance, the grounding pin of access control circuit 301 forms a loop, because the resistance difference of earphone load resistance or sensor load resistance is very large, therefore, the voltage during access of two kinds of external equipments or level not identical yet, control circuit 301 is by detecting magnitude of voltage or the level value of pin 3011 input, thus realize the object of the type of the external equipment distinguishing access.
Further, when the external equipment determining access is earphone, the second end controlling the first switch is connected to the earphone MIC pin of control circuit 301, the second end controlling second switch is connected to earphone SPK (L) pin of control circuit 301, the second end controlling the 3rd switch is connected to the earphone grounding pin of control circuit 301, and the second end controlling the 4th switch is connected to earphone SPK (R) pin of control circuit 301.When the external equipment determining access is transducer, the second end controlling the first switch is connected to the IIC device power supply (DPS) output pin of control circuit 301, the second end controlling second switch is connected to the IIC equipment SCL pin of control circuit 301, the second end controlling the 3rd switch is connected to the IIC equipment ground pin of control circuit 301, and the second end controlling the 4th switch is connected to the IIC equipment SDA pin of control circuit 301.Control circuit 301, by controlling the switching of the switch in described combinational circuit, realizes the access of external equipment earphone or transducer, can need each transducer of access by access user at any time, realize the expanded function of transducer to reach.If what earphone socket 303 accessed is transducer, the sensor control lines pin of control circuit 301 is connected with the holding wire port of earphone socket 303 by control circuit 301 control switchgroup circuit 302, after transducer no longer accesses earphone socket 303, switch in control circuit 301 control switchgroup circuit 302 recovers initial position, earphone control line pin by control circuit 301 is connected with the holding wire port of earphone socket 303, is convenient to the access of external equipment next time.
Correspondingly, when confirm that described earphone socket 303 accesses be transducer time, by one of following manner, control circuit 301 can judge whether described transducer is extracted:
Mode one, when control circuit 301 is made mistakes with described sensor communication, described control circuit 301 is judged as that the equipment of None-identified or the equipment that is identified as occur abnormal, then be considered as described transducer to extract, described control circuit 301 controls described combinational 302 and is connected with the holding wire port of earphone socket 303 by the earphone control line pin of control circuit 301.
Mode two, after the sensor control lines pin of control circuit 301 is connected with the holding wire port of earphone socket 303 by control circuit 301 control switchgroup circuit 302, what the IIC equipment SDA pin of control circuit 301 needed the cycle sends low level pulse, now the earphone of control circuit 301 inserts detection pin 3012 needs periodic low voltage pulse to be detected, if earphone inserts detection, pin 3012 can't detect, then control circuit 301 judges that described transducer is extracted, described control circuit 301 controls described combinational 302 and is connected with the holding wire port of earphone socket 303 by the earphone control line pin of control circuit 301.
Mode three, the detection pin 3011 of control circuit 301 and earphone insert detection pin 3012 and interconnect, the signal that control circuit 301 receives is that real-time synchronization is equal to, when transducer is extracted, the circuit detected between pin 3011 and earphone insertion detection pin 3012 disconnects, now, if control circuit 301 judges that the signal that detection pin 3011 and earphone insertion detection pin 3012 receive is not identical, then judge that described transducer is extracted, described control circuit 301 controls described combinational 302 and is connected with the holding wire port of earphone socket 303 by the earphone control line pin of control circuit 301.
Further, in above-mentioned peripherals detecting method, when insert according to earphone detect the input voltage of pin 3012 determine current do not have external equipment to access, the earphone control line pin of described control circuit 301 is connected with the holding wire port of earphone socket 303 by control switchgroup circuit 302.The setting of the initial position of the switch in combinational 302 ensure that, when earphone accesses, the acoustical device of earphone inside can not be burnt.When insert according to earphone detect the input voltage of pin 3012 determine current have external equipment to access, the MIC holding wire port of described earphone socket 303 is connected with the IIC device power supply (DPS) output pin of control circuit 301 by control switchgroup circuit 302, SPK (R) the holding wire port of earphone socket 303 neither links with the IIC equipment SDA pin of control circuit 301 by control switchgroup circuit 302, is not also connected with earphone SPK (R) pin of control circuit 301.In the embodiment of the present invention, when current have external equipment to access, after the IIC device power supply (DPS) output pin of control circuit 301 provides the earphone load resistance of an electric power output voltage through external equipment or sensor load resistance, the grounding pin of access control circuit 301 forms a loop, control circuit 301 detects magnitude of voltage or the level value in this loop by detecting pin 3011, can realize the object of the type of the external equipment distinguishing access.
Based on above-mentioned interface circuit, a kind of outer sensor as shown in Figure 5, described outer sensor and above-mentioned interface circuit adaptation, this outer sensor comprises: headset plug and sensor assembly, and described headset plug is for inserting the earphone socket 303 of described interface circuit.The profile of described headset plug and earphone socket 303 is suitable, can plugged earphone socket 303.
The holding wire port of described headset plug comprises MIC holding wire port, GND holding wire port, left channel signals line cap and right-channel signals line cap, the MIC holding wire port of described headset plug is used for being connected with the MIC holding wire port in described earphone socket 303, the GND holding wire port of described headset plug is used for being connected with the GND holding wire port in described earphone socket 303, the left channel signals line cap of described headset plug is used for being connected with the left channel signals line cap in described earphone socket 303, the right-channel signals line cap of described headset plug is used for being connected with the right-channel signals line cap in described earphone socket 303.
The POWER port of described sensor assembly is connected with the MIC holding wire port of described headset plug, the GND port of described sensor assembly is connected with the GND holding wire port of described headset plug, the SCL port of described sensor assembly is connected with the left channel signals line cap of described headset plug, and the SDA port of described sensor assembly is connected with the right-channel signals line cap of described headset plug.
Pull-up resistor R is provided with between the SCL port and POWER port of described sensor assembly sCL, and pull-up resistor R is provided with between the SDA port and POWER port of described sensor assembly sDA.If described pull-up resistor can be strong pull-up resistance also can be pull-up resistor, the resistance of described strong pull-up resistance is less than 10k ohm, and the resistance of described weak pull-up resistance is greater than 50k ohm.
Preferably, if be provided with strong pull-up resistance between the IIC equipment SDA pin of the control circuit 301 in described interface circuit and IIC device power supply (DPS) output pin, and be provided with strong pull-up resistance between the IIC equipment SCL pin of described control circuit 301 and IIC device power supply (DPS) output pin, then described pull-up resistor R sCLwith described pull-up resistor R sDAbe weak pull-up resistance.
Preferably, if between the IIC equipment SDA pin of the control circuit 301 in described interface circuit and IIC device power supply (DPS) output pin, and between the IIC equipment SCL pin of described control circuit 301 and IIC device power supply (DPS) output pin, all pull-up resistor is not set, then described pull-up resistor R sCLwith described pull-up resistor R sDAbe strong pull-up resistance.
The structural representation of a kind of outer sensor as shown in Figure 6, described sensor assembly has multiple, as: gravity sensor, distance photosensitive sensors, temperature sensor, geomagnetic sensor etc. go for the transducer of terminal, described multiple sensor assembly is same is connected to the POWER port of module-external, GND port, SCL port and SDA port.This outer sensor can reach the object of extension sensor.
Electrical block diagram after the earphone socket 303 that the headset plug that Fig. 7 shows a kind of outer sensor accesses terminal, the POWER port of described outer sensor is connected with the POWER pin of control circuit 301 after earphone socket 303, the GND port of described outer sensor is connected with the GND pin of control circuit 301 after earphone socket 303, the SCL port of described outer sensor is connected with the SCL pin of control circuit 301 after earphone socket 303, the SDA port of described outer sensor is connected with the SDA pin of control circuit 301 after earphone socket 303.Pull-up resistor R is provided with between the SCL port and POWER port of described sensor assembly sCL, and pull-up resistor R is provided with between the SDA port and POWER port of described sensor assembly sDA.Described control circuit 301 is that described sensor assembly is powered by POWER pin, and described control circuit 301 controls described sensor assembly work.Control circuit 301 earphone inserts and detects pin 3012 and access the SDA port of outer sensor, can the low voltage pulse that periodically sends of real-time measure and control circuit 301.The detection pin 3011 of control circuit 301 also accesses the SDA port of described outer sensor, insert with control circuit 301 earphone and detect pin 3012 and form loop, control circuit 301 can judge to detect pin 3011 and earphone and insert and detect whether signal that pin 3012 receives is identical judges whether described outer sensor is extracted.
In sum, the embodiment of the present invention comprises control circuit 301, combinational 302, earphone socket 303, control circuit 301 is according to the magnitude of voltage of the discrepancy of the detection pin 3011 received or level value, determine the external equipment type of earphone socket 303, when the external equipment determining access is earphone, the earphone control line pin of control circuit 301 is connected with the holding wire port of earphone socket 303 by described control circuit 301 control switchgroup circuit 302, when the external equipment determining access is transducer, the sensor control lines pin of control circuit 301 is connected with the holding wire port of earphone socket 303 by control circuit 301 control switchgroup circuit 302, to realize by described headset output interface access outer sensor, reach the object of extension sensor.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (12)

1. an interface circuit, is characterized in that, comprising: control circuit, combinational, earphone socket;
The earphone control line pin of described control circuit is optionally connected with the holding wire port of described earphone socket by described combinational, and is connected with the holding wire port of described earphone socket by the sensor control lines pin of described control circuit;
The holding wire port of described earphone socket comprises MIC holding wire port, ground connection GND holding wire port, left channel signals line cap and right-channel signals line cap; Right-channel signals line cap in described earphone socket is connected with the detection pin of described control circuit;
The earphone of described earphone socket inserts switch port and the earphone of described control circuit and inserts and detect pin and be connected;
Described control circuit is used for according to the magnitude of voltage of the input of described detection pin or level value, determine the external equipment type that described earphone socket accesses, and when the external equipment determining access is earphone, control described combinational the earphone control line pin of described control circuit is connected with the holding wire port of described earphone socket, when the external equipment determining access is transducer, controls described combinational and the sensor control lines pin of described control circuit is connected with the holding wire port of described earphone socket.
2. circuit as claimed in claim 1, is characterized in that, described control circuit also for:
When insert according to earphone detect the input voltage of pin determine current do not have external equipment to access, control described combinational and the earphone control line pin of described control circuit be connected with the holding wire port of described earphone socket;
When insert according to earphone detect the input voltage of pin determine current have external equipment to access, described control circuit controls described combinational and is connected with the IIC device power supply (DPS) output pin of described control circuit by the MIC holding wire port of described earphone socket, control described combinational SPK (R) the holding wire port of described earphone socket is neither linked with the IIC equipment SDA pin of described control circuit, be not also connected with earphone SPK (R) pin of described control circuit.
3. circuit as claimed in claim 1, is characterized in that, described control circuit specifically for:
When described detection pin is ADC pin, judge whether the input voltage value of described ADC pin is less than A* electric power output voltage, if, then determine that the external equipment that described earphone socket accesses is earphone, if not, then determine that the external equipment that described earphone socket accesses is transducer, wherein said A is the coefficient of described electric power output voltage;
When described detection pin is GPIO pin, whether the input level value judging described GPIO pin is high level, if so, then determines that the external equipment that described earphone socket accesses is transducer, if not, then determine that the external equipment that described earphone socket accesses is earphone.
4. the circuit as described in any one of claims 1 to 3, it is characterized in that, described combinational comprises: the first switch, second switch, 3rd switch and the 4th switch, the first end of described first switch is fixedly connected with the MIC holding wire port of described earphone socket, second end selectivity connects IIC device power supply (DPS) output pin and the earphone MIC pin of described control circuit, the first end of described second switch is fixedly connected with SPK (L) the holding wire port of described earphone socket, second end selectivity connects IIC equipment SCL pin and earphone SPK (L) pin of described control circuit, the first end of described 3rd switch is fixedly connected with the ground signalling line cap of described earphone socket, second end selectivity connects IIC equipment ground pin and the earphone grounding pin of described control circuit, the first end of described 4th switch is fixedly connected with SPK (R) the holding wire port of described earphone socket, second end selectivity connects IIC equipment SDA pin and earphone SPK (R) pin of described control circuit,
Described control circuit specifically for:
When the external equipment determining access is earphone, the second end controlling described first switch is connected to the earphone MIC pin of described control circuit, the second end controlling described second switch is connected to earphone SPK (L) pin of described control circuit, the second end controlling described 3rd switch is connected to the earphone grounding pin of described control circuit, and the second end controlling described 4th switch is connected to earphone SPK (R) pin of described control circuit;
When the external equipment determining access is transducer, the second end controlling described first switch is connected to the IIC device power supply (DPS) output pin of described control circuit, the second end controlling described second switch is connected to the IIC equipment SCL pin of described control circuit, the second end controlling described 3rd switch is connected to the IIC equipment ground pin of described control circuit, and the second end controlling described 4th switch is connected to the IIC equipment SDA pin of described control circuit.
5., based on a peripherals detecting method for the arbitrary described circuit of Claims 1-4, it is characterized in that, the method comprises:
Receive the magnitude of voltage or level value that detect pin input;
The magnitude of voltage inputted according to the detection pin of described reception or level value, determine the external equipment type that earphone socket accesses, and when the external equipment determining access is earphone, the earphone control line pin of control circuit is connected with the holding wire port of described earphone socket by control switchgroup circuit, when the external equipment determining access is transducer, controls described combinational and the sensor control lines pin of described control circuit is connected with the holding wire port of described earphone socket.
6. method as claimed in claim 5, is characterized in that the magnitude of voltage that the described detection pin according to described reception inputs or level value are determined to comprise the external equipment type that earphone socket accesses:
When described detection pin is ADC pin, judge whether the input voltage value of described ADC pin is less than A* electric power output voltage, if, then determine that the external equipment that described earphone socket accesses is earphone, if not, then determine that the external equipment that described earphone socket accesses is transducer, wherein said A is the coefficient of described electric power output voltage;
When described detection pin is GPIO pin, whether the input level value judging described GPIO pin is high level, if so, then determines that the external equipment that described earphone socket accesses is transducer, if not, then determine that the external equipment that described earphone socket accesses is earphone.
7. method as claimed in claim 6, is characterized in that, also comprise:
When the external equipment determining access is earphone, the second end controlling the first switch is connected to the earphone MIC pin of described control circuit, the second end controlling second switch is connected to earphone SPK (L) pin of described control circuit, the second end controlling the 3rd switch is connected to the earphone grounding pin of described control circuit, and the second end controlling the 4th switch is connected to earphone SPK (R) pin of described control circuit;
When the external equipment determining access is transducer, the second end controlling described first switch is connected to the IIC device power supply (DPS) output pin of described control circuit, the second end controlling described second switch is connected to the IIC equipment SCL pin of described control circuit, the second end controlling described 3rd switch is connected to the IIC equipment ground pin of described control circuit, and the second end controlling described 4th switch is connected to the IIC equipment SDA pin of described control circuit.
8. method as claimed in claim 5, is characterized in that, also comprise:
When insert according to earphone detect the input voltage of pin determine current do not have external equipment to access, control described combinational and the earphone control line pin of described control circuit be connected with the holding wire port of described earphone socket;
When insert according to earphone detect the input voltage of pin determine current have external equipment to access, control described combinational the MIC holding wire port of described earphone socket is connected with the IIC device power supply (DPS) output pin of described control circuit, control described combinational SPK (R) the holding wire port of described earphone socket is neither linked with the IIC equipment SDA pin of described control circuit, be not also connected with earphone SPK (R) pin of described control circuit.
9., with the outer sensor of the interface circuit adaptation such as according to any one of Claims 1-4, it is characterized in that, comprising: headset plug and sensor assembly, described headset plug is for inserting the earphone socket of described interface circuit;
The holding wire port of described headset plug comprises microphone MIC holding wire port, ground connection GND holding wire port, left channel signals line cap and right-channel signals line cap, the MIC holding wire port of described headset plug is used for being connected with the MIC holding wire port in described earphone socket, the ground connection GND holding wire port of described headset plug is used for being connected with the ground connection GND holding wire port in described earphone socket, the left channel signals line cap of described headset plug is used for being connected with the left channel signals line cap in described earphone socket, the right-channel signals line cap of described headset plug is used for being connected with the right-channel signals line cap in described earphone socket,
The POWER port of described sensor assembly is connected with the MIC holding wire port of described headset plug, the GND port of described sensor assembly is connected with the GND holding wire port of described headset plug, the clock signal SCL port of described sensor assembly is connected with the left channel signals line cap of described headset plug, and the data-signal SDA port of described sensor assembly is connected with the right-channel signals line cap of described headset plug;
Pull-up resistor R is provided with between the SCL port of described sensor assembly and POWER port sCL, and be provided with pull-up resistor R between the SDA port of described sensor assembly and POWER port sDA.
10. outer sensor as claimed in claim 9, it is characterized in that, if be provided with strong pull-up resistance between the IIC equipment SDA pin of the control circuit in described interface circuit and IIC device power supply (DPS) output pin, and be provided with strong pull-up resistance between the IIC equipment SCL pin of described control circuit and IIC device power supply (DPS) output pin, then described pull-up resistor R sCLwith described pull-up resistor R sDAbe weak pull-up resistance.
11. outer sensors as claimed in claim 9, it is characterized in that, if between the IIC equipment SDA pin of the control circuit in described interface circuit and IIC device power supply (DPS) output pin, and between the IIC equipment SCL pin of described control circuit and IIC device power supply (DPS) output pin, all pull-up resistor is not set, then described pull-up resistor R sCLwith described pull-up resistor R sDAbe strong pull-up resistance.
12. outer sensors according to any one of claim 9 to 11, it is characterized in that, described sensor assembly has multiple.
CN201410660335.6A 2014-11-18 2014-11-18 A kind of interface circuit and peripherals detecting method, outer sensor based on the circuit Active CN104581527B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410660335.6A CN104581527B (en) 2014-11-18 2014-11-18 A kind of interface circuit and peripherals detecting method, outer sensor based on the circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410660335.6A CN104581527B (en) 2014-11-18 2014-11-18 A kind of interface circuit and peripherals detecting method, outer sensor based on the circuit

Publications (2)

Publication Number Publication Date
CN104581527A true CN104581527A (en) 2015-04-29
CN104581527B CN104581527B (en) 2018-04-17

Family

ID=53096552

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410660335.6A Active CN104581527B (en) 2014-11-18 2014-11-18 A kind of interface circuit and peripherals detecting method, outer sensor based on the circuit

Country Status (1)

Country Link
CN (1) CN104581527B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554604A (en) * 2015-12-08 2016-05-04 潍坊歌尔电子有限公司 Headset interface conversion device and electronic equipment
CN106897244A (en) * 2017-03-01 2017-06-27 浙江大华技术股份有限公司 A kind of expansion module recognition methods and device
CN111025194A (en) * 2019-12-24 2020-04-17 北京数衍科技有限公司 Interface cable connection detection device and interface module

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1344098A (en) * 2000-09-08 2002-04-10 三星电子株式会社 Warner to notify input call by means of earphone of portable mobile telephone
CN101841586A (en) * 2010-04-27 2010-09-22 深圳桑菲消费通信有限公司 Method for expanding earphone interface of mobile phone into serial communication interface
CN102082846A (en) * 2010-12-02 2011-06-01 惠州Tcl移动通信有限公司 Terminal equipment with plurality of externally arranged shared interfaces
US20120159036A1 (en) * 2010-12-17 2012-06-21 Samsung Electronics Co. Ltd. Integration connecting apparatus in mobile terminal and method for operating the same
CN102724367A (en) * 2012-06-27 2012-10-10 喻应东 Mobile phone extension system, signal transfer equipment and mobile phone
CN203596016U (en) * 2013-12-17 2014-05-14 中南民族大学 Universal port for communication of sensor and micro controller

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1344098A (en) * 2000-09-08 2002-04-10 三星电子株式会社 Warner to notify input call by means of earphone of portable mobile telephone
CN101841586A (en) * 2010-04-27 2010-09-22 深圳桑菲消费通信有限公司 Method for expanding earphone interface of mobile phone into serial communication interface
CN102082846A (en) * 2010-12-02 2011-06-01 惠州Tcl移动通信有限公司 Terminal equipment with plurality of externally arranged shared interfaces
US20120159036A1 (en) * 2010-12-17 2012-06-21 Samsung Electronics Co. Ltd. Integration connecting apparatus in mobile terminal and method for operating the same
CN102724367A (en) * 2012-06-27 2012-10-10 喻应东 Mobile phone extension system, signal transfer equipment and mobile phone
CN203596016U (en) * 2013-12-17 2014-05-14 中南民族大学 Universal port for communication of sensor and micro controller

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554604A (en) * 2015-12-08 2016-05-04 潍坊歌尔电子有限公司 Headset interface conversion device and electronic equipment
CN106897244A (en) * 2017-03-01 2017-06-27 浙江大华技术股份有限公司 A kind of expansion module recognition methods and device
CN106897244B (en) * 2017-03-01 2021-02-26 浙江大华技术股份有限公司 Extended module identification method and device
CN111025194A (en) * 2019-12-24 2020-04-17 北京数衍科技有限公司 Interface cable connection detection device and interface module

Also Published As

Publication number Publication date
CN104581527B (en) 2018-04-17

Similar Documents

Publication Publication Date Title
EP3117329B1 (en) Method, apparatus, and computer program product for entering accessory docking mode in usb type c
CN106716389B (en) Method for fast USB charging, electronic device and charger device
US9448611B2 (en) Interface expending method and device for tablet computer
CN203466944U (en) Self configuration device
CN104023294A (en) Interface multiplexing apparatus in terminal, and adaptor panel
US20080167828A1 (en) Systems and methods for determining the configuration of electronic connections
TW201334412A (en) Determining circuit
CN101917497A (en) Method and device for earphone and USB to share micro-USB interface
US20130179603A1 (en) Apparatus and method of identifying a usb or an mhl device
SA515360350B1 (en) High voltage dedicated charging port
WO2012097615A2 (en) Multi-purpose connector for multiplexing headset interface into high definition video and audio interface and handheld electronic device
CN101426038A (en) Portable electronic device and accessory identification method
CN101841753A (en) Drive-by-wire earphone for portable electronic equipment and method for realizing drive-by-wire
JP2010251859A (en) Mobile terminal
CN104459376A (en) Interface circuit and peripheral detection method and external sensor based on interface circuit
CN103618356A (en) Charging system for mobile terminal and charging method thereof
KR20140102389A (en) Audio jack detector and detecting method
CN103096210B (en) Signal connection module, electronic device and connector identification method
CN104683916A (en) Circuit and method for detecting pins of microphone
CN105162213A (en) USB controller, and device
CN104581527A (en) Interface circuit, as well as external detection method and external sensor based on circuit
CN103888873A (en) Electronic device and UART output system and method
CN105071484A (en) Charging method and apparatus of terminal having data exchange function
CN103414981A (en) Device, method and terminal for recognizing audio interface pins
CN104066028A (en) Communication method based on headset jack and terminal 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