摘要 |
<p>The present invention discloses a method and terminal for selecting an internal circuit according to a USB interface status. The method includes: connecting a first pin of a USB interface of a terminal to a power supply through a pull-up resistor, where the first pin is a D- or D+ pin of the USB interface; when detecting that an external USB device is inserted into the USB interface of the terminal, detecting whether the level status of the first pin of the USB interface of the terminal is high or low; if the level status is low, connecting D- and D+ pins of the USB interface of the terminal to corresponding pins of a USB data communication module of the terminal and controlling charging of the terminal according to a first policy; if the level status is high, determining whether the level statuses of the D- and D+ pins of the USB interface of the terminal are consistent, and if consistent, controlling charging of the terminal according to a second policy; if inconsistent, controlling charging of the terminal according to a third policy.</p> |