Charging method, charging device and terminal
View Patent ↗Embodiments of the present disclosure provide a charging method, a charging device and a terminal. The charging method includes: when detecting that a battery is charged with a trickle current, acquiring a voltage of the battery; determining a preset voltage range to which the voltage belongs; acquiring a charging current corresponding to the preset voltage range; and charging the battery according to the charging current. During a process that the battery is charged with the trickle current, the battery may be charged with a different charging current when the voltage of the battery belongs to a different voltage range, thereby improving the flexibility of a trickle current charge phase.
1. A charging method, comprising:
when detecting that a battery is charged with a trickle current, acquiring a voltage of the battery;
determining a preset voltage range to which the voltage belongs;
acquiring a charging current corresponding to the preset voltage range;
charging the battery according to the charging current,
wherein the method further comprises:
when starting to charge the battery with the trickle current, acquiring a first voltage of the battery, and acquiring a charging duration corresponding to the first voltage, wherein the charging duration ranges between charging the battery with the first voltage to charging the battery with a preset voltage threshold, and the preset voltage threshold is a termination voltage of the trickle current charge phase;
when detecting that a charging period of the battery reaches the charging duration, acquiring a second voltage of the battery;
when judging that the second voltage is less than the preset voltage threshold, computing a difference between the second voltage and the preset voltage threshold;
when judging that the difference is less than or equal to a preset difference threshold, determining a target voltage range from the preset voltage ranges; and
acquiring a target charging current corresponding to the target voltage range, and charging the battery according to the target charging current.
2. The charging method according to claim 1 , before detecting that a battery is charged with a trickle current, further comprising:
acquiring voltage samples during a trickle current charge phase that the battery is charged with the trickle current, and generating a plurality of voltage ranges by sequencing the voltage samples from low to high;
determining the plurality of voltage ranges as a plurality of preset voltage ranges; and
setting a plurality of charging currents for the plurality of voltage ranges, wherein the higher a preset voltage range is, the higher a corresponding charging current is.
3. The charging method according claim 1 , wherein determining a target voltage range from the preset voltage ranges comprises:
determining a preset voltage range that is larger than a preset voltage range to which the second voltage belongs as the target voltage range.
4. The charging method according claim 1 , after computing a difference between the second voltage and the preset voltage threshold, further comprising:
when judging that the difference is larger than the preset difference threshold, acquiring a discharging current; and
when judging that the discharging current exceeds a preset discharging current threshold, generating a prompt message, wherein the prompt message is configured to prompt a user to stop using a terminal so as to improve a charging speed.
5. The charging method according to claim 4 , wherein after generating a prompt message, further comprising:
controlling the terminal to enter a preset low-power-consumption mode.
6. The charging method according to claim 4 , further comprising:
when judging that the discharging current does not exceed the preset discharging current threshold, improving the charging current.
7. The charging method according to claim 1 , wherein the charging current corresponding to the preset voltage range is a constant, or a variable that changes linearly during the preset voltage range.
8. The charging method according to claim 1 , wherein a corresponding between charging currents and preset voltage ranges is preset.
9. The charging method according to claim 1 , wherein a corresponding between first voltages and charging durations is preset.
10. A terminal, comprising: a memory, a processor and computer programs stored in the memory and executable by the processor, wherein the processor is configured to execute the computer programs to achieve a charging method, and the charging method comprises:
when detecting that a battery is charged with a trickle current, acquiring a voltage of the battery;
determining a preset voltage range to which the voltage belongs;
acquiring a charging current corresponding to the preset voltage range; and
charging the battery according to the charging current,
wherein the method further comprises:
when starting to charge the battery with the trickle current, acquiring a first voltage of the battery, and acquiring a charging duration corresponding to the first voltage, wherein the charging duration ranges between charging the battery with the first voltage to charging the battery with a preset voltage threshold, and the preset voltage threshold is a termination voltage of the trickle current charge phase;
when detecting that a charging period of the battery reaches the charging duration, acquiring a second voltage of the battery;
when judging that the second voltage is less than the preset voltage threshold, computing a difference between the second voltage and the preset voltage threshold;
when judging that the difference is less than or equal to a preset difference threshold, determining a target voltage range from the preset voltage ranges; and
acquiring a target charging current corresponding to the target voltage range, and charging the battery according to the target charging current.
11. The terminal according to claim 10 , wherein the charging method further comprises:
before detecting that a battery is charged with a trickle current, acquiring voltage samples during a trickle current charge phase that the battery is charged with the trickle current, and generating a plurality of voltage ranges by sequencing the voltage samples from low to high;
determining the plurality of voltage ranges as a plurality of preset voltage ranges; and
setting a plurality of charging currents for the plurality of voltage ranges, wherein the higher a preset voltage range is, the higher a corresponding charging current is.
12. The terminal according to claim 10 , wherein determining a target voltage range from the preset voltage ranges comprises:
determining a preset voltage range that is larger than a preset voltage range to which the second voltage belongs as the target voltage range.
13. The terminal according to claim 10 , wherein the method further comprises:
after computing a difference between the second voltage and the preset voltage threshold, when judging that the difference is larger than the preset difference threshold, acquiring a discharging current; and
when judging that the discharging current exceeds a preset discharging current threshold, generating a prompt message, wherein the prompt message is configured to prompt a user to stop using a terminal so as to improve a charging speed.
14. The terminal according to claim 13 , wherein the method further comprises:
after generating a prompt message, controlling the terminal to enter a preset low-power-consumption mode.
15. The terminal according to claim 13 , wherein the method further comprises:
when judging that the discharging current does not exceed the preset discharging current threshold, improving the charging current.
16. The terminal according to claim 10 , wherein the charging current corresponding to the preset voltage range is a constant, or a variable that changes linearly during the preset voltage range.
17. The terminal according to claim 10 , wherein a corresponding between charging currents and preset voltage ranges is preset; and a corresponding between first voltages and charging durations is preset.
18. A non-transitory computer-readable storage medium having stored therein instructions that, when executed by a processor of a mobile terminal, causes the mobile terminal to perform a charging method, the charging method comprising:
when detecting that a battery is charged with a trickle current, acquiring a voltage of the battery;
determining a preset voltage range to which the voltage belongs;
acquiring a charging current corresponding to the preset voltage range; and
charging the battery according to the charging current,
wherein the method further comprises:
when starting to charge the battery with the trickle current, acquiring a first voltage of the battery, and acquiring a charging duration corresponding to the first voltage, wherein the charging duration ranges between charging the battery with the first voltage to charging the battery with a preset voltage threshold, and the preset voltage threshold is a termination voltage of the trickle current charge phase;
when detecting that a charging period of the battery reaches the charging duration, acquiring a second voltage of the battery;
when judging that the second voltage is less than the preset voltage threshold, computing a difference between the second voltage and the preset voltage threshold;
when judging that the difference is less than or equal to a preset difference threshold, determining a target voltage range from the preset voltage ranges; and
acquiring a target charging current corresponding to the target voltage range, and charging the battery according to the target charging current.