| CPC G06F 13/24 (2013.01) | 22 Claims |

|
1. An electronic device comprising:
a display;
a first data interface circuit comprising a port for connecting with an external device, and a single 1-wire communication interface configured to exchange bi-directional serial data with the external device;
at least one processor; and
memory storing instructions that, when executed by the at least one processor, cause the electronic device to:
allocate a plurality of input/output ports for processing serial data received from the single 1-wire communication interface of the first data interface circuit in parallel, and receive a first signal from the external device through the single bi-directional 1-wire communication interface of the first data interface circuit,
in response to the first signal being received, identify a port that is set to be in an active state among the plurality of input/output ports,
identify a type of the first signal by using the port that is identified as being in the active state, and
display information corresponding to a result of the identifying on the display,
wherein to identify the port that is in the active state, the instructions, when executed by the at least one processor, further cause the electronic device to identify the port being in a pull-up state or a pull-down state from among the plurality of input/output ports.
|