CN106329652A - Electronic device and charging method thereof - Google Patents

Electronic device and charging method thereof Download PDF

Info

Publication number
CN106329652A
CN106329652A CN201610849536.XA CN201610849536A CN106329652A CN 106329652 A CN106329652 A CN 106329652A CN 201610849536 A CN201610849536 A CN 201610849536A CN 106329652 A CN106329652 A CN 106329652A
Authority
CN
China
Prior art keywords
charger
electronic installation
agreement
charging
soon
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
CN201610849536.XA
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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201610849536.XA priority Critical patent/CN106329652A/en
Publication of CN106329652A publication Critical patent/CN106329652A/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/007Regulation of charging or discharging current or voltage
    • 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/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00045Authentication, i.e. circuits for checking compatibility between one component, e.g. a battery or a battery charger, and another component, e.g. a power source

Landscapes

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

Abstract

The present invention discloses an electronic device. The electronic device comprises a charging module, a CPU (Central Processing Unit) and an MCU (Micro Control Unit); the charging module is connected with a charger; the CPU is connected with the charger and is used for detecting the port type of the charger connected with the CPU and obtaining charging current corresponding to the port type from the charger according to the port type of the charger so as to charge the electronic device; the MCU is connected with the charger; and the MCU is used for detecting a special charging protocol supported by the charger when it is detected that the charger is a charger with a special charging port, and selecting a corresponding special charging protocol scheme to control the charger to charge the electronic device. The present invention also provides a charging method. With the charging method adopted, the electronic device of the present invention is compatible with various fast charging protocols.

Description

Electronic installation and charging method thereof
Technical field
The present invention relates to rapid nitriding field, be specifically related to a kind of electronic installation and charging method thereof.
Background technology
A kind of fast charge protocol the most only supported by the electronic installations such as existing mobile phone, such as, supports QC 2.0/3.0 The mobile phone of agreement does not generally the most support VOOC(Voltage Open Loop Multi-step Constant-Current Charging, voltage open loop multistep constant-current charge) protocol scheme and Pump Express 2.0/3.0 fill agreement soon, (is called for short PE+ 2.0/3.0), the charger of support QC 2.0/3.0 agreement of i.e. can only arranging in pairs or groups realizes quick charge, it is impossible to VOOC association is supported in collocation The charger of view and PE+2.0/3.0 agreement carries out quick charge.The mobile phone supporting VOOC protocol scheme is not generally supported QC2.0/3.0 protocol scheme and PE+2.0/3.0 protocol scheme, i.e. can only arrange in pairs or groups and support that the charger of VOOC agreement realizes quickly Charging, it is impossible to collocation supports that the charger of QC2.0/3.0 agreement and PE+2.0/3.0 agreement carries out quick charge.Support PE+2.0 The mobile phone of protocol scheme does not generally the most support QC2.0/3.0 protocol scheme and VOOC protocol scheme, and i.e. can only arrange in pairs or groups support PE+ 2.0/3.0 the charger of agreement realizes quick charge, it is impossible to collocation supports that the charger of QC2.0/3.0 agreement and VOOC agreement enters Row quick charge.Therefore, existing electronic installation is poor to the compatibility of charger.
Summary of the invention
In view of the foregoing, it is necessary to provide one the most compatible can support Quick Charge 2.0/ Quick The electronic installation of the charger of Charge 3.0 agreement, PE+2.0/PE+3.0 agreement and VOOC agreement.
It addition, be necessary the charging method providing a kind of above-mentioned electronic installation corresponding.
A kind of electronic installation, described electronic installation includes:
Charging module, described charging module is used for connecting charger;
CPU(Central Processing Unit, central processing unit), when described CPU supports USB PD protocol interface, institute State CPU to be connected with charger, when described CPU does not support USB PD protocol interface, described CPU Yu USB PD protocol interface chip Connecting, described USB PD protocol interface chip is connected with charger;
The port type of described charger that described CPU is connected for detection, and according to the port type of described charger, from Described charger obtains the charging current corresponding with described port type, to be charged described electronic installation;
Described CPU is additionally operable to, when the charger that described charger is special charging port type being detected, detect described charging The first kind that device is supported fills agreement soon, and selects the first kind of correspondence to fill the protocol scheme described charger of control soon to described electricity Sub-device is charged, and the described first kind is filled agreement soon and included that Quick Charge 2.0 agreement, Quick Charge 3.0 assist View, Pump Express 2.0 agreement and Pump Express 3.0 agreement;
MCU(Micro Controller Unit, micro-control unit), described MCU is connected with described charger, and described MCU is used for When the charger that described charger is described special charging port type being detected, detect that described charger is supported second Class fills agreement soon, and selects the Equations of The Second Kind of correspondence to fill protocol scheme soon to control described charger and fill described electronic installation Electricity, described Equations of The Second Kind fills agreement soon and includes voltage open loop multistep constant-current charge VOOC agreement;
When described CPU detects the charger that described charger is standard down port type, described CPU is from described charger Obtain the first charging current described electronic installation is charged;
When described CPU detects the charger that described charger is charging downlink port type, described CPU is from described charger Obtain the second charging current described electronic installation is charged.
According to the preferred embodiment of the present invention, described electronic installation also includes power management module, described power management module For detecting whether described charging module is connected with described charger, and when described electronic installation is connected with described charger, Described CPU detects the port type of described charger.
According to the preferred embodiment of the present invention, described CPU detects USB battery charging specifications 1.2 agreement, to complete described electronics The first time of device and described charger shakes hands.
According to the preferred embodiment of the present invention, when described CPU detects that described charger is described special charging port type Charger, and be not detected by the described first kind that described charger supported and fill agreement soon and described Equations of The Second Kind fills agreement soon Time, according to 5V charger type, described electronic installation is charged.
A kind of charging method, is used for controlling charger and is charged electronic installation, and described method includes:
Detect the port type of described charger;
According to the port type of described charger, obtain corresponding charging current from described charger and described electronic installation is filled Electricity;And
When the charger detecting that described charger is special charging port type, and detect that described charger is supported first When class fills agreement soon, select the corresponding first kind to fill the protocol scheme described charger of control soon and described electronic installation is filled Electricity;
When the charger detecting that described charger is special charging port type, and detect that Equations of The Second Kind supported by described charger When filling agreement soon, select corresponding Equations of The Second Kind to fill the protocol scheme described charger of control soon and described electronic installation be charged, The described first kind is filled agreement soon and is included Quick Charge 2.0 agreement, Quick Charge 3.0 agreement, Pump Express 2.0 agreements and Pump Express 3.0 agreement, described Equations of The Second Kind fills agreement soon and includes voltage open loop multistep constant-current charge VOOC Agreement;
When the charger that described charger is standard down port type being detected, obtain the first charged electrical from described charger Described electronic installation is charged by stream;
When the charger that described charger is charging downlink port type, obtain the second charging current to institute from described charger State electronic installation to be charged.
According to the preferred embodiment of the present invention, described method also include detecting the charging module of described electronic installation whether with institute State charger to be connected, and when described electronic installation is connected with described charger, detect the port type of described charger.
According to the preferred embodiment of the present invention, described method also includes:
Detection USB battery charging specifications 1.2 agreement, shakes hands completing the first time of described electronic installation and described charger.
According to the preferred embodiment of the present invention, described method also includes:
When the charger detecting that described charger is described special charging port type, and it is not detected by described charger institute The described first kind supported fills agreement and time described Equations of The Second Kind fills agreement soon soon, according to 5V charger type to described electronic installation It is charged.
The charging association that described charger is supported can be detected compared to prior art, described electronic installation and charging method thereof View, and select corresponding charge protocol to be charged according to testing result so that the described electronic installation compatible support first kind Fill agreement soon and Equations of The Second Kind fills the charger of agreement soon, be user-friendly to, promote Consumer's Experience.
Accompanying drawing explanation
It it is the circuit diagram of the electronic installation of a preferred embodiment of the present invention shown in Fig. 1.
It it is the circuit diagram of the electronic installation of another preferred embodiment of the present invention shown in Fig. 2.
It it is the flow chart of the method for the present invention the first preferred embodiment shown in Fig. 3.
It it is the flow chart of the method for the present invention the second preferred embodiment shown in Fig. 4.
It it is the flow chart of the method for the present invention the 3rd preferred embodiment shown in Fig. 5.
It it is the flow chart of the method for the present invention the 4th preferred embodiment shown in Fig. 6.
It it is the flow chart of the method for the present invention the 5th preferred embodiment shown in Fig. 7.
It it is the flow chart of the method for the present invention the 6th preferred embodiment shown in Fig. 8.
Main element symbol description
Electronic installation 100
Charging module 10
CPU 30
MCU 50
Power management module 70
Charger 200
Adapter 201
Power pins VBUS
Grounding pin GND
Data pin USB_D+、USB_D-
First resistance R1
Second resistance R2
USB PD protocol interface chip 60
Following detailed description of the invention will further illustrate the present invention in conjunction with above-mentioned accompanying drawing.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is purged, complete Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.
Based on the embodiment in the present invention, those of ordinary skill in the art are institute on the premise of not making creative work The every other embodiment obtained, broadly falls into the scope of protection of the invention.
With reference to shown in Fig. 1, it it is the circuit diagram of the electronic installation 100 of a preferred embodiment of the present invention.Described electronic installation 100 include charging module 10, CPU(Central Processing Unit, central processing unit) 30 and MCU(Micro Controller Unit, micro-control unit) 50.Described electronic installation 100 can be connected with charger 200, to be charged.Institute State charger 200 and include adapter 201.Described adapter 201 can be Type-C type USB connector, and described adapter 201 wraps Include voltage pin VBUS, grounding pin GND, data pin USB_D+(D+) and USB_D-(D-), the first pin CC1 and second draws Foot CC2.
Described charging module 10 is used for being connected with charger 200, described charging module 10 and VBUS pin, grounding pin GND is joined directly together.
When described CPU30 support USB PD(USB Power Delivery Specification) protocol interface time, institute State CPU to be connected with described charger 200 by the first pin CC1 and the second pin CC2.Described CPU30 is also by adapter 201 Data pin USB_D+ be connected and data pin USB_D-be connected with described charger 200.
As in figure 2 it is shown, be the circuit diagram of the electronic installation 100 of another one preferred embodiment of the present invention.As described CPU30 When not supporting USB PD protocol interface, described CPU30 passes through I2C(Inter-Integrated Circuit) bus connection one Individual USB PD protocol interface chip 60, described USB PD protocol interface chip 60 is by the first pin CC1 and the second pin CC2 Be connected described charger 200, the connection of other elements is identical with Fig. 1, repeats no more.
The port type of the described charger 200 that described CPU30 is connected for detection, and according to described charger 200 Port type, control the described charger 200 charging scheme to electronic installation 100.Concrete, CPU30 is from described charger 200 obtain the charging current corresponding with described port type, to be charged described electronic installation 100.
In this preferred embodiment, the port type of described charger 200 includes SDP(Standard Downstream Port, standard down port), CDP(Charging Downstream Port, charge downlink port) and DCP (Dedicated Charging Port, special charging port).If described CPU30 detects that described charger 200 is SDP Type, then obtain the first charging current from described charger 200 and be charged described electronic installation, if described CPU30 inspection Measuring described charger 200 is CDP type, then obtain the second charging current from described charger 200 and enter described electronic installation Row charging.In this preferred embodiment, described first charging current is the charging current that maximum current is about 500mA, described Two charging currents are the charging current that maximum current is about 900mA.
If described CPU30 detects that the charger that described charger 200 is DCP type, described CPU 30 are examined further Survey whether described charger 200 supports that the first kind fills agreement soon, if described charger 200 supports that the first kind fills agreement soon, then Select the corresponding first kind to fill protocol scheme soon described electronic installation 100 is charged.
Described MCU50 is connected with described charging module 10 through the first resistance R1 and the second resistance R2, and described MCU50 is used for When the charger that described charger 200 is DCP type being detected, detect whether described charger 200 supports that Equations of The Second Kind fills association soon View, if described charger 200 supports that Equations of The Second Kind fills agreement soon, then selects the Equations of The Second Kind of correspondence to fill protocol scheme soon to described electricity Sub-device 100 is charged.In other embodiments, it is also possible to whether detected described charger 200 further by described CPU30 Support that Equations of The Second Kind fills agreement soon.
In this preferred embodiment, the described first kind is filled agreement soon and is included Quick Charge 2.0 agreement, Quick Charge 3.0 agreement, Pump Express 2.0 fill agreement (being called for short PE+2.0) soon and Pump Express 3.0 fills agreement soon (being called for short PE+3.0), described Equations of The Second Kind fills agreement soon and includes VOOC(Voltage Open Loop Multi-step Constant-Current Charging, voltage open loop multistep constant-current charge) agreement.Described CPU 30 fills described in specifically detecting The first kind that electrical equipment 200 is supported fills agreement soon and described MCU 50 specifically detects the Equations of The Second Kind that described charger 200 is supported The method filling agreement soon specifically will describe in detail in the better embodiment in the present invention as shown in Fig. 3, Fig. 4.
In another preferred embodiment of the present invention, described electronic installation 100 also includes power management module 70, described electricity Source control module 70 is used for detecting whether described electronic installation 100 is connected with described charger 200, if described charging module 10 Being connected with described charger 200, the most described CPU30 detects the port type of described charger 200, if described charging mould Block 10 is not connected with described charger 200, and the most described power management module 70 is then with predeterminated frequency duplicate detection, until detecting Described charger 200 is connected with described electronic installation 100.
With reference to shown in Fig. 3, the flow chart of charging method the first better embodiment of the present invention.Described charging method include with Lower step.Described better embodiment is also presently preferred embodiments of the present invention.According to different demands, flow chart shown in described figure In execution sequence can change, some can omit.
Step 300, described power management module 70 detects whether described charging module 10 is connected with described charger 200, If be detected that described electronic installation 100 is connected with charger 200, then enter step 301, if being not detected by described electronics dress Put 100 to be connected with charger 200, then repeating said steps.
Step 301, described CPU 30 detects USB battery charging specifications 1.2 agreement (being called for short BC 1.2), to complete electronics dress Put 100 to shake hands with first time of charger 200.
Step 302, whether the charger 200 that described CPU 30 detection is connected is the charger of DCP type, if detection It is the charger 200 of DCP type to the charger 200 connected, then enters step 303, if be detected that the charging connected Device 200 is not the charger of DCP type, then enter step 314.
In one embodiment of the invention, when electronic installation 100 is connected to a charger, then open electronics dress Putting the pull-up power vd M_SRC of the D-signal of 100, i.e. the D-signal of electronic installation 100 is high level, disconnects electronic installation 100 The pull-up power vd P_SRC of D+ signal, open the pull-down current source IDP_SINK of the D+ signal of electronic installation 100, now electricity The D+ signal of sub-device 100 will become high level, now, judge the charger that charger is DCP type connected accordingly.
Step 303, described CPU 30 controls described charging module 10 and detects whether described charger 200 supports that QC3.0 assists View, if QC3.0 agreement supported by described charger 200, then enters step 304, if QC3.0 do not supported by described charger 200 Agreement, then enter step 305.
In one embodiment of the invention, electronic installation 100 detects according to USB BC1.2 regulation enforcement, when detecting During the charger 200 of DCP type, electronic installation 100 opens a pull-up power vd P_SRC at its D+.Charger 200 detects D+ On output voltage and guarantee the output voltage on D+ in the duration of a second higher than the first decision level VDAT_REF being less than Second decision level VSEL_REF.After one second, D+ with D-is opened a way and connects pull down resistor Rdm_dwn by charger 200.If D-remains low, then QC3.0 protocol specification do not supported by electronic installation 100.If D-remains height, then electronic installation 100 Hold QC3.0 agreement.
Step 304, described CPU 30 controls described charging module 10 and uses QC3.0 protocol scheme to described electronic installation 100 are charged.
Step 305, described CPU 30 controls described charging module 10 and detects whether described charger 200 supports that QC2.0 assists View, if QC2.0 agreement supported by described charger 200, then enters step 306, if QC2.0 do not supported by described charger 200 Agreement, then enter step 307.
In one embodiment of the present of invention, being similar to the detection of QC3.0 agreement, electronic installation 100 is first according to USB BC1.2 Regulation enforcement detects, and detects whether described charger 200 supports QC2.0 agreement further according to the output voltage on D+.Concrete detection Method be referred to the content of QC3.0 agreement.
Step 306, described CPU 30 controls described charging module 10 and uses QC2.0 protocol scheme to described electronic installation 100 are charged.
Step 307, described CPU 30 detects whether described charger 200 supports PE+3.0 agreement, if described charger 200 support PE+3.0 agreement, then enter step 308, if PE+3.0 agreement do not supported by described charger 200, then enter step 309。
In one embodiment of the invention, determine that the charger being connected with electronic installation 100 is CDP when charging module 10 When type or DCP type, according to the Handshake Protocol in PE+3.0 agreement, charging module 10 judges whether charger 200 supports PE + 3.0 agreements.Such as charging module 10 sends up voltage instruction Current Pattern, and the output voltage of charger 200 adjusts To a preset value and maintain.Therefore, charging module 10 can be determined that, through measuring VBUS, the device inserted via USB connector Whether it is the power supply adaptor meeting FC agreement.If VBUS meets power supply adaptor exports the specification of described preset value, can sentence It is set to charger 200 and supports PE+3.0 agreement.
Step 308, described CPU 30 controls described charging module 10 and uses PE+3.0 protocol scheme to described electronic installation 100 are charged.
Step 309, described CPU 30 detects whether described charger 200 supports PE+2.0 agreement, if described charger 200 support PE+2.0 agreement, then enter step 310, if PE+2.0 agreement do not supported by described charger 200, then enter step 311。
In one embodiment of the invention, determine that the charger being connected with electronic installation 100 is CDP when charging module 10 When type or DCP type, charging module 10 sends up voltage instruction Current Pattern, it is therefore an objective to difference is inserted further Whether the device entered is the power supply adaptor meeting PE+2.0 agreement.The output voltage of charger 200 adjusts to 7V and maintains.Cause This, through measuring VBUS, charging module 10 can be determined that whether the device inserted via USB connector is the electricity meeting FC agreement Source adapter.If VBUS meets the specification of power supply adaptor output 7V, it is possible to determine that support PE+2.0 agreement for charger 200.
Step 310, described CPU 30 uses PE+2.0 protocol scheme to be charged described electronic installation 100.
Step 311, described MCU 50 detects whether described charger 200 supports VOOC agreement, if described charger 200 Support VOOC agreement, then enter step 312, if QC2.0 agreement do not supported by described charger 200, then enter step 313.
In one embodiment of the invention, described MCU 50 is by detecting the D+ signal of adapter 201, and D-signal comes Judging the agreement of VOOC, wherein D+ is for transmitting the CLK data of handshake, and D-is for transmitting the DATA data of handshake.
Step 312, described MCU 50 uses VOOC protocol scheme to be charged described electronic installation 100.
Step 313, described CPU 30 carries out normal charge according to common 5V charger type.
Step 314, whether the charger 200 that described CPU 30 detection is connected is the charger 200 of SDP type, if Detect that connected charger 200 is the charger of SDP type, then enter step 316, if be detected that the charging connected Device 200 is not the charger of SDP type, then enter step 317.
In one embodiment of the invention, after electronic installation 100 is connected to charger 200, if charging module 10 is examined Measure D+, D-signal of electronic installation when being low level, it is determined that the equipment connect is SDP type charger.
Step 315, described CPU 30 obtains the first charging current from charger 200 and fills described electronic installation 100 Electricity.In this preferred embodiment, described first charging current is the charging current that maximum current is about 500mA.
Step 316, whether the charger 200 that described CPU 30 detection is connected is the charger 200 of CDP type, if Detect that connected charger 200 is the charger of CDP type, then enter step 317, if be detected that the charging connected Device 200 is not the charger of CDP type, then enter step 318.
In one embodiment of the invention, when electronic installation 100 is connected to a charger, then open electronics dress Putting the pull-up power vd M_SRC of the D-signal of 100, i.e. the D-signal of electronic installation 100 is high level, disconnects electronic installation 100 The pull-up power vd P_SRC of D+ signal, open the pull-down current source IDP_SINK of the D+ signal of electronic installation 100, now electricity The D+ signal of sub-device 100 will become low level, then can judge the charger that connected charger is CDP type accordingly.
Step 317, described CPU 30 obtains the second charging current from charger 200 and fills described electronic installation 100 Electricity.In this preferred embodiment, described second charging current is the charging current that maximum current is about 900mA.
Step 318, described CPU 30 obtains the 3rd charging current from charger 200 and fills described electronic installation 100 Electricity.In this preferred embodiment, described 3rd charging current is the charging current that maximum current is about 500mA.
It is understood that as shown in Figure 4, in the present invention the second better embodiment, when step 305 judges no, Perform step 311.When step 311 is judged as NO, perform step 307;When step 311 is judged as YES, perform step 312.Step Rapid 307 when being judged as NO, and performs step 309;When step 307 is judged as YES, perform step 308.When step 309 is judged as NO, Perform step 313.Other steps are identical with Fig. 3, repeat no more.
It is understood that as it is shown in figure 5, in the present invention the 3rd better embodiment, be judged as YES in step 302 Time, perform step 307.When step 307 judges no, perform step 309;When step 307 judges to be, perform step 308.? When step 309 is judged as NO, perform step 303;When step 309 is judged as YES, perform step 310.Step 303 is judged as NO Time, perform step 305;When step 303 is judged as YES, perform step 304.When step 305 is judged as NO, perform step 311;Step Rapid 305 when being judged as YES, and performs step 306.When step 311 is judged as NO, perform step 313.Other steps are identical with Fig. 3, Repeat no more.
It is understood that as shown in Figure 6, in the present invention the 4th better embodiment, it is judged as YES in step 302 Time, perform step 307.When step 307 judges no, perform step 309;When step 307 judges to be, perform step 308.? When step 309 is judged as NO, perform step 311;When step 309 is judged as YES, perform step 310.Step 311 is judged as NO Time, perform step 303;When step 311 is judged as YES, perform step 304.When step 303 is judged as NO, perform step 305;Step Rapid 303 when being judged as YES, and performs step 304.When step 305 is judged as NO, perform step 313.Other steps are identical with Fig. 3, Repeat no more.
It is understood that as it is shown in fig. 7, in the present invention the 5th better embodiment, be judged as YES in step 302 Time, perform step 311.When step 311 judges no, perform step 303;When step 311 judges to be, perform step 312.? When step 303 is judged as NO, perform step 305;When step 303 is judged as YES, perform step 304.Step 305 is judged as NO Time, perform step 307;When step 305 is judged as YES, perform step 306.When step 307 is judged as NO, perform step 309;Step Rapid 307 when being judged as YES, and performs step 308.When step 309 is judged as NO, perform step 313.Other steps are identical with Fig. 3, Repeat no more.
It is understood that as shown in Figure 8, in the present invention the 6th better embodiment, it is judged as YES in step 302 Time, perform step 311.When step 311 judges no, perform step 307;When step 311 judges to be, perform step 312.? When step 307 is judged as NO, perform step 309;When step 307 is judged as YES, perform step 308.Step 309 is judged as NO Time, perform step 303;When step 309 is judged as YES, perform step 310.When step 303 is judged as NO, perform step 305;Step Rapid 303 when being judged as YES, and performs step 304.When step 305 is judged as NO, perform step 313.Other steps are identical with Fig. 3, Repeat no more.
It addition, the execution sequence of above-mentioned steps 303 and step 305 can exchange;Step 307 is suitable with the execution of step 309 Sequence can exchange;Step 314 can also exchange with the execution sequence of step 316.
What the electronic installation 100 of the present invention and charging method thereof can detect that described charger 200 supported special fills soon Electricity agreement, and select the corresponding special charge protocol that fills soon to be charged according to testing result so that electronic installation 100 is compatible Support that the first kind is filled agreement, Equations of The Second Kind soon and filled the charger 200 of agreement soon, be user-friendly to, promote Consumer's Experience.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, Er Qie In the case of the spirit or essential attributes of the present invention, it is possible to realize the present invention in other specific forms.Therefore, no matter From the point of view of which point, all should regard embodiment as exemplary, and be nonrestrictive, the scope of the present invention is by appended power Profit requires rather than described above limits, it is intended that all by fall in the implication of equivalency and scope of claim Change is included in the present invention.Should not be considered as limiting involved claim by any reference in claim.This Outward, it is clear that " including " word be not excluded for other unit or, odd number is not excluded for plural number.Multiple unit of statement in system claims Or device can also be realized by software or hardware by a unit or device.The first, the second word such as grade is used for representing name Claim, and be not offered as any specific order.
Finally it should be noted that above example only in order to technical scheme to be described and unrestricted, although reference The present invention has been described in detail by preferred embodiment, it will be understood by those within the art that, can be to the present invention's Technical scheme is modified or equivalent, without deviating from the spirit and scope of technical solution of the present invention.

Claims (8)

1. an electronic installation, it is characterised in that described electronic installation includes:
Charging module, described charging module is used for connecting charger;
CPU(Central Processing Unit, central processing unit), when described CPU supports USB PD protocol interface, institute State CPU to be connected with described charger, when described CPU does not support USB PD protocol interface, described CPU Yu USB PD protocol interface Chip connects, and described USB PD protocol interface chip is connected with described charger;
The port type of described charger that described CPU is connected for detection, and according to the port type of described charger, from Described charger obtains the charging current corresponding with described port type, to be charged described electronic installation;
Described CPU is additionally operable to, when the charger that described charger is special charging port type being detected, detect described charging The first kind that device is supported fills agreement soon, and selects the first kind of correspondence to fill the protocol scheme described charger of control soon to described electricity Sub-device is charged, and the described first kind is filled agreement soon and included that Quick Charge 2.0 agreement, Quick Charge 3.0 assist View, Pump Express 2.0 agreement and Pump Express 3.0 agreement;
MCU(Micro Controller Unit, micro-control unit), described MCU is connected with described charger, and described MCU is used for When the charger that described charger is described special charging port type being detected, detect that described charger is supported second Class fills agreement soon, and selects the Equations of The Second Kind of correspondence to fill protocol scheme soon to control described charger and fill described electronic installation Electricity, described Equations of The Second Kind fills agreement soon and includes voltage open loop multistep constant-current charge VOOC agreement;
When described CPU detects the charger that described charger is standard down port type, described CPU is from described charger Obtain the first charging current described electronic installation is charged;
When described CPU detects the charger that described charger is charging downlink port type, described CPU is from described charger Obtain the second charging current described electronic installation is charged.
2. electronic installation as claimed in claim 1, it is characterised in that described electronic installation also includes power management module, institute State power management module for detecting whether described charging module is connected with described charger, and at described electronic installation with described When charger is connected, described CPU detects the port type of described charger.
3. electronic installation as claimed in claim 1, it is characterised in that described CPU detects USB battery charging specifications 1.2 agreement, Shake hands completing the first time of described electronic installation and described charger.
4. electronic installation as claimed in claim 1, it is characterised in that when described CPU detect described charger be described specially With the charger of charging port type, and it is not detected by the first kind that described charger supported and fills agreement soon and Equations of The Second Kind is fast When filling agreement, according to 5V charger type, described electronic installation is charged.
5. a charging method, is used for controlling charger and is charged electronic installation, it is characterised in that described method includes:
Detect the port type of described charger;
According to the port type of described charger, obtain corresponding charging current from described charger and described electronic installation is filled Electricity;And
When the charger detecting that described charger is special charging port type, and detect that described charger is supported first When class fills agreement soon, select the corresponding first kind to fill the protocol scheme described charger of control soon and described electronic installation is filled Electricity, the described first kind is filled agreement soon and is included Quick Charge 2.0 agreement, Quick Charge 3.0 agreement, Pump Express 2.0 agreement and Pump Express 3.0 agreement;
When the charger detecting that described charger is described special charging port type, and detect that described charger supports the When two classes fill agreement soon, select corresponding Equations of The Second Kind to fill the protocol scheme described charger of control soon and described electronic installation is filled Electricity, described Equations of The Second Kind fills agreement soon and includes voltage open loop multistep constant-current charge VOOC agreement;
When the charger that described charger is standard down port type being detected, obtain the first charged electrical from described charger Described electronic installation is charged by stream;
When the charger that described charger is charging downlink port type, obtain the second charging current to institute from described charger State electronic installation to be charged.
6. charging method as claimed in claim 5, it is characterised in that described method also includes detecting filling of described electronic installation Whether electricity module is connected with described charger, and when described electronic installation is connected with described charger, detects described charger Port type.
7. charging method as claimed in claim 5, it is characterised in that described method also includes:
Detection USB battery charging specifications 1.2 agreement, shakes hands completing the first time of described electronic installation and described charger.
8. charging method as claimed in claim 5, it is characterised in that described method also includes:
When the charger detecting that described charger is described special charging port type, and it is not detected by described charger institute The described first kind supported fills agreement and time described Equations of The Second Kind fills agreement soon soon, according to 5V charger type to described electronic installation It is charged.
CN201610849536.XA 2016-09-26 2016-09-26 Electronic device and charging method thereof Pending CN106329652A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610849536.XA CN106329652A (en) 2016-09-26 2016-09-26 Electronic device and charging method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610849536.XA CN106329652A (en) 2016-09-26 2016-09-26 Electronic device and charging method thereof

Publications (1)

Publication Number Publication Date
CN106329652A true CN106329652A (en) 2017-01-11

Family

ID=57820534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610849536.XA Pending CN106329652A (en) 2016-09-26 2016-09-26 Electronic device and charging method thereof

Country Status (1)

Country Link
CN (1) CN106329652A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106685022A (en) * 2017-03-27 2017-05-17 深圳市华凯联有限公司 Device for realizing fast charging and fast discharging of power supply for emergency starting of automobile
EP3846305A1 (en) * 2020-01-03 2021-07-07 Beijing Xiaomi Mobile Software Co., Ltd. Electronic device, charging method and device for the same, and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110273144A1 (en) * 2010-05-05 2011-11-10 Genesys Logic, Inc. Universal serial bus (usb) charging system and method thereof
CN102684270A (en) * 2012-05-31 2012-09-19 华为技术有限公司 Method for identifying type of universal serial bus (USB) chargers and USB device
CN103106167A (en) * 2013-01-22 2013-05-15 矽力杰半导体技术(杭州)有限公司 Universal Serial Bus (USB) equipment and control method thereof
CN103986217A (en) * 2014-05-30 2014-08-13 深圳市中兴移动通信有限公司 Charger outputting different voltages in self-adaptation mode and implementation method thereof
CN105870988A (en) * 2015-12-31 2016-08-17 乐视移动智能信息技术(北京)有限公司 Charger

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110273144A1 (en) * 2010-05-05 2011-11-10 Genesys Logic, Inc. Universal serial bus (usb) charging system and method thereof
CN102684270A (en) * 2012-05-31 2012-09-19 华为技术有限公司 Method for identifying type of universal serial bus (USB) chargers and USB device
CN103106167A (en) * 2013-01-22 2013-05-15 矽力杰半导体技术(杭州)有限公司 Universal Serial Bus (USB) equipment and control method thereof
CN103986217A (en) * 2014-05-30 2014-08-13 深圳市中兴移动通信有限公司 Charger outputting different voltages in self-adaptation mode and implementation method thereof
CN105870988A (en) * 2015-12-31 2016-08-17 乐视移动智能信息技术(北京)有限公司 Charger

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106685022A (en) * 2017-03-27 2017-05-17 深圳市华凯联有限公司 Device for realizing fast charging and fast discharging of power supply for emergency starting of automobile
EP3846305A1 (en) * 2020-01-03 2021-07-07 Beijing Xiaomi Mobile Software Co., Ltd. Electronic device, charging method and device for the same, and computer-readable storage medium
US11387661B2 (en) 2020-01-03 2022-07-12 Beijing Xiaomi Mobile Software Co., Ltd. Electronic device, charging method and device, and computer-readable storage medium

Similar Documents

Publication Publication Date Title
CN106329654A (en) Electronic device and charging method thereof
JP5917778B2 (en) High voltage dedicated charging port
US9153999B2 (en) Circuits and methods for automatic power source detection
JP5981043B2 (en) High voltage dedicated charging port
CN102393837B (en) USB charger recognition device and method
CN101232196B (en) Control circuit of charging mode in USB charging stand and method thereof
CN107742912A (en) Charging method, fast fill device and computer-readable recording medium
CN106537725A (en) Charging circuit, electronic device using same, and charger
JP2009011153A (en) Device and method for detecting power supply
CN106374563A (en) Electronic apparatus and charging method therefor
CN104617615B (en) Charging method and electronic equipment
CN104253458A (en) USB (universal serial bus) charging cable performance testing system and method and electronic device
KR20160030261A (en) Apparatus and method to change current limit
CN106300549A (en) Electronic installation and charging method thereof
CN106410894A (en) Electronic device and charging method thereof
CN106329630A (en) Charging method and device
CN109254210A (en) Electronic device port type detection method, apparatus, detection circuit and electronic equipment
CN106329652A (en) Electronic device and charging method thereof
CN106300552A (en) Electronic installation and charging method thereof
CN106451617A (en) Electronic device and charging method thereof
CN106356933A (en) Electronic device and charging method thereof
CN106329655A (en) Electronic device and charging method thereof
CN106374564A (en) Electronic device and charging method thereof
CN106300551A (en) Electronic installation and charging method thereof
CN106356935A (en) Electronic device and charging method thereof

Legal Events

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

Application publication date: 20170111