Charging method and device
The embodiment of the invention discloses a charging method and device. The method comprises the following steps: acquiring the port type of a charger, and judging whether the port type is a standard downstream port SDP type or a charging downstream port CDP type; when the port type is the SDP type...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The embodiment of the invention discloses a charging method and device. The method comprises the following steps: acquiring the port type of a charger, and judging whether the port type is a standard downstream port SDP type or a charging downstream port CDP type; when the port type is the SDP type or the CDP type, using a preset current threshold value corresponding to the SDP type or the CDP type to charge; if the port type is not the SDP type or not the CDP type, judging whether the port type is a special charging port DCP type; when the port type is the DCP type, acquiring a charging protocol; when the charging protocol comprises a MediaTek fast-charging protocol PE+2.0, using a charging scheme corresponding to the PE+2.0 to charge; and when the charging protocol comprises the Qualcomm fast-charging protocol QC2.0, using a charging scheme corresponding to the QC2.0 to charge. Through the adoption of the charging method and device, a mobile terminal is charged by detecting the port type of the charger and |
---|