Abstract:
An electronic device according to an embodiment of the present invention comprises: a universal serial bus (USB) interface; a processor electrically connected to the USB interface; and a memory electrically connected to the processor, wherein the memory may store instructions configured to, when executed, cause the processor to: enter a security mode; in the security mode, receive, from an external device connected to the electronic device via the USB interface, a USB class code corresponding to the external device; determine whether the USB class code is included in a white list of connectable devices allowed to be connected to the electronic device in the security mode; and control a communication connection between the external device and the electronic device according to whether the USB class code is included in the white list. Other embodiments are also possible.
Abstract:
A system, an apparatus, and a method of performing a charging operation in a host mode, which can perform a charging operation in a host mode of a terminal includes a terminal for simultaneously receiving a function of performing communication with a peripheral device and a charging function from an external accessory connected in the host mode. The external accessory simultaneously provides the charging function while performing the communication with the peripheral device to the terminal in a client mode.
Abstract:
Electronic devices according to various embodiments of the present invention comprise: a connector for communicating serial data to an external electronic device; a nonvolatile memory; and a processor, wherein the processor is configured to: acquire identification information of the external electronic device via the connector; confirm whether or not a designated mode of the external electronic device is supported at least on the basis of the identification information; based on the identification that the external electronic device supports the designated mode, acquire first additional information associated with the external electronic device; based on the identification that the external electronic device does not support the designated mode, acquire second additional information associated with the external electronic device; and store the identification information or at least a part of the second additional information in the nonvolatile memory.
Abstract:
The present disclosure provides methods and devices for determining a role of an electronic device for an external electronic device upon connecting the electronic device with the external electronic device. An electronic device may comprise a first circuit configured to provide first power to a first external electronic device, a second circuit configured to receive second power from the first external electronic device or a second external electronic device, a connector configured to be electrically connected to the first external electronic device or the second external electronic device, the connector including a configuration pin configured to selectively connect to the first circuit or the second circuit based on a first connection setting, and a processor configured to control the connector, the processor may be further configured to determine a second connection setting to be used for connection of the configuration pin to the first external electronic device or the second external electronic device based on, at least, context information related to the electronic device, context information related the first external electronic device, or context information related to the second external electronic device and to selectively connect the configuration pin to the first circuit or the second circuit based on the second connection setting.
Abstract:
Various embodiments of the present invention relate to an electronic device and a charging control method therefor. The electronic device may comprise: a connection terminal for performing wired communication with an external electronic device; and at least one processor functionally connected to the connection terminal, wherein the at least one processor detects connection of a charging device through the connection terminal, receives state information of at least one adjacent terminal located next to a power terminal of the connection terminal, and controls charging power to be supplied thereto through the charging device, on the basis of the received state information of the adjacent terminal. In addition, various other embodiments are possible.
Abstract:
Electronic devices according to various embodiments of the present invention comprise: a connector for communicating serial data to an external electronic device; a nonvolatile memory; and a processor, wherein the processor is configured to: acquire identification information of the external electronic device via the connector; confirm whether or not a designated mode of the external electronic device is supported at least on the basis of the identification information; based on the identification that the external electronic device supports the designated mode, acquire first additional information associated with the external electronic device; based on the identification that the external electronic device does not support the designated mode, acquire second additional information associated with the external electronic device; and store the identification information or at least a part of the second additional information in the nonvolatile memory.