CN113285500B - Mobile terminal and charging method thereof - Google Patents

Mobile terminal and charging method thereof Download PDF

Info

Publication number
CN113285500B
CN113285500B CN202010102296.3A CN202010102296A CN113285500B CN 113285500 B CN113285500 B CN 113285500B CN 202010102296 A CN202010102296 A CN 202010102296A CN 113285500 B CN113285500 B CN 113285500B
Authority
CN
China
Prior art keywords
charging
battery
mobile terminal
charging current
current
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
CN202010102296.3A
Other languages
Chinese (zh)
Other versions
CN113285500A (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN202010102296.3A priority Critical patent/CN113285500B/en
Publication of CN113285500A publication Critical patent/CN113285500A/en
Application granted granted Critical
Publication of CN113285500B publication Critical patent/CN113285500B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0042Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by the mechanical construction
    • H02J7/0044Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by the mechanical construction specially adapted for holding portable devices containing batteries
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0042Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by the mechanical construction
    • H02J7/0045Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by the mechanical construction concerning the insertion or the connection of the batteries
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0068Battery or charger load switching, e.g. concurrent charging and load supply
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B40/00Technologies aiming at improving the efficiency of home appliances, e.g. induction cooking or efficient technologies for refrigerators, freezers or dish washers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

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

Abstract

The application discloses a mobile terminal and a charging method thereof, and belongs to the technical field of communication. The mobile terminal includes: the main battery is fixed in the main body of the mobile terminal, and the auxiliary battery is detachably connected with the main body. The method comprises the following steps: acquiring the electric quantity of a main battery in the charging process through an external power supply; determining a first charging current of the main battery and a second charging current of the auxiliary battery according to the electric quantity of the main battery, wherein the first charging current is inversely related to the electric quantity of the main battery, and the second charging current is positively related to the electric quantity of the main battery; the main battery is charged according to a first charging current, and the sub-battery is charged according to a second charging current. According to the mobile terminal, the first charging current of the main battery and the second charging current of the auxiliary battery can be configured according to the electric quantity of the main battery, so that the charging power of the external power supply is fully utilized, and the flexibility and the charging efficiency of the main battery and the auxiliary battery during charging are improved.

Description

Mobile terminal and charging method thereof
Technical Field
The present application relates to the field of communications technologies, and in particular, to a mobile terminal and a charging method thereof.
Background
Currently, a mobile terminal may include a main battery fixed within a main body of the mobile terminal and a sub-battery detachably connected to the main body of the mobile terminal, which is also referred to as a cradle battery. When the auxiliary battery is connected with the main board, the auxiliary battery can charge the main battery of the mobile terminal. In addition, the user can connect the charger to the sub-battery and simultaneously charge the main battery and the sub-battery through the charger.
In the related art, in the process that the charger charges the main battery and the auxiliary battery simultaneously, the mobile terminal can preferentially charge the main battery, and then charge the auxiliary battery after the main battery is charged.
Disclosure of Invention
The embodiment of the application provides a mobile terminal and a charging method thereof, which can solve the problems of long charging time and low charging efficiency of a main battery and an auxiliary battery in the related technology. The technical scheme is as follows:
in one aspect, a mobile terminal is provided, and the mobile terminal includes: the mobile terminal comprises a processor, a main battery and an auxiliary battery, wherein the main battery is fixed in a main body of the mobile terminal, and the auxiliary battery is detachably connected with the main body;
the processor is configured to:
acquiring the electric quantity of the main battery in the charging process through an external power supply;
determining a first charging current of the main battery and a second charging current of the auxiliary battery according to the electric quantity of the main battery, wherein the first charging current is inversely related to the electric quantity of the main battery, and the second charging current is positively related to the electric quantity of the main battery;
and charging the main battery according to the first charging current, and charging the auxiliary battery according to the second charging current.
Optionally, the processor is configured to:
if the electric quantity of the main battery is smaller than a first electric quantity threshold value, determining that the first charging current is an upper limit current provided by the external power supply, and determining that the second charging current is 0;
if the electric quantity of the main battery is greater than or equal to the first electric quantity threshold value and smaller than a second electric quantity threshold value, determining that the first charging current is a current which is greater than 0 and smaller than the upper limit current, and determining that the second charging current is a current which is greater than 0 and smaller than the upper limit current;
and if the electric quantity of the main battery is equal to the second electric quantity threshold value, determining that the first charging current is 0, and determining that the second charging current is the upper limit current.
Optionally, the mobile terminal further includes: the main battery comprises a main board, a first temperature sensor arranged on the main battery and a second temperature sensor arranged on the main board;
the first temperature sensor is used for detecting the temperature of the main battery;
the second temperature sensor is used for detecting the temperature of the mainboard;
the processor is further configured to:
after determining a first charging current of the main battery and a second charging current of the auxiliary battery, if the temperature of the main battery is detected or the temperature of the main board is greater than a temperature threshold value, reducing the first charging current;
and if the first charging current is detected to be smaller than the current threshold, increasing the second charging current.
Optionally, the processor is further configured to:
if receiving the charging voltage provided by the external power supply, detecting whether the main body of the mobile terminal is connected with the secondary battery;
if the main body of the mobile terminal is connected with the secondary battery and the charging function of the secondary battery is in an open state, the charging function of the secondary battery is closed;
detecting whether the charging voltage provided by the external power supply received after a target time length is increased;
if the charging voltage provided by the external power supply received after the target duration is increased, starting a charging function of the auxiliary battery, and adjusting the upper limit value of the charging current which can be received by the main battery and the auxiliary battery from an initial value to the upper limit current provided by the external power supply;
and if the charging voltage provided by the external power supply received after the target duration is unchanged, starting the charging function of the auxiliary battery, and keeping the charging currents which can be received by the main battery and the auxiliary battery as initial values.
Optionally, the processor is further configured to:
after detecting whether the main body of the mobile terminal is connected with the secondary battery, if it is determined that the main body of the mobile terminal is not connected with the secondary battery or that the main body of the mobile terminal is connected with the secondary battery and the charging function of the secondary battery is in a closed state, executing a step of detecting whether the charging voltage provided by the external power supply received after a target duration is increased.
Optionally, the processor is further configured to:
before the electric quantity of the main battery is acquired, if the charging function of the auxiliary battery is detected to be in a closed state, the charging function of the auxiliary battery is started.
Optionally, the processor is further configured to:
turning on a discharge function of the sub-battery in response to a discharge turn-on instruction;
and in response to a discharge shutdown instruction, shutting down a discharge function of the sub-battery.
In another aspect, a mobile terminal is provided, the mobile terminal including: the mobile terminal comprises a processor, a main battery and an auxiliary battery, wherein the main battery is fixed in a main body of the mobile terminal, and the auxiliary battery is detachably connected with the main body;
the processor is configured to:
acquiring the electric quantity of the auxiliary battery in the charging process through an external power supply;
determining a first charging current of the main battery and a second charging current of the auxiliary battery according to the charge of the auxiliary battery, wherein the first charging current is positively correlated with the charge of the auxiliary battery, and the second charging current is negatively correlated with the charge of the auxiliary battery;
and charging the main battery according to the first charging current, and charging the auxiliary battery according to the second charging current.
Optionally, the processor is configured to:
if the electric quantity of the auxiliary battery is smaller than a first electric quantity threshold value, determining that the first charging current is 0, and determining that the second charging current is an upper limit current provided by the external power supply;
if the electric quantity of the auxiliary battery is greater than or equal to the first electric quantity threshold value and smaller than a second electric quantity threshold value, determining that the first charging current is a current which is greater than 0 and smaller than the upper limit current, and determining that the second charging current is a current which is greater than 0 and smaller than the upper limit current;
and if the electric quantity of the auxiliary battery is equal to the second electric quantity threshold value, determining that the first charging current is the upper limit current, and determining that the second charging current is 0.
In another aspect, a charging method of a mobile terminal is provided, the mobile terminal including: the mobile terminal comprises a main battery and an auxiliary battery, wherein the main battery is fixed in a main body of the mobile terminal, and the auxiliary battery is detachably connected with the main body; the method comprises the following steps:
acquiring the electric quantity of the main battery in the charging process through an external power supply;
determining a first charging current of the main battery and a second charging current of the auxiliary battery according to the electric quantity of the main battery, wherein the first charging current is inversely related to the electric quantity of the main battery, and the second charging current is positively related to the electric quantity of the main battery;
and charging the main battery according to the first charging current, and charging the auxiliary battery according to the second charging current.
In another aspect, a charging method for a mobile terminal is provided, where the mobile terminal includes: the mobile terminal comprises a main battery and an auxiliary battery, wherein the main battery is fixed in a main body of the mobile terminal, and the auxiliary battery is detachably connected with the main body; the method comprises the following steps:
acquiring the electric quantity of the auxiliary battery in the charging process through an external power supply;
determining a first charging current of the main battery and a second charging current of the auxiliary battery according to the charge of the auxiliary battery, wherein the first charging current is positively correlated with the charge of the auxiliary battery, and the second charging current is negatively correlated with the charge of the auxiliary battery;
and charging the main battery according to the first charging current, and charging the auxiliary battery according to the second charging current.
In still another aspect, a computer-readable storage medium having instructions stored therein, which when run on a computer, cause the computer to perform the above-described charging method for a mobile terminal.
In still another aspect, a computer program product containing instructions is provided, which when run on a computer, causes the computer to perform the charging method of the mobile terminal described above.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
the embodiment of the application provides a mobile terminal and a charging method thereof, in the charging method, in the charging process through an external power supply, the mobile terminal can determine a first charging current and a second charging current according to the acquired electric quantity of a main battery, charge the main battery according to the first charging current, and charge an auxiliary battery according to the second charging current. Because the mobile terminal can configure the first charging current of the main battery and the second charging current of the auxiliary battery according to the electric quantity of the main battery, compared with the related technology, the mobile terminal fully utilizes the charging power of the external power supply, and improves the flexibility and efficiency when the main battery and the auxiliary battery are charged.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a mobile terminal to which a charging method of the mobile terminal provided in an embodiment of the present application is applied;
fig. 2 is a schematic partial structure diagram of a mobile terminal to which another charging method of the mobile terminal according to the embodiment of the present application is applied;
fig. 3 is a schematic structural diagram of a mobile terminal to which another charging method of the mobile terminal according to the embodiment of the present application is applied;
fig. 4 is a flowchart of a charging method for a mobile terminal according to an embodiment of the present disclosure;
fig. 5 is a flowchart of another charging method for a mobile terminal according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of another mobile terminal provided in an embodiment of the present application;
fig. 7 is a flowchart of a charging method for a mobile terminal according to another embodiment of the present disclosure;
fig. 8 is a flowchart of a charging method for a mobile terminal according to an embodiment of the present disclosure;
fig. 9 is a flowchart of a charging method for a mobile terminal according to another embodiment of the present application;
fig. 10 is a flowchart of a charging method for a mobile terminal according to another embodiment of the present disclosure;
fig. 11 is a schematic structural diagram of another mobile terminal according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of another mobile terminal provided in an embodiment of the present application;
fig. 13 is a schematic structural diagram of another mobile terminal according to an embodiment of the present application;
fig. 14 is a block diagram of a software structure of a mobile terminal according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of a mobile terminal to which a charging method of the mobile terminal provided in an embodiment of the present application is applied. The mobile terminal 110 may be a smart phone, a tablet computer, a multimedia player, or a wearable device.
As shown in fig. 2 and 3, the mobile terminal 110 may include a main battery (not shown in fig. 2 and 3) and a sub-battery 111, and the sub-battery 111 may also be referred to as a back-clip battery. Wherein the main battery is fixed in the main body 112 of the mobile terminal 110, and the sub-battery 111 is detachably connected with the main body 112. The main body 112 is provided with 10 contacts on the side connected with the secondary battery 111, namely a contact 01, a contact 02, a contact 03, a contact 04, a contact 05, a contact 06, a contact 07, a contact 08, a contact 09 and a contact 10. The sub-battery 111 is provided with 10 PINs (ejector PINs) corresponding to the 10 contact pieces one by one. Each contact pad on the main body 112 contacts a corresponding one of the PINs on the secondary battery 111 to effect connection of the main body 112 of the mobile terminal 110 to the secondary battery. Illustratively, the body 112 may be a housing of the mobile terminal 110.
Fig. 4 is a flowchart of a charging method for a mobile terminal according to an embodiment of the present disclosure. The charging method may be applied to the mobile terminal 110 shown in fig. 1, 2 and 3, and the mobile terminal 110 may include a main battery and a sub-battery. Wherein the main battery is fixed in the main body 112 of the mobile terminal 110, and the sub-battery is detachably connected with the main body 112. As shown in fig. 4, the method may include:
step 201, acquiring the electric quantity of the main battery in the process of charging through the external power supply.
In the embodiment of the application, the mobile terminal can acquire the electric quantity of the main battery in real time in the charging process through the external power supply, and can also acquire the electric quantity of the main battery periodically. Optionally, the external power supply may be a charger or a charger connected to a power supply. For example, the main battery may have a capacity of 95%.
In step 202, a first charging current of the main battery and a second charging current of the auxiliary battery are determined according to the electric quantity of the main battery.
The first charging current is negatively correlated to the electric quantity of the main battery, and the second charging current is positively correlated to the electric quantity of the main battery.
Step 203, charging the main battery according to the first charging current, and charging the auxiliary battery according to the second charging current.
After determining the first charging current of the main battery and the second charging current of the auxiliary battery, the mobile terminal may charge the main battery according to the first charging current, and simultaneously send a charging current control instruction carrying the second charging current to the auxiliary battery. The secondary battery may be charged at the second charging current after receiving the charging current control command.
In summary, according to the charging method of the mobile terminal provided in the embodiment of the present application, in the charging process through the external power supply, the mobile terminal may determine the first charging current and the second charging current according to the acquired electric quantity of the main battery, and charge the main battery according to the first charging current and charge the auxiliary battery according to the second charging current. Because the mobile terminal can configure the first charging current of the main battery and the second charging current of the auxiliary battery according to the electric quantity of the main battery, compared with the related technology, the mobile terminal fully utilizes the charging power of the external power supply, and improves the flexibility and efficiency when the main battery and the auxiliary battery are charged.
Fig. 5 is a flowchart of a charging method for a mobile terminal according to an embodiment of the present disclosure. The charging method may be applied to the mobile terminal 110 shown in fig. 1, 2 and 3, and the mobile terminal 110 may include a main battery and a sub-battery. Wherein the main battery is fixed in the main body 112 of the mobile terminal 110, and the sub-battery is detachably connected with the main body 112. As shown in fig. 5, the method may include:
step 301, if receiving the charging voltage provided by the external power supply, detecting whether the main body of the mobile terminal is connected with the secondary battery.
In this embodiment of the application, after receiving the charging voltage provided by the external power source, the mobile terminal may detect whether the main body of the mobile terminal is connected to the secondary battery, and if it is determined that the main body of the mobile terminal is connected to the secondary battery, step 302 may be executed. If it is determined that the main body of the mobile terminal is not connected to the sub battery, step 304 may be performed. Optionally, the mobile terminal is connected to an external power supply, and the external power supply may be a charger or a charger connected to a power supply. For example, the charging voltage may be 2V (volts).
Referring to fig. 2, the main body 112 of the mobile terminal 110 is provided with 10 contacts, i.e., a contact 01, a contact 02, a contact 03, a contact 04, a contact 05, a contact 06, a contact 07, a contact 08, a contact 09, and a contact 10, on a side detachably connected to the sub-battery. Correspondingly, the auxiliary battery is provided with 10 PINs corresponding to the 10 contacts one by one, each contact on the main body 112 is in contact with a corresponding PIN on the auxiliary battery, so as to realize the connection between the main body 112 of the mobile terminal 110 and the auxiliary battery, and the functions realized by the corresponding contact and one PIN are the same. Illustratively, the body 112 may be a housing of the mobile terminal 110.
For example, as shown in table 1, the contact 08 is named DET1, and the mobile terminal may detect whether the main body of the mobile terminal is connected to the sub-battery based on the electrical signal of the contact 03. If the electric signal of the contact piece 08 is at the first level, it can be determined that the main body of the mobile terminal is connected to the sub-battery. If the electric signal of the contact piece 08 is at the second level, it can be determined that the main body of the mobile terminal is not connected to the sub-battery. The first level may be a low level, and the second level may be a high level.
TABLE 1
Figure BDA0002387262840000071
Figure BDA0002387262840000081
Step 302, detecting whether the charging function of the secondary battery is in an on state.
After determining that the main body of the mobile terminal is connected with the secondary battery, the mobile terminal may send a charging function state acquisition instruction to the secondary battery, where the charging function state acquisition instruction is used to instruct the secondary battery to acquire a charging function state of the secondary battery. After receiving the charging function state acquisition instruction, the secondary battery can acquire the charging function state of the secondary battery and send the acquired charging function state to the mobile terminal. The charging function state may be an on state or an off state. After receiving the charging function status sent by the secondary battery, if the charging function status is in an on state, the mobile terminal may determine that the charging function of the secondary battery is in the on state, and execute step 303. If the charging function status is off, it can be determined that the charging function of the secondary battery is off, and step 304 is performed.
For example, referring to fig. 6, the secondary battery 111 may include a Micro Controller Unit (MCU) 113 and a charging circuit 114. The MCU113 can be respectively connected with the 10 PINs 11 on the secondary battery and the charging circuit 114 through an I2C bus, and the mobile terminal can perform information interaction and control with the secondary battery based on an I2C protocol. The I2C bus may include, among other things, an SDA data line and an SCL clock line. The mobile terminal 110 may send a charging function state obtaining instruction to the MCU113 in the secondary battery 111 based on the I2C protocol, and after receiving the charging function state obtaining instruction, the MCU113 may detect whether the power switch of the charging circuit 114 is turned on, and if the power switch of the charging circuit 114 is turned on, determine that the charging function state of the secondary battery is turned on. If the power switch of the charging circuit 114 is turned off, it is determined that the charging function state of the sub-battery is an off state. Thereafter, the MCU113 may transmit the charging function status to the mobile terminal 110, and the mobile terminal 110 may determine whether the charging function of the secondary battery is in an on state according to the charging function status transmitted by the MCU 113.
And step 303, closing the charging function of the secondary battery.
After determining that the main body of the mobile terminal is connected with the secondary battery and the charging function of the secondary battery is in an on state, the mobile terminal may send a charging control instruction to the secondary battery, where the charging control instruction may be a charging shutdown instruction, and the charging shutdown instruction is used to instruct the secondary battery to shut down the charging function. The sub-battery may turn off the charging function after receiving the charging-off command transmitted from the mobile terminal, and then, step 304 may be performed.
Table 2 shows names of control commands that the mobile terminal can transmit to the sub-battery, addresses of each control command, and roles of each control command. For example, referring to fig. 6 and table 2, the mobile terminal may transmit a charging control command to the MCU113, where the charging control command may be a charging shutdown command, and after receiving the charging shutdown command, the MCU113 may shut down a power switch of the charging circuit 114 based on an I2C protocol, so as to implement a function of shutting down the charging of the secondary battery 111. The address of the charging control command may be 0x11, and the address is used to uniquely identify the charging control command.
TABLE 2
Figure BDA0002387262840000091
Figure BDA0002387262840000101
Optionally, a charging control button may be displayed on the setting interface of the mobile terminal, and the charging-off instruction may be generated by the mobile terminal after detecting a user's off operation of the charging control button.
In the embodiment of the application, if the main battery of the mobile terminal supports the fast charging protocol, the detection of the fast charging protocol can be performed, that is, whether the external power supply also supports the fast charging protocol is detected. In order to avoid that in the process of detecting the quick charge protocol, the auxiliary battery absorbs the charging current provided by part of the external power supply, so that the current pulse provided by the external power supply received by the mobile terminal is influenced, and further certain quick charge protocol detection fails. Before the mobile terminal is charged quickly, whether the main body of the mobile terminal is connected with the secondary battery needs to be detected, and after the main body of the mobile terminal is determined to be connected with the secondary battery, whether the charging function of the secondary battery is in an on state needs to be detected. And when it is determined that the main body of the mobile terminal is electrically connected with the secondary battery and the charging function of the secondary battery is in an on state, the charging function of the secondary battery is turned off.
And step 304, detecting whether the charging voltage provided by the external power supply received after the target time length is increased.
In the embodiment of the application, after the mobile terminal ensures that the charging function of the secondary battery is in the off state, it needs to be determined that the external power supply also supports the fast charging protocol, that is, the external power supply can fast charge the primary battery. Because external power supply can be for main battery quick charge, consequently after quick charge agreement detects the completion, this external power supply can increase the charging voltage who provides for mobile terminal, and correspondingly, the upper limit electric current that this external power supply provided for mobile terminal also can increase to the realization is for mobile terminal's main battery quick charge. Therefore, after determining that the received charging voltage provided by the external power supply is increased, the mobile terminal may determine that the detection of the fast charging protocol is successful, and then execute step 305.
If the external power supply is determined not to support the quick charging protocol, the external power supply cannot quickly charge the main battery. Because the external power supply cannot rapidly charge the main battery, after the detection of the rapid charging protocol is completed, the charging voltage provided by the external power supply for the mobile terminal is kept unchanged, and correspondingly, the upper limit current provided by the external power supply for the mobile terminal is also kept unchanged. After determining that the received charging voltage provided by the external power supply remains unchanged, the mobile terminal may determine that the detection of the fast charging protocol fails, and then execute step 306. The target duration may be a fixed duration pre-stored in the mobile terminal.
For example, if the charging voltage provided by the external power source received by the mobile terminal before the detection of the fast charging protocol is 5V, the upper limit current provided by the external power source is 2A (ampere), and the charging voltage provided by the external power source received after the target duration is 9V. Because 9V is greater than 5V, the mobile terminal may determine that the external power supply supports the fast charging protocol, and at this time, the upper limit current that the external power supply can provide is 3A.
Optionally, in the process of detecting the fast charging protocol, the mobile terminal may detect whether a current pulse provided by the external power source received within the target time length meets the target current pulse. If the current pulse provided by the external power supply received within the target time length accords with the target current pulse, the detection success of the quick charge protocol can be determined. If the current pulse provided by the external power supply and received within the target duration does not accord with the target current pulse, the detection failure of the rapid charging protocol can be determined. The target current pulse may be a fixed current pulse pre-stored in the mobile terminal.
Or, the mobile terminal may perform the fast charging protocol detection according to the received USB signal, and the method for performing the fast charging protocol detection on the mobile terminal is not limited in this embodiment of the application.
Step 305, starting the charging function of the auxiliary battery, and adjusting the upper limit value of the charging current that can be received by the main battery and the auxiliary battery from the initial value to the upper limit current provided by the external power supply.
In the embodiment of the application, after the charging voltage provided by the external power supply and received by the mobile terminal after the target duration is determined is increased, the mobile terminal may send a charging control instruction to the secondary battery, where the charging control instruction may be a charging start instruction, and the charging start instruction is used to instruct the secondary battery to start a charging function. And adjusting the upper limit value of the charging current which can be received by the main battery from an initial value to the upper limit current provided by the external power supply, so that the main battery can receive the upper limit current when the charging current provided by the external power supply for the mobile terminal is the upper limit current. And simultaneously sending an upper limit current adjusting instruction carrying an upper limit current to the secondary battery, wherein the upper limit current adjusting instruction is used for instructing the secondary battery to adjust the upper limit value of the charging current which can be received by the secondary battery from an initial value to the upper limit current provided by the external power supply. After receiving the upper limit adjustment instruction, the secondary battery may adjust the upper limit value of the charging current that the secondary battery can receive from an initial value to the upper limit current provided by the external power supply, so as to ensure that the secondary battery can receive the upper limit current when the charging current provided by the external power supply to the secondary battery is the upper limit current.
Wherein the initial value may be a fixed value pre-stored in the mobile terminal and the sub-battery. The upper limit current provided by the external power supply is the upper limit current which can be provided after the charging voltage of the external power supply is increased. For example, the initial value of the charging current that can be received by the main battery and the sub-battery may be 2A, and the upper limit current provided by the external power supply may be 3A.
For example, it is assumed that the initial value of the charging current that can be received by the main battery and the sub-battery is 2A, and the upper limit current provided by the external power supply is 3A. Referring to fig. 6 and table 1, the mobile terminal may transmit a charging control instruction to the MCU113 based on the I2C protocol, where the charging control instruction may be a charging start instruction, and after receiving the charging start instruction, the MCU113 may start the power switch of the charging circuit 114 based on the I2C protocol to start the charging function of the secondary battery 111. Meanwhile, the mobile terminal may adjust the upper limit value of the charging current that the main battery can receive from 2A to 3A. And may send an upper limit current adjustment instruction carrying an upper limit current to the MCU113 based on the I2C protocol, and after receiving the upper limit current adjustment instruction, the MCU113 may adjust the upper limit value of the charging current that the secondary battery can receive from 2A to 3A.
Optionally, the charging start instruction may also be generated by the mobile terminal after detecting a start operation of the charging control button by the user.
And step 306, starting the charging function of the auxiliary battery, and keeping the charging current which can be received by the main battery and the auxiliary battery as an initial value.
In the embodiment of the application, after the charging voltage provided by the external power supply and received by the mobile terminal after the target duration is determined is increased, the mobile terminal may send a charging control instruction to the secondary battery, where the charging control instruction may be a charging start instruction, and the charging start instruction is used to instruct the secondary battery to start a charging function. Meanwhile, the external power supply does not support the rapid charging protocol, namely, the upper limit current provided by the external power supply for the mobile terminal cannot be increased, so that the mobile terminal can keep the charging current which can be received by the main battery and the auxiliary battery as an initial value.
And 307, acquiring the electric quantity of the main battery in the charging process through the external power supply.
In the embodiment of the application, the mobile terminal can acquire the electric quantity of the main battery in real time or periodically during the charging process through the external power supply. For example, the main battery may be 97% charged.
It should be noted that, before the mobile terminal obtains the electric quantity of the main battery, the mobile terminal may detect whether the charging function of the auxiliary battery is in an on state again. If it is determined that the charging function of the secondary battery is in the on state, step 308 is executed. If it is determined that the charging function of the secondary battery is in the off state, the charging function of the secondary battery may be turned on, and then step 308 is performed, thereby improving reliability and efficiency of acquiring the electric quantity of the primary battery. Step 305 may be referred to in the specific process of the mobile terminal starting the charging function of the secondary battery, and this embodiment of the present application is not described herein again.
Step 308, determining a first charging current of the main battery and a second charging current of the auxiliary battery according to the electric quantity of the main battery.
The first charging current is negatively correlated with the electric quantity of the main battery, and the second charging current is positively correlated with the electric quantity of the main battery.
As shown in fig. 7, this step 308 may include:
step 3081, detecting whether the electric quantity of the main battery is smaller than a first electric quantity threshold value.
In this embodiment, after obtaining the electric quantity of the main battery, the mobile terminal may detect whether the electric quantity of the main battery is smaller than a first electric quantity threshold, and if the electric quantity of the main battery is smaller than the first electric quantity threshold, step 3082 is performed. If the electric quantity of the main battery is greater than or equal to the first electric quantity threshold, step 3083 is executed.
The first power threshold may be a fixed power value pre-stored in the mobile terminal. Illustratively, the first charge threshold may be 75%.
3082, determining the first charging current as an upper limit current provided by the external power supply, and determining the second charging current as 0.
If the mobile terminal determines that the electric quantity of the main battery is smaller than the first electric quantity threshold value, it is indicated that the current charging of the main battery is in a charging constant current stage, and the absorbable charging current is high, so that the upper limit current provided by the first charging current for the external power supply can be determined, and the second charging current is determined to be 0, and therefore the main battery of the mobile terminal can be ensured to be charged quickly. For example, the upper limit current provided by the external power source may be 2A. Alternatively, the power supply provided by the external power supply may also be 3A.
And 3083, detecting whether the electric quantity of the main battery is smaller than a second electric quantity threshold value.
After determining that the electric quantity of the main battery is greater than or equal to the first electric quantity threshold, the mobile terminal may detect whether the electric quantity of the main battery is less than the second electric quantity threshold, and if the electric quantity of the main battery is less than the second electric quantity threshold, step 3084 may be performed. If the main battery is equal to the second threshold, go to step 3085.
The second power threshold may be a fixed power value pre-stored in the mobile terminal. For example, the second charge threshold may be 100%.
Step 3084, determining the first charging current to be a current greater than 0 and less than the upper limit current, and determining the second charging current to be a current greater than 0 and less than the upper limit current.
In this embodiment, after the mobile terminal performs steps 3082 and 3083, it may be determined that the electric quantity of the main battery is greater than or equal to the first electric quantity threshold and smaller than the second electric quantity threshold, which indicates that the charging of the main battery is about to enter a constant voltage charging stage, and the charging current that the main battery can absorb will gradually decrease, so that the first charging current of the main battery may be decreased, and the second charging current of the secondary battery may be increased, thereby improving the charging efficiency, maximizing the charging efficiency, and shortening the charging duration. The mobile terminal may determine the first charging current as a current greater than 0 and less than the upper limit current and determine the second charging current as a current greater than 0 and less than the upper limit current.
Optionally, after determining that the electric quantity of the main battery is greater than or equal to the first electric quantity threshold and smaller than the second electric quantity threshold, the mobile terminal may detect whether the electric quantity of the main battery is smaller than a third electric quantity threshold, where the third electric quantity threshold is smaller than the second electric quantity threshold. If the electric quantity of the main battery is determined to be smaller than the third electric quantity threshold, namely the electric quantity of the main battery is larger than or equal to the first electric quantity threshold and smaller than the third electric quantity threshold, it is indicated that the charging current which can be absorbed by the main battery is reduced just before the charging of the main battery enters a constant voltage stage, and therefore the first charging current can be determined to be a current which is larger than 0 and smaller than the upper limit current, and the second charging current is determined to be a current which is larger than 0 and smaller than the upper limit current. For example, the first charging current may be 1A, and the second charging current may be 1A.
If it is determined that the electric quantity of the main battery is greater than or equal to a third electric quantity threshold, that is, the electric quantity of the main battery is greater than or equal to the third electric quantity threshold and is smaller than a second electric quantity threshold, indicating that the charging of the main battery is about to enter a charging cut-off stage, at this time, it may be determined that the first charging current is a current greater than 0 and smaller than an upper limit current, and it may be determined that the second charging current is a current greater than 0 and smaller than the upper limit current, where the first charging current is smaller than the second charging current. Illustratively, the first charging current may be 700mA (milliamps) and the second charging current may be 1.5A.
The third power threshold may be a fixed power value pre-stored in the mobile terminal. Illustratively, the third charge threshold may be 95%.
For example, assuming that the main battery is 97% charged by the mobile terminal, the first threshold value is 75%, the second threshold value is 100%, and the third threshold value is 95%, the mobile terminal may determine that 97% of the main battery is between [95%,100% ], and thus the first charging current may be 700mA and the second charging current may be 1.5A.
Step 3085, determine the first charging current to be 0, and determine the second charging current to be the upper limit current.
In this embodiment, after determining that the electric quantity of the main battery is equal to the second electric quantity threshold, the mobile terminal indicates that the charging of the main battery is cut off, and at this time, the main battery does not absorb the charging current any more, so that the first charging current may be reduced, and the second charging current may be increased, so that the mobile terminal may determine that the first charging current is 0, and determine that the second charging current is an upper limit current, so as to ensure that the external power supply quickly charges the secondary battery, and improve the charging efficiency. For example, the second charging current may be 3A, or the second charging current may be 2A.
Step 309, charging the main battery according to the first charging current, and charging the sub-battery according to the second charging current.
After determining a first electric current of the main battery and a second charging current of the auxiliary battery, the mobile terminal may charge the main battery according to the first charging current, that is, the main battery may absorb the first charging current from the charging current provided by the external power source. Meanwhile, the mobile terminal may send a charging current control command carrying the second charging current to the secondary battery. After receiving the charging current control command, the secondary battery can be charged according to a second charging current, that is, the secondary battery can absorb the second charging current from the charging current provided by the external power supply.
For example, referring to fig. 6 and table 1, the secondary battery 111 may further include a fuel gauge chip 115, a cell protection circuit 116, a cell 117, and a USB interface 118, where an A0 terminal of the USB interface 118 is connected to an A1 terminal of the charging circuit 114. The USB interface 118 of the sub-battery 111 may be connected to an external power source through a charging cable, so that the external power source can charge the main battery and the sub-battery simultaneously.
Assuming that the first charging current is 700mA, the second charging current is 1.5A, and the charging current provided by the external power supply is 2A, the mobile terminal may control the main battery to absorb 700mA from the 2A charging current provided by the external power supply, and simultaneously may send a charging control instruction carrying the second charging current 1.5A based on the I2C protocol MCU113, the MCU113 may control the electric core 117 to absorb 1.5A from the 2A current provided by the external power supply, and the absorbed current may enter the electric core 117 from the A0 port of the USB interface 118 and enter the electric core 117 through the charging circuit 114, the electricity meter chip 115, and the electric core protection circuit 116, so as to charge the secondary battery.
It should be noted that, after the mobile terminal obtains the electric quantity of the main battery, if it is determined that the electric quantity of the main battery is smaller than the first electric quantity threshold, step 3082 and step 309 may be executed. Then, the mobile terminal may obtain the electric quantity of the main battery in real time, and if the obtained electric quantity of the mobile terminal is greater than the first electric quantity threshold and smaller than the second electric quantity threshold, steps 3084 and 309 may be performed. Thereafter, the mobile terminal may perform step 3085 and step 309 when the acquired power of the main battery is equal to the second power threshold. And then the mobile terminal can acquire the electric quantity of the secondary battery in real time, and when the electric quantity of the secondary battery is determined to be equal to the second electric quantity threshold value, the second charging current is determined to be 0, namely, the secondary battery is stopped being charged. Thus, the charging of the main battery and the auxiliary battery is completed. That is, the method provided by the embodiment of the present application may detect the electric quantity of the main battery in real time during the charging process, and adjust the first charging current of the main battery and the second charging current of the auxiliary battery according to the electric quantity of the main battery.
And step 310, if the temperature of the main battery or the temperature of the main board of the mobile terminal is greater than a temperature threshold, reducing the first charging current.
In the embodiment of the present application, the mobile terminal may further include a main board, a first temperature sensor disposed on the main battery, and a second temperature sensor disposed on the main board. In the process of charging a main battery of the mobile terminal by the external power supply, in order to avoid the over-high temperature of the main battery or the temperature of the main board, the mobile terminal needs to detect the temperature of the main battery through the first temperature sensor in real time and detect the temperature of the main board through the second temperature sensor in real time. Then, the mobile terminal may detect whether the temperature of the main battery or the temperature of the main board of the mobile terminal is greater than a temperature threshold, and reduce the first charging current when it is determined that the temperature of the main battery or the temperature of the main board of the mobile terminal is greater than the temperature threshold. Wherein, the temperature threshold is a fixed temperature pre-stored in the mobile terminal.
In step 311, if the first charging current is smaller than the current threshold, the second charging current is increased.
After the first charging current is reduced, the mobile terminal can detect whether the first charging current is smaller than a current threshold value in real time, and if the first charging current is smaller than the current threshold value, the second charging current can be increased, so that the charging efficiency is improved. The current threshold may be a fixed current pre-stored in the mobile terminal. For example, the current threshold may be 1A.
Optionally, after the mobile terminal detects that the temperature of the main battery or the temperature of the main board of the mobile terminal is less than or equal to the temperature threshold, the first charging current and the second charging current may be recovered.
For example, assuming that the first charge threshold is 75%, the first charging current is 2A, the second charging current is 0A, and the current threshold is 1A, when the charge of the main battery is less than 75%, if the mobile terminal detects that the temperature of the main battery or the temperature of the main board is greater than the temperature threshold, the first charging current may be reduced from 2A to 0.8A. Since the first charging current is smaller than the current threshold 1A, the second charging current is increased from 0A to 1A. When the temperature of the main battery or the temperature of the main board is detected to be less than or equal to the temperature threshold, the first charging current may be restored to 2A, and the second charging current may be restored to 0A.
In step 312, the discharge function of the sub-battery is turned on in response to the discharge start command.
In the embodiment of the present application, when the main body of the mobile terminal is connected to the sub-battery, the sub-battery may also charge the main battery of the mobile terminal. Optionally, a discharge control button may be displayed on a setting interface of the mobile terminal, the mobile terminal generates a discharge control instruction after detecting a start operation of the discharge control button by a user, the discharge control instruction may be a discharge start instruction, and then the discharge start instruction may be sent to the secondary battery in response to the discharge start instruction, and the discharge start instruction is used to instruct the secondary battery to start a discharge function. After receiving the discharge start instruction, the auxiliary battery can start a discharge function to charge the main battery of the mobile terminal.
Referring to fig. 6 and table 2, the secondary battery 111 may further include a discharge circuit 119, the mobile terminal generates a discharge control instruction after detecting a turn-on operation of the discharge control button by a user, the discharge control instruction may be a discharge turn-on instruction, the discharge turn-on instruction may be transmitted to the MCU113 based on an I2C protocol, and the MCU113 may turn on a power switch of the discharge circuit 119 after receiving the discharge turn-on instruction to turn on a charging function of the secondary battery. Thereafter, the MCU113 may control the battery cell 118 to charge the main battery. The charging current provided by the battery cell 118 enters the main battery of the mobile terminal through the battery cell protection circuit 116, the fuel gauge chip 115 and the discharging circuit 119, so as to charge the main battery of the mobile terminal. Here, the address of the discharge control command may be 0x11.
And step 313, in response to the discharge closing instruction, closing the discharge function of the auxiliary battery.
The mobile terminal may generate a discharging control instruction after detecting a closing operation of the discharging control button by the user, where the discharging control instruction may be a discharging closing instruction. The mobile terminal can respond to the discharging closing instruction and send the discharging closing instruction to the secondary battery, and the discharging closing instruction is used for indicating the secondary battery to close the discharging function. The sub-battery can shut down the discharge function upon receiving the discharge shut-down instruction. The mobile terminal can control the auxiliary battery according to the operation of the user, so that the flexibility of controlling the auxiliary battery is improved.
For example, referring to fig. 6, after generating the discharge shutdown instruction, the mobile terminal may transmit the discharge shutdown instruction to the MCU113 based on the I2C protocol, and after receiving the discharge shutdown instruction, the MCU113 may turn off the power switch of the 119 discharge circuit to shut down the charging function of the secondary battery. Optionally, the mobile terminal may also automatically turn on or off the charging function of the secondary battery.
In the embodiment of the application, the mobile terminal can also send a state information acquisition instruction to the secondary battery, the secondary battery can acquire the state information of the secondary battery after receiving the state information acquisition instruction and send the acquired state information to the mobile terminal, and the mobile terminal can display the state information of the secondary battery after receiving the state information and manage the secondary battery according to the state information, so that the flexibility of controlling the secondary battery is improved.
For example, as shown in table 3, the status information obtaining instruction may be an electric quantity obtaining instruction, the address of the electric quantity obtaining instruction is 0x01, the address is used for uniquely identifying the electric quantity obtaining instruction, and the status information may be the electric quantity of the sub-battery. After receiving the electric quantity acquisition instruction sent by the mobile terminal, the auxiliary battery can acquire the current electric quantity and send the acquired electric quantity to the mobile terminal. Optionally, the state information acquired by the mobile terminal may further include one or more of a real-time voltage, a real-time current, a battery temperature, a battery capacity, a number of charging cycles, a charging state, a health state of the secondary battery, and a Negative Temperature Coefficient (NTC) value of the secondary battery. Alternatively, the mobile terminal may acquire the state of charge and the amount of charge of the sub-battery from the fuel gauge chip 115 through the MCU 113.
TABLE 3
Figure BDA0002387262840000171
Figure BDA0002387262840000181
Optionally, referring to fig. 6, the sub-battery 111 may further include a Light Emitting Diode (LED) indicator 120. Referring to table 2, the mobile terminal may transmit an indicator light control instruction, which may be an indicator light turn-on instruction, to the MCU 113. The MCU113 can turn on the LED indicator 120 on the secondary battery after receiving the indicator turn-on command. And the number of flashes of the LED indicator 120 can be controlled according to the electric quantity of the sub-battery, thereby prompting the electric quantity state of the sub-battery. The sub-battery may further include an MCU power supply circuit 121, and power is supplied to the MCU113 through the MCU power supply circuit 121.
In the embodiment of the present application, as shown in table 1, the contact 01 and the contact 02 are named VBUS, the contact 01 and the contact 02 are used for the secondary battery to output a power signal to the mobile terminal, the voltage range of the power signal may be exemplified by [4.95v,5.25v ], and the voltage of the power signal may be 5V.
The contact 03 is named DET2, and the contact 03 is used for detecting whether the sub-battery is connected to the main body of the mobile terminal. If the sub-battery detects that the electric signal of the contact is at a first level, it may be determined that the sub-battery is connected to the main body of the mobile terminal, and if the electric signal of the contact is detected at a second level, it may be determined that the sub-battery is not connected to the main body of the mobile terminal.
In the embodiment of the disclosure, before the mobile terminal is charged by the external power supply, a battery selection interface may be displayed, and a main battery charging button and a sub-battery charging button are displayed on the battery selection interface. The mobile terminal may respond to a selection instruction of the user with respect to the main battery charging button after detecting the selection instruction, and perform the above-described steps 307 to 311. That is, the mobile terminal may configure currents for the main battery and the sub-battery based on the capacity of the main battery.
It should be noted that, the sequence of the steps of the charging method for the mobile terminal provided in the embodiment of the present application may be appropriately adjusted, and the steps may also be deleted according to the situation. For example, steps 301 to 306 may be deleted as appropriate. Or step 310 and step 311 may be deleted as appropriate, or step 312 and step 313 may be deleted as appropriate. Or step 3081 to step 3085 may be deleted as appropriate. Any method that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present application is covered by the protection scope of the present application, and thus the detailed description thereof is omitted.
In summary, in the charging method, in the charging process through the external power supply, the mobile terminal may determine the first charging current and the second charging current according to the acquired electric quantity of the main battery, charge the main battery according to the first charging current, and charge the auxiliary battery according to the second charging current. Because the mobile terminal can configure the first charging current of the main battery and the second charging current of the auxiliary battery according to the electric quantity of the main battery, compared with the related technology, the mobile terminal fully utilizes the charging power of the external power supply, and improves the flexibility and efficiency when the main battery and the auxiliary battery are charged.
Fig. 8 is a flowchart of a charging method for a mobile terminal according to another embodiment of the present disclosure. The charging method may be applied to the mobile terminal 110 shown in fig. 1, 2 and 3, and the mobile terminal 110 may include a main battery and a sub-battery. Wherein the main battery is fixed in the main body 112 of the mobile terminal 110, and the sub-battery is detachably connected with the main body 112. As shown in fig. 8, the method may include:
step 801, acquiring the electric quantity of the secondary battery in the process of charging through the external power supply.
In the embodiment of the application, the mobile terminal can acquire the electric quantity of the secondary battery in real time in the charging process through the external power supply, and can also acquire the electric quantity of the secondary battery periodically. Optionally, the external power supply may be a charger or a charger connected to a power supply. For example, the charge of the sub-battery may be 95%.
Optionally, the mobile terminal may send a state information obtaining instruction to the secondary battery, where the state information obtaining instruction may be an electric quantity obtaining instruction, and after receiving the electric quantity obtaining instruction sent by the mobile terminal, the secondary battery may obtain the current electric quantity, and send the obtained electric quantity to the mobile terminal.
Step 802, determining a first charging current of the main battery and a second charging current of the auxiliary battery according to the electric quantity of the auxiliary battery.
The first charging current is positively correlated with the electric quantity of the secondary battery, and the second charging current is negatively correlated with the electric quantity of the secondary battery.
Step 803, the main battery is charged according to the first charging current, and the sub-battery is charged according to the second charging current.
After determining the first charging current of the main battery and the second charging current of the auxiliary battery, the mobile terminal may charge the main battery according to the first charging current, and simultaneously send a charging current control instruction carrying the second charging current to the auxiliary battery. The secondary battery may be charged at the second charging current after receiving the charging current control command.
In summary, according to the charging method of the mobile terminal provided in the embodiment of the present application, in the charging process through the external power supply, the mobile terminal may determine the first charging current and the second charging current according to the acquired electric quantity of the secondary battery, and charge the primary current according to the first charging current and charge the secondary battery according to the second charging current. Because the mobile terminal can configure the first charging current of the main battery and the second charging current of the auxiliary battery according to the electric quantity of the auxiliary battery, compared with the related technology, the mobile terminal fully utilizes the charging power of the external power supply, and improves the flexibility and efficiency when the main battery and the auxiliary battery are charged.
Fig. 9 is a flowchart of a charging method of a mobile terminal according to an embodiment of the present disclosure, where the charging method may be applied to the mobile terminal 110 shown in fig. 1, fig. 2, and fig. 3, and the mobile terminal 110 may include a main battery and a sub-battery. Wherein the main battery is fixed in the main body 112 of the mobile terminal 110, and the sub-battery is detachably connected with the main body 112. As shown in fig. 9, the method may include:
step 901, detecting whether the main body of the mobile terminal is connected with the secondary battery or not if receiving the charging voltage provided by the external power supply.
In this embodiment, step 901 may refer to step 301 described above, and this embodiment is not described herein again.
And step 902, detecting whether the charging function of the secondary battery is in an on state.
After determining that the main body of the mobile terminal is connected to the secondary battery, the mobile terminal may detect whether the charging function of the secondary battery is in an on state, and if the charging function of the secondary battery is in the on state, execute step 903. If the charging function of the secondary battery is in the off state, step 904 is executed.
In the embodiment of the present application, reference may be made to step 902 in step 302 above, and details of the embodiment of the present application are not described herein again.
And step 903, closing the charging function of the secondary battery.
In this embodiment, step 903 may refer to step 303 described above, and this embodiment is not described herein again.
Step 904, detecting whether the charging voltage provided by the external power source received after the target duration is increased.
In this embodiment of the present application, after ensuring that the charging function of the secondary battery is in the off state, the mobile terminal may detect whether the charging voltage provided by the external power source received after the target duration is increased, and if the charging voltage provided by the external power source received after the target duration is increased, it may be determined that the detection of the fast charging protocol is successful, and step 905 is performed. If the charging voltage provided by the external power source received after the target duration is not increased, it may be determined that the detection of the fast charge protocol fails, and step 906 is performed.
In this embodiment, reference may be made to step 304 in step 904, and details of this embodiment are not described herein again.
Step 905, starting the charging function of the secondary battery, and adjusting the upper limit value of the charging current that can be received by the primary battery and the secondary battery from the initial value to the upper limit current provided by the external power supply.
In this embodiment, step 905 refers to step 305 described above, and this embodiment is not described herein again.
Step 906, the charging function of the secondary battery is turned on, and the charging current that can be received by the main battery and the secondary battery is kept as an initial value.
In this embodiment, step 906 may refer to step 306 described above, and this embodiment is not described herein again.
Step 907, acquiring the electric quantity of the secondary battery in the charging process through the external power supply.
In the embodiment of the application, the mobile terminal can acquire the electric quantity of the secondary battery in real time or periodically acquire the electric quantity of the secondary battery in the charging process through the external power supply. For example, the charge of the sub-battery may be 97%.
Optionally, in this embodiment of the present application, the mobile terminal may send a state information obtaining instruction to the secondary battery, and after receiving the state information obtaining instruction, the secondary battery may obtain state information of the secondary battery, and send the obtained state information to the mobile terminal. After receiving the state information, the mobile terminal can display the state information of the secondary battery and manage the secondary battery according to the state information, so that the flexibility of controlling the secondary battery is improved.
Referring to table 3, the status information obtaining instruction may be an electric quantity obtaining instruction, an address of the electric quantity obtaining instruction is 0x01, the address is used for uniquely identifying the electric quantity obtaining instruction, and the status information may be an electric quantity of the sub battery. After receiving the electric quantity acquisition instruction sent by the mobile terminal, the auxiliary battery can acquire the current electric quantity and send the acquired electric quantity to the mobile terminal.
It should be noted that, before acquiring the electric quantity of the secondary battery, the mobile terminal may detect whether the charging function of the secondary battery is in an on state again. If it is determined that the charging function of the secondary battery is in the on state, step 908 is performed. If it is determined that the charging function of the secondary battery is in the off state, the charging function of the secondary battery may be turned on, and then step 908 is performed, thereby improving reliability and efficiency of acquiring the electric quantity of the secondary battery. Step 905 may be referred to in a specific process of the mobile terminal starting the charging function of the secondary battery, and this embodiment of the present application is not described herein again.
Step 908 determines a first charging current of the primary battery and a second charging current of the secondary battery according to the charge of the secondary battery.
The first charging current is positively correlated with the electric quantity of the main battery, and the second charging current is negatively correlated with the electric quantity of the main battery.
As shown in fig. 10, this step 908 may include:
and step 9081, detecting whether the electric quantity of the auxiliary battery is smaller than a first electric quantity threshold value.
In this embodiment, after acquiring the electric quantity of the secondary battery, the mobile terminal may detect whether the electric quantity of the secondary battery is smaller than a first electric quantity threshold, and if the electric quantity of the secondary battery is smaller than the first electric quantity threshold, execute step 9082. If the electric quantity of the sub-battery is greater than or equal to the first electric quantity threshold, step 9083 is executed.
The first power threshold may be a fixed power value pre-stored in the mobile terminal. Illustratively, the first charge threshold may be 75%.
And 9082, determining that the first charging current is 0, and determining that the second charging current is an upper limit current provided by the external power supply.
If the mobile terminal determines that the electric quantity of the secondary battery is smaller than the first electric quantity threshold value, it is indicated that the charging of the secondary battery is in the charging constant current stage currently, the absorbable charging current is high, therefore, the first charging current can be determined to be 0, and the upper limit current provided by the second charging current for the external power supply is determined, so that the secondary battery of the mobile terminal can be ensured to be charged quickly. For example, the upper limit current provided by the external power source may be 2A. Alternatively, the power supply provided by the external power supply may also be 3A.
And step 9083, detecting whether the electric quantity of the auxiliary battery is smaller than a second electric quantity threshold value.
After determining that the electric quantity of the secondary battery is greater than or equal to the first electric quantity threshold, the mobile terminal may detect whether the electric quantity of the secondary battery is less than the second electric quantity threshold, and if the electric quantity of the secondary battery is less than the second electric quantity threshold, step 9084 may be executed. If the sub-battery is equal to the second charge threshold, go to step 9085.
The second electric quantity threshold may be a fixed electric quantity value pre-stored in the mobile terminal. For example, the second charge threshold may be 100%.
Step 9084, the first charging current is determined to be a current greater than 0 and less than the upper limit current, and the second charging current is determined to be a current greater than 0 and less than the upper limit current.
In this embodiment, after the mobile terminal executes steps 9082 and 9083, it may be determined that the electric quantity of the secondary battery is greater than or equal to the first electric quantity threshold and smaller than the second electric quantity threshold, which indicates that the charging of the secondary battery is about to enter a constant voltage charging stage, and at this time, the charging current that the secondary battery can absorb will gradually decrease, so that the first charging current of the primary battery can be increased, and the second charging current of the secondary battery can be decreased, thereby improving the charging efficiency, maximizing the charging efficiency, and shortening the charging time. The mobile terminal may determine the first charging current as a current greater than 0 and less than the upper limit current and determine the second charging current as a current greater than 0 and less than the upper limit current.
Optionally, after determining that the electric quantity of the secondary battery is greater than or equal to the first electric quantity threshold and smaller than the second electric quantity threshold, the mobile terminal may detect whether the electric quantity of the secondary battery is smaller than a third electric quantity threshold, where the third electric quantity threshold is smaller than the second electric quantity threshold. If the electric quantity of the secondary battery is determined to be smaller than the third electric quantity threshold, namely the electric quantity of the secondary battery is larger than or equal to the first electric quantity threshold and smaller than the third electric quantity threshold, the fact that the charging current which can be absorbed by the secondary battery is reduced just before the charging of the secondary battery enters a constant voltage stage is indicated, and therefore the first charging current can be determined to be a current which is larger than 0 and smaller than the upper limit current, and the second charging current can be determined to be a current which is larger than 0 and smaller than the upper limit current. For example, the first charging current may be 1A, and the second charging current may be 1A.
If it is determined that the electric quantity of the secondary battery is greater than or equal to the third electric quantity threshold, that is, the electric quantity of the secondary battery is greater than or equal to the third electric quantity threshold and is less than the second electric quantity threshold, it indicates that the secondary battery is about to enter a charging cutoff stage, at this time, the first charging current may be determined to be a current greater than 0 and less than an upper limit current, and the second charging current may be determined to be a current greater than 0 and less than the upper limit current, where the first charging current is greater than the second charging current. For example, the first charging current may be 1.5A and the second charging current may be 700mA (milliamps).
The third power threshold may be a fixed power value pre-stored in the mobile terminal. Illustratively, the third charge threshold may be 95%.
For example, assuming that the amount of power of the secondary battery acquired by the mobile terminal is 97%, the first power threshold is 75%, the second power threshold is 100%, and the third power threshold is 95%, the mobile terminal may determine that 97% of the amount of power of the secondary battery is between [95%,100% ], and thus may set the first charging current to 1.5A, and the second charging current to 700mA.
Step 9085, determine that the first charging current is the upper limit current, and determine that the second charging current is 0.
In this embodiment, after determining that the electric quantity of the secondary battery is equal to the second electric quantity threshold, the mobile terminal indicates that the charging of the secondary battery is cut off, and at this time, the secondary battery does not absorb the charging current any more, so that the first charging current may be increased, and the second charging current may be decreased, so that the mobile terminal may determine that the first charging current is the upper limit current, and determine that the second charging current is 0, so as to ensure that the external power supply quickly charges the primary battery, thereby improving the charging efficiency. For example, the first charging current may be 3A, or the first charging current may be 2A.
Step 909 is to charge the main battery at the first charging current and to charge the sub-battery at the second charging current.
In the embodiment of the present application, reference may be made to step 309 in step 909, and details of the embodiment of the present application are not described herein again.
After acquiring the electric quantity of the sub-battery, if the mobile terminal determines that the electric quantity of the sub-battery is smaller than the first electric quantity threshold, step 9082 and step 909 may be executed. After that, the mobile terminal may obtain the electric quantity of the sub-battery in real time, and if the obtained electric quantity of the sub-battery is greater than the first electric quantity threshold and smaller than the second electric quantity threshold, steps 9084 and 909 may be executed. After that, the mobile terminal may obtain the electric quantity of the sub-battery in real time, and if the obtained electric quantity of the sub-battery is equal to the second electric quantity threshold, execute steps 9085 and 909. The mobile terminal may then obtain the electric quantity of the main battery in real time, and when it is determined that the electric quantity of the main battery is equal to the second electric quantity threshold, determine the first charging current as 0, i.e., stop charging the main battery. So far, the charging of the main battery and the auxiliary battery is completed. That is, the method provided by the embodiment of the present application may detect the electric quantity of the secondary battery in real time during the charging process, and adjust the first charging current of the primary battery and the second charging current of the secondary battery according to the electric quantity of the secondary battery.
And step 910, reducing the second charging current if the temperature of the secondary battery or the temperature of the main board of the secondary battery is greater than the temperature threshold value.
In the embodiment of the present application, the sub-battery may further include a main board, a third temperature sensor provided on the sub-battery, and a fourth temperature sensor provided on the main board of the sub-battery. In the process of charging the secondary battery of the mobile terminal by the external power supply, in order to avoid the overhigh temperature of the secondary battery or the temperature of the main board of the secondary battery, the mobile terminal needs to detect the temperature of the secondary battery through the third temperature sensor in real time and detect the temperature of the main board of the secondary battery through the fourth temperature sensor in real time. Then, the mobile terminal may detect whether the temperature of the sub battery or the temperature of the main board of the sub battery is greater than a temperature threshold, and decrease the second charging current when it is determined that the temperature of the sub battery or the temperature of the main board of the sub battery is greater than the temperature threshold. Wherein, the temperature threshold is a fixed temperature pre-stored in the mobile terminal.
Optionally, the mobile terminal may send a temperature acquisition instruction to the third temperature sensor and the fourth temperature sensor, respectively, and after receiving the temperature acquisition instruction, the third temperature sensor may send the temperature of the sub-battery to the mobile terminal. The fourth temperature sensor may transmit the temperature of the main board of the sub battery to the mobile terminal after receiving the temperature acquisition instruction.
And step 911, if the second charging current is smaller than the current threshold, increasing the first charging current.
After the second charging current is reduced, the mobile terminal can detect whether the second charging current is smaller than the current threshold value in real time, and if the second charging current is smaller than the current threshold value, the first charging current can be increased, so that the charging efficiency is improved. The current threshold may be a fixed current pre-stored in the mobile terminal. For example, the current threshold may be 1A.
Optionally, after detecting that the temperature of the secondary battery or the temperature of the main board of the secondary battery is less than or equal to the temperature threshold, the mobile terminal may recover the first charging current and the second charging current.
For example, assuming that the first charge threshold is 75%, the first charging current is 0A, the second charging current is 2A, and the current threshold is 1A, when the charge of the secondary battery is less than 75%, if the mobile terminal detects the temperature of the secondary battery or the temperature of the main board of the secondary battery is greater than the temperature threshold, the second charging current may be decreased from 2A to 0.8A. Since the second charging current is smaller than the current threshold value 1A, the first charging current is increased from 0A to 1A. When the temperature of the sub-battery or the temperature of the main board of the sub-battery is detected to be less than or equal to the temperature threshold, the first charging current may be restored to 0A, and the second charging current may be restored to 2A.
And step 912, responding to a discharge starting instruction, and starting a discharge function of the auxiliary battery.
In the application embodiment, step 912 may refer to step 312, and is not described herein again.
Step 913, in response to the discharge-off command, turning off the discharge function of the sub-battery.
In the application embodiment, step 913 may refer to step 313, and details of the application embodiment are not described herein.
In the embodiment of the disclosure, before the mobile terminal is charged by the external power supply, a battery selection interface may be displayed, and a main battery charging button and a sub-battery charging button are displayed on the battery selection interface. The mobile terminal may respond to the selection instruction after detecting the selection instruction of the user for the secondary battery charging button, and perform the above-described steps 907 to 911. That is, the mobile terminal can configure currents for the main battery and the sub-battery based on the capacity of the sub-battery.
It should be noted that, the sequence of the steps of the charging method for the mobile terminal provided in the embodiment of the present application may be appropriately adjusted, and the steps may also be deleted according to the situation. For example, steps 901 to 906 may be deleted as appropriate. Or step 910 and step 911 may be deleted as appropriate, or step 912 and step 913 may be deleted as appropriate. Or step 9081 to step 9085 may be deleted as appropriate. Those skilled in the art can easily conceive of various methods within the technical scope of the present disclosure, and therefore, the detailed description is omitted.
To sum up, in the charging method, during the charging process through the external power supply, the mobile terminal may determine the first charging current and the second charging current according to the acquired electric quantity of the secondary battery, charge the primary current according to the first charging current, and charge the secondary battery according to the second charging current. Because the mobile terminal can configure the first charging current of the main battery and the second charging current of the auxiliary battery according to the electric quantity of the auxiliary battery, compared with the related technology, the mobile terminal fully utilizes the charging power of the external power supply, and improves the flexibility and efficiency when the main battery and the auxiliary battery are charged.
Fig. 11 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application. As shown in fig. 11, the mobile terminal may include a processor 1101, a main battery fixed within a main body of the mobile terminal, and a sub-battery detachably connected to the main body.
A processor 1101 for:
and in the process of charging through the external power supply, the electric quantity of the main battery is acquired.
According to the electric quantity of the main battery, a first charging current of the main battery and a second charging current of the auxiliary battery are determined, wherein the first charging current is in negative correlation with the electric quantity of the main battery, and the second charging current is in positive correlation with the electric quantity of the main battery.
The main battery is charged according to a first charging current, and the sub-battery is charged according to a second charging current.
Optionally, the processor 1101 is configured to:
and if the electric quantity of the main battery is smaller than the first electric quantity threshold value, determining that the first charging current is the upper limit current provided by the external power supply, and determining that the second charging current is 0.
If the electric quantity of the main battery is larger than or equal to the first electric quantity threshold value and smaller than the second electric quantity threshold value, the first charging current is determined to be a current larger than 0 and smaller than the upper limit current, and the second charging current is determined to be a current larger than 0 and smaller than the upper limit current.
If the electric quantity of the main battery is equal to the second electric quantity threshold value, the first charging current is determined to be 0, and the second charging current is determined to be the upper limit current.
Alternatively, as shown in fig. 12, the mobile terminal may further include a main board, a first temperature sensor 1102 provided on the main battery, and a second temperature sensor 1103 provided on the main board.
A first temperature sensor 1102 for detecting the temperature of the main battery.
And a second temperature sensor 1103 for detecting the temperature of the motherboard.
A processor 1101 further configured to:
after determining a first charging current of the main battery and a second charging current of the auxiliary battery, if the temperature of the main battery is detected or the temperature of the main board is greater than a temperature threshold value, the first charging current is reduced.
And if the first charging current is detected to be smaller than the current threshold, increasing the second charging current.
Optionally, the processor 1101 is further configured to:
and if receiving the charging voltage provided by the external power supply, detecting whether the main body of the mobile terminal is connected with the auxiliary battery.
And if the main body of the mobile terminal is connected with the secondary battery and the charging function of the secondary battery is in an open state, closing the charging function of the secondary battery.
And detecting whether the charging voltage provided by the external power supply received after the target time length is increased.
If the charging voltage provided by the external power supply received after the target duration is increased, the charging function of the auxiliary battery is started, and the upper limit value of the charging current which can be received by the main battery and the auxiliary battery is adjusted to the upper limit current provided by the external power supply from the initial value.
If the charging voltage provided by the external power supply received after the target duration is unchanged, starting the charging function of the auxiliary battery, and keeping the charging current which can be received by the main battery and the auxiliary battery as an initial value.
Optionally, the processor 1101 is further configured to:
after detecting whether the main body of the mobile terminal is connected with the secondary battery, if it is determined that the main body of the mobile terminal is not connected with the secondary battery or that the main body of the mobile terminal is connected with the secondary battery and the charging function of the secondary battery is in an off state, performing a step of detecting whether a charging voltage provided by an external power supply received after a target duration is increased.
Optionally, the processor 1101 is further configured to:
before acquiring the electric quantity of the main battery, if the charging function of the auxiliary battery is detected to be in an off state, the charging function of the auxiliary battery is started.
Optionally, the processor 1101 is further configured to:
and starting the discharging function of the auxiliary battery in response to the discharging starting instruction.
In response to the discharge-off command, the discharge function of the sub-battery is turned off.
To sum up, the embodiment of the present application provides a mobile terminal, where in a charging process of the mobile terminal through an external power supply, the mobile terminal may determine a first charging current and a second charging current according to an acquired electric quantity of a main battery, charge the main battery according to the first charging current, and charge an auxiliary battery according to the second charging current. Because the mobile terminal can configure the first charging current of the main battery and the second charging current of the auxiliary battery according to the electric quantity of the main battery, compared with the related technology, the mobile terminal fully utilizes the charging power of the external power supply, and improves the flexibility and efficiency when the main battery and the auxiliary battery are charged.
As shown in fig. 11, the processor 1101 is configured to:
and in the process of charging through the external power supply, the electric quantity of the auxiliary battery is acquired.
And determining a first charging current of the main battery and a second charging current of the auxiliary battery according to the electric quantity of the auxiliary battery, wherein the first charging current is positively correlated with the electric quantity of the auxiliary battery, and the second charging current is negatively correlated with the electric quantity of the auxiliary battery.
The main battery is charged according to a first charging current, and the sub-battery is charged according to a second charging current.
Optionally, the processor 1101 is configured to:
and if the electric quantity of the auxiliary battery is smaller than the first electric quantity threshold value, determining that the first charging current is 0, and determining that the second charging current is the upper limit current provided by the external power supply.
If the electric quantity of the sub-battery is greater than or equal to the first electric quantity threshold value and less than the second electric quantity threshold value, the first charging current is determined to be a current greater than 0 and less than the upper limit current, and the second charging current is determined to be a current greater than 0 and less than the upper limit current.
And if the electric quantity of the auxiliary battery is equal to the second electric quantity threshold value, determining that the first charging current is the upper limit current, and determining that the second charging current is 0.
In summary, the embodiment of the present application provides a mobile terminal, which can determine a first charging current and a second charging current according to the acquired electric quantity of a secondary battery in a charging process of the mobile terminal through an external power supply, charge a primary current according to the first charging current, and charge the secondary battery according to the second charging current. Because the mobile terminal can configure the first charging current of the main battery and the second charging current of the auxiliary battery according to the electric quantity of the auxiliary battery, compared with the related technology, the mobile terminal fully utilizes the charging power of the external power supply, and improves the flexibility and efficiency when the main battery and the auxiliary battery are charged.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the terminal and each device described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Fig. 13 is a schematic structural diagram of another mobile terminal according to an embodiment of the present application, and as shown in fig. 13, the mobile terminal 110 may include: a display unit 130, a memory 140, a Radio Frequency (RF) circuit 150, an audio circuit 160, a wireless fidelity (Wi-Fi) module 170, a bluetooth module 180, a power supply 190, a camera 121, and a processor 1101.
The camera 121 may be used to capture still pictures or video, among other things. The object generates an optical picture through the lens and projects the optical picture to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensitive elements convert the light signals into electrical signals which are then passed to the processor 1101 for conversion into digital picture signals.
The processor 1101 is a control center of the mobile terminal 110, connects various parts of the entire terminal using various interfaces and lines, performs various functions of the mobile terminal 110 and processes data by running or executing software programs stored in the memory 140 and calling data stored in the memory 140. In some embodiments, processor 1101 may include one or more processing units; the processor 1101 may also integrate an application processor, which mainly handles operating systems, user interfaces, applications, etc., and a baseband processor, which mainly handles wireless communications. It will be appreciated that the baseband processor described above may not be integrated into the processor 1101. In the present application, the processor 1101 may run an operating system, an application program, a user interface display, a touch response, and a charging method of the mobile terminal according to the embodiments of the present application. Additionally, processor 1101 is coupled to input unit and display unit 130.
The display unit 130 may be used to receive input numeric or character information and generate signal inputs related to user settings and function control of the mobile terminal 110, and optionally, the display unit 130 may also be used to display a Graphical User Interface (GUI) for displaying information input by or provided to the user and various menus of the mobile terminal 110. The display unit 130 may include a display screen 131 disposed on the front surface of the mobile terminal 110. The display screen 131 may be configured in the form of a liquid crystal display, a light emitting diode, or the like. The display unit 130 may be used to display various graphical user interfaces described herein.
The display unit 130 includes: a display screen 131 and a touch screen 132 disposed on the front of the mobile terminal 110. The display screen 131 may be used to display preview pictures. Touch screen 132 may collect touch operations on or near by the user, such as clicking a button, dragging a scroll box, and the like. The touch screen 132 may be covered on the display screen 131, or the touch screen 132 and the display screen 131 may be integrated to implement the input and output functions of the mobile terminal 110, and after the integration, the touch screen may be referred to as a touch display screen for short.
The memory 140 may be used to store software programs and data. The processor 1101 executes various functions of the mobile terminal 110 and data processing by executing software programs or data stored in the memory 140. The memory 140 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Memory 140 stores an operating system that enables mobile terminal 110 to operate. The memory 140 may store an operating system and various application programs, and may also store codes for executing the charging method of the mobile terminal according to the embodiment of the present application.
The RF circuit 150 may be used for receiving and transmitting signals during information transmission and reception or during a call, and may receive downlink data of a base station and then deliver the received downlink data to the processor 1101 for processing; the uplink data may be transmitted to the base station. In general, RF circuitry includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and mobile terminal 110. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161. Mobile terminal 110 may also be configured with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 162 converts the collected sound signal into an electrical signal, converts the electrical signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the RF circuit 150 to be transmitted to, for example, another terminal or outputs the audio data to the memory 140 for further processing. In this application, the microphone 162 may capture the voice of the user.
Wi-Fi belongs to a short-distance wireless transmission technology, and the mobile terminal 110 may help a user to send and receive e-mails, browse webpages, access streaming media, and the like through the Wi-Fi module 170, which provides a wireless broadband internet access for the user.
And the Bluetooth module 180 is used for performing information interaction with other Bluetooth devices with Bluetooth modules through a Bluetooth protocol. For example, the mobile terminal 110 may establish a bluetooth connection with a wearable electronic device (e.g., a smart watch) also equipped with a bluetooth module through the bluetooth module 180, so as to perform data interaction.
Mobile terminal 110 also includes a power supply 190 (e.g., a battery) that powers the various components. The power supply may be logically coupled to the processor 1101 through a power management system to manage charging, discharging, and power consumption functions through the power management system. The mobile terminal 110 may also be configured with power buttons for powering the terminal on and off, and for locking the screen.
The mobile terminal 110 may include at least one sensor 1110 such as a motion sensor 11101, a distance sensor 11102, a fingerprint sensor 11103, and a temperature sensor 11104. Mobile terminal 110 may also be configured with other sensors such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors.
Fig. 14 is a block diagram of a software structure of a mobile terminal according to an embodiment of the present application. The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the android system is divided into four layers, an application layer, an application framework layer, an android runtime (android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages. As shown in fig. 14, the application package may include camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc. applications. The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 14, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, pictures, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions of the mobile terminal 110. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, text information is presented in the status bar, a warning tone is given, the communication terminal vibrates, and an indicator light flashes.
The android runtime comprises a core library and a virtual machine. The android runtime is responsible for scheduling and management of the android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), media libraries (media libraries), three-dimensional graphics processing libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still picture files, etc. The media library may support a variety of audio-video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, picture rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The embodiment of the present application provides a computer-readable storage medium, in which instructions are stored, and when the computer-readable storage medium runs on a computer, the computer is caused to execute the charging method of the mobile terminal provided in the foregoing embodiment.
The embodiment of the present application further provides a computer program product containing instructions, which when the computer program product runs on a computer, causes the computer to execute the charging method of the mobile terminal provided by the foregoing method embodiment.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A mobile terminal, characterized in that the mobile terminal comprises: the mobile terminal comprises a processor, a main battery and an auxiliary battery, wherein the main battery is fixed in a main body of the mobile terminal, and the auxiliary battery is detachably connected with the main body;
the processor is configured to:
acquiring the electric quantity of the main battery in the charging process through an external power supply;
determining a first charging current of the main battery and a second charging current of the auxiliary battery according to the electric quantity of the main battery, wherein the first charging current is inversely related to the electric quantity of the main battery, and the second charging current is positively related to the electric quantity of the main battery;
charging the main battery according to the first charging current, and charging the auxiliary battery according to the second charging current;
the processor is further configured to:
if receiving the charging voltage provided by the external power supply, detecting whether the main body of the mobile terminal is connected with the secondary battery;
if the main body of the mobile terminal is connected with the secondary battery and the charging function of the secondary battery is in an open state, closing the charging function of the secondary battery;
if the charging voltage provided by the external power supply received after the target duration is increased, starting the charging function of the auxiliary battery, and adjusting the upper limit value of the charging current which can be received by the main battery and the auxiliary battery from an initial value to the upper limit current provided by the external power supply;
and if the charging voltage provided by the external power supply received after the target duration is unchanged, starting the charging function of the auxiliary battery, and keeping the charging currents which can be received by the main battery and the auxiliary battery as initial values.
2. The mobile terminal of claim 1, wherein the processor is configured to:
if the electric quantity of the main battery is smaller than a first electric quantity threshold value, determining that the first charging current is an upper limit current provided by the external power supply, and determining that the second charging current is 0;
if the electric quantity of the main battery is larger than or equal to the first electric quantity threshold value and smaller than a second electric quantity threshold value, determining that the first charging current is a current larger than 0 and smaller than the upper limit current, and determining that the second charging current is a current larger than 0 and smaller than the upper limit current;
and if the electric quantity of the main battery is equal to the second electric quantity threshold value, determining that the first charging current is 0, and determining that the second charging current is the upper limit current.
3. The mobile terminal of claim 1, wherein the mobile terminal further comprises: the main battery comprises a main board, a first temperature sensor arranged on the main battery and a second temperature sensor arranged on the main board;
the first temperature sensor is used for detecting the temperature of the main battery;
the second temperature sensor is used for detecting the temperature of the mainboard;
the processor is further configured to:
after determining a first charging current of the main battery and a second charging current of the auxiliary battery, if the temperature of the main battery is detected or the temperature of the main board is greater than a temperature threshold value, reducing the first charging current;
and if the first charging current is detected to be smaller than the current threshold, increasing the second charging current.
4. The mobile terminal of claim 1, wherein the processor is further configured to:
after detecting whether the main body of the mobile terminal is connected with the secondary battery, if it is determined that the main body of the mobile terminal is not connected with the secondary battery or that the main body of the mobile terminal is connected with the secondary battery and the charging function of the secondary battery is in a closed state, executing a step of detecting whether the charging voltage provided by the external power supply received after a target duration is increased.
5. The mobile terminal of any of claims 1 to 3, wherein the processor is further configured to:
before the electric quantity of the main battery is acquired, if the charging function of the auxiliary battery is detected to be in a closed state, the charging function of the auxiliary battery is started.
6. The mobile terminal of any of claims 1 to 3, wherein the processor is further configured to:
turning on a discharge function of the sub-battery in response to a discharge turn-on instruction;
and in response to a discharge shutdown instruction, shutting down a discharge function of the sub-battery.
7. A mobile terminal, characterized in that the mobile terminal comprises: the mobile terminal comprises a processor, a main battery and an auxiliary battery, wherein the main battery is fixed in a main body of the mobile terminal, and the auxiliary battery is detachably connected with the main body;
the processor is configured to:
acquiring the electric quantity of the auxiliary battery in the charging process through an external power supply;
determining a first charging current of the main battery and a second charging current of the auxiliary battery according to the charge of the auxiliary battery, wherein the first charging current is positively correlated with the charge of the auxiliary battery, and the second charging current is negatively correlated with the charge of the auxiliary battery;
charging the main battery according to the first charging current, and charging the auxiliary battery according to the second charging current;
the processor is further configured to:
if receiving the charging voltage provided by the external power supply, detecting whether the main body of the mobile terminal is connected with the secondary battery;
if the main body of the mobile terminal is connected with the secondary battery and the charging function of the secondary battery is in an open state, closing the charging function of the secondary battery;
if the charging voltage provided by the external power supply received after the target duration is increased, starting the charging function of the auxiliary battery, and adjusting the upper limit value of the charging current which can be received by the main battery and the auxiliary battery from an initial value to the upper limit current provided by the external power supply;
and if the charging voltage provided by the external power supply received after the target duration is unchanged, starting the charging function of the auxiliary battery, and keeping the charging currents which can be received by the main battery and the auxiliary battery as initial values.
8. The mobile terminal of claim 7, wherein the processor is configured to:
if the electric quantity of the auxiliary battery is smaller than a first electric quantity threshold value, determining that the first charging current is 0, and determining that the second charging current is an upper limit current provided by the external power supply;
if the electric quantity of the auxiliary battery is greater than or equal to the first electric quantity threshold value and smaller than a second electric quantity threshold value, determining that the first charging current is a current which is greater than 0 and smaller than the upper limit current, and determining that the second charging current is a current which is greater than 0 and smaller than the upper limit current;
and if the electric quantity of the auxiliary battery is equal to the second electric quantity threshold value, determining that the first charging current is the upper limit current, and determining that the second charging current is 0.
9. A charging method of a mobile terminal, the mobile terminal comprising: the mobile terminal comprises a main battery and an auxiliary battery, wherein the main battery is fixed in a main body of the mobile terminal, and the auxiliary battery is detachably connected with the main body; the method comprises the following steps:
acquiring the electric quantity of the main battery in the charging process through an external power supply;
determining a first charging current of the main battery and a second charging current of the auxiliary battery according to the electric quantity of the main battery, wherein the first charging current is inversely related to the electric quantity of the main battery, and the second charging current is positively related to the electric quantity of the main battery;
charging the main battery according to the first charging current, and charging the auxiliary battery according to the second charging current;
the method further comprises the following steps:
if receiving the charging voltage provided by the external power supply, detecting whether the main body of the mobile terminal is connected with the secondary battery;
if the main body of the mobile terminal is connected with the secondary battery and the charging function of the secondary battery is in an open state, the charging function of the secondary battery is closed;
if the charging voltage provided by the external power supply received after the target duration is increased, starting the charging function of the auxiliary battery, and adjusting the upper limit value of the charging current which can be received by the main battery and the auxiliary battery from an initial value to the upper limit current provided by the external power supply;
and if the charging voltage provided by the external power supply received after the target duration is unchanged, starting the charging function of the auxiliary battery, and keeping the charging currents which can be received by the main battery and the auxiliary battery as initial values.
10. A charging method of a mobile terminal, the mobile terminal comprising: the mobile terminal comprises a main battery and an auxiliary battery, wherein the main battery is fixed in a main body of the mobile terminal, and the auxiliary battery is detachably connected with the main body; the method comprises the following steps:
acquiring the electric quantity of the auxiliary battery in the charging process through an external power supply;
determining a first charging current of the main battery and a second charging current of the auxiliary battery according to the charge of the auxiliary battery, wherein the first charging current is positively correlated with the charge of the auxiliary battery, and the second charging current is negatively correlated with the charge of the auxiliary battery;
charging the main battery according to the first charging current, and charging the auxiliary battery according to the second charging current;
the method further comprises the following steps:
if receiving the charging voltage provided by the external power supply, detecting whether the main body of the mobile terminal is connected with the secondary battery;
if the main body of the mobile terminal is connected with the secondary battery and the charging function of the secondary battery is in an open state, closing the charging function of the secondary battery;
if the charging voltage provided by the external power supply received after the target duration is increased, starting the charging function of the auxiliary battery, and adjusting the upper limit value of the charging current which can be received by the main battery and the auxiliary battery from an initial value to the upper limit current provided by the external power supply;
and if the charging voltage provided by the external power supply received after the target duration is unchanged, starting the charging function of the auxiliary battery, and keeping the charging currents which can be received by the main battery and the auxiliary battery as initial values.
CN202010102296.3A 2020-02-19 2020-02-19 Mobile terminal and charging method thereof Active CN113285500B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010102296.3A CN113285500B (en) 2020-02-19 2020-02-19 Mobile terminal and charging method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010102296.3A CN113285500B (en) 2020-02-19 2020-02-19 Mobile terminal and charging method thereof

Publications (2)

Publication Number Publication Date
CN113285500A CN113285500A (en) 2021-08-20
CN113285500B true CN113285500B (en) 2022-10-14

Family

ID=77275071

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010102296.3A Active CN113285500B (en) 2020-02-19 2020-02-19 Mobile terminal and charging method thereof

Country Status (1)

Country Link
CN (1) CN113285500B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106329689A (en) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 Adapter and method of achieving charging thereof
CN106356928A (en) * 2016-09-20 2017-01-25 Tcl通讯(宁波)有限公司 Double-battery mobile terminal and wireless charging system thereof
CN107769326A (en) * 2017-11-15 2018-03-06 深圳天珑无线科技有限公司 Control method, device and the computer-readable recording medium of portable power source
CN110138942A (en) * 2019-01-18 2019-08-16 青岛海信移动通信技术股份有限公司 Terminal and processing method
CN209375201U (en) * 2019-03-13 2019-09-10 广州疆海科技有限公司 A kind of Multifunctional charger baby of band transmission data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106329689A (en) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 Adapter and method of achieving charging thereof
CN106356928A (en) * 2016-09-20 2017-01-25 Tcl通讯(宁波)有限公司 Double-battery mobile terminal and wireless charging system thereof
CN107769326A (en) * 2017-11-15 2018-03-06 深圳天珑无线科技有限公司 Control method, device and the computer-readable recording medium of portable power source
CN110138942A (en) * 2019-01-18 2019-08-16 青岛海信移动通信技术股份有限公司 Terminal and processing method
CN209375201U (en) * 2019-03-13 2019-09-10 广州疆海科技有限公司 A kind of Multifunctional charger baby of band transmission data

Also Published As

Publication number Publication date
CN113285500A (en) 2021-08-20

Similar Documents

Publication Publication Date Title
CN111741502B (en) Mobile terminal and mobile communication network switching method thereof
EP3964932A1 (en) Learning-based keyword search method, and electronic device
CN112114733B (en) Screen capturing and recording method, mobile terminal and computer storage medium
CN111443957B (en) Application stuck processing method and device and electronic equipment
KR102531333B1 (en) An electronic device providing a notofication for event occurred to the electronic device and control method thereof
CN111756103B (en) Mobile terminal and charging method thereof
CN112769210B (en) Electronic device and charging method thereof
CN115801943B (en) Display method, electronic device and storage medium
CN112350406B (en) Electronic device and control method thereof
CN116483734B (en) Pile inserting method and system based on compiler and related electronic equipment
CN116467221B (en) Pile inserting method and system based on interpreter and related electronic equipment
CN113285500B (en) Mobile terminal and charging method thereof
CN113131543A (en) Charging control method, device, equipment and readable storage medium
CN112764812B (en) Electronic device and control method thereof
CN112542867B (en) Mobile terminal power supply control method and device, terminal equipment and storage medium
CN114339591A (en) Method for positioning based on ultra-wideband chip and related device
CN111384754B (en) Charging method, charging device, storage medium and mobile terminal
CN112954622A (en) Mobile terminal and short message sending method thereof
CN112351144A (en) Mobile terminal and state prompting method thereof
CN111475363A (en) Card death recognition method and electronic equipment
CN111385416B (en) Electronic equipment and alarm clock processing method
CN117221713B (en) Parameter loading method and electronic equipment
CN117013660B (en) Charging icon display method and electronic equipment
CN115513571B (en) Control method of battery temperature and terminal equipment
CN111142648B (en) Data processing method and intelligent terminal

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
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder