CN108430005A - A kind of voicefrequency circuit, audio judgment method and mobile terminal - Google Patents

A kind of voicefrequency circuit, audio judgment method and mobile terminal Download PDF

Info

Publication number
CN108430005A
CN108430005A CN201810388265.1A CN201810388265A CN108430005A CN 108430005 A CN108430005 A CN 108430005A CN 201810388265 A CN201810388265 A CN 201810388265A CN 108430005 A CN108430005 A CN 108430005A
Authority
CN
China
Prior art keywords
pins
switch
type
connect
sockets
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
CN201810388265.1A
Other languages
Chinese (zh)
Other versions
CN108430005B (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201810388265.1A priority Critical patent/CN108430005B/en
Publication of CN108430005A publication Critical patent/CN108430005A/en
Application granted granted Critical
Publication of CN108430005B publication Critical patent/CN108430005B/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
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups

Abstract

The invention discloses a kind of voicefrequency circuit, audio judgment method and mobile terminals, are related to technical field of mobile terminals, which includes:OTG cables circuit and terminating circuit, the OTG cables circuit include:OTG USB female seats, earphone socket and Type C plugs, the terminating circuit include:Type C sockets, the Type C plugs are matched with the Type C sockets, the OTG USB female seats and earphone socket are connect by the Type C sockets with the terminating circuit, by being arranged earphone socket and OTG USB female seats in the same OTG cables, and pass through circuits improvement, it realizes that ear-phone function is synchronous with OTG functions to carry out, the user experience is improved.

Description

A kind of voicefrequency circuit, audio judgment method and mobile terminal
Technical field
The present invention relates to a kind of technical field of mobile terminals more particularly to voicefrequency circuit, audio judgment method and movements eventually End.
Background technology
With the development of science and technology, smart mobile phone already becomes the center of personal information, smart mobile phone single product is in function Upper stronger and stronger, OTG (On The GO are applied to the Data Interchange Technology of equipment room), function is also primary demand, also It is that requirement smart mobile phone supports storage device identification to use.
It is not support Type when OTG functions are used in mobile terminal in existing Type C headset designs schemes C ear-phone functions or mobile terminal when Type C ear-phone functions are used, do not support OTG functions.
Invention content
It is a primary object of the present invention to propose a kind of voicefrequency circuit, audio judgment method and mobile terminal, it is intended to solve OTG functions and the incompatible problem of ear-phone function on mobile terminal.
To achieve the above object, a kind of voicefrequency circuit provided by the invention, including:OTG cables circuit and terminating circuit, institute Stating OTG cable circuits includes:OTG USB female seats, earphone socket and Type C plugs, the terminating circuit include:Type C are inserted Seat, the Type C plugs are matched with the Type C sockets, and the OTG USB female seats and earphone socket pass through the Type C sockets are connect with the terminating circuit.
Optionally, the Vbus pins of the OTG USB female seats are connect with the Vbus pins of Type C plugs, the OTG The DP pins of USB female seat are connect with the DP1 pins of Type C plugs, DM pins and the Type C plugs of the OTG USB female seats The connection of DM1 pins, the GND pins of the OTG USB female seats connect with the GND pins of Type C plugs.
Optionally, the HPH-L pins of the earphone socket are connect with the DP2 pins of Type C plugs, the earphone socket HPH-R pins connect with the DM2 pins of Type C plugs, the SBU2 of the MIC pins and Type C plugs of the earphone socket Pin and the connection of SNU1 pins, the DET pins of the earphone socket are connect with the CC1 pins of Type C plugs and CC2 pins, institute The GND pins for stating earphone socket are connect with the GND pins of Type C plugs.
Optionally, the terminating circuit further includes:Power management integration module PMIC, diode D1, diode D2, two poles Pipe D3, CPU and switch module Switch, the anode of the USB-ID pins and diode D1 of the power management integration module PMIC And the anode connection of diode D2, the cathode of diode D1 are connect with the TXP1 pins of Type C sockets, the cathode of diode D2 Connect with the TXP2 pins of the cathode of diode D3 and Type C sockets, diode D3 anode and CPU GPIO pins and open The SWO pins connection of module Switch is closed, the Vbus pins of power management integration module PMIC are managed with the Vbus of Type C sockets Foot connects, and the HPH-L pins of power management integration module PMIC are connect with the DP1a pins of switch module Switch, power management The HPH-R pins of integration module PMIC are connect with the DM1a pins of switch module Switch, power management integration module PMIC's MIC pins are connect with the SBU2 pins of Type C sockets and SBU1 pins, the CC1 pins of power management integration module PMIC with The CC1 pins of Type C sockets connect, and the CC2 pins of power management integration module PMIC connect with the CC2 pins of Type C sockets It connecing, the DP2 pins of power management integration module PMIC and the DP2a pins of the DP2 pins of CPU and switch module Switch connect, The DM2 pins of power management integration module PMIC and the DM2a pins of the DM2 pins of CPU and switch module Switch connect, and open The DP1 pins for closing module Switch are connect with the DP1 pins of Type C sockets, the DM1 pins and Type of switch module Switch The DM1 pins of C sockets connect, and the DP2 pins of switch module Switch are connect with the DP2 pins of Type C sockets, switch module The DM2 pins of Switch are connect with the DM2 pins of Type C sockets.
Optionally, when mobile terminal starts, the USB-ID pins of power management integration module PMIC are defaulted as high level, The GPIO pins of CPU are defaulted as high level, at this point, Type C plugs are not inserted into Type C sockets, the TXP1 pipes of Type C sockets Foot and TXP2 pins are hanging, and the USB-ID pins of power management integration module PMIC remain high level, and the GPIO pins of CPU are protected It holds as high level, the SWO pins of switch module Switch are also high level, the DP1a pins and switching molding of switch module Switch The DP2 pins of block Switch are connected to, and the DM1a pins of switch module Switch are connected to the DM2 pins of switch module Switch, The DP2a pins of switch module Switch are connected to the DP1 pins of switch module Switch, the DM2a pipes of switch module Switch Foot is connected to the DM1 pins of switch module Switch.
Optionally, when the GPIO pins of CPU are low level, the SWO pins of switch module Switch are low level, switch The DP1a pins of module Switch are connected to the DP1 pins of switch module Switch, the DM1a pins of switch module Switch with The DM1 pins of switch module Switch are connected to, the DP2a pins of switch module Switch and the DP2 pins of switch module Switch Connection, the DM2a pins of switch module Switch are connected to the DM2 pins of switch module Switch.
Optionally, when OTG cable forward directions are inserted into mobile terminal, Type C sockets and the pin one of Type C plugs are a pair of It should connect, the cathode of diode D1 is grounded by the TXP1 pins of Type C sockets and the TXP1 pins of Type C plugs, two poles Pipe D1 conductings, the USB-ID pins of power management integration module PMIC become low level, power management integration module from high level PMIC notices CPU enters OTG patterns, meanwhile, the Vbus pins of power management integration module PMIC export 5V voltages and give OTG equipment Power supply;The TXP2 pins of OTG cables are hanging, and the GPIO pins of CPU remain high level, the SWO pins of switch module Switch Also it is high level, the DP1a pins of switch module Switch are connected to the DP2 pins of switch module Switch, switch module The DM1a pins of Switch are connected to the DM2 pins of switch module Switch, DP2a pins and the switch of switch module Switch The DP1 pins of module Switch are connected to, and the DM2a pins of switch module Switch connect with the DM1 pins of switch module Switch It is logical;If mobile terminal detects that the CC1 pins of power management integration module PMIC and CC2 pins are all low level, judge It is inserted into OTG cables for earphone, into earphone identification process.
Optionally, when OTG cables are reversely inserted into mobile terminal, TXP1 pins and the Type C plugs of Type C sockets TXP2 pins connect, and the TXP2 pins of Type C sockets are connect with the TXP1 pins of Type C plugs, the DP1 pipes of Type C sockets Foot is connect with the DP2 pins of Type C plugs, and the DM1 pins of Type C sockets are connect with the DM2 pins of Type C plugs, Type The DP2 pins of C sockets are connect with the DP1 pins of Type C plugs, the DM1 of the DM2 pins and Type C plugs of Type C sockets Pin connects, and the SBU2 pins of Type C sockets are connect with the SBU1 pins of Type C plugs, the SBU1 pins of Type C sockets It is connect with the SBU2 pins of Type C plugs, the CC1 pins of Type C sockets are connect with the CC2 pins of Type C plugs, Type The CC2 pins of C sockets are connect with the CC1 pins of Type C plugs;The cathode of diode D2 is managed by the TXP2 of Type C sockets The TXP1 pins of foot and Type C plugs are grounded, diode D2 conducting, the USB-ID pins of power management integration module PMIC by High level becomes low level, and power management integration module PMIC notices CPU enters OTG patterns, meanwhile, power management integration module The Vbus pins of PMIC export 5V voltages and power to OTG equipment;The TXP2 pins of the Type C sockets of mobile terminal are connected to OTG The TXP1 pins of the Type C plugs of cable are simultaneously grounded by TXP1 pins, and diode D3 is connected at this time, the GPIO pin quilts of CPU Down for low level, the SWO pins of switch module Switch are also low level, DP1a pins and the switch of switch module Switch The DP1 pins of module Switch are connected to, and the DM1a pins of switch module Switch connect with the DM1 pins of switch module Switch Logical, the DP2a pins of switch module Switch are connected to the DP2 pins of switch module Switch, the DM2a of switch module Switch Pin is connected to the DM2 pins of switch module Switch;If mobile terminal detects the CC1 of power management integration module PMIC Pin and CC2 pins are all low level, then are judged as that earphone is inserted into OTG cables, into earphone identification process.
In addition, to achieve the above object, the present invention also proposes a kind of audio judgment method, including:
Obtain the level of the USB-ID pins of power management integration module PMIC;
Judge whether the level of the USB-ID pins is low level;
If so, indicating that OTG cables are inserted into;
Judge the power management integration module PMIC CC1 pins and CC2 pins whether all for low level;
If so, indicating that earphone is inserted into the OTG cables.
In addition, to achieve the above object, the present invention also proposes a kind of mobile terminal, including above-mentioned voicefrequency circuit.
A kind of voicefrequency circuit, audio judgment method and mobile terminal proposed by the present invention, the circuit include:OTG cable electricity Road and terminating circuit, the OTG cables circuit include:OTG USB female seats, earphone socket and Type C plugs, the terminal electricity Road includes:Type C sockets, the Type C plugs are matched with the Type C sockets, the OTG USB female seats and earphone Socket is connect by the Type C sockets with the terminating circuit, by being arranged earphone socket and OTG USB female seats same In one OTG cable, and by circuits improvement, realizes that ear-phone function is synchronous with OTG functions and carry out, the user experience is improved.
Description of the drawings
The hardware architecture diagram of Fig. 1 mobile terminals of each embodiment to realize the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is a kind of circuit diagram for voicefrequency circuit that the embodiment of the present invention one provides;
Fig. 4 is a kind of circuit diagram for terminating circuit that the embodiment of the present invention one provides;
Fig. 5 is a kind of inside connection diagram for terminating circuit that the embodiment of the present invention one provides;
Fig. 6 is the inside connection diagram for another terminating circuit that the embodiment of the present invention one provides;
Fig. 7 is the circuit diagram of voicefrequency circuit when the forward direction that the embodiment of the present invention one provides is inserted into;
Fig. 8 is the circuit diagram of voicefrequency circuit when being reversely inserted into that the embodiment of the present invention one provides;
Fig. 9 is a kind of flow chart of audio judgment method provided by Embodiment 2 of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, using for indicating that the suffix of such as " module ", " component " or " unit " of element is only The explanation for being conducive to the present invention, itself does not have a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, tablet Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable The shiftings such as media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware architecture diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Moving terminal 100 may include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Either combine certain components or different components arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by radio communication.Above-mentioned wireless communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to be omitted in the range for the essence for not changing invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, it is that radio frequency unit 101 or WiFi module 102 are received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 The relevant audio output of specific function executed with mobile terminal 100 can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loud speaker, buzzer etc..
A/V input units 104 are for receiving audio or video signal.A/V input units 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family is arranged and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect user on it or neighbouring touch operation (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc. It is one or more, do not limit herein specifically.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be to realize the function that outputs and inputs of mobile terminal as two independent components, but in certain embodiments, can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For the transmission data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can include mainly storing program area And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, below to the communications network system that is based on of mobile terminal of the present invention into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes communicating UE (User Equipment, the use of connection successively Family equipment) (the lands Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and some are preserved in relation to use such as service features, data rates The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., it does not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
Embodiment one
As shown in figure 3, in the present embodiment, a kind of voicefrequency circuit, including:OTG cables circuit and terminating circuit, it is described OTG cable circuits include:OTG USB female seats, earphone socket and Type C plugs, the terminating circuit include:Type C sockets, The Type C plugs are matched with the Type C sockets, and the OTG USB female seats and earphone socket pass through the Type C Socket is connect with the terminating circuit.
In the present embodiment, by being arranged earphone socket and OTG USB female seats in the same OTG cables, and pass through Circuits improvement realizes that ear-phone function is synchronous with OTG functions and carries out that the user experience is improved.
As shown in figure 3, in the present embodiment, the Vbus of the Vbus pins and Type C plugs of OTG Micro USB female seats Pin connects, and the DP pins of the OTG Micro USB female seats are connect with the DP1 pins of Type C plugs, the OTG Micro The DM pins of USB female seat are connect with the DM1 pins of Type C plugs, the GND pins and Type of the OTG Micro USB female seats The GND pins of C plugs connect.
In the present embodiment, the HPH-L pins of the earphone socket are connect with the DP2 pins of Type C plugs, the ear The HPH-R pins of machine transplanting of rice seat are connect with the DM2 pins of Type C plugs, MIC pins and the Type C plugs of the earphone socket SBU2 pins and the connection of SNU1 pins, the DET pins of the earphone socket and the CC1 pins and CC2 pins of Type C plugs Connection, the GND pins of the earphone socket are connect with the GND pins of Type C plugs.
In the present embodiment, the earphone socket is 3.5mm earphone sockets.
As shown in figure 4, in the present embodiment, the terminating circuit further includes:Power management integration module (Power Management IC) PMIC, diode D1, diode D2, diode D3, CPU and switch module Switch, the power supply pipe The USB-ID pins of reason integration module PMIC are connect with the anode of the anode of diode D1 and diode D2, the cathode of diode D1 It is connect with the TXP1 pins of Type C sockets, the cathode of diode D2 is managed with the TXP2 of the cathode of diode D3 and Type C sockets Foot connects, and the anode of diode D3 is connect with the SWO pins of the GPIO pins of CPU and switch module Switch, power management collection It is connect with the Vbus pins of Type C sockets at the Vbus pins of module PMIC, the HPH-L pipes of power management integration module PMIC Foot is connect with the DP1a pins of switch module Switch, the HPH-R pins and switch module of power management integration module PMIC The DM1a pins of Switch connect, the MIC pins of power management integration module PMIC and the SBU2 pins of Type C sockets and SBU1 pins connect, and the CC1 pins of power management integration module PMIC are connect with the CC1 pins of Type C sockets, power management The CC2 pins of integration module PMIC are connect with the CC2 pins of Type C sockets, the DP2 pins of power management integration module PMIC Connect with the DP2a pins of the DP2 pins of CPU and switch module Switch, the DM2 pins of power management integration module PMIC with The DM2a pins connection of the DM2 pins and switch module Switch of CPU, DP1 pins and the Type C of switch module Switch are inserted The DP1 pins connection of seat, the DM1 pins of switch module Switch are connect with the DM1 pins of Type C sockets, switch module The DP2 pins of Switch are connect with the DP2 pins of Type C sockets, DM2 pins and the Type C sockets of switch module Switch DM2 pins connection.
In the present embodiment, when mobile terminal starts, the USB-ID pins of power management integration module PMIC are defaulted as height The GPIO pins of level, CPU are defaulted as high level, at this point, Type C plugs are not inserted into Type C sockets, Type C sockets TXP1 pins and TXP2 pins are hanging, and the USB-ID pins of power management integration module PMIC remain high level, the GPIO of CPU Pin remains high level, and therefore, the SWO pins of switch module Switch are also high level, the DP1a of switch module Switch Pin is connected to the DP2 pins of switch module Switch, and the DM1a pins of switch module Switch are with switch module Switch's DM2 pins are connected to, and the DP2a pins of switch module Switch are connected to the DP1 pins of switch module Switch, switch module The DM2a pins of Switch are connected to the DM1 pins of switch module Switch, at this point, the connection diagram of terminating circuit such as Fig. 5 It is shown.
In the present embodiment, when the GPIO pins of CPU are low level, the SWO pins of switch module Switch are low electricity Flat, the DP1a pins of switch module Switch are connected to the DP1 pins of switch module Switch, the DM1a of switch module Switch Pin is connected to the DM1 pins of switch module Switch, and the DP2a pins of switch module Switch are with switch module Switch's DP2 pins are connected to, and the DM2a pins of switch module Switch are connected to the DM2 pins of switch module Switch, at this point, terminal is electric The connection diagram on road is as shown in Figure 6.
As shown in fig. 7, in the present embodiment, when OTG cable forward directions are inserted into mobile terminal, Type C sockets and Type C The pin of plug connects one to one, and the cathode of diode D1 passes through the TXP1 pins of Type C sockets and Type C plugs TXP1 pins are grounded, and diode D1 conductings, the USB-ID pins of power management integration module PMIC become low level from high level, Power management integration module PMIC notices CPU enters OTG patterns, meanwhile, the Vbus pins of power management integration module PMIC are defeated Go out 5V voltages to power to OTG equipment;Since the TXP2 pins of OTG cables are hanging, the GPIO pins of CPU remain high level, because This, the SWO pins of switch module Switch are also high level, DP1a pins and the switch module Switch of switch module Switch The connection of DP2 pins, the DM1a pins of switch module Switch are connected to the DM2 pins of switch module Switch, switch module The DP2a pins of Switch are connected to the DP1 pins of switch module Switch, DM2a pins and the switch of switch module Switch The DM1 pins of module Switch are connected to;If mobile terminal detects the CC1 pins and CC2 of power management integration module PMIC Pin is all low level, then is judged as that earphone is inserted into OTG cables, into earphone identification process.
In the present embodiment, since the TXP1 pins of Type C plugs are grounded, when OTG cable forward directions are inserted into mobile terminal When, diode D1 conductings so that the PMIC USB-ID pins of mobile terminal become low level, this means that mobile terminal enters OTG patterns, and at this point, by circuit diagram Fig. 7 it is found that the signal stream of earphone socket and PMIC and the signal stream of OTG female seats are irrelevant, It can know whether earphone is inserted by the level height of the CC1 and CC2 pins of PMIC, if being inserted into, codec modules in PMIC Into earphone identification process, corresponding audio event is entered after flow.Thereby realize ear-phone function and OTG functions Synchronous to carry out, the user experience is improved.
As shown in figure 8, in the present embodiment, when OTG cables are reversely inserted into mobile terminal, the TXP1 of Type C sockets is managed Foot is connect with the TXP2 pins of Type C plugs, and the TXP2 pins of Type C sockets are connect with the TXP1 pins of Type C plugs, The DP1 pins of Type C sockets are connect with the DP2 pins of Type C plugs, DM1 pins and the Type C plugs of Type C sockets The connection of DM2 pins, the DP2 pins of Type C sockets connect with the DP1 pins of Type C plugs, and the DM2 of Type C sockets is managed Foot is connect with the DM1 pins of Type C plugs, and the SBU2 pins of Type C sockets are connect with the SBU1 pins of Type C plugs, The SBU1 pins of Type C sockets are connect with the SBU2 pins of Type C plugs, and CC1 pins and the Type C of Type C sockets are inserted The CC2 pins connection of head, the CC2 pins of Type C sockets are connect with the CC1 pins of Type C plugs;The cathode of diode D2 is logical The TXP2 pins of Type C sockets and the TXP1 pins ground connection of Type C plugs, diode D2 conductings are crossed, power management integrates mould The USB-ID pins of block PMIC become low level from high level, and power management integration module PMIC notices CPU enters OTG patterns, Meanwhile the Vbus pins of power management integration module PMIC export 5V voltages and power to OTG equipment;Due to the Type of mobile terminal The TXP2 pins of C sockets are connected to the TXP1 pins of the Type C plugs of OTG cables and are grounded by TXP1 pins, therefore, this When diode D3 conducting, the GPIO pins of CPU are pulled low as low level, and therefore, the SWO pins of switch module Switch are also low Level, the DP1a pins of switch module Switch are connected to the DP1 pins of switch module Switch, switch module Switch's DM1a pins are connected to the DM1 pins of switch module Switch, the DP2a pins and switch module of switch module Switch The DP2 pins of Switch are connected to, and the DM2a pins of switch module Switch are connected to the DM2 pins of switch module Switch;Such as Fruit mobile terminal detects that the CC1 pins of power management integration module PMIC and CC2 pins are all low level, then is judged as earphone It is inserted into OTG cables, into earphone identification process.
In the present embodiment, since the TXP1 pins of Type C plugs are grounded, when OTG cables are reversely inserted into mobile terminal When, the TXP2 pins of Type C sockets are connect with the TXP1 pins of Type C plugs, diode D2 conductings so that mobile terminal PMIC USB-ID pins become low level, this means that mobile terminal enters OTG patterns, and at this point, by circuit diagram Fig. 8 it is found that The signal stream of earphone socket and PMIC and the signal stream of OTG female seats are irrelevant, and the level by CC1 the and CC2 pins of PMIC is high Low to know whether earphone is inserted into, if being inserted into, codec modules enter earphone identification process in PMIC, and flow terminates laggard Enter corresponding audio event.Ear-phone function progress synchronous with OTG functions is thereby realized, the user experience is improved.
In the present embodiment, OTG cables forward and reverse is inserted into mobile terminal and differs only in switch module Switch Internal connection type is different, and when OTG cable forward directions are inserted into mobile terminal, the cathode of D3 diodes is hanging, and D3 is not turned on, The GPIO pins of CPU are high level, and the connection type inside switch module Switch is at this time:The DP1a of switch module Switch Pin is connected to the DP2 pins of switch module Switch, and the DM1a pins of switch module Switch are with switch module Switch's DM2 pins are connected to, and the DP2a pins of switch module Switch are connected to the DP1 pins of switch module Switch, switch module The DM2a pins of Switch are connected to the DM1 pins of switch module Switch;When OTG cables are reversely inserted into mobile terminal, D3 The cathode of diode is grounded by the TXP1 of Type C plugs, and D3 conductings, the GPIO pins of CPU are opened at this time down for low level Closing the connection type inside module Switch is:The DP1a pins of switch module Switch are managed with the DP1 of switch module Switch Foot is connected to, and the DM1a pins of switch module Switch are connected to the DM1 pins of switch module Switch, switch module Switch's DP2a pins are connected to the DP2 pins of switch module Switch, the DM2a pins and switch module of switch module Switch The DM2 pins of Switch are connected to;Both connection types do not affect OTG functions and the normal use of ear-phone function, not shadow yet It is rung to be carried out at the same time.
Embodiment two
As shown in figure 9, in the present embodiment, a kind of audio judgment method, including:
The level of the USB-ID pins of S10, acquisition power management integration module PMIC;
S20, judge whether the level of the USB-ID pins is low level;If it is not, then S30, without OTG cables insert Enter;
If so, S40, indicate OTG cables be inserted into;
Whether S50, the CC1 pins for judging the power management integration module PMIC and CC2 pins are all for low level;
If so, S60, indicating that earphone is inserted into the OTG cables;Otherwise, S70, earphone are not inserted into.
In the present embodiment, by being arranged earphone socket and OTG USB female seats in the same OTG cables, and pass through Circuits improvement realizes that ear-phone function is synchronous with OTG functions and carries out that the user experience is improved.
As shown in figure 3, in the present embodiment, the Vbus of the Vbus pins and Type C plugs of OTG Micro USB female seats Pin connects, and the DP pins of the OTG Micro USB female seats are connect with the DP1 pins of Type C plugs, the OTG Micro The DM pins of USB female seat are connect with the DM1 pins of Type C plugs, the GND pins and Type of the OTG Micro USB female seats The GND pins of C plugs connect.
In the present embodiment, the HPH-L pins of the earphone socket are connect with the DP2 pins of Type C plugs, the ear The HPH-R pins of machine transplanting of rice seat are connect with the DM2 pins of Type C plugs, MIC pins and the Type C plugs of the earphone socket SBU2 pins and the connection of SNU1 pins, the DET pins of the earphone socket and the CC1 pins and CC2 pins of Type C plugs Connection, the GND pins of the earphone socket are connect with the GND pins of Type C plugs.
In the present embodiment, the earphone socket is 3.5mm earphone sockets.
As shown in figure 4, in the present embodiment, the terminating circuit further includes:Power management integration module (Power Management IC) PMIC, diode D1, diode D2, diode D3, CPU and switch module Switch, the power supply pipe The USB-ID pins of reason integration module PMIC are connect with the anode of the anode of diode D1 and diode D2, the cathode of diode D1 It is connect with the TXP1 pins of Type C sockets, the cathode of diode D2 is managed with the TXP2 of the cathode of diode D3 and Type C sockets Foot connects, and the anode of diode D3 is connect with the SWO pins of the GPIO pins of CPU and switch module Switch, power management collection It is connect with the Vbus pins of Type C sockets at the Vbus pins of module PMIC, the HPH-L pipes of power management integration module PMIC Foot is connect with the DP1a pins of switch module Switch, the HPH-R pins and switch module of power management integration module PMIC The DM1a pins of Switch connect, the MIC pins of power management integration module PMIC and the SBU2 pins of Type C sockets and SBU1 pins connect, and the CC1 pins of power management integration module PMIC are connect with the CC1 pins of Type C sockets, power management The CC2 pins of integration module PMIC are connect with the CC2 pins of Type C sockets, the DP2 pins of power management integration module PMIC Connect with the DP2a pins of the DP2 pins of CPU and switch module Switch, the DM2 pins of power management integration module PMIC with The DM2a pins connection of the DM2 pins and switch module Switch of CPU, DP1 pins and the Type C of switch module Switch are inserted The DP1 pins connection of seat, the DM1 pins of switch module Switch are connect with the DM1 pins of Type C sockets, switch module The DP2 pins of Switch are connect with the DP2 pins of Type C sockets, DM2 pins and the Type C sockets of switch module Switch DM2 pins connection.
In the present embodiment, when mobile terminal starts, the USB-ID pins of power management integration module PMIC are defaulted as height The GPIO pins of level, CPU are defaulted as high level, at this point, Type C plugs are not inserted into Type C sockets, Type C sockets TXP1 pins and TXP2 pins are hanging, and the USB-ID pins of power management integration module PMIC remain high level, the GPIO of CPU Pin remains high level, and therefore, the SWO pins of switch module Switch are also high level, the DP1a of switch module Switch Pin is connected to the DP2 pins of switch module Switch, and the DM1a pins of switch module Switch are with switch module Switch's DM2 pins are connected to, and the DP2a pins of switch module Switch are connected to the DP1 pins of switch module Switch, switch module The DM2a pins of Switch are connected to the DM1 pins of switch module Switch, at this point, the connection diagram of terminating circuit such as Fig. 5 It is shown.
In the present embodiment, when the GPIO pins of CPU are low level, the SWO pins of switch module Switch are low electricity Flat, the DP1a pins of switch module Switch are connected to the DP1 pins of switch module Switch, the DM1a of switch module Switch Pin is connected to the DM1 pins of switch module Switch, and the DP2a pins of switch module Switch are with switch module Switch's DP2 pins are connected to, and the DM2a pins of switch module Switch are connected to the DM2 pins of switch module Switch, at this point, terminal is electric The connection diagram on road is as shown in Figure 6.
As shown in fig. 7, in the present embodiment, when OTG cable forward directions are inserted into mobile terminal, Type C sockets and Type C The pin of plug connects one to one, and the cathode of diode D1 passes through the TXP1 pins of Type C sockets and Type C plugs TXP1 pins are grounded, and diode D1 conductings, the USB-ID pins of power management integration module PMIC become low level from high level, Power management integration module PMIC notices CPU enters OTG patterns, meanwhile, the Vbus pins of power management integration module PMIC are defeated Go out 5V voltages to power to OTG equipment;Since the TXP2 pins of OTG cables are hanging, the GPIO pins of CPU remain high level, because This, the SWO pins of switch module Switch are also high level, DP1a pins and the switch module Switch of switch module Switch The connection of DP2 pins, the DM1a pins of switch module Switch are connected to the DM2 pins of switch module Switch, switch module The DP2a pins of Switch are connected to the DP1 pins of switch module Switch, DM2a pins and the switch of switch module Switch The DM1 pins of module Switch are connected to;If mobile terminal detects the CC1 pins and CC2 of power management integration module PMIC Pin is all low level, then is judged as that earphone is inserted into OTG cables, into earphone identification process.
In the present embodiment, since the TXP1 pins of Type C plugs are grounded, when OTG cable forward directions are inserted into mobile terminal When, diode D1 conductings so that the PMIC USB-ID pins of mobile terminal become low level, this means that mobile terminal enters OTG patterns, and at this point, by circuit diagram Fig. 7 it is found that the signal stream of earphone socket and PMIC and the signal stream of OTG female seats are irrelevant, It can know whether earphone is inserted by the level height of the CC1 and CC2 pins of PMIC, if being inserted into, codec modules in PMIC Into earphone identification process, corresponding audio event is entered after flow.Thereby realize ear-phone function and OTG functions Synchronous to carry out, the user experience is improved.
As shown in figure 8, in the present embodiment, when OTG cables are reversely inserted into mobile terminal, the TXP1 of Type C sockets is managed Foot is connect with the TXP2 pins of Type C plugs, and the TXP2 pins of Type C sockets are connect with the TXP1 pins of Type C plugs, The DP1 pins of Type C sockets are connect with the DP2 pins of Type C plugs, DM1 pins and the Type C plugs of Type C sockets The connection of DM2 pins, the DP2 pins of Type C sockets connect with the DP1 pins of Type C plugs, and the DM2 of Type C sockets is managed Foot is connect with the DM1 pins of Type C plugs, and the SBU2 pins of Type C sockets are connect with the SBU1 pins of Type C plugs, The SBU1 pins of Type C sockets are connect with the SBU2 pins of Type C plugs, and CC1 pins and the Type C of Type C sockets are inserted The CC2 pins connection of head, the CC2 pins of Type C sockets are connect with the CC1 pins of Type C plugs;The cathode of diode D2 is logical The TXP2 pins of Type C sockets and the TXP1 pins ground connection of Type C plugs, diode D2 conductings are crossed, power management integrates mould The USB-ID pins of block PMIC become low level from high level, and power management integration module PMIC notices CPU enters OTG patterns, Meanwhile the Vbus pins of power management integration module PMIC export 5V voltages and power to OTG equipment;Due to the Type of mobile terminal The TXP2 pins of C sockets are connected to the TXP1 pins of the Type C plugs of OTG cables and are grounded by TXP1 pins, therefore, this When diode D3 conducting, the GPIO pins of CPU are pulled low as low level, and therefore, the SWO pins of switch module Switch are also low Level, the DP1a pins of switch module Switch are connected to the DP1 pins of switch module Switch, switch module Switch's DM1a pins are connected to the DM1 pins of switch module Switch, the DP2a pins and switch module of switch module Switch The DP2 pins of Switch are connected to, and the DM2a pins of switch module Switch are connected to the DM2 pins of switch module Switch;Such as Fruit mobile terminal detects that the CC1 pins of power management integration module PMIC and CC2 pins are all low level, then is judged as earphone It is inserted into OTG cables, into earphone identification process.
In the present embodiment, since the TXP1 pins of Type C plugs are grounded, when OTG cables are reversely inserted into mobile terminal When, the TXP2 pins of Type C sockets are connect with the TXP1 pins of Type C plugs, diode D2 conductings so that mobile terminal PMIC USB-ID pins become low level, this means that mobile terminal enters OTG patterns, and at this point, by circuit diagram Fig. 8 it is found that The signal stream of earphone socket and PMIC and the signal stream of OTG female seats are irrelevant, and the level by CC1 the and CC2 pins of PMIC is high Low to know whether earphone is inserted into, if being inserted into, codec modules enter earphone identification process in PMIC, and flow terminates laggard Enter corresponding audio event.Ear-phone function progress synchronous with OTG functions is thereby realized, the user experience is improved.
In the present embodiment, OTG cables forward and reverse is inserted into mobile terminal and differs only in switch module Switch Internal connection type is different, and when OTG cable forward directions are inserted into mobile terminal, the cathode of D3 diodes is hanging, and D3 is not turned on, The GPIO pins of CPU are high level, and the connection type inside switch module Switch is at this time:The DP1a of switch module Switch Pin is connected to the DP2 pins of switch module Switch, and the DM1a pins of switch module Switch are with switch module Switch's DM2 pins are connected to, and the DP2a pins of switch module Switch are connected to the DP1 pins of switch module Switch, switch module The DM2a pins of Switch are connected to the DM1 pins of switch module Switch;When OTG cables are reversely inserted into mobile terminal, D3 The cathode of diode is grounded by the TXP1 of Type C plugs, and D3 conductings, the GPIO pins of CPU are opened at this time down for low level Closing the connection type inside module Switch is:The DP1a pins of switch module Switch are managed with the DP1 of switch module Switch Foot is connected to, and the DM1a pins of switch module Switch are connected to the DM1 pins of switch module Switch, switch module Switch's DP2a pins are connected to the DP2 pins of switch module Switch, the DM2a pins and switch module of switch module Switch The DM2 pins of Switch are connected to;Both connection types do not affect OTG functions and the normal use of ear-phone function, not shadow yet It is rung to be carried out at the same time.
Embodiment three
In the present embodiment, a kind of mobile terminal, in addition to further including described in embodiment one including each component described in Fig. 1 Voicefrequency circuit.
In the present embodiment, by being arranged earphone socket and OTG USB female seats in the same OTG cables, and pass through Circuits improvement realizes that ear-phone function is synchronous with OTG functions and carries out that the user experience is improved.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of voicefrequency circuit, which is characterized in that including:OTG cables circuit and terminating circuit, the OTG cables circuit include: OTG USB female seats, earphone socket and Type C plugs, the terminating circuit include:Type C sockets, the Type C plugs with The Type C sockets match, and the OTG USB female seats and earphone socket pass through the Type C sockets and terminal electricity Road connects.
2. a kind of voicefrequency circuit according to claim 1, which is characterized in that the Vbus pins of the OTG USB female seats with The Vbus pins of Type C plugs connect, and the DP pins of the OTG USB female seats are connect with the DP1 pins of Type C plugs, institute The DM pins for stating OTG USB female seats are connect with the DM1 pins of Type C plugs, the GND pins and Type of the OTG USB female seats The GND pins of C plugs connect.
3. a kind of voicefrequency circuit according to claim 2, which is characterized in that the HPH-L pins of the earphone socket with The DP2 pins of Type C plugs connect, and the HPH-R pins of the earphone socket are connect with the DM2 pins of Type C plugs, described The MIC pins of earphone socket are connect with the SBU2 pins of Type C plugs and SNU1 pins, the DET pins of the earphone socket with The CC1 pins and CC2 pins of Type C plugs connect, and the GND pins of the earphone socket connect with the GND pins of Type C plugs It connects.
4. a kind of voicefrequency circuit according to claim 3, which is characterized in that the terminating circuit further includes:Power management Integration module PMIC, diode D1, diode D2, diode D3, CPU and switch module Switch, the power management are integrated The USB-ID pins of module PMIC are connect with the anode of the anode of diode D1 and diode D2, the cathode and Type of diode D1 The TXP1 pins of C sockets connect, and the cathode of diode D2 is connect with the TXP2 pins of the cathode of diode D3 and Type C sockets, The anode of diode D3 is connect with the SWO pins of the GPIO pins of CPU and switch module Switch, power management integration module The Vbus pins of PMIC are connect with the Vbus pins of Type C sockets, the HPH-L pins of power management integration module PMIC with open The DP1a pins connection of module Switch is closed, the HPH-R pins of power management integration module PMIC are with switch module Switch's DM1a pins connect, and the MIC pins of power management integration module PMIC connect with the SBU2 pins of Type C sockets and SBU1 pins It connects, the CC1 pins of power management integration module PMIC are connect with the CC1 pins of Type C sockets, power management integration module The CC2 pins of PMIC are connect with the CC2 pins of Type C sockets, the DP2 pins of power management integration module PMIC and CPU's The DP2a pins of DP2 pins and switch module Switch connect, the DM2 of the DM2 pins and CPU of power management integration module PMIC The DM2a pins of pin and switch module Switch connect, and the DP1 pins of switch module Switch are managed with the DP1 of Type C sockets Foot connects, and the DM1 pins of switch module Switch are connect with the DM1 pins of Type C sockets, the DP2 pipes of switch module Switch Foot is connect with the DP2 pins of Type C sockets, and the DM2 pins of switch module Switch are connect with the DM2 pins of Type C sockets.
5. a kind of voicefrequency circuit according to claim 4, which is characterized in that when mobile terminal starts, power management is integrated The USB-ID pins of module PMIC are defaulted as high level, and the GPIO pins of CPU are defaulted as high level, at this point, Type C plugs are not Type C sockets are inserted into, the TXP1 pins and TXP2 pins of Type C sockets are hanging, the USB- of power management integration module PMIC ID pins remain high level, and the GPIO pins of CPU remain high level, and the SWO pins of switch module Switch are also high electricity Flat, the DP1a pins of switch module Switch are connected to the DP2 pins of switch module Switch, the DM1a of switch module Switch Pin is connected to the DM2 pins of switch module Switch, and the DP2a pins of switch module Switch are with switch module Switch's DP1 pins are connected to, and the DM2a pins of switch module Switch are connected to the DM1 pins of switch module Switch.
6. a kind of voicefrequency circuit according to claim 4, which is characterized in that when the GPIO pins of CPU are low level, open The SWO pins for closing module Switch are low level, and the DP1a pins of switch module Switch are managed with the DP1 of switch module Switch Foot is connected to, and the DM1a pins of switch module Switch are connected to the DM1 pins of switch module Switch, switch module Switch's DP2a pins are connected to the DP2 pins of switch module Switch, the DM2a pins and switch module of switch module Switch The DM2 pins of Switch are connected to.
7. a kind of voicefrequency circuit according to claim 5 or 6, which is characterized in that when OTG cable forward directions are inserted into mobile terminal When, Type C sockets and the pin of Type C plugs connect one to one, and the cathode of diode D1 passes through Type C sockets The TXP1 pins of TXP1 pins and Type C plugs are grounded, diode D1 conductings, the USB-ID of power management integration module PMIC Pin becomes low level from high level, and power management integration module PMIC notices CPU enters OTG patterns, meanwhile, power management collection 5V voltages are exported at the Vbus pins of module PMIC to power to OTG equipment;The TXP2 pins of OTG cables are hanging, the GPIO pipes of CPU Foot remains high level, and the SWO pins of switch module Switch are also high level, the DP1a pins of switch module Switch with open The DP2 pins connection of module Switch is closed, the DM1a pins of switch module Switch connect with the DM2 pins of switch module Switch Logical, the DP2a pins of switch module Switch are connected to the DP1 pins of switch module Switch, the DM2a of switch module Switch Pin is connected to the DM1 pins of switch module Switch;If mobile terminal detects the CC1 of power management integration module PMIC Pin and CC2 pins are all low level, then are judged as that earphone is inserted into OTG cables, into earphone identification process.
8. a kind of voicefrequency circuit according to claim 5 or 6, which is characterized in that when OTG cables are reversely inserted into mobile terminal When, the TXP1 pins of Type C sockets are connect with the TXP2 pins of Type C plugs, the TXP2 pins and Type of Type C sockets The TXP1 pins of C plugs connect, and the DP1 pins of Type C sockets are connect with the DP2 pins of Type C plugs, Type C sockets DM1 pins are connect with the DM2 pins of Type C plugs, and the DP2 pins of Type C sockets connect with the DP1 pins of Type C plugs It connects, the DM2 pins of Type C sockets are connect with the DM1 pins of Type C plugs, SBU2 pins and the Type C of Type C sockets The SBU1 pins of plug connect, and the SBU1 pins of Type C sockets are connect with the SBU2 pins of Type C plugs, Type C sockets CC1 pins connect with the CC2 pins of TypeC plugs, the CC2 pins of Type C sockets and the CC1 pins of Type C plugs connect It connects;The cathode of diode D2 is grounded by the TXP2 pins of Type C sockets and the TXP1 pins of Type C plugs, diode D2 Conducting, the USB-ID pins of power management integration module PMIC become low level, power management integration module PMIC from high level Notice CPU enters OTG patterns, meanwhile, the Vbus pins of power management integration module PMIC export 5V voltages and are supplied to OTG equipment Electricity;The TXP2 pins of the Type C sockets of mobile terminal are connected to the TXP1 pins of the Type C plugs of OTG cables and pass through TXP1 pins are grounded, and diode D3 is connected at this time, and the GPIO pins of CPU are pulled low as low level, the SWO of switch module Switch Pin is also low level, and the DP1a pins of switch module Switch are connected to the DP1 pins of switch module Switch, switch module The DM1a pins of Switch are connected to the DM1 pins of switch module Switch, DP2a pins and the switch of switch module Switch The DP2 pins of module Switch are connected to, and the DM2a pins of switch module Switch connect with the DM2 pins of switch module Switch It is logical;If mobile terminal detects that the CC1 pins of power management integration module PMIC and CC2 pins are all low level, judge It is inserted into OTG cables for earphone, into earphone identification process.
9. a kind of audio judgment method is suitable for claim 1-8 any one of them voicefrequency circuits, which is characterized in that including:
Obtain the level of the USB-ID pins of power management integration module PMIC;
Judge whether the level of the USB-ID pins is low level;
If so, indicating that OTG cables are inserted into;
Judge the power management integration module PMIC CC1 pins and CC2 pins whether all for low level;
If so, indicating that earphone is inserted into the OTG cables.
10. a kind of mobile terminal, which is characterized in that including claim 1-8 any one of them voicefrequency circuits.
CN201810388265.1A 2018-04-26 2018-04-26 Audio circuit, audio judgment method and mobile terminal Active CN108430005B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810388265.1A CN108430005B (en) 2018-04-26 2018-04-26 Audio circuit, audio judgment method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810388265.1A CN108430005B (en) 2018-04-26 2018-04-26 Audio circuit, audio judgment method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108430005A true CN108430005A (en) 2018-08-21
CN108430005B CN108430005B (en) 2021-04-09

Family

ID=63161929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810388265.1A Active CN108430005B (en) 2018-04-26 2018-04-26 Audio circuit, audio judgment method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108430005B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109298266A (en) * 2018-10-29 2019-02-01 Oppo广东移动通信有限公司 Test macro, test method, test device and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080133227A1 (en) * 2006-11-30 2008-06-05 Hongwei Kong Method and system for handling the processing of bluetooth data during multi-path multi-rate audio processing
CN201188444Y (en) * 2008-04-24 2009-01-28 中兴通讯股份有限公司 Data line capable of implementing electrification and earphone function
CN105120404A (en) * 2015-07-31 2015-12-02 华为技术有限公司 Audio equipment, terminal equipment and electronic equipment
CN105703185A (en) * 2016-02-18 2016-06-22 北京小米移动软件有限公司 Signal transmission method, signal transmission device and adapter connecting head
CN105790019A (en) * 2016-04-26 2016-07-20 东莞市江涵电子有限公司 OTG multipurpose fast charging wire
WO2017173663A1 (en) * 2016-04-08 2017-10-12 华为技术有限公司 Electronic device having usb type-c interface
CN107546808A (en) * 2017-09-27 2018-01-05 努比亚技术有限公司 One kind charging identification circuit, recognition methods and terminal device
CN107643994A (en) * 2016-07-20 2018-01-30 中兴通讯股份有限公司 Terminal, terminal peripheral hardware, signal sending and receiving method, data transmission system
CN107885688A (en) * 2016-09-30 2018-04-06 中兴通讯股份有限公司 A kind of signal switching method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080133227A1 (en) * 2006-11-30 2008-06-05 Hongwei Kong Method and system for handling the processing of bluetooth data during multi-path multi-rate audio processing
CN201188444Y (en) * 2008-04-24 2009-01-28 中兴通讯股份有限公司 Data line capable of implementing electrification and earphone function
CN105120404A (en) * 2015-07-31 2015-12-02 华为技术有限公司 Audio equipment, terminal equipment and electronic equipment
CN105703185A (en) * 2016-02-18 2016-06-22 北京小米移动软件有限公司 Signal transmission method, signal transmission device and adapter connecting head
WO2017173663A1 (en) * 2016-04-08 2017-10-12 华为技术有限公司 Electronic device having usb type-c interface
CN105790019A (en) * 2016-04-26 2016-07-20 东莞市江涵电子有限公司 OTG multipurpose fast charging wire
CN107643994A (en) * 2016-07-20 2018-01-30 中兴通讯股份有限公司 Terminal, terminal peripheral hardware, signal sending and receiving method, data transmission system
CN107885688A (en) * 2016-09-30 2018-04-06 中兴通讯股份有限公司 A kind of signal switching method and device
CN107546808A (en) * 2017-09-27 2018-01-05 努比亚技术有限公司 One kind charging identification circuit, recognition methods and terminal device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
晏芳: "基于USB OTG技术的便携式MP3的研究与设计", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109298266A (en) * 2018-10-29 2019-02-01 Oppo广东移动通信有限公司 Test macro, test method, test device and storage medium

Also Published As

Publication number Publication date
CN108430005B (en) 2021-04-09

Similar Documents

Publication Publication Date Title
CN108391190B (en) A kind of noise-reduction method, earphone and computer readable storage medium
CN109901980A (en) Serial ports log grabs circuit, method, terminal and computer readable storage medium
CN108566484A (en) Message treatment method, terminal device and computer readable storage medium
CN108874708A (en) OTG equipment, terminal charging method, mobile terminal and computer readable storage medium
CN108966085A (en) adaptive audio circuit and mobile terminal
CN108833665A (en) Communication means, wearable device and computer readable storage medium
CN108418948A (en) A kind of based reminding method, mobile terminal and computer storage media
CN109729475A (en) Charging bluetooth earphone method, circuit, terminal and computer readable storage medium
CN108322609A (en) A kind of notification information regulation and control method, equipment and computer readable storage medium
CN109726156A (en) OTG equipment, charge control method, terminal and storage medium
CN108563388A (en) Screen operating method, mobile terminal and computer readable storage medium
CN108924352A (en) Sound quality method for improving, terminal and computer readable storage medium
CN108540697A (en) It is double before and after one kind to take the photograph circuit structure and its mobile terminal
CN108009116A (en) MicroUSB interface circuits and its mobile terminal
CN108429957A (en) TypeC earphones switching cable and wired earphone TypeC connection systems
CN107396226B (en) A kind of earphone compatible circuit, mobile terminal and electronic system
CN110174934A (en) A kind of power button device and mobile terminal
CN109462829A (en) A kind of call transfer method, equipment and computer readable storage medium
CN108430005A (en) A kind of voicefrequency circuit, audio judgment method and mobile terminal
CN108650404A (en) Port start-up circuit, device and mobile terminal
CN108599300A (en) A kind of intelligence fills device, method and the electronic equipment of power-off
CN107179893A (en) A kind of audio output control method, equipment and computer-readable recording medium
CN108574324A (en) A kind of method for managing power supply, wearable device and storage medium
CN109982230A (en) Enhance method, system, mobile terminal and the storage medium of MIC pickup effect
CN109301911A (en) Charging method, mobile terminal and computer readable storage medium

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