Data transceiving method and device

Electronic device in accordance with various embodiments of the present invention, a connector, a first communication circuit connected to the connector, the second communication circuit, and a processor, wherein the processor is an external electronic device, connected to the electronic device via the connector check the identity corresponding to and based upon the identification information, wherein if the external electronic device is the first type, the first communication circuit and the second receiving or transmitting the external electronic device with data via the communication circuit , on the basis of the identification information, wherein if the external electronic device of the second type, the first may be set to 1 so as to receive or transmit the data with the external electronic device through the communication circuit. Further, it is possible other embodiments.