Patent ID: 7987298

Claim:
A system for detecting the status of a universal serial bus port (USB) of a mobile phone, the system comprising: at least one processor; and a storage unit storing a connection status of the USB port and a terminal device, and one or more programs executable by the at least one processor, the one or more programs comprising: a receiving module to receive a connection signal transmitted via a data cable of the USB port when the terminal device is connected to the USB port by the data cable; a voltage measuring module to measure a first voltage of a charging interface of the mobile phone after the connection signal is received; an update module to update the connection status of the USB port to connecting status if the first measured voltage of the charging interface increases; the voltage measuring module also to measure a second voltage of the charging interface every first interval after the first measured voltage increases; and the update module also to update the connection status to connected status if the second measured voltage does not change during a second interval after the first measured voltage increases, to update the connection status to disconnecting status if the second measured voltage decreases, and update the connection status to disconnected status if the second measured voltage does not change during the second interval after the second measured voltage decreases.