CN110970947A - Charging method, terminal and computer storage medium - Google Patents
Charging method, terminal and computer storage medium Download PDFInfo
- Publication number
- CN110970947A CN110970947A CN201811150638.8A CN201811150638A CN110970947A CN 110970947 A CN110970947 A CN 110970947A CN 201811150638 A CN201811150638 A CN 201811150638A CN 110970947 A CN110970947 A CN 110970947A
- Authority
- CN
- China
- Prior art keywords
- rechargeable battery
- terminal
- charge
- residual capacity
- controlling
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0013—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries acting upon several batteries simultaneously or sequentially
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02E60/10—Energy storage using batteries
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The embodiment of the application discloses a charging method, which is applied to a terminal, wherein the terminal is provided with a first rechargeable battery and a second rechargeable battery, the first rechargeable battery is connected with the second rechargeable battery, the first rechargeable battery is used for supplying power to a first component of the terminal, and the second rechargeable battery is used for supplying power to other components except the first component, and the method comprises the following steps: the method comprises the steps of obtaining the residual capacity of a first rechargeable battery and the residual capacity of a second rechargeable battery, controlling the first rechargeable battery to charge the second rechargeable battery when the residual capacity of the first rechargeable battery and the residual capacity of the second rechargeable battery meet a first preset condition, and controlling the second rechargeable battery to charge the first rechargeable battery when the residual capacity of the second rechargeable battery and the residual capacity of the first rechargeable battery meet a second preset condition. The embodiment of the application also provides a terminal and a computer storage medium.
Description
Technical Field
The present application relates to a charging technology of a terminal, and in particular, to a charging method, a terminal, and a computer storage medium.
Background
With the rapid development of smart phones, people have higher and higher requirements on the cruising ability of smart phones, and in order to improve the cruising ability of smart phones, a double-battery structure can be adopted to supply power to the smart phones so as to meet the requirements of people.
However, in the technical solution of using the dual batteries, the dual batteries are respectively charged through the external power adapter, such a charging manner is relatively single, and is limited by the maximum power of the charger and the maximum overcurrent capability of the charging cable, resulting in a relatively long charging time and a relatively low charging efficiency.
Disclosure of Invention
Embodiments of the present application are expected to provide a charging method, a terminal, and a computer storage medium, which can improve the charging diversity of dual batteries and improve the charging efficiency of the dual batteries.
The technical scheme of the application is realized as follows:
the embodiment of the application provides a charging method, which is applied to a terminal, wherein the terminal is provided with a first rechargeable battery and a second rechargeable battery, the first rechargeable battery is connected with the second rechargeable battery, the first rechargeable battery is used for supplying power to a first component of the terminal, and the second rechargeable battery is used for supplying power to other components except the first component, and the method comprises the following steps:
acquiring the residual capacity of the first rechargeable battery and the residual capacity of the second rechargeable battery;
when the residual capacity of the first rechargeable battery and the residual capacity of the second rechargeable battery meet a first preset condition, controlling the first rechargeable battery to charge the second rechargeable battery;
and when the residual capacity of the second rechargeable battery and the residual capacity of the first rechargeable battery meet a second preset condition, controlling the second rechargeable battery to charge the first rechargeable battery.
In the above method, when the remaining capacity of the first rechargeable battery and the remaining capacity of the second rechargeable battery satisfy a first preset condition, controlling the first rechargeable battery to charge the second rechargeable battery includes:
and when the residual capacity of the first rechargeable battery is not 0 and the residual capacity of the second rechargeable battery is 0, controlling the first rechargeable battery to charge the second rechargeable battery.
In the above method, when an external power source is connected to the first rechargeable battery and the second rechargeable battery respectively, and correspondingly, when the remaining capacity of the first rechargeable battery and the remaining capacity of the second rechargeable battery satisfy a first preset condition, controlling the first rechargeable battery to charge the second rechargeable battery includes:
and when the residual capacity of the first rechargeable battery and the residual capacity of the second rechargeable battery meet the first preset condition, controlling the external power supply and the first rechargeable battery to charge the second rechargeable battery.
In the above method, when the remaining capacity of the first rechargeable battery and the remaining capacity of the second rechargeable battery satisfy the first preset condition, controlling both the external power source and the first rechargeable battery to charge the second rechargeable battery includes:
and when the residual capacity of the second rechargeable battery is smaller than a first preset threshold value and the residual capacity of the first rechargeable battery is larger than a second preset threshold value, controlling the external power supply and the first rechargeable battery to charge the second rechargeable battery.
In the above method, when the remaining power of the second rechargeable battery and the remaining power of the first rechargeable battery satisfy a second preset condition, controlling the second rechargeable battery to charge the first rechargeable battery includes:
and when the residual capacity of the second rechargeable battery is not 0 and the residual capacity of the first rechargeable battery is 0, controlling the second rechargeable battery to charge the first rechargeable battery.
In the above method, when an external power source is connected to the first rechargeable battery and the second rechargeable battery respectively, and correspondingly, when the remaining capacity of the second rechargeable battery and the remaining capacity of the first rechargeable battery satisfy a second preset condition, controlling the second rechargeable battery to charge the first rechargeable battery includes:
and when the residual capacity of the second rechargeable battery and the residual capacity of the first rechargeable battery meet the second preset condition, controlling the external power supply and the second rechargeable battery to charge the first rechargeable battery.
In the above method, when the remaining capacity of the second rechargeable battery is greater than the remaining capacity of the first rechargeable battery, controlling both the external power source and the second rechargeable battery to charge the first rechargeable battery includes:
and when the residual capacity of the second rechargeable battery is greater than a second preset threshold value and the residual capacity of the first rechargeable battery is less than a first preset threshold value, controlling the external power supply and the second rechargeable battery to charge the first rechargeable battery.
The embodiment of the application provides a terminal, the terminal is provided with first rechargeable battery and second rechargeable battery, wherein, first rechargeable battery with the second rechargeable battery is connected, first rechargeable battery be used for the first part power supply of terminal, the second rechargeable battery be used for other part power supplies outside the first part, the terminal includes:
an acquisition unit configured to acquire a remaining capacity of the first rechargeable battery and a remaining capacity of the second rechargeable battery;
the first control unit is used for controlling the first rechargeable battery to charge the second rechargeable battery when the residual capacity of the first rechargeable battery and the residual capacity of the second rechargeable battery meet a first preset condition;
and the second control unit is used for controlling the second rechargeable battery to charge the first rechargeable battery when the residual electric quantity of the second rechargeable battery and the residual electric quantity of the first rechargeable battery meet a second preset condition.
In the above terminal, the first control unit is specifically configured to:
and when the residual capacity of the first rechargeable battery is not 0 and the residual capacity of the second rechargeable battery is 0, controlling the first rechargeable battery to charge the second rechargeable battery.
In the above terminal, when the external power supply is connected to the first rechargeable battery and the second rechargeable battery respectively, correspondingly, the first control unit is specifically configured to:
and when the residual capacity of the first rechargeable battery and the residual capacity of the second rechargeable battery meet the first preset condition, controlling the external power supply and the first rechargeable battery to charge the second rechargeable battery.
In the above terminal, the first control unit controls both the external power supply and the first rechargeable battery to charge the second rechargeable battery when the remaining capacity of the first rechargeable battery and the remaining capacity of the second rechargeable battery satisfy the first preset condition, including;
and when the residual electric quantity of the second rechargeable battery is smaller than a first preset threshold value and the residual electric quantity of the first rechargeable battery is larger than a second preset threshold value, the first control unit controls the external power supply and the first rechargeable battery to charge the second rechargeable battery.
In the above terminal, the second control unit is specifically configured to:
and when the residual capacity of the second rechargeable battery is not 0 and the residual capacity of the first rechargeable battery is 0, controlling the second rechargeable battery to charge the first rechargeable battery.
In the above terminal, when the external power supply is connected to the first rechargeable battery and the second rechargeable battery respectively, correspondingly, the second control unit is specifically configured to:
and when the residual capacity of the second rechargeable battery and the residual capacity of the first rechargeable battery meet the second preset condition, controlling the external power supply and the second rechargeable battery to charge the first rechargeable battery.
In the above terminal, the second control unit controls both the external power supply and the second rechargeable battery to charge the first rechargeable battery when the remaining capacity of the second rechargeable battery is greater than the remaining capacity of the first rechargeable battery, including;
and when the residual electric quantity of the second rechargeable battery is greater than a second preset threshold value and the residual electric quantity of the first rechargeable battery is less than a first preset threshold value, the second control unit controls the external power supply and the second rechargeable battery to charge the first rechargeable battery.
The embodiment of the present application further provides a terminal, the terminal is provided with first rechargeable battery and second rechargeable battery, wherein, first rechargeable battery with the second rechargeable battery is connected, first rechargeable battery is used for doing the power supply of the first part of terminal, second rechargeable battery is used for doing other part power supplies outside the first part, the terminal includes: a processor and a storage medium storing instructions executable by the processor to perform operations over a communication bus in dependence on the processor, the instructions, when executed by the processor, performing the charging method.
Embodiments of the present application provide a computer storage medium storing executable instructions that, when executed by one or more processors, perform the charging method.
The embodiment of the application provides a charging method, a terminal and a computer storage medium, wherein the method is applied to the terminal, the terminal is provided with a first rechargeable battery and a second rechargeable battery, the first rechargeable battery is connected with the second rechargeable battery, the first rechargeable battery is used for supplying power to a first part of the terminal, and the second rechargeable battery is used for supplying power to other parts except the first part, and the method comprises the following steps: firstly, the residual capacity of a first rechargeable battery and the residual capacity of a second rechargeable battery are obtained, under the condition that the residual capacity of double batteries is known, then whether the residual capacity of the first rechargeable battery and the residual capacity of the second rechargeable battery meet a first preset condition or a second preset condition is judged, finally, the first rechargeable battery is controlled to charge the second rechargeable battery when the first preset condition is met, and the second rechargeable battery is controlled to charge the first rechargeable battery when the second preset condition is met.
Drawings
Fig. 1 is a schematic flowchart of an alternative charging method according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of an optional terminal for charging according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of another alternative charging performed by the terminal according to the embodiment of the present application;
fig. 4 is a first schematic structural diagram of a terminal according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Example one
The embodiment of the application provides a charging method, which is applied to a terminal provided with a first rechargeable battery and a second rechargeable battery, wherein the first rechargeable battery is connected with the second rechargeable battery, the first rechargeable battery is used for supplying power to a first component of the terminal, and the second rechargeable battery is used for supplying power to other components except the first component; the terminal may be divided according to a hardware structure, and may include the following modules: the first component can be one or more of the parts, and when the first component is the input module, the other components except the first component are: the device comprises an operation module, a control module, a storage module and an output module; when the first component is an output module, the other components except the first component are: the device comprises an operation module, a control module, a storage module and an input module, wherein the embodiment of the application is not particularly limited.
Fig. 1 is a schematic flow chart of an optional charging method provided in an embodiment of the present application, and referring to fig. 1, the charging method may include:
s101: acquiring the residual capacity of the first rechargeable battery and the residual capacity of the second rechargeable battery;
at present, in a terminal adopting a dual-battery system, a charging mode is only to charge each rechargeable battery by using an external power supply, in the charging mode, because the maximum charging current of the terminal is limited by the maximum power of a charger and the maximum overcurrent capacity of a charging cable, when a mobile phone needs to be charged quickly, the mobile phone can only be charged by the maximum charging current limited by the charger and a wire, the charging efficiency cannot be increased, and in order to improve the charging efficiency of the terminal with the dual-battery system, in the embodiment of the application, the residual electric quantity of a first rechargeable battery and the residual electric quantity of a second rechargeable battery are firstly obtained in real time.
In particular, the first rechargeable battery is used to power a first component of the terminal, which in an alternative embodiment may be an input module, and the other components are: the computing module, the control module, the storage module and the output module supply power, for example, the first component supplies power to the display screen, that is, the first rechargeable battery supplies power to the display screen, and the second rechargeable battery supplies power to other components except the display screen, that is, supplies power to the computing unit, the controller, the memory and the output device, in practical application, a communication link between the display screen and the other components may be in a wired connection manner or in a wireless connection manner, and herein, the embodiment of the present application is not particularly limited; the wireless mode may include a wireless communication technology such as bluetooth or radar, and the embodiments of the present application are not limited in detail herein.
Specifically, when the processor of the terminal is arranged on other components of the terminal, the residual capacity of the first rechargeable battery can be acquired through the detection element of the battery, and after the residual capacity of the second rechargeable battery is detected, the terminal can acquire the residual capacity of the second rechargeable battery from the detection element of the second rechargeable battery through the communication link between the display screen and other components; the method for detecting the remaining capacity of the battery is various, and can be realized by one or more of the following ways:
first, a voltage test method may be used, the remaining capacity of the battery is detected by simply monitoring the voltage of the battery, the test method is not accurate because the remaining capacity of the battery and the voltage are not linear, and the remaining capacity of the battery is calculated to be very inaccurate when the remaining capacity of the battery is less than 50%, so that the remaining capacity of the battery measured by the method is limited.
Secondly, a battery modeling method can be adopted, which is to establish a data table according to the discharge curve of the battery, and the data table can indicate the electric quantity values under different voltages, so that the measurement accuracy can be effectively improved, but the method is not simple to obtain an accurate data table, because the relationship between the voltage and the electric quantity also relates to the factors of the temperature, the local point, the aging and the like of the battery, and the satisfactory electric quantity measurement can be obtained only by combining a plurality of factors for correction.
And thirdly, a coulometer can be adopted, wherein the coulometer is formed by connecting a current check resistor in series with the anode and the cathode of the battery, when current flows through the resistor, voltage is generated, and the current flowing through the battery can be calculated by detecting the voltage, so that the change of the residual capacity of the battery can be accurately tracked, the precision can reach 15 percent, and in addition, the influence of the aging factor of the battery on the measurement result can be greatly reduced by matching with the voltage and the temperature of the battery.
Among the three methods, the third method is higher in precision, can reduce the discharge cut-off voltage of the battery under the condition of not damaging the battery, and enables the capacity of the battery to be utilized to the maximum extent, particularly for a low-voltage system and a battery which is used for multiple times, and can send out warning information that the residual capacity of the battery is insufficient at higher precision, so that the coulometer can be selected to detect the electric quantity of the first rechargeable battery and the electric quantity of the second rechargeable battery in the embodiment of the application.
Thus, the terminal can obtain the residual capacity of the first rechargeable battery and the residual capacity of the second rechargeable battery.
The terminal may be an electronic device such as a smart phone, a tablet computer, and a camera, and the embodiment of the present application is not limited to this.
S102: when the residual capacity of the first rechargeable battery and the residual capacity of the second rechargeable battery meet a first preset condition, controlling the first rechargeable battery to charge the second rechargeable battery;
specifically, after the terminal acquires the remaining capacity of the first rechargeable battery and the remaining capacity of the second rechargeable battery through the S101, it is determined whether the remaining capacity of the first rechargeable battery and the remaining capacity of the second rechargeable battery satisfy a first preset condition, and if the first preset condition is satisfied, the terminal controls the first rechargeable battery to charge the second rechargeable battery.
In practical application, the other part ends are provided with a charging interface, the first part end is provided with a charging interface, the charging interfaces of the other parts are connected with an external power supply as external charging interfaces, the external charging interfaces are respectively connected to the charging interfaces of the first rechargeable battery and the first part, and the charging interface of the first part is used for connecting the first rechargeable battery and the second rechargeable battery.
In order to realize charging between the rechargeable batteries without accessing the external power source, the remaining capacity of the first rechargeable battery and the remaining capacity of the second rechargeable battery are required to satisfy a first preset condition, where the first preset condition may be set according to a requirement of a user, and in an alternative embodiment, S102 may include:
and when the residual capacity of the first rechargeable battery is not 0 and the residual capacity of the second rechargeable battery is 0, controlling the first rechargeable battery to charge the second rechargeable battery.
That is to say, when the first rechargeable battery has a remaining capacity, and the second rechargeable battery has no remaining capacity, the remaining capacity of the first rechargeable battery and the remaining capacity of the second rechargeable battery satisfy the first preset condition, that is, the first preset condition is that the capacity of the first rechargeable battery is not exhausted and the capacity of the second rechargeable battery is exhausted, at this time, in order to enable each component of the terminal to have a battery capable of supplying power, then, the remaining capacity of the first rechargeable battery can be distributed to the second rechargeable battery, so as to achieve the purpose of normally supplying power to each component of the terminal, and therefore, the first rechargeable battery is controlled to charge the second rechargeable battery at this time.
In practical application, a charging interface is arranged at the end of the first component, one end of the charging interface in the first component is connected to the first rechargeable battery, the other end of the charging interface of the first component is connected to the second rechargeable battery through a power supply connection path, so that the first rechargeable battery is connected with the second rechargeable battery, and then when the first rechargeable battery still has residual electric quantity and the residual electric quantity of the second rechargeable battery is exhausted, the first rechargeable battery can be used as a mobile power supply to charge the second rechargeable battery, so that the second rechargeable battery can supply power for other components, and the situation that the other components cannot normally work due to the fact that the residual electric quantity of the second rechargeable battery is exhausted is avoided.
In order to realize the fast charging of the dual battery when the external power source is connected to the first rechargeable battery and the second rechargeable battery, in an alternative embodiment, S102 may include:
and when the residual capacity of the first rechargeable battery and the residual capacity of the second rechargeable battery meet a first preset condition, controlling the external power supply and the first rechargeable battery to charge the second rechargeable battery.
Specifically, after the external power source is inserted into the external charging interface of the terminal, the external power source is connected to the second rechargeable battery, and is connected to the first rechargeable battery through the charging interface of the first member, so that the external power source can charge the first rechargeable battery and the second rechargeable battery, respectively.
In practical application, the residual capacity of the first rechargeable battery or the residual capacity of the second rechargeable battery is exhausted frequently, in order to open the terminal as soon as possible and realize normal operation of the terminal, that is, in order to realize quick charging of the terminal, in the embodiment of the present application, only when the residual capacity of the first rechargeable battery and the residual capacity of the second rechargeable battery satisfy the first preset condition, the external power supply and the first rechargeable battery are controlled to charge the second rechargeable battery, so that quick charging of the second rechargeable battery can be realized, and the charging efficiency of the dual-battery terminal is improved.
In order to better implement the fast charging of the dual-battery terminal, in an alternative embodiment, when the remaining capacity of the first rechargeable battery and the remaining capacity of the second rechargeable battery satisfy the first preset condition, controlling both the external power source and the first rechargeable battery to charge the second rechargeable battery may include:
and when the residual capacity of the second rechargeable battery is smaller than a first preset threshold value and the residual capacity of the first rechargeable battery is larger than a second preset threshold value, controlling the external power supply and the first rechargeable battery to charge the second rechargeable battery.
In the embodiment of the application, a first preset threshold and a second preset threshold can be set according to the requirement of a user, wherein the first preset threshold is smaller than the second preset threshold.
Specifically, the magnitude relation between the residual capacity of the second rechargeable battery and a first preset threshold is compared, and the magnitude relation between the residual capacity of the first rechargeable battery and a second preset threshold is compared, when the residual capacity of the second rechargeable battery is smaller than the first preset threshold and the residual capacity of the first rechargeable battery is larger than the second preset threshold, it is indicated that the residual capacity of the second rechargeable battery is small and is about to be exhausted, the residual capacity of the first rechargeable battery is sufficient, in order to realize quick charging, the external power supply and the first rechargeable battery can be controlled to charge the second rechargeable battery, and the second rechargeable battery is charged in parallel, so that the second rechargeable battery about to be exhausted is quickly charged, and inconvenience caused by the exhaustion of the electric quantity of the second rechargeable battery is avoided.
Therefore, the power supply of all parts of the terminal can be ensured to be normal, and the phenomenon that the terminal cannot work normally due to the fact that the electric quantity of one rechargeable battery is insufficient is avoided.
S103: and when the residual capacity of the second rechargeable battery and the residual capacity of the first rechargeable battery meet a second preset condition, controlling the second rechargeable battery to charge the first rechargeable battery.
Specifically, after the terminal acquires the remaining capacity of the first rechargeable battery and the remaining capacity of the second rechargeable battery through the S101, whether the remaining capacity of the first rechargeable battery and the remaining capacity of the second rechargeable battery satisfy a second preset condition is determined, and if the second preset condition is satisfied, the terminal controls the second rechargeable battery to charge the first rechargeable battery.
In practical application, the other part ends are provided with a charging interface, the first part end is provided with a charging interface, the charging interfaces of the other parts are connected with an external power supply as external charging interfaces, the external charging interfaces are respectively connected to the charging interfaces of the first rechargeable battery and the first part, and the charging interface of the first part is used for connecting the first rechargeable battery and the second rechargeable battery.
In order to realize charging between the rechargeable batteries without accessing the external power supply, the remaining capacity of the first rechargeable battery and the remaining capacity of the second rechargeable battery are required to satisfy a second preset condition, where the second preset condition may be set according to a requirement of a user, and in an alternative embodiment, S103 may include:
and when the residual capacity of the second rechargeable battery is not 0 and the residual capacity of the first rechargeable battery is 0, controlling the second rechargeable battery to charge the first rechargeable battery.
That is to say, when the second rechargeable battery has a remaining capacity, and the first rechargeable battery does not have the remaining capacity, that is, the remaining capacity of the first rechargeable battery and the remaining capacity of the second rechargeable battery satisfy the second preset condition, that is, the first preset condition is that the capacity of the second rechargeable battery is not exhausted and the capacity of the first rechargeable battery is exhausted, at this time, in order to enable each component of the terminal to have a battery capable of supplying power, then, the remaining capacity of the second rechargeable battery can be distributed to the first rechargeable battery, so as to achieve the purpose of normally supplying power to each component of the terminal, and therefore, the second rechargeable battery is controlled to charge the first rechargeable battery at this time.
In practical application, a charging interface is arranged at the end of the first component, one end of the charging interface in the first component is connected to the first rechargeable battery, the other end of the charging interface of the first component is connected to the second rechargeable battery through a power supply connection path, so that the first rechargeable battery is connected with the second rechargeable battery, and then when the second rechargeable battery still has residual capacity and the residual capacity of the first rechargeable battery is exhausted, the second rechargeable battery can be used as a mobile power supply to charge the first rechargeable battery, so that the first rechargeable battery can supply power for the first component, and the situation that the first component cannot normally work due to the fact that the residual capacity of the first rechargeable battery is exhausted is prevented.
In order to realize the fast charging of the dual battery when the external power source is connected to the first rechargeable battery and the second rechargeable battery, in an alternative embodiment, when the external power source is connected to the first rechargeable battery and the second rechargeable battery, respectively, S103 may include:
and when the residual capacity of the second rechargeable battery and the residual capacity of the first rechargeable battery meet a second preset condition, controlling the external power supply and the second rechargeable battery to charge the first rechargeable battery.
Specifically, after the external power source is inserted into the external charging interface of the terminal, the external power source is connected to the second rechargeable battery, and is connected to the first rechargeable battery through the charging interface of the first member, so that the external power source can charge the first rechargeable battery and the second rechargeable battery, respectively.
In practical application, the residual capacity of the first rechargeable battery or the residual capacity of the second rechargeable battery is exhausted frequently, in order to open the terminal as soon as possible and realize normal operation of the terminal, that is, in order to realize quick charging of the terminal, in the embodiment of the present application, only when the residual capacity of the first rechargeable battery and the residual capacity of the second rechargeable battery satisfy the second preset condition, the external power source and the second rechargeable battery are controlled to charge the first rechargeable battery, so that quick charging of the first rechargeable battery can be realized, and the charging efficiency of the dual-battery terminal is improved.
In order to better implement the fast charging of the dual-battery terminal, in an alternative embodiment, when the remaining capacity of the second rechargeable battery is greater than the remaining capacity of the first rechargeable battery, controlling both the external power source and the second rechargeable battery to charge the first rechargeable battery may include:
and when the residual capacity of the second rechargeable battery is greater than a second preset threshold value and the residual capacity of the first rechargeable battery is less than a first preset threshold value, controlling the external power supply and the second rechargeable battery to charge the first rechargeable battery.
In the embodiment of the application, a first preset threshold and a second preset threshold can be set according to the requirement of a user, wherein the first preset threshold is smaller than the second preset threshold.
Specifically, the magnitude relation between the residual capacity of the first rechargeable battery and a first preset threshold is compared, and the magnitude relation between the residual capacity of the second rechargeable battery and a second preset threshold is compared, when the residual capacity of the second rechargeable battery is larger than the second preset threshold and the residual capacity of the first rechargeable battery is smaller than the first preset threshold, it is indicated that the residual capacity of the first rechargeable battery is small and is about to be exhausted, and the residual capacity of the second rechargeable battery is sufficient, in order to realize quick charging, the external power supply and the second rechargeable battery can be controlled to charge the first rechargeable battery, so that the first rechargeable battery which is about to exhaust the residual capacity is charged in parallel, and the quick charging of the first rechargeable battery is realized, and the inconvenience brought by the exhaustion of the electric capacity of the first rechargeable battery is avoided.
The charging method described in one or more of the above embodiments is described below by way of example.
Fig. 2 is a schematic structural diagram of an alternative terminal for charging according to an embodiment of the present disclosure, and referring to fig. 2, the terminal may be divided into two parts, where one part is a display screen, i.e., a screen end, and the other part is a component other than the display screen, i.e., a base end; the screen end comprises a wireless access point, a battery, a power management chip and a charging interface, wherein the screen end battery is connected with the screen end power management chip, and the screen end power management chip is connected with the screen end charging interface; the base end comprises a wireless access point, a battery, a power management chip and a charging interface, wherein the base end battery is connected with the base end power management chip, the power management chip of the base end is respectively connected to the screen end charging interface and the base end charging interface, the base end charging interface is an external interface of a terminal and is used for being connected with an external power supply, and the power management chip of the base end is connected to the screen end charging interface through a power connection path; the screen end and the base end of the terminal may communicate via a communication link.
The wireless access point of above-mentioned screen end and the wireless access point of base end are used for data communication, and screen end battery is used for supplying power for the screen end, and base end battery is used for supplying power for the base end, and the interface that charges of base end and the power management chip of screen end are used for converting the electric current of external power source into the charging current of base end battery, and the interface that charges of screen end and the power management chip of screen end are used for converting the electric current of the interface that charges of base end into the charging current of screen end battery.
The user sets a first preset threshold TH1 and a second preset threshold TH2 according to the requirement of the user.
When the battery of the terminal needs to be charged, an external power supply is inserted into the charging interface of the base end, and at the moment, the external power supply charges the base end battery and the screen end battery respectively.
Fig. 3 is a schematic structural diagram of another optional terminal for charging according to an embodiment of the present disclosure, and referring to fig. 3, the terminal may be divided into two parts according to a structure, where a first part is a display screen, i.e., a screen end, and the other parts are other components except for the display screen, i.e., a base end; the screen end comprises a wireless access point, a battery, a power management chip and a charging interface, wherein the screen end battery is connected with the screen end power management chip, and the screen end power management chip is connected with the screen end charging interface; the base end comprises a wireless access point, a battery, a power management chip and a charging interface, wherein the base end battery is connected with the base end power management chip, the power management chip of the base end is respectively connected to the screen end charging interface and the base end charging interface, the base end charging interface is an external interface of a terminal and is used for being connected with an external power supply, and the power management chip of the base end is connected to the screen end charging interface through a power connection path; the screen end and the base end of the terminal may communicate via a communication link.
The wireless access point of above-mentioned screen end and the wireless access point of base end are used for data communication, and screen end battery is used for supplying power for the screen end, and base end battery is used for supplying power for the base end, and the interface that charges of base end and the power management chip of screen end are used for converting the electric current of external power source into the charging current of base end battery, and the interface that charges of screen end and the power management chip of screen end are used for converting the electric current of the interface that charges of base end into the charging current of screen end battery.
The user sets a first preset threshold TH1 and a second preset threshold TH2 according to the requirement of the user.
When the battery at the terminal needs to be charged, an external power supply is inserted into a charging interface of the base end, a processor at the terminal acquires the residual electric quantity of the battery at the base end, the processor at the terminal acquires the residual electric quantity of the battery at the screen end through a communication link, the residual electric quantity at the base end is smaller than TH1, and the residual electric quantity at the screen end is larger than TH 2.
The embodiment of the application provides a charging method, which is applied to a terminal, wherein the terminal is provided with a first rechargeable battery and a second rechargeable battery, the first rechargeable battery is connected with the second rechargeable battery, the first rechargeable battery is used for supplying power to a first component of the terminal, and the second rechargeable battery is used for supplying power to other components except the first component, and the method comprises the following steps: firstly, the residual capacity of a first rechargeable battery and the residual capacity of a second rechargeable battery are obtained, under the condition that the residual capacity of double batteries is known, then whether the residual capacity of the first rechargeable battery and the residual capacity of the second rechargeable battery meet a first preset condition or a second preset condition is judged, finally, the first rechargeable battery is controlled to charge the second rechargeable battery when the first preset condition is met, and the second rechargeable battery is controlled to charge the first rechargeable battery when the second preset condition is met.
Example two
Fig. 4 is a first structural diagram of a terminal according to an embodiment of the present invention, and as shown in fig. 4, the embodiment of the present invention provides a terminal 400, where the terminal 400 is provided with a first rechargeable battery 41 and a second rechargeable battery 42, where the first rechargeable battery 41 is connected to the second rechargeable battery 42, the first rechargeable battery 41 is used to supply power to a first component of the terminal 400, and the second rechargeable battery 42 is used to supply power to other components except the first component, and the terminal 400 may further include:
an acquisition unit 43 for acquiring a remaining capacity of the first rechargeable battery and a remaining capacity of the second rechargeable battery;
an updating unit 44, configured to control the first rechargeable battery to charge the second rechargeable battery when the remaining capacity of the first rechargeable battery and the remaining capacity of the second rechargeable battery satisfy a first preset condition;
and a control unit 45, configured to control the second rechargeable battery to charge the first rechargeable battery when the remaining capacity of the second rechargeable battery and the remaining capacity of the first rechargeable battery satisfy a second preset condition.
Optionally, the first control unit 44 is specifically configured to:
and when the residual capacity of the first rechargeable battery is not 0 and the residual capacity of the second rechargeable battery is 0, controlling the first rechargeable battery to charge the second rechargeable battery.
Optionally, when the external power source is connected to the first rechargeable battery and the second rechargeable battery respectively, correspondingly, the first control unit 44 is specifically configured to:
and when the residual capacity of the first rechargeable battery and the residual capacity of the second rechargeable battery meet a first preset condition, controlling the external power supply and the first rechargeable battery to charge the second rechargeable battery.
Optionally, when the remaining capacity of the first rechargeable battery and the remaining capacity of the second rechargeable battery satisfy the first preset condition, the first control unit 44 controls both the external power source and the first rechargeable battery to charge the second rechargeable battery, including:
when the remaining capacity of the second rechargeable battery is smaller than the first preset threshold and the remaining capacity of the first rechargeable battery is larger than the second preset threshold, the first control unit 44 controls both the external power source and the first rechargeable battery to charge the second rechargeable battery.
Optionally, the second control unit 45 is specifically configured to:
and when the residual capacity of the second rechargeable battery is not 0 and the residual capacity of the first rechargeable battery is 0, controlling the second rechargeable battery to charge the first rechargeable battery.
Optionally, when the external power source is connected to the first rechargeable battery and the second rechargeable battery respectively, correspondingly, the second control unit 45 is specifically configured to:
and when the residual capacity of the second rechargeable battery and the residual capacity of the first rechargeable battery meet a second preset condition, controlling the external power supply and the second rechargeable battery to charge the first rechargeable battery.
Optionally, when the remaining capacity of the second rechargeable battery is greater than the remaining capacity of the first rechargeable battery, the second control unit 45 controls both the external power source and the second rechargeable battery to charge the first rechargeable battery, including:
when the remaining capacity of the second rechargeable battery is greater than the second preset threshold and the remaining capacity of the first rechargeable battery is less than the first preset threshold, the second control unit 45 controls the external power supply and the second rechargeable battery to charge the first rechargeable battery.
In practical applications, the obtaining Unit 43, the first control Unit 44, and the second control Unit 45 may be implemented by a processor located on the terminal 400, specifically, implemented by a Central Processing Unit (CPU), a Microprocessor Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present application, and as shown in fig. 5, an embodiment of the present application provides a terminal 500, including:
a processor 51 and a storage medium 52 storing instructions executable by the processor 51, wherein the storage medium 52 depends on the processor 51 to perform operations via a communication bus 53, and when the instructions are executed by the processor 51, the charging method according to the first embodiment is performed.
It should be noted that, in practical applications, the various components in the terminal are coupled together by a communication bus 53. It will be appreciated that the communication bus 53 is used to enable communications among the components. The communication bus 53 includes a power bus, a control bus, and a status signal bus in addition to a data bus. But for clarity of illustration the various buses are labeled in figure 5 as communication bus 53.
The embodiment of the application provides a computer storage medium, which stores executable instructions, and when the executable instructions are executed by one or more processors, the processors execute the charging method of the first embodiment.
The computer-readable storage medium may be a magnetic random access Memory (FRAM), a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM), among others.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application.
Claims (10)
1. A charging method applied to a terminal, wherein the terminal is provided with a first rechargeable battery and a second rechargeable battery, the first rechargeable battery is connected with the second rechargeable battery, the first rechargeable battery is used for supplying power to a first component of the terminal, and the second rechargeable battery is used for supplying power to other components except the first component, the method comprising:
acquiring the residual capacity of the first rechargeable battery and the residual capacity of the second rechargeable battery;
when the residual capacity of the first rechargeable battery and the residual capacity of the second rechargeable battery meet a first preset condition, controlling the first rechargeable battery to charge the second rechargeable battery;
and when the residual capacity of the second rechargeable battery and the residual capacity of the first rechargeable battery meet a second preset condition, controlling the second rechargeable battery to charge the first rechargeable battery.
2. The method according to claim 1, wherein the controlling the first rechargeable battery to charge the second rechargeable battery when the remaining capacity of the first rechargeable battery and the remaining capacity of the second rechargeable battery satisfy a first preset condition comprises:
and when the residual capacity of the first rechargeable battery is not 0 and the residual capacity of the second rechargeable battery is 0, controlling the first rechargeable battery to charge the second rechargeable battery.
3. The method of claim 1, wherein when an external power source is connected to the first rechargeable battery and the second rechargeable battery respectively, and correspondingly, when the remaining capacity of the first rechargeable battery and the remaining capacity of the second rechargeable battery satisfy a first preset condition, controlling the first rechargeable battery to charge the second rechargeable battery comprises:
and when the residual capacity of the first rechargeable battery and the residual capacity of the second rechargeable battery meet the first preset condition, controlling the external power supply and the first rechargeable battery to charge the second rechargeable battery.
4. The method according to claim 3, wherein the controlling the external power source and the first rechargeable battery to charge the second rechargeable battery when the remaining capacity of the first rechargeable battery and the remaining capacity of the second rechargeable battery satisfy the first preset condition comprises:
and when the residual electric quantity of the second rechargeable battery is smaller than a first preset threshold value and the residual electric quantity of the first rechargeable battery is larger than a second preset threshold value, controlling the external power supply and the first rechargeable battery to respectively charge the second rechargeable battery.
5. The method according to claim 1, wherein the controlling the second rechargeable battery to charge the first rechargeable battery when the remaining capacity of the second rechargeable battery and the remaining capacity of the first rechargeable battery satisfy a second preset condition comprises:
and when the residual capacity of the second rechargeable battery is not 0 and the residual capacity of the first rechargeable battery is 0, controlling the second rechargeable battery to charge the first rechargeable battery.
6. The method of claim 1, wherein when an external power source is connected to the first rechargeable battery and the second rechargeable battery respectively, and correspondingly, when the remaining capacity of the second rechargeable battery and the remaining capacity of the first rechargeable battery satisfy a second preset condition, controlling the second rechargeable battery to charge the first rechargeable battery comprises:
and when the residual capacity of the second rechargeable battery and the residual capacity of the first rechargeable battery meet the second preset condition, controlling the external power supply and the second rechargeable battery to charge the first rechargeable battery.
7. The method of claim 6, wherein when the remaining capacity of the second rechargeable battery is greater than the remaining capacity of the first rechargeable battery, controlling both the external power source and the second rechargeable battery to charge the first rechargeable battery comprises:
and when the residual capacity of the second rechargeable battery is greater than a second preset threshold value and the residual capacity of the first rechargeable battery is less than a first preset threshold value, controlling the external power supply and the second rechargeable battery to charge the first rechargeable battery.
8. A terminal, characterized in that the terminal is provided with a first rechargeable battery and a second rechargeable battery, wherein the first rechargeable battery is connected with the second rechargeable battery, the first rechargeable battery is used for supplying power to a first component of the terminal, the second rechargeable battery is used for supplying power to other components except the first component, the terminal comprises:
an acquisition unit configured to acquire a remaining capacity of the first rechargeable battery and a remaining capacity of the second rechargeable battery;
the first control unit is used for controlling the first rechargeable battery to charge the second rechargeable battery when the residual capacity of the first rechargeable battery and the residual capacity of the second rechargeable battery meet a first preset condition;
and the second control unit is used for controlling the second rechargeable battery to charge the first rechargeable battery when the residual electric quantity of the second rechargeable battery and the residual electric quantity of the first rechargeable battery meet a second preset condition.
9. A terminal, characterized in that the terminal is provided with a first rechargeable battery and a second rechargeable battery, wherein the first rechargeable battery is connected with the second rechargeable battery, the first rechargeable battery is used for supplying power to a first component of the terminal, the second rechargeable battery is used for supplying power to other components except the first component, the terminal comprises:
a processor and a storage medium storing instructions executable by the processor to perform operations dependent on the processor via a communication bus, the instructions when executed by the processor performing the charging method of any of claims 1 to 7.
10. A computer storage medium having stored thereon executable instructions that, when executed by one or more processors, perform the charging method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811150638.8A CN110970947B (en) | 2018-09-29 | 2018-09-29 | Charging method, terminal and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811150638.8A CN110970947B (en) | 2018-09-29 | 2018-09-29 | Charging method, terminal and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110970947A true CN110970947A (en) | 2020-04-07 |
CN110970947B CN110970947B (en) | 2023-03-31 |
Family
ID=70027385
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811150638.8A Active CN110970947B (en) | 2018-09-29 | 2018-09-29 | Charging method, terminal and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110970947B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101340652A (en) * | 2008-08-11 | 2009-01-07 | 宇龙计算机通信科技(深圳)有限公司 | Electric power managing method for split type mobile terminal, managing apparatus and split type terminal |
CN102025001A (en) * | 2009-09-21 | 2011-04-20 | 联想(北京)有限公司 | Terminal and charging and power supplying method thereof |
CN104505890A (en) * | 2014-12-24 | 2015-04-08 | 广东欧珀移动通信有限公司 | Mobile terminal |
CN106125878A (en) * | 2016-06-13 | 2016-11-16 | 联想(北京)有限公司 | A kind of charging method and electronic equipment |
CN106356925A (en) * | 2016-09-12 | 2017-01-25 | 努比亚技术有限公司 | Mobile terminal, and charge control device and method thereof |
CN106786962A (en) * | 2017-01-13 | 2017-05-31 | 广东欧珀移动通信有限公司 | Charge control method, device and terminal |
CN108235795A (en) * | 2017-12-20 | 2018-06-29 | 深圳前海达闼云端智能科技有限公司 | Charging method, device, terminal device and computer readable storage medium |
CN108475935A (en) * | 2016-11-30 | 2018-08-31 | 华为技术有限公司 | A kind of battery charging management method and terminal |
-
2018
- 2018-09-29 CN CN201811150638.8A patent/CN110970947B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101340652A (en) * | 2008-08-11 | 2009-01-07 | 宇龙计算机通信科技(深圳)有限公司 | Electric power managing method for split type mobile terminal, managing apparatus and split type terminal |
CN102025001A (en) * | 2009-09-21 | 2011-04-20 | 联想(北京)有限公司 | Terminal and charging and power supplying method thereof |
CN104505890A (en) * | 2014-12-24 | 2015-04-08 | 广东欧珀移动通信有限公司 | Mobile terminal |
CN106125878A (en) * | 2016-06-13 | 2016-11-16 | 联想(北京)有限公司 | A kind of charging method and electronic equipment |
CN106356925A (en) * | 2016-09-12 | 2017-01-25 | 努比亚技术有限公司 | Mobile terminal, and charge control device and method thereof |
CN108475935A (en) * | 2016-11-30 | 2018-08-31 | 华为技术有限公司 | A kind of battery charging management method and terminal |
CN106786962A (en) * | 2017-01-13 | 2017-05-31 | 广东欧珀移动通信有限公司 | Charge control method, device and terminal |
CN108235795A (en) * | 2017-12-20 | 2018-06-29 | 深圳前海达闼云端智能科技有限公司 | Charging method, device, terminal device and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110970947B (en) | 2023-03-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11368039B2 (en) | Battery charging method and electronic device | |
US20220043067A1 (en) | Charging method and device, charging system, electronic equipment and storage medium | |
US9869724B2 (en) | Power management system | |
US10060986B2 (en) | Battery remaining power predicting device and battery pack | |
US10720778B2 (en) | Method for identifying type of cable, power adapter and cable | |
US9331508B2 (en) | Electronic device capable of testing USB cable and method for testing USB cable | |
CN106058965A (en) | Charging method and terminal | |
CN110506215A (en) | A kind of method and device of determining battery internal short-circuit | |
EP2365605A2 (en) | Charging apparatus, program | |
EP3185348B1 (en) | A battery information detection and control method, smart battery,terminal and computer storage medium | |
CN108061863A (en) | Method and device for detecting battery, computer readable storage medium and battery management system | |
CN105548895A (en) | Battery pack performance test method and device | |
CN111180817A (en) | Battery pack balancing method and device, electronic equipment and computer readable storage medium | |
CN109802463B (en) | Charging circuit, electric quantity obtaining method and terminal | |
CN103942133A (en) | Information processing method and electronic equipment | |
CN110970947B (en) | Charging method, terminal and computer storage medium | |
CN106772092B (en) | Charging current setting system and method for obtaining battery voltage based on mobile terminal | |
CN113507154B (en) | Charging method and device, charger and electronic equipment | |
KR101387429B1 (en) | Apparatus for quick charging of battery | |
CN111157907B (en) | Detection method and device, charging method and device, electronic device and storage medium | |
US10139451B2 (en) | Conditioning cycle for determining battery capacity in an information handling system | |
CN110970948A (en) | Charging control method and device, storage medium and split type electronic equipment | |
CN110970950B (en) | Charging control method and device, storage medium and split type electronic equipment | |
CN111092460B (en) | Charging control method and device and computer storage medium | |
CN113544522B (en) | Terminal equipment, method and device for determining residual battery capacity |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |