Patent ID: 8798285
Filing Date: 2014-08-05
Classification: G06F,H04M

Abstract:
1. An electronic device connectable with an electronic accessory, the electronic accessory having a plug, the electronic device comprising: a jack configured to receive an insertion of the plug, having at least one first contact terminal and a second contact terminal that are configured to be in contact with at least one first contact and a second contact of the plug, respectively; a voltage processing unit configured to detect whether a voltage is present at the second contact terminal of the jack when the second contact of the plug is in contact with the second contact terminal of the jack; a measuring unit configured to measure a first parameter resulted from a contact of the first contact terminal of the jack with the first contact of the plug and to measure a second parameter resulted from a contact of the second contact terminal of the jack with the second contact of the plug; an audio output unit configured to output a first audio data signal to the electronic accessory through the first contact terminal of the jack when the jack receives the insertion of the plug; an audio receiving unit configured to receive a second audio data signal from the electronic accessory through the second contact terminal of the jack when the jack receives the insertion of the plug; a switching unit configured to selectively connect the first contact terminal of the jack electrically to the audio output unit or the measuring unit according to whether the voltage is present or not, and configured to selectively connect the second contact terminal of the jack electrically to the audio receiving unit, the voltage processing unit or the measuring unit; and a battery electrically connected to the voltage processing unit; wherein upon the voltage processing unit detecting that the voltage is present at the second contact terminal of the jack, the voltage processing unit is configured to charge the battery; otherwise, the switching unit is configured to connect the first contact terminal of the jack electrically to the measuring unit for measuring the first parameter and to connect the second contact terminal of the jack electrically to the voltage processing unit; wherein, when the first parameter measured by the measuring unit has a first predetermined value, the first contact terminal of the jack is switched by the switching unit from being in electrical connection with the measuring unit to being in electrical connection with the audio output unit and the second contact terminal of the jack is switched by the switching unit from being in electrical connection with the voltage processing unit to being in electrical connection with the measuring unit so that the measuring unit measures the second parameter; and wherein, when the second parameter measured by the measuring unit has a second predetermined value, the first contact terminal of the jack is kept in electrical connection with the audio output unit and the second contact terminal of the jack is switched by the switching unit from being in electrical connection with the measuring unit to being in electrical connection with the audio receiving unit for receiving the second audio data signal.