Electronic device for preventing USB device from being damaged and operation method thereof

By detecting the connection between the charging and USB device in the electronic device and controlling the charging voltage, the problem of USB Type-C headphones being damaged due to high voltage heating is solved, and a safe and reliable charging process is achieved.

CN112310756BActive Publication Date: 2024-12-06SAMSUNG ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010753799.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-07-30
Filing Date
2020-07-30
Publication Date
2024-12-06
Estimated Expiration
2040-07-30

AI Technical Summary

Technical Problem

When using a USB Type-C dual adapter that does not support standard specifications, USB Type-C headphones may heat up due to high voltage inflow, resulting in damage.

Method used

By detecting the connection between the charging device and the USB device in the electronic device using a processor and determining a charging voltage that meets the specified conditions, the charging device is requested to provide the voltage to prevent the headset from overheating.

Benefits of technology

It effectively prevents headphone heating problems caused by high voltage and extends the service life of the headphones.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112310756B_ABST
    Figure CN112310756B_ABST
Patent Text Reader

Abstract

The present disclosure provides an electronic device for preventing a universal serial bus (USB) device from being damaged and an operating method thereof. The electronic device includes: a USB connector that can be connected to at least one of a charging device and a universal serial bus (USB) device through a dual adapter; and at least one processor electrically coupled to the USB connector. The at least one processor is configured to: detect the connection of the charging device and the USB device to the electronic device through the USB connector; determine a charging voltage that meets a specified condition in response to the connection of the charging device and the USB device to the electronic device; and request the charging device to provide the determined charging voltage through the USB connector.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to a device and an operating method for preventing a Universal Serial Bus (USB) device connected to an electronic device from being damaged. Background Art

[0002] Electronic devices have been provided in various forms, such as smart phones, tablet personal computers (PCs), and personal digital assistants (PDAs). Electronic devices have also been developed in a form that users can wear in order to improve portability and accessibility for users.

[0003] Recently, electronic devices including USB interfaces of the Type-C standard (hereinafter referred to as USB Type-C interfaces) have been commercialized, and therefore, various USB devices supporting the USB Type-C interfaces have been developed. For example, headphones supporting the USB Type-C interface are provided instead of existing 3.5-Pi headphones.

[0004] The above information is presented as background information only to assist in understanding the present disclosure. No determination has been made, and no assertion is made, as to whether any of the above content may be used as prior art with respect to the present disclosure. Summary of the invention

[0005] An electronic device can use a USB Type-C dual adapter to simultaneously connect to multiple USB devices that support the USB Type-C interface. For example, a USB Type-C dual adapter (dual gender) can be used to connect an electronic device to a charging device that supports fast charging and a USB Type-C headset. However, when using a USB Type-C dual adapter that does not support the standard specification, the high voltage that has been boosted to 9V for fast charging in the charging device flows into the USB bus voltage (V BUS ) cable, heat may be generated in the headset. Heating of the headset may cause damage to the headset.

[0006] Aspects of the present disclosure are to address at least the above problems and / or disadvantages and to provide at least the advantages described below. Therefore, one aspect of the present disclosure is to provide a device and method for preventing damage to a USB device in an electronic device.

[0007] The technical problems to be achieved in the present document are not limited to the above-mentioned technical problems, and those skilled in the art can clearly understand other technical problems not mentioned according to the following description.

[0008] Additional aspects will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the presented embodiments.

[0009] According to one aspect of the present disclosure, an electronic device is provided. The electronic device includes: a universal serial bus (USB) connector, the USB connector can be connected to at least one of a charging device and a USB device through a dual adapter; and at least one processor, the at least one processor is electrically coupled to the USB connector, wherein the at least one processor is configured to: detect the connection of the charging device and the USB device to the electronic device through the USB connector, determine a charging voltage that meets a specified condition in response to the connection of the charging device and the USB device to the electronic device; and request the charging device to provide the determined charging voltage through the USB connector.

[0010] According to another aspect of the present disclosure, an operation method of an electronic device is provided. The operation method includes: detecting a connection between a charging device and a universal serial bus (USB) device and the electronic device through a USB connector provided in the electronic device; determining a charging voltage that satisfies a specified condition in response to the connection between the charging device and the USB device and the electronic device; and requesting the charging device to provide the determined charging voltage through the USB connector.

[0011] According to various embodiments, based on the connection between the charging device and the USB device through the USB Type-C dual adapter, the electronic device may control the charging voltage provided by the charging device to the electronic device to prevent damage caused by heating of the USB device.

[0012] Other aspects, advantages, and salient features of the disclosure will become apparent to those skilled in the art from the following detailed description, which, taken in conjunction with the annexed drawings, discloses various embodiments of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The above and other aspects, features and advantages of certain embodiments of the present disclosure will become more apparent through the following description in conjunction with the accompanying drawings, in which:

[0014] Figure 1 is a block diagram of an electronic device in a network environment according to an embodiment of the present disclosure;

[0015] Figure 2 is a block diagram of an electronic device connected to a power delivery (PD) charging device and a USB device using a USB Type-C dual adapter according to an embodiment of the present disclosure;

[0016] Figure 3 is a view showing a pin structure of a USB connector supporting a USB Type-C interface according to an embodiment of the present disclosure;

[0017] Figure 4is a flowchart illustrating an operation of controlling a charging voltage to prevent damage to a USB device in an electronic device according to an embodiment of the present disclosure;

[0018] Figure 5 is a flowchart illustrating an operation of detecting a power-related role change and limiting selection of a charging voltage in an electronic device according to an embodiment of the present disclosure;

[0019] Fig. 6A is a diagram showing a V BUS A graph showing the change in voltage level;

[0020] Figure 6B is a diagram showing a V in an electronic device according to an embodiment of the present disclosure BUS A graph showing the change in voltage level;

[0021] Figure 7 is a flowchart illustrating an operation of detecting a role change related to power and limiting a request for a selected charging voltage in an electronic device according to an embodiment of the present disclosure;

[0022] Figure 8 is a flowchart illustrating an operation of controlling a charging voltage by identifying USB device information in an electronic device according to an embodiment of the present disclosure;

[0023] Fig. 9 is a flowchart illustrating an operation of controlling a charging voltage using a change in an Rp value in an electronic device according to an embodiment of the present disclosure;

[0024] Fig.10 is a diagram showing a structure of a USB Type-C dual adapter according to an embodiment of the present disclosure; and

[0025] Fig.11 is a flowchart illustrating an operation of controlling a charging voltage provided from a charging device in a USB Type-C dual adapter according to an embodiment of the present disclosure.

[0026] Throughout the drawings, it should be noted that like reference numbers are used to depict the same or similar elements, features, and structures. DETAILED DESCRIPTION

[0027] The following description with reference to the accompanying drawings is provided to assist in a comprehensive understanding of the various embodiments of the present disclosure as defined by the claims and their equivalents. It includes various specific details to assist in understanding, but these specific details are considered to be exemplary only. Therefore, it will be appreciated by those of ordinary skill in the art that various changes and modifications may be made to the various embodiments described herein without departing from the scope and spirit of the invention. In addition, descriptions of well-known functions and configurations may be omitted for clarity and brevity.

[0028] The terms and words used in the following specification and claims are not limited to the bibliographical meanings, but are merely used by the inventor to enable a clear and consistent understanding of the present disclosure. Therefore, it will be apparent to those skilled in the art that the following description of various embodiments of the present disclosure is provided for illustrative purposes only and not for the purpose of limiting the present disclosure as defined by the appended claims and their equivalents.

[0029] It should be understood that the singular forms "a," "an," and "the" include plural referents unless the context clearly dictates otherwise. Thus, for example, reference to "a component surface" includes reference to one or more of such surfaces.

[0030] Figure 1 is a block diagram illustrating an electronic device 101 in a network environment 100 according to an embodiment of the present disclosure.

[0031] Reference Figure 1 , the electronic device 101 in the network environment 100 may communicate with the electronic device 102 via the first network 198 (e.g., a short-range wireless communication network), or communicate with the electronic device 104 or the server 108 via the second network 199 (e.g., a long-range wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 via the server 108. According to an embodiment, the electronic device 101 may include a processor 120, a memory 130, an input device 150, a sound output device 155, a display device 160, an audio module 170, a sensor module 176, an interface 177, a haptic module 179, a camera module 180, a power management module 188, a battery 189, a communication module 190, a user identification module (SIM) 196, or an antenna module 197. In some embodiments, at least one of the components (e.g., the display device 160 or the camera module 180) may be omitted from the electronic device 101, or one or more other components may be added to the electronic device 101. In some embodiments, some of the components may be implemented as a single integrated circuit.For example, the sensor module 176 (eg, a fingerprint sensor, an iris sensor, or an illumination sensor) may be implemented to be embedded in the display device 160 (eg, a display).

[0032] The processor 120 may run, for example, software (e.g., program 140) to control at least one other component (e.g., hardware component or software component) of the electronic device 101 connected to the processor 120, and may perform various data processing or calculations. According to one embodiment, as at least part of the data processing or calculation, the processor 120 may load a command or data received from another component (e.g., sensor module 176 or communication module 190) into the volatile memory 132, process the command or data stored in the volatile memory 132, and store the resultant data in the non-volatile memory 134. According to an embodiment, the processor 120 may include a main processor 121 (e.g., a central processing unit (CPU) or an application processor (AP)) and an auxiliary processor 123 (e.g., a graphics processing unit (GPU), an image signal processor (ISP), a sensor hub processor, or a communication processor (CP)) that is independent of or combined with the main processor 121 in operation. Additionally or alternatively, the auxiliary processor 123 may be adapted to consume less power than the main processor 121, or adapted to be specifically used for a specified function. The auxiliary processor 123 may be implemented separately from the main processor 121 , or as part of the main processor 121 .

[0033] When the main processor 121 is in an inactive (e.g., sleep) state, the auxiliary processor 123 may control at least some of the functions or states related to at least one component (e.g., display device 160, sensor module 176, or communication module 190) among the components of the electronic device 101 (not the main processor 121), or when the main processor 121 is in an active state (e.g., running an application), the auxiliary processor 123 may control at least some of the functions or states related to at least one component (e.g., display device 160, sensor module 176, or communication module 190) among the components of the electronic device 101 together with the main processor 121. According to an embodiment, the auxiliary processor 123 (e.g., an image signal processor or a communication processor) may be implemented as part of another component (e.g., camera module 180 or communication module 190) that is functionally related to the auxiliary processor 123.

[0034] The memory 130 may store various data used by at least one component of the electronic device 101 (e.g., the processor 120 or the sensor module 176). The various data may include, for example, software (e.g., the program 140) and input data or output data for commands related thereto. The memory 130 may include a volatile memory 132 or a nonvolatile memory 134.

[0035] The program 140 may be stored as software in the memory 130 , and may include, for example, an operating system (OS) 142 , middleware 144 , or applications 146 .

[0036] The input device 150 may receive commands or data from outside the electronic device 101 (e.g., a user) to be used by other components of the electronic device 101 (e.g., the processor 120). The input device 150 may include, for example, a microphone, a mouse, a keyboard, or a digital pen (e.g., a stylus).

[0037] The sound output device 155 can output a sound signal to the outside of the electronic device 101. The sound output device 155 may include, for example, a speaker or a receiver. The speaker can be used for general purposes such as playing multimedia or playing records, and the receiver can be used for incoming calls. Depending on the embodiment, the receiver can be implemented as a separate part from the speaker, or as a part of the speaker.

[0038] The display device 160 may visually provide information to the outside of the electronic device 101 (e.g., a user). The display device 160 may include, for example, a display, a holographic device, or a projector, and a control circuit for controlling a corresponding one of the display, the holographic device, and the projector. According to an embodiment, the display device 160 may include a touch circuit adapted to detect a touch or a sensor circuit (e.g., a pressure sensor) adapted to measure the strength of a force caused by a touch.

[0039] The audio module 170 may convert sound into an electrical signal, or vice versa. According to an embodiment, the audio module 170 may obtain sound via the input device 150, or output sound via the sound output device 155 or an earphone of an external electronic device (e.g., electronic device 102) directly (e.g., wired) or wirelessly connected to the electronic device 101.

[0040] The sensor module 176 may detect an operating state (e.g., power or temperature) of the electronic device 101 or an environmental state (e.g., a state of a user) outside the electronic device 101, and then generate an electrical signal or data value corresponding to the detected state. According to an embodiment, the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, an atmospheric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an infrared (IR) sensor, a biometric sensor, a temperature sensor, a humidity sensor, or an illumination sensor.

[0041] The interface 177 may support one or more specific protocols to be used to connect the electronic device 101 directly (e.g., wired) or wirelessly to an external electronic device (e.g., the electronic device 102). According to an embodiment, the interface 177 may include, for example, a high-definition multimedia interface (HDMI), a universal serial bus (USB) interface, a secure digital (SD) card interface, or an audio interface.

[0042] The connection end 178 may include a connector, wherein the electronic device 101 can be physically connected to an external electronic device (e.g., the electronic device 102) via the connector. According to an embodiment, the connection end 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).

[0043] The haptic module 179 may convert the electrical signal into mechanical stimulation (eg, vibration or motion) or electrical stimulation that can be recognized by the user via his sense of touch or kinesthetic sense. According to an embodiment, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulator.

[0044] The camera module 180 may capture still images or moving images. According to an embodiment, the camera module 180 may include one or more lenses, an image sensor, an image signal processor, or a flash.

[0045] The power management module 188 may manage power supply to the electronic device 101. According to an embodiment, the power management module 188 may be implemented as, for example, at least a part of a power management integrated circuit (PMIC).

[0046] The battery 189 may power at least one component of the electronic device 101. According to an embodiment, the battery 189 may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.

[0047] The communication module 190 may support establishing a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (e.g., electronic device 102, electronic device 104, or server 108), and perform communication via the established communication channel. The communication module 190 may include one or more communication processors capable of operating independently from the processor 120 (e.g., an application processor (AP)) and supporting direct (e.g., wired) communication or wireless communication. According to an embodiment, the communication module 190 may include a wireless communication module 192 (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (e.g., a local area network (LAN) communication module or a power line communication (PLC) module). A corresponding one of these communication modules can communicate with an external electronic device via a first network 198 (e.g., a short-range communication network such as Bluetooth, Wireless Fidelity (Wi-Fi) Direct, or Infrared Data Association (IrDA)) or a second network 199 (e.g., a long-range communication network such as a cellular network, the Internet, or a computer network (e.g., a LAN or a Wide Area Network (WAN)). These various types of communication modules can be implemented as a single component (e.g., a single chip), or these various types of communication modules can be implemented as multiple components separated from each other (e.g., multiple chips). The wireless communication module 192 can identify and authenticate the electronic device 101 in a communication network (such as the first network 198 or the second network 199) using user information (e.g., an International Mobile Subscriber Identity (IMSI)) stored in the user identification module 196.

[0048] The antenna module 197 may transmit or receive a signal or power to or from the outside of the electronic device 101 (e.g., an external electronic device). According to an embodiment, the antenna module 197 may include an antenna including a radiating element formed of a conductive material or a conductive pattern formed in or on a substrate (e.g., a PCB). According to an embodiment, the antenna module 197 may include a plurality of antennas. In this case, at least one antenna suitable for a communication scheme used in a communication network (such as the first network 198 or the second network 199) may be selected from the plurality of antennas by, for example, the communication module 190 (e.g., the wireless communication module 192). A signal or power may then be transmitted or received between the communication module 190 and the external electronic device via the selected at least one antenna. According to an embodiment, another component (e.g., a radio frequency integrated circuit (RFIC)) other than the radiating element may be additionally formed as a part of the antenna module 197.

[0049] At least some of the above components may be connected to each other via an inter-peripheral communication scheme (e.g., a bus, general purpose input output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and communicatively transmit signals (e.g., commands or data) therebetween.

[0050] According to an embodiment, a command or data may be sent or received between the electronic device 101 and the external electronic device 104 via the server 108 connected to the second network 199. Each of the electronic device 102 and the electronic device 104 may be a device of the same type as the electronic device 101, or a device of a different type from the electronic device 101. According to an embodiment, all or some operations to be executed in the electronic device 101 may be executed in one or more of the external electronic device 102, the external electronic device 104, or the server 108. For example, if the electronic device 101 should automatically execute a function or service or should execute a function or service in response to a request from a user or another device, the electronic device 101 may request the one or more external electronic devices to execute at least part of the function or service instead of executing the function or service, or the electronic device 101 may request the one or more external electronic devices to execute at least part of the function or service in addition to executing the function or service. The one or more external electronic devices that receive the request may execute the requested at least part of the function or service, or execute another function or another service related to the request, and transmit the result of the execution to the electronic device 101. The electronic device 101 may provide the result as at least a partial reply to the request with or without further processing the result. To this end, for example, cloud computing technology, distributed computing technology, or client-server computing technology may be used.

[0051] According to various embodiments, the processor 120 may detect the connection of at least two external devices through a USB connector using a USB interface. The USB connector may be a USB Type-C connector. The external device may include at least one of a USB Type-C device and a USB Type-C charging device. The USB Type-C device may include at least one of a USB Type-C headset and a USB Type-C memory. The above examples are exemplary, and the USB Type-C devices according to various embodiments will not be limited to examples of such configurations. According to an embodiment, the USB connector may be connected to two external devices via a USB Type-C dual adapter.

[0052] According to an embodiment, the processor 120 may detect the connection of the USB device and the charging device through the USB dual adapter using the USB interface. The processor 120 may determine whether the USB device and the charging device are connected through the USB connector and the USB Type-C dual adapter connected to the USB connector based on at least one of a power-related role change, identification information of the connected USB device, and a change in the Rp current level through a CC pin (e.g., CC1 pin or CC2 pin) of the USB connector.

[0053] According to an embodiment, if a USB device and a charging device are connected through a USB connector and a USB Type-C dual adapter connected to the USB connector, the processor 120 may control the charging voltage output from the charging device to prevent the USB device from being burned out due to the charging voltage output from the charging device. For example, the processor 120 may determine a charging voltage less than or equal to a specified voltage, and request the charging device to provide the determined charging voltage. The specified voltage may be configured and / or changed by the designer, and may be configured in consideration of voltages that may be supported by various USB devices. For example, the specified voltage may be configured to be approximately 5V.

[0054] Figure 2 2 is a block diagram 200 of an electronic device 101 connected to a PD charging device 251 and a USB device 255 using a USB Type-C dual adapter 253 according to an embodiment of the present disclosure.

[0055] Figure 2 The electronic device 101 may be Figure 1 The electronic device 101. In the following, Figure 2 The operation of at least some elements of Figure 3 describe.

[0056] Figure 3 is a diagram illustrating a pin structure 300 of a USB connector 209 supporting a USB Type-C interface according to an embodiment of the present disclosure.

[0057] refer to Figure 2 , the electronic device 101 according to various embodiments may include a software module 201 and a hardware module 207. The software module 201 may include a framework 203 and a kernel 205 for controlling one or more resources of the electronic device 101.

[0058] The framework 203 may provide applications for providing various functions using functions or information provided from one or more resources of the electronic device 101. The framework 203 may include, for example, a USB framework 211, a battery service 213, and a USB port manager 215. The USB framework 211 may manage data communication functions using a USB connector 209. The battery service 213 may provide functions related to battery charging. The USB port manager 215 may provide functions related to identifying the connection of an external device and determining a voltage to be provided from and / or to an external device. The USB framework 211, the battery service 213, and the USB port manager 215 may communicate with a USB driver 221, a charging driver 223, and a power delivery IC (PDIC) driver 225, respectively.

[0059] The kernel 205 may control the management (e.g., allocation or retrieval) of one or more system resources (e.g., processes, memory, or power) of the electronic device 101. The kernel 205 may include one or more drivers for driving other hardware devices of the electronic device 101, such as the input device 150, the sound output device 155, the display device 160, the audio module 170, the sensor module 176, the interface 177, the haptic module 179, the camera module 180, the power management module 188, the battery 189, the communication module 190, the user identification module 196, or the antenna module 197. For example, the kernel 205 may include programs for the USB driver 221, the charging driver 223, and the PDIC driver 225.

[0060] The hardware module 207 may include a USB controller 231, a charging IC 233, and a PDIC chipset 235. The USB controller 231 may perform USB data communication using the D+ / D- pins 301, 302, 303, and 304 of the USB connector 209. The USB controller 231 may be included in an application processor (AP). The charging IC 233 may receive a charging voltage from a PD charging device 251, which utilizes the V BUSThe pins 321, 322, 323, and 324 are connected through at least one of the USB connector 209 and the USB Type-C dual adapter 253, or may provide voltage to the USB device 255 connected to the electronic device 101 through at least one of the USB connector 209 and the USB Type-C dual adapter 253. The PDIC chipset 235 may perform USB PD communication through the CC pins 311 and 312 of the USB connector 209, and may perform functions related to power negotiation with the PD charging device 251 connected through the USB connector 209 and the USB Type-C dual adapter 253. The PDIC chipset 235 may recognize the resistance of the CC pins 311 and 312 of the USB connector 209. The charging IC 233 and the PDIC chipset 235 may be composed of an IF PMIC.

[0061] According to various embodiments, based on the first resistor Rd (e.g., 5.1Ω) or the second resistor Rp (e.g., 56Ω) recognized by the PDIC chipset 235, the PDIC driver 225 may recognize that an external device is connected through at least one of the USB connector 209 and the USB Type-C dual adapter 253 connected to the USB connector 209. The PDIC driver 225 may determine the power role of the electronic device 101 based on the resistance value recognized by the CC pins 311 and 312. For example, if the first resistor is recognized by the CC pins 311 and 312, the PDIC driver 225 may determine that the electronic device 101 is used as a source device (or host device) for power supply. If the second resistor is recognized by the CC pins 311 and 312, the PDIC driver 225 may determine that the electronic device 101 is used as a sink device (or slave device) for receiving power. According to an embodiment, the PDIC driver 225 may switch the role of the electronic device 101 to the source device based on the resistance value detected by the CC pin, and then perform USB data communication through the D+ / D- pins 301, 302, 303, and 304 to determine that the USB device 255 (e.g., a USB headset) has been connected through at least one of the USB connector 209 and the USB Type-C dual adapter 253. According to an embodiment, if the role of the electronic device 101 is switched to the sink device based on the resistance value detected by the CC pin, the PDIC driver 225 may determine that the PD charging device 251 is connected through at least one of the USB connector 209 and the USB Type-C dual adapter 253.

[0062] According to an embodiment, if the identified resistance changes from a first resistance value to another resistance value, the PDIC driver 225 may determine that a detach event occurs. The PDIC driver 225 may determine whether the CC pins 311 and 312 recognize a second resistance within a specified time (e.g., approximately 320 ms) from the time point when the detach event occurs. If the CC pins 311 and 312 recognize a second resistance within a specified time after the time point when the detach event occurs, the PDIC driver 225 may determine that in addition to the state in which the USB device 255 has been connected to the electronic device 101 through the USB connector 209 and the USB Type-C dual adapter 253, the PD charging device 251 is also connected to the electronic device 101. For example, the PDIC driver 225 may determine (or identify) whether the time taken to switch the role of the electronic device 101 to the sink device receiving power after the detach event occurs is within a specified time in a state in which the role of the electronic device 101 corresponds to a source device for supplying power. In addition, if the time taken to switch the role of the electronic device 101 from the source device to the sink device after a separation event occurs is within a specified time, the PDIC driver 225 can determine that in addition to the state that the USB device 255 is already connected to the electronic device 101 via the USB connector 209 and the USB Type-C dual adapter 253, the PD charging device 251 is also connected to the electronic device 101.

[0063] According to an embodiment, the PDIC driver 225 can obtain the identification information of the USB device 255 through the CC pins 311 and 312, and temporarily store the obtained identification information of the USB device 255. The information of the USB device 255 may include at least one of the service operator identification information (vendor ID) and the product identification information (product ID). In the state where the identification information of the USB device 255 is stored, if the role of the electronic device 101 is switched from the source device to the sink device (i.e., source device->detection of the separation event->switching to the sink device) within a specified time after the separation event occurs, the PDIC driver 225 can determine that in addition to the state that the USB device 255 has been connected to the electronic device 101 through the USB connector 209 and the USB Type-C dual adapter 253, the PD charging device 251 has also been connected to the electronic device 101.

[0064] According to an embodiment, in the case where an additional connection of the PD charging device 251 is detected in a state where the USB device 255 is connected to the electronic device 101, the PDIC driver 225 may determine the situation as a situation in which the charging voltage needs to be limited and perform an operation of limiting the charging voltage. The operation of limiting the charging voltage may include at least one of the following operations: an operation of requesting the charging voltage to be limited from the charging driver 223 or an operation of rejecting a request to increase the charging voltage from the charging driver 223.

[0065] According to an embodiment, in the case where a change in the Rp current level is detected through the CC pins 311 and 312 and the change in the Rp current level satisfies a specified condition, the PDIC driver 225 may determine the situation as a situation where the charging voltage needs to be limited and perform an operation of limiting the charging voltage. For example, in a state where a separation event is not detected, in the case where the Rp current level decreases from a first level (e.g., 3 A) to a second level (e.g., 1.5 A) or the Rp current level decreases from a second level (e.g., 1.5 A) to a third level (e.g., 500 mA), the PDIC driver 225 may determine that in addition to the state where the PD charging device 251 is already connected to the electronic device 101, the USB device 255 is also already connected to the electronic device 101.

[0066] According to an embodiment, in the case where an additional connection of the USB device 255 is detected in a state where the PD charging device 251 is already connected to the electronic device 101, the PDIC driver 225 may determine this situation as a situation where the charging voltage needs to be limited and perform an operation of limiting the charging voltage. The operation of limiting the charging voltage may include at least one of the following operations: an operation of requesting the charging driver 223 to limit the charging voltage or an operation of rejecting a request to increase the charging voltage from the charging driver 223.

[0067] According to an embodiment, upon receiving a signal from the charging driver 223 requesting charging at a selected charging voltage, the PDIC driver 225 may transmit the received charging request signal to the PD charging device 251 through the PDIC chipset 235. According to an embodiment, in order to limit the charging voltage, the PDIC driver 225 may compare the charging voltage selected by the charging driver 223 with a specified voltage and determine whether to transmit the received charging request signal to the PD charging device 251. If the charging voltage selected by the charging driver 223 is less than or equal to the specified voltage, the PDIC driver 225 may transmit the received charging request signal to the PD charging device 251 through the PDIC chipset 235. If the charging voltage selected by the charging driver 223 is greater than the specified voltage, the PDIC driver 225 does not transmit the received charging request signal to the PD charging device 251, but transmits a rejection signal regarding the charging request to the PDIC driver 225.

[0068] According to various embodiments, if the PD charging device 251 is connected through the USB connector 209, the charging driver 223 may receive a list indicating the charging voltages that the PD charging device 251 can support from the PDIC driver 225. The charging driver 223 may select a desired charging voltage from the list indicating the charging voltages that the PD charging device 251 can support. According to an embodiment, in the case of receiving a request to limit the charging voltage from the PDIC driver 225, the charging driver 223 may select a charging voltage that is less than or equal to a specified voltage from the list indicating the supportable charging voltage. The charging driver 223 may send a signal requesting charging at the selected charging voltage to the PDIC driver 225. According to an embodiment, if a charging voltage limit request is received from the PDIC driver 225 when charging the battery at a charging voltage greater than the specified voltage, the charging driver 223 may select a charging voltage that is less than or equal to the specified voltage, and may send a signal requesting charging at the selected charging voltage to the PDIC driver 225.

[0069] According to various embodiments, the electronic device 101 may include: a first type of USB connector (eg, Figure 2 USB connector 209), which can be connected through a dual adapter (e.g., Figure 2 USB Type-C dual adapter 253) and a charging device (e.g., Figure 2 PD charging device 251) and USB device (e.g., Figure 2 at least one of the USB devices 255); and a processor (eg, Figure 1 The processor 120 is configured to: detect the connection between the charging device 251 and the USB device 255 and the electronic device 101 through the USB connector 209; determine a charging voltage that meets a specified condition in response to the connection between the charging device 251 and the USB device 255 and the electronic device 101; and request the charging device 251 to provide the determined charging voltage through the USB connector 209.

[0070] According to an embodiment, the designated condition may be configured based on a maximum voltage that the USB device 255 can support.

[0071] According to an embodiment, if the charging device 251 and the USB device 255 are connected to the electronic device 101 , the processor 120 may acquire a list including information on charging voltages supportable by the charging device 251 from the charging device 251 .

[0072] According to an embodiment, the processor may be configured to determine a charging voltage less than or equal to a designated voltage among charging voltages supportable by the charging device 251 as the charging voltage of the electronic device 101 .

[0073] According to an embodiment, if the charging device 251 and the USB device 255 are connected to the electronic device 101, the processor 120 may be configured to obtain a list including information about charging voltages supportable by the charging device 251 from the charging device 251. In addition, the processor 120 may be configured to select a charging voltage from the charging voltages supportable by the charging device 251, compare the selected charging voltage with a specified voltage, and determine whether to request the charging device to provide the selected charging voltage.

[0074] According to an embodiment, the processor 120 may be configured to request the charging device to provide the selected charging voltage if the selected charging voltage is less than or equal to the specified voltage. In addition, if the selected charging voltage is greater than the specified voltage, the processor 120 may be configured to: reselect another charging voltage from the charging voltages included in the acquired list; compare the reselected another charging voltage with the specified voltage to determine whether to request the charging device to provide the reselected another charging voltage.

[0075] According to an embodiment, if the charging device 251 and the USB device 255 are connected to the electronic device 101, the processor 120 may be configured to determine a current charging voltage having a specified voltage received from the charging device 251. In addition, if the current charging voltage is greater than the specified voltage, the processor 120 may be configured to select a charging voltage less than or equal to the specified voltage from the charging voltages supportable by the charging device 251, and request the charging device 251 to provide the selected charging voltage through the USB connector 209.

[0076] According to an embodiment, the processor 120 can be configured to detect the connection between the charging device 251 and the USB device 255 and the electronic device 101 through the USB connector 209 based on at least one of a change in the power role of the electronic device 101, identification information of the USB device 255, or a change in the current level identified by the CC pin of the USB connector 209.

[0077] According to an embodiment of the present disclosure, in a state where the role of the electronic device 101 corresponds to a source device for providing a voltage, the processor 120 can detect the occurrence of a detach event based on a resistance value identified by a CC pin of the USB connector 209, and can determine whether the role of the electronic device is switched to a sink device for receiving a voltage within a specified time from the time point when the detach event occurs. In addition, if the role of the electronic device is switched to a sink device for receiving a voltage within a specified time from the time point when the detach event occurs, the processor 120 can be configured to determine that, in addition to the state where the USB device 255 has been connected to the electronic device 101 through the USB connector 209, the charging device 251 has also been connected to the electronic device 101.

[0078] According to an embodiment, the processor 120 may be configured to: detect the connection of the USB device 255 to the USB connector 209 based on the resistance value identified by the CC pin of the USB connector 209; obtain the identification information of the USB device 255 from the USB device 255, and store the obtained identification information. In addition, if a detach event occurs in a state where the identification information of the USB device 255 is stored and the role of the electronic device is switched to a sink device that receives a voltage within a specified time from the time point when the detach event occurs, the processor may be configured to determine that, in addition to the state in which the USB device 255 has been connected to the electronic device 101 through the USB connector 209, the charging device 251 has also been connected to the electronic device 101.

[0079] According to an embodiment, if the CC pin of the USB connector 209 detects a current level change and the current level change satisfies a specified condition, the processor 120 may be configured to determine that, in addition to the state in which the charging device 251 has been connected to the electronic device 101 via the USB connector 209, the USB device 255 has also been connected to the electronic device 101.

[0080] Figure 4 4 is a flowchart illustrating an operation of controlling a charging voltage to prevent a USB device in an electronic device from being damaged according to an embodiment of the present disclosure.

[0081] Here, the electronic device may be Figure 1 An electronic device 101.

[0082] Reference Figure 4 In operation 401, an electronic device (eg, Figure 1 The processor 120 and / or Figure 2 The PDIC driver 225) can detect the charging device (e.g., Figure 2 PD charging devices) and USB devices (e.g. Figure 2 USB device 255) through a USB connector (e.g., Figure 1 The connection terminal 178 and / or Figure 2 According to an embodiment, the processor 120 may determine (or identify) whether the USB device and the charging device are connected through the USB connector 209 (or 178) and the USB Type-C dual adapter (e.g., USB Type-C dual adapter) connected to the USB connector 209 (or 178) based on at least one of the power role change, the identification information of the USB device 255 being connected, or the Rp current level change through the CC pin of the USB connector 209 (or 178). Figure 2The USB Type-C dual adapter 253 of the electronic device 101 is connected to the electronic device 101. For example, the processor 120 may detect that the power role of the electronic device 101 is switched from the source device to the sink device after the separation event occurs, based on the resistance recognized by the CC pin of the USB connector 209 (or 178). The processor 120 may measure the time consumed when the power role of the electronic device 101 is changed from the source device to the sink device after the separation event occurs, and if the measured time falls within the specified time, the processor 120 may detect that in addition to the state in which the USB device 255 is already connected to the electronic device 101, the charging device 251 is also connected to the electronic device 101. According to another example, if the power-related role of the electronic device 101 is switched from the source device to the sink device after the separation event occurs within the specified time in a state in which the identification information of the USB device 255 is stored, the processor 120 may detect that in addition to the state in which the USB device 255 is already connected to the electronic device 101, the charging device 251 is also connected to the electronic device 101. According to another example, the processor 120 can detect a change in the Rp current level through the CC pin, and if the change in the Rp current level satisfies a specified condition, the processor 120 can detect that in addition to the state in which the charging device 251 is already connected to the electronic device 101, the USB device 255 is also already connected to the electronic device 101.

[0083] According to various embodiments, at operation 403, the electronic device (eg, the processor 120, Figure 2 The PDIC driver 225 and / or the charging driver 223) can determine that the charging voltage meets the specified condition. For example, the processor 120 can determine that the charging voltage is less than or equal to the specified voltage. According to an embodiment, when the connection between the charging device 251 and the USB device 255 and the electronic device 101 is detected, the processor 120 can determine the value of the charging voltage to be less than or equal to the specified voltage to protect the USB. The specified voltage can be configured by considering the maximum voltage that various USB devices can support. For example, the specified voltage can be configured to be approximately 5V.

[0084] According to various embodiments, at operation 405, the electronic device (e.g., the processor 120, the PDIC driver 225, and / or the charging driver 223) may request the determined charging voltage from the charging device. According to an embodiment, the processor 120 may send a request signal including information about the determined charging voltage to the charging device 251 through the CC pin of the USB connector 209 (or 178).

[0085] Figure 5 5 is a flowchart illustrating an operation of limiting selection of a charging voltage by detecting a role change related to power in an electronic device according to an embodiment of the present disclosure.

[0086] Here, the electronic device may be Figure 1 The electronic device 101 described below Figure 5 The operation can be Figure 4 At least some detailed operations of operation 401, operation 403 and operation 405.

[0087] Reference Figure 5 In operation 501, an electronic device (eg, Figure 1 The processor 120 and / or Figure 2 The PDIC driver 225) can determine the USB device (e.g., Figure 2 USB device 255) through a USB connector (e.g., Figure 1 The connection terminal 178 and / or Figure 2 According to an embodiment, if a first resistance Rd (e.g., 5.1Ω) is recognized by the CC pin of the USB connector 209 (or 178) through the PDIC chipset 235, the PDIC driver 225 can determine that the electronic device 101 is used as a source device for supplying power to the USB device 255, and USB data communication can be performed through the D+ / D- pins 301, 302, 303, and 304 to determine that the USB device 255 is connected to the USB connector 209 (or 178). If the resistance recognized by the CC pin of the USB connector 209 (or 178) changes from the first resistance value to a different resistance value when the electronic device 101 operates as a source device, the PDIC driver 225 can determine that a detach event has occurred.

[0088] According to various embodiments, if a detach event occurs in a state where the USB device 255 is connected through the USB connector 209 (or 178), the electronic device (e.g., the processor 120 and / or the PDIC driver 225) may determine whether a sink attachment event occurs within a specified time in operation 503. For example, the PDIC driver 225 may determine whether a second resistor Rp (e.g., 56Ω) is recognized by the CC pin of the USB connector 209 (or 178) within a specified time (e.g., approximately 320ms) from the time point when the detach event occurs. If the second resistor is recognized, the PDIC driver 225 may change the role of the electronic device 101 to a sink device for receiving power, and may determine that a sink attachment event occurs.

[0089] According to various embodiments, at operation 505, if a sink attachment event occurs within a specified time, the electronic device (e.g., the processor 120 and / or the PDIC driver 225) may determine that a charging voltage limit event occurs. For example, if a detach event occurs in a state where the USB device 255 is connected via the USB connector 209 (or 178), and a sink attachment event occurs within a specified time after the time point at which the detach event occurs, the PDIC driver 225 may determine that, in addition to the USB device 255 having been connected via the USB connector 209 (or 178) and the USB Type-C dual adapter (e.g., Figure 2 The charging device ( Figure 2 The PDIC driver 225 may determine that a charging voltage limitation is required to prevent the USB device 255 from burning out if the charging device 251 is also connected to the electronic device 101 in addition to the state in which the USB device 255 is already connected to the electronic device 101. The PDIC driver 225 may provide a notification of the need to limit the charging voltage to the charging driver 223. For example, the PDIC driver 225 may provide a notification of the need to limit the charging voltage to the charging driver 223 by sending information to the charging driver 223 indicating that the charging device 251 is also connected to the electronic device 101 in addition to the state in which the USB device 255 is already connected to the electronic device 101. According to another example, the PDIC driver 225 may send information indicating that a charging voltage limitation event has occurred to the charging driver 223.

[0090] According to various embodiments, at operation 507, an electronic device (eg, Figure 2 The processor 120 and / or the charging driver 223) may select a charging voltage less than or equal to a specified voltage from a list of power that the charging device can support. The list of power that the charging device can support may indicate the charging voltages that the charging device can support. For example, the charging driver 223 may receive a list indicating the charging voltages that the charging device 251 can support from the charging device 251. The charging driver 223 may select a charging voltage less than or equal to a specified voltage from a list indicating the charging voltages that the charging device 251 can support. For example, if 5V and 9V are supportable with reference to the list of charging voltages that the charging device 251 can support, the charging driver 223 may select a charging voltage of 5V that is equal to the specified voltage (e.g., approximately 5V).

[0091] According to various embodiments, at operation 509, the electronic device (e.g., the processor 120, the charging driver 223, and / or the PDIC driver 225) may request the charging device to provide the selected charging voltage. The charging driver 223 may provide a request signal indicating the selected charging voltage to the PDIC driver 225, and the PDIC driver 225 may send a request signal indicating the selected charging voltage to the charging device 251 through the PDIC chipset 235.

[0092] Fig. 6A is a diagram showing a V BUS Voltage level variation curve. Figure 6B FIG. 2 is a diagram showing a V in an electronic device according to an embodiment of the present disclosure. BUS Graph of the variation of voltage levels.

[0093] Fig. 6A FIG. 2 shows a state where, in addition to the USB device 255 being connected to the electronic device according to the prior art via the USB Type-C dual adapter, a PD charging device is also connected to the electronic device. BUS The pin measures changes in voltage level. Figure 6B 253 is connected to the electronic device 101 according to various embodiments, and a PD charging device is also connected to the electronic device 101. BUS The pin measures changes in voltage level.

[0094] Reference Fig. 6A If only a USB device is connected to the electronic device according to the prior art, a 5V voltage (indicated by reference numeral 601) provided by the electronic device to the USB device may be applied to V BUS If, in addition to the state in which the USB device has been connected to the electronic device according to the prior art, the PD charging device has also been connected to the electronic device and a detachment event and a sink attachment event have occurred (indicated by reference numeral 603), the electronic device may select a maximum charging voltage (e.g., 9V) among the charging voltages that can be supported by the charging device, and may request the charging device to provide the selected charging voltage. Therefore, the 9V boost voltage (indicated by reference numeral 605) provided from the PD charging device to the electronic device may be applied to V BUS pin. You can apply to V BUS The 9V boost voltage of the pin is provided to the USB device connected to the electronic device. Generally, since the USB device can support an overvoltage of 9V exceeding the maximum voltage, heating may occur in the USB device, thereby damaging the USB device.

[0095] like Figure 6B As shown, if only a USB device (e.g., Figure 2 If the USB device 255 of the electronic device is connected to the electronic device 101, the 5V voltage (indicated by reference numeral 611) provided from the electronic device to the USB device 255 can be applied to V BUS If, in addition to the state in which a USB device has been connected to the electronic device 101 according to various embodiments, a PD charging device (eg, Figure 2 When the PD charging device 251 of the electronic device 101 is also connected to the electronic device and a detachment event and a sink attachment event (indicated by reference numeral 613) occur, the electronic device can determine the above situation as a situation where the charging voltage needs to be limited, and can select a charging voltage less than or equal to a specified voltage (for example: 5V), and can request the charging device to provide the selected charging voltage. Therefore, the 5V voltage (indicated by reference numeral 615) provided by the PD charging device 251 to the electronic device 101 can be applied to V BUS pin. You can apply to V BUS The 5V voltage of the pin is provided to the USB device 255 connected to the electronic device 101. Since the 5V voltage is less than or equal to the maximum voltage that the USB device 255 can support, heating can be prevented from occurring.

[0096] Figure 7 700 is a flowchart illustrating an operation of limiting a request for a selected charging voltage by detecting a role change related to power in an electronic device according to an embodiment of the present disclosure.

[0097] Here, the electronic device may be Figure 1 The electronic device 101 described below Figure 7 The operation can be Figure 4 At least some detailed operations of operation 401, operation 403 and operation 405.

[0098] Reference Figure 7 In operation 701, an electronic device (eg, Figure 1 The processor 120 and / or Figure 2 The PDIC driver 225) can determine the Figure 1 The connection terminal 178 and / or Figure 2 USB connector 209) to connect a USB device (e.g., Figure 2 According to an embodiment, operation 701 may be performed with Figure 5 The operation 501 is the same as that of FIG.

[0099] According to various embodiments, if a detach event occurs in a state where the USB device 255 is connected through the USB connector 209 (or 178), the electronic device (e.g., the processor 120 and / or the PDIC driver 225) may determine whether a sink attachment event occurs within a specified time in operation 703. According to an embodiment, operation 703 may be performed in conjunction with Figure 5 The operation 503 is the same.

[0100] According to various embodiments, if a sink attachment event occurs within a specified time, the electronic device (eg, processor 120 and / or PDIC driver 225) may determine that a charging voltage limit event has occurred in operation 705. According to an embodiment, operation 705 may be performed in conjunction with Figure 5 According to an embodiment, if a sink attachment event occurs within a specified time, the PDIC driver 225 may determine that the USB device 255 has been connected to the USB device 255 through the USB connector 209 (or 178) and the USB Type-C dual adapter (e.g., Figure 2 The USB Type-C dual adapter 253) is connected to the electronic device 101, and the charging device (for example, Figure 2 A PD charging device 251) has also been connected to the electronic device 101, and it can be determined to limit the charging voltage to prevent the USB device 255 from burning out.

[0101] According to various embodiments, at operation 707, the electronic device (eg, the processor 120 and / or the charging driver 223) may receive a first charging voltage from the charging device 251. The charging driver 223 may identify the V BUS The pin receives a first charging voltage from the charging device 251 and can control the charging IC (eg, Figure 2 The charging IC 233 of the embodiment of the present invention charges the battery (eg, Figure 1 The battery 189) is charged.

[0102] According to various embodiments, in operation 709, the electronic device (e.g., the processor 120 and / or the charging driver 223) may select a second charging voltage from a list of power that the charging device can support. According to an embodiment, the charging driver 223 may receive a list of power that the charging device 251 can support through the PDIC driver 225, and may select a charging voltage from the charging voltages included in the received list. For example, the power list that the charging device 251 can support may indicate that the charging device 251 can support 5V and 9V. The charging driver 223 may select 9V from 5V and 9V. The charging driver 223 may send a signal including information about the second selected charging voltage to the PDIC driver 225.

[0103] According to various embodiments, the electronic device (e.g., the processor 120 and / or the PDIC driver 225) may determine whether the second selected charging voltage is greater than a specified voltage at operation 711. The PDIC driver 225 may identify the second charging voltage selected by the charging driver 223 and determine whether the second selected charging voltage is greater than a specified voltage.

[0104] According to various embodiments, if the second selected charging voltage is greater than the specified voltage, the electronic device (e.g., the processor 120 and / or the PDIC driver 225) may refuse to request the second selected charging voltage in operation 713. For example, if the second selected charging voltage is greater than the specified voltage (e.g., about 5V), the PDIC driver 225 may send a signal indicating that the second charging voltage may not be requested from the charging device to the charging driver 223. According to an embodiment, if a signal indicating that the second charging voltage may not be requested from the PDIC driver 225 is received, the electronic device may return to operation 709 to reselect the second charging voltage from the list of power that the charging device can support.

[0105] According to various embodiments, if the selected charging voltage is less than or equal to the specified voltage, the electronic device (e.g., the processor 120 and / or the PDIC driver 225) may request the charging device to provide the selected charging voltage in operation 715. For example, if the second selected charging voltage is less than or equal to the specified voltage (e.g., about 5V), the PDIC driver 225 may transmit a request signal indicating the second charging voltage through the PDIC chipset (e.g., Figure 2 The charging driver 223 can identify the V BUS The pin receives the second charging voltage from the charging device 251 and may control the charging IC 233 to charge the battery 189 using the second charging voltage.

[0106] Figure 8 800 is a flowchart illustrating an operation of controlling a charging voltage by identifying USB device information in an electronic device according to an embodiment of the present disclosure.

[0107] Here, the electronic device may be Figure 1 The electronic device 101 described below Figure 8 The operation can be Figure 4 At least some detailed operations of operation 401, operation 403 and operation 405.

[0108] Reference Figure 8 In operation 801, an electronic device (eg, Figure 1 The processor 120 and / or Figure 2The PDIC driver 225) can detect a USB device (e.g., USB device 255) connected to a USB connector (e.g., Figure 1 The connection terminal 178 and / or Figure 2 For example, if the CC pins 311 and 312 identify the first resistor Rd (e.g., 5.1Ω), the PDIC driver 225 may determine that the role of the electronic device 101 is a source device that provides power to the USB device 255. In addition, the PDIC driver 225 may perform USB data communication through the D+ / D- pins 301, 302, 303, and 304 to detect the connection of a USB device 255 such as a USB headset through at least one of the USB connector 209 and the USB Type-C dual adapter 253.

[0109] According to various embodiments, at operation 803, the electronic device (e.g., the processor 120 and / or the PDIC driver 225) may perform an operation of identifying a USB device in order to obtain information of the USB device connected to the electronic device 101. For example, the PDIC driver 225 may obtain identification information of the USB device 255 through a USB enumeration process. The identification information of the USB device 255 may include at least one of service operator identification information (vendor ID) and product identification information (product ID).

[0110] According to various embodiments, the electronic device (e.g., the processor 120 and / or the PDIC driver 225) may store the acquired USB device information at operation 805. For example, the PDIC driver 225 may temporarily store the USB device information until the USB device 255 connected to the electronic device 101 is disconnected.

[0111] According to various embodiments, at operation 807, the electronic device (e.g., the processor 120 and / or the PDIC driver 225) may determine whether a detach event occurs in a state where the USB device is connected. According to an embodiment, the PDIC driver 225 may determine whether a detach event occurs in a state where information of the USB device is stored. The method for detecting a detach event may be similar to Figure 5 The operation 501 is the same as that of FIG.

[0112] According to various embodiments, if a detach event occurs while the USB device is connected, at operation 809, the electronic device (e.g., the processor 120 and / or the PDIC driver 225) may determine that a sink attachment event occurs within a specified time. According to an embodiment, operation 809 may be performed with Figure 5 The operation 503 is the same.

[0113] According to various embodiments, if a sink attachment event occurs within a specified time after a time point at which a detach event occurs, the electronic device (eg, processor 120, Figure 2 The PDIC driver 225 and / or the charging driver 223) can control the charging voltage so that a charging voltage less than or equal to a specified voltage is received. For example, if the information of the USB device is stored and a sink attachment event occurs within a specified time after the time point when the detachment event occurs, the PDIC driver 225 can recognize that the charging device 251 is additionally connected. The PDIC driver 225 can control the charging voltage so that a charging voltage less than or equal to a specified voltage is received to prevent the USB device from being damaged due to a voltage greater than the specified voltage provided from the additionally connected charging device 251. According to an embodiment, the operation of controlling the charging voltage can be the same as Figure 5 The operation 507 and the operation 509 are the same. According to an embodiment, the operation of controlling the charging voltage may be the same as Figure 7 Operation 707, operation 709, operation 711, operation 713 and operation 715 are the same.

[0114] Fig. 9 900 is a flowchart illustrating an operation of controlling a charging voltage using a change in an Rp value in an electronic device according to an embodiment of the present disclosure.

[0115] Here, the electronic device may be Figure 1 The electronic device 101 described below Fig. 9 The operation can be Figure 4 At least some detailed operations of operation 401, operation 403 and operation 405.

[0116] Reference Fig. 9 In operation 901, an electronic device (eg, Figure 1 The processor 120 and / or Figure 2 The PDIC driver 225) can detect the presence of a USB device (e.g., Figure 2 USB device 255) through a USB connector (e.g., Figure 1 The connection terminal 178 and / or Figure 2 The Rp current level changes when the PD charging device 251 is connected to the electronic device 101 (for example, the USB connector 209). For example, if the Rp current level decreases from a first level (for example, 3A) to a second level (for example, 1.5A) or from a second level (for example, 1.5A) to a third level (for example, 500mA), the PD driver 225 can determine that in addition to the state that the PD charging device 251 is already connected to the electronic device 101, the USB device 255 is also already connected to the electronic device 101.

[0117] According to various embodiments, the electronic device (e.g., the processor 120 and / or the PDIC driver 225) may determine that a charging voltage limiting event has occurred at operation 903. The PDIC driver 225 may realize that charging voltage limiting is required to prevent the additionally connected USB device 255 from being damaged by the charging voltage provided by the charging device 251.

[0118] According to various embodiments, in operation 905, the electronic device (e.g., the processor 120 and / or the PDIC driver 225) may determine whether the current charging voltage is greater than a specified voltage. For example, the PDIC driver 225 may compare the current charging voltage with the specified voltage to determine whether the current charging voltage is greater than the specified voltage. The current charging voltage may be identified by the charging driver 223.

[0119] According to various embodiments, if the current charging voltage is greater than the specified voltage, the electronic device (e.g., the processor 120 and / or the charging driver 223) may select a charging voltage less than or equal to the specified voltage from the power list that the charging device can support in operation 907. For example, the power list that the charging device 251 can support may indicate that the charging device 251 can support 5V and 9V. The charging driver 223 may select 5V that is the same as the specified voltage (e.g., about 5V) from 5V and 9V. The charging driver 223 may send a signal including information about the selected charging voltage to the PDIC driver 225.

[0120] According to various embodiments, in operation 909, the electronic device (eg, the processor 120 and / or the PDIC driver 225) may request the charging device to provide the selected charging voltage 251. Operation 909 may be performed in conjunction with Figure 5 The operation 509 is the same as that of FIG.

[0121] According to various embodiments, if the current charging voltage is less than or equal to the specified voltage, the electronic device (e.g., the processor 120 and / or the PDIC driver 225) may maintain the current charging voltage in operation 911. For example, the PDIC driver 225 may maintain the current charging voltage instead of adjusting it to a different charging voltage because the USB device 255 may not be damaged even if the current charging voltage provided from the charging device 251 is provided to the USB device 255.

[0122] Reference Figures 1 to 9 , a method for controlling the charging voltage of the charging device 251 in the electronic device 101 has been described to prevent the USB device (e.g., Figure 2 USB device 255) and a charging device (e.g., Figure 2When the charging device 251 of the USB device 255 is connected to the electronic device 101, the USB device 255 is damaged due to the charging voltage output from the charging device 251. However, other methods can be used to prevent the USB device from being damaged. For example, by applying an overvoltage protection (OVP) circuit to the V BUS The USB device 255 is protected from being damaged by the high voltage output from the charging device 251 by the USB Type-C dual adapter 253. According to another example, by adding a DC-DC converter for voltage regulation (or conversion) to the USB Type-C dual adapter 253, the USB device 255 is protected from being damaged by the high voltage output from the charging device 251. The USB Type-C dual adapter 253 may be designed to include at least one of a buck converter, a boost converter, or a buck-boost converter.

[0123] Fig.10 is a block diagram showing the structure of a USB Type-C dual adapter 1000 according to an embodiment of the present disclosure.

[0124] Reference Fig.10 The USB Type-C dual adapter 1000 may include a Type-C connector 11001, a Type-C connector 2 1003, a Type-C connector 3 1005, a PDIC 1011, a boost converter 1013, a buck converter 1015, a first switch 1021, a second switch 1023, and a third switch 1025.

[0125] According to various embodiments, the Type-C connector 1001 may be a USB connector (eg, Figure 2 The plug in the USB connector 209). Figure 3 As shown, the Type-C connector 1 1001 may be designed to be connected to a USB connector having a pin structure. The Type-C connector 1 1001 may have a symmetrical structure to be connected to the USB connector 209 of the electronic device 101 regardless of direction.

[0126] According to various embodiments, each of the Type-C connector 2 1003 and the Type-C connector 3 1005 may be a receiving hole socket configured to be connectable to a charging device and / or a USB device. Each of the Type-C connector 2 1003 and the Type-C connector 3 1005 may be configured to have a Figure 3 The pin structure shown. Type-C connector 2 1003 may be a socket connected to a PD charging device. Type-C connector 3 1005 may be a socket connected to a USB device.

[0127] According to various embodiments, the PDIC 1011 may detect the connection of the electronic device 101 and the charging device to each of the Type-C connector 1 1001 and the Type-C connector 2 1003 based on the resistance values ​​detected through the CC pin of the Type-C connector 1 1001 and the CC pin of the Type-C connector 2 1003. For example, if an Rp resistance (e.g., 56Ω) is identified by the CC pin of the Type-C connector 1 1001 and the CC pin of the Type-C connector 2 1003, the PDIC 1011 may determine that the electronic device 101 is connected to the Type-C connector 1 1001 and the charging device is connected to the Type-C connector 2 1003. If the electronic device 101 is connected to the Type-C connector 1 1001 and the charging device is connected to the Type-C connector 2 1003, the PDIC 1011 may output a control signal to the boost converter 1013, the buck converter 1015, and at least one of the first switch 1021, the second switch 1023, or the third switch 1025 to perform control so that a high voltage of the charging device input through the Type-C connector 2 1003 is provided to the Type-C connector 1 1001, and a voltage less than or equal to a specified voltage is provided to the Type-C connector 3 1005. The specified voltage is configured based on the maximum voltage that the USB device connected to the Type-C connector 3 1005 can support.

[0128] According to various embodiments, the boost converter 1013 may increase the input voltage, and the buck converter 1015 may decrease the input voltage. The boost converter 1013 and the buck converter 1015 may increase and / or decrease the input voltage based on the control signal of the PDIC 1011 to output the increased or decreased voltage. For example, the boost converter 1013 may increase the input voltage according to the control signal of the PDIC 1011, and the buck converter 1015 may decrease the input voltage according to the control signal of the PDIC 1011 to output a voltage less than or equal to a specified voltage. According to an embodiment, the boost converter 1013 and the buck converter 1015 may be replaced by at least one buck-boost converter according to an embodiment.

[0129] Fig.11 1100 is a flowchart illustrating an operation of controlling a charging voltage from a charging device by a USB Type-C dual adapter 1000 according to an embodiment of the present disclosure.

[0130] Reference Fig.11 In operation 1101, in a state where the electronic device 101 is connected to the USB Type-C dual adapter 1000, the USB Type-C dual adapter (eg, Fig.10The PDIC 1011 can detect the charging device through the first slot (e.g., Fig.10 For example, the Rp resistor (e.g., 56Ω) is identified by the CC pin of the Type-C connector 1 1001 and the CC pin of the Type-C connector 2 1003, and the PDIC 1011 can determine that, in addition to the state that the electronic device 101 is connected to the USB Type-C dual adapter 1000, the charging device is also connected to the USB Type-C dual adapter 1000 through the Type-C connector 2 1003.

[0131] According to various embodiments, at operation 1103, a USB Type-C dual adapter (e.g., Fig.10 The PDIC 1011 of the embodiment can control the buck-boost circuit and at least one switch to control the output voltage to be provided to the second slot (e.g., Fig.10 For example, if an electronic device and a charging device are connected to the USB Type-C dual adapter 1000, the PDIC 1011 may output a control signal to the buck-boost circuit (eg, Fig.10 At least one of the boost converter 1013 and the buck converter 1015) and at least one switch (e.g., the first switch 1021, the second switch 1023 and / or the third switch 1025) is used to control the high voltage input through the first slot (e.g., Type-C connector 2 1003) of the charging device to be reduced to a voltage less than or equal to a specified voltage and provided to the second slot (e.g., Type-C connector 3 1005).

[0132] As reference Fig.10 and Fig.11 As described, a DC-DC converter is added to the USB Type-C dual adapter 1000 and reduces the high voltage output from the charging device 251 to a voltage supportable by the USB device, thereby preventing the USB device from generating heat and damaging the device without being controlled by the electronic device 101.

[0133] According to various embodiments, the operating method of the electronic device 101 may include: detecting a charging device (eg, Figure 2 PD charging device 251) and USB device (e.g., Figure 2 The USB device 255) is connected to the electronic device 101 through a USB connector (eg, Figure 2in response to the connection between the charging device 251 and the USB device 255 and the electronic device 101, determining a charging voltage that satisfies a specified condition; and requesting the charging device to provide the determined charging voltage through the USB connector 209.

[0134] According to an embodiment, the specified condition may be configured based on a maximum voltage that can be supported by the USB device.

[0135] According to an embodiment, the operation of determining a charging voltage that satisfies a specified condition may include: if a charging device 251 and a USB device 255 are connected to the electronic device 101, obtaining from the charging device 251 a list including information about charging voltages that the charging device 251 can support; and determining a charging voltage that is less than or equal to a specified voltage among the charging voltages that the charging device 251 can support as the charging voltage of the electronic device 101.

[0136] According to an embodiment, the operation of determining whether the charging voltage satisfies a specified condition may include: if the charging device 251 and the USB device 255 are connected to the electronic device 101, obtaining a list including information about the charging voltages that the charging device 251 can support from the charging device 251; selecting a charging voltage from the charging voltages that the charging device 251 can support; and comparing the selected charging voltage with the specified voltage to determine whether to request the charging device 251 to provide the selected charging voltage.

[0137] According to an embodiment, the operation of determining whether to request the charging device 251 to provide a selected charging voltage may include: if the selected charging voltage is less than or equal to a specified voltage, determining that the charging device 251 is requested to provide the selected charging voltage; if the selected charging voltage is greater than the specified voltage, reselecting another charging voltage from the charging voltages included in the acquired list; and comparing the reselected another charging voltage with the specified voltage to determine whether to request the charging device to provide the reselected charging voltage 251.

[0138] According to an embodiment, the operation of determining a charging voltage that satisfies a specified condition may include: if the charging device 251 and the USB device 255 are connected to the electronic device 101, comparing the current charging voltage received from the charging device 251 with the specified voltage; if the current charging voltage is greater than the specified voltage, reselecting a charging voltage that is less than or equal to the specified voltage from the charging voltages that can be supported by the charging device 251.

[0139] According to an embodiment, the operation of detecting the connection between the charging device 251 and the USB device 255 and the electronic device 101 through the USB connector 209 provided in the electronic device 101 may include: detecting the connection between the charging device 251 and the USB device 255 and the electronic device 101 through the USB connector 209 based on at least one of a change in the power role of the electronic device 101, identification information of the USB device 255, or a change in the current level identified by the CC pin of the USB connector 209.

[0140] According to an embodiment, the operation of detecting the connection between the charging device 251 and the USB device 255 and the electronic device 101 may include: in a state where the role of the electronic device 101 is equivalent to a source device that provides voltage, detecting the occurrence of a separation event based on a resistance value identified by a CC pin of the USB connector 209; determining whether the role of the electronic device is switched to a sink device that receives voltage within a specified time from a point in time when the separation event occurs based on the resistance value identified by the CC pin of the USB connector 209; and if the role of the electronic device 101 is switched to a sink device that receives voltage within a specified time from a point in time when the separation event occurs, determining that in addition to the state where the USB device 255 is connected to the electronic device 101 via the USB connector 209, the charging device 251 is also connected to the electronic device 101.

[0141] According to an embodiment, the operation of detecting the connection between the charging device 251 and the USB device 255 and the electronic device 101 may include: detecting the connection of the USB device 255 to the USB connector 209 based on the resistance value identified by the CC pin of the USB connector 209; obtaining identification information of the USB device 255 from the USB device 255 and storing it; and detecting the occurrence of a separation event in a state in which the identification information of the USB device 255 is stored.

[0142] According to an embodiment, the operation of detecting the connection between the charging device 251 and the USB device 255 and the electronic device 101 may include: detecting a change in the current level of the CC pin of the USB connector 209; and if the current level change satisfies a specified condition, determining that in addition to the state in which the charging device 251 has been connected to the electronic device 101 via the USB connector 209, the USB device 255 is also connected to the electronic device 101.

[0143] In the above various embodiments, the operations may be performed in order, but not necessarily in sequence. For example, the order of the operations may be changed, and at least two operations may be performed in parallel.

[0144] The electronic device according to various embodiments may be one of various types of electronic devices. The electronic device may include, for example, a portable communication device (e.g., a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a household appliance. According to an embodiment of the present disclosure, the electronic device is not limited to those electronic devices described above.

[0145] It should be understood that the various embodiments of the present disclosure and the terms used therein are not intended to limit the technical features set forth herein to specific embodiments, but include various changes, equivalent forms or alternative forms for corresponding embodiments. For the description of the accompanying drawings, similar reference numerals may be used to refer to similar or related elements. It will be understood that the nouns in the singular form corresponding to the term may include one or more things unless the relevant context clearly indicates otherwise. As used herein, each of the phrases such as "A or B", "at least one of A and B", "at least one of A or B", "A, B or C", "at least one of A, B and C" and "at least one of A, B or C" may include any one or all possible combinations of the items listed together with the corresponding one of the multiple phrases. As used herein, terms such as "1st" and "2nd" or "first" and "second" may be used to simply distinguish the corresponding component from another component, and do not limit the component in other aspects (e.g., importance or order). It will be understood that if an element (e.g., a first element) is referred to as being “combined with another element (e.g., the second element)”, “combined to another element (e.g., the second element)”, “connected with another element (e.g., the second element)”, or “connected to another element (e.g., the second element)” when the terms “operably” or “communicatively” are used or when the terms “operably” or “communicatively” are not used, it means that the element may be directly (e.g., wired) connected to the other element, wirelessly connected to the other element, or connected to the other element via a third element.

[0146] As used herein, the term "module" may include units implemented in hardware, software, or firmware, and may be used interchangeably with other terms (e.g., "logic," "logic block," "portion," or "circuit"). A module may be a single integrated component adapted to perform one or more functions or a minimum unit or portion of the single integrated component. For example, according to an embodiment, a module may be implemented in the form of an application specific integrated circuit (ASIC).

[0147] The various embodiments described herein may be implemented as software (e.g., program 140) including one or more instructions stored in a storage medium (e.g., internal memory 136 or external memory 138) that can be read by a machine (e.g., electronic device 101). For example, under the control of a processor, a processor (e.g., processor 120) of the machine (e.g., electronic device 101) may call at least one of the one or more instructions stored in the storage medium and execute the at least one instruction with or without the use of one or more other components. This enables the machine to operate to perform at least one function according to the at least one instruction called. The one or more instructions may include code generated by a compiler or code that can be run by an interpreter. A machine-readable storage medium may be provided in the form of a non-transitory storage medium. Among them, the term "non-transitory" only means that the storage medium is a tangible device and does not include a signal (e.g., an electromagnetic wave), but the term does not distinguish between data being semi-permanently stored in a storage medium and data being temporarily stored in a storage medium.

[0148] According to an embodiment, the method according to various embodiments of the present disclosure may be included and provided in a computer program product. The computer program product may be traded between a seller and a buyer as a product. The computer program product may be published in the form of a machine-readable storage medium (e.g., a compact disk read-only memory (CD-ROM)), or may be published online (e.g., downloaded or uploaded) via an application store (e.g., Play StoreTM), or may be distributed (e.g., downloaded or uploaded) directly between two user devices (e.g., smart phones). If published online, at least part of the computer program product may be temporarily generated, or at least part of the computer program product may be at least temporarily stored in a machine-readable storage medium (such as a manufacturer's server, an application store's server, or a memory of a forwarding server).

[0149] According to various embodiments, each component (e.g., module or program) in the above-mentioned components may include a single entity or multiple entities. According to various embodiments, one or more components in the above-mentioned components may be omitted, or one or more other components may be added. Alternatively or additionally, multiple components (e.g., module or program) may be integrated into a single component. In this case, according to various embodiments, the integrated component may still perform the one or more functions of each component in the multiple components in the same or similar manner as a corresponding component in the multiple components before integration. According to various embodiments, the operations performed by a module, program or another component may be performed sequentially, in parallel, repeatedly or in a heuristic manner, or one or more operations in the operations may be run or omitted in different orders, or one or more other operations may be added.

[0150] While the present disclosure has been shown and described with reference to various embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made without departing from the spirit and scope of the present disclosure as defined by the appended claims and their equivalents.

Claims

1. An electronic device, the electronic device include: a universal serial bus (USB) connector connectable to at least one of a charging device and a USB device via a dual adapter; as well as at least one processor electrically coupled to the USB connector, Wherein, the at least one processor is configured to: detecting the connection between the charging device and the USB device and the electronic device via the USB connector; determining whether a separation event occurs while the USB device is connected to the electronic device through the USB connector; In response to the detach event occurring, determining whether a sink attachment event occurs within a specified time from a time point when the detach event occurs, wherein determining that the sink attachment event occurs within the specified time indicates that the charging device is detected to be connected while the USB device is connected; In response to a sink attachment event occurring within the specified time, determining a charging voltage that satisfies a specified condition, wherein the specified condition is based on a maximum voltage configuration that the USB device can support; and The charging device is requested to provide the determined charging voltage through the USB connector.

2. The electronic device according to claim 1, in, When the charging device and the USB device are connected to the electronic device, the at least one processor is further configured to: acquiring, from the charging device, a list including information on charging voltages that the charging device can support; and A charging voltage that is less than or equal to a specified voltage among the charging voltages supported by the charging device is determined as the charging voltage of the electronic device.

3. The electronic device according to claim 1, in, When the charging device and the USB device are connected to the electronic device, the at least one processor is further configured to: acquiring, from the charging device, a list including information on charging voltages that the charging device can support; Selecting a charging voltage from charging voltages supported by the charging device; as well as The selected charging voltage is compared with a designated voltage, and a determination is made as to whether the charging device is requested to provide the selected charging voltage.

4. The electronic device according to claim 3, in, The at least one processor is further configured to: When the selected charging voltage is less than or equal to the specified voltage, requesting the charging device to provide the selected charging voltage; When the selected charging voltage is greater than the specified voltage, reselecting another charging voltage from the charging voltages included in the acquired list; as well as The reselected another charging voltage is compared with the designated voltage, and it is determined whether the charging device is requested to provide the reselected another charging voltage.

5. The electronic device according to claim 1, in, The at least one processor is further configured to: When the charging device and the USB device are connected to the electronic device, comparing a current charging voltage received from the charging device with a specified voltage; When the current charging voltage is greater than the specified voltage, selecting a charging voltage less than or equal to the specified voltage from the charging voltages supported by the charging device; as well as The charging device is requested to provide a selected charging voltage through the USB connector.

6. The electronic device according to claim 1, in, The at least one processor is further configured to detect the connection of the charging device and the USB device to the electronic device through the USB connector based on at least one of a power-related role change of the electronic device, identification information of the USB device, or a current level change identified through a CC pin of the USB connector.

7. The electronic device according to claim 6, in, The at least one processor is further configured to: In a state where the role of the electronic device is equivalent to a source device that provides voltage, detecting the occurrence of the separation event based on a resistance value recognized by a CC pin of the USB connector; determining, based on a resistance value identified by a CC pin of the USB connector, whether the role of the electronic device is switched to a sink device receiving voltage within a specified time from a time point when the separation event occurs; as well as When the role of the electronic device is switched to a sink device receiving voltage within a specified time from a time point when the separation event occurs, it is determined that the charging device is connected to the electronic device in addition to the state in which the USB device is already connected to the electronic device through the USB connector.

8. The electronic device according to claim 7, in, The at least one processor is further configured to: detecting a connection between the USB device and the USB connector based on a resistance value identified by a CC pin of the USB connector; Acquire identification information of the USB device from the USB device and store the acquired identification information; as well as When the separation event occurs in a state where the identification information of the USB device is stored, and when the role of the electronic device is switched to a host device that receives voltage within a specified time from the time point when the separation event occurs, it is determined that in addition to the state in which the USB device is already connected to the electronic device through the USB connector, the charging device is also connected to the electronic device.

9. The electronic device according to claim 1, in, The processor is further configured to: Detecting a change in current level via a CC pin of the USB connector; and When the current level change satisfies a specified condition, it is determined that the USB device is connected to the electronic device in addition to the state in which the charging device has been connected to the electronic device through the USB connector.

10. A method for operating an electronic device, the operating method include: detecting connection of a charging device and a universal serial bus (USB) device to the electronic device via a USB connector provided in the electronic device; determining whether a separation event occurs while the USB device is connected to the electronic device through the USB connector; In response to the detach event occurring, determining whether a sink attachment event occurs within a specified time from a time point when the detach event occurs, wherein determining that the sink attachment event occurs within the specified time indicates that the charging device is detected to be connected while the USB device is connected; In response to a sink attachment event occurring within the specified time, determining a charging voltage that satisfies a specified condition, wherein the specified condition is based on a maximum voltage configuration that the USB device can support; as well as The charging device is requested to provide the determined charging voltage through the USB connector.

11. The operating method according to claim 10, in, Determining the charging voltage that satisfies the specified condition includes: When the charging device and the USB device are connected to the electronic device, acquiring a list including information on charging voltages supportable by the charging device from the charging device; and A charging voltage that is less than or equal to a specified voltage among the charging voltages supported by the charging device is determined as the charging voltage of the electronic device.

12. The operating method according to claim 10, in, Determining the charging voltage that satisfies the specified condition includes: when the charging device and the USB device are connected to the electronic device, acquiring a list including information on charging voltages that the charging device can support from the charging device; Selecting a charging voltage from charging voltages supported by the charging device; and The selected charging voltage is compared with a designated voltage, and a determination is made as to whether the charging device is requested to provide the selected charging voltage.

13. The operating method according to claim 12, in, Determining whether to request the charging device to provide the selected charging voltage includes: When the selected charging voltage is less than or equal to the specified voltage, requesting the charging device to provide the selected charging voltage; When the selected charging voltage is greater than the specified voltage, reselecting another charging voltage from the charging voltages included in the acquired list; and The reselected another charging voltage is compared with the designated voltage, and it is determined whether the charging device is requested to provide the reselected another charging voltage.

14. The operating method according to claim 10, in, Determining the charging voltage that satisfies the specified condition includes: When the charging device and the USB device are connected to the electronic device, comparing a current charging voltage received from the charging device with a specified voltage; and When the current charging voltage is greater than the designated voltage, a charging voltage less than or equal to the designated voltage is reselected from charging voltages supported by the charging device.

15. The operating method according to claim 10, in, Detecting the connection between the charging device and the USB device and the electronic device through the USB connector provided in the electronic device includes: detecting the connection between the charging device and the USB device and the electronic device through the USB connector based on at least one of a role change related to power of the electronic device, identification information of the USB device, or a current level change recognized by a CC pin of the USB connector.

16. The operating method according to claim 15, in, Detecting the connection between the charging device and the USB device and the electronic device includes: In a state where the role of the electronic device is equivalent to a source device that provides voltage, detecting the occurrence of the separation event based on a resistance value recognized by a CC pin of the USB connector; determining whether the role of the electronic device is switched to a sink device receiving voltage within a specified time from a time point when the separation event occurs based on a resistance value recognized by a CC pin of the USB connector; and When the role of the electronic device is switched to a sink device receiving voltage within a specified time from a time point when the separation event occurs, it is determined that the charging device is connected to the electronic device in addition to the state in which the USB device is already connected to the electronic device through the USB connector.

17. The operating method according to claim 16, in, Detecting the connection between the charging device and the USB device and the electronic device includes: detecting a connection between the USB device and the USB connector based on a resistance value identified by a CC pin of the USB connector; acquiring identification information of the USB device from the USB device and storing the acquired identification information; and In a state where the identification information of the USB device is stored, occurrence of the detach event is detected.

18. The operating method according to claim 15, in, Detecting the connection between the charging device and the USB device and the electronic device includes: Detecting a change in current level via a CC pin of the USB connector; and When the current level change satisfies a specified condition, it is determined that the USB device is connected to the electronic device in addition to the state in which the charging device has been connected to the electronic device through the USB connector.

Citation Information

Patent Citations

  • Tongue-support

    US302303A

  • Systems and methods for port management

    US20190065422A1