An electronic device, comprising: a connector comprising Universal Serial Bus, USB, port including a plurality of pins configured to communicate serial data to an external electronic device; a non-volatile memory; and a processor, wherein the processor is configured to: obtain identification information of a first external electronic device through the connector; identify whether the first external electronic device supports a designated mode based on, at least, the identification information; based on the identification that the first external electronic device supports the designated mode, obtain first additional information related to the first external electronic device using a first pin from among the plurality of pins; based on the identification that the first external electronic device does not support the designated mode, obtain second additional information comprising a vendor ID, VID, related to the first external electronic device using a second pin from among the plurality of pins; and store at least part of the identification information or the second additional information in the non-volatile memory, wherein the processor is configured to provide functions of the first external electronic device based on the VID matching a predetermined VID, and wherein the processor is configured to provide part of the functions of the first external electronic device based on the VID not matching the predetermined VID. a connector comprising Universal Serial Bus, USB, port including a plurality of pins configured to communicate serial data to an external electronic device; a non-volatile memory; and a processor, wherein the processor is configured to: obtain identification information of a first external electronic device through the connector; identify whether the first external electronic device supports a designated mode based on, at least, the identification information; based on the identification that the first external electronic device supports the designated mode, obtain first additional information related to the first external electronic device using a first pin from among the plurality of pins; based on the identification that the first external electronic device does not support the designated mode, obtain second additional information comprising a vendor ID, VID, related to the first external electronic device using a second pin from among the plurality of pins; and store at least part of the identification information or the second additional information in the non-volatile memory, wherein the processor is configured to provide functions of the first external electronic device based on the VID matching a predetermined VID, and wherein the processor is configured to provide part of the functions of the first external electronic device based on the VID not matching the predetermined VID. obtain identification information of a first external electronic device through the connector; identify whether the first external electronic device supports a designated mode based on, at least, the identification information; based on the identification that the first external electronic device supports the designated mode, obtain first additional information related to the first external electronic device using a first pin from among the plurality of pins; based on the identification that the first external electronic device does not support the designated mode, obtain second additional information comprising a vendor ID, VID, related to the first external electronic device using a second pin from among the plurality of pins; and store at least part of the identification information or the second additional information in the non-volatile memory, wherein the processor is configured to provide functions of the first external electronic device based on the VID matching a predetermined VID, and wherein the processor is configured to provide part of the functions of the first external electronic device based on the VID not matching the predetermined VID.