CN106058983B - A kind of charging control circuit, electronic equipment and charge control method - Google Patents

A kind of charging control circuit, electronic equipment and charge control method Download PDF

Info

Publication number
CN106058983B
CN106058983B CN201610515398.1A CN201610515398A CN106058983B CN 106058983 B CN106058983 B CN 106058983B CN 201610515398 A CN201610515398 A CN 201610515398A CN 106058983 B CN106058983 B CN 106058983B
Authority
CN
China
Prior art keywords
usb
switching module
module
charging
usb interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610515398.1A
Other languages
Chinese (zh)
Other versions
CN106058983A (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 CN201610515398.1A priority Critical patent/CN106058983B/en
Publication of CN106058983A publication Critical patent/CN106058983A/en
Application granted granted Critical
Publication of CN106058983B publication Critical patent/CN106058983B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • H02J7/0021
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • H01M10/441Methods for charging or discharging for several batteries or cells simultaneously or sequentially
    • 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/02Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries for charging batteries from ac mains by converters
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Manufacturing & Machinery (AREA)
  • Chemical & Material Sciences (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Electrochemistry (AREA)
  • General Chemical & Material Sciences (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The present invention provides a kind of charging control circuits, belong to mobile communication technology field, solve the problems, such as in prior art mesohigh fast charge technology as the raising charge efficiency of charging voltage declines.The circuit includes: power control module, USB interface, microcontroller and USB switching module, wherein the USB switching module receives the switch-over control signal that the microcontroller is sent by the channel selecting port, and the output end of the power control module and ground wire are switched to the data line D-/D+ of the USB interface according to the switch-over control signal, so that the power control module carries out predetermined current charging by the USB interface.The charging control circuit of the embodiment of the present invention makes in same voltage input, carries out electric current input to power management module simultaneously by two-way charging path, realizes predetermined current charging.

Description

A kind of charging control circuit, electronic equipment and charge control method
Technical field
The present invention relates to mobile communication technology fields, more particularly to a kind of charging control circuit, electronic equipment and charging Control method.
Background technique
With the display screen of electronic equipment is gradually increased, function is increasing and people use electronic equipment frequency Rate gradually increases, and the electric quantity consumption of electronic equipment gradually increases, therefore, electronic equipment electric quantity consumption totally when, how It is rapidly completed in short time and charges to electronic equipment, be a problem in the urgent need to address.Electronic equipment is most popular Charging interface is microUSB 5pin interface, and electronic equipment realizes charging and transmission data etc. by microUSB 5pin interface Basic function.Since the physics conveyance capacity maximum of microUSB 5pin interface can only achieve 2A, in the prior art, usually adopt With quick charge is realized by the way of improving charging voltage, QC (the Quick charge quick charge) 2.0 such as high pass be high Press the high pressure fast charge technology of fast charge technology and MTK.With the 2.0 high pressure fast charge technology of QC (Quick charge quick charge) of high pass For, specific implementation is: being based on microUSB 5pin interface, the overcurrent of interface is designed still according to 2A, improves charging Voltage is to 9V or 12V.The QC2.0 high pressure fast charge technology of high pass charges after promoting voltage relative to traditional 5V, 2A charging technique Faster, but charge efficiency can decline speed with the raising of charging voltage;Also, it will lead to charging chip during the work time Fever is serious, and electronic equipment complete machine temperature in charging rises, and user experience is relatively poor.
As it can be seen that rapid nitriding in the prior art at least has the following deficiencies: the raising charging with charging voltage Efficiency can decline;Electronic equipment complete machine temperature in charging rises, and user experience is relatively poor.
Summary of the invention
The present invention provides a kind of charging control circuit, electronic equipment and charge control method, solves high in the prior art Press the problem of declining in fast charge technology with the raising charge efficiency of charging voltage and electronic equipment in charging in complete machine temperature It rises, the relatively poor problem of user experience.
In a first aspect, the embodiment of the invention provides a kind of charging control circuits, comprising: power control module, USB connect Mouth, microcontroller and USB switching module, in which:
The output end of the power control module is connected to the power supply line VBUS of the USB interface;
The output end and ground wire of the power control module by the USB switching module, respectively can on-off be connected to institute State the data line D-/D+ of USB interface;
The channel selecting port of the USB switching module is connected to the input/output port of the microcontroller;
The USB switching module receives the switching control that the microcontroller is sent by the channel selecting port and believes Number, and the output end of the power control module and ground wire are switched to by the USB interface according to the switch-over control signal Data line D-/D+, so that the power control module carries out predetermined current charging by the USB interface.
Second aspect, the embodiment of the invention also provides a kind of electronic equipment, comprising: power management module, USB interface, Application processor and USB switching module, in which:
The power supply line VBUS of the USB interface is connected to the input terminal of the power management module;
The data line D-/D+ of the USB interface by the USB switching module respectively can on-off be connected to the power supply pipe Manage the input terminal and ground wire of module;
The channel selecting port of the USB switching module is connected to the input/output port of the application processor;
The USB switching module receives the switching control that the application processor is sent by the channel selecting port and believes Number, and the data line D-/D+ of the USB interface is switched to according to the switch-over control signal institute of the power management module Input terminal and ground wire are stated, so that carrying out predetermined current charging to the power management module by the USB interface.
The third aspect, the embodiment of the invention also provides a kind of charge control methods, using aforementioned charging control circuit, institute The method of stating includes: that microcontroller receives charge control instruction, charge control instruction include: synchronous averaging quick charge when Between;Microcontroller sends switch-over control signal to USB switching module according to the time of the synchronous averaging quick charge;It is described The output end of the power control module and ground wire are switched to the USB according to the switch-over control signal by USB switching module The data line D-/D+ of interface, so that the power control module carries out predetermined current charging by the USB interface.
Fourth aspect, the embodiment of the invention also provides a kind of charge control methods, include: applied to aforementioned electronic devices Application processor sends charge control instruction, and the charge control instruction includes: the time of synchronous averaging quick charge;It is described to answer Switch-over control signal is sent to the USB switching module according to the time of the synchronous averaging quick charge with processor;It is described The data line D-/D+ of the USB interface is respectively turned on to power management mould by USB switching module according to the switch-over control signal The input terminal and ground of block, so that carrying out predetermined current charging to the power management module by the USB interface.
The charging control circuit of the embodiment of the present invention, it is defeated by the way that two-way is arranged between USB interface and power control module USB switching module out, and the data line that USB switching module connects power control module and USB interface is controlled by microcontroller, Extension charging path is formed, so that being carried out simultaneously to power management module in same voltage input by two-way charging path Predetermined current charging is realized in electric current input.Meanwhile not needing to improve the input voltage of power management module, electronic equipment is filling Complete machine temperature rises unobvious when electric, and the user experience is improved.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to required in the embodiment of the present invention The attached drawing used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, right For those of ordinary skill in the art, without any creative labor, it can also be obtained according to these attached drawings Other attached drawings.
Fig. 1 is the structural schematic diagram of the charging control circuit of the embodiment of the present invention one;
Fig. 2 is the structural schematic diagram of USB switching module in the embodiment of the present invention one;
Fig. 3 is the charging control circuit concrete structure schematic diagram of the embodiment of the present invention one;
Fig. 4 is the structural schematic diagram of the electronic equipment of the embodiment of the present invention two;
Fig. 5 is the electronic equipment concrete structure schematic diagram of the embodiment of the present invention two;
Fig. 6 is one of the flow chart of charge control method of the embodiment of the present invention three;
Fig. 7 is the two of the flow chart of the charge control method of the embodiment of the present invention three;
Fig. 8 is one of the flow chart of charge control method of the embodiment of the present invention four;
Fig. 9 is the two of the flow chart of the charge control method of the embodiment of the present invention four;
Figure 10 is the structure chart of the electronic equipment of the embodiment of the present invention five;
Figure 11 is the structure chart of the electronic equipment of the embodiment of the present invention six.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Technical solution disclosed by the embodiments of the present invention is suitable for being filled by USB (UniversalSerialBUS) interface Electricity electronic equipment and charging control circuit, USB (UniversalSerialBUS) interface include: standard USB interface, MiniUSB interface, MicroUSB interface.In following embodiment, for ease of description, to be set by MicroUSB interface to electronics For being charged, charging control circuit of the invention, electronic equipment and charge control method are illustrated.It can manage Solution, the solution of the present invention apply also for other types of USB interface.
MicroUSB interface is defined as follows: data line D-, data line D+, ground wire GND and power supply line VBUS (positive 5V), and ID (is divided into two kinds of interfaces, A: is connected with ground wire;B: it is not connected with ground wire).
Only the port used is described in the embodiment of the present invention and attached drawing.
Embodiment one:
As shown in Figure 1, the embodiment of the invention discloses a kind of charging control circuits, comprising: power control module 100, USB Interface 110, microcontroller 120 and USB switching module 130, in which:
The output end of the power control module 100 is connected to the power supply line VBUS of the usb 1 10;
The output end and ground wire of the power control module 100, respectively can on-off companies by the USB switching module 130 It is connected to the data line D-/D+ of the usb 1 10;
The channel selecting port of the USB switching module 130 is connected to the input/output port of the microcontroller 120;
The USB switching module 130 receives the switching control that the microcontroller 120 is sent by the channel selecting port Signal processed, and the output end of the power control module 100 and ground wire are switched to by the USB according to the switch-over control signal The data line D-/D+ of interface 110 fills so that the power control module 100 carries out predetermined current by the usb 1 10 Electricity.
The input/output port of the microcontroller 120 by the USB switching module 130 respectively can on-off be connected to institute The data line D-/D+ for stating usb 1 10, for being believed when the USB switching module 130 according to the switching control received When number the data line D-/D+ of the usb 1 10 being respectively turned on to the input/output port of the microcontroller 120, pass through The usb 1 10 carries out data transmission.
The difference that the switch-over control signal that the microcontroller 120 is sent is used to select to connect in USB switching module 130 is logical Road.
Optionally, the USB switching module includes at least a binary channel logic switch.As shown in Fig. 2, the USB is cut Changing the mold block can be the USB switching switch (USB Switch) of binary channel.
USB switching switch includes: that data switching output port (Data Switch Output) D+, data switching are defeated Exit port D-, usb data input/output port (USB Data) USB-, usb data input/output port USB+, MHL data are defeated Enter output port (MHL Data) MHL-, MHL data input output ports MHL+, access selection port SEL, and output enable end Mouth OE, the USB switching switch further includes power port VCC and ground wire GND (not shown).Wherein, data switching output When port D+/D- is as input channel all the way, then data input output ports USB-/USB+ is that output channel, data are defeated all the way Entering output port MHL-/MHL+ is another output access;When data switching output port D+/D- is as output channel all the way When, then data input output ports USB-/USB+ is that input channel, data input output ports MHL-/MHL+ are another all the way Road input channel.By the way that high level or low level is arranged to access selection port SEL, can control D+/D- switch to USB-/ USB+ access is connected, or control D+/D- is switched to and connected with MHL-/MHL+ access.
Below by taking USB switching module is the USB switching switch of binary channel as an example, the charging for embodiment that the present invention will be described in detail The concrete scheme of control circuit.
When it is implemented, the power control module 100, for the alternating voltage (such as 220 volts of alternating currents) of alternating current to be turned The regulation and control of output power when changing the low-voltage DC that electronic equipment uses into, and controlling charging.Power control module can To realize using existing power control chip, or power control circuit in the prior art is used, details are not described herein again.
As shown in figure 3, power supply line (VBUS) electrical connection of the output end and usb 1 10 of power control module 100;Function The output end of rate control module 100 and the data terminal (D-) of usb 1 10 can on-off electrical connections.
The power supply line VBUS of the usb 1 10 is connected with the output end of the power control module 100, and the USB connects The ground wire of mouth 110 and the ground wire of charging control circuit connect, and form a normal charge access.
The data of the USB switching module 130 switch the output port D-/D+ data line with the usb 1 10 respectively D- is connected with data line D+, the usb data input/output port USB-/USB+ of the USB switching module 130 respectively with it is described micro- The input/output port of controller 120 connects, when the USB switching module 130 switches to data switching output port D+/D- When connecting with USB-/USB+, data transmission path is formed.Microcontroller 120 is by the data transmission path and is connected to institute The electronic equipment stated on usb 1 10 carries out information exchange.
The data input output ports MHL-/MHL+ of the USB switching module 130 respectively with the power control module 100 output end is connected with the ground wire of the charging control circuit, when data are switched output end by the USB switching module 130 When mouth D+/D- is switched to MHL-/MHL connection, extension charging path is formed.
The input and output that the access selection port SEL of the USB switching module 130 is connected to the microcontroller 120 connect Mouthful, the switch-over control signal for being exported according to the microcontroller 120 is switched on the data transmission path or the expansion Open up charging path.When it is implemented, the switch-over control signal is high level and low level, when the microcontroller 120 is to logical When low level is arranged in road selection port SEL, it can control the USB switching module 130 and cut data switching output port D+/D- It shifts to and is connected with USB-/USB+, form data transmission path;When height is arranged to access selection port SEL in the microcontroller 120 When level, it can control the USB switching module 130 and data switching output port D+/D- switched to and connect with MHL-/MHL+ It is logical, form extension charging path.
When it is implemented, when the power control module 100 carries out predetermined current charging by the usb 1 10, institute State the sum of the charging current of charging current and the extension charging path that preset charged electric current is the normal charge access.
The charging control circuit of the embodiment of the present invention, it is defeated by the way that two-way is arranged between USB interface and power control module USB switching module out, and the data line that USB switching module connects power control module and USB interface is controlled by microcontroller, Extension charging path is formed, so that being carried out simultaneously to power management module in same voltage input by two-way charging path Predetermined current charging is realized in electric current input.Meanwhile not needing to improve the input voltage of power management module, electronic equipment is filling Complete machine temperature rises unobvious when electric, and the user experience is improved.
Embodiment two:
As shown in figure 4, the electronic equipment includes: power management mould the embodiment of the invention discloses a kind of electronic equipment Block 400, application processor 410, USB interface 420 and USB switching module 430, in which:
The power supply line VBUS of the USB interface 420 is connected to the input terminal of the power management module 400;
The data line D-/D+ of the USB interface 420 by the USB switching module 430 respectively can on-off be connected to it is described The input terminal and ground wire of power management module 400;
The channel selecting port of the USB switching module 430 is connected to the input/output terminal of the application processor 410 Mouthful;
The USB switching module 430 receives the switching that the application processor 410 is sent by the channel selecting port Signal is controlled, and the data line D-/D+ of the USB interface 420 is switched to by the power supply pipe according to the switch-over control signal The input terminal and ground wire of module 400 are managed, so that carrying out by the USB interface 420 to the power management module 400 pre- If electric current charges.
When it is implemented, when carrying out predetermined current charging to the power management module 400 by the USB interface 420, The preset charged electric current is the charging current of the normal charge access and the sum of the charging current of the extension charging path.
The input/output port of the application processor by the USB switching module respectively can on-off be connected to it is described The data line D-/D+ of USB interface, will be described according to the switch-over control signal received for working as the USB switching module When the data line D-/D+ of USB interface is respectively turned on to the input/output port of the application processor, pass through the USB interface Carry out data transmission.
The switch-over control signal that the application processor 410 is sent is used for the difference for selecting to connect in USB switching module 430 Channel.
Optionally, the USB switching module includes at least a binary channel logic switch.As shown in Fig. 2, the USB is cut Changing the mold block can be the USB switching switch (USB Switch) of binary channel.The structure and port definition ginseng of the USB switching switch See the description of USB switching switch in embodiment one, details are not described herein again.
Below by taking the USB switching switch that USB switching module is the binary channel in Fig. 2 as an example, the present invention will be described in detail implements The concrete scheme of the electronic equipment of example.
When it is implemented, the power management module 400 is the power management chip in electronic equipment, it to be used for integrated multipath Power supply output, to including application processor 410 including multiple function module circuits or chip power supply, power management module 400 Input terminal be current signal input, the ground wire of power management module 400 is the common ground of electronic equipment.
Application processor 410 (Application Processor) is the processor core in the motherboard circuit of electronic equipment Piece, for completing to handle the control of entire electronic equipment Hardware & software system and program, including to USB switching module 430 Channel switching control.
As shown in figure 5, the power supply line VBUS of the USB interface 420 and the input terminal of the power management module 400 connect It connects, the ground wire of the USB interface 420 is connected with the common ground of electronic equipment, forms normal charge access.
The data of the USB switching module 430 switch the output port D-/D+ data line with the USB interface 420 respectively D- is connected with data line D+, and the usb data input/output port USB-/USB+ of the USB switching module 430 is answered with described respectively It is connected with the input/output port of processor 410, is connect when the USB switching module 430 switches to D+/D- with USB-/USB+ When logical, data transmission path is formed.Application processor 410 is by the data transmission path and is connected to the USB interface 420 On charging control circuit carry out information exchange.
The data input output ports MHL-/MHL+ of the USB switching module 430 respectively with the power management module 400 input terminal is connected with the common ground of the electronic equipment, when the USB switching module 430 by D+/D- switch to When MHL-/MHL+ is connected, extension charging path is formed.
The access selection port SEL of the USB switching module 430 is connected to the input and output of the application processor 410 Interface, the switch-over control signal for being exported according to the application processor 410 are switched on the data transmission path or institute State extension charging path.When it is implemented, the switch-over control signal is high level and low level, when the application processor When 410 pairs of access selection port SEL setting low levels, it can control the USB switching module 430 and data switched into output port D+/D- is switched to be connected with USB-/USB+, forms data transmission path;When the application processor 410 is to access selection port SEL be arranged high level when, can control the USB switching module 430 by data switching output port D+/D- switch to MHL-/MHL+ is connected, and forms extension charging path.
Under default conditions, the data switching output port D- and usb data input/output port of USB switching module 430 USB- connection, data switching output port D+ are connected with usb data input/output port USB+, form data transmission path.Electricity Sub- equipment and charging control circuit carry out information exchange according to preset communication protocol by data transmission path, such as: it sends Charged state inquiry instruction;Receive the feedback signal etc. of the charged state inquiry instruction.The charged state inquiry instruction into One step includes: the charging equipment type identification instruction of the charging control circuit, carries out starting predetermined current charging synchronic command Deng.
When starting predetermined current charging, the application processor period exports low level to the USB switching module The data of the data switching output port D-/D+ to the usb data input/output port USB-/USB+ are connected in the port SEL Transmission channel, convenient for the state of charging control circuit described in electronic equipment cyclic polling.
The electronic equipment of the embodiment of the present invention, by the way that doubleway output is arranged between USB interface and power management module USB switching module, and switched to the data line of USB interface and power management mould by application processor control USB switching module Block connection forms extension charging path, so that in same voltage input, by two-way charging path simultaneously to power management mould Block carries out electric current input, realizes predetermined current charging.Method through the embodiment of the present invention does not need to improve power management module Input voltage, electronic equipment charging when complete machine temperature rise it is unobvious, the user experience is improved.
Embodiment three:
As shown in fig. 6, the embodiment of the invention discloses a kind of charge control method, applied to charging described in embodiment one Control circuit, the charge control method include: step 600 to step 620.
Step 600, microcontroller receives charge control instruction, and the charge control instruction includes: that synchronous averaging quickly fills The time of electricity.
Referring to embodiment one, the charging control circuit includes: power control module, USB interface, microcontroller and USB Switching module.Under default conditions, the input/output port of the microcontroller of the charging control circuit by USB switching module with The data line of the USB interface is connected, for being carried out data transmission by the USB interface, comprising: pass through the USB interface Receive the charge control instruction that charging equipment is sent.Wherein, charge control instruction include: synchronous averaging quick charge when Between.
Step 610, microcontroller is cut according to the time of synchronous averaging quick charge transmission switch-over control signal to USB Change the mold block.
The USB switching module receives the switch-over control signal of the microcontroller by channel selecting port.
The switch-over control signal is high level.
Step 620, the USB switching module is according to the switch-over control signal by the output end of the power control module The data line D-/D+ of the USB interface is switched to ground wire, so that the power control module is carried out by the USB interface Predetermined current charging.
As shown in figure 3, the data input output ports MHL-/MHL+ of the USB switching module 130 respectively with the power The output end of control module 100 is connected with the ground wire of the charging control circuit, when the USB switching module 130 cuts D+/D- When shifting to MHL-/MHL+ connection, extension charging path is formed.The power supply line VBUS of the usb 1 10 and the power control The output end of molding block 100 connects, and the ground wire of the usb 1 10 and the ground wire of charging control circuit connect, and forms one often Advise charging path.At this point, the power control module 100 carries out predetermined current charging to electronic equipment by USB interface, it is described Preset charged electric current is the charging current of the normal charge access and the sum of the charging current of the extension charging path.
When it is implemented, can control institute when high level is arranged to access selection port SEL in the microcontroller 120 It states USB switching module 130 and switches to data switching output port D+/D- and connected with MHL-/MHL+, it is logical to form extension charging Road.
Optionally, the charging control signal further include: the time of synchronous averaging data transmission.As shown in fig. 7, described The output end of the power control module and ground wire are switched to the USB according to the switch-over control signal by USB switching module After the step of data line D-/D+ of interface, the method also includes:
Step 630, the microcontroller sends switch-over control signal to USB switching module according to the specified period.
When it is implemented, microcontroller passes through charge control instruction setting according to the specified period or according to electronic equipment Period control USB switching module is extended the switching of charging path and data transmission path.The microcontroller is to specified week Phase carries out timing, when reaching the specified period, sends switch-over control signal to USB switching module, the switching signal is Low level.When it is implemented, the microcontroller carries out the instruction cycle by timer or counter or the clock cycle is counted When, to judge whether to reach the specified period.Those skilled in the art can also judge whether to reach using other modes The specified period, which is not limited by the present invention.
Step 640, the USB switching module is according to the switch-over control signal by the data line D-/D+ of the USB interface It is respectively turned on to the input/output port of the microcontroller.
Low level is arranged to access selection port SEL in the microcontroller 120, and USB switching module detects that access selects Port SEL be low level after, the data line D-/D+ of the USB interface is respectively turned on to the input and output of the microcontroller Port forms data transmission path.
Step 650, the microcontroller is carried out data transmission by the USB interface.
The microcontroller carries out data transmission including: that the microcontroller is connect by the USB by the USB interface The charged state inquiry instruction that mouth reception electronic equipment is sent;The microcontroller sends the anti-of the charged state inquiry instruction Feedback signal.
As shown in figure 3, the USB switching module 130 data switching output port D-/D+ respectively with the USB interface 110 data line D- is connected with data line D+, the usb data input/output port USB-/USB+ of the USB switching module 130 Connected respectively with the input/output port of the microcontroller 120, when the USB switching module 130 by D+/D- switch to When USB-/USB+ is connected, data transmission path is formed.Microcontroller 120 is by the data transmission path and is connected to described Electronic equipment on usb 1 10 carries out information exchange.
When it is implemented, can control institute when low level is arranged to access selection port SEL in the microcontroller 120 It states USB switching module 130 and switches to data switching output port D+/D- and lead to USB-/USB+ connection, formation data transmission Road.
Optionally, the USB switching module includes at least a binary channel logic switch.
Under default conditions, low level is arranged to access selection port SEL in the microcontroller 120, controls the USB switching Data switching output port D+/D- is switched to and is connected with USB-/USB+ by module 130, forms data transmission path.The method Further include: the microcontroller receives charged state inquiry instruction;The microcontroller sends the charged state inquiry instruction Feedback signal.Wherein, the charged state inquiry instruction includes: charging control circuit identification instruction.Charging control circuit The control instruction of microcontroller cycle detection USB interface input, described instruction includes: charged state inquiry instruction and charge control Instruction.After microcontroller receives charged state inquiry instruction, the information such as feedback charging control circuit type, charge mode are extremely Electronic equipment.After microcontroller receives the charge control instruction of electronic equipment transmission, according in charge control instruction Time of synchronous averaging quick charge start timer, start timing at the time of generating switch-over control signal, and in timing After to access selection port SEL be arranged high level, control the USB switching module 130 by data switch output port D+/ D- is switched to be connected with MHL-/MHL+, forms extension charging path.
Then, microcontroller is according to the specified period, and it is low level that access selection port SEL, which is arranged, in the period, convenient for default Carry out data transmission in electric current charging process with electronic equipment, comprising: the microcontroller receives charged state inquiry instruction;Institute State the feedback signal that microcontroller sends the charged state inquiry instruction.
The charge control method of the embodiment of the present invention, it is defeated by the way that two-way is arranged between USB interface and power control module USB switching module out, and the data line that USB switching module connects power control module and USB interface is controlled by microcontroller, Extension charging path is formed, so that being carried out simultaneously to power management module in same voltage input by two-way charging path Predetermined current charging is realized in electric current input.Meanwhile not needing to improve the input voltage of power management module, electronic equipment is filling Complete machine temperature rises unobvious when electric, and the user experience is improved.
Example IV:
As shown in figure 8, the embodiment of the invention discloses a kind of charge control method, applied to electronics described in embodiment two Equipment, the charge control method include: step 800 to step 820.
Step 800, application processor sends charge control instruction, and the charge control instruction includes: that synchronous averaging is quick The time of charging.
Referring to embodiment two, the electronic equipment includes: that power management module, application processor, USB interface and USB are cut Change the mold block, in which: the USB switching module receives the switching control that the application processor is sent by the channel selecting port Signal processed, and the data line D-/D+ of the USB interface is switched to by the power management module according to the switch-over control signal The input terminal and ground wire so that by the USB interface to the power management module carry out predetermined current charging.Default Under state, the input/output port of the application processor is connected by the data line of USB switching module and the USB interface, For being carried out data transmission by the USB interface, comprising: instruct and charge by the charge control that the USB interface is sent Status query instruction.Wherein, the charge control instruction includes: the time of synchronous averaging quick charge.
Step 810, the application processor sends switch-over control signal according to the time of the synchronous averaging quick charge To the USB switching module.
The structure of the electronic equipment is as shown in figure 5, the access selection port SEL of the USB switching module 430 is connected to The input/output interface of the application processor 410, the switch-over control signal for being exported according to the application processor 410 are cut The data transmission path or the extension charging path are led in changing-over.The switch-over control signal includes high level.
Step 820, the USB switching module is according to the switch-over control signal by the data line D-/D+ of the USB interface It is respectively turned on to the input terminal of power management module and ground, so that being carried out by the USB interface to the power management module Predetermined current charging.
When it is implemented, can control when high level is arranged to access selection port SEL in the application processor 410 Data switching output port D+/D- is switched to and is connected with MHL-/MHL+ by the USB switching module 430, and it is logical to form extension charging Road.The power supply line VBUS of the USB interface is connected with ground wire with the input terminal of the power management module 400, forms one often Advise charging path.The preset charged electric current is the charging current of the normal charge access and filling for the extension charging path The sum of electric current.
The data input output ports MHL-/MHL+ of the USB switching module 430 respectively with the power management module 400 input terminal is connected with the common ground of the electronic equipment, when the USB switching module 430 by D+/D- switch to When MHL-/MHL+ is connected, extension charging path is formed.
Optionally, as shown in figure 9, the USB switching module according to the switch-over control signal by the number of the USB interface According to line D-/D+ be respectively turned on to power management module input terminal and ground the step of after the charge control method further include:
Step 830, the application processor sends switch-over control signal to USB switching module according to the specified period.
When it is implemented, the application processor is extended charging path according to control of specified period USB switching module With the switching of data transmission path.The application processor carries out timing to the specified period, when reaching the specified period, hair Send switch-over control signal to USB switching module, the switching signal is low level.When it is implemented, the application processor is logical It crosses timer or counter carries out the instruction cycle or the clock cycle carries out timing, to judge whether to reach the specified period.This Field technical staff can also use other modes judge whether to reach the specified period, and which is not limited by the present invention. The specified period can be preset value, be also possible to the periodic quantity specified in the charge control instruction of electronic equipment transmission.
Step 840, the USB switching module is according to the switch-over control signal by the data line D-/D+ of the USB interface It is respectively turned on to the input/output port of the application processor.
Low level is arranged to access selection port SEL in the application processor, and USB switching module detects that access selects end After mouthful SEL is low level, the data line D-/D+ of the USB interface is respectively turned on to the input and output of the application processor Port forms data transmission path.When it is implemented, when low electricity is arranged to access selection port SEL in the application processor 410 Usually, can control the USB switching module 430 by data switching output port D+/D- switch to USB-/USB+ connect, Form data transmission path.
The data of the USB switching module 430 switch the output port D-/D+ data line with the USB interface 420 respectively D- is connected with data line D+, and the usb data input/output port USB-/USB+ of the USB switching module 430 is answered with described respectively It is connected with the input/output port of processor 410, when the USB switching module 430 switches data switching output port D+/D- To when connecting with USB-/USB+, data transmission path is formed.Application processor 410 passes through the data transmission path and connection Charging control circuit on the USB interface 420 carries out information exchange.Optionally, the USB switching module includes at least one A binary channel logic switch.
Step 850, the application processor is carried out data transmission by the USB interface.
The application processor carries out data transmission including: that the application processor sends charging by the USB interface Status query instruction;The application processor receives the feedback signal of the charged state inquiry instruction, and according to the feedback The process of signal control charging.
The application processor of electronic equipment switches USB switching module by data and exports by sending switch-over control signal Port D+/D- is switched to be connected with MHL-/MHL+, is formed after extension charging path, the application processor is according to specified week Phase regularly sends switch-over control signal to USB switching module.
Under default conditions, low level is arranged to access selection port SEL in the application processor 410, controls the USB and cuts Data switching output port D+/D- is switched to and is connected with USB-/USB+ by mold changing block 430, forms data transmission path.Using place Reason device sends charged state inquiry instruction, institute to the charging control circuit for being connected to USB interface by the data transmission path Stating charged state inquiry instruction includes: the instruction of charging circuit type identification.The method also includes: the application processor is sent Charged state inquiry instruction;The application processor receives the feedback signal of the charged state inquiry instruction, and according to described The process of feedback signal control charging.After charging control circuit is identified by, application processor is transmitted logical by the data The charging control circuit that road direction is connected to USB interface sends charge control instruction, specifies the time of synchronous averaging quick charge, refers to Show that extension charging path is connected in charging control circuit timing, predetermined current charging is carried out to electronic equipment.
Meanwhile electronic equipment starts timing, and extension charging path is connected when reaching the time of synchronous averaging quick charge, Realize predetermined current charging.In predetermined current charging process, the application processor of electronic equipment will according to specified period timing Access selection port SEL is low level, and the period is switched to data transmission path for charging circuit is extended, convenient for filling in predetermined current In electric process and charging control circuit carries out information exchange, detects the state of charging control circuit.
When it is implemented, charging before application processor sends charge control instruction, and carrying out predetermined current The application processor of Cheng Zhong, electronic equipment can all send charged state inquiry instruction, and receive the charged state inquiry The feedback signal of instruction, and according to the process of feedback signal control charging.The charged state inquiry instruction is used for filling Electric control circuit is identified and is judged whether charging control circuit works normally, to guarantee the steady of charging process Fixed operation.
The charge control method of the embodiment of the present invention, it is defeated by the way that two-way is arranged between USB interface and power management module USB switching module out, and switched to the data line of USB interface and power supply pipe by application processor control USB switching module Module connection is managed, extension charging path is formed, so that in same voltage input, by two-way charging path simultaneously to power supply pipe It manages module and carries out electric current input, realize predetermined current charging.Method through the embodiment of the present invention does not need to improve power management The input voltage of module, electronic equipment complete machine temperature rising in charging is unobvious, and the user experience is improved.
This is further described to the application scenarios that mobile terminal charges by USB interface below with reference to a charger The charge control method of invention.Wherein, the charger includes charging control circuit described in embodiment one, the mobile terminal For electronic equipment described in embodiment two.Charging process includes step S1 to step S7.
S1, control USB switching module connect data transmission path.
When charger connection power supply, and it is connected to after the USB interface device of mobile terminal by USB data line, charger Microcontroller control charger USB switching module connect data transmission path, meanwhile, application processor control mobile terminal The USB switching module connect data transmission path.
When it is implemented, application processor export low level to mobile terminal USB switching module access selection port, The USB switching module is controlled to switch to data switching output port D+/D- and USB-/USB+ connection, formation data transmission Access.
Microcontroller export low level to charger USB switching module access selection port, control USB switching Data switching output port D+/D- is switched to and is connected with USB-/USB+ by module, forms data transmission path.
S2, mobile terminal send the instruction of identification charger type by the data transmission path.
When mobile terminal connects charger, the application processor of mobile terminal is examined by the power supply line VBUS of USB interface Power supply signal is measured, is primarily determined to be currently at charged state, then by data line D+/D-, using preset communication protocols View establishes communication connection.When it is implemented, data line D+ can be set as clock (CLK) signal wire, data line D- is as number According to (DATA) signal wire.Mobile terminal sends 8bit (position) charging by the data line D- of USB interface within an instruction cycle The instruction of device type queries, can be customized for 0,100 0010.
S3, charger feed back the type of charger.
Charger detects the instruction that mobile terminal is sent, and the USB interface for passing through charger by built-in microcontroller Data line D- send preset response and instruct 0,100 1101, which represents the identity information of charger, as voltage rating, Rated current etc..
S3, mobile terminal receive the type of the charger of charger feedback.
Mobile terminal judges whether the charger is the charger for meeting preset condition according to the response instruction received, if It is then to configure different charging current gears, as predetermined current charges.
S4, the charge control that mobile terminal sends starting predetermined current charging are instructed to the charger, are used to indicate same The time of step starting quick charge.
After the charger that mobile terminal is identified as connection is matched charging equipment, identical starting is arranged to charger Time, terminal easy to remove and charger start predetermined current charging simultaneously.When it is implemented, mobile terminal is by charger The charge control instruction for sending starting predetermined current charging specifies the time of charger starting predetermined current charging, such as from receiving Which clock cycle that synchronism switching has instructed starts to start quick charge, or several seconds from receiving synchronism switching instruction After start start predetermined current charging.
S5, mobile terminal and charger start synchronism switching timing.
Mobile terminal starts local meter after sending the charge control instruction that starting predetermined current charges to charger When, to start predetermined current charging simultaneously with charger.Meanwhile charger, after receiving charge control instruction, starting is originally Ground timing.
S6 after timing, connects the extension charging path, to start predetermined current charging.
After when the starting predetermined current chargometer of mobile terminal, application processor controls USB switching module and disconnects Data transmission path connects extension charging path.Meanwhile terminating when charger starting predetermined current chargometer, microcontroller system USB switching module turn-off data transmission channel connects extension charging path.At this point, there is two charging paths to pass through VBUS power supply Line is powered to the power management module of mobile terminal, and the conveyance capacity of USB interface just has one times of promotion, has effectively achieved In the case where charging voltage is constant, charging current is extended to original twice, realizes quick charge.
When specific body is implemented, high level is arranged to access selection port SEL in the application processor of mobile terminal, described in control Data switching output port D+/D- is switched to and is connected with MHL-/MHL+ by USB switching module, forms extension charging path.It is described The data input output ports MHL-/MHL of USB switching module respectively with the input terminal of the power management module of mobile terminal and institute The common ground connection for stating mobile terminal is formed when the USB switching module, which switches to D+/D-, to be connected with MHL-/MHL+ By the D-/D+ to MHL-/MHL+ of USB interface, the extension that is further attached to the input terminal and ground wire of power management module is filled Electric pathway.
The data input output ports MHL-/MHL+ of the USB switching module of charger respectively with the power control module Output end connected with the ground wire of the charging control circuit, the USB switching module switches to D+/D- and MHL-/MHL+ When connection, extension charging path is formed.When it is implemented, access selection port SEL is arranged in the microcontroller of charger High level, control the USB switching module by data switching output port D+/D- switch to MHL-/MHL+ connect, form By power control module to MHL-/MHL+, then the extension charging path of the D-/D+ to USB interface.
S7, mobile terminal and charger period carry out information exchange.
Mobile terminal and charger are after starting predetermined current charging, according to predetermined period, control USB periodically and switch mould Block switches over extension charging path and data transmission path.For example, during the charging process, the application processor of mobile terminal Every 2 seconds output low levels to the channel selecting port of USB switching module, switch to the USB- of USB switching module and D- Connection, the USB+ of USB switching module is switched to be connected with D+, to realize that connection data transmission channel and charger carry out information Interaction;Then, after 2 seconds, the application processor output high level of mobile terminal makes to the channel selecting port of USB switching module USB switching module switches to D- to be connected with MHL-, and D+ is switched to by USB switching module and is connected with MHL+, is connected with realizing Charge tunnel is extended, predetermined current charging is continued.
During the charging process, the microcontroller of charger is selected every 2 seconds output low levels to the channel of USB switching module Port is selected, the USB- of USB switching module is switched to and is connected with D-, the USB+ of USB switching module is switched to be connected with D+, with reality It now connects data transmission channel and mobile terminal carries out information exchange;Then, after 2 seconds, the high electricity of microcontroller output of charger It puts down to the channel selecting port of USB switching module, switches to USB switching module by D- and connected with MHL-, by USB switching module D+ is switched to and is connected with MHL+, extension charge tunnel is connected to realize, continues predetermined current charging.
Embodiment five:
Figure 10 is the block diagram of the electronic equipment of another embodiment of the present invention.Electronic equipment 1000 shown in Fig. 10 includes: At least one processor 1001, memory 1002, USB switching 1003, usb 1 006 and power management module 1004.Electronics Various components in equipment 1000 are coupled by bus system 1005.It is understood that bus system 1005 is for realizing this Connection communication between a little components.Bus system 1005 except include data/address bus in addition to, further include power bus, control bus and Status signal bus in addition.But for the sake of clear explanation, various buses are all designated as bus system 1005 in Figure 10.
It is appreciated that the memory 1002 in the embodiment of the present invention can be volatile memory or non-volatile memories Device, or 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 are read-only Memory (ErasablePROM, EPROM), electrically erasable programmable read-only memory (ElectricallyEPROM, EEPROM) Or flash memory.Volatile memory can be random access memory (RandomAccessMemory, RAM), be used as external high Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory (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 1002 of system and method described herein is intended to include but is not limited to these With the memory of 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 include 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 (MediaPlayer), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 10022.
In embodiments of the present invention, by the program or instruction of calling memory 1002 to store, specifically, can be application The program or instruction stored in program 10022.Charging is carried out to electronic equipment by usb 1 006 or data are transmitted.Processing Device 1001 includes: the time of synchronous averaging quick charge for sending charge control instruction, the charge control instruction;According to institute The time for stating synchronous averaging quick charge sends switch-over control signal to the USB switching module;The USB switching module according to The data line D-/D+ of the USB interface is respectively turned on to the input terminal of power management module and ground by the switch-over control signal, So that carrying out predetermined current charging to the power management module by the USB interface.
The method part that the embodiments of the present invention disclose can be applied in processor 1001, or by processor 1001 It realizes.Processor 1001 may be a kind of IC chip, the processing capacity with signal, such as application processor.It is realizing In the process, each step of the above method can pass through the integrated logic circuit of the hardware in processor 1001 or software form Instruction is completed.Above-mentioned processor 1001 can be general processor, digital signal processor (DigitalSignalProcessor, DSP), specific integrated circuit (ApplicationSpecific IntegratedCircuit, ASIC), ready-made programmable gate array (FieldProgrammableGateArray, FPGA) or Other programmable logic device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute this hair Disclosed each method, step and logic diagram in bright embodiment.General processor can be microprocessor or the processor It is also possible to any conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in firmly Part decoding processor executes completion, or in decoding processor hardware and software module combination execute completion.Software module It can be located at random access memory, flash memory, read-only memory, programmable read only memory or electrically erasable programmable memory, In the storage medium of this fields such as register maturation.The storage medium is located at memory 1002, and processor 1001 reads memory User in 1002 is to the access times of application program, the step of completing the above method in conjunction with its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its Combination is to realize.For hardware realization, processing unit be may be implemented in one or more 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 executing herein described function In member or combinations thereof.
For software implementations, it can be realized herein by executing the module (such as process, function etc.) of function described herein The technology.Software code is storable in memory and is executed by processor.Memory can in the processor or It is realized outside processor.
Optionally, processor 1001 is used to send switch-over control signal to USB switching module according to the specified period;It is described The data line D-/D+ of the USB interface is respectively turned on to the application by USB switching module according to the switch-over control signal Manage the input/output port of device;The application processor is carried out data transmission by the USB interface.
Optionally, the USB switching module includes at least a binary channel logic switch.
Optionally, processor 1001 is for sending charged state inquiry instruction;Then, the charged state inquiry is received to refer to The feedback signal of order, and according to the process of feedback signal control charging.
Electronic equipment 1000 can be realized each process that electronic equipment is realized in previous embodiment, to avoid repeating, this In repeat no more.The electronic equipment of the embodiment of the present invention, by the way that doubleway output is arranged between USB interface and power management module USB switching module, and the data line of USB interface is switched to and power management by application processor control USB switching module Module connection forms extension charging path, so that in same voltage input, by two-way charging path simultaneously to power management Module carries out electric current input, realizes predetermined current charging.Meanwhile the input voltage of power management module, electronics are not needed to improve Equipment complete machine temperature rising in charging is unobvious, and the user experience is improved.
Embodiment six:
Figure 11 is the structural schematic diagram of the electronic equipment of another embodiment of the present invention.Specifically, the electronics in Figure 11 is set Standby can be smart phone, tablet computer, personal digital assistant (PersonalDigital Assistant, PDA) or vehicle-mounted Computer etc..
Electronic equipment in Figure 11 includes radio frequency (RadioFrequency, RF) circuit 1110, memory 1120, input list Member 1130, display unit 1140, USB switching module 1150, processor 1160, voicefrequency circuit 1170, usb 1 180 and power supply Management module 1190.
Wherein, input unit 1130 can be used for receiving the number or character information of user's input, and generates and set with electronics The related signal input of standby user setting and function control.Specifically, in the embodiment of the present invention, which can To include touch panel 1131.Touch panel 1131, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses the operations of any suitable object or attachment on touch panel 1131 such as finger, stylus), and according to pre- The formula first set drives corresponding attachment device.Optionally, touch panel 1131 may include touch detecting apparatus and touch control Two parts of device processed.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, it will Signal sends touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact Coordinate, then give the processor 1160, and order that processor 1160 is sent can be received and executed.Furthermore, it is possible to using The multiple types such as resistance-type, condenser type, infrared ray and surface acoustic wave realize touch panel 1131.In addition to touch panel 1131, Input unit 1130 can also include other input equipments 1132, other input equipments 1132 can include but is not limited to secondary or physical bond One of disk, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Wherein, display unit 1140 can be used for showing information input by user or be supplied to the information and electronics of user The various menu interfaces of equipment 1100.Display unit 1140 may include display panel 1141, optionally, using LCD or can have The forms such as machine light emitting diode (OrganicLight-EmittingDiode, OLED) configure display panel 1141.
It should be noted that touch panel 1131 can cover display panel 1141, touch display screen is formed, when the touch display screen After detecting touch operation on it or nearby, processor 1160 is sent to determine the type of touch event, is followed by subsequent processing Device 1160 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 control.The Application Program Interface viewing area Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example, Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Electronic equipment is carried out data transmission and is charged by usb 1 180.
Wherein processor 1160 is the control centre of electronic equipment 1100, utilizes various interfaces and connection whole mobile phone Various pieces, by running or execute the software program and/or module that are stored in first memory 1121, and call and deposit The data in second memory 1122 are stored up, the various functions and processing data of electronic equipment 1100 are executed, to set to electronics Standby 1100 carry out integral monitoring.Optionally, processor 1160 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 1121 in software program and/or module and/ Or the data in the second memory 1122, processor 1160 is for sending charge control instruction, the charge control instruction packet It includes: the time of synchronous averaging quick charge;Switch-over control signal is sent to institute according to the time of the synchronous averaging quick charge State USB switching module;The USB switching module is according to the switch-over control signal by the data line D-/D+ of the USB interface points It is not switched to the input terminal and ground of power management module, so that carrying out by the USB interface to the power management module pre- If electric current charges.
Optionally, processor 1160 is used to send switch-over control signal to USB switching module according to the specified period;It is described The data line D-/D+ of the USB interface is respectively turned on to the application by USB switching module according to the switch-over control signal Manage the input/output port of device;The application processor is carried out data transmission by the USB interface.
Optionally, the USB switching module includes at least a binary channel logic switch.
Optionally, processor 1160 is for sending charged state inquiry instruction;Then, the charged state inquiry is received to refer to The feedback signal of order, and according to the process of feedback signal control charging.
Electronic equipment 1100 can be realized each process that electronic equipment is realized in previous embodiment, to avoid repeating, this In repeat no more.The electronic equipment of the embodiment of the present invention, by the way that doubleway output is arranged between USB interface and power management module USB switching module, and the data line of USB interface is switched to and power management by application processor control USB switching module Module connection forms extension charging path, so that in same voltage input, by two-way charging path simultaneously to power management Module carries out electric current input, realizes predetermined current charging.Meanwhile the input voltage of power management module, electronics are not needed to improve Equipment complete machine temperature rising in charging is unobvious, and the user experience is improved.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the electronics of foregoing description The specific work process of equipment, can refer to corresponding processes in the foregoing 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 logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and 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.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.For electronic equipment reality For applying example, since it is basically similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.

Claims (14)

1. a kind of charging control circuit characterized by comprising power control module, USB interface, microcontroller and USB switching Module, in which:
The output end of the power control module is connected to the power supply line VBUS of the USB interface;
The output end and ground wire of the power control module by the USB switching module, respectively can on-off be connected to the USB The data line D-/D+ of interface;
The channel selecting port of the USB switching module is connected to the input/output port of the microcontroller;
The USB switching module receives the switch-over control signal that the microcontroller is sent by the channel selecting port, and The output end of the power control module and ground wire are switched to the data line of the USB interface according to the switch-over control signal D-/D+, so that the power control module carries out predetermined current charging by the USB interface;
The USB switching module includes: data switching output port D+, data switching output port D-, MHL data input and output Port MHL- and MHL data input output ports MHL+;
Wherein, the data switching output port D-/D+ is connected with the data line D- of the USB interface with data line D+ respectively, The data input output ports MHL-/MHL+ respectively with the output end of the power control module and the charging control circuit Ground wire connection;
When the USB switching module, which switches to data switching output port D+/D-, to be connected with MHL-/MHL+, extension is formed Charging path.
2. charging control circuit as described in claim 1, which is characterized in that further include:
The input/output port of the microcontroller by the USB switching module respectively can on-off be connected to the USB interface Data line D-/D+, for when the USB switching module according to the switch-over control signal received by the USB interface Data line D-/D+ when being respectively turned on to the input/output port of the microcontroller, pass through the USB interface and carry out data biography It is defeated.
3. charging control circuit as claimed in claim 1 or 2, which is characterized in that the USB switching module includes at least one Binary channel logic switch.
4. a kind of electronic equipment characterized by comprising power management module, USB interface, application processor and USB switch mould Block, in which:
The power supply line VBUS of the USB interface is connected to the input terminal of the power management module;
The data line D-/D+ of the USB interface by the USB switching module respectively can on-off be connected to the power management mould The input terminal and ground wire of block;
The channel selecting port of the USB switching module is connected to the input/output port of the application processor;
The USB switching module receives the switch-over control signal that the application processor is sent by the channel selecting port, And the data line D-/D+ of the USB interface is switched to described in the power management module according to the switch-over control signal Input terminal and ground wire, so that carrying out predetermined current charging to the power management module by the USB interface;
The USB switching module includes: data switching output port D+, data switching output port D-, MHL data input and output Port MHL- and MHL data input output ports MHL+;
Wherein, the data switching output port D-/D+ is connected with the data line D- of the USB interface with data line D+ respectively, The data input output ports MHL-/MHL+ connects with the ground wire of the output end of power control module and charging control circuit respectively It connects;
When the USB switching module, which switches to data switching output port D+/D-, to be connected with MHL-/MHL+, extension is formed Charging path.
5. electronic equipment as claimed in claim 4, which is characterized in that further include:
The input/output port of the application processor by the USB switching module respectively can on-off be connected to the USB and connect The data line D-/D+ of mouth, for being met the USB according to the switch-over control signal received when the USB switching module Mouthful data line D-/D+ when being respectively turned on to the input/output port of the application processor, counted by the USB interface According to transmission.
6. electronic equipment as described in claim 4 or 5, which is characterized in that the USB switching module includes at least a bilateral Road logic switch.
7. a kind of charge control method, the charging control circuit applied to one of such as claims 1 to 3, which is characterized in that described Method includes:
Microcontroller receives charge control instruction, and the charge control instruction includes: the time of synchronous averaging quick charge;
Microcontroller sends switch-over control signal to USB switching module according to the time of the synchronous averaging quick charge;
The output end of the power control module and ground wire are switched to by the USB switching module according to the switch-over control signal The data line D-/D+ of the USB interface, so that the power control module carries out predetermined current charging by the USB interface.
8. charge control method as claimed in claim 7, which is characterized in that the USB switching module is controlled according to the switching Signal processed the output end of the power control module and ground wire are switched to the step of data line D-/D+ of the USB interface it Afterwards, the method also includes:
The microcontroller sends switch-over control signal to USB switching module according to the specified period;
The data line D-/D+ of the USB interface is respectively turned on to institute by the USB switching module according to the switch-over control signal State the input/output port of microcontroller;
The microcontroller is carried out data transmission by the USB interface.
9. charge control method as claimed in claim 7 or 8, which is characterized in that the USB switching module includes at least one Binary channel logic switch.
10. charge control method as claimed in claim 7, which is characterized in that the method also includes:
The microcontroller receives charged state inquiry instruction;
The microcontroller sends the feedback signal of the charged state inquiry instruction.
11. a kind of charge control method, the electronic equipment applied to one of such as claim 4 to 6 characterized by comprising
Application processor sends charge control instruction, and the charge control instruction includes: the time of synchronous averaging quick charge;
The application processor switches according to the time of synchronous averaging quick charge transmission switch-over control signal to the USB Module;
The data line D-/D+ of the USB interface is respectively turned on to electricity by the USB switching module according to the switch-over control signal The input terminal and ground of source control module, so that carrying out predetermined current charging to the power management module by the USB interface.
12. charge control method as claimed in claim 11, which is characterized in that the USB switching module is according to the switching Control signal by the data line D-/D+ of the USB interface be respectively turned on to power management module input terminal and ground the step of it Afterwards, the method also includes:
The application processor sends switch-over control signal to USB switching module according to the specified period;
The data line D-/D+ of the USB interface is respectively turned on to institute by the USB switching module according to the switch-over control signal State the input/output port of application processor;
The application processor is carried out data transmission by the USB interface.
13. the charge control method as described in claim 11 or 12, which is characterized in that the USB switching module includes at least One binary channel logic switch.
14. charge control method as claimed in claim 11, which is characterized in that the method also includes:
The application processor sends charged state inquiry instruction;
The application processor receives the feedback signal of the charged state inquiry instruction, and is filled according to feedback signal control The process of electricity.
CN201610515398.1A 2016-06-30 2016-06-30 A kind of charging control circuit, electronic equipment and charge control method Active CN106058983B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610515398.1A CN106058983B (en) 2016-06-30 2016-06-30 A kind of charging control circuit, electronic equipment and charge control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610515398.1A CN106058983B (en) 2016-06-30 2016-06-30 A kind of charging control circuit, electronic equipment and charge control method

Publications (2)

Publication Number Publication Date
CN106058983A CN106058983A (en) 2016-10-26
CN106058983B true CN106058983B (en) 2019-01-29

Family

ID=57201711

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610515398.1A Active CN106058983B (en) 2016-06-30 2016-06-30 A kind of charging control circuit, electronic equipment and charge control method

Country Status (1)

Country Link
CN (1) CN106058983B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3285356B1 (en) 2016-08-19 2019-02-20 Shenzhen Royole Technologies Co. Ltd. Charger, electronic device, and charging method
EP3543827A1 (en) * 2016-11-21 2019-09-25 Shenzhen Royole Technologies Co., Ltd. Electronic device, charger, charging system and charging method
CN106684986A (en) * 2016-12-26 2017-05-17 建荣半导体(深圳)有限公司 Charging equipment and fast-charging protocol analytic method and system thereof
CN107579551A (en) * 2017-07-31 2018-01-12 上海与德科技有限公司 Terminal, charger, charging system and charging method
CN108418266A (en) * 2018-03-13 2018-08-17 维沃移动通信有限公司 A kind of USB connector, electronic equipment and charging method
CN108964187B (en) * 2018-07-24 2020-10-30 北京小米移动软件有限公司 Terminal and charging method between terminals
CN109218880A (en) * 2018-07-26 2019-01-15 上海与德通讯技术有限公司 Earphone charging two-in-one circuit and control method, terminal
CN212906229U (en) * 2020-07-02 2021-04-06 深圳市鹰硕教育服务有限公司 Intelligent pen power supply driving circuit
CN112234704B (en) * 2020-10-12 2022-08-02 维沃移动通信有限公司 Flash lamp power supply switching circuit, flash lamp control method and electronic equipment
CN112509608B (en) * 2020-11-25 2022-03-08 广州朗国电子科技股份有限公司 Method and device for recording sound along with channel of USB (Universal Serial bus) equipment and storage medium
CN112769177B (en) * 2020-12-29 2023-07-18 Oppo广东移动通信有限公司 Power adapter, electronic device, charging system and charging method
CN114967894B (en) * 2022-07-27 2023-01-17 荣耀终端有限公司 Electronic device, device identification method and charging system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102820682A (en) * 2011-06-09 2012-12-12 中兴通讯股份有限公司 Device and method for communicating through universal serial bus (USB) interface and charging external device
CN105140583A (en) * 2015-09-17 2015-12-09 珠海市一微半导体有限公司 USB port based quick charge method
CN105162213A (en) * 2015-10-15 2015-12-16 上海斐讯数据通信技术有限公司 USB controller, and device
CN105576727A (en) * 2014-10-16 2016-05-11 中兴通讯股份有限公司 Rapid charging method, apparatus and system thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102820682A (en) * 2011-06-09 2012-12-12 中兴通讯股份有限公司 Device and method for communicating through universal serial bus (USB) interface and charging external device
CN105576727A (en) * 2014-10-16 2016-05-11 中兴通讯股份有限公司 Rapid charging method, apparatus and system thereof
CN105140583A (en) * 2015-09-17 2015-12-09 珠海市一微半导体有限公司 USB port based quick charge method
CN105162213A (en) * 2015-10-15 2015-12-16 上海斐讯数据通信技术有限公司 USB controller, and device

Also Published As

Publication number Publication date
CN106058983A (en) 2016-10-26

Similar Documents

Publication Publication Date Title
CN106058983B (en) A kind of charging control circuit, electronic equipment and charge control method
CN108347068B (en) A kind of method and mobile terminal of charging
JP6176497B2 (en) Control device for switching current and electronic device
CN106253400A (en) A kind of charging method, mobile terminal and charger
CN107508354B (en) A kind of charging method and mobile terminal
CN107248769B (en) Wireless charging circuit, wireless charging method, wireless charging system and mobile terminal
TW201131177A (en) Capacitive sensor and sensing method
CN106354303B (en) A kind of photographic method and mobile terminal of mobile terminal
EP3193179A1 (en) Electric quantity detection method and apparatus, terminal and storage medium
CN106685007B (en) A kind of power-supplying circuit of peripheral equipment, method of supplying power to and mobile terminal
CN110943501B (en) Charging method, charging control device and electronic equipment
CN106981904A (en) The method and charge-discharge control system of a kind of charge and discharge control
CN106060397B (en) A kind of screening-mode switching method and mobile terminal
CN106685016B (en) A kind of charging unit and control method
CN206878505U (en) A kind of charging circuit and mobile terminal
CN103164124A (en) Display device using sliding touch mode to control
CN202956653U (en) Smart home remote control system
CN107659909A (en) The switching method and mobile terminal of a kind of SIM card
CN108268397A (en) The processing method and mobile terminal of a kind of access device
CN107024972B (en) A kind of charging method and mobile terminal
CN106684967B (en) A kind of charging method and mobile terminal of mobile terminal
CN103207834B (en) A kind of electric energy data storage method
CN205319804U (en) On -off system and electronic equipment
CN105933024B (en) A kind of Intelligent auxiliary equipment, mobile terminal and its control method
CN108270255B (en) A kind of charging method and mobile terminal

Legal Events

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