An electronic device comprising: a universal serial bus, USB, C type connector (105, 130) comprising a configuration channel pin, a transmission pin (Tx), and a data pin; a first USB communication circuit connected to the transmission pin (Tx) of the connector (105, 130); a second USB communication circuit; at least one switch configured to connect the data pin of the connector (105, 130) to the first USB communication circuit or to the second USB communication circuit; and a processor, wherein the processor is configured to: verify identification information corresponding to an external electronic device connected with the electronic device through the configuration channel pin; when the external electronic device is verified as an electronic device of a first type comprising both a non-USB device and a USB device based on the verified identification information, connect the transmission pin (Tx) to the first communication circuit and the data pin to the second communication circuit using at least one switch, transmit video data to the external electronic device through the transmission pin (Tx) using the first USB communication circuit and transmit or receive sensor data to or from the external electronic device through the data pin using the second USB communication circuit at the same time; and when the external electronic device is verified as an electronic device of a second type comprising only a USB device based on the verified identification information, connect the data pin of the connector to the first USB communication circuit using the at least one switch, and receive or transmit data from or to the external electronic device through the Tx pin and the data pin using the first USB communication circuit. a universal serial bus, USB, C type connector (105, 130) comprising a configuration channel pin, a transmission pin (Tx), and a data pin; a first USB communication circuit connected to the transmission pin (Tx) of the connector (105, 130); a second USB communication circuit; at least one switch configured to connect the data pin of the connector (105, 130) to the first USB communication circuit or to the second USB communication circuit; and a processor, wherein the processor is configured to: verify identification information corresponding to an external electronic device connected with the electronic device through the configuration channel pin; when the external electronic device is verified as an electronic device of a first type comprising both a non-USB device and a USB device based on the verified identification information, connect the transmission pin (Tx) to the first communication circuit and the data pin to the second communication circuit using at least one switch, transmit video data to the external electronic device through the transmission pin (Tx) using the first USB communication circuit and transmit or receive sensor data to or from the external electronic device through the data pin using the second USB communication circuit at the same time; and when the external electronic device is verified as an electronic device of a second type comprising only a USB device based on the verified identification information, connect the data pin of the connector to the first USB communication circuit using the at least one switch, and receive or transmit data from or to the external electronic device through the Tx pin and the data pin using the first USB communication circuit. verify identification information corresponding to an external electronic device connected with the electronic device through the configuration channel pin; when the external electronic device is verified as an electronic device of a first type comprising both a non-USB device and a USB device based on the verified identification information, connect the transmission pin (Tx) to the first communication circuit and the data pin to the second communication circuit using at least one switch, transmit video data to the external electronic device through the transmission pin (Tx) using the first USB communication circuit and transmit or receive sensor data to or from the external electronic device through the data pin using the second USB communication circuit at the same time; and when the external electronic device is verified as an electronic device of a second type comprising only a USB device based on the verified identification information, connect the data pin of the connector to the first USB communication circuit using the at least one switch, and receive or transmit data from or to the external electronic device through the Tx pin and the data pin using the first USB communication circuit.