Patent ID: 8756358

Claim:
A device for identifying whether a USB or a charger is plugged into a mobile terminal, comprising: an interface detection and control module; an electronic switch module; a charging switch module; an identification module; and a baseband USB data transceiving module; wherein said interface detection and control module is connected with a USB interface module the interface detection and control module is adapted to detect D-port signal of said USB interface module, said interface detection and control module is adapted to generate interrupt responses according to changes of said D-port signal so as to output a corresponding control signal to the electronic switch module; said electronic switch module is connected with said USB interface module, said electronic switch module is adapted to receive input signals from said USB interface module, and said electronic switch module is adapted to select said input signals according to said control signal to connect with said baseband USB data transceiving module or charging switch module; said charging switch module is connected with said electronic switch module, said charging switch module is adapted to switch and output an identification signal according to an output signal of said electronic switch module; and said identification module is connected with said USB interface module and charging switch module, respectively, said identification module is adapted to identify a type of an external power supply device that is plugged into the mobile terminal according to signal states of said USB interface module and charging switch module.