In operation 515, the electronic device (e.g., the identification circuit 130) may request turn-on of a host from the processor 110. For example, the identification circuit 130 may transmit a host turn-on request message to the processor 110. The identification circuit 130 may transmit the host turn-on request message to the USB controller 111.
In operation 517, the electronic device (e.g., the processor or the USB controller 111) may turn on the host function. It may be noted that, in operation 507, the host may already be turned on.
In operation 519, the electronic device (e.g., the processor or the USB controller 111) may identify a first external device. The electronic device may additionally determine whether a first external device is recognized through the first input/output interface (a data pin). The USB controller 111 may determine whether a first external device is recognized within a predetermined time ‘T’ from a specific time point.
In operation 521, when the first external device is not recognized within the predetermined time (e.g., when foreign matter such as water or dust exists on the input/output interface), the electronic device (e.g., the processor or the USB controller 111) may inform the identification circuit 130 that there is no first external device. The electronic device (e.g., the processor) may transmit a message indicating that there is no first external device to the identification circuit 130.