Apparatus and method for automatically detecting presence of external device in mobile terminal
View Patent ↗An apparatus to control an external device includes a connector to electrically connect with the external device, a connection detector to determine whether the external device is electrically connected to the connector, and a controller to obtain level information corresponding to the external device from the connector, to determine a type of the external device based on the level information, and to control execution of a function of the apparatus based on the determined type, wherein the level information is different according to the type of the external device.
1. An apparatus to control an external device, comprising:
a connector to electrically connect with the external device;
a connection detector comprising a switch in the connector to determine whether the external device is electrically connected to the connector; and
a controller to obtain voltage level information corresponding to the external device from the connector, to determine a type of the external device based on the voltage level information, and to control execution of a function of the apparatus based on the determined type,
wherein the voltage level information is different according to the type of the external device.
2. The apparatus of claim 1 , wherein the connection detector determines whether the external device is electrically connected to the connector based on a status of the switch in the connector.
3. A method to control an external device, comprising:
electrically connecting with the external device using a connector;
determining, by a switch in the connector, whether the external device is electrically connected to the connector;
obtaining, by a controller, voltage level information corresponding to the external device from the connector;
determining, by the controller, a type of the external device based on the voltage level information; and
controlling, by the controller, execution of a function of an apparatus based on the determined type,
wherein the voltage level information is different according to the type of the external device.
4. The method of claim 3 , wherein the electrical connection between the external device and the connector is determined based on a status of the switch in the connector.