According to an embodiment, the electronic device may recognize a connection with an external device (e.g., the electronic device 200 of FIG. 3) through two phases to prevent corrosion of an input/output interface. Even when the electronic device (e.g., the electronic device 100 of FIG. 1) recognizes an external device through an ADC value, the ADC value may be misrecognized due to a foreign material or the like. The electronic device may perform additional identification for connection of the external device for the waterproofing or corrosion protection of the pogo pins or for reducing unnecessary waste of power.
In operation 401, the electronic device (e.g., the identification circuit 130 of FIG. 1 or FIG. 2) may recognize an ID of the external device. For example, the ID of the external device may be a pogo ID. The pogo ID may correspond to a resistance value in the input/output interface 140 (e.g., the input/output interface 140 of FIG. 1 or 2).