Patent ID: 11862773
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Electrical machinery, apparatus, energy (Electrical engineering)
Classification: CPC H  G  Y | IPC G  H

Claim 8:
9. A terminal, wherein the terminal comprises:
at least one processor; and
a non-transitory computer-readable storage medium coupled to the at least one processor and storing programming instructions for execution by the at least one processor, wherein the programming instructions instruct the at least one processor to:
obtain historical data that a user uses the terminal within a preset time period;
train, by using a preset machine learning algorithm, the historical data that the user uses the terminal to obtain a usage habit model of the user, wherein training the historical data comprises:
analyzing the historical data by using the preset machine learning algorithm; and
correcting an analysis result, and setting the corrected analysis result to the usage habit model of the user;

obtain a current time and the usage habit model of the user when it is detected that a connection is established between the terminal and a charger;
match the current time with the usage habit model of the user to obtain a charging intention of the user;
determine a charging mode corresponding to the obtained charging intention; and
instruct the charger to charge the terminal according to the determined charging mode.