The recognition of the external device may correspond to the recognition of the USB device from the viewpoint of the electronic device. When the external device is recognized as a USB device, the electronic device may operate as a USB host.
In operation 413, when the external device is not recognized within a predetermined time from a specific time point, the electronic device (e.g., the USB controller 111 or the processor 110) may determine that the external device does not exist after the elapse of the predetermined time. The electronic device may transmit a message indicating that there is no external device to the identification circuit 130. For example, the USB controller 111 may monitor data communicated through a data pin during the predetermined time. When the data is not communicated during the interval of the predetermined time, the USB controller 111 may determine that there is no external device. Alternatively, the above operation may be performed by the processor 110 or a USB controller driver operating in the processor 110.
In operation 415, the electronic device (e.g., the processor 110 or the USB controller 111) may determine that there is no external device and stop supplying power. This operation may be referred to as an operation of turning off the booster 142. To prevent corrosion of the pogo pin, the electronic device may deactivate the VBUS of the booster 142.
When it is recognized that there is an external device, the electronic device may perform connection with the external device.