| CPC G06F 1/266 (2013.01) [G06F 1/28 (2013.01); G06F 1/3212 (2013.01); G06F 1/3296 (2013.01); H02J 7/00034 (2020.01); H02J 2207/30 (2020.01)] | 20 Claims |

|
1. A method, comprising:
controlling an embedded controller to be powered off based on a first electronic device being powered off;
powering on, by the first electronic device when the first electronic device and the embedded controller are in a powered-off state and a first Universal Serial Bus (USB) port of the first electronic device is connected to a second USB port of a second electronic device, the embedded controller based on a first power supply signal that is received from the second electronic device at the first USB port;
obtaining, by the first electronic device, device information of the second electronic device when the embedded controller is powered on; and
charging, by the first electronic device, the second electronic device with a first battery based on the device information.
|