| CPC H02J 7/0071 (2020.01) [H02J 7/007182 (2020.01); H02J 50/10 (2016.02); H02J 2207/30 (2020.01); H02J 2310/22 (2020.01)] | 20 Claims |

|
1. An electronic device comprising:
a battery; and
one or more processors coupled to the battery and configured to:
obtain a current time;
charge, in response to the current time being in a first time period and based on a type of charger connected to the electronic device, the battery in a first mode, wherein when charging the battery in the first mode, the one or more processors are further configured to:
charge, using a first maximum charging current, the battery in a constant-current charging manner; and
charge, using a first charging cut-off voltage, the battery in a constant-voltage charging manner after a charging voltage of the battery reaches the first charging cut-off voltage; and
in response to the current time being in a second time period:
charge the battery in the first mode when a battery level is less than a preset threshold; and
charge, based on the type of the charger connected to the electronic device, the battery in a second mode when the battery level is greater than or equal to the preset threshold, wherein the second time period is after the first time period in a whole day, wherein a first charging speed in the first mode is greater than a second charging speed in the second mode, and wherein when charging the battery in the second mode, the one or more processors are further configured to:
charge, using a second maximum charging current, the battery in the constant-current charging manner; and
charge, using a second charging cut-off voltage, the battery in the constant-voltage charging manner after the charging voltage of the battery reaches the second charging cut-off voltage, wherein the first charging cut-off voltage corresponding to the first mode is greater than the second charging cut-off voltage corresponding to the second mode, and wherein the first maximum charging current corresponding to the first mode is greater than the second maximum charging current corresponding to the second mode.
|