CN106385077B - Charge control method and device - Google Patents

Charge control method and device Download PDF

Info

Publication number
CN106385077B
CN106385077B CN201610979372.2A CN201610979372A CN106385077B CN 106385077 B CN106385077 B CN 106385077B CN 201610979372 A CN201610979372 A CN 201610979372A CN 106385077 B CN106385077 B CN 106385077B
Authority
CN
China
Prior art keywords
charging
charge
charge rate
wired
wireless charging
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
CN201610979372.2A
Other languages
Chinese (zh)
Other versions
CN106385077A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610979372.2A priority Critical patent/CN106385077B/en
Publication of CN106385077A publication Critical patent/CN106385077A/en
Application granted granted Critical
Publication of CN106385077B publication Critical patent/CN106385077B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J2207/00Indexing scheme relating to details of circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J2207/40Indexing scheme relating to details of circuit arrangements for charging or depolarising batteries or for supplying loads from batteries adapted for charging from various sources, e.g. AC, DC or multivoltage

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a kind of battery charge controllers, it include: detection module, for carrying out wireless charging and being electrically accessed there are line charge or when charging equipment carries out wired charging and detects wireless charging signal, detect the current remaining capacity information of the battery of charging equipment detecting charging equipment;Determining module, for determining whether the first charge rate is greater than the second charge rate based on remaining capacity information;First switching module for when first charge rate is greater than second charge rate and charging equipment carries out wired charging, opening wireless charging and closing wired charging, and shields USB caused by wired charging disconnection and extracts reporting for event.The invention also discloses a kind of charge control methods.Present invention shielding charging equipment generated USB in the state of carrying out wired charging and being switched to wireless charging in switching extracts reporting for event, to avoid generated various adverse effects in charging modes handoff procedure.

Description

Charge control method and device
Technical field
The present invention relates to field of communication technology more particularly to a kind of charge control methods and device.
Background technique
The charging equipments such as usual mobile terminal if being inserted into USB simultaneously, or are being used when carrying out wireless charging When USB is charged, wireless charging signal is detected, at this time in order to guarantee charging safety, can only generally select a kind of charging side Formula, for example wired charging method (namely charging by USB interface) is used, and then need for wireless charging to be switched to wired Charging.And bad user experience may be generated in handoff procedure, for example generate low-current alarming prompt in low electric situation, it closes Cycle power etc. is generated under machine charged state.
Summary of the invention
The present invention provides a kind of charge control method and device, how is solving in the handoff procedure for carrying out charging modes In, avoid the technical issues of generating adverse effect and reducing user experience.
To achieve the above object, a kind of battery charge controller provided by the invention, be applied to have wired charging method with The charging equipment of wireless charging mode, the battery charge controller include:
Detection module, for detect charging equipment carry out wireless charging and be electrically accessed there are line charge or to When charging equipment carries out wired charging and detects wireless charging signal, the current remaining capacity of the battery of charging equipment is detected Information;
Determining module, for determining whether the first charge rate of wireless charging is greater than and has based on the remaining capacity information Second charge rate of line charge electricity;
First switching module, for being greater than second charge rate and charging equipment in first charge rate It when carrying out wired charging, opens wireless charging and closes wired charging, and shield wired charging and disconnect generated USB extraction thing Part reports.
In one embodiment, the battery charge controller further include:
Second switching module, for monitoring that charging equipment is currently at except wireless charging range and has line charge It when electricity does not disconnect, opens wired charging and closes wireless charging, and shield the USB insertion event, and report current mobile whole The charging modes at end.
In one embodiment, the battery charge controller further include:
Third switching module, for being less than or equal to second charge rate in first charge rate and wait fill When electric equipment carries out wireless charging, opens wired charging and close wireless charging, and shield the USB insertion event, and report The charging modes of current mobile terminal.
In one embodiment, the battery charge controller further include:
4th switching module, for being disconnected in the wired charging for monitoring charging equipment and being currently at wireless charging It when in range, opens wireless charging and closes wired charging, and shield wired charging and disconnect the upper of generated USB extraction event Report.
In one embodiment, the determining module includes:
Acquiring unit, the charging for charge rate and wired charging based on the remaining capacity information and wireless charging The mapping relations of rate obtain first charge rate and second charge rate in the preset database;
Determination unit, for determining whether first charge rate is greater than second charge rate.
In addition, to achieve the above object, the present invention also provides a kind of charge control method, being applied to that there is wired charging side The charging equipment of formula and wireless charging mode, the charge control method the following steps are included:
It carries out wireless charging detecting charging equipment and is electrically accessed there are line charge or charging equipment is had Line charge electricity and when detecting wireless charging signal, detects the current remaining capacity information of the battery of charging equipment;
Determine whether the first charge rate of wireless charging is greater than the second of wired charging based on the remaining capacity information Charge rate;
When first charge rate is greater than second charge rate and charging equipment carries out wired charging, open It opens wireless charging and closes wired charging, and shield wired charging and disconnect reporting for generated USB extraction event.
In one embodiment, described to be greater than second charge rate in first charge rate and to be charged set It is standby when carrying out wired charging, after the step of opening wireless charging and closing wired charging, the charge control method further include:
When monitoring that charging equipment is currently at except wireless charging range and wired charging does not disconnect, unlatching has Line charge electricity simultaneously closes wireless charging, and shields the USB insertion event, and report the charging modes of current mobile terminal.
In one embodiment, described that corresponding first charge rate of wireless charging is determined based on the remaining capacity information After the step of whether being greater than wired charging corresponding second charge rate, the charge control method further include:
It is less than or equal to second charge rate in first charge rate and charging equipment carries out wireless charging When, it opens wired charging and closes wireless charging, and shield the USB insertion event, and report the charging of current mobile terminal Mode.
In one embodiment, it is described first charge rate be less than or equal to second charge rate and to When charging equipment carries out wireless charging, open wired charging and the step of close wireless charging after, the charge control method Further include:
When the wired charging for monitoring charging equipment is disconnected and is currently within the scope of wireless charging, open wireless It charges and closes wired charging, and shield wired charging and disconnect reporting for generated USB extraction event.
In one embodiment, it is described based on the remaining capacity information determine wireless charging the first charge rate whether Greater than wired charging the second charge rate the step of include:
The mapping of the charge rate of charge rate and wired charging based on the remaining capacity information and wireless charging is closed System obtains first charge rate and second charge rate in the preset database;
Determine whether first charge rate is greater than second charge rate.
The present invention is by carrying out wireless charging and being electrically accessed there are line charge or to be charged detecting charging equipment When equipment carries out wired charging and detects wireless charging signal, the current residue of the battery of detection module detection charging equipment Information about power, then determining module determines whether the first charge rate of wireless charging is greater than and has based on the remaining capacity information Second charge rate of line charge electricity is then greater than second charge rate and charging equipment in first charge rate When carrying out wired charging, the first switching module opens wireless charging and closes wired charging, and shields wired charging disconnection and produced Raw USB extracts reporting for event, realizes and charging modes are switched to wireless charging according to the remaining capacity of charging equipment, The charge rate of charging equipment is improved, and shields charging equipment in switching and is switched to wireless charging in progress wired charging Generated USB extracts reporting for event in the state of electricity, thus avoid in charging modes handoff procedure it is generated it is various not Good influence, and then promote user and use wired usage experience to charge with wireless charging mode to mobile terminal.
Detailed description of the invention
Fig. 1 is the circuit connection diagram of charging module in mobile terminal of the present invention;
Fig. 2 accesses the switching of power supply corresponding to wired charging for mobile terminal of the present invention and is communicated during wireless charging Timing diagram;
Fig. 3 is the functional block diagram of battery charge controller first embodiment of the present invention;
Fig. 4 is the refinement the functional block diagram of determining module in battery charge controller second embodiment of the present invention;
Fig. 5 is the flow diagram of charge control method first embodiment of the present invention;
Fig. 6 is to determine wireless charging based on the remaining capacity information in charge control method second embodiment of the present invention Whether the first charge rate is greater than the refinement flow diagram of the step of the second charge rate of wired charging.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The battery charge controller of each embodiment of the present invention is realized in description with reference to the drawings.In subsequent description, Using the suffix for indicating such as " module ", " component " or " unit " of element only for being conducive to explanation of the invention, There is no specific meanings for itself.Therefore, " module " can be used mixedly with " component ".
Charge control method and device of the invention is applied to have wired charging method with wireless charging mode wait fill Electric equipment, charging equipment can be implemented in a variety of manners.For example, charging equipment described in the present invention may include all Such as mobile phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (plate electricity Brain), the terminals such as PMP (portable media player).
Referring to Fig.1, Fig. 1 is the circuit connection diagram of charging module in charging equipment of the present invention.
As shown in Figure 1, there are two types of charging modes for charging equipment tool: one is pass through USB port and external wired charging Equipment connection carries out wired charging;Another kind is to receive conversion circuit and external wireless charging equipment by built-in wireless charging Carry out wireless charging.
Wherein, Battery is charging equipment battery;Charger IC is the integrated electricity of Charge Management of charging equipment Road;PMIC is the power management integrated circuit of charging equipment;Gator Board is a kind of wireless charging component;BUCK is drop Pressure type translation circuit;MCU is microprocessor, is mainly responsible for the wireless charging management of charging equipment.
Charging module structure based on charging equipment as shown in Figure 1, charging equipment will necessarily be related to charging The selection and switching of mode, specific as follows:
First is that the selection of single charging modes, for example or select USB wired charging method or select wireless charging Mode, the charging selection course under such situation is relatively simple, therefore does not do and excessively repeat.
Second is that two kinds of simultaneous selections of charging modes, for example selected by the height of priority, it is usually mobile It is preferential that terminal system defaults USB wired charging method.Under such situation, and can be according to the corresponding two kinds of feelings of the sequencing of charging Shape:
Situation one: wired charging method first charges, and then accesses wireless charging mode again.Due to there is line charge under such situation Electric mode priority is higher, therefore wireless charging mode accesses and will not succeed.
Situation two: wireless charging mode first charges, and then accesses wired charging method again.Under such situation, wired charging The access of mode can interrupt wireless charging process, access corresponding to wired charging during specific wireless charging as shown in Figure 2 Power supply switching and communication sequential chart.
As shown in Fig. 2, VRECT can get up, IC when mobile terminal is placed on the charging panel of external wireless charging equipment State can enter REST state from OFF state, and after finishing the work such as a series of initialization, before enable buck Mobile terminal can be notified by terminal INT_AP, and after obtaining the feedback for allowing to carry out enable buck of mobile terminal, Enable buck is carried out, and IC then enters WPT (wireless charging) stage at this time, and in WPT phase process, USB connects if it exists Entering, then the corresponding VBUS of USB access can get up, simultaneously because the priority of IC default USB is high, then it can disable Buck, and so that the external wired charging equipment of itself and access is shaken hands by terminal notification AP controller, and shaking hands into Corresponding USB charge circuit is opened by VBUS_EN_N after function, at this time IC due to there are wireless charging source (namely be in nothing In line chargeable range), therefore enter READY state.
Based on above-mentioned mobile terminal embodiment, each embodiment of charge control method and device of the present invention is proposed.
The present invention provides a kind of battery charge controller.It is battery charge controller first embodiment of the present invention referring to Fig. 3, Fig. 3 The functional block diagram.
In the present embodiment, which is applied to have wired charging method with wireless charging mode wait fill Electric equipment, the battery charge controller include:
Detection module 10, for detect charging equipment carry out wireless charging and be electrically accessed there are line charge or When charging equipment carries out wired charging and detects wireless charging signal, the current residue electricity of the battery of charging equipment is detected Measure information;
In the present embodiment, when charging equipment carries out wireless charging, user is inserted into USB interface, and charging equipment can Wired charging access is detected, or when carrying out wired charging by USB interface, user moves into the charging equipment wireless In the electromagnetic field of charger, charging equipment is able to detect that wireless charging signal, at this point, detection module 10 is detected wait fill The current remaining capacity information of the battery of electric equipment, in order to be selected according to remaining capacity information independence, charge rate is most fast to be filled Electric mode.
Determining module 20, for determining whether the first charge rate of wireless charging is greater than based on the remaining capacity information Second charge rate of wired charging;
In the present embodiment, when acquisition module gets the remaining capacity of battery, determining module 20 is based on the residue Information about power determines whether the first charge rate of wireless charging is greater than the second charge rate of wired charging, and then determines that one fills The electric faster charging modes of rate are specifically stored with the charging of remaining capacity information and wireless charging in the preset database The charge rate of the corresponding wireless charging of the mapping relations of the charge rate of rate and wired charging, i.e. each remaining capacity and The charge rate of wired charging, and then can be according to the remaining capacity acquisition of information to the first charge rate and second charging Rate then determines whether the first charge rate is greater than the second charge rate by determining module 20.
First switching module 30, for being greater than second charge rate in first charge rate and to be charged setting It when standby progress wired charging, opens wireless charging and simultaneously closes wired charging, and shield USB caused by wired charging disconnection and extract Event reports.
In the present embodiment, it is greater than second charge rate in first charge rate and charging equipment is had When line charge electricity, the first switching module 30 opens wireless charging and closes wired charging.It should be noted that filling in the present embodiment It is a process that electric mode, which switches, and the closing including wireless charging is exited and the access and unlatching of wired charging.
In the present embodiment, the charging of charging equipment is all to need (to be wirelessly connected by the connection with external charging equipment Or wired connection) and charge namely charging equipment and external charging equipment establish charging connection or disconnect charging and connect Corresponding USB insertion event or USB extraction event will all be generated on mobile terminals by connecing.And usually charging equipment system is silent Recognize and need that USB is reported to extract event and USB insertion event to systematic difference layer, therefore, for avoid USB extract event or USB insertion event report and application layer generate various adverse effects, such as prompt user's USB device extract or insertion etc., It thus needs to shield wired charging and disconnects reporting for generated USB extraction event, it is unlimited for shielding mode in the present embodiment, It is configured with specific reference to actual needs.
In addition, it should be further noted that shielding USB extracts event or USB insertion event and not only in the present embodiment It is merely to avoid that user's USB device is prompted to extract or be inserted on the application layer, while and further avoiding pulling out due to USB device It out or is inserted into and causes other adverse effects generated, for example extract wired charging in the case where mobile terminal is in low battery situation and set Cause to generate low battery alarm prompt after standby, or generates cycle power operation in the case where closing charger state.
Further, in one embodiment, the battery charge controller further include: the second switching module, for monitoring When charging equipment is currently at except wireless charging range and wired charging does not disconnect, opens wired charging and close wireless Charging, and the USB insertion event is shielded, and report the charging modes of current mobile terminal.
In the present embodiment, monitoring that charging equipment is currently at except wireless charging range and wired charging is not broken When opening, the second switching module opens wired charging and simultaneously closes wireless charging, since charging equipment is from wireless charging to there is line charge In the handoff procedure of electricity, the second switching module is extracted to USB generated during this and insertion event is all shielded, because This, for the current charging modes for understanding mobile terminal convenient for user, the second switching module is also used to successfully completing wireless charging To after the switching of wired charging, the charging modes of current mobile terminal are reported.
Further, in another embodiment, battery charge controller further include: third switching module, for described first When charge rate is less than or equal to second charge rate and charging equipment progress wireless charging, wired charging is opened simultaneously Wireless charging is closed, and shields the USB insertion event, and report the charging modes of current mobile terminal.
In the present embodiment, it is less than or equal to second charge rate in first charge rate and to be charged sets Standby third switching module opens wired charging and simultaneously closes wireless charging when carrying out wireless charging, since charging equipment is from wireless Be charged in the handoff procedure of wired charging, third switching module USB caused by during this is extracted and insertion event all It is shielded, consequently, to facilitate user understands the current charging modes of mobile terminal, third switching module is also used in success After completing wireless charging to the switching of wired charging, the charging modes of current mobile terminal are reported.
Further, in another embodiment, the battery charge controller further include: the 4th switching module, for monitoring When the wired charging of charging equipment disconnects and is currently within the scope of wireless charging, opening wireless charging and closing has line charge Electricity, and shield wired charging and disconnect reporting for generated USB extraction event.
In the present embodiment, disconnects and be currently within the scope of wireless charging in the wired charging for monitoring charging equipment When, the 4th switching module opens wireless charging and closes wired charging,
The present embodiment propose battery charge controller, by detect charging equipment carry out wireless charging and there are Line charge is electrically accessed or charging equipment carries out wired charging and when detecting wireless charging signal, the detection of detection module 10 to The current remaining capacity information of the battery of charging equipment, then determining module 20 determines wireless charging based on the remaining capacity information Whether the first charge rate of electricity is greater than the second charge rate of wired charging, is then greater than in first charge rate described When the second charge rate and charging equipment progress wired charging, the first switching module 30 is opened wireless charging and is simultaneously closed wired Charging, and shield wired charging and disconnect reporting for generated USB extraction event, realize the residue electricity according to charging equipment Charging modes are switched to wireless charging by amount, improve the charge rate of charging equipment, and shield to be charged set in switching Standby USB generated in the state of carrying out wired charging and being switched to wireless charging extracts reporting for event, to avoid charging Generated various adverse effects in mode handoff procedure, and then user is promoted using wired and wireless charging mode to mobile whole Hold the usage experience to charge.
The second embodiment that battery charge controller of the present invention is proposed based on first embodiment, referring to Fig. 4, in the present embodiment In, determining module 20 includes:
Acquiring unit 21, for based on the remaining capacity information and the charge rate of wireless charging and filling for wired charging The mapping relations of electric rate obtain first charge rate and second charge rate in the preset database;
In the present embodiment, it is stored with the charge rate of remaining capacity information and wireless charging in the preset database and has The charge rate and wired charging of the corresponding wireless charging of the mapping relations of the charge rate of line charge electricity, i.e. each remaining capacity Charge rate, and then acquiring unit 21 can be filled according to the remaining capacity acquisition of information to the first charge rate and described second Electric rate.
Determination unit 22, for determining whether first charge rate is greater than second charge rate.
The battery charge controller that the present embodiment proposes is based on the remaining capacity information and wireless charging by acquiring unit 21 The mapping relations of the charge rate of the charge rate and wired charging of electricity obtain first charge rate in the preset database And second charge rate, then determination unit 22 determines whether first charge rate is greater than the second charging speed Rate realizes and accurately obtains the first charge rate and the second charge rate according to the remaining capacity of charging equipment battery, into And can accurately determine whether the first charge rate is greater than the second charge rate, it improves charging equipment and carries out charging modes The accuracy of switching, and then improve the charge rate of charging equipment.
The present invention further provides a kind of charge control methods.It is charge control method first of the present invention referring to Fig. 5, Fig. 5 The flow diagram of embodiment.
In the present embodiment, which is applied to have wired charging method with wireless charging mode wait fill Electric equipment, the charge control method include:
Step S10 carries out wireless charging and is electrically accessed there are line charge or to be charged sets detecting charging equipment When for carrying out wired charging and detect wireless charging signal, the current remaining capacity information of the battery of charging equipment is detected;
In the present embodiment, when charging equipment carries out wireless charging, user is inserted into USB interface, and charging equipment can Wired charging access is detected, or when carrying out wired charging by USB interface, user moves into the charging equipment wireless In the electromagnetic field of charger, charging equipment is able to detect that wireless charging signal, at this point, detection module 10 is detected wait fill The current remaining capacity information of the battery of electric equipment, in order to be selected according to remaining capacity information independence, charge rate is most fast to be filled Electric mode.
Step S20 determines whether the first charge rate of wireless charging is greater than and has line charge based on the remaining capacity information Second charge rate of electricity;
In the present embodiment, when acquisition module gets the remaining capacity of battery, determining module 20 is based on the residue Information about power determines whether the first charge rate of wireless charging is greater than the second charge rate of wired charging, and then determines that one fills The electric faster charging modes of rate are specifically stored with the charging of remaining capacity information and wireless charging in the preset database The charge rate of the corresponding wireless charging of the mapping relations of the charge rate of rate and wired charging, i.e. each remaining capacity and The charge rate of wired charging, and then can be according to the remaining capacity acquisition of information to the first charge rate and second charging Rate then determines whether the first charge rate is greater than the second charge rate by determining module 20.
Step S30 is greater than second charge rate in first charge rate and charging equipment has carried out line charge It when electric, open wireless charging and closes wired charging, and shield wired charging and disconnect reporting for generated USB extraction event.
In the present embodiment, it is greater than second charge rate in first charge rate and charging equipment is had When line charge electricity, the first switching module 30 opens wireless charging and closes wired charging.It should be noted that filling in the present embodiment It is a process that electric mode, which switches, and the closing including wireless charging is exited and the access and unlatching of wired charging.
In the present embodiment, the charging of charging equipment is all to need (to be wirelessly connected by the connection with external charging equipment Or wired connection) and charge namely charging equipment and external charging equipment establish charging connection or disconnect charging and connect Corresponding USB insertion event or USB extraction event will all be generated on mobile terminals by connecing.And usually charging equipment system is silent Recognize and need that USB is reported to extract event and USB insertion event to systematic difference layer, therefore, for avoid USB extract event or USB insertion event report and application layer generate various adverse effects, such as prompt user's USB device extract or insertion etc., It thus needs to shield wired charging and disconnects reporting for generated USB extraction event, it is unlimited for shielding mode in the present embodiment, It is configured with specific reference to actual needs.
In addition, it should be further noted that shielding USB extracts event or USB insertion event and not only in the present embodiment It is merely to avoid that user's USB device is prompted to extract or be inserted on the application layer, while and further avoiding pulling out due to USB device It out or is inserted into and causes other adverse effects generated, for example extract wired charging in the case where mobile terminal is in low battery situation and set Cause to generate low battery alarm prompt after standby, or generates cycle power operation in the case where closing charger state.
Further, in one embodiment, after step S30, the charge control method further include:
When monitoring that charging equipment is currently at except wireless charging range and wired charging does not disconnect, unlatching has Line charge electricity simultaneously closes wireless charging, and shields the USB insertion event, and report the charging modes of current mobile terminal.
In the present embodiment, monitoring that charging equipment is currently at except wireless charging range and wired charging is not broken When opening, the second switching module opens wired charging and simultaneously closes wireless charging, since charging equipment is from wireless charging to there is line charge In the handoff procedure of electricity, the second switching module is extracted to USB generated during this and insertion event is all shielded, because This, for the current charging modes for understanding mobile terminal convenient for user, the second switching module is also used to successfully completing wireless charging To after the switching of wired charging, the charging modes of current mobile terminal are reported.
Further, in one embodiment, after step S20, charge control method further include: step S400, in institute The first charge rate is stated less than or equal to second charge rate and when charging equipment carries out wireless charging, is opened wired It charges and closes wireless charging, and shield the USB insertion event, and report the charging modes of current mobile terminal.
In the present embodiment, it is less than or equal to second charge rate in first charge rate and to be charged sets Standby third switching module opens wired charging and simultaneously closes wireless charging when carrying out wireless charging, since charging equipment is from wireless Be charged in the handoff procedure of wired charging, third switching module USB caused by during this is extracted and insertion event all It is shielded, consequently, to facilitate user understands the current charging modes of mobile terminal, third switching module is also used in success After completing wireless charging to the switching of wired charging, the charging modes of current mobile terminal are reported.
Further, in another embodiment, after step S400, the charge control method further include: monitor to When the wired charging of charging equipment disconnects and is currently within the scope of wireless charging, opens wireless charging and closes wired charging, And it shields wired charging and disconnects reporting for generated USB extraction event.
In the present embodiment, disconnects and be currently within the scope of wireless charging in the wired charging for monitoring charging equipment When, the 4th switching module opens wireless charging and closes wired charging,
The present embodiment propose charge control method, by detect charging equipment carry out wireless charging and there are Line charge is electrically accessed or charging equipment carries out wired charging and when detecting wireless charging signal, the detection of detection module 10 to The current remaining capacity information of the battery of charging equipment, then determining module 20 determines wireless charging based on the remaining capacity information Whether the first charge rate of electricity is greater than the second charge rate of wired charging, is then greater than in first charge rate described When the second charge rate and charging equipment progress wired charging, the first switching module 30 is opened wireless charging and is simultaneously closed wired Charging, and shield wired charging and disconnect reporting for generated USB extraction event, realize the residue electricity according to charging equipment Charging modes are switched to wireless charging by amount, improve the charge rate of charging equipment, and shield to be charged set in switching Standby USB generated in the state of carrying out wired charging and being switched to wireless charging extracts reporting for event, to avoid charging Generated various adverse effects in mode handoff procedure, and then user is promoted using wired and wireless charging mode to mobile whole Hold the usage experience to charge.
The second embodiment that charge control method of the present invention is proposed based on first embodiment, referring to Fig. 6, in the present embodiment In, step S20 includes:
Step S21, the charge rate of charge rate and wired charging based on the remaining capacity information and wireless charging Mapping relations obtain first charge rate and second charge rate in the preset database;
In the present embodiment, it is stored with the charge rate of remaining capacity information and wireless charging in the preset database and has The charge rate and wired charging of the corresponding wireless charging of the mapping relations of the charge rate of line charge electricity, i.e. each remaining capacity Charge rate, and then acquiring unit 21 can be filled according to the remaining capacity acquisition of information to the first charge rate and described second Electric rate.
Step S22, determines whether first charge rate is greater than second charge rate.
The charge control method that the present embodiment proposes is based on the remaining capacity information and wireless charging by acquiring unit 21 The mapping relations of the charge rate of the charge rate and wired charging of electricity obtain first charge rate in the preset database And second charge rate, then determination unit 22 determines whether first charge rate is greater than the second charging speed Rate realizes and accurately obtains the first charge rate and the second charge rate according to the remaining capacity of charging equipment battery, into And can accurately determine whether the first charge rate is greater than the second charge rate, it improves charging equipment and carries out charging modes The accuracy of switching, and then improve the charge rate of charging equipment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (8)

1. a kind of battery charge controller, special applied to the charging equipment with wired charging method Yu wireless charging mode Sign is that the battery charge controller includes:
Detection module, for carrying out wireless charging and being electrically accessed there are line charge or to be charged detecting charging equipment When equipment carries out wired charging and detects wireless charging signal, the current remaining capacity letter of the battery of charging equipment is detected Breath;
Determining module, the charge rate for charge rate and wired charging based on the remaining capacity information and wireless charging Mapping relations obtain the first charge rate and the second charge rate in the preset database, and determine that the first of wireless charging fills Whether electric rate is greater than the second charge rate of wired charging;
First switching module, for being greater than second charge rate and charging equipment progress in first charge rate It when wired charging, opens wireless charging and closes wired charging, and shield wired charging and disconnect generated USB extraction event It reports.
2. battery charge controller as described in claim 1, which is characterized in that the battery charge controller further include:
Second switching module, for monitor charging equipment be currently at except wireless charging range and wired charging not When disconnection, opens wired charging and close wireless charging, and shield the USB insertion event, and report current mobile terminal Charging modes.
3. battery charge controller as described in claim 1, which is characterized in that the battery charge controller further include:
Third switching module, for being less than or equal to second charge rate in first charge rate and to be charged setting It when standby progress wireless charging, opens wired charging and simultaneously closes wireless charging, and shield the USB insertion event, and report current The charging modes of mobile terminal.
4. battery charge controller as described in claim 1, which is characterized in that the battery charge controller further include:
4th switching module, for being disconnected in the wired charging for monitoring charging equipment and being currently at wireless charging range It when interior, open wireless charging and closes wired charging, and shield wired charging and disconnect reporting for generated USB extraction event.
5. a kind of charge control method, special applied to the charging equipment with wired charging method Yu wireless charging mode Sign is, the charge control method the following steps are included:
It carries out wireless charging detecting charging equipment and is electrically accessed there are line charge or charging equipment has carried out line charge Electricity and when detecting wireless charging signal, detects the current remaining capacity information of the battery of charging equipment;
The mapping relations of the charge rate of charge rate and wired charging based on the remaining capacity information and wireless charging exist The first charge rate and the second charge rate are obtained in presetting database;
Determine whether first charge rate is greater than second charge rate;
When first charge rate is greater than second charge rate and charging equipment carries out wired charging, nothing is opened Line charge electricity simultaneously closes wired charging, and shields wired charging and disconnect reporting for generated USB extraction event.
6. charge control method as claimed in claim 5, which is characterized in that it is described be greater than in first charge rate it is described When second charge rate and charging equipment carry out wired charging, after the step of opening wireless charging and closing wired charging, The charge control method further include:
When monitoring that charging equipment is currently at except wireless charging range and wired charging does not disconnect, unlatching has line charge Electricity simultaneously closes wireless charging, and shields the USB insertion event, and report the charging modes of current mobile terminal.
7. charge control method as claimed in claim 5, which is characterized in that whether determination first charge rate is big After in second charge rate the step of, the charge control method further include:
When first charge rate is less than or equal to second charge rate and charging equipment carries out wireless charging, It opens wired charging and closes wireless charging, and shield the USB insertion event, and report the charging side of current mobile terminal Formula.
8. charge control method as claimed in claim 7, which is characterized in that described to be less than or wait in first charge rate When second charge rate and charging equipment progress wireless charging, opens wired charging and close the step of wireless charging After rapid, the charge control method further include:
When the wired charging for monitoring charging equipment is disconnected and is currently within the scope of wireless charging, wireless charging is opened And wired charging is closed, and shield wired charging and disconnect reporting for generated USB extraction event.
CN201610979372.2A 2016-10-28 2016-10-28 Charge control method and device Active CN106385077B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610979372.2A CN106385077B (en) 2016-10-28 2016-10-28 Charge control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610979372.2A CN106385077B (en) 2016-10-28 2016-10-28 Charge control method and device

Publications (2)

Publication Number Publication Date
CN106385077A CN106385077A (en) 2017-02-08
CN106385077B true CN106385077B (en) 2019-07-12

Family

ID=57956895

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610979372.2A Active CN106385077B (en) 2016-10-28 2016-10-28 Charge control method and device

Country Status (1)

Country Link
CN (1) CN106385077B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108281724A (en) * 2017-12-29 2018-07-13 上海挚想科技有限公司 Compensating charging method and charging unit
CN110896232A (en) * 2018-09-12 2020-03-20 宇瞻科技股份有限公司 Power supply conversion system
CN109194788B (en) * 2018-09-20 2021-02-26 Oppo广东移动通信有限公司 Electronic device and electronic device charging method
CN109819493B (en) * 2019-03-06 2022-04-01 深圳前海达闼云端智能科技有限公司 Control method, screen projection method and device, storage medium and electronic equipment
CN111313500B (en) * 2020-03-16 2022-06-14 Oppo广东移动通信有限公司 Charging management method and device, electronic equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009028135A1 (en) * 2007-08-31 2009-03-05 Panasonic Corporation Charging circuit, and battery pack and charging system equipped with same
CN101707384A (en) * 2009-11-25 2010-05-12 中兴通讯股份有限公司 System and method compatible for wired charging and wireless charging
CN103378639A (en) * 2012-04-20 2013-10-30 三星电子株式会社 Wired/wireless charging apparatus and circuit
CN103887571A (en) * 2014-03-28 2014-06-25 乐视致新电子科技(天津)有限公司 Charging mode switching method and charging mode switching device
CN105958563A (en) * 2016-04-27 2016-09-21 珠海格力电器股份有限公司 System for switching charging mode and charging mode switching method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009028135A1 (en) * 2007-08-31 2009-03-05 Panasonic Corporation Charging circuit, and battery pack and charging system equipped with same
CN101707384A (en) * 2009-11-25 2010-05-12 中兴通讯股份有限公司 System and method compatible for wired charging and wireless charging
CN103378639A (en) * 2012-04-20 2013-10-30 三星电子株式会社 Wired/wireless charging apparatus and circuit
CN103887571A (en) * 2014-03-28 2014-06-25 乐视致新电子科技(天津)有限公司 Charging mode switching method and charging mode switching device
CN105958563A (en) * 2016-04-27 2016-09-21 珠海格力电器股份有限公司 System for switching charging mode and charging mode switching method

Also Published As

Publication number Publication date
CN106385077A (en) 2017-02-08

Similar Documents

Publication Publication Date Title
CN106385077B (en) Charge control method and device
US20190363567A1 (en) Battery charging method and electronic device
KR102158288B1 (en) Method for charging battery and an electronic device thereof
CN103490459B (en) Power system, electronic equipment and charging method
CN105680501B (en) Portable electronic device and its charging method
CN108242838A (en) Time-based battery charging control method and the electronic equipment for supporting this method
CN208738925U (en) Charging circuit and electronic equipment
CN107707000B (en) OTG power supply and wireless charging compatible circuit, related method and terminal equipment
CN109120029A (en) charging circuit, electronic equipment, charging management method and storage medium
CN111239617B (en) Control method and device for charge and discharge test, storage medium and system
JP6607669B2 (en) Wireless charging apparatus and charging method thereof
CN104617615B (en) Charging method and electronic equipment
CN110943501B (en) Charging method, charging control device and electronic equipment
CN110518668A (en) For the quick charging system and method for handheld device, handheld device
CN104242365A (en) Portable electronic device and use method
CN105826962B (en) Poewr control method and device in a kind of charging process
CN107769326A (en) Control method, device and the computer-readable recording medium of portable power source
CN105048018B (en) The charging method and device of a kind of terminal with data exchanging function
CN104348230A (en) Charging device and charging control method
CN109256825A (en) charging method and electronic device
CN108683236A (en) A kind of mobile terminal OTG charging methods and device
CN106532824B (en) Mobile terminal and charging method for handover control
US10481576B2 (en) Method and device for implementing connection control
CN106549445A (en) Mobile terminal and charging method for handover control
CN105226337A (en) A kind of method and apparatus of terminal charge

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