CN106067571B - For the method and electronic equipment of battery charging - Google Patents

For the method and electronic equipment of battery charging Download PDF

Info

Publication number
CN106067571B
CN106067571B CN201610587165.2A CN201610587165A CN106067571B CN 106067571 B CN106067571 B CN 106067571B CN 201610587165 A CN201610587165 A CN 201610587165A CN 106067571 B CN106067571 B CN 106067571B
Authority
CN
China
Prior art keywords
charger
charge mode
instruction
charge
mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610587165.2A
Other languages
Chinese (zh)
Other versions
CN106067571A (en
Inventor
王彦腾
李志杰
郝宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610587165.2A priority Critical patent/CN106067571B/en
Publication of CN106067571A publication Critical patent/CN106067571A/en
Application granted granted Critical
Publication of CN106067571B publication Critical patent/CN106067571B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B40/00Technologies aiming at improving the efficiency of home appliances, e.g. induction cooking or efficient technologies for refrigerators, freezers or dish washers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Abstract

The disclosure is directed to a kind of methods and electronic equipment for battery charging.This method is applied in electronic equipment, which includes charging interface and battery, this method comprises: determining the charge mode that the charger is supported in the case where detecting that charger is connected to the charging interface;Determine target charge mode, the charge efficiency of the target charge mode is higher than the charge efficiency of the remaining charge mode in addition to the target charge mode in the charge mode that the charger is supported;It is battery charging that the charger, which is controlled, according to the target charge mode.The highest charge mode of charge efficiency in the charge mode supported due to target charge mode for charger, so improving charge efficiency.

Description

For the method and electronic equipment of battery charging
Technical field
This disclosure relates to electric energy management field more particularly to a kind of method and electronic equipment for battery charging.
Background technique
With the development of electronic technology, more and more electronic equipments appear in the work and life of people, such as: intelligence Energy mobile phone, tablet computer, Intelligent bracelet etc..The appearance of these electronic equipments is that the work and life of people brings convenience, because This, these electronic equipments, which are increasingly becoming in the work and life of people, becomes indispensable tool.
Electric energy is the necessary condition of electronic equipment operation, is usually provided with battery on electronic equipment, is used for storing electrical energy, electricity The electric energy saved in pond can be consumed with the operation of electronic equipment, and the remaining capacity of battery can be with the use of electronic equipment The increase of duration and reduce.After use after a period of time, the dump energy of battery is likely to reduced to be not enough to electronic equipment Guarantee electronic equipment operation duration reach it is intended that duration, even less than run with drive electronics, lead to electronics Equipment automatic shutdown cannot be started up, and make troubles for the work and life of people.
If can charge in time for the less battery of remaining capacity, can occur to avoid above situation.Therefore, how Become problem to be solved for quickly charging battery.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provides a kind of method and electronic equipment for battery charging, Improve charge efficiency.
According to the first aspect of the embodiments of the present disclosure, a kind of method for battery charging is provided, is applied in electronic equipment, The electronic equipment includes charging interface and the battery, which comprises
In the case where detecting that charger is connected to the charging interface, the charging mould that the charger is supported is determined Formula;
Determine target charge mode, the charge efficiency of the target charge mode is higher than the charging mould that the charger is supported In formula in addition to the target charge mode remaining charge mode charge efficiency;
It is battery charging that the charger, which is controlled, according to the target charge mode;
The charge mode that the determination charger is supported, comprising:
Preset charged instruction is sent to the charger;
In the case where detecting that the charger has executed preset charged instruction, the preset charged instruction is determined Corresponding preset charged mode is the charge mode that the charger is supported.
Optionally, the preset charged instruction is quickly filled including the first quick charge instruction, USB charging instruction and second One of electricity instruction;
The charge mode that the determination charger is supported, comprising:
The first quick charge instruction is sent to the charger;
In the case where detecting that the charger has executed first quick charge instruction, the charger branch is determined The charge mode held includes the first fast charge mode corresponding with the first quick charge instruction;
In the case where detecting that the charger is not carried out first quick charge instruction, sent to the charger USB power transmission PD charging instruction;
In the case where detecting that the charger has executed the USB PD charging instruction, determine that the charger is supported Charge mode include USB PD charge mode corresponding with the USB PD charging instruction;
In the case where detecting that the charger is not carried out the USB PD charging instruction, the is sent to the charger Two quick charges instruction;
In the case where detecting that the charger has executed second quick charge instruction, the charger branch is determined The charge mode held includes the second fast charge mode corresponding with the second quick charge instruction.
It is optionally, described to determine target charge mode from the charge mode that the charger is supported, comprising:
Determine the priority orders of the preset charged mode, first fast charge mode, USB PD charging Mode and the priority of second fast charge mode successively reduce;
It include the first fast charge mode, the second fast charge mode and USB in the charge mode that the charger is supported In PD charge mode at least two when, according to the priority orders, determine the target charge mode.
It is optionally, described to determine target charge mode from the charge mode that the charger is supported, comprising:
The charger support charge mode do not include the first fast charge mode, the second fast charge mode and When any in USB PD charge mode, determine that default charge mode that the charger is supported is that the target charges mould Formula.
According to the second aspect of an embodiment of the present disclosure, a kind of device for battery charging is provided, described device is configured in In electronic equipment, the electronic equipment includes charging interface and the battery, and described device includes:
First determining module, is configured as: in the case where detecting that charger is connected to the charging interface, determining institute State the charge mode of charger support;
Second determining module, is configured as: determining target charge mode, the charge efficiency of the target charge mode is higher than In the charge mode that the charger is supported in addition to the target charge mode remaining charge mode charge efficiency;
Control module is configured as: it is that the battery fills that control, which controls the charger according to the target charge mode, Electricity;
First determining module includes:
Sending submodule is configured as: sending preset charged instruction to the charger;
First determines submodule, is configured as: detecting that the charger executed the feelings of preset charged instruction Under condition, determining that the preset charged instructs corresponding preset charged mode is the charge mode that the charger is supported.
Optionally, the preset charged instruction is quickly filled including the first quick charge instruction, USB charging instruction and second One of electricity instruction;
First determining module includes:
First sending submodule, is configured as: sending the first quick charge instruction to the charger;
First charge mode determines submodule, is configured as: detecting that it is quick that the charger has executed described first In the case where charging instruction, the charge mode for determining that the charger is supported includes corresponding with the first quick charge instruction First fast charge mode;
Second sending submodule, is configured as: detecting that the charger is not carried out first quick charge instruction In the case where, USB power transmission PD charging instruction is sent to the charger;
Second charge mode determines submodule, is configured as: detecting that the charger executed the USB PD and filled In the case where electricity instruction, the charge mode for determining that the charger is supported includes USB corresponding with the USB PD charging instruction PD charge mode;
Third sending submodule, is configured as: detecting that the charger is not carried out the USB PD charging instruction In the case of, the second quick charge instruction is sent to the charger;
Third charge mode determines submodule, is configured as: detecting that it is quick that the charger has executed described second In the case where charging instruction, the charge mode for determining that the charger is supported includes corresponding with the second quick charge instruction Second fast charge mode.
Optionally, second determining module includes:
Priority orders determine submodule, are configured as: determine the priority orders of the preset charged mode, described The priority of one fast charge mode, the USB PD charge mode and second fast charge mode successively reduces;
Second determines submodule, is configured as: including the first quick charge mould in the charge mode that the charger is supported In formula, the second fast charge mode and USB PD charge mode at least two when, according to the priority orders, determine institute State target charge mode.
Optionally, second determining module includes:
Third determines submodule, is configured as: not including the first quick charge in the charge mode that the charger is supported When any in mode, the second fast charge mode and USB PD charge mode, the default for determining that the charger is supported is filled Power mode is the target charge mode.
According to the third aspect of an embodiment of the present disclosure, a kind of device for battery charging is provided, described device is configured in In electronic equipment, the electronic equipment includes charging interface and the battery, and described device includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
In the case where detecting that charger is connected to the charging interface, the charging mould that the charger is supported is determined Formula;
Determine target charge mode, the charge efficiency of the target charge mode is higher than the charging mould that the charger is supported In formula in addition to the target charge mode remaining charge mode charge efficiency;
It is battery charging that the charger, which is controlled, according to the target charge mode;
The charge mode that the determination charger is supported, comprising:
Preset charged instruction is sent to the charger;
In the case where detecting that the charger has executed preset charged instruction, the preset charged instruction is determined Corresponding preset charged mode is the charge mode that the charger is supported.
According to a fourth aspect of embodiments of the present disclosure, a kind of non-transitorycomputer readable storage medium is provided, when described When instruction in storage medium is executed by the processor of electronic equipment so that electronic equipment be able to carry out it is a kind of for battery charging Method, which comprises
In the case where detecting that charger is connected to the charging interface, the charging mould that the charger is supported is determined Formula;
Determine target charge mode, the charge efficiency of the target charge mode is higher than the charging mould that the charger is supported In formula in addition to the target charge mode remaining charge mode charge efficiency;
It is battery charging that the charger, which is controlled, according to the target charge mode;
The charge mode that the determination charger is supported, comprising:
Preset charged instruction is sent to the charger;
In the case where detecting that the charger has executed preset charged instruction, the preset charged instruction is determined Corresponding preset charged mode is the charge mode that the charger is supported.
The technical scheme provided by this disclosed embodiment can include the following benefits:
Using the disclosure to provide is the technical solution of battery charging, and electronic equipment controls charger according to target charging mould Formula is battery charging, since target charge mode is the highest charge mode of charge efficiency in the charge mode of charger support, So improving charge efficiency.
Further, the charge mode that different chargers is supported is different, and correspondingly, target charge mode is also different, In the case that different chargers is connected to the charging interface of electronic equipment, electronic equipment controls charger according to different targets Charge mode is battery charging.Therefore, electronic equipment no longer solely supports a kind of charge mode, but not with charger Together, a variety of charge modes can be supported, the applicability of electronic equipment is improved, extend the charging that can be adapted to electronic equipment The range of device.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of method for battery charging shown according to an exemplary embodiment.
Fig. 2 is the flow chart of step S11 in a kind of method for battery charging shown according to an exemplary embodiment.
Fig. 3 is another process of step S11 in a kind of method for battery charging shown according to an exemplary embodiment Figure.
Fig. 4 is the flow chart of step S12 in a kind of method for battery charging shown according to an exemplary embodiment.
Fig. 5 is a kind of device block diagram for battery charging shown according to an exemplary embodiment.
Fig. 6 is a kind of frame of the first determining module of device for battery charging shown according to an exemplary embodiment Figure.
Fig. 7 is a kind of the another of the first determining module of device for battery charging shown according to an exemplary embodiment Block diagram.
Fig. 8 is a kind of frame of the second determining module of device for battery charging shown according to an exemplary embodiment Figure.
Fig. 9 is a kind of the another of the second determining module of device for battery charging shown according to an exemplary embodiment Block diagram.
Figure 10 is a kind of block diagram of device for battery charging shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
It is that the method that battery charges is applied in electronic equipment that the disclosure, which provides, which includes: charging interface And battery, charging interface is for connecting charger.When charger is connected to charging interface, start as battery charging.
Referring to FIG. 1, Fig. 1 is a kind of flow chart of method for battery charging shown according to an exemplary embodiment, As shown in Figure 1, this approach includes the following steps.
In step s 11, in the case where detecting that charger is connected to the charging interface, the charger branch is determined The charge mode held.
In step s 12, target charge mode is determined from the charge mode that the charger is supported.
In step s 13, controlling the charger according to the target charge mode is battery charging.
In the disclosure, the charge mode that charger is supported be may include: USB PD charge mode, is write from memory at fast charge mode Recognize charge mode.USB PD charge mode, fast charge mode, default charge mode are illustrated separately below.
Under USB PD charge mode, VBUS CC pin (type C interface is used between charger and electronic equipment A pin) on signal shake hands, adjusted by different charging instructions charger output voltage and output electric current. Output voltage is up to 20V, and output electric current is up to 5A.
Fast charge mode includes the first fast charge mode and the second fast charge mode, and the first fast charge mode is adopted With 3.0 technology of Quick Charge, the second fast charge mode uses 2.0 technology of Quick Charge.
It under fast charge mode, is shaken hands, is led to using the signal on USB D+/D- between charger and electronic equipment Different charging instructions are crossed to adjust the output voltage of charger.The output voltage of charger is as shown in table 1 under fast charge mode.
The output voltage of charger under 1 fast charge mode of table
In the case where defaulting charge mode, it is DCP (Chinese: special charging interface that electronic equipment, which is only able to detect charger,;English Text: Dedicated Charging Port), voltage of VBUS only has 5V, and charger is that electronic equipment charges as DCP.
In the disclosure, whether it is connected with charger on electronic equipment detection charging interface, connected on detecting charging interface When being connected to charger, start to execute the method that disclosure offer is battery charging.Detecting that charger is connected to charging In the case where mouthful, it is first determined the charge mode that charger is supported.Then mesh is determined from the charge mode that charger is supported Charge mode is marked, finally controlling charger according to target charge mode is battery charging.
By adopting the above technical scheme, electronic equipment control charger is battery charging according to target charge mode, due to mesh The highest charge mode of charge efficiency in the charge mode that charge mode is charger support is marked, so improving charge efficiency.
Further, the charge mode that different chargers is supported is different, and correspondingly, target charge mode is also different, In the case that different chargers is connected to the charging interface of electronic equipment, electronic equipment controls charger according to different targets Charge mode is battery charging.Therefore, electronic equipment no longer solely supports a kind of charge mode, but not with charger Together, a variety of charge modes can be supported, the applicability of electronic equipment is improved, extend the charging that can be adapted to electronic equipment The range of device.
Optionally, as shown in Fig. 2, Fig. 2 is in a kind of method for battery charging shown according to an exemplary embodiment The flow chart of step S11.As shown in Fig. 2, step S11 includes the following steps.
Step S111: preset charged instruction is sent to the charger.
Step S112: it in the case where detecting that the charger has executed preset charged instruction, determines described pre- If the corresponding preset charged mode of charging instruction is the charge mode that the charger is supported.
In the disclosure, the preset charged that electronic equipment transmission whether is executed by detecting charger is instructed, and determines charger Whether some charge mode is supported.Wherein, preset charged instruction is corresponding with preset charged mode.Such as: it is sent by D+/D- 9V boost signal is corresponding with the second fast charge mode;Pass through D+/D- 3.0 boost signal of Quick Charger sent and the One fast charge mode is corresponding;The PD charging instruction sent by CC pin is corresponding with USB PD charge mode.
After electronic equipment sends preset charged instruction to charger, whether detection charger executes preset charged instruction, such as Fruit detects that the charger has executed preset charged instruction, then it is corresponding with preset charged instruction default to show that charger is supported Charge mode;If charger, which is not detected, executes preset charged instruction, show that charger is not supported to instruct with preset charged Corresponding preset charged mode.
Optionally, in the disclosure, preset charged instruction includes the first quick charge instruction, USB charging instruction and second One of quick charge instruction.As shown in figure 3, Fig. 3 is shown according to an exemplary embodiment a kind of for battery charging The flow chart of step S11 in method.As shown in figure 3, step S11 includes the following steps.
Step S111: the first quick charge instruction is sent to the charger.
Step S112: in the case where detecting that the charger has executed first quick charge instruction, institute is determined The charge mode for stating charger support includes the first fast charge mode corresponding with the first quick charge instruction.
Step S113: in the case where detecting that the charger is not carried out first quick charge instruction, to described Charger sends USB power transmission PD charging instruction;
Step S114: in the case where detecting that the charger has executed the USB PD charging instruction, described in determination The charge mode that charger is supported includes USB PD charge mode corresponding with the USB PD charging instruction;
Step S115: it in the case where detecting that the charger is not carried out the USB PD charging instruction, is filled to described Electric appliance sends the second quick charge instruction;
Step S116: in the case where detecting that the charger has executed second quick charge instruction, institute is determined The charge mode for stating charger support includes the second fast charge mode corresponding with the second quick charge instruction.
In the disclosure, preset charged instruction be may include: the first quick charge instruction, the second quick charge instruction, USB PD charging instruction.Electronic equipment sends preset charged instruction and can send at random, can also send in a certain order, it may be assumed that The first quick charge instruction is sent first, then sends USB PD charging instruction, finally sends the second quick charge instruction.
In order to reduce the power consumption of electronic equipment, electronic equipment need not send preset charged and instruct all instructions for including, can Executive condition with the charging instruction sent according to charger to electronic equipment, the part sent in preset charged instruction refer to It enables.Electronic equipment sends preset charged instruction and can carry out in accordance with the following methods:
Firstly, electronic equipment can send the first quick charge instruction to charger, if detecting that charger executes the One quick charge instruction, it is determined that the charge mode that the charger is supported includes the first fast charge mode, if detected Charger is not carried out the first quick charge instruction, then sends USB PD charging instruction to charger, if detecting that charger is held Row USB PD charging instruction, it is determined that the charge mode that the charger is supported includes USB PD charge mode, if detected Charger is not carried out USB PD charging instruction, then sends the second quick charge instruction to charger, if detecting that charger is held The second quick charge of row instruction, it is determined that the charge mode that the charger is supported includes the second fast charge mode.
For example, in the case where electronic equipment detects that charger is connected to the charging interface of electronic equipment, electronics Equipment sends 3.0 boost signal of Quick Charger to charger by D+/D-, and charger will will receive the signal, if Charger can identify the signal, and the 200mv that boosts every time, for example boost to 6V, then show that the charger supports Quick 3.0 technology of Charger namely charger support the first charge mode;If charger does not boost, show that charger does not prop up Hold the first charge mode.
In the case where charger does not respond 3.0 boost signal of Quick Charger, electronic equipment passes through CC Pin sends USB PD charging instruction to charger, charges if be able to carry out between charger and electronic equipment for USB PD The communication of instruction then shows that the charger supports USB PD charge mode.
In the case where charger does not support USB PD charge mode, electronic equipment sends 9V to charger by D+/D- Boost signal, charger will receive the signal, if charger can identify the signal, and successfully boost to 9V, then show to charge Device supports the second charge mode;If charger does not boost to 9V, show that charger does not support the second charge mode.
Optionally, as shown in figure 4, Fig. 4 is in a kind of method for battery charging shown according to an exemplary embodiment The flow chart of step S12.As shown in figure 4, step S12 includes the following steps.
Step S121: determining the priority orders of the preset charged mode, first fast charge mode, described The priority of USB PD charge mode and second fast charge mode successively reduces.
Step S122: including the first fast charge mode, the second quick charge in the charge mode that the charger is supported In mode and USB PD charge mode at least two when, according to the priority orders, determine the target charge mode.
Step S123: not including that the first fast charge mode, second are quickly filled in the charge mode that the charger is supported When any in power mode and USB PD charge mode, determine that the default charge mode that the charger is supported is the target Charge mode.
In the disclosure, each charge mode supported for charger distributes priority, and the high charge mode of priority is preferential As target charge mode.A kind of possible priority orders are determined according to the height of charge efficiency: the first quick charge Mode, USB PD charge mode, the second fast charge mode, default charge mode priority successively reduce.
Therefore, if the charge mode that charger is supported includes the first fast charge mode, preferentially first is quickly filled Power mode is as target charge mode;If charger support charge mode do not include the first fast charge mode but including USB PD charge mode, then preferentially using USB PD charge mode as target charge mode;If the charging mould that charger is supported Formula does not include USB PD charge mode and the first fast charge mode but including the second fast charge mode, then preferentially fast by second Fast charge mode is as target charge mode;If charger does not support the first fast charge mode, the second fast charge mode With USB PD charge mode, then using the default charge mode of charger as target charge mode.
The implementation process for the method that disclosure offer is battery charging is illustrated below.The implementation process includes:
1) detected whether that charger is connected to charging interface;
2) in the case where having detected that charger is connected to charging interface, the default charging of charger can be determined first Mode;
3) then judge whether charger supports the first fast charge mode, if charger supports the first quick charge mould Formula, then controlling charger according to the first fast charge mode is battery charging;If charger does not support the first quick charge mould Formula, then judge whether charger supports USB PD charge mode;
4) if charger supports USB PD charge mode, controls charger and filled according to USB PD charge mode for battery Electricity;If charger does not support USB PD charge mode, judge whether charger supports the second fast charge mode;
If 5) charger supports the second fast charge mode, controlling charger according to the second fast charge mode is electricity Pond charging;If charger does not support the second fast charge mode, controls charger and filled according to default charge mode for battery Electricity.
For example, mobile intelligent terminal detects the charging for supporting Quick Charge technology and USB PD charge mode Device is connected to charging interface.Then judge whether charger supports 3.0 technology of Quick Charge, if charger is supported 3.0 technology of Quick Charge then fills the battery of mobile intelligent terminal using 3.0 charge mode of Quick Charge Electricity.If charger does not support 3.0 technology of Quick Charge, further judge whether charger supports USB PD charging mould Then formula determines that charger supports USB PD charge mode, so finally using USB PD charge mode to mobile intelligent terminal Battery charge.
Based on the same inventive concept, the disclosure also provides a kind of device for battery charging.Described device is configured in electricity In sub- equipment, the electronic equipment includes charging interface and the battery.Referring to FIG. 5, Fig. 5 is according to an exemplary embodiment A kind of device block diagram for battery charging shown.Referring to Fig. 5, which includes: the first determining module 121, and second determines mould Block 122 and control module 123.
First determining module 121 is configured as: in the case where detecting that charger is connected to the charging interface, being determined The charge mode that the charger is supported;
Second determining module 122 is configured as: determining target charge mode, charge efficiency is high for the target charge mode In the charger support charge mode in addition to the target charge mode remaining charge mode charge efficiency;
Control module 123 is configured as: it is the battery that control, which controls the charger according to the target charge mode, Charging.
Optionally, referring to FIG. 6, Fig. 6 is a kind of device for battery charging shown according to an exemplary embodiment The block diagram of first determining module.Referring to Fig. 6, which includes:
Sending submodule 1211, is configured as: sending preset charged instruction to the charger;
First determines submodule 1212, is configured as: detecting that the charger executed preset charged instruction In the case where, determining that the preset charged instructs corresponding preset charged mode is the charge mode that the charger is supported.
Optionally, referring to FIG. 7, Fig. 7 is a kind of device for battery charging shown according to an exemplary embodiment Another block diagram of first determining module.Referring to Fig. 7, the first determining module 121 includes:
First sending submodule 1211, is configured as: sending the first quick charge instruction to the charger;
First charge mode determines submodule 1212, is configured as: detecting that the charger executed described first In the case that quick charge instructs, determine that the charge mode that the charger is supported includes and first quick charge instruction pair The first fast charge mode answered;
Second sending submodule 1213, is configured as: detecting that the charger is not carried out first quick charge In the case where instruction, USB power transmission PD charging instruction is sent to the charger;
Second charge mode determines submodule 1214, is configured as: detecting that the charger executed the USB In the case where PD charging instruction, the charge mode for determining that the charger is supported includes corresponding with the USB PD charging instruction USB PD charge mode;
Third sending submodule 1215, is configured as: referring to detecting that the charger is not carried out the USB PD and charges In the case where order, the second quick charge instruction is sent to the charger;
Third charge mode determines submodule 1216, is configured as: detecting that the charger executed described second In the case that quick charge instructs, determine that the charge mode that the charger is supported includes and second quick charge instruction pair The second fast charge mode answered.
Optionally, referring to FIG. 8, Fig. 8 is a kind of device for battery charging shown according to an exemplary embodiment The block diagram of second determining module.Referring to Fig. 8, which includes:
Priority orders determine submodule 12211, are configured as: determine the priority orders of the preset charged mode, The priority of first fast charge mode, the USB PD charge mode and second fast charge mode successively drops It is low;
Second determines submodule 12212, is configured as: quickly filling in the charge mode that the charger is supported including first In power mode, the second fast charge mode and USB PD charge mode at least two when, according to the priority orders, determine The target charge mode out.
Optionally, referring to FIG. 9, Fig. 9 is a kind of device for battery charging shown according to an exemplary embodiment Another block diagram of second determining module.Referring to Fig. 9, it includes that priority orders determine submodule which, which removes, 12211 and second determine except submodule 12212, further includes:
Third determines submodule 12221, is configured as: not including first quick in the charge mode that the charger is supported When any in charge mode, the second fast charge mode and USB PD charge mode, determine that the charger is supported silent Recognizing charge mode is the target charge mode.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Figure 10 is a kind of block diagram of device 1000 for battery charging shown according to an exemplary embodiment.For example, dress Setting 1000 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, doctor Treat equipment, body-building equipment, personal digital assistant etc..
Referring to Fig.1 0, device 1000 may include following one or more components: processing component 1002, memory 1004, Electric power assembly 1006, multimedia component 1008, audio component 1010, the interface 1012 of input/output (I/O), sensor module 1014 and communication component 1016.
The integrated operation of the usual control device 1000 of processing component 1002, such as with display, telephone call, data communication, Camera operation and record operate associated operation.Processing component 1002 may include one or more processors 1020 to execute Instruction, to complete all or part of the steps of the above-mentioned method for battery charging.In addition, processing component 1002 may include one A or multiple modules, convenient for the interaction between processing component 1002 and other assemblies.For example, processing component 1002 may include more Media module, to facilitate the interaction between multimedia component 1008 and processing component 1002.
Memory 1004 is configured as storing various types of data to support the operation in device 1000.These data Example includes the instruction of any application or method for operating on device 1000, contact data, telephone book data, Message, picture, video etc..Memory 1004 can by any kind of volatibility or non-volatile memory device or they Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Electric power assembly 1006 provides electric power for the various assemblies of device 1000.Electric power assembly 1006 may include power management System, one or more power supplys and other with for device 1000 generate, manage, and distribute the associated component of electric power.
Multimedia component 1008 includes the screen of one output interface of offer between described device 1000 and user.? In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more Media component 1008 includes a front camera and/or rear camera.When device 1000 is in operation mode, as shot mould When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1010 is configured as output and/or input audio signal.For example, audio component 1010 includes a wheat Gram wind (MIC), when device 1000 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone quilt It is configured to receive external audio signal.The received audio signal can be further stored in memory 1004 or via communication Component 1016 is sent.In some embodiments, audio component 1010 further includes a loudspeaker, is used for output audio signal.
I/O interface 1012 provides interface, above-mentioned peripheral interface module between processing component 1002 and peripheral interface module It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and Locking press button.
Sensor module 1014 includes one or more sensors, and the state for providing various aspects for device 1000 is commented Estimate.For example, sensor module 1014 can detecte the state that opens/closes of device 1000, the relative positioning of component, such as institute The display and keypad that component is device 1000 are stated, sensor module 1014 can be with detection device 1000 or device 1,000 1 The position change of a component, the existence or non-existence that user contacts with device 1000,1000 orientation of device or acceleration/deceleration and dress Set 1000 temperature change.Sensor module 1014 may include proximity sensor, be configured in not any physics It is detected the presence of nearby objects when contact.Sensor module 1014 can also include optical sensor, as CMOS or ccd image are sensed Device, for being used in imaging applications.In some embodiments, which can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1016 is configured to facilitate the communication of wired or wireless way between device 1000 and other equipment.Dress The wireless network based on communication standard, such as WiFi can be accessed by setting 1000,2G or 3G or their combination.It is exemplary at one In embodiment, communication component 1016 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, the communication component 1016 further includes near-field communication (NFC) module, to promote short distance Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1000 can be by one or more application specific integrated circuit (ASIC), number Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above-mentioned side for battery charging Method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 1004 of instruction, above-metioned instruction can be executed by the processor 1020 of device 1000 to complete above-mentioned to fill for battery The method of electricity.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD- ROM, tape, floppy disk and optical data storage devices etc..
Those skilled in the art will readily occur to other embodiment party of the disclosure after considering specification and practicing the disclosure Case.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or adaptability Variation follows the general principles of this disclosure and including the undocumented common knowledge or usual skill in the art of the disclosure Art means.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following claim It points out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (10)

1. a kind of method for battery charging, which is characterized in that be applied in electronic equipment, the electronic equipment includes charging Mouth and the battery, which comprises
In the case where detecting that charger is connected to the charging interface, the charge mode that the charger is supported is determined;
Determine target charge mode, the charge efficiency of the target charge mode is higher than in the charge mode that the charger is supported The charge efficiency of remaining charge mode in addition to the target charge mode;
It is battery charging that the charger, which is controlled, according to the target charge mode;
The charge mode that the determination charger is supported, comprising:
Preset charged instruction is sent to the charger;
In the case where detecting that the charger has executed preset charged instruction, determine that the preset charged instruction corresponds to Preset charged mode be the charger support charge mode.
2. the method as described in claim 1, which is characterized in that preset charged instruction include the first quick charge instruction, One of USB charging instruction and the second quick charge instruction;
The charge mode that the determination charger is supported, comprising:
The first quick charge instruction is sent to the charger;
In the case where detecting that the charger has executed first quick charge instruction, determine what the charger was supported Charge mode includes the first fast charge mode corresponding with the first quick charge instruction;
In the case where detecting that the charger is not carried out first quick charge instruction, USB is sent to the charger Power transmission PD charging instruction;
In the case where detecting that the charger has executed the USB PD charging instruction, filling for the charger support is determined Power mode includes USB PD charge mode corresponding with the USB PD charging instruction;
In the case where detecting that the charger is not carried out the USB PD charging instruction, it is fast that second is sent to the charger Fast charging instruction;
In the case where detecting that the charger has executed second quick charge instruction, determine what the charger was supported Charge mode includes the second fast charge mode corresponding with the second quick charge instruction.
3. according to the method described in claim 2, it is characterized in that, determining mesh from the charge mode that the charger is supported Mark charge mode, comprising:
Determine the priority orders of the preset charged mode, first fast charge mode, the USB PD charge mode And the priority of second fast charge mode successively reduces;
It include that the first fast charge mode, the second fast charge mode and USB PD fill in the charge mode that the charger is supported In power mode at least two when, according to the priority orders, determine the target charge mode.
4. according to the method described in claim 2, it is characterized in that, determining mesh from the charge mode that the charger is supported Mark charge mode, comprising:
It does not include the first fast charge mode, the second fast charge mode and USB PD in the charge mode that the charger is supported When any in charge mode, determine that the default charge mode that the charger is supported is the target charge mode.
5. a kind of device for battery charging, which is characterized in that described device is configured in electronic equipment, the electronic equipment Including charging interface and the battery, described device includes:
First determining module, is configured as: in the case where detecting that charger is connected to the charging interface, filling described in determination The charge mode that electric appliance is supported;
Second determining module, is configured as: determining target charge mode, the charge efficiency of the target charge mode is higher than described Charger support charge mode in addition to the target charge mode remaining charge mode charge efficiency;
Control module is configured as: it is battery charging that control, which controls the charger according to the target charge mode,;
First determining module includes:
Sending submodule is configured as: sending preset charged instruction to the charger;
First determines submodule, is configured as: in the case where detecting that the charger has executed preset charged instruction, Determining that the preset charged instructs corresponding preset charged mode is the charge mode that the charger is supported.
6. device as claimed in claim 5, which is characterized in that preset charged instruction include the first quick charge instruction, One of USB charging instruction and the second quick charge instruction;
First determining module includes:
First sending submodule, is configured as: sending the first quick charge instruction to the charger;
First charge mode determines submodule, is configured as: detecting that the charger executed first quick charge In the case where instruction, the charge mode for determining that the charger is supported includes and the first quick charge instruction corresponding first Fast charge mode;
Second sending submodule, is configured as: detecting that the charger is not carried out the feelings of first quick charge instruction Under condition, USB power transmission PD charging instruction is sent to the charger;
Second charge mode determines submodule, is configured as: referring to detecting that the charger has executed the USB PD and charged In the case where order, the charge mode for determining that the charger is supported includes that USB PD corresponding with the USB PD charging instruction fills Power mode;
Third sending submodule, is configured as: detecting the case where charger is not carried out the USB PD charging instruction Under, the second quick charge instruction is sent to the charger;
Third charge mode determines submodule, is configured as: detecting that the charger executed second quick charge In the case where instruction, the charge mode for determining that the charger is supported includes and the second quick charge instruction corresponding second Fast charge mode.
7. device according to claim 6, which is characterized in that second determining module includes:
Priority orders determine submodule, are configured as: determining the priority orders of the preset charged mode, described first is fast The priority of fast charge mode, the USB PD charge mode and second fast charge mode successively reduces;
Second determines submodule, is configured as: including the first fast charge mode, the in the charge mode that the charger is supported In two fast charge modes and USB PD charge mode at least two when, according to the priority orders, determine the mesh Mark charge mode.
8. device according to claim 6, which is characterized in that second determining module includes:
Third determines submodule, is configured as: the charger support charge mode do not include the first fast charge mode, When any in the second fast charge mode and USB PD charge mode, the default charge mode that the charger is supported is determined For the target charge mode.
9. a kind of device for battery charging, which is characterized in that described device is configured in electronic equipment, the electronic equipment Including charging interface and the battery, described device includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
In the case where detecting that charger is connected to the charging interface, the charge mode that the charger is supported is determined;
Determine target charge mode, the charge efficiency of the target charge mode is higher than in the charge mode that the charger is supported The charge efficiency of remaining charge mode in addition to the target charge mode;
It is battery charging that the charger, which is controlled, according to the target charge mode;
The charge mode that the determination charger is supported, comprising:
Preset charged instruction is sent to the charger;
In the case where detecting that the charger has executed preset charged instruction, determine that the preset charged instruction corresponds to Preset charged mode be the charger support charge mode.
10. a kind of storage medium, which is characterized in that when the instruction in the storage medium is executed by the processor of electronic equipment When, so that electronic equipment is able to carry out a kind of method for battery charging, which comprises
In the case where detecting that charger is connected to the charging interface, the charge mode that the charger is supported is determined;
Determine target charge mode, the charge efficiency of the target charge mode is higher than in the charge mode that the charger is supported The charge efficiency of remaining charge mode in addition to the target charge mode;
It is battery charging that the charger, which is controlled, according to the target charge mode;
The charge mode that the determination charger is supported, comprising:
Preset charged instruction is sent to the charger;
In the case where detecting that the charger has executed preset charged instruction, determine that the preset charged instruction corresponds to Preset charged mode be the charger support charge mode.
CN201610587165.2A 2016-07-22 2016-07-22 For the method and electronic equipment of battery charging Active CN106067571B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610587165.2A CN106067571B (en) 2016-07-22 2016-07-22 For the method and electronic equipment of battery charging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610587165.2A CN106067571B (en) 2016-07-22 2016-07-22 For the method and electronic equipment of battery charging

Publications (2)

Publication Number Publication Date
CN106067571A CN106067571A (en) 2016-11-02
CN106067571B true CN106067571B (en) 2019-02-15

Family

ID=57207611

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610587165.2A Active CN106067571B (en) 2016-07-22 2016-07-22 For the method and electronic equipment of battery charging

Country Status (1)

Country Link
CN (1) CN106067571B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107291213B (en) * 2017-07-28 2020-06-26 Oppo广东移动通信有限公司 Mode selection method, device, terminal and computer readable storage medium
CN111342505A (en) * 2018-12-18 2020-06-26 北京小米移动软件有限公司 Charging method, device, system, electronic equipment and storage medium
CN114256914A (en) * 2018-12-25 2022-03-29 华为技术有限公司 Optional terminal charging method, graphical user interface and electronic equipment
CN111817381B (en) * 2020-07-14 2022-02-01 维沃移动通信有限公司 Charger, data line and charging equipment
CN111817380B (en) * 2020-07-14 2023-02-21 维沃移动通信有限公司 Charger, data line, charging equipment and electronic equipment
CN111817378B (en) * 2020-07-14 2022-04-01 维沃移动通信有限公司 Charger, data line and charging equipment
CN113131562B (en) * 2021-03-10 2022-11-25 青岛小鸟看看科技有限公司 Charging control method and device for electronic equipment and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012153890A1 (en) * 2011-05-12 2012-11-15 Kim Young-Won High-speed charging circuit, usb cable device having the high-speed charging circuit, and electronic device having the high-speed charging circuit
CN104124483A (en) * 2014-05-23 2014-10-29 东莞市钜大电子有限公司 Rapid charging method and system for portable power source
CN104467130A (en) * 2014-11-10 2015-03-25 深圳市兴吉胜电子有限公司 Wireless charger
CN105656140A (en) * 2016-02-29 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Terminal charging control method and control device and terminal
CN105743151A (en) * 2014-09-16 2016-07-06 现代自动车株式会社 Charging Vehicle, Charging System And Driving Method Of Charging System

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012153890A1 (en) * 2011-05-12 2012-11-15 Kim Young-Won High-speed charging circuit, usb cable device having the high-speed charging circuit, and electronic device having the high-speed charging circuit
CN104124483A (en) * 2014-05-23 2014-10-29 东莞市钜大电子有限公司 Rapid charging method and system for portable power source
CN105743151A (en) * 2014-09-16 2016-07-06 现代自动车株式会社 Charging Vehicle, Charging System And Driving Method Of Charging System
CN104467130A (en) * 2014-11-10 2015-03-25 深圳市兴吉胜电子有限公司 Wireless charger
CN105656140A (en) * 2016-02-29 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Terminal charging control method and control device and terminal

Also Published As

Publication number Publication date
CN106067571A (en) 2016-11-02

Similar Documents

Publication Publication Date Title
CN106067571B (en) For the method and electronic equipment of battery charging
CN104578372B (en) The method and device of control terminal equipment charge
CN105071473B (en) USB charging methods and device
CN105720644A (en) Charging control method and device and terminal device
EP3832841A1 (en) Charging circuit, electronic device, charging control method and device
CN105068632A (en) Terminal charging method and device and terminal
CN111211595B (en) Charging method and device, electronic equipment and storage medium
CN105162193A (en) Charging method and charging apparatus for terminal, and terminal
CN103944991A (en) Method and device for controlling data synchronization
CN105356529A (en) Prompting method and apparatus for rapid charging state
CN106610476B (en) Test method, device and the terminal of charge and discharge process
CN108539804A (en) Battery charging control method, battery charging control device and electronic equipment
CN107681727B (en) Control method and device of electronic equipment
CN109149669A (en) Battery modules and its control method, charging adapter and its control method
CN113451669A (en) Charging method and device, electronic device and storage medium
CN107733021B (en) Control method and device of electronic equipment
CN109038697A (en) Charge control method and battery charge controller, electronic equipment
CN107528098B (en) Charging method and device
CN105261803B (en) Charging method, device and the terminal of terminal
CN111509789B (en) Charging method and device
CN108539823B (en) Charging method and device
CN112019681B (en) Control method of mobile terminal, mobile terminal and storage medium
CN109450032B (en) Wireless charging processing method, device and equipment
CN113078697A (en) Charging control method and device and adapter
US20230120651A1 (en) Charging method, electronic device and storage medium

Legal Events

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