US 12,489,301 B2
Charging method, electronic device and storage medium
Yichun Chen, Beijing (CN)
Assigned to Beijing Xiaomi Mobile Software Co., Ltd., Beijing (CN)
Filed by Beijing Xiaomi Mobile Software Co., Ltd., Beijing (CN)
Filed on Feb. 28, 2022, as Appl. No. 17/682,475.
Claims priority of application No. 202111214015.4 (CN), filed on Oct. 19, 2021.
Prior Publication US 2023/0120651 A1, Apr. 20, 2023
Int. Cl. H02J 7/00 (2006.01); H02J 7/14 (2006.01)
CPC H02J 7/00034 (2020.01) [H02J 7/00712 (2020.01)] 16 Claims
OG exemplary drawing
 
1. A charging method, performed by an electronic device, and comprising:
recognizing a type of a charging device in response to the electronic device being connected to the charging device, wherein the types of the charging devices comprise an adaptive-type charging device and a non-adaptive-type charging device, the adaptive-type charging device refers to a charging device that is effectively connected with and compatible with the electronic device, and the non-adaptive-type charging device refers to a charging device that is not effectively connected with and not compatible with the electronic device;
determining a corresponding charging mode according to the type of the charging device, wherein the charging mode comprises at least a first mode and a second mode, wherein a charging voltage of the first mode can reach a first threshold voltage and a charging voltage of the second mode can reach a second threshold voltage, wherein the first threshold voltage is greater than a rated voltage of a battery, and wherein the rated voltage is greater than the second threshold voltage; and
charging the electronic device in the determined charging mode;
wherein determining the corresponding charging mode according to the type of the charging device comprises:
determining a load capacity of the charging device in response to determining that the type of the charging device is the non-adaptive-type charging device; and
determining the charging mode according to the load capacity;
wherein determining the load capacity of the charging device comprises:
obtaining more than one output voltage of the charging device in an adjusting process, wherein the charging device is configured to adjust either the output voltage or an output current according to an adjusting mode indicated by the electronic device; and
determining the load capacity of the charging device according to the output voltages of the charging device during the adjusting process.