Electronic device, charging method and device, and computer-readable storage medium
AssigneeBeijing Xiaomi Mobile Software Co., Ltd.
InventorJie Fan
Life of this patent
Estimating the term…
Abstract
An electronic device includes a first battery, a second battery, and a serial-parallel conversion circuit. The serial-parallel conversion circuit is coupled to the first battery and the second battery, and is configured to, according to a control signal, couple the first battery and the second battery in series so as to reversely charge on a to-be-charged device by the first battery and the second battery, or couple the first battery and the second battery in parallel so as to supply power to the electronic device by the first battery and the second battery.
Claims18
An electronic device, comprising:
- a first battery;
- a second battery;
- a serial-parallel conversion circuit;
- a USB protocol chip;
- a fourth switching device;
- and
- a charging interface,
- wherein the serial-parallel conversion circuit is coupled to the first battery and the second battery, and configured to switch, according to a control signal, between:
- coupling the first battery and the second battery in series so as to reversely charge a to-be-charged device by the first battery and the second battery;
- and
- coupling the first battery and the second battery in parallel so as to supply power to the electronic device by the first battery and the second battery;
- wherein the USB protocol chip is configured to send a handshake protocol to the to-be-charged device and receive a charging protocol feedback from the to-be-charged device;
- and
- wherein a first terminal of the fourth switching device is connected to a power pin Vbus of the charging interface, a second terminal of the fourth switching device is connected to a power input terminal of the USB protocol chip, and a control terminal of the fourth switching device is connected to a processor of the electronic device, and is configured to turn on or turn off the power pin Vbus of the charging interface and the power input terminal of the USB protocol chip according to the control signal of the processor.
A charging method, which is applicable to an electronic device, the electronic device comprising a first battery, a second battery, a serial-parallel conversion circuit, a USB protocol chip, a fourth switching device, a charging interface and a processor, wherein the USB protocol chip is configured to send a handshake protocol to a to-be-charged device and receive a charging protocol feedback from the to-be-charged device, a first terminal of the fourth switching device is connected to a power pin Vbus of the charging interface, a second terminal of the fourth switching device is connected to a power input terminal of the USB protocol chip, and a control terminal of the fourth switching device is connected to a processor of the electronic device, the method comprising:
- in response to receiving event information indicating to reversely charge a to-be-charged device, controlling the serial-parallel conversion circuit to couple the first battery and the second battery in series to charge a to-be-charged device by the first battery and the second battery connected in series;
- and
- controlling the fourth switching device to turn on or turn off the power pin Vbus of the charging interface and the power input terminal of the USB protocol chip according to a control signal of the processor.
An electronic apparatus, comprising:
- a processor;
- and
- a memory device storing instructions executable by the processor,
- wherein the processor is configured to execute the instructions in the memory device to perform operations of a charging method that is applicable to an electronic device comprising a first battery, a second battery, a serial-parallel conversion circuit, a USB protocol chip, a fourth switching device, and a charging interface, wherein the USB protocol chip is configured to send a handshake protocol to a to-be-charged device and receive a charging protocol feedback from the to-be-charged device, a first terminal of the fourth switching device is connected to a power pin Vbus of the charging interface, a second terminal of the fourth switching device is connected to a power input terminal of the USB protocol chip, and a control terminal of the fourth switching device is connected to a processor of the electronic device, the method comprising:
- in response to receiving event information indicating to reversely charge a to-be-charged device, controlling the serial-parallel conversion circuit to couple the first battery and the second battery in series to charge the to-be-charged device by the first battery and the second battery connected in series;
- and
- controlling the fourth switching device to turn on or turn off the power pin Vbus of the charging interface and the power input terminal of the USB protocol chip according to a control signal of the processor.
Dependencies are inferred from the claim text.