| CPC H02J 7/00712 (2020.01) [H02J 7/0048 (2020.01); H02J 7/0071 (2020.01); H02J 7/00714 (2020.01)] | 14 Claims |

|
1. An electronic device, comprising:
a battery module;
a power supply, configured to provide a supplied power;
a power controller, electrically connected between the battery module and the power supply, to obtain an initial battery capacity of the battery module and a current time when the power supply is connected to an external power supply, and to control the power supply to charge the battery module; and
a processor, electrically connected to the power controller, the processor is configured to:
set a preset target battery capacity and a charging completion time;
obtain a charging battery capacity according to the preset target battery capacity and the initial battery capacity, and obtain a charging time interval according to the charging completion time and the current time;
calculate a calculated battery capacity-time-ratio according to the charging battery capacity and the charging time interval;
convert the calculated battery capacity-time-ratio into a charging power according to a power conversion equation, and transmit the charging power to the power controller, and then the power controller converts the supplied power provided by the power supply to a charging voltage or a charging current according to the charging power; and
charge the battery module to the preset target at a charging end time of the charging time interval;
wherein the power conversion equation uses a linear regression model to represent a relationship between the calculated battery capacity-time-ratio and the charging power, and the calculated battery capacity-time-ratio changes as the charging power changes; and
wherein in order to accurately represent the calculated battery capacity-time-ratio at a specified charging power, smoothing techniques are used to estimate the calculated battery capacity-time-ratio to obtain a smoothing calculated battery capacity-time-ratio, and parameter estimation is performed based on the smoothing calculated battery capacity-time-ratio to obtain the relationship between the calculated battery capacity-time-ratio and the charging power.
|