CN106374563A - Electronic apparatus and charging method therefor - Google Patents
Electronic apparatus and charging method therefor Download PDFInfo
- Publication number
- CN106374563A CN106374563A CN201610849534.0A CN201610849534A CN106374563A CN 106374563 A CN106374563 A CN 106374563A CN 201610849534 A CN201610849534 A CN 201610849534A CN 106374563 A CN106374563 A CN 106374563A
- 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
Links
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01M—PROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
- H01M10/00—Secondary cells; Manufacture thereof
- H01M10/42—Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
- H01M10/44—Methods for charging or discharging
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/00032—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
- H02J7/00034—Charger exchanging data with an electronic device, i.e. telephone, whose internal battery is under charge
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02E60/10—Energy 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 invention discloses an electronic apparatus. The electronic apparatus comprises a charging module, a CPU, and an MCU, wherein the charging module is used for being connected with a charger; the CPU is connected with the charger for detecting the port type of the charger, and obtaining a charging current corresponding to the port type from the charger according to the port type of the charger so as to charge the electronic apparatus; the MCU is connected with the charger; and the MCU is also used for further detecting a special charging protocol supported by the charger when it is detected that the charger is a charger with a special charging port type, and selecting a corresponding special charging protocol scheme to control the charger to charge the electronic apparatus. The invention also provides a charging method. By adoption of the electronic apparatus and the charging method, multiple kinds of quick charge protocols can be compatible.
Description
Technical field
The present invention relates to rapid nitriding field is and in particular to a kind of electronic installation and its charging method.
Background technology
A kind of fast charge protocol generally only supported by the electronic installations such as existing mobile phone, for example, supports qc 2.0/3.0
The mobile phone of agreement does not generally just 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, (abbreviation pe+
2.0/3.0), can only arrange in pairs or groups supports the charger of qc 2.0/3.0 agreement to realize 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 just supported
Qc2.0/3.0 protocol scheme and pe+2.0/3.0 protocol scheme, can only arranging in pairs or groups, it is quick to support the charger of vooc agreement to realize
Charge it is impossible to collocation supports that qc2.0/3.0 agreement and the charger of pe+2.0/3.0 agreement carry out quick charge.Support pe+2.0
The mobile phone of protocol scheme does not generally just support qc2.0/3.0 protocol scheme and vooc protocol scheme, and 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 qc2.0/3.0 agreement and the charger of vooc agreement enter
Row quick charge.Therefore, existing electronic installation is poor to the compatibility of charger.
Content of the invention
In view of the foregoing it is necessary to provide one kind simultaneously compatible can support qc 2.0/3.0 agreement, pe+2.0/3.0 association
The electronic installation of the charger of view and vooc agreement.
In addition it is necessary to provide a kind of above-mentioned electronic installation corresponding charging method.
A kind of electronic installation is 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 is through usb pd protocol interface
Chip is connected with described charger;
Described cpu is used for the port type of the described charger that detection is connected, and the port type according to described charger, from
Described charger obtains charging current corresponding with described port type, to be charged to described electronic installation;
Described cpu is additionally operable to, when the charger that described charger is special charging port type is detected, detect described charging
The first kind that device is supported fills agreement soon, and selects the corresponding first kind to fill the protocol scheme described charger of control soon to described electricity
Sub-device is charged, and the described first kind fills that agreement includes quick charge 2.0 agreement, quick charge 3.0 assists soon
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 special charging port type is detected, detect that the Equations of The Second Kind that described charger is supported is fast
Filling agreement, and select corresponding Equations of The Second Kind to fill protocol scheme soon controls described charger that described electronic installation is charged, institute
State Equations of The Second Kind and fill agreement soon and include voltage open loop multistep constant-current charge vooc agreement.
According to the preferred embodiment of the present invention, the port type of described charger also include standard down port, charge descending
Port:
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 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 electronic installation
Shake hands with the first time of charger.
According to the preferred embodiment of the present invention, it is filling of special charging port type when described cpu detects described charger
Electrical equipment, and be not detected by the first kind that described charger supported and fill agreement soon and when Equations of The Second Kind fills agreement soon, fill according to 5v
Appliance type is charged to described electronic installation.
A kind of charging method, for controlling charger that electronic installation is charged, methods described 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 that described charger is special charging port type is detected, and detect that described charger is supported first
When class fills agreement soon, select the corresponding first kind to fill protocol scheme soon and control described charger that 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 that described charger is special charging port type is detected, and described charger is detected and support Equations of The Second Kind
When filling agreement soon, select corresponding Equations of The Second Kind to fill protocol scheme soon and control described charger that described electronic installation is charged,
Described Equations of The Second Kind fills agreement soon and includes voltage open loop multistep constant-current charge vooc agreement.
According to the preferred embodiment of the present invention, the port type of described charger also include standard down port, charge descending
Port, methods described also includes:
When the charger that described charger is standard down port type is detected, obtain the first charging electricity from described charger
Stream is charged to described electronic installation;
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, methods described 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, methods described also includes:
Detection usb battery charging specifications 1.2 agreement, was shaken hands with the first time completing electronic installation and charger.
According to the preferred embodiment of the present invention, methods described also includes:
When the charger that described charger is special charging port type is detected, and it is not detected by described charger and is supported
The first kind fill agreement soon and when Equations of The Second Kind fills agreement soon, according to 5v charger type, described electronic installation is charged.
Compared to prior art, described electronic installation and its charging method can detect the charging association that described charger is supported
View, and select corresponding charge protocol to be charged according to testing result so that electronic installation is compatible supports that the first kind is filled soon
Agreement and Equations of The Second Kind fill the charger of agreement soon, are user-friendly to, and lift Consumer's Experience.
Brief description
It is the circuit diagram of the electronic installation of a preferred embodiment of the present invention shown in Fig. 1.
It is the circuit diagram of the electronic installation of another preferred embodiment of the present invention shown in Fig. 2.
It is the flow chart of the method for the present invention first preferred embodiment shown in Fig. 3.
It is the flow chart of the method for the present invention second preferred embodiment shown in Fig. 4.
It is the flow chart of the method for the present invention the 3rd preferred embodiment shown in Fig. 5.
It is the flow chart of the method for the present invention the 4th preferred embodiment shown in Fig. 6.
It is the flow chart of the method for the present invention the 5th preferred embodiment shown in Fig. 7.
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 |
Usb pd protocol interface chip | 60 |
Power management module | 70 |
Charger | 200 |
Adapter | 201 |
Power pins | vbus |
Grounding pin | gnd |
Data pin | usb_d+、usb_d- |
First resistor | r1 |
Second resistance | r2 |
Following specific embodiment will further illustrate the present invention in conjunction with above-mentioned accompanying drawing.
Specific embodiment
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
Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.
Based on the embodiment in the present invention, those of ordinary skill in the art institute on the premise of not making creative work
The every other embodiment obtaining, broadly falls into the scope of protection of the invention.
With reference to shown in Fig. 1, 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 adapter, 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 when, institute
State cpu to be connected with described charger 200 by the first pin cc1 and 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 shown in Fig. 2 being 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 passes through the first pin cc1 and second pin cc2
Be connected described charger 200, the connection of other elements is identical with Fig. 1, repeats no more.
Described cpu30 is used for the port type of the described charger 200 that detection is connected, and according to described charger 200
Port type, control the charging scheme to electronic installation 100 for the described charger 200.Specifically, cpu30 is from described charger
200 acquisition charging currents corresponding with described port type, to be charged to 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, charging downlink port) and dcp
(dedicated charging port, special charging port).If it is sdp that described cpu30 detects described charger 200
Type, then obtain the first charging current from described charger 200 and described electronic installation be charged, if described cpu30 inspection
Measuring described charger 200 is cdp type, then obtain the second charging current from described charger 200 and described electronic installation is entered
Row charges.In this preferred embodiment, described first charging current is the charging current that maximum current is about 500ma, described the
Two charging currents are about the charging current of 900ma for maximum current.
If described cpu30 detects the charger that described charger 200 is dcp type, described cpu 30 examines 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,
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 with second resistance r2 through first resistor r1, and described mcu50 is used for
When the charger that described charger 200 is dcp type is 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, selects corresponding Equations of The Second Kind to fill protocol scheme soon to described electricity
Sub-device 100 is charged.In other embodiments it is also possible to detect described charger 200 whether 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 (abbreviation pe+2.0) soon and pump express 3.0 fills agreement soon
(abbreviation 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 of 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
It is connected with described charger 200, then described cpu30 detects the port type of described charger 200, if described charging mould
Block 10 is not connected with described charger 200, then 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 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 described electronic installation 100 is detected to be connected with charger 200, 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 detection usb battery charging specifications 1.2 agreement (abbreviation bc 1.2), to complete electronics dress
Put 100 to shake hands with first time of charger 200.
Step 302, whether the connected charger of described cpu 30 detection 200 is the charger 200 of sdp type, if
The charger that connected charger 200 is sdp type is detected, then enter step 303, if connected charging is detected
Device 200 is not the charger of sdp type, then enter step 304.
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 by during low level it is determined that the equipment being connect is sdp type of charge device.
Step 303, described cpu 30 obtains the first charging current from charger 200 and described electronic installation 100 is filled
Electricity.In this preferred embodiment, described first charging current is about the charging current of 500ma for maximum current.
Step 304, whether the connected charger of described cpu 30 detection 200 is the charger 200 of cdp type, if
The charger that connected charger 200 is cdp type is detected, then enter step 305, if connected charging is detected
Device 200 is not the charger of cdp type, then enter step 306.
In one embodiment of the invention, when electronic installation 100 is connected to a charger, then open electronics dress
Put pull-up power supply vdm_src of 100 d- signal, that is, the d- signal of electronic installation 100 is high level, disconnects electronic installation 100
D+ signal pull-up power supply vdp_src, 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 as cdp type for the connected charger accordingly.
Step 305, described cpu 30 obtains the second charging current from charger 200 and described electronic installation 100 is filled
Electricity.In this preferred embodiment, described second charging current is about the charging current of 900ma for maximum current.
Step 306, whether the connected charger of described cpu 30 detection 200 is the charger of dcp type, if detection
It is not the charger of dcp type to the charger 200 being connected, then enter step 307, if connected charger is detected
200 is the charger 200 of dcp type, then enter step 308.
In one embodiment of the invention, when electronic installation 100 is connected to a charger, then open electronics dress
Put pull-up power supply vdm_src of 100 d- signal, that is, the d- signal of electronic installation 100 is high level, disconnects electronic installation 100
D+ signal pull-up power supply vdp_src, 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 as dcp type for the connected charger accordingly.
Step 307, described cpu 30 obtains the 3rd charging current from charger 200 and described electronic installation 100 is filled
Electricity.In this preferred embodiment, described 3rd charging current is about the charging current of 500ma for maximum current.
Step 308, described cpu 30 controls described charging module 10 to detect whether described charger 200 supports that qc3.0 assists
View, if qc3.0 agreement supported by described charger 200, enters step 309, if qc3.0 do not supported by described charger 200
Agreement, then enter step 310.
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 pull-up power supply vdp_src in its d+.Charger 200 detects d+
On output voltage and guarantee that output voltage on d+ is higher than the first decision level vdat_ref in the duration of a second and is 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, electronic installation 100
Hold qc3.0 agreement.
Step 309, described cpu 30 controls described charging module 10 to adopt qc3.0 protocol scheme to described electronic installation
100 are charged.
Step 310, described cpu 30 controls described charging module 10 to detect whether described charger 200 supports that qc2.0 assists
View, if qc2.0 agreement supported by described charger 200, enters step 311, if qc2.0 do not supported by described charger 200
Agreement, then enter step 312.
In one embodiment of the present of invention, similar to the detection of qc3.0 agreement, electronic installation 100 is first according to usb bc1.2
Regulation enforcement detects, 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 311, described cpu 30 controls described charging module 10 to adopt qc2.0 protocol scheme to described electronic installation
100 are charged.
Step 312, described cpu 30 detects whether described charger 200 supports pe+3.0 agreement, if described charger
200 support pe+3.0 agreements, then enter step 313, if pe+3.0 agreement do not supported by described charger 200, enters step
314.
In one embodiment of the invention, when charging module 10 determines that the charger being connected with electronic installation 100 is cdp
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, the output voltage adjustment of charger 200
To a preset value and maintain.Therefore, charging module 10 can be determined that the device via the insertion of usb adapter through measuring vbus
Whether it is the power supply adaptor meeting fc agreement.If vbus meets the specification that power supply adaptor exports described preset value, can sentence
It is set to charger 200 and support pe+3.0 agreement.
Step 313, described cpu 30 controls described charging module 10 to adopt pe+3.0 protocol scheme to described electronic installation
100 are charged.
Step 314, described cpu 30 detects whether described charger 200 supports pe+2.0 agreement, if described charger
200 support pe+2.0 agreements, then enter step 315, if pe+2.0 agreement do not supported by described charger 200, enters step
316.
In one embodiment of the invention, when charging module 10 determines that the charger being connected with electronic installation 100 is cdp
When type or dcp type, charging module 10 sends up voltage instruction current pattern and inserts it is therefore an objective to distinguish further
Whether the device entering 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 via the insertion of usb adapter is the electricity meeting fc agreement
Source adapter.If vbus meets power supply adaptor exports the specification of 7v it is possible to determine that supporting pe+2.0 agreement for charger 200.
Step 315, described cpu 30 is charged to described electronic installation 100 using pe+2.0 protocol scheme.
Step 316, described mcu 50 detects whether described charger 200 supports vooc agreement, if described charger 200
Support vooc agreement, then enter step 309, if qc2.0 agreement do not supported by described charger 200, enter step 310.
In one embodiment of the invention, described mcu 50 passes through to detect the d+ signal of adapter 201, and d- signal comes
Judge the agreement of vooc, wherein d+ is used for transmitting the clk data of handshake, d- is used for transmitting the data data of handshake.
Step 317, described mcu 50 is charged to described electronic installation 100 using vooc protocol scheme.
Step 318, described cpu 30 carries out normal charge according to common 5v charger type.
It is understood that as shown in figure 4, in the present invention second better embodiment, when step 310 judges no,
Execution step 316.When step 316 is judged as NO, execution step 312;When step 316 is judged as YES, execution step 317.Step
Rapid 312 when being judged as NO, execution step 314;When step 312 is judged as YES, execution step 313.When step 314 is judged as NO,
Execution step 318.Other steps are identical with Fig. 3, repeat no more.
It is understood that as shown in figure 5, in the present invention the 3rd better embodiment, being judged as YES in step 306
When, execution step 312.When step 312 judges no, execution step 314;When step 312 judges to be, execution step 313.?
When step 314 is judged as NO, execution step 308;When step 314 is judged as YES, execution step 315.Step 308 is judged as NO
When, execution step 310;When step 308 is judged as YES, execution step 309.When step 310 is judged as NO, execution step 316;Step
Rapid 310 when being judged as YES, execution step 311.When step 316 is judged as NO, execution step 318.Other steps are identical with Fig. 3,
Repeat no more.
It is understood that as shown in fig. 6, in the present invention the 4th better embodiment, being judged as YES in step 306
When, execution step 312.When step 312 judges no, execution step 314;When step 312 judges to be, execution step 313.?
When step 314 is judged as NO, execution step 316;When step 314 is judged as YES, execution step 315.Step 316 is judged as NO
When, execution step 308;When step 316 is judged as YES, execution step 317.When step 308 is judged as NO, execution step 310;Step
Rapid 308 when being judged as YES, execution step 309.When step 310 is judged as NO, execution step 318.Other steps are identical with Fig. 3,
Repeat no more.
It is understood that as shown in fig. 7, in the present invention the 5th better embodiment, being judged as YES in step 306
When, execution step 316.When step 316 judges no, execution step 308;When step 316 judges to be, execution step 317.?
When step 308 is judged as NO, execution step 310;When step 308 is judged as YES, execution step 309.Step 310 is judged as NO
When, execution step 312;When step 310 is judged as YES, execution step 311.When step 312 is judged as NO, execution step 314;Step
Rapid 314 when being judged as YES, execution step 315.When step 314 is judged as NO, execution step 318.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, being judged as YES in step 306
When, execution step 316.When step 316 judges no, execution step 312;When step 316 judges to be, execution step 317.?
When step 312 is judged as NO, execution step 314;When step 312 is judged as YES, execution step 313.Step 314 is judged as NO
When, execution step 308;When step 314 is judged as YES, execution step 315.When step 308 is judged as NO, execution step 310;Step
Rapid 308 when being judged as YES, execution step 309.When step 310 is judged as NO, execution step 318.Other steps are identical with Fig. 3,
Repeat no more.
In addition, above-mentioned steps 302 can exchange with the execution sequence of step 304;Step 308 is suitable with the execution of step 310
Sequence can exchange;Step 312 can also exchange with the execution sequence of step 314.
What the electronic installation 100 of the present invention and its charging method can detect that described charger 200 is supported special fills soon
Electric agreement, and select the corresponding special charge protocol that fills soon to be charged so that electronic installation 100 is compatible according to testing result
Support that the first kind fills the charger 200 that agreement, Equations of The Second Kind fill agreement soon soon, be user-friendly to, lift 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, the present invention can be realized in other specific forms.Therefore, no matter
From the point of view of which point, embodiment all should be regarded 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 in the implication and scope of the equivalency of claim by falling
Change is included in the present invention.Any reference in claim should not be considered as limiting involved claim.This
Outward it is clear that " inclusion " one word is not excluded for other units or, odd number is not excluded for plural number.Multiple units of statement in system claims
Or device can also be realized by software or hardware by a unit or device.The first, the second grade word is used for representing name
Claim, and be not offered as any specific order.
Finally it should be noted that above example is only in order to illustrate technical scheme and unrestricted, although reference
Preferred embodiment has been described in detail to the present invention, 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 (10)
1. a kind of electronic installation is 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 described usb pd protocol interface, described cpu is through usb pd agreement
Interface chip is connected with described charger;
Described cpu is used for the port type of the described charger that detection is connected, and the port type according to described charger, from
Described charger obtains charging current corresponding with described port type, to be charged to described electronic installation;
Described cpu is additionally operable to, when the charger that described charger is special charging port type is detected, detect described charging
The first kind that device is supported fills agreement soon, and selects the corresponding first kind to fill the protocol scheme described charger of control soon to described electricity
Sub-device is charged, and the described first kind fills that agreement includes quick charge 2.0 agreement, quick charge 3.0 assists soon
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 is detected, detect described charger supported second
Class fills agreement soon, and select corresponding Equations of The Second Kind fill soon protocol scheme control described charger 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.
2. electronic installation as claimed in claim 1 is it is characterised in that the port type of described charger also includes standard down
Port, charging downlink port:
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.
3. electronic installation as claimed in claim 1 is it is characterised in that described electronic installation also includes power management module, institute
State power management module to be used for detecting whether described charging module is connected with charger, and in described electronic installation and described charging
When device is connected, described cpu detects the port type of described charger.
4. electronic installation as claimed in claim 1 it is characterised in that described cpu detection usb battery charging specifications 1.2 agreement,
Shaken hands with the first time completing electronic installation and charger.
5. electronic installation as claimed in claim 1 is it is characterised in that be described special when described cpu detects described charger
With the charger of charging port type, and it is not detected by the described first kind that described charger supported and fills agreement and described soon
When Equations of The Second Kind fills agreement soon, according to 5v charger type, described electronic installation is charged.
6. a kind of charging method, for controlling charger electronic installation to be charged it is characterised in that methods described 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 that described charger is special charging port type is detected, and detect that described charger is supported first
When class fills agreement soon, select the corresponding first kind to fill protocol scheme soon and control described charger that 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 that described charger is special charging port type is detected, and described charger is detected and support Equations of The Second Kind
When filling agreement soon, select corresponding Equations of The Second Kind to fill protocol scheme soon and control described charger that described electronic installation is charged,
Described Equations of The Second Kind fills agreement soon and includes voltage open loop multistep constant-current charge vooc agreement.
7. charging method as claimed in claim 6 is it is characterised in that the port type of described charger also includes standard down
Port, charging downlink port, methods described also includes:
When the charger that described charger is standard down port type is detected, obtain the first charging electricity from described charger
Stream is charged to described electronic installation;
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.
8. charging method as claimed in claim 6 is it is characterised in that methods described also includes detecting filling of described electronic installation
Whether electric module is connected with described charger, and when described electronic installation is connected with described charger, detects described charger
Port type.
9. charging method as claimed in claim 6 is it is characterised in that methods described also includes:
Detection usb battery charging specifications 1.2 agreement, was shaken hands with the first time completing described electronic installation and described charger.
10. charging method as claimed in claim 6 is it is characterised in that methods described also includes:
When the charger that described charger is special charging port type is detected, and it is not detected by described charger and is supported
The described first kind fill agreement soon and when described Equations of The Second Kind fills agreement soon, according to 5v charger type, described electronic installation is carried out
Charge.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610849534.0A CN106374563A (en) | 2016-09-26 | 2016-09-26 | Electronic apparatus and charging method therefor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610849534.0A CN106374563A (en) | 2016-09-26 | 2016-09-26 | Electronic apparatus and charging method therefor |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106374563A true CN106374563A (en) | 2017-02-01 |
Family
ID=57897367
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610849534.0A Pending CN106374563A (en) | 2016-09-26 | 2016-09-26 | Electronic apparatus and charging method therefor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106374563A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108630879A (en) * | 2017-03-21 | 2018-10-09 | 创科(澳门离岸商业服务)有限公司 | Battery pack, group charger and the combination of battery packs for electric tool |
CN108988431A (en) * | 2018-08-07 | 2018-12-11 | 安克创新科技股份有限公司 | A kind of multi-protocols charging unit and multi-protocols charging method |
CN111864854A (en) * | 2020-08-03 | 2020-10-30 | 珠海智融科技有限公司 | Pin multiplexing circuit and working method thereof, and quick charging chip and working method thereof |
CN113572210A (en) * | 2020-04-29 | 2021-10-29 | 北京小米移动软件有限公司 | Charging method, device, equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102156524A (en) * | 2011-02-11 | 2011-08-17 | 威盛电子股份有限公司 | Adaptive universal serial bus charging method and system |
CN102684270A (en) * | 2012-05-31 | 2012-09-19 | 华为技术有限公司 | Method for identifying type of universal serial bus (USB) chargers and USB device |
EP2315335A3 (en) * | 2009-10-22 | 2014-04-02 | LG Electronics Inc. | Mobile terminal and charge current setting method thereof |
CN105553001A (en) * | 2015-12-23 | 2016-05-04 | 深圳市万普拉斯科技有限公司 | Charging method and intelligent terminal |
CN205540709U (en) * | 2016-01-27 | 2016-08-31 | 深圳市瑞之辰科技有限公司 | Special quick charge port adaptation chip of USB |
-
2016
- 2016-09-26 CN CN201610849534.0A patent/CN106374563A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2315335A3 (en) * | 2009-10-22 | 2014-04-02 | LG Electronics Inc. | Mobile terminal and charge current setting method thereof |
CN102156524A (en) * | 2011-02-11 | 2011-08-17 | 威盛电子股份有限公司 | Adaptive universal serial bus charging method and system |
CN102684270A (en) * | 2012-05-31 | 2012-09-19 | 华为技术有限公司 | Method for identifying type of universal serial bus (USB) chargers and USB device |
CN105553001A (en) * | 2015-12-23 | 2016-05-04 | 深圳市万普拉斯科技有限公司 | Charging method and intelligent terminal |
CN205540709U (en) * | 2016-01-27 | 2016-08-31 | 深圳市瑞之辰科技有限公司 | Special quick charge port adaptation chip of USB |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108630879A (en) * | 2017-03-21 | 2018-10-09 | 创科(澳门离岸商业服务)有限公司 | Battery pack, group charger and the combination of battery packs for electric tool |
CN108988431A (en) * | 2018-08-07 | 2018-12-11 | 安克创新科技股份有限公司 | A kind of multi-protocols charging unit and multi-protocols charging method |
CN108988431B (en) * | 2018-08-07 | 2021-09-17 | 安克创新科技股份有限公司 | Multi-protocol charging device and multi-protocol charging method |
CN113572210A (en) * | 2020-04-29 | 2021-10-29 | 北京小米移动软件有限公司 | Charging method, device, equipment and storage medium |
CN111864854A (en) * | 2020-08-03 | 2020-10-30 | 珠海智融科技有限公司 | Pin multiplexing circuit and working method thereof, and quick charging chip and working method thereof |
CN111864854B (en) * | 2020-08-03 | 2021-04-06 | 珠海智融科技有限公司 | Pin multiplexing circuit and working method thereof, and quick charging chip and working method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106329654A (en) | Electronic device and charging method thereof | |
CN102393837B (en) | USB charger recognition device and method | |
US9153999B2 (en) | Circuits and methods for automatic power source detection | |
CN101232196B (en) | Control circuit of charging mode in USB charging stand and method thereof | |
JP5981043B2 (en) | High voltage dedicated charging port | |
KR101592840B1 (en) | High voltage dedicated charging port | |
CN106374563A (en) | Electronic apparatus and charging method therefor | |
CN106537725A (en) | Charging circuit, electronic device using same, and charger | |
CN107742912A (en) | Charging method, fast fill device and computer-readable recording medium | |
CN106059335A (en) | BUS CONTROLLER, power device, and power adapter | |
CN104253458B (en) | Performance Test System, test method and the electronic device of USB charge cables | |
CN104617615B (en) | Charging method and electronic equipment | |
US9018896B2 (en) | Method and system for determining whether a portable device is charging | |
CN106300549A (en) | Electronic installation and charging method thereof | |
CN106410894A (en) | Electronic device and charging method thereof | |
CN109254210A (en) | Electronic device port type detection method, apparatus, detection circuit and electronic equipment | |
CN106160033B (en) | A kind for the treatment of method and apparatus of terminal charger | |
CN106329652A (en) | Electronic device and charging method thereof | |
CN106451617A (en) | Electronic device and charging method thereof | |
CN107819344A (en) | Charging control circuit, charge control method and mobile terminal | |
CN106300552A (en) | Electronic installation and charging method thereof | |
CN106356933A (en) | Electronic device and charging method thereof | |
CN106374564A (en) | Electronic device and charging method thereof | |
CN106356935A (en) | Electronic device and charging method thereof | |
CN106451615A (en) | Electronic device and charging method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170201 |
|
RJ01 | Rejection of invention patent application after publication |