CN108093329B - Peripheral type detection circuit and mobile terminal based on shared interface - Google Patents

Peripheral type detection circuit and mobile terminal based on shared interface Download PDF

Info

Publication number
CN108093329B
CN108093329B CN201810045709.1A CN201810045709A CN108093329B CN 108093329 B CN108093329 B CN 108093329B CN 201810045709 A CN201810045709 A CN 201810045709A CN 108093329 B CN108093329 B CN 108093329B
Authority
CN
China
Prior art keywords
pin
common interface
earphone
interface
charging
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810045709.1A
Other languages
Chinese (zh)
Other versions
CN108093329A (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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN201810045709.1A priority Critical patent/CN108093329B/en
Publication of CN108093329A publication Critical patent/CN108093329A/en
Application granted granted Critical
Publication of CN108093329B publication Critical patent/CN108093329B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Abstract

The invention discloses a peripheral type detection circuit and a mobile terminal based on a shared interface, wherein the shared interface is used for externally connecting charging equipment or headphones, and comprises a first pin for transmitting charging voltage when externally connecting the charging equipment and a fifth pin connected with system ground; the earphone is inserted into the shared interface through an earphone plug, and a first pin of the earphone plug is in short circuit with a fifth pin; the detection circuit comprises a first switch circuit and a second switch circuit; the first switch circuit is connected between a first pin of the common interface and the charging system, is conducted when a charging voltage is applied to the first pin, and generates a charging equipment access detection signal when the charging system receives the charging voltage; the second switch circuit is connected with a first pin of the common interface, and is conducted when the first pin is grounded, so that an earphone access detection signal is generated. The invention multiplexes the earphone interface and the charging interface, reduces the number of interfaces, and realizes automatic identification of the peripheral type of the external shared interface.

Description

Peripheral type detection circuit and mobile terminal based on shared interface
Technical Field
The invention belongs to the technical field of interface circuits, and particularly relates to a circuit design for realizing automatic detection of the type of external equipment inserted into a shared interface.
Background
With the rapid development and the increasing popularity of mobile terminal technology, the functions implemented on the mobile terminal are more and more, and supportable external devices are more and more diversified, so that a plurality of interfaces of different types are inevitably required to be configured on the mobile terminal to meet the plugging requirements of different external devices. For example, in order to realize charging and data interaction, a micro_usb interface needs to be provided on the mobile terminal; in order to plug in the earphone, a jack3.5mm earphone interface and the like are required to be arranged on the mobile terminal. However, in future product forms, the external design of the mobile terminal will tend to be miniaturized, light and thin, and the more intense structural space will bring more difficulty and challenges to the layout of the interface on the product structural member, so that the interface multiplexing design is imperative.
At present, on mobile terminal products such as mobile phones, tablet computers, intelligent watches, intelligent bracelets and the like, an interface multiplexing technology is mainly applied to micro_USB interfaces, and can only be used as a charging interface and a data communication interface. If the micro_usb interface is used as the earphone interface, the main design problems are:
1. how to accurately identify whether the external device inserted into the micro_usb interface is a charging device or an earphone device so that the mobile terminal can be correctly switched to a corresponding operation mode;
2. when the earphone is inserted on the micro_USB interface, how to ensure the audio quality.
Disclosure of Invention
The invention aims to provide a peripheral type detection circuit based on a shared interface, which not only can accurately identify whether charging equipment or earphone equipment is inserted into a micro-USB interface, but also can avoid the interference influence of a charging system on an earphone audio signal and ensure the audio quality.
In order to solve the technical problems, the invention is realized by adopting the following technical scheme:
the invention provides a peripheral type detection circuit based on a shared interface, wherein the shared interface is used for externally connecting a charging device or an earphone, and comprises a first pin and a fifth pin connected with system ground, and the first pin transmits charging voltage when the shared interface is externally connected with the charging device; the earphone is inserted into the shared interface through an earphone plug, and a first pin of the earphone plug is in short circuit with a fifth pin of the earphone plug; the peripheral type detection circuit comprises a first switch circuit and a second switch circuit; the first switch circuit is connected between a first pin of the common interface and the charging system, and is conducted when a charging voltage is applied to the first pin of the common interface, and the charging system generates a charging equipment access detection signal when receiving the charging voltage; the second switch circuit is connected with the first pin of the shared interface, and is conducted when the first pin of the shared interface is grounded, so that an earphone access detection signal is generated.
As a preferred circuit design of the second switching circuit, the invention is provided with a P-channel MOS tube in the second switching circuit; the grid electrode of the P channel MOS tube is connected with the first pin of the common interface and is connected with a system power supply through a pull-up resistor; the source electrode of the P-channel MOS tube is connected with the system power supply; the drain electrode of the P channel MOS tube is connected with system ground through a pull-down resistor and is connected with a signal line for transmitting the earphone access detection signal.
In order to avoid erroneous conduction of the P-channel MOS transistor when no external device is connected to the common interface due to leakage current existing in the system circuit, and further to generate an erroneous judgment result of earphone insertion, the resistance value of the pull-up resistor is preferably limited to be below 10kΩ.
In order to isolate a charging voltage from a system power supply when a charging device is inserted into a common interface and avoid the influence of the charging state on a power load using the system power supply, a diode is further connected between the grid electrode of the P-channel MOS tube and a first pin of the common interface, the anode of the diode is connected with the grid electrode of the P-channel MOS tube, and the cathode of the diode is connected with the first pin of the common interface; the voltage amplitude of the system power supply is smaller than the charging voltage.
As a preferred circuit design of the first switch circuit, the invention is provided with another P-channel MOS tube in the first switch circuit; and the grid electrode of the other P-channel MOS tube is connected with the system ground or the system ground through a pull-down resistor, the source electrode of the other P-channel MOS tube is connected with the first pin of the common interface, and the drain electrode of the other P-channel MOS tube is connected with the charging system.
In another aspect, the invention also provides a mobile terminal, which comprises a shared interface, a charging system, a system ground, a first switch circuit and a second switch circuit; the shared interface is used for externally connecting the charging equipment or the earphone and comprises a first pin and a fifth pin connected with the system ground, and the first pin transmits charging voltage when the shared interface is externally connected with the charging equipment; the earphone is inserted into the shared interface through an earphone plug, and a first pin of the earphone plug is in short circuit with a fifth pin of the earphone plug; the first switch circuit is connected between a first pin of the common interface and the charging system, and is conducted when a charging voltage is applied to the first pin of the common interface, and the charging system generates a charging equipment access detection signal when receiving the charging voltage; the second switch circuit is connected with the first pin of the shared interface, and is conducted when the first pin of the shared interface is grounded, so that an earphone access detection signal is generated.
Further, the mobile terminal further comprises a processor, the processor receives the charging equipment access detection signal and the earphone access detection signal, and controls the system program to enter a corresponding working mode according to the received detection signals.
Further, the mobile terminal also comprises an audio processing circuit which is connected with the processor and is used for processing the audio data output by the processor into left and right channel analog audio signals; the audio processing circuit comprises a shared interface, a headset plug, a processor, a speaker mode, a headset mode, a left channel analog audio signal and a right channel analog audio signal, wherein the shared interface and the headset plug also comprise a second pin and a third pin for transmitting data or audio signals, the processor switches an audio output channel of the audio processing circuit to be communicated with the shared interface when receiving a headset access detection signal, and transmits the left channel analog audio signal and the right channel analog audio signal which are processed and output by the audio processing circuit to the headset through the second pin and the third pin, so that an audio playing mode is switched from the speaker mode to the headset mode.
Furthermore, the shared interface and the earphone plug also comprise a fourth pin, and the fourth pin of the earphone plug is connected with the earphone ground, so that the fourth pin of the shared interface is isolated from the system ground, and the audio quality of the earphone can be better ensured by directly connecting the earphone ground with other ground.
Preferably, the micro_usb interface is preferably used as the common interface, so as to reduce occupation of the structural space of the mobile terminal.
Compared with the prior art, the invention has the advantages and positive effects that: according to the invention, the earphone interface is multiplexed onto the charging interface, so that the Jack3.5mm earphone interface is omitted, the number of peripheral interfaces is reduced, the occupied space of a PCB and a shell structure is saved, the miniaturization, the light weight and the thin design of the mobile terminal are facilitated, and meanwhile, the mobile terminal can automatically identify whether an external device inserted onto the common interface is a charging device or an earphone by designing the peripheral type detection circuit, so that the system circuit is controlled to enter a corresponding working mode, the operation of a user is accurately responded, and the using satisfaction degree of the user is improved. In addition, when the earphone is inserted, the first switch circuit is in an off state, so that the audio signal passing through the common interface is completely isolated from the charging system, the interference influence of the charging system on the audio signal of the earphone can be avoided, and the audio quality is ensured.
Other features and advantages of the present invention will become more apparent from the following detailed description of embodiments of the present invention, which is to be read in connection with the accompanying drawings.
Drawings
FIG. 1 is a schematic block circuit diagram of one embodiment of a common interface based peripheral type detection circuit in accordance with the present invention;
fig. 2 is a specific circuit schematic of one embodiment of the peripheral type detection circuit shown in fig. 1.
Detailed Description
The following describes the embodiments of the present invention in further detail with reference to the drawings.
As shown in fig. 1, in order to enable the charging device (adapter or host) and the wired earphone to share one peripheral interface, so as to reduce the number of peripheral interfaces arranged on the mobile terminal, the present embodiment preferably adopts a USB interface with 5 pins or a micro_usb interface as a shared interface, and is arranged on a shell structure of the mobile terminal for externally connecting the charging device and the wired earphone. In order to reduce the occupied area of the shell structural member and be applicable to most of the charging equipment at present, the micro-USB interface widely used by the mobile terminal is preferably adopted as the shared interface in the embodiment, and the functions of the earphone interface are further integrated on the basis of using the micro-USB interface as the charging interface and the data communication interface, so that the multiplexing of the charging interface and the earphone interface is realized.
In order to enable the mobile terminal to automatically identify whether the external device inserted into the common interface is a charging device or a wired earphone, on one hand, in the embodiment, a first pin defining the common interface is used for transmitting charging voltage output by the charging device when the common interface is externally connected with the charging device, and a fifth pin is connected with a system ground of the mobile terminal; on the other hand, on the earphone side, the first pin and the fifth pin in the earphone plug are short-circuited, so that the external equipment inserted into the common interface can be judged to be the charging equipment or the wired earphone by detecting the potential state (the first pin is high potential when the charging equipment is inserted and is low potential when the earphone is inserted) of the first pin in the common interface, and the mobile terminal can accurately identify the external equipment type.
In order to generate a corresponding peripheral type access detection signal (a charging device access detection signal or an earphone access detection signal) according to the potential state on the first pin of the common interface, the embodiment further designs a peripheral type detection circuit on the PCB board of the mobile terminal, as shown in fig. 1, including a first switch circuit and a second switch circuit. The first switch circuit and the second switch circuit are respectively connected to the first pin of the common interface, and the first switch circuit is designed to be conducted when the charging voltage is connected to the first pin of the common interface, and the second switch circuit is designed to be conducted when the first pin of the common interface is grounded. Therefore, when the first switch circuit is conducted, the charging equipment is considered to be externally connected, the charging voltage is transmitted to a charging system inside the mobile terminal through the first switch circuit, an effective charging equipment access detection signal VUSB_IN is generated when the charging system receives the charging voltage, and the charging equipment access detection signal VUSB_IN is sent to a processor inside the mobile terminal, so that the processor can accurately identify the insertion state of the charging equipment. When the second switch circuit is conducted, the external connection can be considered as a wired earphone, and at the moment, the required earphone access detection signal EARBUD_IN can be generated by utilizing the switching of the on-off state of the second switch circuit and sent to a processor IN the mobile terminal so as to realize the accurate identification of the earphone insertion state by the processor.
As a preferable circuit design scheme of the embodiment, the first switch circuit and the second switch circuit can be designed by adopting a P-channel MOS tube matched with a simple peripheral circuit. As shown in fig. 2, a P-channel MOS transistor Q1 is disposed in the first switch circuit, the source of the P-channel MOS transistor Q1 is connected to the first pin 5V of the common interface J1, the gate is connected to the system ground GNDD of the mobile terminal, preferably, the drain of the P-channel MOS transistor Q1 is connected to the charging system inside the mobile terminal through a series pull-down resistor R1. When the charging device is inserted into the common interface J1, a charging voltage (for the micro_usb interface, the charging voltage is +5v dc voltage) output by the charging device acts on the source electrode of the P-channel MOS transistor Q1, and at this time, the P-channel MOS transistor Q1 is turned from the off state to the saturated on state due to the fact that the source gate voltage is greater than the on voltage drop, and is communicated with a power transmission path between the charging voltage and the charging system, so as to transmit the charging current to the charging system. The charging system is arranged to generate a charging device access detection signal VUSB_IN (e.g. a high level signal) when receiving the charging voltage, and send the charging device access detection signal VUSB_IN to one of the I/O ports of the processor MCU, such as a GPIO1 port. When detecting that the GPIO1 port of the processor MCU is at a high level, the processor MCU judges that a charging device is inserted, a control system program enters a charging process, a battery inside the mobile terminal is charged through the charging system, a power supply line originally connected with the battery is switched to be communicated with a charging voltage, and the external charging voltage is utilized to supply power for the mobile terminal.
Since the charging device inserted into the common interface J1 may be an adapter or a host, the second pin and the third pin of the adapter plug may be shorted on the adapter side, and the second pin and the third pin on the host side may be isolated from each other for transmitting USB data for the purpose of differentiation. Defining a second pin D-and a third pin D+ of the common interface J1 for transmitting data or audio signals, detecting whether the second pin D-and the third pin D+ of the common interface J1 are short-circuited or not after the mobile terminal receives a charging equipment access detection signal VUSB_IN, and judging that an adapter is accessed if the second pin D-and the third pin D+ are short-circuited; if the connection is not short-circuited, the connection is judged to be the host, and at the moment, data communication can be carried out through the second pin D-and the third pin D+ of the common interface J1, so that data interaction between the host and the mobile terminal is realized.
And a P-channel MOS transistor Q2 is arranged in the second switching circuit, the grid electrode of the P-channel MOS transistor Q2 is connected to the first pin 5V of the common interface J1, and the P-channel MOS transistor Q2 is connected to the system power supply 1.8V_SYS through a pull-up resistor R2. In this embodiment, the system circuit of the mobile terminal is considered to have unstable gate level of the P-channel MOS transistor Q2 due to the existence of leakage current, so that the pull-up design of the resistor R2 is increased. The system power supply 1.8v_sys may be generated by converting a battery voltage or a charging voltage by a power conversion circuit inside the mobile terminal, for supplying power to the processor MCU or other functional modules inside the mobile terminal. The voltage amplitude of the system power supply 1.8v_sys should be smaller than the charging voltage. For example, for a mobile terminal with 5V power supply, a system power supply of 1.8V or 3.3V in the system may be selected to connect to the gate of the P-channel MOS transistor Q2. The source electrode of the P channel MOS transistor Q2 is connected to the system power supply 1.8V_SYS, the drain electrode is connected with the system ground GNDD through a pull-down resistor R3, an earphone access detection signal EARBUD_IN is output through the drain electrode, and the detection signal EARBUD_IN is transmitted to the other path of I/O port of the processor MCU, such as a GPIO2 port, through a signal line.
When the earphone is inserted into the common interface J1, the first pin 5V of the common interface J1 is connected to the system ground GNDD because the first pin of the earphone plug J2 is shorted to the fifth pin and the fifth pin of the common interface J1 is connected to the system ground GNDD. At this time, the gate voltage of the P-channel MOS transistor Q2 is pulled down, and the P-channel MOS transistor Q2 is switched from the original off state to the saturated on state due to the source gate voltage being greater than the on voltage drop, so as to output the high-level valid earphone access detection signal earboud_in, and transmit the high-level valid earphone access detection signal earboud_in to the GPIO2 port of the processor MCU. When detecting that the GPIO2 port is at a high level, the processor MCU judges that the external device inserted into the common interface J1 is an earphone, and then switches the audio playing mode from a default loudspeaker mode to an earphone mode, and outputs audio signals through the earphone. Specifically, when the processor MCU detects that the earphone is inserted, a control signal SEL is outputted to a switching circuit in the audio output channel, as shown in fig. 1, which controls the switching circuit to switch the audio output channel connected to the output end of the audio processing circuit from a default state of being in communication with the speaker to be in communication with the second pin D-and the third pin d+ of the common interface J1. When the audio signal is required to be played, the processor MCU passes the audio data through I 2 The S bus is transmitted to an audio processing circuit in the mobile terminal, audio data are processed into analog audio signals through the audio processing circuit, the analog audio signals preferably comprise a left channel analog audio signal HPL and a right channel analog audio signal HPR, the analog audio signals are transmitted to the earphone through a second pin and a third pin of the common interface J1 and the earphone plug J2 respectively, and audio playing is achieved through an electroacoustic conversion device in the earphone.
When the earphone is inserted, the source voltage of the P-channel MOS tube Q1 is equal to the gate voltage of the P-channel MOS tube Q1 and is in a cut-off state, so that an audio signal passing through the common interface J1 is completely isolated from the charging system, the audio signal can be prevented from being interfered by other signals, and the audio quality is ensured. In addition, the fourth pin of the earphone plug J2 may be connected to the earphone ground, and the fourth pin ID of the common interface J1 may be isolated from the system ground GNDD of the mobile terminal, for example, may be connected to an audio processing circuit, so that the audio quality in the earphone mode may be better ensured by making the earphone ground not directly connected to other ground.
In order to avoid that the charging voltage acts on the system power supply 1.8v_sys through the pull-up resistor R2 when the charging device is plugged in, so that the power load connected to the system power supply 1.8v_sys is affected by charging, in this embodiment, a diode D10 is preferably connected between the first pin 5V of the common interface J1 and the gate of the P-channel MOS transistor Q2, as shown in fig. 2. The cathode of the diode D10 is connected to the first pin 5V of the common interface J1, the anode is connected to the grid electrode of the P-channel MOS transistor Q2, and the voltage of the charging voltage is larger than that of the system power supply 1.8V_SYS, so that when charging equipment is inserted into the common interface J1, the diode D10 is in a reverse cut-off state, and the influence of the charging voltage on the system power supply 1.8V_SYS is eliminated.
When no external device is inserted into the common interface J1, the first pin 5V of the common interface J1 is suspended, and has infinite internal resistance, and since the system circuit of the mobile terminal may have a risk of leakage current, the diode D10 may be turned on when no external device is inserted. The detection circuit forms a voltage division state, and the grid voltage of the P-channel MOS transistor Q2 is reduced, so that the risk of erroneous conduction of the P-channel MOS transistor Q2 exists. In order to avoid that the P-channel MOS Q2 is turned on by mistake due to the system leakage current when no external device is inserted, and further the processor MCU misjudges that the earphone is inserted, the embodiment limits the resistance of the pull-up resistor R1 not to exceed 10kΩ, and preferably designs that the resistance of the pull-up resistor R1 is between 4.7kΩ and 10kΩ, so that the gate voltage of the P-channel MOS Q2 can be kept at a higher potential when the diode D10 is turned on due to the system leakage current (because the internal resistance of the first pin 5V of the common interface J1 is infinite, the voltage division is large). For example, for a 1.8v_sys system power supply of 1.8V, the gate voltage of the P-channel MOS transistor Q2 may be kept at about 1.6V, so that the source gate voltage of the P-channel MOS transistor Q2 is still smaller than the on voltage drop of the P-channel MOS transistor Q2, the P-channel MOS transistor Q2 is still kept IN an off state, and the earphone access detection signal earboud_in is not generated, thereby avoiding the occurrence of an earphone insertion misjudgment problem and improving the accuracy of peripheral type detection.
Of course, the first switching circuit and the second switching circuit of the present embodiment may also be implemented by adopting other switching elements (such as PNP transistors, etc.) except for P-channel MOS transistors in combination with simple peripheral circuit designs, and the present embodiment is not limited to the above examples.
The micro-USB interface is adopted as the shared interface J1, and the earphone function and the charging function are integrated onto the micro-USB interface, so that the use of the Jack3.5mm earphone interface is omitted, the interface cost is reduced, the product weight is lightened, the space occupation of a PCB and a shell structural member can be reduced, and the design requirements of miniaturization and light weight of the mobile terminal are met.
It should be understood that the above description is not intended to limit the invention to the particular embodiments disclosed, but to limit the invention to the particular embodiments disclosed, and that other variations, modifications, additions and substitutions are possible, without departing from the scope of the invention as disclosed in the accompanying claims.

Claims (10)

1. The peripheral type detection circuit based on the common interface is used for externally connecting a charging device or an earphone, and comprises a first pin and a fifth pin connected with system ground, wherein the first pin transmits charging voltage when the common interface is externally connected with the charging device; it is characterized in that the method comprises the steps of,
the earphone is inserted into the shared interface through an earphone plug, and a first pin of the earphone plug is in short circuit with a fifth pin;
the peripheral type detection circuit includes:
the first switching circuit is connected between the first pin of the common interface and the charging system, is conducted when a charging voltage is applied to the first pin of the common interface, and generates a charging equipment access detection signal when the charging system receives the charging voltage;
and the second switch circuit is connected with the first pin of the common interface, is conducted when the first pin of the common interface is grounded, and generates an earphone access detection signal.
2. The common interface-based peripheral type detection circuit according to claim 1, wherein a P-channel MOS transistor is provided in the second switching circuit; the grid electrode of the P channel MOS tube is connected with the first pin of the common interface and is connected with a system power supply through a pull-up resistor; the source electrode of the P-channel MOS tube is connected with the system power supply; the drain electrode of the P channel MOS tube is connected with system ground through a pull-down resistor and is connected with a signal line for transmitting the earphone access detection signal.
3. The common interface based peripheral type detection circuit according to claim 2, wherein the pull-up resistor has a resistance value of less than 10kΩ.
4. The peripheral type detection circuit based on a common interface according to claim 2, wherein a diode is connected between the gate of the P-channel MOS transistor and the first pin of the common interface, the anode of the diode is connected to the gate of the P-channel MOS transistor, and the cathode of the diode is connected to the first pin of the common interface; the voltage amplitude of the system power supply is smaller than the charging voltage.
5. The common interface-based peripheral type detection circuit according to any one of claims 1 to 4, wherein another P-channel MOS transistor is provided in the first switching circuit; and the grid electrode of the other P-channel MOS tube is connected with the system ground or the system ground through a pull-down resistor, the source electrode of the other P-channel MOS tube is connected with the first pin of the common interface, and the drain electrode of the other P-channel MOS tube is connected with the charging system.
6. A mobile terminal comprising a common interface, a charging system and a system ground; a common interface based peripheral type detection circuit as claimed in any one of claims 1 to 5.
7. The mobile terminal of claim 6, further comprising a processor that receives the charging device access detection signal and the headset access detection signal and controls a system program to enter a corresponding operating mode based on the received detection signals.
8. The mobile terminal of claim 7, further comprising an audio processing circuit coupled to the processor for processing audio data output by the processor into left and right channel analog audio signals; the shared interface and the earphone plug also comprise a second pin and a third pin for transmitting data or audio signals, when the processor receives the earphone access detection signal, the processor switches the audio output channel of the audio processing circuit to be communicated with the shared interface, and the left channel and the right channel analog audio signals processed and output by the audio processing circuit are transmitted to the earphone through the second pin and the third pin.
9. A mobile terminal according to any of claims 6 to 8, further comprising a fourth pin in the common interface and in the headset plug, the fourth pin of the headset plug being connected to the headset ground, the fourth pin of the common interface being isolated from the system ground.
10. The mobile terminal of claim 9, wherein the common interface is a micro USB interface.
CN201810045709.1A 2018-01-17 2018-01-17 Peripheral type detection circuit and mobile terminal based on shared interface Active CN108093329B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810045709.1A CN108093329B (en) 2018-01-17 2018-01-17 Peripheral type detection circuit and mobile terminal based on shared interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810045709.1A CN108093329B (en) 2018-01-17 2018-01-17 Peripheral type detection circuit and mobile terminal based on shared interface

Publications (2)

Publication Number Publication Date
CN108093329A CN108093329A (en) 2018-05-29
CN108093329B true CN108093329B (en) 2024-01-30

Family

ID=62181654

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810045709.1A Active CN108093329B (en) 2018-01-17 2018-01-17 Peripheral type detection circuit and mobile terminal based on shared interface

Country Status (1)

Country Link
CN (1) CN108093329B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109089305B (en) * 2018-08-27 2021-09-14 惠州Tcl移动通信有限公司 Earphone adapter for reducing power consumption of mobile terminal and mobile terminal
CN111130596B (en) * 2019-11-14 2021-08-03 荣耀终端有限公司 Multiplexing circuit, interface circuit system and mobile terminal
CN211427333U (en) * 2019-11-20 2020-09-04 费森尤斯卡比(南昌)医疗器械有限公司 Lower computer, connector, lower computer assembly and communication system
CN111740458B (en) * 2020-06-19 2023-03-10 歌尔科技有限公司 Earphone box, charging detection method and device thereof, and storage medium
CN116049055B (en) * 2022-05-26 2023-09-08 荣耀终端有限公司 Access identification method of electronic equipment interface and electronic equipment
CN114967894B (en) * 2022-07-27 2023-01-17 荣耀终端有限公司 Electronic device, device identification method and charging system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040017587A (en) * 2002-08-22 2004-02-27 주식회사 팬택 Shared Circuit For Ear_DC Jack Connector Of Mobile Communication Terminal
CN106937202A (en) * 2017-05-10 2017-07-07 上海青橙实业有限公司 Headphone interface device and mobile terminal
CN207783089U (en) * 2018-01-17 2018-08-28 歌尔科技有限公司 Peripheral type detection circuit based on shared interface and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103945310B (en) * 2014-04-29 2017-01-11 华为终端有限公司 Transmission method, mobile terminal, multi-channel earphones and audio playing system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040017587A (en) * 2002-08-22 2004-02-27 주식회사 팬택 Shared Circuit For Ear_DC Jack Connector Of Mobile Communication Terminal
CN106937202A (en) * 2017-05-10 2017-07-07 上海青橙实业有限公司 Headphone interface device and mobile terminal
CN207783089U (en) * 2018-01-17 2018-08-28 歌尔科技有限公司 Peripheral type detection circuit based on shared interface and mobile terminal

Also Published As

Publication number Publication date
CN108093329A (en) 2018-05-29

Similar Documents

Publication Publication Date Title
CN108093329B (en) Peripheral type detection circuit and mobile terminal based on shared interface
CN108666826B (en) Adapter, terminal equipment and adapter system
US7961895B2 (en) Audio interface device and method
US11611221B2 (en) Electronic device and accessory with quick charging and audio transmission functions
US20130181660A1 (en) Charge control circuit for usb device
US9312576B2 (en) Portable electronic devices capable of obtaining charging current value of charger and charging method thereof
CN108733609B (en) Switching circuit, intelligent switching device and switching method of double USB interfaces
US10009029B1 (en) Interface control circuit to match voltage levels between USB devices upon connection
CN112671084A (en) USB device and operation method thereof
US20150269110A1 (en) Cable with multiple functions
CN203933930U (en) Earphone interface circuit and portable electron device
CN112202439B (en) Capacitor isolation circuit, interface module, chip and system
US20230101461A1 (en) Data line and charging device
CN101626412A (en) Mobile terminal circuit with multifunctional earphone socket and implementation method thereof
US9148718B2 (en) Grounding circuit for alternate audio plug designs
JP5742406B2 (en) Information processing apparatus, connection method, and program
US20140068113A1 (en) Data transmission between a portable electronic device and various accessory devices via respective dedicated connection interfaces
CN113535622A (en) Power supply switching system, USB socket and electronic equipment
CN210112248U (en) Wireless earphone reset circuit and earphone
US10193286B2 (en) Electronic device and control method thereof
CN111615029A (en) Wireless earphone reset circuit, wireless earphone and reset method
CN111314817A (en) Switching control circuit, terminal equipment and switching control method
CN215268511U (en) Novel interface supporting 100W charging
CN211180806U (en) Debugging serial port circuit based on HDMI interface, HDMI interface module and HDMI equipment
CN110209371B (en) Audio compatible circuit and video and audio equipment

Legal Events

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