CN115441526A - Charging control method and device, electronic equipment and computer readable storage medium - Google Patents

Charging control method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN115441526A
CN115441526A CN202110624335.0A CN202110624335A CN115441526A CN 115441526 A CN115441526 A CN 115441526A CN 202110624335 A CN202110624335 A CN 202110624335A CN 115441526 A CN115441526 A CN 115441526A
Authority
CN
China
Prior art keywords
battery
charging
voltage
electronic equipment
electronic device
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.)
Pending
Application number
CN202110624335.0A
Other languages
Chinese (zh)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110624335.0A priority Critical patent/CN115441526A/en
Publication of CN115441526A publication Critical patent/CN115441526A/en
Pending legal-status Critical Current

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/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/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
    • H02J7/0032Circuit 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 disconnection of loads if battery is not under charge, e.g. in vehicle if engine is not running

Landscapes

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

Abstract

The embodiment of the application discloses a charging control method and device, electronic equipment and a computer readable storage medium. The method is applied to the electronic equipment and comprises the following steps: when the electronic equipment is in a charging state, if the condition that a battery of the electronic equipment meets a charging stop condition is detected, the battery is stopped to be charged; if the battery voltage of the battery is larger than a first voltage threshold, determining the screen state of the electronic equipment; and if the screen state is a bright screen state, disconnecting the power supply connection between the electronic equipment and the charging device so as to enable the charging device to stop supplying power to the electronic equipment. The charging control method, the charging control device, the electronic equipment and the computer readable storage medium can avoid the situation that the display screen flickers under the condition that the electronic equipment is connected into the charging device.

Description

Charging control method and device, electronic equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a charging control method and apparatus, an electronic device, and a computer-readable storage medium.
Background
Electronic equipment's such as cell-phone, intelligent wearing equipment normal use all relies on internal battery to supply power to it, and the charging technology development also more and more tends to maturity. At present, under the condition that electronic equipment with a display screen is connected into a charging device for charging, ripple waves occur in the power supply voltage of a backlight plate of the display screen when a battery stops charging, and therefore the condition of screen flashing of the display screen is caused.
Disclosure of Invention
The embodiment of the application discloses a charging control method and device, electronic equipment and a computer readable storage medium, which can avoid the situation that a display screen flashes under the condition that the electronic equipment is connected into a charging device.
The embodiment of the application discloses a charging control method, which is applied to electronic equipment and comprises the following steps:
when the electronic equipment is in a charging state, if the condition that a battery of the electronic equipment meets a charging stop condition is detected, the battery is stopped to be charged;
if the battery voltage of the battery is larger than a first voltage threshold, determining the screen state of the electronic equipment;
and if the screen state is a bright screen state, disconnecting the power supply connection between the electronic equipment and the charging device so as to enable the charging device to stop supplying power to the electronic equipment.
The embodiment of the application discloses charge control device is applied to electronic equipment, the device includes:
the charging control module is used for stopping charging the battery of the electronic equipment if the battery of the electronic equipment is detected to meet the charging stopping condition when the electronic equipment is in a charging state;
the screen state determining module is used for determining the screen state of the electronic equipment if the battery voltage of the battery is greater than a first voltage threshold;
and the connection control module is used for disconnecting the power supply connection between the electronic equipment and the charging device if the screen state is a bright screen state, so that the charging device stops supplying power to the electronic equipment.
The embodiment of the application discloses an electronic device, which comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor is enabled to realize the method.
An embodiment of the present application discloses a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the method as described above.
According to the charging control method, the charging control device, the electronic equipment and the computer-readable storage medium, when the electronic equipment is in a charging state, if it is detected that a battery of the electronic equipment meets a charging stop condition, the battery is stopped from being charged, if the battery voltage of the battery is greater than a first voltage threshold value, the current screen state of the electronic equipment is determined, if the screen state is a bright screen state, power supply connection between the electronic equipment and the charging device is disconnected, so that the charging device stops supplying power to the electronic equipment, and under the condition that the battery stops charging and the battery voltage of the battery is greater than the first voltage threshold value, the power supply connection between the electronic equipment and the charging device can be disconnected, so that the power supply voltage of the display screen in the bright screen state is the battery voltage, ripples of the power supply voltage of a backlight plate of the display screen cannot occur, and therefore the situation that the display screen flickers occur when the electronic equipment is connected to the charging device can be avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the description of the embodiments and the prior art will be briefly described below, and it is obvious that the drawings in the description below are only some embodiments of the present application, and other drawings can be obtained according to the drawings.
Fig. 1 is a diagram illustrating an application scenario of a charging control method according to an embodiment;
FIG. 2 is a flow diagram of a charge control method in one embodiment;
FIG. 3 is a flow chart of a charge control method in another embodiment;
FIG. 4 is a flow diagram for displaying power in an interface in one embodiment;
FIG. 5 is a diagram illustrating a remaining battery capacity of a battery in an interface according to an embodiment;
FIG. 6 is a block diagram of a charge control device in one embodiment;
FIG. 7 is a block diagram of an electronic device in one embodiment.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It is to be noted that the terms "comprises" and "comprising" and any variations thereof in the examples and figures of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first voltage threshold may be referred to as a second voltage threshold, and similarly, a second voltage threshold may be referred to as a first voltage threshold, without departing from the scope of the present application. The first voltage threshold and the second voltage threshold are both voltage thresholds, but they are not the same voltage threshold.
Fig. 1 is a diagram illustrating an application scenario of the charging control method according to an embodiment. As shown in fig. 1, the electronic device 20 may access the charging apparatus 10, and the charging apparatus 10 may provide a charging electrical signal to the electronic device 20, where the charging electrical signal may include a charging voltage and/or a charging current, so as to implement a function of charging a battery in the electronic device 20. The electronic device 20 may include, but is not limited to, a mobile phone, a smart wearable device, a tablet, a laptop, a portable digital device, and the like, the charging device 10 may include a power adapter, a mobile power source, and the like, and the charging device 10 may provide power to the electronic device 20 in a wireless or wired manner. The embodiment of the present application does not limit the specific charging device 10, the electronic device 20, and the power supply method of the charging device 10 to the electronic device 20.
In the related art, when the supply voltage of the backlight panel of the display screen of the electronic device 20 is within a certain voltage range (e.g., 4.45V to 4.49V (volt)), the backlight panel is triggered to switch the working modes, and after the working modes of the backlight panel of the display screen are switched, the supply voltage has ripples, which causes a screen flicker phenomenon on the display screen. When the electronic device 20 is in a charging state, the supply voltage of the backlight panel of the display screen is equal to the charging voltage, and the charging voltage is generally smaller than the voltage range, so that the backlight panel of the display screen is not triggered to switch the working mode.
When the battery in the electronic device 20 stops charging (for example, the battery is fully charged), if the electronic device 20 is still connected to the charging device 10, the charging device 10 will continue to supply power to the motherboard of the electronic device, and at this time, the supply voltage of the backlight panel of the display screen is the sum of the battery voltage and a voltage provided by the charging device 10. Since the battery voltage is usually 4.40-4.42V when the battery is fully charged, and a voltage provided by the charging device 10 is about 25mV (millivolts) to 115mV, the voltage range of the power supply voltage of the backlight panel of the display screen is 4.425V to 4.535V, which triggers the backlight panel of the display screen to switch the operation mode, thereby causing the display screen to have a "flash" condition.
In the embodiment of the present application, when the electronic device 20 is in a charging state, if it is detected that a battery of the electronic device 20 satisfies a charging stop condition, the charging of the battery is stopped, and if a battery voltage of the battery is greater than a first voltage threshold, a current screen state of the electronic device 20 is determined. If the screen state is a bright screen state, the power supply connection between the electronic device 20 and the charging device 10 is disconnected, and the charging device 10 stops supplying power to the electronic device 20, so that the power supply voltage of the backlight panel of the display screen of the electronic device 20 is battery voltage and is not in the voltage range for triggering the switching of the working modes, and therefore the backlight panel of the display screen cannot be triggered to switch the working modes, the power supply voltage of the backlight panel of the display screen cannot be subjected to ripple waves, and the situation that the display screen is turned on due to the fact that the electronic device 20 is connected into the charging device 10 can be avoided.
As shown in fig. 2, in one embodiment, a charging control method is provided, which is applicable to the electronic device described above, and the method may include the following steps:
step 210, when the electronic device is in a charging state, if it is detected that the battery of the electronic device satisfies the charging stop condition, stopping charging the battery.
The electronic device is connected to the charging device, and may refer to a device capable of performing a signal between the electronic device and the charging device, for example, the charging device may send an electrical signal to the electronic device, or the electronic device may send a communication signal to the charging device. The electronic device may be connected to the charging device wirelessly or in a wired manner, for example, the electronic device may be connected to a charging line through a USB (Universal Serial Bus) interface, and connected to the charging device through the charging line.
When the electronic device is connected to the charging device, if the battery of the electronic device is in a state of insufficient power, the charging device can charge the battery of the electronic device, and the state of charge of the electronic device means that the battery in the electronic device is in a charged state. The charging of the battery may be stopped when the electronic device detects that the battery satisfies a stop charging condition. Specifically, stopping charging the battery may be disconnecting the battery from a PMIC (Power Management IC).
In some embodiments, the charging stop condition may be set according to various actual use conditions of the battery, and the charging stop condition may be a condition for indicating that the battery is fully charged or a condition for indicating that the battery is protected from being charged. Alternatively, the stop charging condition may include, but is not limited to, at least one of the following:
condition one, the battery voltage of the battery is greater than or equal to the cutoff voltage. When the battery is in a charging state, the electronic device may detect the battery voltage of the battery in real time or at a fixed time period (e.g., at time periods of every 1 second, every 3 seconds, etc.), and determine whether the battery voltage of the battery is greater than or equal to the cutoff voltage. The cut-off voltage may be a voltage set uniformly before the battery is shipped, and when the battery of the battery is greater than or equal to the cut-off voltage, it indicates that the battery is in a fully charged state, and the battery may be stopped from being continuously charged.
The electronic device may stop charging the battery with the electric energy provided by the charging device when detecting that the battery voltage of the battery is equal to the cut-off voltage, or may stop continuing charging the battery when detecting that the battery voltage of the battery is greater than the cut-off voltage and a voltage difference between the battery voltage and the cut-off voltage is greater than a preset voltage difference. For example, if the cutoff voltage of the battery is 4.435V, the battery may be stopped being charged when the battery voltage of the battery is detected to reach 4.435V, or when the battery voltage is detected to exceed 4.435V and exceed 18 mV. The battery charging is stopped after the battery voltage of the battery exceeds the cut-off voltage, so that the battery is in a real full-charge state.
Alternatively, the cut-off voltage may be determined by the capacity of the battery, which is larger and may correspond to a larger cut-off voltage, and which is smaller and may correspond to a smaller cut-off voltage. For the same battery, when the battery is in different conditions (such as different temperature environments, different use durations, etc.), the corresponding cut-off voltages may also be different. Taking the battery in different temperature environments as an example, the different temperature environments may correspond to different cut-off voltages, for example, the battery is in a normal temperature environment (e.g., 5-40 ℃), the corresponding cut-off voltage may be the largest, the battery may correspond to a smaller cut-off voltage in a higher temperature environment (e.g., 40-50 ℃), the battery may correspond to a minimum cut-off voltage in an ultra-high temperature environment (e.g., greater than 50 ℃), and the like, but is not limited thereto.
In the second condition, the charging current input to the battery is less than or equal to the current threshold. When the battery is in a charging state, the electronic device may detect a charging current input to the battery in real time or at a fixed time period, and determine whether the charging current is less than or equal to a current threshold. The current threshold may be a current value set uniformly before the battery is shipped, and when the battery of the battery is greater than or equal to the current threshold, it indicates that the battery is in a fully charged state, and the battery may be stopped from being charged.
The electronic device may stop charging the battery through the electric energy provided by the charging device when detecting that the charging current of the battery is less than or equal to the current threshold, or may stop continuing charging the battery when detecting that the charging current is less than the current threshold and a voltage difference between the charging current and the current threshold is greater than a preset current difference. For example, if the current threshold is 0.01C (C is the capacity of the battery), the battery may be stopped from being charged when the charging current is detected to decrease to 0.01C, or the battery may be stopped from being charged when the current threshold is detected to be less than 0.01C and less than 0.005C. The charging of the battery is stopped when the charging current input to the battery is smaller than the current threshold, so that the battery is in a true full-charge state.
Alternatively, the current threshold may be determined by the capacity of the battery, where the capacity of the battery is larger and may correspond to a larger current threshold, and the capacity of the battery is smaller and may correspond to a smaller current threshold. Similar to the cut-off voltage, the current threshold may also change according to the situation of the battery, such as different temperature environments, different usage durations, and the like, which are not described herein again.
And a third condition is that the temperature value of the battery is greater than the first temperature threshold or less than the second temperature threshold, wherein the first temperature threshold is greater than the second temperature threshold. The electronic equipment can be provided with a temperature sensor on the surface of the battery, and can acquire the temperature value on the surface of the battery in real time through the temperature sensor, and can judge whether the temperature value of the battery is greater than a first temperature threshold value or less than a second temperature threshold value. The first temperature threshold may be a high temperature threshold, for example, 50 ℃, 51 ℃ or 55 ℃, and if the temperature value of the battery is greater than the first temperature threshold, it indicates that the battery enters the ultra-high temperature state. The second temperature threshold may be a low temperature threshold, such as 2 ℃, 0 ℃, or-1 ℃, and if the temperature value of the battery is less than the second temperature threshold, the battery enters an ultra-low temperature state. Because if the battery charges when being in ultra-high temperature condition or ultra-low temperature condition, can influence the normal performance of electric charge, lead to the battery to appear the safety problem or reduce battery life, consequently, be greater than first temperature threshold value or be less than the second temperature threshold value at the temperature value of battery, can stop to charge the battery, protect the battery.
The charging stop conditions corresponding to the battery of the electronic device are not limited to the above-described conditions, but may be other conditions, and the charging stop conditions may be set before shipment of the battery or the electronic device.
In step 220, if the battery voltage of the battery is greater than the first voltage threshold, the screen status of the electronic device is determined.
In step 230, if the screen state is a bright screen state, the power supply connection between the electronic device and the charging device is disconnected, so that the charging device stops supplying power to the electronic device.
When the supply voltage of a backlight panel of a display screen of an electronic device is within a certain voltage range (e.g., 4.45V to 4.49V), switching of a working mode is triggered, where the working mode may include a synchronous working mode, a semi-synchronous working mode, an asynchronous working mode, and the like. The synchronous working mode refers to a mode that the backlight plate integrates a High side MOSFET (upper bridge MOS tube) and a Low side MOSFET (lower bridge MOS tube) at the same time, and the working efficiency is High. The asynchronous operation mode refers to a mode that the backlight plate only uses High-side MOSFETs and then cooperates with an externally used diode, and the diode can generate voltage drop, so that the efficiency is lower compared with the synchronous operation mode. The semi-synchronous operation mode refers to a mode in which the backlight panel switches back and forth between the synchronous operation mode and the asynchronous operation mode.
When the battery of the electronic device is in a charging state, the supply voltage of the backlight panel of the display screen is a charging voltage, and the charging voltage is usually not in the voltage range, so that the backlight panel cannot be triggered to switch the working mode. When the battery of the electronic equipment stops charging, if the electronic equipment is still connected to the charging device, the charging device continues to supply power to the electronic equipment, the supply voltage of the backlight plate is the sum of the battery voltage and the trigger voltage provided by the charging device, and the supply voltage of the backlight plate is possibly in the voltage range, so that the backlight plate is triggered to switch the working modes, ripples appear in the power supply, and the display screen is caused to appear in a screen flashing manner.
Therefore, when the battery stops charging, the electronic device can judge whether the screen flashing problem of the display screen needs to be avoided, and the screen flashing problem of the display screen can include two conditions: the battery voltage of the battery is larger than the first voltage threshold value, and the electronic equipment is in a bright screen state at present.
When the battery voltage of the battery is greater than the first voltage threshold, if the charging device supplies power to the electronic device, the battery voltage plus the trigger voltage provided by the charging device may be within the voltage range, which may cause the backlight to switch the operating mode. Further, the first voltage threshold may be determined according to a voltage range capable of triggering a backlight panel of a display screen of the electronic device to perform operation mode switching, and a trigger voltage provided by the charging device. The first voltage threshold may be a difference between the voltage range and the trigger voltage, for example, the voltage range is 4.45V to 4.49V, the trigger voltage is 25mV to 115mV, and the difference between the two voltage ranges may be 4.335V to 4.465V, and the first voltage threshold may be a minimum value (i.e., 4.335V), an intermediate value of 4.4V, or a voltage value selected to be close to the minimum value, for example, 4.35V, and the like, and is not limited herein. The first voltage threshold value can be a value obtained through multiple tests, the screen flashing situation of the display screen can be avoided to the maximum extent, the problem that the power consumption of the electronic equipment is influenced due to the fact that the first voltage threshold value is too small can be avoided, and meanwhile the power consumption and the screen flashing problem are considered.
The screen state of the electronic equipment can comprise a screen on state and a screen off state, wherein the screen on state can refer to a state that a display screen of the electronic equipment is on, and the display screen is powered on and can display contents; the screen extinguishing state refers to a state that a display screen of the electronic equipment is in an extinguishing state, and the display screen is powered off and cannot display contents. The situation that the display screen of the electronic equipment flickers is seen by a user only when the display screen is in the bright screen state, so that the current screen state can be determined after the electronic equipment stops charging the battery, and if the screen state is the bright screen state and the battery voltage of the battery is greater than the first voltage threshold value, it can be shown that if the charging device continues to supply power to the electronic equipment, the problem of the flicker screen of the display screen may be caused, and the power supply connection between the electronic equipment and the charging device can be disconnected. This disconnection electronic equipment and charging device between power supply be connected can mean that electronic equipment stops to receive the signal of telecommunication that charging device sent, and electronic equipment is whole to be supplied power by the battery, and then the supply voltage of the board in a poor light of display screen this moment is battery voltage, is not in foretell voltage range, can not trigger the mode switch, can avoid the display screen to appear the splash screen problem.
Alternatively, the electronic device may disconnect the power supply connection from the charging device, and the electronic device may cause the PMIC to enter a suspend state (suspend state), the charging device does not supply power to the electronic device, and the motherboard of the electronic device is powered by the battery.
In some embodiments, the electronic device may set a voltage flag that may be used to flag whether the splash screen problem needs to be circumvented. When the electronic equipment is connected to the charging device and the battery is not in a charging state, when the battery voltage of the battery is greater than a first voltage threshold value, the voltage mark can be set as a first mark, and if the voltage mark is the first mark, the problem of screen flashing needs to be avoided when the display screen is in a bright screen state. When the voltage mark is the first mark, if the electronic equipment is in a bright screen state, the power supply connection between the electronic equipment and the charging device can be disconnected, and the electronic equipment is powered by the battery instead of the charging device, so that the screen flickering problem is avoided.
The voltage flag may be set to the second flag when the electronic device is not accessed to the charging device, such as when the user pulls the charging device out or the user moves the electronic device away from the charging device, or the battery is in a charged state, or the battery voltage of the battery is not greater than the first voltage threshold. If the voltage mark is the second mark, it can be shown that the screen flicker problem does not need to be avoided when the display screen is in a bright screen state, the power supply connection between the electronic equipment and the charging device is not disconnected, and the charging device continues to supply power to the electronic equipment.
Optionally, the first mark and the second mark may be set according to actual requirements, and the first mark and the second mark may be composed of different numbers, letters, symbols, or the like, for example, the first mark is 1, the second mark is 0, or the first mark is true, the second mark is false, and the like, but not limited thereto. The problem of screen flashing of the display screen can be directly judged whether to be avoided or not through the voltage marks, and the processing efficiency is improved.
In the embodiment of the application, when the electronic device is in a charging state, if it is detected that a battery of the electronic device meets a charging stop condition, the battery is stopped being charged, if a battery voltage of the battery is greater than a first voltage threshold, a current screen state of the electronic device is determined, if the screen state is a bright screen state, power supply connection between the electronic device and the charging device is disconnected, so that the charging device stops supplying power to the electronic device, and under the condition that the battery stops charging and the battery voltage of the battery is greater than the first voltage threshold, the power supply connection between the electronic device and the charging device can be disconnected, so that the power supply voltage of the display screen in the bright screen state is the battery voltage, ripples of the power supply voltage of a backlight plate of the display screen cannot be caused, and therefore the situation that the display screen flickers under the condition that the electronic device is connected to the charging device can be avoided.
As shown in fig. 3, in an embodiment, another charging control method is provided, which can be applied to the electronic device described above, and the method can include the following steps:
step 302, when the electronic device is in a charging state, if it is detected that the battery of the electronic device satisfies a charging stop condition, the charging of the battery is stopped.
In step 304, if the battery voltage of the battery is greater than the first voltage threshold, the screen status of the electronic device is determined. If the screen status is bright, steps 306-310 are executed, and if the screen status is off, steps 312-314 are executed.
And step 306, if the screen state is a bright screen state, disconnecting the power supply connection between the electronic equipment and the charging device so that the charging device stops supplying power to the electronic equipment.
The steps 302 to 306 can refer to the related descriptions in the above embodiments, and are not described in detail herein.
And 308, when the battery voltage of the battery is detected to be reduced to the second voltage threshold, restoring the power supply connection between the electronic equipment and the charging device so that the charging device supplies power to the electronic equipment again.
After the power supply connection between the electronic device and the charging device is disconnected, the electronic device is powered by the battery, and the battery voltage of the battery is reduced because the electric quantity of the battery is consumed. After the power supply connection between the electronic equipment and the charging device is disconnected, the battery voltage of the battery can be continuously detected, and whether the battery voltage is reduced to the second voltage threshold value or not is judged. And if the battery voltage of the battery is detected to be reduced to the second voltage threshold, the power supply connection between the electronic equipment and the charging device can be restored, and the charging device supplies power to the electronic equipment. The situation that the battery is always consumed under the condition that the electronic equipment is connected into the charging device can be avoided.
In order to prevent repeated switching between the power supply disconnection and the power supply restoration, a certain voltage difference may exist between the second voltage threshold and the first voltage threshold, for example, the first voltage threshold is 4.35V, the second voltage threshold may be 4.3V, and the difference between the second voltage threshold and the first voltage threshold may be 50mV, but is not limited thereto, so that repeated switching between the power supply disconnection and the power supply restoration may be prevented, product stability may be improved, and safety and service life may be ensured.
In step 310, if the battery voltage of the battery is less than the third voltage threshold, the battery is recharged by the electric energy provided by the charging device.
When the battery voltage of the battery is reduced to the second voltage threshold, the electronic equipment recovers the power supply connection with the charging device, and the battery can be charged directly through the electric energy provided by the charging device, so that the recharging of the battery is realized.
In some embodiments, after the electronic device recovers the power supply connection with the charging device, the electronic device may determine whether the battery voltage of the battery is less than a third voltage threshold, and if the battery voltage is less than the third voltage threshold, the battery may be recharged by the power provided by the charging device. And the third voltage threshold is the corresponding battery recharging voltage when the screen flickering problem of the display screen needs to be avoided.
As a specific embodiment, the third voltage threshold may be a difference between the cut-off voltage and a preset first recharging value, that is, the battery is recharged when the battery voltage of the battery drops from the cut-off voltage by the first recharging value. For example, the cutoff voltage may be 4.435V, the first complex value may be 60mV, and the third voltage threshold may be 4.375V. The first recharging can be set according to actual requirements, the first recharging can also be a value obtained through multiple experiments, the first recharging cannot be too large or too small, the first recharging can be performed after the voltage of the battery drops too much due to too large voltage, the endurance of the electronic equipment is influenced, the battery voltage can easily reach a recharging point (namely a third voltage threshold value) due to too small voltage, the battery is continuously subjected to the cycle processes of full charging, recharging, full charging and recharging, the problem of repeated recharging of the battery is caused, and the service life of the battery is influenced.
In step 312, if the screen status is the off-screen status, the power supply connection between the electronic device and the charging device is maintained, so that the charging device continues to supply power to the electronic device.
When the battery of the electronic equipment meets the charging stop condition, after the battery is stopped to be charged, if the battery voltage of the battery is greater than the first voltage threshold value, but the screen state of the electronic equipment is the screen-off state, because the screen-off state can not cause the screen flashing problem of the display screen, the power supply connection between the electronic equipment and the charging device can be kept, and the charging device can continue to supply power to the electronic equipment. In the embodiment of the application, the screen flashing problem is avoided only when the electronic equipment is in a screen-on state, and the endurance influence on the electronic equipment caused by the fact that the power supply connection between the charging device and the electronic equipment is disconnected can be reduced.
In step 314, when it is detected that the battery voltage of the battery decreases to the fourth voltage threshold, the battery is recharged by the electric energy provided by the charging device.
In the case that the electronic device maintains the power supply connection with the charging device, the charging device continues to supply power to the electronic device, but the power of the battery may still drop, and the electronic device may detect the battery voltage of the battery and recharge the battery by the power supplied by the charging device when detecting that the battery voltage of the battery drops to the fourth voltage threshold. And the fourth voltage threshold is the corresponding battery recharging voltage when the screen flashing problem of the display screen is not required to be avoided.
As a specific embodiment, the fourth voltage threshold may be a difference between the cut-off voltage and a preset second recharging value, that is, the battery is recharged when the battery voltage of the battery drops from the cut-off voltage by the second recharging value. For example, the cutoff voltage may be 4.435V, the second complex value may be 100mV, and the third voltage threshold may be 4.335V. The second complex value may be greater than the first complex value, i.e., the fourth voltage threshold may be less than the third voltage threshold. After the power supply connection between the electronic equipment and the charging device is disconnected, the power supply of the electronic equipment comes from the battery, so that the voltage drop speed of the battery is higher, a first recharging value smaller than a second recharging value can be set, and the normal endurance of the electronic equipment is ensured.
In the embodiment of the application, after the electronic device is disconnected from the charging device, when it is detected that the battery voltage of the battery drops to the second voltage threshold, the power supply connection between the electronic device and the charging device is recovered, so that the charging device supplies power to the electronic device again, and the situation that the battery is always in power consumption when the electronic device is connected to the charging device can be avoided.
In some embodiments, the battery may correspond to different stop charging conditions at different temperature conditions. When the electronic device is in a charging state, if it is detected that the battery of the electronic device meets a charging stop condition, stopping charging the battery, which may include: when the electronic equipment is in a charging state, determining a temperature value of a battery of the electronic equipment, and if the battery is detected to meet a charging stop condition corresponding to the temperature value, stopping charging the battery.
A plurality of temperature intervals may be preset, the temperature intervals may correspond to the charging stop conditions one to one, and the charging stop conditions corresponding to each temperature interval may include: the different temperature ranges respectively correspond to different cut-off voltage or current thresholds, or some temperature ranges are temperature ranges that cannot be charged, but not limited thereto.
For example, 5 temperature intervals may be set in advance: the temperature difference is greater than a first temperature threshold value (ultra-high temperature interval), between the first temperature threshold value and a third temperature threshold value (high temperature interval), between the third temperature threshold value and a fourth temperature threshold value (normal temperature interval), between the fourth temperature threshold value and a second temperature threshold value (low temperature interval), and less than the second temperature threshold value (ultra-low temperature interval). The relationship between the respective temperature thresholds may be first temperature threshold > third temperature threshold > fourth temperature threshold > second temperature threshold. For example, the first temperature threshold may be 50 ℃ (celsius), the third temperature threshold may be 45 ℃, the fourth temperature threshold may be 0 ℃, the second temperature threshold may be-2 ℃, etc., but is not limited thereto.
Alternatively, the charging stop condition corresponding to the ultra-high temperature interval may be greater than the first temperature threshold, and the charging stop condition corresponding to the ultra-low temperature interval may be less than the second temperature threshold, that is, when the temperature value of the battery is in the ultra-high temperature interval or the ultra-low temperature interval, the charging is not performed. The high temperature section, the normal temperature section and the low temperature section may be respectively provided with corresponding cut-off voltages, which may be the same or different, for example, the cut-off voltage corresponding to the high temperature section and the low temperature section may be 4.13V, and the cut-off voltage corresponding to the normal temperature section may be 4.435V; or a cutoff voltage of 4.15V for a high temperature range, a cutoff voltage of 4.13V for a low temperature range, and a cutoff voltage of 4.35V for a normal temperature range, but is not limited thereto. The cut-off voltage corresponding to the normal temperature range may be greater than the cut-off voltages corresponding to the high temperature range and the low temperature range, respectively.
In some embodiments, the high temperature section, the normal temperature section, and the low temperature section may also be respectively provided with corresponding current thresholds, and the current thresholds may be the same or different, for example, the current threshold corresponding to the high temperature section and the low temperature section is 0.015C, and the current threshold corresponding to the normal temperature section is 0.01C; or the current threshold corresponding to the high temperature section is 0.012C, the current threshold corresponding to the low temperature section is 0.015C, and the current threshold corresponding to the normal temperature section is 0.01C, but is not limited thereto. The corresponding cut-off current in the normal temperature interval can be smaller than the corresponding cut-off current in the high temperature interval and the low temperature interval.
The electronic device may be provided with a temperature sensor by which a temperature value of the battery may be collected in real time or according to a preset time period (e.g., 500 milliseconds, 1 second, etc.). If the battery is detected to meet the charging stop condition corresponding to the current temperature value when the electronic equipment is in the charging state, the charging of the battery can be stopped. For example, in the process of charging the battery, if the temperature value of the battery is detected to be in the ultra-high temperature region or the ultra-low temperature region, the charging of the battery can be directly stopped, and for example, in the process of charging the battery, if the temperature value of the battery is detected to be in the high temperature region, and if the battery voltage of the battery is detected to be greater than or equal to the cutoff voltage corresponding to the high temperature region, the charging of the battery can be stopped.
After the battery is stopped being charged, the electronic equipment can judge whether the battery voltage of the battery is larger than a first voltage threshold value, and if the battery voltage of the battery is larger than the first voltage threshold value and the screen state of the electronic equipment is a bright screen state, the power supply connection between the electronic equipment and the charging device can be disconnected. If the battery voltage of the battery is not greater than the second voltage threshold or the screen state of the electronic equipment is the screen-off state, the electronic equipment can keep power supply connection with the charging device.
After the electronic equipment is disconnected from the charging device, the power supply connection between the electronic equipment and the charging device can be restored when the battery voltage of the battery is detected to be reduced to the second voltage threshold value. In some embodiments, if the temperature value of the battery is detected to be greater than the first temperature threshold value or less than the second temperature threshold value during the charging of the battery, that is, the temperature value of the battery is in the ultra-high temperature region or the ultra-low temperature region, the charging of the battery is stopped, and if the battery voltage of the battery is greater than the first voltage threshold value at the moment, the power supply connection with the charging device can be disconnected. The battery charging is directly stopped under the condition of ultra-high temperature or ultra-low temperature, and the charging probability is in an unfilled state, so that the temperature value of the battery can be continuously acquired after the electronic equipment is disconnected from the charging device, if the temperature value of the battery is detected to be recovered to be between the first temperature threshold and the second temperature threshold, the power supply connection between the electronic equipment and the charging device can be recovered, the battery is continuously charged through the charging device, and the problem of the endurance of the electronic equipment is avoided.
In the embodiment of the application, the battery can correspond to different charging stopping conditions under different temperature conditions, after the battery is stopped to be charged, the power supply connection between the electronic equipment and the charging device can be disconnected under the condition that the battery voltage of the battery is greater than the first voltage threshold and the screen is bright, the display screen is in a screen flashing condition under the condition that the electronic equipment is connected into the charging device, and the normal endurance of the electronic equipment is ensured.
As shown in fig. 4, in an embodiment, the charging control method further includes, after the power supply connection between the electronic device and the charging device is disconnected, the following steps:
step 402, recording a first power of a battery when the power supply connection is disconnected.
When the power supply connection between the electronic equipment and the charging device is disconnected, the first electric quantity of the electrons when the power supply connection is disconnected can be detected and recorded. The electronic equipment can detect the residual capacity of the battery in different modes, for example, a voltage test method can be adopted, the battery voltage of the battery when the power supply connection is disconnected can be obtained, and the battery voltage when the power supply connection is disconnected is converted into a capacity value according to the corresponding relation between the battery voltage and the residual capacity, so that first capacity is obtained; the output current of the battery when the power supply connection is disconnected can be obtained by adopting a current test method, the power consumption of the battery can be calculated through the output current, and therefore the residual power of the battery when the power supply connection is disconnected is determined according to the power consumption, and the residual power is the first power.
Step 404, detecting a second actual electric quantity of the battery, and if the second electric quantity is smaller than the first electric quantity and the electronic device is connected to the charging device, displaying the first electric quantity in the interface.
After the electronic equipment is disconnected from the power supply of the charging device, the electronic equipment is still connected to the charging device, but the charging device does not supply power to the electronic equipment, and the electronic equipment is supplied with power by the battery, so that the power of the battery is reduced.
Therefore, in order to avoid the above problems, the electronic device may record the first power of the battery when the power supply connection is disconnected, and detect the actual second power of the battery, where the method for detecting the actual second power of the battery may be the same as the method for detecting the first power. If the second electric quantity is smaller than the first electric quantity and the electronic equipment is connected to the charging device, the first electric quantity can be displayed in the interface, so that the condition that the battery is powered off when the electronic equipment is connected to the charging device can be avoided.
FIG. 5 is a diagram illustrating a remaining power of a battery in an interface according to an embodiment. As shown in fig. 5, when the electronic device is disconnected from the power supply of the charging device, the remaining capacity of the battery is 100% as shown in an interface 510. After the electronic device is disconnected from the charging device, the electronic device is still connected to the charging device, the electric quantity of the battery is consumed, the real electric quantity begins to decrease, but the remaining electric quantity of the battery is still displayed in the interface 520 to be 100%, so that the situation that the battery is powered off is displayed on the interface when the electronic device is connected to the charging device can be avoided.
In some embodiments, if the actual second power of the battery is decreased to the power threshold, or the power difference between the second power and the first power is greater than the set value, the power information displayed on the interface may be updated, and the second power may be displayed on the interface. For example, when the second power amount is decreased to 20% or the power difference between the second power amount and the first power amount is greater than 30%, the real second power amount can be displayed on the interface, so that inconvenience in use of the user due to the fact that the battery is dead can be prevented.
In some embodiments, the above power display method may also be applied to a scenario of powering on and powering off an electronic device, and when the electronic device is powered off, the first remaining power of the battery during powering off may be stored in a register where data loss does not occur due to power failure, and when the electronic device is powered on, the first remaining power may be read from the register. The real second remaining capacity of the battery can be detected when the electronic equipment is started, whether the second remaining capacity is smaller than the first remaining capacity or not is judged, if the second remaining capacity is smaller than the first remaining capacity, the first remaining capacity can be displayed in the interface, and therefore the situation that the user misunderstanding is caused by jumping of the electric quantity displayed in the interface under the scene of starting and shutting down of the electronic equipment can be prevented.
If the real second remaining capacity of the battery is reduced to the capacity threshold value, or the capacity difference value between the second remaining capacity and the first capacity threshold value is larger than a set value, the capacity information displayed on the interface can be updated, and the second remaining capacity is displayed on the interface. The situation that the battery of the electronic equipment is really out of power when the electronic equipment is started can be prevented from causing inconvenience for a user.
In the embodiment of the application, when the electronic equipment is disconnected from the power supply of the charging device, the first electric quantity of the battery can be recorded when the power supply is disconnected, and in the process that the electronic equipment is connected into the charging device, if the electric quantity of the battery is consumed, the first electric quantity is still displayed, the situation that the battery is powered off can be avoided when the electronic equipment is connected into the charging device, and therefore the situation that the user mistakenly thinks that the charging device or the battery has problems can be avoided.
As shown in fig. 6, in one embodiment, a charging control apparatus 600 is provided, which can be applied to the electronic device described above, and the charging control apparatus 600 can include a charging control module 610, a screen status determination module 620, and a connection control module 630.
The charging control module 610 is configured to, when the electronic device is in a charging state, stop charging the battery if it is detected that the battery of the electronic device satisfies a charging stop condition.
In one embodiment, the stop charging condition comprises at least one of:
the cell voltage of the cell is greater than or equal to the cutoff voltage;
a charging current input to the battery is less than or equal to a current threshold;
the temperature value of the battery is greater than a first temperature threshold value or less than a second temperature threshold value, and the first temperature threshold value is greater than the second temperature threshold value.
The screen state determining module 620 is configured to determine a screen state of the electronic device if the battery voltage of the battery is greater than the first voltage threshold.
The connection control module 630 is configured to disconnect a power supply connection between the electronic device and the charging apparatus if the screen state is a bright screen state, so that the charging apparatus stops supplying power to the electronic device.
In the embodiment of the application, when the electronic device is in a charging state, if it is detected that a battery of the electronic device meets a charging stop condition, the battery is stopped from being charged, if a battery voltage of the battery is greater than a first voltage threshold, a current screen state of the electronic device is determined, if the screen state is a bright screen state, power supply connection between the electronic device and the charging device is disconnected, so that the charging device stops supplying power to the electronic device, and under the condition that the battery stops charging and the battery voltage of the battery is greater than the first voltage threshold, the power supply connection between the electronic device and the charging device can be disconnected, so that the power supply voltage of the display screen in the bright screen state is the battery voltage, ripples of the power supply voltage of a backlight plate of the display screen cannot be caused, and therefore the situation that the display screen flickers occur when the electronic device is connected to the charging device can be avoided.
In one embodiment, the connection control module 630 is further configured to restore the power supply connection between the electronic device and the charging apparatus when the battery voltage of the battery is detected to drop to a second voltage threshold, which is smaller than the first voltage threshold, so that the charging apparatus supplies power to the electronic device again.
In one embodiment, the charging control module 610 is further configured to recharge the battery by the power provided by the charging device if the battery voltage of the battery is less than the third voltage threshold.
In an embodiment, the connection control module 630 is further configured to, if the screen status is the off-screen status, maintain the power supply connection between the electronic device and the charging apparatus, so that the charging apparatus continues to supply power to the electronic device.
The charging control module 610 is further configured to recharge the battery by the electric energy provided by the charging device when it is detected that the battery voltage of the battery drops to a fourth voltage threshold, where the fourth voltage threshold is smaller than the third voltage threshold.
In the embodiment of the application, after the electronic device is disconnected from the charging device, when it is detected that the battery voltage of the battery drops to the second voltage threshold, the power supply connection between the electronic device and the charging device is recovered, so that the charging device supplies power to the electronic device again, and the situation that the battery is always in power consumption when the electronic device is connected to the charging device can be avoided.
In one embodiment, the charging control module 610 is further configured to determine a temperature value of a battery of the electronic device when the electronic device is in a charging state; and if the battery is detected to meet the charging stop condition corresponding to the temperature value, stopping charging the battery.
In the embodiment of the application, the battery can correspond to different charging stopping conditions under different temperature conditions, after the battery is stopped to be charged, the power supply connection between the electronic equipment and the charging device can be disconnected under the condition that the battery voltage of the battery is greater than the first voltage threshold and the screen is bright, the display screen is in a screen flashing condition under the condition that the electronic equipment is connected into the charging device, and the normal endurance of the electronic equipment is ensured.
In one embodiment, the charging control apparatus 600 includes a charge amount display module in addition to the charging control module 610, the screen state determination module 620 and the connection control module 630.
The electric quantity display module is used for recording first electric quantity of the battery when the power supply connection is disconnected; and detecting the real second electric quantity of the battery, and if the second electric quantity is smaller than the first electric quantity and the electronic equipment is connected to the charging device, displaying the first electric quantity in the interface.
In the embodiment of the application, when the electronic equipment is disconnected from the power supply of the charging device, the first electric quantity of the battery can be recorded when the power supply is disconnected, and in the process that the electronic equipment is connected into the charging device, if the electric quantity of the battery is consumed, the first electric quantity is still displayed, the situation that the battery is powered off can be avoided when the electronic equipment is connected into the charging device, and therefore the situation that the user mistakenly thinks that the charging device or the battery has problems can be avoided.
FIG. 7 is a block diagram of an electronic device in one embodiment. As shown in fig. 7, electronic device 700 may include one or more of the following components: a processor 710, a memory 720 coupled to the processor 710, wherein the memory 720 may store one or more computer programs that may be configured to be executed by the one or more processors 710 to implement the methods as described in the various embodiments above.
Processor 710 may include one or more processing cores. The processor 710 interfaces with various components throughout the electronic device 700 using various interfaces and circuitry to perform various functions of the electronic device 700 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 720 and invoking data stored in the memory 720. Alternatively, the processor 710 may be implemented in at least one hardware form of Digital Signal Processing (DSP), field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 710 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 710, but may be implemented by a communication chip.
The Memory 720 may include a Random Access Memory (RAM) or a Read-Only Memory (ROM). The memory 720 may be used to store instructions, programs, code sets, or instruction sets. The memory 720 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like. The storage data area may also store data created during use by the electronic device 700, and the like.
It is understood that the electronic device 700 may include more or less structural elements than those shown in the above structural block diagrams, for example, a power module, a physical button, a bluetooth module, a sensor, etc., and is not limited herein.
The embodiment of the application discloses a computer readable storage medium, which stores a computer program, wherein the computer program realizes the method described in the above embodiments when being executed by a processor.
Embodiments of the present application disclose a computer program product comprising a non-transitory computer readable storage medium storing a computer program, and the computer program, when executed by a processor, implements the method as described in the embodiments above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by a computer program, which may be stored in a non-volatile computer readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a ROM, etc.
Any reference to memory, storage, database, or other medium as used herein may include non-volatile and/or volatile memory. Suitable non-volatile memory can include ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically Erasable PROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM can take many forms, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM), rambus Direct RAM (RDRAM), and Direct Rambus DRAM (DRDRAM).
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. Those skilled in the art should also appreciate that the embodiments described in this specification are all alternative embodiments and that the acts and modules involved are not necessarily required for this application.
In various embodiments of the present application, it should be understood that the size of the serial number of each process described above does not mean that the execution sequence is necessarily sequential, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
Each functional unit in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated units, if implemented as software functional units and sold or used as separate products, may be stored in a computer accessible memory. Based on such understanding, the technical solution of the present application, which is a part of or contributes to the prior art in essence, or all or part of the technical solution, may be embodied in the form of a software product, stored in a memory, including several requests for causing a computer device (which may be a personal computer, a server, a network device, or the like, and may specifically be a processor in the computer device) to execute part or all of the steps of the above-described method of the embodiments of the present application.
The charging control method, the charging control apparatus, the electronic device, and the computer-readable storage medium disclosed in the embodiments of the present application are described in detail above, and specific examples are applied herein to illustrate the principles and implementations of the present application, and the description of the embodiments above is only used to help understand the method and the core idea of the present application. Meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. A charging control method is applied to an electronic device, and the method comprises the following steps:
when the electronic equipment is in a charging state, if the condition that a battery of the electronic equipment meets a charging stop condition is detected, the battery is stopped to be charged;
if the battery voltage of the battery is larger than a first voltage threshold, determining the screen state of the electronic equipment;
and if the screen state is a bright screen state, disconnecting the power supply connection between the electronic equipment and the charging device so as to enable the charging device to stop supplying power to the electronic equipment.
2. The method of claim 1, wherein after said disconnecting the power supply connection between the electronic device and a charging device, the method further comprises:
when the battery voltage of the battery is detected to drop to a second voltage threshold value, restoring the power supply connection between the electronic equipment and the charging device so that the charging device supplies power to the electronic equipment again, wherein the second voltage threshold value is smaller than the first voltage threshold value.
3. The method of claim 2, wherein after the restoring the power connection between the electronic device and the charging apparatus, the method further comprises:
and if the battery voltage of the battery is smaller than a third voltage threshold, recharging the battery through the electric energy provided by the charging device.
4. The method of claim 3, wherein after the determining the screen state of the electronic device, the method further comprises:
if the screen state is the screen-off state, maintaining the power supply connection between the electronic equipment and a charging device so that the charging device continues to supply power to the electronic equipment;
when the battery voltage of the battery is detected to be reduced to a fourth voltage threshold value, the battery is charged again through the electric energy provided by the charging device, wherein the fourth voltage threshold value is smaller than the third voltage threshold value.
5. The method of claim 1, wherein stopping charging the battery of the electronic device if it is detected that the battery satisfies a stop charging condition while the electronic device is in the charging state comprises:
determining a temperature value of a battery of the electronic device while the electronic device is in a charging state;
and if the battery is detected to meet the charging stop condition corresponding to the temperature value, stopping charging the battery.
6. The method according to any one of claims 1 to 5, wherein the first voltage threshold is determined according to a voltage range capable of triggering a backlight panel of a display screen of the electronic device to switch an operation mode.
7. The method of any of claims 1-5, wherein the stop charging condition comprises at least one of:
the cell voltage of the cell is greater than or equal to a cutoff voltage;
a charging current input to the battery is less than or equal to a current threshold;
the temperature value of the battery is greater than a first temperature threshold value or less than a second temperature threshold value, and the first temperature threshold value is greater than the second temperature threshold value.
8. The method according to any one of claims 1 to 5, wherein after said disconnecting the power supply connection between the electronic device and the charging device, the method further comprises:
recording a first electric quantity of the battery when the power supply connection is disconnected;
and detecting the real second electric quantity of the battery, and if the second electric quantity is smaller than the first electric quantity and the electronic equipment is connected to the charging device, displaying the first electric quantity in an interface.
9. A charging control apparatus applied to an electronic device, the apparatus comprising:
the charging control module is used for stopping charging the battery of the electronic equipment if the condition that the battery of the electronic equipment meets the charging stopping condition is detected when the electronic equipment is in a charging state;
the screen state determining module is used for determining the screen state of the electronic equipment if the battery voltage of the battery is greater than a first voltage threshold;
and the connection control module is used for disconnecting the power supply connection between the electronic equipment and the charging device if the screen state is a bright screen state, so that the charging device stops supplying power to the electronic equipment.
10. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program that, when executed by the processor, causes the processor to carry out the method of any one of claims 1 to 8.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 8.
CN202110624335.0A 2021-06-04 2021-06-04 Charging control method and device, electronic equipment and computer readable storage medium Pending CN115441526A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110624335.0A CN115441526A (en) 2021-06-04 2021-06-04 Charging control method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110624335.0A CN115441526A (en) 2021-06-04 2021-06-04 Charging control method and device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN115441526A true CN115441526A (en) 2022-12-06

Family

ID=84240535

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110624335.0A Pending CN115441526A (en) 2021-06-04 2021-06-04 Charging control method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115441526A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117096993A (en) * 2023-10-13 2023-11-21 荣耀终端有限公司 Battery charging control method and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117096993A (en) * 2023-10-13 2023-11-21 荣耀终端有限公司 Battery charging control method and electronic equipment
CN117096993B (en) * 2023-10-13 2024-04-19 荣耀终端有限公司 Battery charging control method and electronic equipment

Similar Documents

Publication Publication Date Title
US10652828B2 (en) Electronic device for providing mode switching and a method thereof
CN107843802B (en) Internal short circuit detection method and device
CN110797925B (en) Battery control system and method and electronic equipment
CN110729790B (en) Charging method and device, computer equipment and storage medium
CN110716631B (en) Power supply management method, device, equipment and readable storage medium
CN108513616B (en) Battery leakage current detection method, device and circuit
CN110718944B (en) Dual-battery charging and discharging method, device, terminal and storage medium
US10776128B2 (en) Method and device for low power power-on processing
CN112858938B (en) Electric quantity calculation method and device, storage medium and electronic equipment
CN111969685A (en) Handheld terminal, power supply circuit thereof, power supply control method thereof and readable storage medium
CN115441526A (en) Charging control method and device, electronic equipment and computer readable storage medium
US9356459B2 (en) Method for charging battery and electronic device thereof
CN109256825B (en) Charging method and electronic device
US20080218918A1 (en) Battery Power Management In Over-Discharge Situation
JP2004159382A (en) Electronic apparatus
CN113113960A (en) Short-circuit protection method in charging process and charger
CN113258655B (en) Electric quantity control method and device, electronic equipment and storage medium
JP2011244387A (en) Portable electronic equipment and control method for the same
CN117081185A (en) Charging control method, device, equipment and storage medium
CN112825012A (en) Handling loss of power for uninterruptible power supply efficiency
CN113013506B (en) Head-mounted display equipment charging method, device and equipment
US20230307938A1 (en) Charging system for smart battery
CN115549231B (en) Battery charge and discharge control method and device, terminal equipment and storage medium
CN117093278B (en) Kernel shutdown method, electronic device and storage medium
CN114744693A (en) Charging method and electronic equipment

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