Patent ID: 8719460
Filing Date: 2014-05-06
Classification: G06F

Abstract:
1. A method for an electronic device for automatically detecting and identifying a peripheral device, the electronic device comprising a connector having a first pin and a second pin and connecting to the peripheral device through the connector, the method comprising: determining whether the peripheral device is connected to the connector; reading a first set of at least two bits of data of the first pin and the second pin, which corresponds to a first state, when determining that the peripheral device is connected to the connector; setting a voltage of the first pin to a first voltage, which corresponds to an output mode, after reading the first set of at least two bits of data, and then, after delaying for a predetermined time period, reading a second set of at least two bits of data of the first pin and the second pin, which corresponds to a second state; and identifying a type of the peripheral device according to at least four bits of identification data, which corresponds to the first and second states, generated by processing the first and second sets of at least two bits of data.