CN115549231B - Battery charge and discharge control method and device, terminal equipment and storage medium - Google Patents

Battery charge and discharge control method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN115549231B
CN115549231B CN202210191426.4A CN202210191426A CN115549231B CN 115549231 B CN115549231 B CN 115549231B CN 202210191426 A CN202210191426 A CN 202210191426A CN 115549231 B CN115549231 B CN 115549231B
Authority
CN
China
Prior art keywords
battery
temperature
charging
pressure
battery protection
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
CN202210191426.4A
Other languages
Chinese (zh)
Other versions
CN115549231A (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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Publication of CN115549231A publication Critical patent/CN115549231A/en
Application granted granted Critical
Publication of CN115549231B publication Critical patent/CN115549231B/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/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • H02J7/00309Overheat or overtemperature protection
    • 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/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • H02J7/0031Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits using battery or load disconnect circuits
    • 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/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • 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/007Regulation of charging or discharging current or voltage
    • H02J7/007188Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters
    • H02J7/007192Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters in response to temperature
    • H02J7/007194Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters in response to temperature of the battery
    • 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)
  • Secondary Cells (AREA)

Abstract

The application is applicable to the technical field of battery charging and discharging, and provides a battery charging and discharging control method, a device, terminal equipment and a storage medium. The battery charge and discharge control method is applied to the terminal equipment and comprises the following steps: acquiring a first temperature and a first pressure of a battery of the terminal equipment when the terminal equipment is in a charging state; determining to execute a battery protection strategy of the terminal equipment according to the first temperature and the first pressure; and controlling a charging module of the terminal equipment to stop charging the battery and stopping supplying power to a load according to the battery protection strategy, and controlling the battery to supply power to the load. The scheme can reduce the risk of battery swelling and improve the safety of the battery; and the loss of the battery capacity can be slowed down, and the cycle life of the battery can be prolonged.

Description

Battery charge and discharge control method and device, terminal equipment and storage medium
The present application claims priority from chinese patent office, application number 202210007742.1, entitled "method, apparatus, and terminal device for controlling charge and discharge of a battery", filed on day 04 and 01 and 2022, the entire contents of which are incorporated herein by reference.
Technical Field
The present disclosure relates to the field of battery charging and discharging technologies, and in particular, to a battery charging and discharging control method, a device, a terminal device, and a storage medium.
Background
In the use process of daily terminal equipment (such as a mobile phone), a user encounters a scene that the mobile phone runs high-energy-consumption applications such as video playing, game playing, navigation or screen throwing under the condition that the mobile phone is connected with a charger, and under the scene, the mobile phone runs the high-energy-consumption applications, so that the self heating of the mobile phone is serious, the mobile phone is heated continuously, and the electric quantity of the mobile phone is increased continuously; still another scenario is that the mobile phone is placed in a place with a high ambient temperature, such as a place where sunlight is directly incident, when the mobile phone is connected to the charger, the mobile phone is continuously warmed up due to the high ambient temperature, and the electric quantity of the mobile phone is also continuously increased. That is, a common feature of the two above-mentioned scenarios is that the temperature of the mobile phone is continuously increased while the electric quantity is continuously increased.
In the above-mentioned scene, if the user does not pull out the charger in time when the cell-phone is fully charged, then can make the battery of cell-phone be in high temperature high pressure state. When the battery is in a high-temperature and high-pressure state, on one hand, lithium cobalt oxide (LiCoO 2) in the battery is in a metastable state to generate gas, so that the battery is swelled; on the other hand, the active lithium ions in the battery can generate side reactions at the electrode/electrolyte interface, so that the loss of the battery capacity is accelerated, and the cycle life of the battery is shortened.
Disclosure of Invention
The embodiment of the application provides a battery charge and discharge control method, a device, a terminal device and a storage medium, when a battery protection strategy is determined to be executed according to a first temperature and a first pressure of a battery, a charging module is controlled to stop charging the battery and stopping supplying power to a load, and the battery is controlled to supply power to the load, so that the risk of battery swelling can be reduced, and the safety of the battery is improved; and the loss of the battery capacity can be slowed down, and the cycle life of the battery can be prolonged.
In a first aspect, an embodiment of the present application provides a method for controlling charge and discharge of a battery, which is applied to a terminal device, including:
acquiring a first temperature and a first pressure of a battery of the terminal equipment when the terminal equipment is in a charging state;
and under the condition that the battery protection strategy of the terminal equipment is determined to be executed according to the first temperature and the first pressure, controlling a charging module of the terminal equipment to stop charging the battery and stopping supplying power to a load according to the battery protection strategy, and controlling the battery to supply power to the load.
According to the scheme, the first temperature and the first pressure of the battery of the terminal equipment are obtained when the battery protection strategy of the terminal equipment is determined to be executed according to the first temperature and the first pressure of the battery, the battery is indicated to be in a high-temperature and high-pressure state, and according to the battery protection strategy, on one hand, the charging module of the terminal equipment is controlled to stop charging the battery and stopping supplying power to the load to reduce the self-heating of the terminal equipment, and meanwhile, the pressure of the battery is not increased any more; on the other hand, the pressure of the battery is released by controlling the battery to supply power to the load, so that the battery is prevented from being in a high-temperature and high-pressure state, the risk of battery swelling can be reduced, and the safety of the battery is improved; and the loss of the battery capacity can be slowed down, and the cycle life of the battery can be prolonged.
In a possible implementation manner of the first aspect, the determining, according to the first temperature and the first pressure, to execute a battery protection policy of the terminal device includes:
and if the first temperature is smaller than a first temperature threshold and larger than or equal to a second temperature threshold, and the first pressure is larger than or equal to a first pressure threshold, determining to execute the battery protection strategy of the terminal equipment.
In a possible implementation manner of the first aspect, the determining, according to the first temperature and the first pressure, to execute a battery protection policy of the terminal device includes:
if the first temperature is greater than or equal to a first temperature threshold and the first pressure is greater than or equal to a second pressure threshold, determining to execute a battery protection strategy of the terminal equipment; the second pressure threshold is less than the first pressure threshold.
In a possible implementation manner of the first aspect, after the determining to execute the battery protection policy of the terminal device according to the first temperature and the first pressure, the charge-discharge control method further includes:
outputting first prompt information; the first prompt message is used for prompting whether the battery protection strategy is allowed to be started or not;
The controlling, according to the battery protection policy, the charging module of the terminal device to stop charging the battery and stopping supplying power to a load, and controlling the battery to supply power to the load includes:
and if the operation indicating that the battery protection strategy is allowed to be started is detected, controlling a charging module of the terminal equipment to stop charging the battery and stopping supplying power to a load according to the battery protection strategy, and controlling the battery to supply power to the load.
Optionally, when the terminal device determines to execute the battery protection policy according to the first temperature and the first pressure, the terminal device may directly output the first prompt information, that is, prompt the user before each step of executing the battery protection policy by the terminal device, and determine whether to execute the step of executing the battery protection policy currently based on the current selection of the user, so that the user has the selection permission on whether to execute the step of executing the battery protection policy by the terminal device each time, thereby improving the charging experience of the user.
Optionally, the terminal device may provide a channel for the user to open or close the battery protection policy, so that the user may open or close the battery protection policy at any time according to the actual requirement, so as to facilitate the user to select the charging mode of the terminal device; in addition, under the condition that the user opens the battery protection strategy through the channel, when the terminal equipment determines to execute the battery protection strategy, the terminal equipment does not need to output prompt information to acquire the authorization of the user, but directly executes the steps included in the battery protection strategy, so that the disturbance of the prompt information to the user is reduced.
In a possible implementation manner of the first aspect, after the controlling, according to the battery protection policy, the charging module of the terminal device to stop charging the battery and stop supplying power to the load, and controlling the battery to supply power to the load, the charge-discharge control method further includes:
outputting second prompt information if the opening prompt function of the battery protection strategy is detected to be in an opening state; the second prompting information is used for prompting the terminal equipment to be in a state of executing the battery protection strategy.
According to the scheme, when the opening prompt function of the battery protection strategy is detected to be in the opening state, the user terminal equipment is prompted to be in the state of executing the battery protection strategy currently by outputting the second prompt information, so that the battery cannot be fully charged, and a user can know the charging condition of the battery.
In a possible implementation manner of the first aspect, after the controlling, according to the battery protection policy, the charging module of the terminal device to stop charging the battery and stop supplying power to the load, and controlling the battery to supply power to the load, the charge-discharge control method further includes:
Acquiring a second temperature and a second pressure of the battery;
if the battery protection strategy is determined to be exited according to the second temperature and the second pressure, stopping executing the battery protection strategy and executing a first battery charging strategy;
or if the operation of stopping the battery protection strategy is detected, stopping executing the battery protection strategy and executing a first battery charging strategy;
the first battery charging strategy includes: the charging module is controlled to charge the battery and supply power to the load.
According to the scheme, the second temperature and the second pressure of the battery are obtained when the terminal equipment is in the process of executing the battery protection strategy, when the battery protection strategy is determined to be exited according to the second temperature and the second pressure, the battery is not in a high-temperature and high-pressure state, and at the moment, the battery protection strategy is stopped to be executed, and the first battery charging strategy is executed; or stopping executing the battery protection strategy and executing the first battery charging strategy when detecting the operation of stopping the battery protection strategy, so that the charger can normally charge the battery and supply power to the load when the battery is not in a high-temperature and high-pressure state or when receiving the instruction of a user.
In a possible implementation manner of the first aspect, the stopping executing the battery protection policy if it is determined to exit the battery protection policy according to the second temperature and the second pressure includes:
if the second temperature is smaller than a second temperature threshold value, determining to exit the battery protection strategy, and stopping executing the battery protection strategy;
or if the second temperature is less than the first temperature threshold and greater than or equal to the second temperature threshold and the second pressure is less than the first pressure threshold, determining to exit the battery protection strategy and stopping executing the battery protection strategy;
or if the second temperature is greater than or equal to the first temperature threshold and the second pressure is less than the second pressure threshold, determining to exit the battery protection strategy and stopping executing the battery protection strategy.
In a possible implementation manner of the first aspect, the charging module includes a charging control chip, a first switch circuit and a second switch circuit; the controlled end of the first switch circuit and the controlled end of the second switch circuit are both connected with the charging control chip, the first end of the first switch circuit is used for being connected with a charger, the second end of the first switch circuit is used for being connected with the load, the first end of the second switch circuit is used for being connected with the load, and the second end of the second switch circuit is used for being connected with the anode of the battery;
The charging control chip is used for controlling the switching states of the first switching circuit and the second switching circuit, the switching states of the first switching circuit are used for reflecting the on-off of a first passage between the charger and the load, and the switching states of the first switching circuit and the second switching circuit are used for jointly reflecting the on-off of a second passage between the charger and the battery and a third passage between the battery and the load;
the controlling, according to the battery protection policy, the charging module of the terminal device to stop charging the battery and stopping supplying power to a load, and controlling the battery to supply power to the load includes:
and controlling the switching states of the first switching circuit and the second switching circuit through the charging control chip so as to disconnect the first passage and the second passage and connect the third passage.
In a possible implementation manner of the first aspect, the first switching circuit includes a first switching tube, a second switching tube, and a third switching tube, and the second switching circuit includes a fourth switching tube; the controlled ends of the first switch tube, the second switch tube, the third switch tube and the fourth switch tube are all connected with the charging control chip, the first conducting end of the first switch tube is used as the first end of the first switch circuit, the second conducting end of the first switch tube is connected with the first conducting end of the second switch tube, the second conducting end of the second switch tube is connected with the first conducting end of the third switch tube, the first conducting end of the third switch tube is used as the second end of the first switch circuit, the second conducting end of the third switch tube is grounded, the first conducting end of the fourth switch tube is used as the first end of the second switch circuit, and the second conducting end of the fourth switch tube is used as the second end of the second switch circuit;
The controlling, by the charge control chip, the switching states of the first switching circuit and the second switching circuit to disconnect the first path and the second path and to connect the third path includes:
the first switching tube is controlled to be conducted through the charging control chip, and the second switching tube and the third switching tube are controlled to be disconnected; when the first switching tube is switched on and the second switching tube and the third switching tube are both switched off, the first passage and the second passage are both switched off;
the fourth switching tube is controlled to be conducted through the charging control chip; and when the fourth switching tube is conducted, the third channel is connected.
In a second aspect, an embodiment of the present application provides a charge and discharge control device for a battery, including:
a first obtaining unit, configured to obtain a first temperature and a first pressure of a battery of a terminal device in a charging state;
a first determining unit configured to determine to execute a battery protection policy of the terminal device according to the first temperature and the first pressure;
and the charging and discharging control unit is used for controlling the charging module of the terminal equipment to stop charging the battery and stopping supplying power to the load according to the battery protection strategy, and controlling the battery to supply power to the load.
In a third aspect, an embodiment of the present application provides a terminal device, including a battery and a charge-discharge control device of the battery according to the second aspect, where the battery is connected to the charge-discharge control device.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program, which when executed by a processor implements a method as described in the first aspect and any one of the possible implementations of the first aspect.
In a fifth aspect, embodiments of the present application provide a chip system, including a processor, where the processor is coupled to a memory, and the processor executes a computer program stored in the memory, to implement a method as described in the first aspect and any one of the possible implementation manners of the first aspect. The chip system can be a single chip or a chip module composed of a plurality of chips.
In a sixth aspect, embodiments of the present application provide a computer program product, which when run on a terminal device, causes the terminal device to perform the method of the first aspect and any one of the possible implementations of the first aspect.
It will be appreciated that the advantages of the second to sixth aspects may be found in the relevant description of the first aspect, and are not described here again.
Drawings
Fig. 1 is a schematic flowchart of a method for controlling charge and discharge of a battery according to a first embodiment of the present application;
fig. 2 is a schematic flowchart of a step of determining whether a battery is in a high-temperature and high-pressure state in a method for controlling charge and discharge of a battery according to a first embodiment of the present application;
fig. 3 is a schematic architecture diagram of a charging module according to an embodiment of the present application;
FIG. 4 is a schematic architecture diagram of a charging module according to another embodiment of the present application;
fig. 5 is a schematic flowchart of a method for controlling charge and discharge of a battery according to a second embodiment of the present application;
FIG. 6 is a schematic diagram of a prompt interface according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of a battery setting interface according to an embodiment of the present application;
FIG. 8 is a schematic diagram of another prompt interface provided in an embodiment of the present application;
fig. 9 is a schematic flowchart of a method for controlling charge and discharge of a battery according to a third embodiment of the present application;
fig. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
Fig. 11 is a schematic structural diagram of another terminal device provided in an embodiment of the present application;
fig. 12 is a schematic structural diagram of a battery charge/discharge control device according to an embodiment of the present disclosure.
Detailed Description
It should be noted that the terms used in the implementation section of the embodiments of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application. In the description of the embodiments of the present application, unless otherwise indicated, "/" means or, for example, a/B may represent a or B; "and/or" herein is merely an association relationship describing a relationship, meaning that there may be three relationships, e.g., a and/or B, may mean: a exists alone, A and B exist together, and B exists alone. In addition, in the description of the embodiments of the present application, unless otherwise indicated, "a plurality" means two or more, and "at least one", "one or more" means one, two or more.
The terms "first" and "second" are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a definition of "a first", "a second" feature may explicitly or implicitly include one or more of such features.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
In the use process of daily terminal equipment (such as a mobile phone or a tablet personal computer) by a user, a scene is that the mobile phone runs high-energy-consumption applications such as video playing, game playing, navigation or screen throwing under the condition that the mobile phone is connected with a charger, and under the scene, the mobile phone runs the high-energy-consumption applications, so that the self heating of the mobile phone is serious, the mobile phone is heated continuously, and the electric quantity of the mobile phone is increased continuously; still another scenario is where the phone is placed in a place where the ambient temperature is high (e.g., directly illuminated by sunlight) when the phone is connected to a charger, for example, when driving, the phone connected to the charger is placed on a console of a car, so that sunlight is directly illuminated on the phone. That is, a common feature of the two above-listed scenarios is that the temperature of the phone is continuously increasing while the power is continuously increasing.
The current battery charging strategy is to set the current charging current of the battery based on the voltage and the temperature of the battery, provided that the voltage of the battery charging cannot exceed the highest charging voltage required by the battery; and the maximum current for battery charging may be limited at different temperatures. In addition, the charging process is generally divided into a trickle phase, a precharge phase, a constant current phase and a constant voltage phase, and the terminal device may be switched to different types of charging control circuits for charging in different charging phases. Common charge control circuits include switched capacitor and buck (buck) switching power supplies and the like.
The current battery charging strategy is to switch to a buck switch power supply type charging control circuit for charging until the battery is full by detecting the voltage and the charging current of the battery in the last stage (namely, constant voltage stage) of the battery to be fully charged and when the voltage of the battery reaches a preset voltage threshold value and the charging current is smaller than or equal to a preset current threshold value. The specific charging mode is as follows: the charger charges the battery while supplying power to the load through the buck switch power supply type charging control circuit, and controls the buck switch power supply type charging control circuit to stop charging the battery when the battery is fully charged. Meanwhile, the charging current of the battery can be controlled by detecting the temperature of the battery, so that the influence on the service life of the battery when the battery is charged in a high-temperature and high-pressure state is reduced.
However, taking the terminal device as the mobile phone as an example, when the mobile phone is charged by adopting the battery charging policy (i.e. the current battery charging policy), in the two listed scenarios, if the user pulls down the charger in time when the mobile phone is not fully charged, the battery of the mobile phone is in a high-temperature and high-pressure state, which will cause serious damage to the battery. Specifically, when the battery is in a high-temperature and high-pressure state, on one hand, the high temperature accelerates some chemical reactions inside the battery, so that lithium cobalt oxide (also called lithium cobalt oxide, liCoO 2 ) In a metastable state, gas is generated to cause the swelling of the battery, and particularly, the swelling phenomenon of the battery caused by high temperature is more obvious under the condition of full charge or slight overcharge of the battery; on the other hand, the active lithium ions in the battery can generate side reaction at the electrode/electrolyte interface under the high-temperature and high-pressure state, so that the loss of the battery capacity is accelerated, and the electricity is shortenedCycle life of the cell.
In order to solve the above technical problems, the embodiments of the present application provide a method for controlling charge and discharge of a battery, by acquiring a first temperature and a first pressure (the first pressure may be a first voltage or a first electric quantity of the battery) of the battery of the terminal device in a charged state, and determining to execute a battery protection policy when the battery is determined to be in a high-temperature and high-pressure state according to the first temperature and the first pressure of the battery, according to the battery protection policy, on one hand, by controlling a charging module to stop charging the battery and stop supplying power to a load, so that the pressure (e.g., the voltage or the electric quantity of the battery) of the battery no longer increases, and at the same time, reducing heat generation of the terminal device itself; on the other hand, the pressure of the battery is released by controlling the battery to supply power to the load, so that the battery is prevented from being in a high-temperature and high-pressure state, the risk of battery swelling can be reduced, and the safety of the battery is improved; and the loss of the battery capacity can be slowed down, and the cycle life of the battery can be prolonged.
The battery charge and discharge control method provided by the embodiment of the application is applied to the terminal equipment. Referring to fig. 1, a schematic flow chart of a method for controlling charge and discharge of a battery according to a first embodiment of the present application is provided. As shown in fig. 1, the method for controlling charge and discharge of a battery provided in this embodiment may include S11 to S13, which are described in detail as follows:
s11: and acquiring a first temperature and a first pressure of a battery of the terminal equipment in a charging state.
In one embodiment of the present application, the terminal device may determine whether the terminal device is in a charged state by detecting whether it is connected to a charger. When the terminal equipment detects that the terminal equipment is connected with the charger, the terminal equipment is determined to be in a charging state; when the terminal device detects that the terminal device is not connected with the charger, the terminal device is determined not to be in a charging state.
By way of example, the charger may be a portable charger, such as a mobile power supply; the power adapter can also be connected with the mains supply; or may be other types of chargers. The embodiment of the application does not limit the type of the charger.
The purpose of acquiring the first temperature and the first pressure of the battery of the terminal equipment when the terminal equipment is in the charging state is to judge whether the battery of the terminal equipment is in the high-temperature high-pressure state when the terminal equipment is in the charging state.
The battery being in a high temperature and high pressure state may include the following two possible cases:
case 1: the first temperature is greater than or equal to a first temperature threshold and the first pressure is greater than or equal to a second pressure threshold.
Case 2: the first temperature is less than a first temperature threshold and greater than or equal to a second temperature threshold, and the first pressure is greater than or equal to a first pressure threshold.
Wherein the first temperature threshold is used to describe a safe temperature threshold of the battery. The first temperature threshold may be an empirical value obtained through multiple experiments, and exemplary, the first temperature threshold may be 45 degrees celsius (°c).
The second temperature threshold is less than the first temperature threshold. The second temperature threshold may be determined according to practical circumstances, and is not particularly limited herein, and may be, for example, 42 ℃.
Alternatively, the pressure of the battery may be the voltage or charge of the battery. Based on this, the first pressure threshold may include a first voltage threshold or a first charge threshold, and the second pressure threshold may include a second voltage threshold or a second charge threshold.
Wherein the first voltage threshold is used to describe a safe voltage threshold of the battery. The first voltage threshold may be an empirical value obtained through multiple experiments, and exemplary, the first voltage threshold may be 4.4 volts (V).
The second voltage threshold is less than the first voltage threshold. The second voltage threshold may be determined according to practical situations, and is not particularly limited herein, and may be, for example, 4.2V.
The first charge threshold is used to describe a safe charge threshold for the battery. The first power threshold may be an empirical value obtained through multiple experiments, and exemplary, the first power threshold may be 85% of full power.
The second power threshold is less than the first power threshold. The second power threshold may be determined according to practical situations, and is not particularly limited herein, and may be, for example, 80% of full power.
Based on this, the first pressure in the above case 1 is greater than or equal to the second pressure threshold, specifically may be: the first voltage is greater than or equal to the second voltage threshold, or the first power is greater than or equal to the second power threshold.
The first pressure in the above case 2 is greater than or equal to the first pressure threshold, which may specifically be: the first voltage is greater than or equal to a first voltage threshold, or the first power is greater than or equal to a first power threshold.
In an embodiment of the present application, when the terminal device determines whether the battery is in a high-temperature and high-pressure state, it may determine whether the first temperature and the first pressure respectively meet the requirements of the high-temperature and high-pressure state on the temperature and the pressure. Based on this, in the present embodiment, the terminal device can acquire the first temperature and the first pressure of the battery at the same time in a state where it is connected to the charger. For example, the terminal equipment can acquire the first temperature and the first pressure of the battery in real time in a state of being connected with the charger, so that the real-time monitoring of the temperature and the pressure of the battery in a state of being charged by the terminal equipment can be realized, and the high-temperature and high-pressure state of the battery can be conveniently monitored in time; alternatively, the terminal device may acquire the first temperature and the first pressure of the battery in a state where the charger is connected once every first time period. The first duration may be determined according to actual requirements, and is not particularly limited herein.
In another embodiment of the present application, when the terminal device determines whether the battery is in a high-temperature and high-pressure state, it may first determine whether the first temperature meets a requirement of the high-temperature and high-pressure state on temperature, and if the first temperature meets the requirement of the high-temperature and high-pressure state on temperature, then determine whether the first pressure meets the requirement of the high-temperature and high-pressure state on pressure. Based on this, in this embodiment, the terminal device may first obtain the first temperature of the battery in the state where it is connected to the charger; and acquiring the first pressure of the battery when the first temperature is greater than or equal to the first temperature threshold value or when the first temperature is less than the first temperature threshold value and greater than or equal to the second temperature threshold value. This may reduce the power consumption of the terminal device relative to acquiring the first pressure of the battery in real time.
In a specific implementation, a battery protection plate of the terminal device is provided with a temperature sensor for detecting the temperature of the battery. The temperature sensor may be a temperature detection resistor, for example. Based on this, the terminal device may acquire the first temperature of the battery, which is detected by the temperature sensor, from the temperature sensor when the terminal device is in the charged state.
In a specific implementation manner, a voltage detection channel is arranged in the charging control circuit of the terminal device, and the voltage detection channel is used for detecting the voltage of the battery. Based on this, the terminal device may acquire the first voltage of the battery detected by the voltage detection channel from the voltage detection channel when the terminal device is in the charged state.
In a specific implementation manner, a power metering chip is arranged in the terminal device, and the power metering chip is used for counting the power of the battery. Based on the first electric quantity of the battery counted by the electric quantity metering chip can be obtained from the electric quantity metering chip by the terminal equipment under the state of charge of the terminal equipment.
After the terminal device obtains the first temperature and the first pressure of the battery, whether the battery is in a high-temperature and high-pressure state or not can be judged according to the first temperature and the first pressure. In a possible implementation manner, the step of determining, by the terminal device, whether the battery is in a high-temperature and high-pressure state according to the first temperature and the first pressure may include S21 to S29 shown in fig. 2, which is described in detail as follows:
s21: and judging whether the first temperature is greater than or equal to a first temperature threshold.
In one case of the present implementation, the terminal device performs S22 when the first temperature is less than the first temperature threshold.
In another case of the present implementation, the terminal device performs S27 when the first temperature is greater than or equal to the first temperature threshold.
S22: and if the first temperature is smaller than a first temperature threshold, judging whether the first temperature is larger than or equal to a second temperature threshold.
In one case of the present implementation, the terminal device performs S23 when the first temperature is less than the first temperature threshold and greater than or equal to the second temperature threshold.
In another case of the present implementation, the terminal device performs S24 when the first temperature is less than the second temperature threshold.
S23: and if the first temperature is greater than or equal to the second temperature threshold, judging whether the first voltage is greater than or equal to a first voltage threshold or judging whether the first electric quantity is greater than or equal to a first electric quantity threshold.
In one case of the present implementation, when the first temperature is less than the first temperature threshold and greater than or equal to the second temperature threshold, and the first voltage is greater than or equal to the first voltage threshold, the terminal device performs S25; or, when the first temperature is less than the first temperature threshold and greater than or equal to the second temperature threshold, and the first power is greater than or equal to the first power threshold, the terminal device performs S25.
In another case of the present implementation, the terminal device executes S26 when the first temperature is less than the first temperature threshold and greater than or equal to the second temperature threshold, and the first voltage is less than the first voltage threshold and the first power is less than the first power threshold.
S24: and if the first temperature is smaller than the second temperature threshold value, determining that the battery is not in a high-temperature high-pressure state.
S25: if the first temperature is smaller than the first temperature threshold and is larger than or equal to the second temperature threshold, and the first voltage is larger than or equal to the first voltage threshold, determining that the battery is in a high-temperature and high-pressure state; or if the first temperature is smaller than the first temperature threshold and larger than or equal to the second temperature threshold, and the first electric quantity is larger than or equal to the first electric quantity threshold, determining that the battery is in a high-temperature and high-pressure state.
S26: and if the first temperature is smaller than the first temperature threshold and larger than or equal to the second temperature threshold, the first voltage is smaller than the first voltage threshold and the first electric quantity is smaller than the first electric quantity threshold, determining that the battery is not in a high-temperature and high-pressure state.
S27: and if the first temperature is greater than or equal to the first temperature threshold, judging whether the first voltage is greater than or equal to a second voltage threshold or judging whether the first electric quantity is greater than or equal to a second electric quantity threshold.
In one case of the present implementation, when the first temperature is greater than or equal to the first temperature threshold and the first voltage is greater than or equal to the second voltage threshold, the terminal device performs S28; or, when the first temperature is greater than or equal to the first temperature threshold and the first power is greater than or equal to the second power threshold, the terminal device performs S28.
In another case of the present implementation, when the first temperature is greater than or equal to the first temperature threshold, and the first voltage is less than the second voltage threshold and the first power is less than the second power threshold, the terminal device performs S29.
S28: if the first temperature is greater than or equal to the first temperature threshold and the first voltage is greater than or equal to the second voltage threshold, determining that the battery is in a high-temperature and high-pressure state; or if the first temperature is greater than or equal to the first temperature threshold and the first electric quantity is greater than or equal to the second electric quantity threshold, determining that the battery is in a high-temperature and high-pressure state.
S29: and if the first temperature is greater than or equal to the first temperature threshold, the first voltage is less than the second voltage threshold, and the electric quantity is less than the second electric quantity threshold, determining that the battery is not in a high-temperature and high-pressure state.
It can be understood that fig. 2 illustrates the charge and discharge control method of the battery provided in the embodiment of the present application by taking a case that the terminal device determines the magnitude relation between the first temperature and the first temperature threshold, then determines the magnitude relation between the first temperature and the second temperature threshold, then determines the magnitude relation between the first pressure and the first pressure threshold, and finally determines the magnitude relation between the first pressure and the second pressure threshold as an example. In other embodiments of the present application, after the terminal device obtains the first temperature and the pressure, the terminal device may further determine a magnitude relation between the first temperature and the second temperature threshold, determine a magnitude relation between the first temperature and the first temperature threshold, and determine a magnitude relation between the first pressure and the first pressure threshold and the second pressure threshold, respectively; or the terminal device may determine the magnitude relation between the first pressure and the first and second pressure thresholds, respectively, and then determine the magnitude relation between the first temperature and the first and second temperature thresholds, respectively. The present embodiment does not make any limitation on the order between the first temperature judgment and the pressure judgment.
In this embodiment of the present application, the first battery charging policy is the current battery charging policy described above.
And the terminal equipment determines to execute a first battery charging strategy under the condition that the battery is not in a high-temperature and high-pressure state, and controls a charging module of the terminal equipment to charge the battery and supply power to the load according to the first battery charging strategy. Meanwhile, a charging current of the battery is set based on the voltage and temperature of the battery; and when the battery is fully charged, controlling the charging module to stop charging the battery and controlling the charging module to continuously supply power to the load.
S12: in the case that the battery is determined to be in a high-temperature and high-pressure state according to the first temperature and the first pressure, it is determined to execute a battery protection strategy.
As can be seen from fig. 2, in one embodiment of the present application, in a case where the first temperature is less than the first temperature threshold and greater than or equal to the second temperature threshold, and the first pressure is greater than or equal to the first pressure threshold, the terminal device determines that the battery is in a high-temperature and high-pressure state, and determines to execute the battery protection policy.
Specifically, under the condition that the first temperature is smaller than a first temperature threshold and is larger than or equal to a second temperature threshold, and the first voltage is larger than or equal to the first voltage threshold, the terminal equipment determines that the battery is in a high-temperature and high-pressure state, and determines to execute a battery protection strategy; or under the condition that the first temperature is smaller than the first temperature threshold and larger than or equal to the second temperature threshold, and the first electric quantity is larger than or equal to the first electric quantity threshold, the terminal equipment determines that the battery is in a high-temperature and high-pressure state, and determines to execute a battery protection strategy.
As can be seen from fig. 2, in another embodiment of the present application, in a case where the first temperature is greater than or equal to the first temperature threshold and the first pressure is greater than or equal to the second pressure threshold, the terminal device determines that the battery is in a high-temperature and high-pressure state, and determines to execute the battery protection policy.
Specifically, under the condition that the first temperature is greater than or equal to a first temperature threshold value and the first voltage is greater than or equal to a second voltage threshold value, the terminal equipment determines that the battery is in a high-temperature and high-pressure state and determines to execute a battery protection strategy; or under the condition that the first temperature is greater than or equal to a first temperature threshold value and the first electric quantity is greater than or equal to a second electric quantity threshold value, the terminal equipment determines that the battery is in a high-temperature and high-pressure state and determines to execute a battery protection strategy.
S13: and controlling a charging module of the terminal equipment to stop charging the battery and stopping supplying power to a load according to the battery protection strategy, and controlling the battery to supply power to the load.
In the embodiment of the application, when the terminal device determines to execute the battery protection policy, the charging module of the terminal device may be controlled to stop charging the battery and stopping supplying power to the load according to the battery protection policy, and the battery may be controlled to supply power to the load.
In one embodiment of the present application, as shown in fig. 3, the charging module 41 may include a charging control chip U1, a first switching circuit 401, and a second switching circuit 402. The controlled end of the first switch circuit 401 and the controlled end of the second switch circuit 402 are both connected with the charging control chip U1, the first end of the first switch circuit 401 is used for connecting with a charger, the second end of the first switch circuit 401 is used for connecting with a load, the first end of the second switch circuit 402 is used for connecting with a load, and the second end of the second switch circuit 402 is used for connecting with the positive electrode of the battery 142.
The charging control chip U1 is configured to control the switching states of the first switching circuit 401 and the second switching circuit 402; the switching state of the first switching circuit 401 is used to reflect the on-off of the first path between the charger and the load, and the switching state of the first switching circuit 401 and the switching state of the second switching circuit 402 are used to reflect the on-off of the second path between the charger and the battery 142 and the third path between the battery 142 and the load together.
Based on this, S13 may include:
the switching states of the first switching circuit 401 and the second switching circuit 402 are controlled by the charge control chip U1 to open the first path and the second path and to close the third path.
The controlling the charging module of the terminal device to charge the battery and supply power to the load according to the first battery charging policy may include:
the switching states of the first switching circuit 401 and the second switching circuit 402 are controlled by the charge control chip U1 to turn on the first path and the second path.
In another embodiment of the present application, as shown in fig. 4, the first switching circuit 401 includes a first switching tube Q1, a second switching tube Q2 and a third switching tube Q3, and the second switching circuit 402 includes a fourth switching tube Q4. The controlled ends of the first switch tube Q1, the second switch tube Q2, the third switch tube Q3 and the fourth switch tube Q4 are all connected to the charging control chip U1, the first conductive end of the first switch tube Q1 is used as the first end of the first switch circuit 401, the second conductive end of the first switch tube Q1 is connected to the first conductive end of the second switch tube Q2, the second conductive end of the second switch tube Q2 is connected to the first conductive end of the third switch tube Q3, the first conductive end of the third switch tube Q3 is used as the second end of the first switch circuit 401, the second conductive end of the third switch tube Q3 is grounded, the first conductive end of the fourth switch tube Q4 is used as the first end of the second switch circuit 402, and the second conductive end of the fourth switch tube Q4 is used as the second end of the second switch circuit 402.
By way of example and not limitation, the first, second, third and fourth switching transistors Q1, Q2, Q3 and Q4 may each be a metal-oxide-semiconductor field-effect transistor (MOSFET) effect transistor. Or, the first switching tube Q1, the second switching tube Q2, the third switching tube Q3 and the fourth switching tube Q4 may be transistors or other types of switching circuits, and the types of the first switching tube Q1, the second switching tube Q2, the third switching tube Q3 and the fourth switching tube Q4 are not limited in this embodiment.
Based on this, the step of controlling the switching states of the first switching circuit 401 and the second switching circuit 402 by the charge control chip U1 to disconnect the first path and the second path and to close the third path specifically includes:
the first switching tube Q1 is controlled to be conducted through the charging control chip U1, and the second switching tube Q2 and the third switching tube Q3 are controlled to be disconnected;
the fourth switching tube Q4 is controlled to be conducted through the charging control chip U1.
When the first switching tube Q1 is turned on and the second switching tube Q2 and the third switching tube Q3 are turned off, the first path and the second path are both turned off because the second switching tube Q2 and the third switching tube Q3 both present a high impedance state, and at this time, the charger stops supplying power to the load through the charging module 41; when the fourth switching tube Q4 is turned on, the third path is turned on, and the battery 142 supplies power to the load, that is, the battery 142 is in a discharge state.
The step of controlling the switching states of the first switching circuit 401 and the second switching circuit 402 by the charge control chip U1 to turn on the first path and the second path specifically includes:
the first switching tube Q1 and the fourth switching tube Q4 are controlled to be conducted through the charging control chip U1, the second switching tube Q2 and the third switching tube Q3 are controlled to be conducted alternately until the battery 142 is fully charged, the first switching tube Q1 is kept to be conducted continuously when the battery 142 is fully charged, the second switching tube Q2 and the third switching tube Q3 are kept to be conducted alternately, and the fourth switching tube Q4 is controlled to be disconnected.
It can be understood that, in this embodiment of the present application, two temperature thresholds, two power thresholds and two voltage thresholds are used as control thresholds, and in other embodiments, only one temperature threshold, one power threshold and one voltage threshold, or multiple temperature thresholds, multiple power thresholds and multiple voltage thresholds, or only one power threshold and one voltage threshold are used as pressure representation of battery electrical characteristics, where these thresholds are set to effectively avoid the battery from being in a high-temperature and high-pressure state for a long time, so as to avoid battery swelling, permanent loss of battery capacity and loss of cycle life of the battery. The number of thresholds is not limited in the embodiment of the present application, and the setting of the thresholds may be different according to different terminal devices and battery types.
As can be seen from the foregoing, in this embodiment, by acquiring the first temperature and the first pressure of the battery of the terminal device when the battery protection policy of the terminal device is determined to be executed according to the first temperature and the first pressure of the battery, the battery is illustrated to be in a high-temperature and high-pressure state, and then according to the battery protection policy, on one hand, the charging module of the terminal device is controlled to stop charging the battery and stop supplying power to the load to reduce the heat of the terminal device, and at the same time, the pressure of the battery is not increased any more; on the other hand, the pressure of the battery is released by controlling the battery to supply power to the load, so that the battery is prevented from being in a high-temperature and high-pressure state, the risk of battery swelling can be reduced, and the safety of the battery is improved; and the loss of the battery capacity can be slowed down, and the cycle life of the battery can be prolonged.
Referring to fig. 5, a schematic flow chart of a method for controlling charge and discharge of a battery according to a second embodiment of the present application is provided. The difference between the charge and discharge control method of the battery provided in this embodiment and the charge and discharge control method of the battery in the first embodiment is that in this embodiment, after S12, the charge and discharge control method further includes S10, which is described in detail below:
S10: outputting first prompt information; the first prompt message is used for prompting whether to allow the battery protection strategy to be started.
Based on this, S13 may include:
and if the operation indicating that the battery protection strategy is allowed to be started is detected, controlling a charging module of the terminal equipment to stop charging the battery and stopping supplying power to a load according to the battery protection strategy, and controlling the battery to supply power to the load.
In a specific implementation manner, the terminal device may display the first prompt information in a popup window on the display screen. For example, as shown in fig. 6, after determining to execute the battery protection policy according to the first temperature and the first pressure, the terminal device may pop up the first prompt window 61 on the display screen, so that the user may choose whether to allow the terminal device to start the battery protection policy according to the actual requirement. The first prompt window 61 may include a prompt information display frame 611, a first control 612, and a second control 613. The prompt information display box 611 is configured to display a first prompt information, for example, a prompt information of "whether to allow the battery protection policy to be opened" is displayed, the first control 612 is configured to allow the user to confirm that the terminal device is allowed to open the battery protection policy, and the second control 613 is configured to allow the user to confirm that the terminal device is not allowed to open the battery protection policy.
In one case of this implementation, after the terminal device pops up the first prompt window 61, if it is detected that the first control 612 is clicked, it is determined that an operation indicating that the battery protection policy is allowed to be started is detected, at this time, the terminal device controls the charging module to stop charging the battery and stopping supplying power to the load according to the battery protection policy, and controls the battery to supply power to the load.
In another case of this implementation, if the terminal device detects that the second control 613 is clicked, it determines that an operation indicating that the battery protection policy is not allowed to be started is detected, and at this time, the terminal device controls the charging module of the terminal device to charge the battery and supply power to the load according to the first battery charging policy.
In one possible implementation manner of this embodiment, when the terminal device determines to execute the battery protection policy according to the first temperature and the first pressure, the terminal device may directly output the first prompt information, that is, prompt the user before each step of executing the battery protection policy by the terminal device, and determine whether to execute the step of executing the battery protection policy currently based on the current selection of the user, so that the user has a selection permission for whether to execute the step of executing the battery protection policy by the terminal device each time, thereby improving the charging experience of the user.
In another possible implementation manner of this embodiment, the terminal device may provide a channel for the user to open or close the battery protection policy, so that the user may open or close the battery protection policy at any time. For example, as shown in fig. 7, a first switch control 701 for turning on or off a battery protection policy may be provided in the battery setting interface 70 of the terminal device. The user can turn on or off the battery protection policy by manipulating the first switch control 701 in the battery setting interface 70 of the terminal device.
Based on this, in this implementation, after determining to execute the battery protection policy according to the first temperature and the first pressure, the terminal device may detect the gear of the first switch control 701. In one case of the present implementation, in a case where the first switch control 701 is located in the on gear, the terminal device controls the charging module to stop charging the battery and stop supplying power to the load according to the battery protection policy, and controls the battery to supply power to the load. In another case of the present implementation, the terminal device outputs the first prompt information in the case where the first switch control 701 is located in the off gear.
The implementation mode provides a channel for opening or closing the battery protection strategy for the user, so that the user can open or close the battery protection strategy at any time according to actual requirements, and the user can conveniently select the charging mode of the terminal equipment; in addition, under the condition that the user opens the battery protection strategy through the channel, when the terminal equipment determines to execute the battery protection strategy, the terminal equipment does not need to output prompt information to acquire the authorization of the user, but directly executes the steps included in the battery protection strategy, so that the disturbance of the prompt information to the user is reduced.
In yet another embodiment of the present application, the terminal device may further provide a channel for the user to turn on or off the turn-on prompt function of the battery protection policy, so that the user may select whether to turn on the turn-on prompt function of the battery protection policy. Based on this, referring to fig. 5, after S13, the method for controlling charge and discharge of the battery may further include S14, which is described in detail below:
s14: outputting second prompt information if the opening prompt function of the battery protection strategy is detected to be in an opening state; the second prompting information is used for prompting the terminal equipment to be in a state of executing the battery protection strategy.
For example, as shown in fig. 7, a second switch control 702 for turning on or off an on prompt function of the battery protection policy may also be provided in the battery setting interface 70. The user may turn on or off the on prompt function of the battery protection policy by manipulating the second switch control 702 in the battery setup interface 70 of the terminal device.
Based on this, in one possible implementation manner, when detecting that the second switch control 702 is located at the on gear, the terminal device determines that the on prompt function of the battery protection policy is in an on state, and at this time, the terminal device outputs the second prompt information to prompt the user that the terminal device is currently in a state of executing the battery protection policy, so that the battery cannot be fully charged.
In another possible implementation, the terminal device determines that the on-alert function of the battery protection policy is in an off state when detecting that the second switch control 702 is in an off gear, at which point the terminal device may not output any information.
Optionally, the terminal device may display the second prompt information on the display screen in a pop-up window form. For example, as shown in fig. 8, when the terminal device determines that the on prompt function of the battery protection policy is in the on state, a second prompt window 81 may be popped up on the display screen, and a second prompt message may be displayed in the second prompt window 81, for example, a prompt message of "currently in a state of executing the battery protection policy, which may cause the battery to be unable to be fully charged" is displayed.
Optionally, the terminal device may further output the second prompt information by using a voice prompt manner.
As can be seen from the above, when the on prompt function of the battery protection policy is detected to be in the on state, the embodiment prompts the user terminal device to be currently in the state of executing the battery protection policy by outputting the second prompt information, so that the battery cannot be fully charged, and the user can know the charging condition of the battery.
Referring to fig. 9, a schematic flow chart of a method for controlling charge and discharge of a battery according to a third embodiment of the present application is provided. The difference between the charge and discharge control method of the battery provided in this embodiment and the charge and discharge control method of the battery in the first embodiment or the second embodiment is that the charge and discharge control method of this embodiment further includes S15 to S17 after S13, and the detailed description is as follows:
s15: a second temperature and a second pressure of the battery are obtained.
S16: and if the battery protection strategy is determined to be exited according to the second temperature and the second pressure, stopping executing the battery protection strategy, and executing a first battery charging strategy.
In this embodiment, when the terminal device determines that the battery is not in the high-temperature and high-pressure state according to the second temperature and the second pressure, the terminal device determines to exit the battery protection policy, and at this time, the terminal device stops executing the battery protection policy and executes the first battery charging policy.
Wherein, the battery is not in a high-temperature and high-pressure state, and the following situations can be included:
case a: the second temperature is less than a second temperature threshold.
Case B: the second temperature is less than the first temperature threshold and greater than or equal to the second temperature threshold, and the second pressure is less than the first pressure threshold.
Case C: the second temperature is greater than or equal to the first temperature threshold and the second pressure is less than the second pressure threshold.
Alternatively, the second pressure of the battery may be described by a second voltage or a second amount of power of the battery.
Based on this, the second pressure in the above case B being less than the first pressure threshold may include: the second voltage is less than the first voltage threshold and the second power is less than the first power threshold.
The second pressure in the above case C being less than the second pressure threshold may include: the second voltage is less than the second voltage threshold and the second power is less than the second power threshold.
That is, the terminal device determines to exit the battery retention policy when the second temperature is less than the second temperature threshold.
Or when the second temperature is smaller than the first temperature threshold and larger than or equal to the second temperature threshold, and the second voltage is smaller than the first voltage threshold and the second electric quantity is smaller than the first electric quantity threshold, the terminal equipment determines to exit the battery holding strategy.
Or when the second temperature is greater than or equal to the first temperature threshold, the second voltage is less than the second voltage threshold, and the second electric quantity is less than the second electric quantity threshold, the terminal equipment determines to exit the battery holding strategy.
S17: and if the operation indicating to stop the battery protection strategy is detected, stopping executing the battery protection strategy and executing a first battery charging strategy.
In this embodiment, when the terminal device is in a state of executing the battery protection policy, the user may control the terminal device to stop executing the battery protection policy according to the actual requirement. For example, when the terminal device stops running a high power application, or when the user removes the terminal device from a place where the ambient temperature is high (e.g., where direct sunlight is incident), or when the user wants to fully charge the battery, the user may control the terminal device to stop executing the battery protection policy.
Illustratively, the user may control the terminal device to cease executing the battery protection policy by placing the second switch control 702 in the battery setup interface 70 in a closed gear. Based on this, when the terminal device is in a state of executing the battery protection policy, if it is detected that the second switch control 702 in the battery setting interface 70 is shifted from the on gear to the off gear, it is determined that an operation indicating to stop the battery protection policy is detected, and at this time, the terminal device stops executing the battery protection policy and executes the first battery charging policy.
As can be seen from the above, in this embodiment, by acquiring the second temperature and the second pressure of the battery during the process of executing the battery protection policy by the terminal device, when determining to exit the battery protection policy according to the second temperature and the second pressure, it is indicated that the battery is not in a high-temperature and high-pressure state, at this time, execution of the battery protection policy is stopped, and the first battery charging policy is executed; or stopping executing the battery protection strategy and executing the first battery charging strategy when detecting the operation of stopping the battery protection strategy, so that the charger can normally charge the battery and supply power to the load when the battery is not in a high-temperature and high-pressure state or when receiving the instruction of a user.
The battery charge and discharge control method provided by the embodiment of the application can be applied to terminal equipment such as mobile phones, tablet computers, wearable equipment (such as intelligent watches, intelligent bracelets, intelligent glasses or intelligent jewelry, and the like), vehicle-mounted equipment, augmented Reality (AR) equipment, virtual Reality (VR) equipment, notebook computers, ultra-mobilepersonal computer, UMPC (unified personal computer), netbooks or personal digital assistants (personal digitalassistant, PDA), and the specific type of the terminal equipment is not limited.
Exemplary, as shown in fig. 10, a schematic structural diagram of a terminal device provided in an embodiment of the present application is shown. The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serialbus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, a sensor module 150, keys 160, an indicator 170, and a display 180, etc. It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, terminal device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The sensor module 150 may include, among other things, a pressure sensor 150A, a temperature sensor 150B, a voltage sensor 150C, a charge metering sensor 150D, a touch sensor 150E, etc.
The processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a graphics processor (graphicsprocessing unit, GPU), an image signal processor (image signalprocessor, ISP), a controller, a video codec, a digital signal processor (digitalsignal processor, DSP), a baseband processor, and/or a neural network processor (neural-networkprocessing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
Among them, the controller may be a neural center and a command center of the mobile terminal 100. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (I2C) interface, a mobile industry processor interface (mobile industryprocessor interface, MIPI), a general-purpose input/output (GPIO) interface, a SIM interface, and/or a USB interface, among others.
The I2C interface is a bidirectional synchronous serial bus, which includes a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 150E, charger, flash, camera, etc., respectively, through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 150E through an I2C interface, so that the processor 110 and the touch sensor 150E communicate through an I2C bus interface to implement a touch function of the terminal device 100.
The MIPI interface may be used to connect processor 110 to peripheral devices such as a display 180, a camera, and the like. The MIPI interfaces include camera serial interfaces (camera serialinterface, CSI), display serial interfaces (display serialinterface, DSI), and the like. In some embodiments, the processor 110 and the camera communicate through a CSI interface to implement a photographing function of the terminal device 100. The processor 110 and the display 180 communicate through a DSI interface to realize the display function of the terminal device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera, display 180, sensor module 150, and the like.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the terminal device 100, or may be used to transfer data between the terminal device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other terminal devices, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and does not constitute a structural limitation of the terminal device 100. In other embodiments of the present application, the terminal device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the terminal device 100. The charging management module 140 may also supply power to the terminal device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the display 180, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The terminal device 100 implements a display function through a GPU, a display screen 180, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 180 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display 180 is used to display images, videos, and the like. The display 180 includes a display panel. The display panel may employ a liquid crystal display (liquidcrystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrixorganic light emitting diode), a flexible light-emitting diode (FLED), a mini, a Micro-OLED, a quantum dot light-emitting diode (quantum dotlight emitting diodes, QLED), or the like. In some embodiments, terminal device 100 may include 1 or N displays 180, N being a positive integer greater than 1.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to realize expansion of the memory capability of the terminal device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data (such as audio data, phonebook, etc.) created during use of the terminal device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universalflash storage, UFS), and the like. The processor 110 performs various functional applications of the terminal device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The pressure sensor 150A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 150A may be disposed on display 180. The pressure sensor 150A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. When a force is applied to the pressure sensor 150A, the capacitance between the electrodes changes. The terminal device 100 determines the intensity of the pressure according to the change of the capacitance. When a touch operation is applied to the display 180, the terminal device 100 detects the intensity of the touch operation according to the pressure sensor 150A. The terminal device 100 may also calculate the position of the touch from the detection signal of the pressure sensor 150A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The temperature sensor 150B may be used to detect the temperature of the battery 142.
The voltage sensor 150C may be used to detect the voltage of the battery 142.
The charge metering sensor 150D may be used to detect the charge of the battery 142.
The touch sensor 150E, also referred to as a "touch device". The touch sensor 150E may be disposed on the display screen 180, and the touch sensor 150E and the display screen 180 form a touch screen, which is also referred to as a "touch screen". The touch sensor 150E is used to detect a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 180. In other embodiments, the touch sensor 150E may also be disposed on the surface of the terminal device 100 at a different location than the display 180.
The keys 160 include a power-on key, a volume key, etc. The key 160 may be a mechanical key. Or may be a touch key. The terminal device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the terminal device 100.
The indicator 170 may be an indicator light, which may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
It should be understood that, as the terminal device, the mobile phone may include all the hardware structures described above, or include some of the hardware structures above, or have other hardware structures not listed above, which is not limited in this embodiment of the present application.
It should also be understood that, as the terminal device, the mobile phone may employ a layered architecture, a hong Mongolian system (Harmony OS) architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
The above description describes possible hardware structures of the mobile phone, and the Android system with a layered architecture of the mobile phone will be taken as an example. Fig. 11 is a schematic software structure of a terminal device 100 according to an embodiment of the present application. As shown in fig. 11, the hierarchical architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface.
In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android running time) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages. As shown in fig. 11, the application package may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, etc.
The application framework layer provides an application programming interface (applicationprogramming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions. As shown in fig. 11, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire 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 such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, 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, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide the communication functions of the terminal device 100. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in the status bar, can be used to communicate notification types, and can automatically disappear after a short dwell without user interaction. Such as a notification manager, is used to notify of the completion of the download, notify of a reminder, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, 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, a text message is prompted in a status bar, a prompt tone is emitted, the terminal equipment vibrates, and an indicator light blinks.
AndroidRuntime includes a core library and virtual machines. Android system is responsible for scheduling and management of android systems.
The core library consists of 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. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surfacemanager), media library (MediaLibraries), three-dimensional graphics processing library (e.g., openGLES), 2D graphics engine (e.g., SGL), etc. The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and 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, image 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.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein again.
The embodiment of the application also provides a battery charge and discharge control device. Referring to fig. 12, a schematic block diagram of a battery charge/discharge control device according to an embodiment of the present application is shown. As shown in fig. 12, the battery charge/discharge control device 120 includes a first acquisition unit 1201, a first determination unit 1202, and a charge/discharge control unit 1203. Wherein:
the first obtaining unit 1201 is configured to obtain a first temperature and a first pressure of a battery of a terminal device in a state of charge of the terminal device.
The first determining unit 1202 is configured to determine to execute a battery protection policy of the terminal device according to the first temperature and the first pressure.
The charge-discharge control unit 1203 is configured to control the charging module of the terminal device to stop charging the battery and stopping supplying power to the load according to the battery protection policy, and control the battery to supply power to the load.
Optionally, the first determining unit 1202 is specifically configured to determine to execute the battery protection policy of the terminal device if the first temperature is less than a first temperature threshold and greater than or equal to a second temperature threshold, and the first pressure is greater than or equal to a first pressure threshold.
Optionally, the first determining unit 1202 is specifically configured to determine to execute the battery protection policy of the terminal device if the first temperature is greater than or equal to a first temperature threshold and the first pressure is greater than or equal to a second pressure threshold; the second pressure threshold is less than the first pressure threshold.
Optionally, the charge-discharge control device 120 further includes a first output unit;
the first output unit is used for outputting first prompt information; the first prompt message is used for prompting whether the battery protection strategy is allowed to be started or not;
the charge-discharge control unit 1203 is specifically configured to, if an operation indicating that the battery protection policy is allowed to be started is detected, control, according to the battery protection policy, a charging module of the terminal device to stop charging the battery and stopping supplying power to a load, and control the battery to supply power to the load.
Optionally, the charge-discharge control device 120 further includes a second output unit;
the second output unit is used for outputting second prompt information if the opening prompt function of the battery protection strategy is detected to be in an opening state; the second prompting information is used for prompting the terminal equipment to be in a state of executing the battery protection strategy.
Optionally, the charge-discharge control device 120 further includes a second acquisition unit;
a second acquisition unit for acquiring a second temperature and a second pressure of the battery;
the charge-discharge control unit 1203 is further configured to stop executing the battery protection policy and execute a first battery charging policy if it is determined to exit the battery protection policy according to the second temperature and the second pressure;
Or if the operation of stopping the battery protection strategy is detected, stopping executing the battery protection strategy and executing a first battery charging strategy;
the first battery charging strategy includes: the charging module is controlled to charge the battery and supply power to the load.
Optionally, if it is determined that the battery protection policy is exited according to the second temperature and the second pressure, stopping executing the battery protection policy includes:
if the second temperature is smaller than a second temperature threshold value, determining to exit the battery protection strategy, and stopping executing the battery protection strategy;
or if the second temperature is less than the first temperature threshold and greater than or equal to the second temperature threshold and the second pressure is less than the first pressure threshold, determining to exit the battery protection strategy and stopping executing the battery protection strategy;
or if the second temperature is greater than or equal to the first temperature threshold and the second pressure is less than the second pressure threshold, determining to exit the battery protection strategy and stopping executing the battery protection strategy.
Optionally, the charging module includes a charging control chip, a first switch circuit and a second switch circuit; the controlled end of the first switch circuit and the controlled end of the second switch circuit are both connected with the charging control chip, the first end of the first switch circuit is used for being connected with a charger, the second end of the first switch circuit is used for being connected with the load, the first end of the second switch circuit is used for being connected with the load, and the second end of the second switch circuit is used for being connected with the anode of the battery;
The charging control chip is used for controlling the switching states of the first switching circuit and the second switching circuit, the switching states of the first switching circuit are used for reflecting the on-off of a first passage between the charger and the load, and the switching states of the first switching circuit and the second switching circuit are used for jointly reflecting the on-off of a second passage between the charger and the battery and a third passage between the battery and the load;
the charge-discharge control unit 1203 is specifically configured to control the switching states of the first switching circuit and the second switching circuit through the charge control chip, so as to disconnect the first path and the second path, and connect the third path.
Optionally, the first switching circuit includes a first switching tube, a second switching tube and a third switching tube, and the second switching circuit includes a fourth switching tube; the controlled ends of the first switch tube, the second switch tube, the third switch tube and the fourth switch tube are all connected with the charging control chip, the first conducting end of the first switch tube is used as the first end of the first switch circuit, the second conducting end of the first switch tube is connected with the first conducting end of the second switch tube, the second conducting end of the second switch tube is connected with the first conducting end of the third switch tube, the first conducting end of the third switch tube is used as the second end of the first switch circuit, the second conducting end of the third switch tube is grounded, the first conducting end of the fourth switch tube is used as the first end of the second switch circuit, and the second conducting end of the fourth switch tube is used as the second end of the second switch circuit;
The charge and discharge control unit 1203 specifically functions to:
the first switching tube is controlled to be conducted through the charging control chip, and the second switching tube and the third switching tube are controlled to be disconnected; when the first switching tube is switched on and the second switching tube and the third switching tube are both switched off, the first passage and the second passage are both switched off;
the fourth switching tube is controlled to be conducted through the charging control chip; and when the fourth switching tube is conducted, the third channel is connected.
It should be noted that, because the content of information interaction between the above units, execution process, and the like is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to the method embodiment specifically, and will not be described herein again.
The embodiments of the present application also provide a computer readable storage medium storing a computer program, where the computer program can implement the steps in the above-mentioned method embodiments when executed by a processor.
The embodiments of the present application also provide a computer program product for causing a terminal device to perform the steps of the respective method embodiments described above when the computer program product is run on the terminal device.
Embodiments of the present application also provide a chip system including a processor coupled with a memory, the processor executing a computer program stored in the memory to implement the steps of the method embodiments described above. The chip system can be a single chip or a chip module formed by a plurality of chips.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments. It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
Finally, it should be noted that: the foregoing is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. A charge and discharge control method of a battery, applied to a terminal device, comprising:
acquiring a first temperature and a first pressure of a battery of the terminal equipment when the terminal equipment is in a charging state;
determining to execute a battery protection strategy of the terminal equipment according to the first temperature and the first pressure;
according to the battery protection strategy, controlling a charging module of the terminal equipment to stop charging the battery and stopping supplying power to a load, and controlling the battery to supply power to the load;
the charging module comprises a charging control chip, a first switch circuit and a second switch circuit; the controlled end of the first switch circuit and the controlled end of the second switch circuit are both connected with the charging control chip, the first end of the first switch circuit is used for being connected with a charger, the second end of the first switch circuit is used for being connected with the load, the first end of the second switch circuit is used for being connected with the load, and the second end of the second switch circuit is used for being connected with the anode of the battery;
the charging control chip is used for controlling the switching states of the first switching circuit and the second switching circuit, the switching states of the first switching circuit are used for reflecting the on-off of a first passage between the charger and the load, and the switching states of the first switching circuit and the second switching circuit are used for jointly reflecting the on-off of a second passage between the charger and the battery and a third passage between the battery and the load;
The controlling, according to the battery protection policy, the charging module of the terminal device to stop charging the battery and stopping supplying power to a load, and controlling the battery to supply power to the load includes:
and controlling the switching states of the first switching circuit and the second switching circuit through the charging control chip so as to disconnect the first passage and the second passage and connect the third passage.
2. The charge-discharge control method according to claim 1, wherein the determining to execute the battery protection strategy of the terminal device according to the first temperature and the first pressure includes:
and if the first temperature is smaller than a first temperature threshold and larger than or equal to a second temperature threshold, and the first pressure is larger than or equal to a first pressure threshold, determining to execute the battery protection strategy of the terminal equipment.
3. The charge-discharge control method according to claim 1, wherein the determining to execute the battery protection strategy of the terminal device according to the first temperature and the first pressure includes:
if the first temperature is greater than or equal to a first temperature threshold and the first pressure is greater than or equal to a second pressure threshold, determining to execute a battery protection strategy of the terminal equipment; the second pressure threshold is less than the first pressure threshold.
4. The charge-discharge control method according to any one of claims 1 to 3, characterized in that, after determining to execute the battery protection strategy of the terminal device according to the first temperature and the first pressure, the charge-discharge control method further comprises:
outputting first prompt information; the first prompt message is used for prompting whether the battery protection strategy is allowed to be started or not;
the controlling, according to the battery protection policy, the charging module of the terminal device to stop charging the battery and stopping supplying power to a load, and controlling the battery to supply power to the load includes:
and if the operation indicating that the battery protection strategy is allowed to be started is detected, controlling a charging module of the terminal equipment to stop charging the battery and stopping supplying power to a load according to the battery protection strategy, and controlling the battery to supply power to the load.
5. A charge-discharge control method according to any one of claims 1 to 3, wherein after the charging module of the terminal device is controlled to stop charging the battery and stopping supplying power to a load according to the battery protection policy, and the battery is controlled to supply power to the load, the charge-discharge control method further comprises:
Outputting second prompt information if the opening prompt function of the battery protection strategy is detected to be in an opening state; the second prompting information is used for prompting the terminal equipment to be in a state of executing the battery protection strategy.
6. A charge and discharge control method according to any one of claims 2 or 3, wherein after the charging module of the terminal device is controlled to stop charging the battery and stopping supplying power to a load according to the battery protection policy, and the battery is controlled to supply power to the load, the charge and discharge control method further comprises:
acquiring a second temperature and a second pressure of the battery;
if the battery protection strategy is determined to be exited according to the second temperature and the second pressure, stopping executing the battery protection strategy and executing a first battery charging strategy;
or if the operation of stopping the battery protection strategy is detected, stopping executing the battery protection strategy and executing a first battery charging strategy;
the first battery charging strategy includes: the charging module is controlled to charge the battery and supply power to the load.
7. The charge-discharge control method according to claim 6, wherein stopping execution of the battery protection strategy if it is determined to exit the battery protection strategy based on the second temperature and the second pressure, comprises:
If the second temperature is smaller than a second temperature threshold value, determining to exit the battery protection strategy, and stopping executing the battery protection strategy;
or if the second temperature is less than the first temperature threshold and greater than or equal to the second temperature threshold and the second pressure is less than the first pressure threshold, determining to exit the battery protection strategy and stopping executing the battery protection strategy;
or if the second temperature is greater than or equal to the first temperature threshold and the second pressure is less than the second pressure threshold, determining to exit the battery protection strategy and stopping executing the battery protection strategy.
8. The charge-discharge control method according to any one of claims 1 to 3, wherein the first switching circuit includes a first switching tube, a second switching tube, and a third switching tube, and the second switching circuit includes a fourth switching tube; the controlled ends of the first switch tube, the second switch tube, the third switch tube and the fourth switch tube are all connected with the charging control chip, the first conducting end of the first switch tube is used as the first end of the first switch circuit, the second conducting end of the first switch tube is connected with the first conducting end of the second switch tube, the second conducting end of the second switch tube is connected with the first conducting end of the third switch tube, the first conducting end of the third switch tube is used as the second end of the first switch circuit, the second conducting end of the third switch tube is grounded, the first conducting end of the fourth switch tube is used as the first end of the second switch circuit, and the second conducting end of the fourth switch tube is used as the second end of the second switch circuit;
The controlling, by the charge control chip, the switching states of the first switching circuit and the second switching circuit to disconnect the first path and the second path and to connect the third path includes:
the first switching tube is controlled to be conducted through the charging control chip, and the second switching tube and the third switching tube are controlled to be disconnected; when the first switching tube is switched on and the second switching tube and the third switching tube are both switched off, the first passage and the second passage are both switched off;
the fourth switching tube is controlled to be conducted through the charging control chip; and when the fourth switching tube is conducted, the third channel is connected.
9. A charge and discharge control device for a battery, applied to a terminal device, comprising:
a first obtaining unit, configured to obtain a first temperature and a first pressure of a battery of the terminal device when the terminal device is in a charging state;
a first determining unit configured to determine to execute a battery protection policy of the terminal device according to the first temperature and the first pressure;
the charging and discharging control unit is used for controlling the charging module of the terminal equipment to stop charging the battery and stopping supplying power to a load according to the battery protection strategy, and controlling the battery to supply power to the load;
The charging module comprises a charging control chip, a first switch circuit and a second switch circuit; the controlled end of the first switch circuit and the controlled end of the second switch circuit are both connected with the charging control chip, the first end of the first switch circuit is used for being connected with a charger, the second end of the first switch circuit is used for being connected with the load, the first end of the second switch circuit is used for being connected with the load, and the second end of the second switch circuit is used for being connected with the anode of the battery;
the charging control chip is used for controlling the switching states of the first switching circuit and the second switching circuit, the switching states of the first switching circuit are used for reflecting the on-off of a first passage between the charger and the load, and the switching states of the first switching circuit and the second switching circuit are used for jointly reflecting the on-off of a second passage between the charger and the battery and a third passage between the battery and the load;
the charging and discharging control unit is specifically configured to control the switching states of the first switching circuit and the second switching circuit through the charging control chip, so as to disconnect the first path and the second path, and connect the third path.
10. A terminal device comprising a battery and the charge-discharge control apparatus according to claim 9, the battery being connected to the charge-discharge control apparatus.
11. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the charge-discharge control method according to any one of claims 1 to 8.
CN202210191426.4A 2022-01-04 2022-02-28 Battery charge and discharge control method and device, terminal equipment and storage medium Active CN115549231B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210007742 2022-01-04
CN2022100077421 2022-01-04

Publications (2)

Publication Number Publication Date
CN115549231A CN115549231A (en) 2022-12-30
CN115549231B true CN115549231B (en) 2023-06-02

Family

ID=84724089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210191426.4A Active CN115549231B (en) 2022-01-04 2022-02-28 Battery charge and discharge control method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115549231B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113156244A (en) * 2021-04-12 2021-07-23 Oppo广东移动通信有限公司 Method and device for testing charging device, electronic device and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106787026B (en) * 2014-01-28 2019-05-10 Oppo广东移动通信有限公司 Charge mode switching circuit and method
US10547195B2 (en) * 2016-02-17 2020-01-28 Toyota Motor Europe Systems and methods for battery charge control
CN109755987B (en) * 2017-11-08 2021-08-27 南京德朔实业有限公司 Battery charging method, battery charger and charging combination

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113156244A (en) * 2021-04-12 2021-07-23 Oppo广东移动通信有限公司 Method and device for testing charging device, electronic device and storage medium

Also Published As

Publication number Publication date
CN115549231A (en) 2022-12-30

Similar Documents

Publication Publication Date Title
KR102158288B1 (en) Method for charging battery and an electronic device thereof
CN105630726B (en) The binary channels mobile terminal of multiplexing USB port
US20160064958A1 (en) Method and apparatus for battery charging
JP7016881B2 (en) Reverse charging device, reverse charging current adjustment method and device
CN103631359A (en) Information processing method and electronic equipment
CN112165140B (en) Charging and discharging control method and device and power supply equipment
CN114816167B (en) Application icon display method, electronic device and readable storage medium
CN103248763A (en) Communication method and mobile terminal
CN110515688A (en) Page display method, device, terminal and storage medium
EP4373062A1 (en) Display method, electronic device, and storage medium
CN106598448A (en) Input method management method and terminal
CN102402411B (en) A kind of computing machine, auxiliary display device and method for information display
CN115642674A (en) Charging control method and device and electronic equipment
KR101659018B1 (en) Mobile terminal and control method thereof
CN115549231B (en) Battery charge and discharge control method and device, terminal equipment and storage medium
CN109256825B (en) Charging method and electronic device
KR20110004618A (en) Mobile terminal with multi battery
CN103762390B (en) Charging method and action electronic device
KR20140024565A (en) Dispaly device and wireless charging method using display device
JP2004159382A (en) Electronic apparatus
CN106055365B (en) A kind of closing application program method and apparatus
CN113451669A (en) Charging method and device, electronic device and storage medium
CN111381996A (en) Memory exception handling method and device
US11507160B2 (en) Device charger with accessory bays
CN115441526A (en) Charging control method and device, electronic equipment and computer readable storage medium

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