CN108271093A - The processing method and mobile terminal of a kind of access device - Google Patents

The processing method and mobile terminal of a kind of access device Download PDF

Info

Publication number
CN108271093A
CN108271093A CN201611264040.2A CN201611264040A CN108271093A CN 108271093 A CN108271093 A CN 108271093A CN 201611264040 A CN201611264040 A CN 201611264040A CN 108271093 A CN108271093 A CN 108271093A
Authority
CN
China
Prior art keywords
mobile terminal
access device
pins
access
type
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
CN201611264040.2A
Other languages
Chinese (zh)
Other versions
CN108271093B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201611264040.2A priority Critical patent/CN108271093B/en
Publication of CN108271093A publication Critical patent/CN108271093A/en
Application granted granted Critical
Publication of CN108271093B publication Critical patent/CN108271093B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R29/00Coupling parts for selective co-operation with a counterpart in different ways to establish different circuits, e.g. for voltage selection, for series-parallel selection, programmable connectors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]
    • 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

An embodiment of the present invention provides the processing method and mobile terminal of a kind of access device, the mobile terminal is connect by Type C interface with adapter, and the mobile terminal further includes first switch and second switch, the method includes:Determine the access device by adapter access mobile terminal;When access device is earphone, the TX/RX pins of Type C interface are connected by first switch, with earphone into row data communication;When access device is storage device, the D+/D pins of Type C interface are connected by second switch, with storage device into row data communication;When access device is charger, the CC1/CC2 pins of Type C interface are connected by second switch, Vbus pins charge for mobile terminal, using the embodiment of the present invention, it realizes mobile terminal and connects multiple equipment simultaneously using a Type C interface, meet the ultrathin of mobile terminal and integrated.

Description

The processing method and mobile terminal of a kind of access device
Technical field
The present invention relates to field of communication technology, more particularly, to the processing method and mobile terminal of a kind of access device.
Background technology
With the development of electronic technology and the communication technology, mobile terminal can listen to music, takes pictures, store data, have OTG (On-The-Go) mobile terminal of function can also be with storage device into row data communication.
Corresponding to specific function, setting is needed in mobile terminal for accessing connecing for the peripheral hardware for needing to carry out data interaction Mouthful, such as accessing interface, the USB (Universal for accessing storage device that earphone peripheral hardware carries out audio transmission Serial Bus, universal serial bus) interface, charging interface etc. for charger access.Therefore, mobile terminal has multiple Interface, to meet the access requirement of different peripheral hardwares.Type-C interfaces can carry out audio transmission, storage data transmission and fill Electricity can cancel dedicated 3.5mm audio interface and charging interface, and Type-C interface volume smallers, be connect using Type-C Mouth can meet mobile terminal towards ultrathin and integrated development trend.
But in the prior art, the mobile terminal with OTG can not be realized while be listened using a Type-C interface Music, transmission data and charging and multiple equipment access can not be handled, so can not meet mobile terminal towards ultrathin and Integrated development trend.
Invention content
The embodiment of the present invention proposes the processing method and mobile terminal of a kind of access device, to solve mobile terminal use One Type-C interface can not be realized while be listened to music, transmit data and charging and can not handle multiple equipment access, and then The problem of mobile terminal is towards ultrathin and integrated development trend can not be met.
In a first aspect, an embodiment of the present invention provides a kind of processing method of access device, connect applied to Type-C The mobile terminal of mouth, the mobile terminal are connect by the Type-C interfaces with adapter, and the mobile terminal also wraps First switch and second switch are included, the method includes:
Determine the access device by adapter access mobile terminal;
When it is earphone to determine the access device, the TX/RX of the Type-C interfaces is connected by the first switch Pin, with the earphone into row data communication;
When it is storage device to determine the access device, the D of the Type-C interfaces is connected by the second switch +/D- pins, with the storage device into row data communication;
When it is charger to determine the access device, the CC1/ of the Type-C interfaces is connected by the second switch CC2 pins, Vbus pins charge for the mobile terminal.
Second aspect provides a kind of mobile terminal, and including Type-C interfaces, the mobile terminal passes through the Type-C Interface is connect with adapter, and the mobile terminal further includes:
Access device determining module, for determining to access the access device of mobile terminal by the adapter;
First data communication module, for when it is earphone to determine the access device, being connected by the first switch The TX/RX pins of the Type-C interfaces, with the earphone into row data communication;
Second data communication module, for when it is storage device to determine the access device, passing through the second switch The D+/D- pins of the Type-C interfaces are connected, with the storage device into row data communication;
Charging module, for when determine the access device be charger when, by the second switch connection described in CC1/CC2 pins, the Vbus pins of Type-C interfaces charge for the mobile terminal.
In embodiments of the present invention, mobile terminal is connect by Type-C interfaces with adapter, determines to pass through switching Adapter accesses the access device of mobile terminal;When it is earphone to determine access device, Type-C is connected by first switch and is connect Mouthful TX/RX pins, with earphone into row data communication;When it is storage device to determine access device, connected by second switch The D+/D- pins of Type-C interfaces, with storage device into row data communication;When it is charger to determine access device, by the CC1/CC2 pins, the Vbus pins of two switch connection Type-C interfaces charge for mobile terminal, can using the embodiment of the present invention To realize that earphone, storage device and charger access mobile terminal simultaneously, using the pin and earphone of corresponding Type-C interfaces, Storage device charges into row data communication and for mobile terminal, and solving mobile terminal can not be real using a Type-C interface Now simultaneously listen to music, transmit data and charging and can not handle multiple equipment access, and then can not meet mobile terminal towards The problem of ultrathin and integrated development trend, realizes mobile terminal and connects multiple set simultaneously using a Type-C interface It is standby, meet the ultrathin of mobile terminal and integrated.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the present invention Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of step flow chart of the processing method of access device of the embodiment of the present invention one;
Fig. 2 is a kind of step flow chart of the processing method of access device of the embodiment of the present invention two;
Fig. 3 is the mobile terminal of the embodiment of the present invention and earphone, storage device, the connection diagram of charger;
Fig. 4 is a kind of one of structure diagram of mobile terminal of the embodiment of the present invention three;
Fig. 4 a are the two of the structure diagram of a kind of mobile terminal of the embodiment of the present invention three;
Fig. 4 b are the three of the structure diagram of a kind of mobile terminal of the embodiment of the present invention three;
Fig. 4 c are the four of the structure diagram of a kind of mobile terminal of the embodiment of the present invention three;
Fig. 5 is a kind of structure diagram of mobile terminal of the embodiment of the present invention four;
Fig. 6 is a kind of structure diagram of mobile terminal of the embodiment of the present invention five.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.
Embodiment one
Fig. 1 is a kind of step flow chart of the processing method of access device of the embodiment of the present invention one.
With reference to shown in Fig. 1, the processing method of a kind of access device of the embodiment of the present invention, applied to Type-C interfaces Mobile terminal, mobile terminal connect by Type-C interfaces with adapter, and this method includes:
Step 101, the access device by adapter access mobile terminal is determined.
In the embodiment of the present invention, the Type-C interfaces of mobile terminal are connected with adapter, and adapter can be set It is equipped with earphone sub-interface, storage device sub-interface and charger sub-interface, earphone sub-interface, storage device sub-interface and charger Either CC2 pins connect the CC pins of sub-interface therefore mobile terminal can be by CC1 or CC2 with the CC1 of Type-C interfaces Pin is detected access, distinguishes positive and negative, distinguishes principal and subordinate, is configured other patterns, in the embodiment of the present invention, can pass through CC1/ CC2 pins determine to access the access device of mobile terminal by the sub-interface of adapter, e.g. earphone, storage device, One or more in charger.
Step 102, when it is earphone to determine the access device, the Type-C interfaces are connected by the first switch TX/RX pins, with the earphone into row data communication.
Type-C interfaces have multigroup pin, including TX, RX, CC1, CC2, D+, D-, SBU1, SBU2 etc., wherein CC1 and CC2 pins are two key pins, available for realizing detection access, distinguish positive and negative, distinguish principal and subordinate, other patterns are configured.
In the embodiment of the present invention, adapter can include earphone sub-interface, wherein, the signal wire of earphone sub-interface and The TX/RX pins of adapter are connected, mobile when earphone accesses mobile terminal by the earphone sub-interface of adapter Audio data is transmitted to earphone by the I2S audio-frequency modules of the audio output module of terminal by the TX/RX pins of Type-C interfaces, Realize the data communication of mobile terminal and earphone.
In practical applications, in order to adapter positive and negative can be caused not influence sound when can access mobile terminal The output of frequency evidence can set the TX/RX pins of first switch adjustment Type-C interfaces and the audio output mould of mobile terminal The connection of the output interface of the I2S audio-frequency modules of block.
Step 103, when it is storage device to determine the access device, the Type-C is connected by the second switch The D+/D- pins of interface, with the storage device into row data communication.
In the embodiment of the present invention, adapter can include storage device sub-interface, wherein, storage device sub-interface Signal pins can be connected with the D+/D- pins of adapter, when storage device that storage device passes through adapter When interface accesses mobile terminal, communication data is transmitted to by the USB module of mobile terminal by the D+/D- pins of Type-C interfaces Storage device realizes the data communication of mobile terminal and storage device, in practical applications, can set second switch, the The D+/D- pins of Type-C interfaces, CC1/CC2 pins can be connected to data output end or the company of USB module by two switches It is connected to the power supervisor of mobile terminal.
Step 104, when it is charger to determine the access device, the Type-C is connected by the second switch and is connect CC1/CC2 pins, the Vbus pins of mouth are that the mobile terminal charges.
In the embodiment of the present invention, adapter can include charger sub-interface, wherein, charger sub-interface draws Foot, such as Vbus, CC pin can be connected with Vbus, CC1 or CC2 pin of adapter respectively, when charger is by turning When connecing the charger sub-interface access mobile terminal of adapter, the output current of Vbus, CC pin of charger is passed through into movement CC1/CC2 pins, the Vbus pins of the Type-C interfaces of terminal are switched to the charging input end of charging manager, logical to realize Cross the CC1/CC2 pins of Type-C interfaces, Vbus pins charge to mobile terminal.
As described in step 103, the CC1/CC2 pins of Type-C interfaces, Vbus pins can be connected by second switch To the power supervisor of mobile terminal, it can realize and be charged by CC1/CC2 pins, Vbus pins for mobile terminal.
It should be noted that CC1/CC2 pins only do not need to detection input or complete related protocol communication after, It has just used and has charged to mobile terminal.
In embodiments of the present invention, mobile terminal is connect by Type-C interfaces with adapter, determines to pass through switching Adapter accesses the access device of mobile terminal;When it is earphone to determine access device, Type-C is connected by first switch and is connect Mouthful TX/RX pins, with earphone into row data communication;When it is storage device to determine access device, connected by second switch The D+/D- pins of Type-C interfaces, with storage device into row data communication;When it is charger to determine access device, by the CC1/CC2 pins, the Vbus pins of two switch connection Type-C interfaces charge for mobile terminal, can using the embodiment of the present invention To realize that earphone, storage device and charger access mobile terminal simultaneously, using the pin and earphone of corresponding Type-C interfaces, Storage device charges into row data communication and for mobile terminal, and solving mobile terminal can not be real using a Type-C interface Now simultaneously listen to music, transmit data and charging and can not handle multiple equipment access, and then can not meet mobile terminal towards The problem of ultrathin and integrated development trend, realizes mobile terminal and connects multiple set simultaneously using a Type-C interface It is standby, meet the ultrathin of mobile terminal and integrated.
Embodiment two
Fig. 2 is a kind of step flow chart of the processing method of access device of the embodiment of the present invention two.
With reference to shown in Fig. 2, the processing method of a kind of access device of the embodiment of the present invention, applied to Type-C interfaces Mobile terminal, mobile terminal connect by Type-C interfaces with adapter, and this method includes:
Step 201, the voltage value of the CC1 CC2 pins of the mobile terminal Type-C interfaces is detected.
In the embodiment of the present invention, adapter can be set, which can be with mobile terminal Type-C interfaces are connected, and the other end is provided with three sub-interfaces, thus can detect the Type-C interfaces of mobile terminal CC1 or The voltage value of person's CC2 pins, to determine the access device of the sub-interface of adapter.
Step 202, the access device of the access mobile terminal is determined according to the voltage value.
In the connection of Type-C, detect whether that equipment accesses Type-C interfaces by CC pins, passed through CC pins Voltage value difference is to determine the type of access device, and in embodiments of the present invention, adapter can be there are three sub-interface, can To be earphone sub-interface, storage device sub-interface, charger sub-interface, therefore, voltage when can different equipment be accessed Value is stored in the terminal, when detecting corresponding voltage value, it is possible to determine the access device of sub-interface, specifically, The access device for determining the access mobile terminal according to the voltage value can include following sub-step:
Sub-step 2021, when the voltage value is the first preset value, it is earphone to determine the access device;
Sub-step 2022, when the voltage value is the second preset value, it is storage device to determine the access device;
Sub-step 2023, when the voltage value is third preset value, it is charger to determine the access device;
Sub-step 2024, when the voltage value is four preset value, it is earphone and charger to determine the access device;
Sub-step 2025 when the voltage value is five preset value, determines the access device as storage device and fills Electric appliance;
Sub-step 2026 when the voltage value is six preset value, determines the access device for earphone, storage device And charger.
By storing the preset value of voltage in the terminal, when detecting corresponding preset value, it may be determined that switching is suitable The corresponding access state of orchestration.
It should be noted that when there are two or during the access of more than two equipment, can be adapter access movement After terminal, first detecting that a sub-interface has equipment access, voltage value variation detects that another sub-interface has equipment access, Or two or more sub-interface elder generation access devices, then adapter access mobile terminal again.
The embodiment of the present invention is to determine access device by the voltage value of CC1 CC2 pins, naturally it is also possible to be passed through The impedance of CC1 CC2 pins determines access device, and the embodiment of the present invention is without limitation.
Step 203, when it is earphone to determine the access device, the Type-C interfaces are connected by the first switch TX/RX pins, with the earphone into row data communication.
In embodiments of the present invention, when it is earphone to determine the access device, pass through the TX/RX of the Type-C interfaces Pin can include following sub-step with the earphone into row data communication:
Sub-step 2031 determines that the adapter is that front connects by the CC1/CC2 pins of the Type-C interfaces Enter or reverse side accesses;
When the adapter is reverse side access, the TX/RX is adjusted by the first switch for sub-step 2032 The connection of pin and the output port of the audio output module.
In the embodiment of the present invention, mobile terminal is provided with audio output module, such as can be I2S audio-frequency modules, I2S sounds Frequency module includes BCLK (bit clock) interface, WS (frame clock) interface, DATA (data) interface, MCLK (system clock) interface. The TX/RX pins of Type-C interfaces include positive TX1+, TX1-, RX2+, RX2-;TX2+, TX2-, RX1+, RX1- of reverse side; It could be provided as detecting when CC1 pins connect adapter to be positive, then acquiescence can pass through TX1+ pins connection BCLK Interface, TX1- pins connection WS interfaces, RX2+ pins connection DATA interfaces, RX2- pins connection MCLK interfaces, when detecting CC2 Pin is reverse side when connecting adapter, then BCLK interfaces, TX2- pins connection WS interfaces can be connected by TX2+ pins, RX1+ pins connect DATA interfaces, and RX1- pins connection MCLK interfaces can specifically be carried out above-mentioned by setting first switch The switching of pin.
Earphone can be provided with decoding chip, and the corresponding pin of decoding chip is connected with TX/RX pins, when I2S audio moulds When block exports audio data to decoding chip by TX/RX pins, it is same that decoding chip carries out bit clock, frame clock and system clock Step, decodes the signal of the left and right acoustic channels in audio data, is transmitted to earphone and plays out.It certain above-mentioned TX/RX pins and connects Correspondence between mouthful can be mutually adjusted, and the embodiment of the present invention is not restricted this.
Step 204, when it is storage device to determine the access device, the Type-C is connected by the second switch The D+/D- pins of interface, with the storage device into row data communication.
Step 204 is referred to corresponding step in embodiment one, is repeated to avoid, details are not described herein.
Step 205, when it is charger to determine the access device, the Type-C is connected by the second switch and is connect CC1/CC2 pins, the Vbus pins of mouth are that the mobile terminal charges.
It is described when it is charger to determine the access device in the embodiment of the present invention, pass through the Type-C interfaces CC1/CC2 pins, Vbus pins can include following sub-step for mobile terminal charging:
When detecting that charger accesses mobile terminal, the Type- is connected by the second switch for sub-step 2051 The CC1/CC2 pins of C interface;
Sub-step 2052 is filled by the CC1/CC2 pins and Vbus pins of the Type-C interfaces for the mobile terminal Electricity.
In practical applications, second switch can be set, and second switch can connect the CC1/CC2 pins of Type-C interfaces The USB module of mobile terminal or the power supervisor of mobile terminal are connected to, insertion detection, positive and negative detection etc. is carried out, works as inspection After the completion of survey, CC1/CC2 pins can be connected to power supervisor by second switch, be charged together with Vbus to mobile terminal.
Step 206, it when determining that the access device does not include charger, powers to the earphone and/or storage device.
In embodiments of the present invention, when there is no charger access, then need from mobile terminal by Vbus pins to depositing Store up equipment and/or earphone power supply;Alternatively, since mobile terminal charging end or other reasons are disconnected charger and mobile terminal Connection, then need to switch to from mobile terminal by reverse power supply circuit by Vbus pins to storage device and/or earphone Power supply.
Step 207, when determining that the access device includes charger, stop to the earphone and/or storage device confession Electricity;Wherein, the charger is used to power to the earphone and/or storage device by the power supply circuit.
Power supply circuit can be provided in adapter, which can both charge to mobile terminal, can also Earphone sub-interface and the power supply of storage device sub-interface to adapter.
In embodiments of the present invention, when charger and storage device or earphone access mobile terminal simultaneously, due to filling Have the voltage output of 5V on the Vbus pins of electric appliance sub-interface, therefore, can directly by charger by Vbus pins access Power supply circuit is powered to storage device and/or earphone.
In order to which the embodiment of the present invention is better described, the embodiment of the present invention is illustrated below in conjunction with attached drawing.
As shown in figure 3, it communicates and charges with earphone, storage device and charger data for mobile terminal of the embodiment of the present invention Schematic diagram, including:
Type-C interfaces, for being connected with adapter one end, the adapter other end is connected by earphone sub-interface Lug machine, storage device is connected by storage device sub-interface, and charger is connected by charger sub-interface.
Audio output module is connect by first switch with the TX/RX pins of Type-C interfaces, for exporting audio data.
The D+/D- output ports of USB module are connect by second switch with the D+/D- pins of Type-C interfaces, for complete It communicates into USB2.0 data;The CC ports of USB module are connect by second switch with the CC1/CC2 pins of Type-C interfaces, are used It is detected in completing CC.
The current input terminal of power supervisor by the Vbus pins of second switch and Type-C interfaces,
CC1/CC2 pins are connected, for pass through second switch using Type-C interfaces Vbus pins and
CC1/CC2 pins are charged or are powered by Vbus pins to storage device and/earphone.
When USB module detects the voltage change of CC1 pins or CC2 pins by CC, determine to turn by voltage value The sub-interface access state of adapter is connect, when detecting earphone access, audio output module adjusts Type- by first switch The connection of the TX/RX pins of C interface and the output port of audio output module, and then with earphone into row data communication;Work as detection When being accessed to storage device, the D+/D- pins of USB module and Type-C interfaces are connected by second switch, with storage device into Row data communication;When detecting charger access, second switch connects the CC1/CC2 pins of Type-C interfaces and Vbus pins The current input terminal of power supervisor is connected to, is filled by the CC1/CC2 pins and Vbus pins of Type-C interfaces to mobile terminal Electricity.
Above-mentioned example is solved mobile terminal and can not achieve while listen to music using a Type-C interface, transmits data And charging, and then the problem of mobile terminal is towards ultrathin and integrated development trend can not be met, realize mobile terminal Ultrathin and integrated.
In embodiments of the present invention, mobile terminal is connect by Type-C interfaces with adapter, determines to pass through switching Adapter accesses the access device of mobile terminal;When it is earphone to determine access device, Type-C is connected by first switch and is connect Mouthful TX/RX pins, with earphone into row data communication;When it is storage device to determine access device, connected by second switch The D+/D- pins of Type-C interfaces, with storage device into row data communication;When it is charger to determine access device, by the CC1/CC2 pins, the Vbus pins of two switch connection Type-C interfaces charge for mobile terminal, can using the embodiment of the present invention To realize that earphone, storage device and charger access mobile terminal simultaneously, using the pin and earphone of corresponding Type-C interfaces, Storage device charges into row data communication and for mobile terminal, and solving mobile terminal can not be real using a Type-C interface Now simultaneously listen to music, transmit data and charging and can not handle multiple equipment access, and then can not meet mobile terminal towards The problem of ultrathin and integrated development trend, realizes mobile terminal and connects multiple set simultaneously using a Type-C interface It is standby, meet the ultrathin of mobile terminal and integrated.
Embodiment three
Fig. 4 is a kind of structure diagram of mobile terminal of the embodiment of the present invention three.
With reference to shown in Fig. 4, a kind of mobile terminal 300 provided in an embodiment of the present invention includes:
Access device determining module 301, for determining to access the access device of mobile terminal by the adapter;
First data communication module 302, for when it is earphone to determine the access device, being connected by the first switch The TX/RX pins of the Type-C interfaces are connect, with the earphone into row data communication;
Second data communication module 303, for when it is storage device to determine the access device, being opened by described second Connection connects the D+/D- pins of the Type-C interfaces, with the storage device into row data communication;
Charging module 304, for when determine the access device be charger when, by the second switch connection described in CC1/CC2 pins, the Vbus pins of Type-C interfaces charge for the mobile terminal.
With reference to shown in Fig. 4 a, in the mobile terminal 300 of the embodiment of the present invention, further include:
Power supply module 305, for when detecting that the access device does not include charger, to the earphone and/or depositing Store up equipment power supply.
Stop power supply module 306, for when detecting that the access device includes charger, stopping to the earphone And/or storage device power supply;Wherein, the charger is used for through the power supply circuit to the earphone and/or storage device Power supply.
With reference to shown in Fig. 4 b, in the mobile terminal 300 of the embodiment of the present invention, access device determining module 301 includes:
Voltage value detection sub-module 3011, for detecting CC1 the CC2 pins of the mobile terminal Type-C interfaces Voltage value;
Access device determination sub-module 3012, for determining connecing for the access mobile terminal according to the voltage value Enter equipment.
First data communication module 302 includes:
Positive and negative detection sub-module 3021, for determining the switching by the CC1/CC2 pins of the Type-C interfaces Adapter is that front access or reverse side access the mobile terminal;
Connection adjustment submodule 3022, for when the adapter is that reverse side accesses the mobile terminal, passing through The first switch adjusts the connection of the TX/RX pins and the output port of the audio output module.
Charging module 304 includes:
Submodule 3041 is switched, for when detecting that charger accesses mobile terminal, being connected by the second switch The CC1/CC2 pins of the Type-C interfaces;
Charge submodule 3042, for being the movement by the CC1/CC2 pins of the Type-C interfaces, Vbus pins Terminal charge.
As illustrated in fig. 4 c, access device determination sub-module 3012 includes:
First determination unit 30121, for when the voltage value is the first preset value, it to be ear to determine the access device Machine;
Second determination unit 30122, for when the voltage value is the second preset value, determining the access device to deposit Store up equipment;
Third determination unit 30123, for when the voltage value is third preset value, determining the access device to fill Electric appliance;
4th determination unit 30124, for when the voltage value is four preset value, it to be ear to determine the access device Machine and charger;
5th determination unit 30125, for when the voltage value is five preset value, determining the access device to deposit Store up equipment and charger;
6th determination unit 30126, for when the voltage value is six preset value, it to be ear to determine the access device Machine, storage device and charger.
Mobile terminal can realize each process that mobile terminal is realized in the embodiment of the method for Fig. 1 to Fig. 2, to avoid weight Multiple, which is not described herein again.
In embodiments of the present invention, mobile terminal is connect by Type-C interfaces with adapter, determines to pass through switching Adapter accesses the access device of mobile terminal;When it is earphone to determine access device, Type-C is connected by first switch and is connect Mouthful TX/RX pins, with earphone into row data communication;When it is storage device to determine access device, connected by second switch The D+/D- pins of Type-C interfaces, with storage device into row data communication;When it is charger to determine access device, by the CC1/CC2 pins, the Vbus pins of two switch connection Type-C interfaces charge for mobile terminal, can using the embodiment of the present invention To realize that earphone, storage device and charger access mobile terminal simultaneously, using the pin and earphone of corresponding Type-C interfaces, Storage device charges into row data communication and for mobile terminal, and solving mobile terminal can not be real using a Type-C interface Now simultaneously listen to music, transmit data and charging and can not handle multiple equipment access, and then can not meet mobile terminal towards The problem of ultrathin and integrated development trend, realizes mobile terminal and connects multiple set simultaneously using a Type-C interface It is standby, meet the ultrathin of mobile terminal and integrated.
Example IV
Fig. 5 be the embodiment of the present invention four provide a kind of mobile terminal structure diagram, mobile terminal 1000 shown in fig. 5 Including:At least one processor 1001, memory 1002, at least one network interface 1004, switch module 1006 and user Interface 1003.Various components in mobile terminal 1000 are coupled by bus system 1005.It is understood that bus system 1005 are used to implement the connection communication between these components.Bus system 1005 further includes power supply in addition to including data/address bus Bus, controlling bus and status signal bus in addition.But for the sake of clear explanation, various buses are all designated as bus in Figure 5 System 1005.
Wherein, user interface 1003 can include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 1002 in the embodiment of the present invention can be volatile memory or non-volatile memories Device may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read-Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), erasable programmable are only Read memory (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, ) or flash memory EEPROM.Volatile memory can be random access memory (Random Access Memory, RAM), use Make External Cache.By exemplary but be not restricted explanation, the RAM of many forms can be used, such as static random-access Memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random-access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), it is enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronous Connect dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The embodiment of the present invention description system and method memory 1002 be intended to include but It is not limited to the memory of these and any other suitable type.
In some embodiments, memory 1002 stores following element, executable modules or data structures or Their subset of person or their superset:Operating system 10021 and application program 10022.
Wherein, operating system 10021 comprising various system programs, such as ccf layer, core library layer, driving layer etc., are used for Realize various basic businesses and the hardware based task of processing.Application program 10022 includes various application programs, such as matchmaker Body player (Media Player), browser (Browser) etc., are used to implement various applied business.Realize that the present invention is implemented The program of example method may be embodied in application program 10022.
In embodiments of the present invention, by calling program or the instruction of the storage of memory 1002, specifically, can be application The program stored in program 10022 or instruction, processor 1001 access mobile terminal for determining to pass through the adapter Access device;When it is earphone to determine the access device, the TX/ of the Type-C interfaces is connected by the first switch RX pins, with the earphone into row data communication;When it is storage device to determine the access device, pass through the second switch The D+/D- pins of the Type-C interfaces are connected, with the storage device into row data communication;When determining that the access device is During charger, the CC1/CC2 pins of the Type-C interfaces are connected by the second switch, Vbus pins are described mobile whole End charging.
The method that the embodiments of the present invention disclose can be applied in processor 1001 or by processor 1001 in fact It is existing.Processor 1001 may be a kind of IC chip, have the processing capacity of signal.During realization, the above method Each step can be completed by the instruction of the integrated logic circuit of the hardware in processor 1001 or software form.Above-mentioned Processor 1001 can be general processor, digital signal processor (Digital Signal Processor, DSP), special Integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion or with the hardware in decoding processor And software module combination performs completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at The step of memory 1002, processor 1001 reads the information in memory 1002, the above method is completed with reference to its hardware.
Switch module 1006 includes first switch and second switch, and first switch is used to adjust the Type-C interfaces The connection of TX/RX pins and audio output module, second switch are used for when charger accesses mobile terminal, will be described in connection The CC1/CC2 pins of Type-C interfaces are connected to the power supervisor of mobile terminal.
It is understood that the embodiment of the present invention description these embodiments can use hardware, software, firmware, middleware, Microcode or combination is realized.For hardware realization, processing unit can be realized in one or more application-specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general place Reason device, controller, microcontroller, microprocessor, for performing in other electronic unit or combinations of herein described function.
For software implementations, can by perform the module (such as process, function etc.) of function described in the embodiment of the present invention come Realize the technology described in the embodiment of the present invention.Software code is storable in memory and is performed by processor.Memory can With portion realizes in the processor or outside the processor.
Preferably, processor 1001 is additionally operable to:Detect CC1 the CC2 pins of the mobile terminal Type-C interfaces Voltage value;The access device of the access mobile terminal is determined according to the voltage value.
Preferably, processor 1001 is additionally operable to:When the voltage value is the first preset value, determine that the access device is Earphone;When the voltage value is the second preset value, it is storage device to determine the access device;When the voltage value is third During preset value, it is charger to determine the access device;When the voltage value is four preset value, the access device is determined For earphone and charger;When the voltage value is five preset value, it is storage device and charger to determine the access device; When the voltage value is six preset value, it is earphone, storage device and charger to determine the access device.
Preferably, processor 1001 is additionally operable to:Positive and negative detection sub-module, for passing through the CC1/ of the Type-C interfaces CC2 pins determine that the adapter is that front access or reverse side access the mobile terminal;Connection adjustment submodule, is used In when the adapter is reverse side access mobile terminal, the TX/RX pins and institute are adjusted by the first switch State the connection of the output port of audio output module.
Preferably, processor 1001 is additionally operable to:When determining that the access device does not include charger, to the earphone And/or storage device power supply.
Preferably, processor 1001 is additionally operable to:When determining that the access device includes charger, stop to the earphone And/or storage device power supply;Wherein, the charger is used for through the power supply circuit to the earphone and/or storage device Power supply.
Mobile terminal 1000 can realize each process that mobile terminal is realized in the embodiment of the method for Fig. 1 to Fig. 2, to keep away Exempt to repeat, which is not described herein again.
The mobile terminal 1000 of the embodiment of the present invention is connect by Type-C interfaces with adapter, is determined by turning Connect the access device of adapter access mobile terminal;When it is earphone to determine access device, Type-C is connected by first switch The TX/RX pins of interface, with earphone into row data communication;When it is storage device to determine access device, connected by second switch The D+/D- pins of Type-C interfaces are connect, with storage device into row data communication;When it is charger to determine access device, pass through The second switch connection CC1/CC2 pins of Type-C interfaces, Vbus pins are mobile terminal charging, using the embodiment of the present invention, It can realize that earphone, storage device and charger access mobile terminal simultaneously, using the pin and ear of corresponding Type-C interfaces Machine, storage device charge into row data communication and for mobile terminal, solve mobile terminal using Type-C interface without Method, which is realized, listens to music simultaneously, transmits data and charging and can not handle multiple equipment access, and then can not meet mobile terminal The problem of towards ultrathin and integrated development trend, realizes mobile terminal using a Type-C interface while connects more A equipment meets the ultrathin of mobile terminal and integrated.
Embodiment five
Fig. 6 is a kind of structure diagram for mobile terminal that the embodiment of the present invention five provides.Specifically, the movement in Fig. 6 Terminal 1100 can be mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle Carry computer etc..
Mobile terminal 1100 in Fig. 6 includes radio frequency (Radio Frequency, RF) circuit 1101, memory 1102, defeated Enter unit 1103, display unit 1104, switch module 1105, processor 1106, voicefrequency circuit 1107, WiFi (Wireless Fidelity) module 1108 and power supply 1109.
Wherein, input unit 1103 can be used for receiving number input by user or character information and generate with movement eventually The signal that the user setting and function control at end 1100 are related inputs.Specifically, in the embodiment of the present invention, the input unit 1103 can include touch panel 11031.It is on it or neighbouring to collect user for touch panel 11031, also referred to as touch screen Touch operation (for example user uses the operations of any suitable object or attachment on touch panel 11031 such as finger, stylus), And corresponding attachment device is driven according to preset formula.Optionally, touch panel 11031 may include touch detecting apparatus With two parts of touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect what touch operation was brought Signal transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and it is converted Into contact coordinate, then the processor 1106 is given, and the order that processor 1106 is sent can be received and performed.It in addition, can To realize touch panel 11031 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch surface Plate 11031, input unit 1103 can also include other input equipments 11032, other input equipments 11032 can be included but not The one kind being limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc. It is or a variety of.
Wherein, display unit 1104 can be used for display by information input by user or be supplied to information and the movement of user The various menu interfaces of terminal 1100.Display unit 1104 may include display panel 11041, optionally, LCD may be used or have Display panel 11041 is configured in the forms such as machine light emitting diode (Organic Light-Emitting Diode, OLED).
It should be noted that touch panel 11031 can cover display panel 11041, touch display screen is formed, when the touch is shown Screen, which detects, on it or after neighbouring touch operation, sends processor 1106 to determine the type of touch event, then locates Reason device 1106 provides corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface elements such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area Or the empty interface not comprising any content.The common control viewing area is used to show the higher control of utilization rate, for example, Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 1106 is the control centre of mobile terminal 1100, utilizes various interfaces and connection whole mobile phone Various pieces, by run or perform the software program being stored in first memory 11021 and/or module and call The data being stored in second memory 11022 perform the various functions of mobile terminal 1100 and processing data, so as to movement Terminal 1100 carries out integral monitoring.Optionally, processor 1106 may include one or more processing units.
Switch module 1105 includes first switch and second switch, and first switch is used to adjust the Type-C interfaces TX/RX pins are connected with audio output module, and second switch is used for when charger accesses mobile terminal, will be described in connection The CC1/CC2 pins of Type-C interfaces are connected to the charging module of mobile terminal.
In embodiments of the present invention, the software program and/or module in the first memory 11021 are stored by calling And/or the data in the second memory 11022, processor 1106 are mobile eventually by adapter access for determining The access device at end;When it is earphone to determine the access device, the Type-C interfaces are connected by the first switch TX/RX pins, with the earphone into row data communication;When it is storage device to determine the access device, pass through described second Switch connects the D+/D- pins of the Type-C interfaces, with the storage device into row data communication;When determine it is described access set During for being charger, the CC1/CC2 pins of the Type-C interfaces are connected by the second switch, Vbus pins are the shifting Dynamic terminal charge.
Preferably, processor 1106 is additionally operable to:Detect CC1 the CC2 pins of the mobile terminal Type-C interfaces Voltage value;The access device of the access mobile terminal is determined according to the voltage value.
Preferably, processor 1106 is additionally operable to:When the voltage value is the first preset value, determine that the access device is Earphone;When the voltage value is the second preset value, it is storage device to determine the access device;When the voltage value is third During preset value, it is charger to determine the access device;When the voltage value is four preset value, the access device is determined For earphone and charger;When the voltage value is five preset value, it is storage device and charger to determine the access device; When the voltage value is six preset value, it is earphone, storage device and charger to determine the access device.
Preferably, processor 1106 is additionally operable to:Positive and negative detection sub-module, for passing through the CC1/ of the Type-C interfaces CC2 pins determine that the adapter is that front access or reverse side access the mobile terminal;Connection adjustment submodule, is used In when the adapter is that reverse side accesses the mobile terminal, the TX/RX pins are adjusted by the first switch With the connection of the output port of the audio output module.
Preferably, processor 1106 is additionally operable to:When determining that the access device does not include charger, to the earphone And/or storage device power supply.
Preferably, processor 1106 is additionally operable to:When determining that the access device includes charger, stop to the earphone And/or storage device power supply;Wherein, the charger is used for through the power supply circuit to the earphone and/or storage device Power supply.
Preferably, processor 1106 is additionally operable to, when detecting that charger accesses mobile terminal, pass through the second switch Connect the CC1/CC2 pins of the Type-C interfaces;It is institute by the CC1/CC2 pins of the Type-C interfaces, Vbus pins State mobile terminal charging.
Mobile terminal 1100 can realize each process that mobile terminal is realized in previous embodiment, be repeated to avoid, this In repeat no more.
The mobile terminal 1100 of the embodiment of the present invention is connect by Type-C interfaces with adapter, is determined by turning Connect the access device of adapter access mobile terminal;When it is earphone to determine access device, Type-C is connected by first switch The TX/RX pins of interface, with earphone into row data communication;When it is storage device to determine access device, connected by second switch The D+/D- pins of Type-C interfaces are connect, with storage device into row data communication;When it is charger to determine access device, pass through The second switch connection CC1/CC2 pins of Type-C interfaces, Vbus pins are mobile terminal charging, using the embodiment of the present invention, It can realize that earphone, storage device and charger access mobile terminal simultaneously, using the pin and ear of corresponding Type-C interfaces Machine, storage device charge into row data communication and for mobile terminal, solve mobile terminal using Type-C interface without Method, which is realized, listens to music simultaneously, transmits data and charging and can not handle multiple equipment access, and then can not meet mobile terminal The problem of towards ultrathin and integrated development trend, realizes mobile terminal using a Type-C interface while connects more A equipment meets the ultrathin of mobile terminal and integrated.
Those of ordinary skill in the art may realize that the embodiment with reference to disclosed in the embodiment of the present invention describes each Exemplary unit and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These Function is performed actually with hardware or software mode, specific application and design constraint depending on technical solution.Profession Technical staff can realize described function to each specific application using distinct methods, but this realization should not Think beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit can refer to the corresponding process in preceding method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only A kind of division of logic function, can there is an other dividing mode in actual implementation, for example, multiple units or component can combine or Person is desirably integrated into another system or some features can be ignored or does not perform.Another point, shown or discussed is mutual Between coupling or direct-coupling or call connection can be by some interfaces, the INDIRECT COUPLING or call of device or unit connect It connects, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also That each unit is individually physically present, can also two or more units integrate in a unit.
If the function is realized in the form of SFU software functional unit and is independent product sale or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme of the present invention is substantially in other words The part contribute to the prior art or the part of the technical solution can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, is used including some instructions so that a computer equipment (can be People's computer, server or network equipment etc.) perform all or part of the steps of the method according to each embodiment of the present invention. And aforementioned storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can to store program code Medium.
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in change or replacement, should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (12)

  1. A kind of 1. processing method of access device, applied to the mobile terminal with Type-C interfaces, which is characterized in that the shifting Dynamic terminal is connect by the Type-C interfaces with adapter, and the mobile terminal further includes first switch and second and opens It closes, the method includes:
    Determine the access device by adapter access mobile terminal;
    When it is earphone to determine the access device, the TX/RX pins of the Type-C interfaces are connected by the first switch, With the earphone into row data communication;
    When it is storage device to determine the access device, the D+/D- of the Type-C interfaces is connected by the second switch Pin, with the storage device into row data communication;
    When it is charger to determine the access device, the CC1/CC2 of the Type-C interfaces is connected by the second switch Pin, Vbus pins charge for the mobile terminal.
  2. 2. according to the method described in claim 1, it is characterized in that, described determine through adapter access movement eventually The step of access device at end, includes:
    Detect the voltage value of the CC1 CC2 pins of the mobile terminal Type-C interfaces;
    The access device of the access mobile terminal is determined according to the voltage value.
  3. 3. method according to claim 1 or 2, which is characterized in that described to determine the access institute according to the voltage value The step of access device for stating mobile terminal, includes:
    When the voltage value is the first preset value, it is earphone to determine the access device;
    When the voltage value is the second preset value, it is storage device to determine the access device;
    When the voltage value is third preset value, it is charger to determine the access device;
    When the voltage value is four preset value, it is earphone and charger to determine the access device;
    When the voltage value is five preset value, it is storage device and charger to determine the access device;
    When the voltage value is six preset value, it is earphone, storage device and charger to determine the access device.
  4. 4. according to the method described in claim 1, it is characterized in that, the mobile terminal is provided with audio output module, when true When the fixed access device is earphone, the TX/RX pins of the Type-C interfaces are connected by the first switch, with the ear Machine included into the step of row data communication:
    Determine that the adapter is that front access or reverse side access institute by the CC1/CC2 pins of the Type-C interfaces State mobile terminal;
    When the adapter is reverse side access mobile terminal, by the first switch adjust the TX/RX pins with The connection of the output port of the audio output module.
  5. 5. it according to the method described in claim 1, it is characterized in that, further includes:
    When determining that the access device does not include charger, power to the earphone and/or storage device.
  6. 6. the method according to claim 1 or 4, which is characterized in that the adapter is provided with power supply circuit, described Method further includes:
    When determining that the access device includes charger, stop to the earphone and/or storage device power supply;Wherein, it is described Charger is used to power to the earphone and/or storage device by the power supply circuit.
  7. 7. a kind of mobile terminal, including Type-C interfaces, which is characterized in that the mobile terminal by the Type-C interfaces with Adapter connects, and the mobile terminal further includes:
    Access device determining module, for determining to access the access device of mobile terminal by the adapter;
    First data communication module, for when determine the access device be earphone when, by the first switch connection described in The TX/RX pins of Type-C interfaces, with the earphone into row data communication;
    Second data communication module, for when it is storage device to determine the access device, being connected by the second switch The D+/D- pins of the Type-C interfaces, with the storage device into row data communication;
    Charging module, for when it is charger to determine the access device, the Type-C to be connected by the second switch CC1/CC2 pins, the Vbus pins of interface charge for the mobile terminal.
  8. 8. mobile terminal according to claim 7, which is characterized in that the access device determining module includes:
    Voltage value detection sub-module, for detecting the voltage value of the CC1 CC2 pins of the mobile terminal Type-C interfaces;
    Access device determination sub-module, for determining the access device of the access mobile terminal according to the voltage value.
  9. 9. mobile terminal according to claim 7 or 8, which is characterized in that the access device determination sub-module includes:
    First determination unit, for when the voltage value is the first preset value, it to be earphone to determine the access device;
    Second determination unit, for when the voltage value is the second preset value, it to be storage device to determine the access device;
    Third determination unit, for when the voltage value is third preset value, it to be charger to determine the access device;
    4th determination unit, for when the voltage value is four preset value, it to be earphone and charging to determine the access device Device;
    5th determination unit, for when the voltage value is five preset value, determine the access device for storage device and Charger;
    6th determination unit, for when the voltage value is six preset value, determining that the access device is set for earphone, storage Standby and charger.
  10. 10. mobile terminal according to claim 7, which is characterized in that first data communication module includes:
    Positive and negative detection sub-module, the CC1/CC2 pins for passing through the Type-C interfaces determine that the adapter is Front access or reverse side access the mobile terminal;
    Connection adjustment submodule, for when the adapter is that reverse side accesses the mobile terminal, passing through described first Switch adjusts the connection of the TX/RX pins and the output port of the audio output module.
  11. 11. mobile terminal according to claim 7, which is characterized in that the mobile terminal further includes:
    Power supply module, for when detecting that the access device does not include charger, being supplied to the earphone and/or storage device Electricity.
  12. 12. the mobile terminal according to claim 7 or 10, which is characterized in that the mobile terminal further includes:
    Stop power supply module, for when detecting that the access device includes charger, stopping to the earphone and/or storage Equipment is powered;Wherein, the charger is used to power to the earphone and/or storage device by the power supply circuit.
CN201611264040.2A 2016-12-30 2016-12-30 Processing method of access equipment and mobile terminal Active CN108271093B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611264040.2A CN108271093B (en) 2016-12-30 2016-12-30 Processing method of access equipment and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611264040.2A CN108271093B (en) 2016-12-30 2016-12-30 Processing method of access equipment and mobile terminal

Publications (2)

Publication Number Publication Date
CN108271093A true CN108271093A (en) 2018-07-10
CN108271093B CN108271093B (en) 2019-12-17

Family

ID=62753812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611264040.2A Active CN108271093B (en) 2016-12-30 2016-12-30 Processing method of access equipment and mobile terminal

Country Status (1)

Country Link
CN (1) CN108271093B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109301911A (en) * 2018-11-30 2019-02-01 努比亚技术有限公司 Charging method, mobile terminal and computer readable storage medium
CN109769174A (en) * 2019-03-27 2019-05-17 上海爻火微电子有限公司 Decision circuitry, method and the electronic equipment of earphone MIC positive and negative terminal
CN110336351A (en) * 2019-07-04 2019-10-15 东莞市隆佳展能源科技有限公司 There is the USB quick charge device of data transmission function simultaneously
US20210314697A1 (en) * 2018-12-25 2021-10-07 Vivo Mobile Communication Co., Ltd. Terminal device, adapter, and charging method
CN109769174B (en) * 2019-03-27 2024-04-12 上海爻火微电子有限公司 Judging circuit and method for positive and negative terminals of MIC (microphone) of earphone and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080301158A1 (en) * 2007-05-30 2008-12-04 Darren Brown System and method for managing health data
CN104767260A (en) * 2015-03-30 2015-07-08 华为技术有限公司 Charger, terminal device and charging system
CN105955912A (en) * 2016-05-16 2016-09-21 芯海科技(深圳)股份有限公司 Device detection method for USB Type-C interface
CN205790815U (en) * 2016-06-21 2016-12-07 深圳市爱迪芯科技有限公司 A kind of HUB integrating HUB, video, portable power source
CN106207687A (en) * 2016-08-30 2016-12-07 硅谷数模半导体(北京)有限公司 The conversion method of data-interface and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080301158A1 (en) * 2007-05-30 2008-12-04 Darren Brown System and method for managing health data
CN104767260A (en) * 2015-03-30 2015-07-08 华为技术有限公司 Charger, terminal device and charging system
CN105955912A (en) * 2016-05-16 2016-09-21 芯海科技(深圳)股份有限公司 Device detection method for USB Type-C interface
CN205790815U (en) * 2016-06-21 2016-12-07 深圳市爱迪芯科技有限公司 A kind of HUB integrating HUB, video, portable power source
CN106207687A (en) * 2016-08-30 2016-12-07 硅谷数模半导体(北京)有限公司 The conversion method of data-interface and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109301911A (en) * 2018-11-30 2019-02-01 努比亚技术有限公司 Charging method, mobile terminal and computer readable storage medium
US20210314697A1 (en) * 2018-12-25 2021-10-07 Vivo Mobile Communication Co., Ltd. Terminal device, adapter, and charging method
US11860805B2 (en) * 2018-12-25 2024-01-02 Vivo Mobile Communication Co., Ltd. Terminal device, adapter, and charging method
CN109769174A (en) * 2019-03-27 2019-05-17 上海爻火微电子有限公司 Decision circuitry, method and the electronic equipment of earphone MIC positive and negative terminal
CN109769174B (en) * 2019-03-27 2024-04-12 上海爻火微电子有限公司 Judging circuit and method for positive and negative terminals of MIC (microphone) of earphone and electronic equipment
CN110336351A (en) * 2019-07-04 2019-10-15 东莞市隆佳展能源科技有限公司 There is the USB quick charge device of data transmission function simultaneously

Also Published As

Publication number Publication date
CN108271093B (en) 2019-12-17

Similar Documents

Publication Publication Date Title
CN106685007B (en) A kind of power-supplying circuit of peripheral equipment, method of supplying power to and mobile terminal
CN108271093A (en) The processing method and mobile terminal of a kind of access device
CN108268395A (en) A kind of method and mobile terminal of data communication
CN108268397A (en) The processing method and mobile terminal of a kind of access device
CN106208206B (en) A kind of wireless charging method and mobile terminal
CN107145331A (en) A kind of charging and the method and terminal of voice data processing
CN107257406B (en) A kind of method and terminal to charge and audio data is handled
CN108268396A (en) The processing method and mobile terminal of a kind of access device
CN108268393A (en) The processing method and mobile terminal of a kind of access device
CN108271092A (en) The processing method and mobile terminal of a kind of access device
CN107291415A (en) A kind of charging and the method and terminal of voice data processing
CN108271094A (en) The processing method and mobile terminal of a kind of access device
CN108270253A (en) A kind of charging method and mobile terminal
CN107465234A (en) A kind of charge control method, mobile terminal and adapter
CN108268399A (en) A kind of method and mobile terminal of data communication
CN108268407A (en) The processing method and mobile terminal of a kind of access device
CN108347070A (en) A kind of method and mobile terminal, charging equipment of charging
CN108233468A (en) A kind of charging method and mobile terminal
CN108268415A (en) A kind of method and mobile terminal of data communication
CN108268394A (en) The processing method and mobile terminal of a kind of access device
CN107493558B (en) A kind of voice signal control method and mobile terminal
CN108988404A (en) A kind of method and mobile terminal of mobile terminal charging
CN106850994A (en) The control method and mobile terminal of a kind of mobile terminal sound output
CN108268410B (en) A kind of method and mobile terminal of data communication
CN107277667B (en) A kind of audio frequency signal output and terminal of terminal

Legal Events

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