CN108270253A - A kind of charging method and mobile terminal - Google Patents

A kind of charging method and mobile terminal Download PDF

Info

Publication number
CN108270253A
CN108270253A CN201611264050.6A CN201611264050A CN108270253A CN 108270253 A CN108270253 A CN 108270253A CN 201611264050 A CN201611264050 A CN 201611264050A CN 108270253 A CN108270253 A CN 108270253A
Authority
CN
China
Prior art keywords
pins
charging
mobile terminal
charging path
charging equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611264050.6A
Other languages
Chinese (zh)
Inventor
李占武
贾广琪
刘彦彬
王乐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201611264050.6A priority Critical patent/CN108270253A/en
Publication of CN108270253A publication Critical patent/CN108270253A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0013Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries acting upon several batteries simultaneously or sequentially

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Telephone Function (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

An embodiment of the present invention provides a kind of charging method and mobile terminals, applied to the mobile terminal with Type C interface, the pin of the Type C interface is divided to the first charging path and the second charging path, first charging path includes CC1 pins and 2 Vbus pins, second charging path includes CC2 pins and 2 Vbus pins, the method includes:Detect the level state of CC1 pins and/or CC2 pins;Using the level state of the CC1 pins determine whether the first charging equipment access and, using the level state of the CC2 pins determine whether the second charging equipment access;When having determined the access of the first charging equipment, 2 Vbus pins of first charging path is used to charge for the mobile terminal, and when having determined the access of the second charging equipment, 2 Vbus pins of second charging path is used to charge for the mobile terminal.The embodiment of the present invention is solving the problems, such as that mobile terminal charging rate is slower in prior art.

Description

A kind of charging method and mobile terminal
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of charging method and mobile terminals.
Background technology
Common terminal, majority use USB (Universal Serial Bus, universal serial bus) mouth on the market at present It charges.USB (Universal Serial Bus, universal serial bus) is an external bus standard, for specification electricity Being connected and communicate with for the terminal devices such as brain, mobile phone and external equipment, is a kind of interfacing applied in the communications field, includes The interface type of a variety of different models such as USB Type-C or specification.USB Type-C are one kind popular in current industry The development side of I/O (Input/Output, the input/output) interface of terminal devices such as USB interface and follow-up computer, mobile phone To USB Type-C can support tow sides to plug, and the signal for transmitting data is stronger.
Using the mobile terminal of USB Type-C interface standards, due to the limitation of Type-C per-interface space structures, Ge Gejie The width of mouth is generally relatively narrow, so as to limit the withstanding current capability of interface so that maximum excess current can only achieve 5A, Wu Faman The requirement of foot mobile terminal quick charge at present.
Invention content
The embodiment of the present invention provides a kind of charging method and mobile terminal, to solve mobile terminal charging speed in prior art The problem of degree is slower.
In a first aspect, a kind of charging method is provided, and applied to the mobile terminal with Type-C interfaces, the Type-C The pin of interface is divided to the first charging path and the second charging path, and first charging path includes CC1 pins and 2 Vbus pins, second charging path include CC2 pins and 2 Vbus pins, the method includes:
Detect the level state of CC1 pins and/or CC2 pins;
Using the level state of the CC1 pins determine whether the first charging equipment access and, using the CC2 The level state of pin determines whether that the second charging equipment accesses;
When having determined the access of the first charging equipment, 2 Vbus pins of first charging path are used as the shifting Dynamic terminal charge and, when having determined the access of the second charging equipment, using 2 Vbus pins of second charging path It charges for the mobile terminal.
Second aspect, provides a kind of mobile terminal, and the mobile terminal has Type-C interfaces, the Type-C interfaces Pin be divided to the first charging path and the second charging path, first charging path includes CC1 pins and 2 Vbus draw Foot, second charging path includes CC2 pins and 2 Vbus pins, the mobile terminal include:
Detection module, for detecting the level state of CC1 pins and/or CC2 pins;
Determining module, for determining whether that the first charging equipment accesses using the level state of the CC1 pins, with And determine whether that the second charging equipment accesses using the level state of the CC2 pins;
Charging module, for when determined the first charging equipment access when, using 2 Vbus of first charging path Pin for the mobile terminal charge and, when determined the second charging equipment access when, using second charging path 2 Vbus pins charge for the mobile terminal.
In this way, in embodiments of the present invention, the pins of the Type-C interfaces of mobile terminal be divided to the first charging path and Second charging path, when according to the level state of the CC1 pins that detect and CC2 pins determined the first charging equipment and/or When second charging equipment accesses, can respectively by 2 Vbus pins of the first charging path and/or, the second charging path 2 Vbus pins charge for mobile terminal, by being powered by two charging equipments for mobile terminal, improve filling for mobile terminal Electric speed solves the problems, such as time-consuming longer for mobile terminal charging in prior art.
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 charging method embodiment of the embodiment of the present invention one;
Fig. 2 is a kind of connection diagram of Type-C interfaces of the embodiment of the present invention one;
Fig. 3 A are a kind of structure diagrams of Type-C females;
Fig. 3 B are a kind of structure diagrams of Type-C male connectors;
Fig. 4 is a kind of step flow chart of charging method embodiment of the embodiment of the present invention two;
Fig. 5 is a kind of structure diagram of mobile terminal embodiment of the embodiment of the present invention three;
Fig. 5 a- Fig. 5 d are the structure diagrams of another mobile terminal embodiment of the embodiment of the present invention three;
Fig. 6 is the block diagram of the mobile terminal of another embodiment of the present invention;
Fig. 7 is the structure diagram of the mobile terminal of another embodiment of the invention.
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
With reference to Fig. 1, a kind of step flow chart of charging method embodiment of the embodiment of the present invention one is shown, applied to tool There is the mobile terminal of Type-C interfaces, the pin of the Type-C interfaces is divided to the first charging path and the second charging path, First charging path includes CC1 pins and 2 Vbus pins, and second charging path includes CC2 pins and 2 Vbus Pin, the method specifically may include steps of:
Step 101, the level state of CC1 pins and/or CC2 pins is detected;
In embodiments of the present invention, two charging equipments can be used to be attached and charge with mobile terminal simultaneously.
In the concrete realization, the USB Type-C interfaces of mobile terminal can be connect with a Type-C adapter. Adapter is a kind of power supply adaptor, the interface alternative cost of a class can be invented to a kind of required interface, so as to make original This two class interface that can not be worked together due to interface mismatches can work together.Type-C adapter are a kind of Can be multiple, and these interfaces device used at the same time can be made by a USB Type-C Interface Expanding.
As shown in Fig. 2, be the connection diagram of a kind of charging equipment of the present invention and mobile terminal, it is shown in fig. 2 The interface of each charging equipment is Type-C interfaces, when the USB Type-C interfaces of mobile terminal and a Type-C adapter connect After connecing, the first charging equipment (charger 1) and the second charging equipment (charger 2) can be inserted into the Type-C respectively In two interfaces of adapter, so as to form a complete charging unit.
In general, USB Type-C interfaces can include Type-C females and Type-C male connectors, as shown in figs.3 a and 3b, respectively It is the structure diagram of Type-C females and Type-C male connectors.Type-C females include 24 pins (PIN), wherein 4 Vbus pins, 4 TX pins (2 TX- pins and 2 TX+ pins), 4 RX pins (2 RX- pins and 2 RX+ pins) With 2 CC pins (CC1 pins and CC2 pins).And Type-C male connectors are then to include 22 pins, are reduced compared with Type-C females A pair of of D+/D- pins;Type-C male connectors also include 4 Vbus pins, 4 TX pins, 4 RX pins and 2 CC pins.
In embodiments of the present invention, the Type-C interfaces on mobile terminal in fig. 2 can be a Type-C female, And the Type-C adapter being directly connected then include a Type-C male connector and two Type-C females.Specifically, it moves The Type-C females of dynamic end side are connected with a Type-C male connector on Type-C adapter, the Type-C male connectors and Two Type-C females in Type-C adapter are connected, two Type-C females can respectively with the first charging equipment and Second charging equipment connects.
In embodiments of the present invention, the pin of the Type-C interfaces of mobile terminal can be divided into two charging paths. Specifically, 4 Vbus pins in Type-C females and Type-C male connectors can be divided into two groups, wherein every group includes 2 Vbus pins, CC pins are shared for two charging paths.Specifically, the first charging path includes CC1 pins, and the second charging is logical Road includes CC2 pins.
In Type-C adapter shown in Fig. 2, after two CC pins in female 1 link together, pass through Vbus1 It is connected to the CC1 pins of adapter male connectors;After two CC pins in female 2 link together, adapter is connected to by Vbus2 The CC2 pins of male connector.
In embodiments of the present invention, can the access of charging equipment detection be completed according to CC pins.
Step 102, using the level state of the CC1 pins determine whether the first charging equipment access and, use The level state of the CC2 pins determines whether that the second charging equipment accesses;
In the concrete realization, the corresponding CC1 pins of the first charging equipment can be detected in real time and the second charging equipment corresponds to CC2 pins level state, can determine that above-mentioned mobile terminal has accessed one and filled according to the level state of two CC pins Electric equipment still inserts two charging equipments.
Step 103, when having determined the access of the first charging equipment, using 2 Vbus pins of first charging path For the mobile terminal charging and, when determined the second charging equipment access when, using 2 of second charging path Vbus pins charge for the mobile terminal.
It in embodiments of the present invention, can be by two groups of charging paths when determining to access there are two charging equipment Vbus pins connect the battery (Battery) that DCDC circuits are charged to mobile terminal simultaneously respectively, to solve to set when single charging In the case that standby fan-out capability is limited, two charging equipments charge simultaneously promotes the speed of charging.
In this way, in embodiments of the present invention, the pins of the Type-C interfaces of mobile terminal be divided to the first charging path and Second charging path, when according to the level state of the CC1 pins that detect and CC2 pins determined the first charging equipment and/or When second charging equipment accesses, can respectively by 2 Vbus pins of the first charging path and/or, the second charging path 2 Vbus pins charge for mobile terminal.By being powered by two charging equipments for mobile terminal, filling for mobile terminal is improved Electric speed solves the problems, such as time-consuming longer for mobile terminal charging in prior art.
Embodiment two
With reference to Fig. 4, a kind of step flow chart of charging method embodiment of the embodiment of the present invention one is shown, applied to tool There is the mobile terminal of Type-C interfaces, the pin of the Type-C interfaces is divided to the first charging path and the second charging path, First charging path includes CC1 pins and 2 Vbus pins, and second charging path includes CC2 pins and 2 Vbus Pin, first charging path and second charging path respectively include D+ pins and D- pins, and the method specifically may be used To include the following steps:
Step 201, the level state of CC1 pins and/or CC2 pins is detected.
In embodiments of the present invention, can the access of charging equipment detection be completed according to CC pins.
Step 202, using the level state of the CC1 pins determine whether the first charging equipment access and, use The level state of the CC2 pins determines whether that the second charging equipment accesses.
In one preferred embodiment of the invention, the step 202 can include:
The level state of the CC1 pins and CC2 pins is detected respectively;
When the level state for detecting the CC1 pins changes, it is determined as having the access of the first charging equipment, with And when the level state for detecting the CC2 pins changes, it is determined as having the access of the second charging equipment.
In embodiments of the present invention, as shown in Fig. 2, can by the level state of CC1 pins come judge in female 1 whether Have charger 1 be inserted into and, can judge whether there is charger 2 to be inserted into female 2 by the level state of CC2 pins.Tool Body, the CC pins of charger are the states pulled up always by a current source, can only do main equipment, this when of movement is eventually End can only do slave device, be pulled down the level of CC pins by a Rd resistance.
It is pulled up for example, the CC pins in female 1 are electrically charged device 1, the CC1 pins of mobile terminal are electrically charged device 1 and pull up.It is mobile There is charger 1 to be inserted into terminal recognition to female 1, CC2 pins by Rd resistive pull-downs, are completed to be inserted into detection by mobile terminal. The detection mode of charger 2 is similarly.
In one preferred embodiment of the invention, the mobile terminal includes switching switch, and the method can also wrap It includes:
The switching switch of the mobile terminal is switched into the first charging path or the second charging path.
With reference to Fig. 2, mobile terminal of the embodiment of the present invention can be by switching switch (switch) respectively with charger 1 and filling Electric appliance 2 carries out charging and shakes hands.The processor of mobile terminal controls the first charging path or the second charging path by switching switch D+ pins and D- pins, carried out respectively with two chargers charging shake hands that charge parameter is configured.Wherein, charge parameter can be with Including charging voltage and charging current.
In one preferred embodiment of the invention, the switching switch includes sw_ctrl pins, described by the movement The step of switching switch of terminal switches to the first charging path includes:
When having determined the access of the first charging equipment, the first switching signal is generated;
First switching signal is sent to by the switching switch by the sw_ctrl pins so that the switching Switching is to the first charging path.
With reference to Fig. 2, in embodiments of the present invention, when determining that charger 1 accesses, the first switching signal can be generated and led to It crosses sw_ctrl pins and is transmitted to switching switch, switching switch can switch to the first charging path according to the first switching signal, I.e. so that the D+ pins and D- pins of the processor of mobile terminal and the D1+ pins and D1- pins of switching switch connect, so as to The first charging path is connected.
In another preferred embodiment of the invention, the switching switch by the mobile terminal switches to second and fills The step of electric pathway, includes:
When having determined the access of the second charging equipment, the second switching signal is generated;
Second switching signal is sent to by the switching switch by the sw_ctrl pins so that the switching Switching is to the second charging path.
Similarly, it when determining that charger 2 accesses, the second switching signal can be generated and pass through sw_ctrl pins is transmitted to Switching switch, switching switch can switch to the second charging path according to the second switching signal, that is, so that the processing of mobile terminal The D+ pins and D- pins of device and the D2+ pins and D2- pins of switching switch connect, so as to which the second charging path be connected.
Step 203, when having determined the access of the first charging equipment, by the D+ pins and D- pins of the first charging path with First charging equipment carries out charging and shakes hands, to determine the charge parameter of the first charging equipment, and using the described first charging 2 Vbus pins of access charge for the mobile terminal.
In embodiments of the present invention, when charger 1 is inserted into Type-C adapter, the male connector of Type-C adapter The access of charger 1 can be detected with the CC1 pins of the Type-C adapter females of mobile terminal, so as to processing Device communicates, and the message of charger 1 is sent to processor, processor can control mobile terminal after above-mentioned message is received Change-over switch be switched to the first charging path, i.e. D ± the pins of switching switch be connected to the first charging path D1+ pins and D1- pins;Then, processor can adjust the charge parameter of charger 1, be carried out so as to fulfill by charger 1 for mobile terminal Charging.
Step 204, when having determined the access of the second charging equipment, by the D+ pins and D- pins of the second charging path with Second charging equipment carries out charging and shakes hands, to determine the charge parameter of the second charging equipment, and using the described second charging 2 Vbus pins of access charge for the mobile terminal.
It is similar with aforementioned charger 1, when charger 2 is inserted into Type-C adapter, the public affairs of Type-C adapter The CC2 pins of the Type-C adapter females of head and mobile terminal can detect the access of charger 2, so as to place Device communication is managed, the message of charger 2 is sent to processor, processor can control mobile whole after above-mentioned message is received The change-over switch at end is switched to the second charging path, i.e. D ± the pins of switching switch be connected to the second charging path D1+ pins and D1- pins;Then, processor can adjust the charge parameter of charger 1, be carried out so as to fulfill by charger 2 for mobile terminal Charging.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of action group It closes, but those skilled in the art should know, the embodiment of the present invention is not limited by described sequence of movement, because according to According to the embodiment of the present invention, certain steps may be used other sequences or be carried out at the same time.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implemented Necessary to example.
Embodiment three
With reference to Fig. 5, a kind of structure diagram of mobile terminal embodiment of the present invention is shown, the mobile terminal 300 has There are Type-C interfaces, the pin of the Type-C interfaces is divided to the first charging path and the second charging path, and described first fills Electric pathway includes CC1 pins and 2 Vbus pins, and second charging path includes CC2 pins and 2 Vbus pins, described Mobile terminal can specifically include following module.
Detection module 301, for detecting the level state of CC1 pins and/or CC2 pins;
Determining module 302, for determining whether that the first charging equipment accesses using the level state of the CC1 pins, And determine whether that the second charging equipment accesses using the level state of the CC2 pins;
Charging module 303, for when determined the first charging equipment access when, using 2 of first charging path Vbus pins charge for the mobile terminal and, it is logical using the described second charging when having determined the access of the second charging equipment 2 Vbus pins on road charge for the mobile terminal.
With reference to shown in Fig. 5 a, in a kind of mobile terminal 300 of the embodiment of the present invention, the determining module 302 includes as follows Submodule:
Level state detection sub-module 3021, for detecting the level state of the CC1 pins and CC2 pins respectively;
Determination sub-module 3022 is accessed, for when the level state for detecting the CC1 pins changes, being determined as Have the first charging equipment access and, when the level state for detecting the CC2 pins changes, be determined as having second Charging equipment accesses.
With reference to shown in Fig. 5 b, in a kind of mobile terminal 300 of the embodiment of the present invention, first charging path and described the Two charging paths respectively include D+ pins and D- pins, and the mobile terminal further includes:
First parameter determination module 304 fills for passing through the D+ pins of the first charging path and D- pins with described first Electric equipment carries out charging and shakes hands, to determine the charge parameter of the first charging equipment;
Second parameter determination module 305 fills for passing through the D+ pins of the second charging path and D- pins with described second Electric equipment carries out charging and shakes hands, to determine the charge parameter of the second charging equipment.
With reference to shown in Fig. 5 c, in a kind of mobile terminal 300 of the embodiment of the present invention, the mobile terminal includes switching and opens It closes, the mobile terminal further includes:
Handover module 306, for the switching switch of the mobile terminal to be switched to the first charging path or the second charging Access.
With reference to shown in Fig. 5 d, in a kind of mobile terminal 300 of the embodiment of the present invention, the switching switch includes sw_ctrl Pin, the handover module 306 include:
First switching signal generates submodule 3061, for when having determined the access of the first charging equipment, generation first to be cut Change signal;
First switching submodule 3062, for first switching signal to be sent to institute by the sw_ctrl pins State switching switch so that the switching switch switches to the first charging path;
Second switching signal generates submodule 3063, for when having determined the access of the second charging equipment, generation second to be cut Change signal;
Second switching submodule 3064, for second switching signal to be sent to institute by the sw_ctrl pins State switching switch so that the switching switch switches to the second charging path.
For 300 embodiment of mobile terminal, since it is basicly similar to embodiment of the method, so the comparison of description is simple Single, the relevent part can refer to the partial explaination of embodiments of method.
In this way, in embodiments of the present invention, the pins of the Type-C interfaces of mobile terminal be divided to the first charging path and Second charging path, when according to the level state of the CC1 pins that detect and CC2 pins determined the first charging equipment and/or When second charging equipment accesses, can respectively by 2 Vbus pins of the first charging path and/or, the second charging path 2 Vbus pins charge for mobile terminal, by being powered by two charging equipments for mobile terminal, improve filling for mobile terminal Electric speed solves the problems, such as time-consuming longer for mobile terminal charging in prior art.
Example IV
Fig. 6 is the block diagram of the mobile terminal of another embodiment of the present invention.Mobile terminal 700 shown in fig. 6 includes:At least One processor 701, memory 702, at least one network interface 704 and other users interface 703.In mobile terminal 700 Various components are coupled by bus system 705.It is understood that bus system 705 is used to implement the company between these components Connect letter.Bus system 705 further includes power bus, controlling bus and status signal bus in addition in addition to including data/address bus.But It is for the sake of clear explanation, various buses is all designated as bus system 705 in figure 6.
Wherein, user interface 703 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 702 in the embodiment of the present invention can be volatile memory or nonvolatile memory, Or it may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read- OnlyMemory, ROM), programmable read only memory (ProgrammableROM, PROM), Erasable Programmable Read Only Memory EPROM (ErasablePROM, EPROM), electrically erasable programmable read-only memory (ElectricallyEPROM, EEPROM) dodge It deposits.Volatile memory can be random access memory (RandomAccessMemory, RAM), be used as external slow at a high speed It deposits.By exemplary but be not restricted explanation, the RAM of many forms can be used, such as static RAM (StaticRAM, SRAM), dynamic random access memory (DynamicRAM, DRAM), Synchronous Dynamic Random Access Memory (SynchronousDRAM, SDRAM), double data speed synchronous dynamic RAM (DoubleDataRate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct rambus random access memory (DirectRambusRAM, DRRAM).The memory 702 of the system and method for description of the embodiment of the present invention is intended to include but unlimited In the memory of these and any other suitable type.
In some embodiments, memory 702 stores following element, executable modules or data structures or Their subset of person or their superset:Operating system 7021 and application program 7022.
Wherein, operating system 7021 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 7022 includes various application programs, such as media Player (MediaPlayer), browser (Browser) etc., are used to implement various applied business.Realize embodiment of the present invention side The program of method may be embodied in application program 7022.
In embodiments of the present invention, by calling program or the instruction of the storage of memory 702, specifically, can be application The program stored in program 7022 or instruction, processor 701 are used to detect the level state of CC1 pins and/or CC2 pins;It adopts With the level state of the CC1 pins determine whether the first charging equipment access and, using the level of the CC2 pins State determines whether that the second charging equipment accesses;It is logical using the described first charging when having determined the access of the first charging equipment 2 Vbus pins on road charge for the mobile terminal and, when having determined the access of the second charging equipment, using described the 2 Vbus pins of two charging paths charge for the mobile terminal.
The method that the embodiments of the present invention disclose can be applied to realize in processor 701 or by processor 701. Processor 701 may be a kind of IC chip, have the processing capacity of signal.During realization, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 701 or the instruction of software form.Above-mentioned processing Device 701 can be general processor, digital signal processor (DigitalSignalProcessor, DSP), application-specific integrated circuit (ApplicationSpecific IntegratedCircuit, ASIC), ready-made programmable gate array (FieldProgrammableGateArray, FPGA) either other programmable logic device, discrete gate or transistor logic Device, discrete hardware components.It can realize or perform disclosed each method, step and the box in the embodiment of the present invention Figure.General processor can be microprocessor or the processor can also be any conventional processor etc..With reference to the present invention The step of method disclosed in embodiment, can be embodied directly in hardware decoding processor and perform completion or use decoding processor In hardware and software module combination perform completion.Software module can be located at random access memory, and flash memory, read-only memory can In the storage medium of this fields such as program read-only memory or electrically erasable programmable memory, register maturation.The storage Medium is located at memory 702, and processor 701 reads the information in memory 702, and the step of the above method is completed with reference to its hardware Suddenly.
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 (ApplicationSpecificIntegratedCircuits, ASIC), digital signal processor (DigitalSignalProcessing, DSP), digital signal processing appts (DSPDevice, DSPD), programmable logic device (ProgrammableLogicDevice, PLD), field programmable gate array (Field-ProgrammableGateArray, FPGA), general processor, controller, microcontroller, microprocessor, other electronics lists for performing function of the present invention In first or combination.
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.
Optionally, processor 701 is additionally operable to, and detects the level state of the CC1 pins and CC2 pins respectively;Work as detection When changing to the level states of the CC1 pins, be determined as having the first charging equipment access and, it is described when detecting When the level state of CC2 pins changes, it is determined as having the access of the second charging equipment.
Optionally, processor 701 is additionally operable to, and passes through D+ pins and D- pins and the described first charging of the first charging path Equipment carries out charging and shakes hands, to determine the charge parameter of the first charging equipment;Drawn by the D+ pins and D- of the second charging path Foot carries out charging with second charging equipment and shakes hands, to determine the charge parameter of the second charging equipment.
Optionally, processor 701 is additionally operable to, and the switching switch of the mobile terminal is switched to the first charging path or Two charging paths.
Optionally, processor 701 is additionally operable to, and when having determined the access of the first charging equipment, generates the first switching signal;It is logical It crosses the sw_ctrl pins and first switching signal is sent to the switching switch so that the switching switch switches to First charging path;When having determined the access of the second charging equipment, the second switching signal is generated;Pass through the sw_ctrl pins Second switching signal is sent to the switching switch so that the switching switch switches to the second charging path.
For 700 embodiment of mobile terminal, since it is basicly similar to embodiment of the method, so the comparison of description is simple Single, the relevent part can refer to the partial explaination of embodiments of method.
In this way, in embodiments of the present invention, the pins of the Type-C interfaces of mobile terminal be divided to the first charging path and Second charging path, when according to the level state of the CC1 pins that detect and CC2 pins determined the first charging equipment and/or When second charging equipment accesses, can respectively by 2 Vbus pins of the first charging path and/or, the second charging path 2 Vbus pins charge for mobile terminal, by being powered by two charging equipments for mobile terminal, improve filling for mobile terminal Electric speed solves the problems, such as time-consuming longer for mobile terminal charging in prior art.
Embodiment five
Fig. 7 is the structure diagram of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal in Fig. 7 800 can be mobile phone, tablet computer, personal digital assistant (PersonalDigital Assistant, PDA) or vehicle-mounted computer Deng.
Mobile terminal 800 in Fig. 7 includes radio frequency (RadioFrequency, RF) circuit 810, memory 820, input list Member 830, display unit 840, processor 860, voicefrequency circuit 870, WiFi (WirelessFidelity) module 880 and power supply 890。
Wherein, input unit 830 can be used for receiving number input by user or character information and generation and mobile terminal The related signal input of 800 user setting and function control.Specifically, in the embodiment of the present invention, which can To include touch panel 831.Touch panel 831, also referred to as touch screen collect user on it or neighbouring touch operation (for example user uses the operations of any suitable object or attachment on touch panel 831 such as finger, stylus), and according to advance The formula of setting drives corresponding attachment device.Optionally, touch panel 831 may include touch detecting apparatus and touch controller Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and the signal that touch operation is brought is detected, by signal Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, The processor 860 is given again, and can be received the order that processor 860 is sent and be performed.Furthermore, it is possible to using resistance-type, The multiple types such as condenser type, infrared ray and surface acoustic wave realize touch panel 831.In addition to touch panel 831, input unit 830 can also include other input equipments 832, other input equipments 832 can include but is not limited to physical keyboard, function key It is one or more in (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc..
Wherein, display unit 840 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 800.Display unit 840 may include display panel 841, optionally, LCD or organic hairs may be used Display panel 841 is configured in the forms such as optical diode (OrganicLight-EmittingDiode, OLED).
It should be noted that touch panel 831 can cover display panel 841, touch display screen is formed, when the touch display screen is examined It measures and on it or after neighbouring touch operation, sends processor 860 to determine the type of touch event, be followed by subsequent processing device 860 provide 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 860 is the control centre of mobile terminal 800, utilizes various interfaces and connection whole mobile phone Various pieces are stored by running or performing the software program being stored in first memory 821 and/or module and call Data in second memory 822 perform the various functions of mobile terminal 800 and processing data, so as to mobile terminal 800 Carry out integral monitoring.Optionally, processor 860 may include one or more processing units.
In embodiments of the present invention, by calling store the first memory 821 in software program and/or module and/ Or the data in the second memory 822, processor 860 are used to detect the level state of CC1 pins and/or CC2 pins;Using The level state of the CC1 pins determine whether the first charging equipment access and, using the level shape of the CC2 pins State determines whether that the second charging equipment accesses;When having determined the access of the first charging equipment, using first charging path 2 Vbus pins for the mobile terminal charge and, when determined the second charging equipment access when, using described second 2 Vbus pins of charging path charge for the mobile terminal.
Optionally, the processor 860 is additionally operable to, and detects the level state of the CC1 pins and CC2 pins respectively;When When detecting that the level state of the CC1 pins changes, be determined as having the first charging equipment access and, when detecting When the level state of the CC2 pins changes, it is determined as having the access of the second charging equipment.
Optionally, the processor 860 is additionally operable to, and passes through the D+ pins and D- pins and described first of the first charging path Charging equipment carries out charging and shakes hands, to determine the charge parameter of the first charging equipment;By the D+ pins of the second charging path and D- pins carry out charging with second charging equipment and shake hands, to determine the charge parameter of the second charging equipment.
Optionally, the processor 860 is additionally operable to, and the switching switch of the mobile terminal is switched to the first charging path Or second charging path.
Optionally, the processor 860 is additionally operable to, when having determined the access of the first charging equipment, generation the first switching letter Number;First switching signal is sent to by the switching switch by the sw_ctrl pins so that the switching switch is cut Shift to the first charging path;When having determined the access of the second charging equipment, the second switching signal is generated;Pass through the sw_ctrl Second switching signal is sent to the switching switch by pin so that the switching switch switches to the second charging path.
For 800 embodiment of mobile terminal, since it is basicly similar to embodiment of the method, so the comparison of description is simple Single, the relevent part can refer to the partial explaination of embodiments of method.
In this way, in embodiments of the present invention, the pins of the Type-C interfaces of mobile terminal be divided to the first charging path and Second charging path, when according to the level state of the CC1 pins that detect and CC2 pins determined the first charging equipment and/or When second charging equipment accesses, can respectively by 2 Vbus pins of the first charging path and/or, the second charging path 2 Vbus pins charge for mobile terminal, by being powered by two charging equipments for mobile terminal, improve filling for mobile terminal Electric speed solves the problems, such as time-consuming longer for mobile terminal charging in prior art.
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 by the present invention, 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, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, device or unit 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 (10)

1. a kind of charging method, applied to the mobile terminal with Type-C interfaces, which is characterized in that the Type-C interfaces Pin is divided to the first charging path and the second charging path, and first charging path includes CC1 pins and 2 Vbus draw Foot, second charging path include CC2 pins and 2 Vbus pins, the method includes:
Detect the level state of CC1 pins and/or CC2 pins;
Using the level state of the CC1 pins determine whether the first charging equipment access and, using the CC2 pins Level state determine whether the second charging equipment access;
When having determined the access of the first charging equipment, 2 Vbus pins for using first charging path are whole for the movement End charging and, when determined the second charging equipment access when, use 2 Vbus pins of second charging path as institute State mobile terminal charging.
2. according to the method described in claim 1, it is characterized in that, the level state using the CC1 pins determine be It is no have the first charging equipment access and, using the level state of the CC2 pins determine whether the second charging equipment access The step of include:
The level state of the CC1 pins and CC2 pins is detected respectively;
When the level state for detecting the CC1 pins changes, be determined as having the first charging equipment access and, when When detecting that the level state of the CC2 pins changes, it is determined as having the access of the second charging equipment.
3. according to the method described in claim 1, it is characterized in that, first charging path and second charging path point Not Bao Kuo D+ pins and D- pins, the method further include:
Charging is carried out by the D+ pins and D- pins of the first charging path with first charging equipment to shake hands, to determine first The charge parameter of charging equipment;
Charging is carried out by the D+ pins and D- pins of the second charging path with second charging equipment to shake hands, to determine second The charge parameter of charging equipment.
4. according to the method described in claim 3, it is characterized in that, the mobile terminal includes switching switch, the method is also Including:
The switching switch of the mobile terminal is switched into the first charging path or the second charging path.
5. according to the method described in claim 4, it is characterized in that, the switching switch include sw_ctrl pins, it is described by institute It states the step of the switching switch of mobile terminal switches to the first charging path or the second charging path and includes:
When having determined the access of the first charging equipment, the first switching signal is generated;
First switching signal is sent to by the switching switch by the sw_ctrl pins so that the switching switch Switch to the first charging path;
When having determined the access of the second charging equipment, the second switching signal is generated;
Second switching signal is sent to by the switching switch by the sw_ctrl pins so that the switching switch Switch to the second charging path.
6. a kind of mobile terminal, the mobile terminal has Type-C interfaces, which is characterized in that the pin of the Type-C interfaces The first charging path and the second charging path are divided to, first charging path includes CC1 pins and 2 Vbus pins, institute The second charging path is stated including CC2 pins and 2 Vbus pins, the mobile terminal to include:
Detection module, for detecting the level state of CC1 pins and/or CC2 pins;
Determining module, for using the CC1 pins level state determine whether the first charging equipment access and, adopt Determine whether that the second charging equipment accesses with the level state of the CC2 pins;
Charging module, for when determined the first charging equipment access when, using 2 Vbus pins of first charging path For the mobile terminal charging and, when determined the second charging equipment access when, using 2 of second charging path Vbus pins charge for the mobile terminal.
7. mobile terminal according to claim 6, which is characterized in that the determining module includes:
Level state detection sub-module, for detecting the level state of the CC1 pins and CC2 pins respectively;
Determination sub-module is accessed, for when the level state for detecting the CC1 pins changes, being determined as thering is first to fill Electric equipment access and, when the level state for detecting the CC2 pins changes, be determined as having the second charging equipment Access.
8. mobile terminal according to claim 6, which is characterized in that first charging path and second charging are logical Road respectively includes D+ pins and D- pins, and the mobile terminal further includes:
First parameter determination module, for pass through the D+ pins of the first charging path and D- pins and first charging equipment into Row charging is shaken hands, to determine the charge parameter of the first charging equipment;
Second parameter determination module, for pass through the D+ pins of the second charging path and D- pins and second charging equipment into Row charging is shaken hands, to determine the charge parameter of the second charging equipment.
9. mobile terminal according to claim 8, which is characterized in that the mobile terminal includes switching switch, the shifting Dynamic terminal further includes:
Handover module, for the switching switch of the mobile terminal to be switched to the first charging path or the second charging path.
10. mobile terminal according to claim 9, which is characterized in that the switching switch includes sw_ctrl pins, institute Handover module is stated to include:
First switching signal generates submodule, for when having determined the access of the first charging equipment, generating the first switching signal;
First switching submodule is opened for first switching signal to be sent to the switching by the sw_ctrl pins It closes so that the switching switch switches to the first charging path;
Second switching signal generates submodule, for when having determined the access of the second charging equipment, generating the second switching signal;
Second switching submodule is opened for second switching signal to be sent to the switching by the sw_ctrl pins It closes so that the switching switch switches to the second charging path.
CN201611264050.6A 2016-12-30 2016-12-30 A kind of charging method and mobile terminal Pending CN108270253A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611264050.6A CN108270253A (en) 2016-12-30 2016-12-30 A kind of charging method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611264050.6A CN108270253A (en) 2016-12-30 2016-12-30 A kind of charging method and mobile terminal

Publications (1)

Publication Number Publication Date
CN108270253A true CN108270253A (en) 2018-07-10

Family

ID=62755333

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611264050.6A Pending CN108270253A (en) 2016-12-30 2016-12-30 A kind of charging method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108270253A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287137A (en) * 2019-06-24 2019-09-27 合肥联宝信息技术有限公司 Connection line, control method and controller
CN110879792A (en) * 2019-11-13 2020-03-13 Oppo广东移动通信有限公司 Electronic equipment and interface control method thereof
CN111817382A (en) * 2020-07-14 2020-10-23 维沃移动通信有限公司 Charger, data line and charging equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204669001U (en) * 2015-05-27 2015-09-23 深圳万思佳电器有限公司 Quick charge connector
CN105656115A (en) * 2015-11-30 2016-06-08 东莞酷派软件技术有限公司 Dual channel charging method, system and terminal thereof
CN106100084A (en) * 2016-07-28 2016-11-09 广东欧珀移动通信有限公司 Charging system, terminal, power supply adaptor and charging wire
CN106201951A (en) * 2016-07-19 2016-12-07 青岛海信电器股份有限公司 Terminal unit based on USB Type C interface, external equipment and electric power system
CN106253400A (en) * 2016-08-25 2016-12-21 维沃移动通信有限公司 A kind of charging method, mobile terminal and charger

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204669001U (en) * 2015-05-27 2015-09-23 深圳万思佳电器有限公司 Quick charge connector
CN105656115A (en) * 2015-11-30 2016-06-08 东莞酷派软件技术有限公司 Dual channel charging method, system and terminal thereof
CN106201951A (en) * 2016-07-19 2016-12-07 青岛海信电器股份有限公司 Terminal unit based on USB Type C interface, external equipment and electric power system
CN106100084A (en) * 2016-07-28 2016-11-09 广东欧珀移动通信有限公司 Charging system, terminal, power supply adaptor and charging wire
CN106253400A (en) * 2016-08-25 2016-12-21 维沃移动通信有限公司 A kind of charging method, mobile terminal and charger

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287137A (en) * 2019-06-24 2019-09-27 合肥联宝信息技术有限公司 Connection line, control method and controller
CN110879792A (en) * 2019-11-13 2020-03-13 Oppo广东移动通信有限公司 Electronic equipment and interface control method thereof
CN110879792B (en) * 2019-11-13 2024-01-23 Oppo广东移动通信有限公司 Electronic equipment and interface control method thereof
CN111817382A (en) * 2020-07-14 2020-10-23 维沃移动通信有限公司 Charger, data line and charging equipment

Similar Documents

Publication Publication Date Title
CN106844265B (en) A kind of control method and mobile terminal of general-purpose serial bus USB interface
CN108268389A (en) The insertion detection method and mobile terminal of a kind of equipment
CN106208206B (en) A kind of wireless charging method and mobile terminal
CN108270253A (en) A kind of charging method and mobile terminal
CN206878505U (en) A kind of charging circuit and mobile terminal
CN108268403A (en) A kind of Type-C interface protective circuits and method, mobile terminal
CN108268395A (en) A kind of method and mobile terminal of data communication
CN108271093A (en) The processing method and mobile terminal of a kind of access device
CN108268411A (en) The method and mobile terminal of a kind of data transmission
CN108268402A (en) Protection circuit, guard method and the mobile terminal of Type-C interfaces
CN108268405A (en) Protection circuit, guard method and the mobile terminal of Type-C interfaces
CN108270255B (en) A kind of charging method and mobile terminal
CN106684967B (en) A kind of charging method and mobile terminal of mobile terminal
CN107465234B (en) A kind of charge control method, mobile terminal and adapter
CN108268089A (en) A kind of interface protector, mobile terminal and method
CN108268090A (en) A kind of interface protector, mobile terminal and method
CN108271092B (en) Processing method of access equipment and mobile terminal
CN108268396B (en) Processing method of access equipment and mobile terminal
CN108268397A (en) The processing method and mobile terminal of a kind of access device
CN108233468A (en) A kind of charging method and mobile terminal
CN108268393A (en) The processing method and mobile terminal of a kind of access device
CN108268091B (en) A kind of interface protector, mobile terminal and method
CN108270256B (en) A kind of charging method and mobile terminal
CN108270042B (en) A kind of charging method and mobile terminal
CN107482736B (en) A kind of method for preventing USB interface short circuit from burning and electronic equipment

Legal Events

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

Application publication date: 20180710

RJ01 Rejection of invention patent application after publication