According to an embodiment, when the electronic device recognizes the first external device while performing data communication with the second external device, the electronic device may perform an operation associated with the first external device in preference to the second external device. In other words, the first external device may have a priority over the second external device.
In operation 501, the electronic device may detect a connection with a second external device. The electronic device may detect that the second external device is connected to the CC pin of the second input/output interface through the CCIC 170 (e.g., the connection establishment circuit 170 of
In operation 503, the electronic device may turn on a booster function. The processor, the USB controller 111, and/or the CCIC 170 may control the second charger 180 to turn on a power booster function. The power supply may be a VBUS power supply. This operation may correspond to turning on the VBUS booster function.
In operation 505, the electronic device may activate USB host operations. For example, the electronic device may activate the USB controller 111 or the USB host operations through the CCIC 170. For example, the CCIC 170 may turn on the USB controller 111 or turn on the USB host function. The USB controller 111 may include a component that performs the USB host function. The electronic device may perform a USB connection with the second external device and be in a USB connection state with the second external device, and the data path may be in a state of being connected to the second data path.