In operation 605, when identifying the change in the ID of the external device 200 (or detects that the pogo ID is removed from the external device), the electronic device (e.g., the processor, the USB controller 111, or the identification circuit 130) may switch a data path. For example, the processor may identify the change in the ID through the identification circuit 130 and switch a path for data communication to a second data path. The multiplexer 150 may be set to select the second data path. According to various embodiments, operation 605 may be omitted.
In operation 607, the electronic device (e.g., the processor, the USB controller 111, or the identification circuit 130) may turn off the USB host function. The electronic device may control the USB controller 111 to turn off the host function of the USB controller 111. For example, the identification circuit 130 may transmit a host turn off request message to the USB controller 111.
In operation 609, the electronic device (e.g., the processor or the USB controller 111) may turn off the host operation. The USB controller 111 may turn off the host operation in response to the host turn off message. The USB controller 111 may include a host block that performs a host function and turn off the host block.