Patent ID: 8838171

Claim:
A mobile terminal, comprising: a wireless communication unit configured to at least perform wireless voice communication with at least one other terminal; a terminal body including a Universal Serial Bus (USB) port configured to be connected to an external device through the USB port; a display unit including a touch detecting member and mounted at the terminal body; a USB driver configured to recognize a USB keyboard device; a detector configured to detect when the external device is connected to the USB port; a USB power identification unit configured to detect if the external device is providing USB power to the mobile terminal or if the mobile terminal is providing the USB power to the external device; and a controller configured to set the mobile terminal as a USB host device when the USB power identification unit determines the mobile terminal is providing the USB power to the external device, and to set the mobile terminal as a USB peripheral device when the USB power identification unit determines the external device is providing the USB power to the mobile terminal, said set USB peripheral device configured to send commands to the external device to perform operations on the external device, wherein the controller displays a message on a display unit of the terminal body notifying a user that the external device is being identified, and wherein, when the mobile terminal is set as the USB peripheral device, the message on the display unit is changed to a GUI related to the external device set as the USB host device, wherein when a connector of the USB keyboard device is connected to the USB port, the controller recognizes the USB keyboard device and determines the keyboard device to be the USB peripheral device such that the user inputs information using the USB keyboard device even though the display unit includes the touch detecting member, wherein, when the connector of the USB keyboard device is connected to the USB port in a standby mode of the mobile terminal, a window for outputting information input by the user is displayed in response to the connection of the USB keyboard device, and wherein, when the connector of the USB keyboard device is connected to the USB port in a state where the window for outputting information input by the user is displayed, the displayed state of the window is maintained.