WO2023008724A1 - 전자 장치 및 전자 장치의 동작 방법 - Google Patents

전자 장치 및 전자 장치의 동작 방법 Download PDF

Info

Publication number
WO2023008724A1
WO2023008724A1 PCT/KR2022/007927 KR2022007927W WO2023008724A1 WO 2023008724 A1 WO2023008724 A1 WO 2023008724A1 KR 2022007927 W KR2022007927 W KR 2022007927W WO 2023008724 A1 WO2023008724 A1 WO 2023008724A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
signal terminal
external electronic
processor
terminal
Prior art date
Application number
PCT/KR2022/007927
Other languages
English (en)
French (fr)
Inventor
김경원
Original Assignee
삼성전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자 주식회사 filed Critical 삼성전자 주식회사
Publication of WO2023008724A1 publication Critical patent/WO2023008724A1/ko

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00038Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange using passive battery identification means, e.g. resistors or capacitors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00036Charger exchanging data with battery
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • H02J7/0071Regulation of charging or discharging current or voltage with a programmable schedule
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • H02J7/00711Regulation of charging or discharging current or voltage with introduction of pulses during the charging process
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • H02J7/00712Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters
    • H02J7/007182Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters in response to battery voltage
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J2207/00Indexing scheme relating to details of circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J2207/30Charge provided using DC bus or data bus of a computer

Definitions

  • the electronic device may be connected to various external electronic devices, and may receive data from the external electronic device or transmit data to the external electronic device. Also, the electronic device may receive power from an external electronic device or transmit power to the external electronic device.
  • the electronic device may be electrically connected to an external electronic device.
  • An external electronic device generates a high voltage using a power supply voltage received from the electronic device and applies the generated high voltage to the electronic device, resulting in burnout of internal components of the electronic device.
  • An electronic device includes a connector including at least one signal terminal, an identification circuit electrically connected to the connector, a switching circuit electrically connected to the connector, a battery, a memory, and the identification circuit; and a processor operatively connected to the switching circuit, the battery, and the memory.
  • the processor when the memory is executed, the processor, using the identification circuit, recognizes that an external electronic device is electrically connected to the electronic device through the connector, and uses the switching circuit to: Discharging energy in a capacitor electrically connected to at least one of a first signal terminal and a second signal terminal among the at least one signal terminal, and a voltage level difference between the first signal terminal and the second signal terminal Based on this, instructions for determining whether to output a power voltage based on the battery through the connector to the external electronic device may be stored.
  • a method of operating an electronic device includes an operation of recognizing that an external electronic device is electrically connected to the electronic device through a connector, and among at least one signal terminal included in the connector. Based on an operation of discharging energy in a capacitor electrically connected to at least one of the first signal terminal and the second signal terminal and a voltage level difference between the first signal terminal and the second signal terminal, An operation of determining whether to output the power supply voltage through the connector may be included.
  • FIG. 1 is a block diagram of an electronic device in a network environment, according to various embodiments.
  • FIG. 2 is a block diagram of an electronic device according to various embodiments.
  • FIG. 3 is a block diagram of an electronic device and an external electronic device, according to various embodiments.
  • FIG. 4 illustratively illustrates a high voltage generating circuit included in an external electronic device according to various embodiments.
  • FIG. 5 is a flowchart of a method of operating an electronic device according to various embodiments.
  • FIG. 6 is a flowchart of a method of operating an electronic device according to various embodiments.
  • FIG. 7 is a flowchart of a method of operating an electronic device according to various embodiments.
  • FIG. 8 is a flowchart of a method of operating an electronic device according to various embodiments.
  • FIG. 1 is a block diagram of an electronic device 101 within a network environment 100, according to various embodiments.
  • an electronic device 101 communicates with an electronic device 102 through a first network 198 (eg, a short-range wireless communication network) or through a second network 199. It is possible to communicate with at least one of the electronic device 104 or the server 108 through (eg, a long-distance wireless communication network). According to one embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 .
  • a first network 198 eg, a short-range wireless communication network
  • the server 108 e.g, a long-distance wireless communication network
  • the electronic device 101 includes a processor 120, a memory 130, an input module 150, an audio output module 155, a display module 160, an audio module 170, a sensor module ( 176), interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196 , or the antenna module 197 may be included.
  • at least one of these components eg, the connection terminal 178) may be omitted or one or more other components may be added.
  • some of these components eg, sensor module 176, camera module 180, or antenna module 197) are integrated into a single component (eg, display module 160). It can be.
  • the processor 120 for example, executes software (eg, the program 140) to cause at least one other component (eg, hardware or software component) of the electronic device 101 connected to the processor 120. It can control and perform various data processing or calculations. According to one embodiment, as at least part of data processing or operation, the processor 120 transfers instructions or data received from other components (e.g., sensor module 176 or communication module 190) to volatile memory 132. , processing commands or data stored in the volatile memory 132 , and storing resultant data in the non-volatile memory 134 .
  • software eg, the program 140
  • the processor 120 transfers instructions or data received from other components (e.g., sensor module 176 or communication module 190) to volatile memory 132. , processing commands or data stored in the volatile memory 132 , and storing resultant data in the non-volatile memory 134 .
  • the processor 120 may include a main processor 121 (eg, a central processing unit or an application processor) or a secondary processor 123 (eg, a graphic processing unit, a neural network processing unit ( NPU: neural processing unit (NPU), image signal processor, sensor hub processor, or communication processor).
  • a main processor 121 eg, a central processing unit or an application processor
  • a secondary processor 123 eg, a graphic processing unit, a neural network processing unit ( NPU: neural processing unit (NPU), image signal processor, sensor hub processor, or communication processor.
  • NPU neural network processing unit
  • the secondary processor 123 may be implemented separately from or as part of the main processor 121 .
  • the secondary processor 123 may, for example, take the place of the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state, or the main processor 121 is active (eg, running an application). ) state, together with the main processor 121, at least one of the components of the electronic device 101 (eg, the display module 160, the sensor module 176, or the communication module 190) It is possible to control at least some of the related functions or states.
  • the auxiliary processor 123 eg, image signal processor or communication processor
  • the auxiliary processor 123 may include a hardware structure specialized for processing an artificial intelligence model.
  • AI models can be created through machine learning. Such learning may be performed, for example, in the electronic device 101 itself where the artificial intelligence model is performed, or may be performed through a separate server (eg, the server 108).
  • the learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning or reinforcement learning, but in the above example Not limited.
  • the artificial intelligence model may include a plurality of artificial neural network layers.
  • Artificial neural networks include deep neural networks (DNNs), convolutional neural networks (CNNs), recurrent neural networks (RNNs), restricted boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), It may be one of deep Q-networks or a combination of two or more of the foregoing, but is not limited to the foregoing examples.
  • the artificial intelligence model may include, in addition or alternatively, software structures in addition to hardware structures.
  • the memory 130 may store various data used by at least one component (eg, the processor 120 or the sensor module 176) of the electronic device 101 .
  • the data may include, for example, input data or output data for software (eg, program 140) and commands related thereto.
  • the memory 130 may include volatile memory 132 or non-volatile memory 134 .
  • the program 140 may be stored as software in the memory 130 and may include, for example, an operating system 142 , middleware 144 , or an application 146 .
  • the input module 150 may receive a command or data to be used by a component (eg, the processor 120) of the electronic device 101 from the outside of the electronic device 101 (eg, a user).
  • the input module 150 may include, for example, a microphone, a mouse, a keyboard, a key (eg, a button), or a digital pen (eg, a stylus pen).
  • the sound output module 155 may output sound signals to the outside of the electronic device 101 .
  • the sound output module 155 may include, for example, a speaker or a receiver.
  • the speaker can be used for general purposes such as multimedia playback or recording playback.
  • a receiver may be used to receive an incoming call. According to one embodiment, the receiver may be implemented separately from the speaker or as part of it.
  • the display module 160 may visually provide information to the outside of the electronic device 101 (eg, a user).
  • the display module 160 may include, for example, a display, a hologram device, or a projector and a control circuit for controlling the device.
  • the display module 160 may include a touch sensor set to detect a touch or a pressure sensor set to measure the intensity of force generated by the touch.
  • the audio module 170 may convert sound into an electrical signal or vice versa. According to one embodiment, the audio module 170 acquires sound through the input module 150, the sound output module 155, or an external electronic device connected directly or wirelessly to the electronic device 101 (eg: Sound may be output through the electronic device 102 (eg, a speaker or a headphone).
  • the audio module 170 acquires sound through the input module 150, the sound output module 155, or an external electronic device connected directly or wirelessly to the electronic device 101 (eg: Sound may be output through the electronic device 102 (eg, a speaker or a headphone).
  • the sensor module 176 detects an operating state (eg, power or temperature) of the electronic device 101 or an external environmental state (eg, a user state), and generates an electrical signal or data value corresponding to the detected state. can do.
  • the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a bio sensor, It may include a temperature sensor, humidity sensor, or light sensor.
  • the interface 177 may support one or more designated protocols that may be used to directly or wirelessly connect the electronic device 101 to an external electronic device (eg, the electronic device 102).
  • the interface 177 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.
  • HDMI high definition multimedia interface
  • USB universal serial bus
  • SD card interface Secure Digital Card interface
  • audio interface audio interface
  • connection terminal 178 may include a connector through which the electronic device 101 may be physically connected to an external electronic device (eg, the electronic device 102).
  • the connection terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).
  • the haptic module 179 may convert electrical signals into mechanical stimuli (eg, vibration or motion) or electrical stimuli that a user may perceive through tactile or kinesthetic senses.
  • the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
  • the camera module 180 may capture still images and moving images. According to one embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.
  • the power management module 188 may manage power supplied to the electronic device 101 .
  • the power management module 188 may be implemented as at least part of a power management integrated circuit (PMIC), for example.
  • PMIC power management integrated circuit
  • the battery 189 may supply power to at least one component of the electronic device 101 .
  • the battery 189 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.
  • the communication module 190 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (eg, the electronic device 102, the electronic device 104, or the server 108). Establishment and communication through the established communication channel may be supported.
  • the communication module 190 may include one or more communication processors that operate independently of the processor 120 (eg, an application processor) and support direct (eg, wired) communication or wireless communication.
  • the communication module 190 is a wireless communication module 192 (eg, 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 (eg, : a local area network (LAN) communication module or a power line communication module).
  • a wireless communication module 192 eg, a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module
  • GNSS global navigation satellite system
  • wired communication module 194 eg, : a local area network (LAN) communication module or a power line communication module.
  • a corresponding communication module is a first network 198 (eg, a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 199 (eg, legacy It may communicate with the external electronic device 104 through a cellular network, a 5G network, a next-generation communication network, the Internet, or a telecommunications network such as a computer network (eg, a LAN or a WAN).
  • a telecommunications network such as a computer network (eg, a LAN or a WAN).
  • These various types of communication modules may be integrated as one component (eg, a single chip) or implemented as a plurality of separate components (eg, multiple chips).
  • the wireless communication module 192 uses subscriber information (eg, International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 within a communication network such as the first network 198 or the second network 199.
  • subscriber information eg, International Mobile Subscriber Identifier (IMSI)
  • IMSI International Mobile Subscriber Identifier
  • the electronic device 101 may be identified or authenticated.
  • the wireless communication module 192 may support a 5G network after a 4G network and a next-generation communication technology, for example, NR access technology (new radio access technology).
  • NR access technologies include high-speed transmission of high-capacity data (enhanced mobile broadband (eMBB)), minimization of terminal power and access of multiple terminals (massive machine type communications (mMTC)), or high reliability and low latency (ultra-reliable and low latency (URLLC)).
  • eMBB enhanced mobile broadband
  • mMTC massive machine type communications
  • URLLC ultra-reliable and low latency
  • -latency communications can be supported.
  • the wireless communication module 192 may support a high frequency band (eg, mmWave band) to achieve a high data rate, for example.
  • the wireless communication module 192 uses various technologies for securing performance in a high frequency band, such as beamforming, massive multiple-input and multiple-output (MIMO), and full-dimensional multiplexing. Technologies such as input/output (FD-MIMO: full dimensional MIMO), array antenna, analog beam-forming, or large scale antenna may be supported.
  • the wireless communication module 192 may support various requirements defined for the electronic device 101, an external electronic device (eg, the electronic device 104), or a network system (eg, the second network 199).
  • the wireless communication module 192 is a peak data rate for eMBB realization (eg, 20 Gbps or more), a loss coverage for mMTC realization (eg, 164 dB or less), or a U-plane latency for URLLC realization (eg, Example: downlink (DL) and uplink (UL) each of 0.5 ms or less, or round trip 1 ms or less) may be supported.
  • eMBB peak data rate for eMBB realization
  • a loss coverage for mMTC realization eg, 164 dB or less
  • U-plane latency for URLLC realization eg, Example: downlink (DL) and uplink (UL) each of 0.5 ms or less, or round trip 1 ms or less
  • the antenna module 197 may transmit or receive signals or power to the outside (eg, an external electronic device).
  • the antenna module 197 may include an antenna including a radiator formed of a conductor or a conductive pattern formed on a substrate (eg, PCB).
  • the antenna module 197 may include a plurality of antennas (eg, an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 198 or the second network 199 is selected from the plurality of antennas by the communication module 190, for example. can be chosen A signal or power may be transmitted or received between the communication module 190 and an external electronic device through the selected at least one antenna.
  • other components eg, a radio frequency integrated circuit (RFIC) may be additionally formed as a part of the antenna module 197 in addition to the radiator.
  • RFIC radio frequency integrated circuit
  • the antenna module 197 may form a mmWave antenna module.
  • the mmWave antenna module includes a printed circuit board, an RFIC disposed on or adjacent to a first surface (eg, a lower surface) of the printed circuit board and capable of supporting a designated high frequency band (eg, mmWave band); and a plurality of antennas (eg, array antennas) disposed on or adjacent to a second surface (eg, a top surface or a side surface) of the printed circuit board and capable of transmitting or receiving signals of the designated high frequency band. can do.
  • peripheral devices eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)
  • signal e.g. commands or data
  • commands or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the server 108 connected to the second network 199 .
  • Each of the external electronic devices 102 or 104 may be the same as or different from the electronic device 101 .
  • all or part of operations executed in the electronic device 101 may be executed in one or more external electronic devices among the external electronic devices 102 , 104 , or 108 .
  • the electronic device 101 when the electronic device 101 needs to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device 101 instead of executing the function or service by itself.
  • one or more external electronic devices may be requested to perform the function or at least part of the service.
  • One or more external electronic devices receiving the request may execute at least a part of the requested function or service or an additional function or service related to the request, and deliver the execution result to the electronic device 101 .
  • the electronic device 101 may provide the result as at least part of a response to the request as it is or additionally processed.
  • cloud computing distributed computing, mobile edge computing (MEC), or client-server computing technology may be used.
  • the electronic device 101 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing.
  • the external electronic device 104 may include an internet of things (IoT) device.
  • Server 108 may be an intelligent server using machine learning and/or neural networks. According to one embodiment, the external electronic device 104 or server 108 may be included in the second network 199 .
  • the electronic device 101 may be applied to intelligent services (eg, smart home, smart city, smart car, or health care) based on 5G communication technology and IoT-related technology.
  • FIG. 2 is a block diagram of an electronic device according to various embodiments.
  • the electronic device 201 (eg, the electronic device 101 of FIG. 1) includes a connector 210 (eg, a connection terminal 178 of FIG. 1), an identification circuit 220, a switching circuit ( 230), memory 240 (eg, memory 130 of FIG. 1), processor 250 (eg, processor 120 of FIG. 1), and battery 260 (eg, battery 189 of FIG. 1) can include
  • the electronic device 201 recognizes an electrically connected external electronic device (eg, the electronic device 102 of FIG. 1 ), and generates a power voltage based on the recognized characteristics of the external electronic device. You can decide whether to output to the device or not.
  • an electrically connected external electronic device eg, the electronic device 102 of FIG. 1
  • a power voltage based on the recognized characteristics of the external electronic device. You can decide whether to output to the device or not.
  • the connector 210 may electrically and/or physically connect the electronic device 201 and an external electronic device.
  • the connector 210 may include at least one signal terminal (or pin).
  • the electronic device 201 and an external electronic device may be electrically connected through a connector 210 .
  • the electronic device 201 transmits an electrical signal (eg, voltage or current) to an external electronic device through at least one of a plurality of signal terminals (or pins) of the connector 210 and/or an external electronic device.
  • An electrical signal can be received from
  • the electronic device 201 may be connected to an external electronic device through the connector 210 to transmit/receive data or power.
  • the connector 210 may connect various types of external electronic devices conforming to universal serial bus (USB) standards to the electronic device 201 .
  • the external electronic device is a USB-C type electronic device or a USB-A type main device (eg, a device including a high voltage generating circuit) and an OTG that converts a USB-A type to a USB-C type. (on the go) can include gender.
  • the connector 210 may correspond to a USB-C type connector (or a receptacle connector).
  • the connector 210 may be connected to an external electronic device to perform data communication and/or transmit/receive power between the electronic device 201 and the external electronic device.
  • the connector 210 may include at least one signal terminal (or pin).
  • at least one signal terminal may include a power supply terminal (eg, a VBUS terminal) for supplying and/or receiving power, an identification terminal (eg, a CC terminal) for identifying an external electronic device, and a power terminal for transmitting and receiving data. It may include a first data terminal (eg, D+ terminal), a second data terminal (eg, D- terminal), and a ground terminal (eg, GND terminal).
  • the identification circuit 220 may be connected to the CC terminal of the connector 210 .
  • the identification circuit 220 may include a configuration channel IC (CCIC).
  • the identification circuit 220 may transfer the sensed resistance value through the CC terminal to the processor 250 under the control of the processor 250 .
  • the processor 250 may recognize a resistance value through the CC terminal using the identification circuit 220 .
  • the switching circuit 230 may be connected to the data terminal of the connector 210 .
  • the switching circuit 230 may be connected to a first data terminal and a second data terminal among a plurality of signal terminals of the connector 210 .
  • the switching circuit 230 may include a multiplexer IC (MUX IC).
  • the switching circuit 230 may discharge electrical energy in the data terminal by connecting the data terminal to a discharge circuit according to the control of the processor 250 .
  • the switching circuit 230 may connect a discharging circuit to the data terminal to discharge energy in a capacitor electrically connected to the data terminal according to the control of the processor 250 .
  • energy in a capacitor electrically connected to a data terminal may correspond to a capacitor component (eg, charge) present in the data terminal.
  • the switching circuit 230 may electrically connect the data terminal to a circuit including a pull-down resistor (or at least one resistor) according to the control of the processor 250 .
  • the switching circuit 230 may electrically apply (or supply) pull-up power to the data terminal according to the control of the processor 250 .
  • the pull-up power may be power based on the battery 260 applied to check the voltage level of the data terminal (eg, the first data terminal D+ and/or the second data terminal D-).
  • connecting (or electrically connecting) may mean electrically connecting signal terminals so that an electrical signal is transmitted and received (eg, current flows or voltage is applied) between the connected signal terminals. .
  • the memory 240 may store various data (or information). According to one embodiment, the memory 240 may store at least one program, application, data, or instructions executed by the processor 250 . According to one embodiment, the memory 240 may include at least a portion of the memory 130 shown in FIG. 1 . According to an embodiment, the memory 240 may store information or instructions for performing at least a part of an operation of the electronic device 201 described later. According to one embodiment, the memory 240 may store instructions related to a plurality of applications executed by the processor 250 . According to an embodiment, the memory 240 may store information necessary for the operation of the electronic device 201 .
  • the battery 260 may be in a charged state with power to be supplied to at least one component of the electronic device 201 or an external electronic device.
  • components of the electronic device 201 may perform various operations using power charged in the battery 260 .
  • at least a portion of the power charged in the battery 260 may be used as an operating voltage for components of the electronic device 201 to perform various operations.
  • pull-up power based on power charged in the battery 260 may be applied to the first data terminal and the second data terminal for transmitting and receiving data.
  • at least a part of the power charged in the battery 260 may be provided to an external electronic device.
  • a power supply voltage based on power charged in the battery 260 may be provided to an external electronic device.
  • the processor 250 may be operatively connected to other components of the electronic device 201 and control various operations of the electronic device 201 .
  • the processor 250 may include an application processor of the electronic device 201 .
  • the processor 250 may perform various operations of the electronic device 201 by executing one or more instructions stored in the memory 240 .
  • operations described as being performed by the electronic device 201 may be referred to as being performed by the processor 250 .
  • the processor 250 when the external electronic device is electrically connected to the electronic device 201, the processor 250 detects (or recognizes) characteristics of the external electronic device and supplies the external electronic device with a power voltage (eg, Vbus voltage) or not. In one embodiment, the processor 250 may determine whether to output a power supply voltage to an external electronic device connected to the electronic device 201 .
  • a power voltage eg, Vbus voltage
  • the processor 250 may recognize the external electronic device as an abnormal external electronic device when it is determined that the first data terminal and the second data terminal are in a short state.
  • the short state may mean a state in which a voltage level of a first signal terminal (eg, a first data terminal) and a voltage level of a second signal terminal (eg, a second data terminal) are the same.
  • the short state may correspond to a state in which a difference between a voltage level of a first signal terminal (eg, a first data terminal) and a voltage level of a second signal terminal (eg, a second data terminal) is less than a threshold value.
  • the processor 250 may not provide a power supply voltage to the external electronic device.
  • an abnormal external electronic device may correspond to an electronic device in which the electronic device 201 (or the processor 250) does not provide a power supply voltage (eg, Vbus voltage).
  • the abnormal external electronic device generates a high voltage using the power supply voltage received from the electronic device 201 and applies the generated high voltage to the electronic device 201 to electrically can be damaged by
  • an abnormal external electronic device may mean a USB killer, but is not limited thereto.
  • the processor 250 may recognize the external electronic device as a normal external electronic device when it is determined that the first data terminal and the second data terminal are not short-circuited.
  • the non-short state may mean a state in which the voltage level of the first signal terminal (eg, the first data terminal) and the voltage level of the second signal terminal (eg, the second data terminal) are not the same. there is.
  • the non-short state may correspond to a state in which a difference between a voltage level of a first signal terminal (eg, a first data terminal) and a voltage level of a second signal terminal (eg, a second data terminal) is equal to or greater than a threshold value.
  • the processor 250 may provide a power supply voltage to the external electronic device.
  • a normal external electronic device may correspond to an electronic device in which the electronic device 201 (or the processor 250) can provide a power voltage (eg, Vbus voltage).
  • a normal external electronic device may perform various operations using the power voltage received from the electronic device 201 without burning the electronic device 201 .
  • the processor 250 determines whether the external electronic device connected to the electronic device 201 is a normal external electronic device, and connects a first data terminal and a first data terminal among a plurality of signal terminals of the connector 210. It may be checked whether the second data terminals are in a short state with each other.
  • the processor 250 electrically connects at least one signal terminal among a plurality of signal terminals of the connector 210 to a discharge circuit to discharge electrical energy in the at least one signal terminal.
  • the processor 250 may electrically connect the at least one signal terminal to the discharge circuit before checking the voltage level of the at least one signal terminal.
  • the processor 250 electrically connects the first data terminal and/or the second data terminal to a discharge circuit before determining whether the external electronic device connected to the electronic device 201 is a normal external electronic device.
  • the processor 250 may accurately recognize whether the external electronic device is a normal external electronic device through the first data terminal and the second data terminal from which the capacitor component is removed through the discharge circuit. For example, the processor 250 may accurately determine whether or not to provide the power supply voltage to the external electronic device by checking the short state of the first data terminal and the second data terminal from which the capacitor component is removed through the discharge circuit.
  • the processor 250 may identify (or recognize) that an external electronic device is electrically connected to the electronic device 201 through the identification circuit 220 . According to an embodiment, when the external electronic device is connected to the electronic device 201 through the connector 210, the processor 250 may recognize characteristics of the external electronic device. According to an embodiment, the processor 250 may detect (or recognize) a resistance value indicating characteristics of an external electronic device through the identification circuit 220 connected to the CC terminal of the connector 210 .
  • the processor 250 may detect a resistance value of the CC terminal through the identification circuit 220.
  • a first resistance value eg, a pull-down resistance value (5.1 kohm)
  • UFP upstream facing port
  • the electronic device 201 when the processor 250 detects a second resistance value (eg, a pull-up resistance value (56 kohm)) of the CC terminal electrically connected to the identification circuit 220, the electronic device 201 It may be recognized that the connected external electronic device is a device that provides power to the electronic device 201 .
  • a device providing power may mean a source device or a downstream facing port (DFP) device, but the interpretation is not limited thereto.
  • the processor 250 when the processor 250 recognizes that the external electronic device is a device for receiving power using the identification circuit 220, the processor 250 selects some signal terminals among a plurality of signal terminals of the connector 210. Can be connected to the discharge circuit.
  • the processor 250 may connect a data terminal among a plurality of signal terminals of the connector 210 to a discharge circuit using the switching circuit 230 .
  • the processor 250 may connect the data terminal of the connector 210 to a discharge circuit including a pull-down resistor using the switching circuit 230 to discharge at least a portion of electrical energy remaining in the data terminal. there is.
  • the processor 250 connects the first data terminal and the second data terminal of the connector 210 to a discharge circuit including a pull-down resistor, respectively, using the switching circuit 230 to obtain the first data terminal and the second data terminal. Electrical energy (eg, a capacitor component) remaining in the second data terminal may be discharged.
  • Electrical energy eg, a capacitor component
  • the processor 250 may apply pull-up power to the discharged signal terminal using the switching circuit 230 .
  • the processor 250 may connect the data terminal to an electrical path for the pull-up power using the switching circuit 230 to apply the pull-up power to the data terminal.
  • the processor 250 applies pull-up power to the first data terminal using the switching circuit 230 and checks the voltage level of the second data terminal so that the first data terminal and the second data terminal are connected to each other. It is possible to determine whether or not it is in a short state.
  • the processor 250 applies pull-up power to the second data terminal using the switching circuit 230 and checks the voltage level of the first data terminal to determine whether the first data terminal and the second data terminal are shorted to each other. status can be determined.
  • the processor 250 may determine whether to provide (or output) a power supply voltage to an external electronic device according to whether the first data terminal and the second data terminal are short-circuited.
  • the processor 250 may use a discharge circuit (eg, a resistance circuit including a pull-down resistor) to improve recognition.
  • a discharge circuit eg, a resistance circuit including a pull-down resistor
  • the processor 250 determines whether the external electronic device is a normal external electronic device by checking whether the first data terminal and the second data terminal from which at least a part of the capacitor component is removed through a discharge circuit are in a short state. can accurately recognize (or judge) whether or not
  • FIG. 3 is a block diagram of an electronic device and an external electronic device, according to various embodiments.
  • an electronic device 301 (eg, the electronic device 101 of FIG. 1 or the electronic device 201 of FIG. 2 ) includes a connector 311 (eg, the connection terminal 178 of FIG. 1 or connector 210 of FIG. 2), identification circuit 313 (eg identification circuit 220 of FIG. 2), discharge circuit 314, switching circuit 315 (eg switching circuit 230 of FIG. 2) , charging circuit 317, battery 318 (eg, battery 189 in FIG. 1 or battery 260 in FIG. 2 ) and processor 319 (eg, processor 120 in FIG. 1 , or battery 260 in FIG. 2 ). processor 250).
  • an external electronic device 302 (eg, the electronic device 102 of FIG.
  • the external electronic device 302 may be an electronic device conforming to the USB standard. Referring to FIG. 3 , the external electronic device 302 is illustrated as including an OTG gender 323 that converts a USB-A type to a USB-C type, but in various embodiments, the external electronic device 302 has a high voltage It may be a USB-C type electronic device including the generating circuit 321 .
  • the connector 311 may include at least one signal terminal (or pin).
  • at least one signal terminal may include a power supply terminal (eg, a VBUS terminal) for supplying and/or receiving power, an identification terminal (eg, a CC terminal) for identifying an external electronic device, and a power terminal for transmitting and receiving data. It may include a first data terminal (eg, D+ terminal), a second data terminal (eg, D- terminal), and a ground terminal (eg, GND terminal).
  • the connector 311 may be configured to electrically connect the external electronic device 302 and the electronic device 301 .
  • a ground terminal of the connector 311 may be electrically connected to a ground terminal of the external electronic device 302 .
  • a power terminal of the connector 311 may be electrically connected to a power terminal of the external electronic device 301 .
  • an identification terminal of the connector 311 may be electrically connected to an identification terminal of the external electronic device 302 .
  • the first data terminal of the connector 311 may be electrically connected to the first data terminal of the external electronic device 302 .
  • the second data terminal of the connector 311 may be electrically connected to the second data terminal of the external electronic device 302 .
  • the identification circuit 313 may transmit the resistance value sensed through the identification terminal to the processor 319 based on the control of the processor 319 .
  • the switching circuit 315 connects a data terminal (eg, a first data terminal and/or a second data terminal) to a discharge circuit or supplies a pull-up power source based on control of the processor 319.
  • a data terminal can be connected to an electrical path for application.
  • the charging circuit 317 may output the power voltage to the external electronic device 302 or may not output the power voltage to the external electronic device 302 based on the control of the processor 319.
  • the charging circuit 317 boosts the voltage level of the battery 318 based on a designated command (eg, boost) of the processor 319, and converts the boosted voltage level (eg, 5V) to The output voltage having may be output to the external electronic device 302 .
  • the battery 318 may store (or charge) power to be supplied to at least one component of the electronic device 301 or the external electronic device 302 .
  • a power supply voltage based on power charged in the battery 318 may be provided to the external electronic device 302 under the control of the processor 319 .
  • pull-up power based on power charged in the battery 318 may be applied to the first data terminal and the second data terminal for transmitting and receiving data.
  • the processor 319 identifies (or recognizes) the external electronic device 302 connected to the electronic device 301 through the identification circuit 313 (eg, configuration channel IC (CCIC)).
  • the identification circuit 313 may transfer a resistance value sensed through an identification terminal to the processor 319 .
  • the processor 319 detects (or recognizes) a resistance value representing the characteristics of the external electronic device 302 through an identification circuit 313 electrically connected to an identification terminal of the connector 311.
  • the processor 319 when the processor 319 detects a first resistance value (eg, a pull-down resistance value (5.1 kohm)) through the identification circuit 313, the external electronic device (connected to the electronic device 301) 302) may be recognized as a device receiving power from the electronic device 301.
  • the processor 319 detects the second resistance value (eg, a pull-up resistance value (56 kohm)) of the identification terminal through the identification circuit 313, the external electronic device connected to the electronic device 301 It may be recognized that the device 302 is a device that provides power to the electronic device 301 .
  • the processor 319 may detect the first resistance value through the identification circuit 313 and recognize that the external electronic device 302 is a device receiving power from the electronic device 301 . In an embodiment, the processor 319 may determine whether to output the power supply voltage to the external electronic device 302 based on the voltage level of the signal terminal (eg, the first data terminal and/or the second data terminal). there is.
  • the processor 319 uses the switching circuit 315 to discharge the first data terminal and the second data terminal. (314) can be connected.
  • the discharge circuit 314 may be an electrical circuit including a pull-down resistor.
  • the processor 319 connects the first data terminal and the second data terminal to the discharge circuit 314 to obtain a capacitor component (eg, residual charge) remaining on the first data terminal and the second data terminal. can be at least partially discharged.
  • the processor 319 may connect a discharge circuit to the data terminal to discharge energy in a capacitor electrically connected to at least one of the first data terminal and the second data terminal.
  • energy in a capacitor electrically connected to at least one of the first data terminal and the second data terminal is a capacitor component (eg, charge) present in at least one of the first data terminal and the second data terminal.
  • the processor 319 may connect the first data terminal and the second data terminal to the discharge circuit 314 to remove at least some of the residual charge.
  • the voltage level of the first data terminal and the voltage level of the second data terminal may respectively correspond to the ground voltage.
  • the processor 319 connects the first data terminal and the second data terminal to the discharge circuit 314 using the switching circuit 315, and then uses the switching circuit 315 to generate the first data terminal. Pull-up power may be applied to the data terminal and the second data terminal. Thereafter, the processor 319 may determine whether to output the power supply voltage to the external electronic device 302 by checking the voltage levels of the first data terminal and the second data terminal. In various embodiments, the order in which pull-up power is applied to each of the first data terminal and the second data terminal is not limited. Hereinafter, the processor 319 recognizes the voltage level of the second data terminal after applying the pull-up power to the first data terminal, applies the pull-up power to the second data terminal, and then recognizes the voltage level of the first data terminal.
  • the processor 319 recognizes the voltage level of the first data terminal after applying the pull-up power to the second data terminal, and then applies the pull-up power to the first data terminal and then the voltage of the second data terminal. level can be recognized.
  • the processor 319 may apply pull-up power to the first data terminal and check the voltage level of the second data terminal by using an analog to digital converter (ADC) or a comparator. In various embodiments, the processor 319 may wait for a specified time before checking the voltage level of the second data terminal after applying the pull-up power to the first data terminal. For example, the designated time may mean a delay time. Immediately after applying the pull-up power to the first data terminal, although the first data terminal and the second data terminal are not in a short-circuit state, they are in a short-circuit state due to internal resistance between the first data terminal and the second data terminal.
  • ADC analog to digital converter
  • the processor 319 may wait for a specified period of time before checking the voltage level of the second data terminal in order to reduce the effect of internal resistance between the first data terminal and the second data terminal. According to an embodiment, the processor 319 may accurately recognize whether the first data terminal and the second data terminal are in a short state by waiting for a specified time after applying the pull-up power to the first data terminal.
  • the processor 319 when the voltage level of the second data terminal is checked and the first data terminal and the second data terminal are not shorted to each other, the processor 319 recognizes the external electronic device 302 as a normal external electronic device. can do.
  • the processor 319 may output a power voltage to the external electronic device 302 through the charging circuit 317 based on recognizing that the external electronic device 302 is a normal external electronic device.
  • the processor 319 when the first data terminal and the second data terminal are not shorted to each other, the battery of the electronic device 301 (eg, the battery 189 of FIG. 1) through the charging circuit 317 ) may be output to the external electronic device 302 .
  • the processor 319 may control the charging circuit 317 to output power voltage to the external electronic device 302 .
  • the processor 319 may apply pull-up power to the second data terminal.
  • the processor 319 may check the voltage level of the first data terminal using an analog to digital converter (ADC) or a comparator.
  • ADC analog to digital converter
  • the processor 319 may wait for a specified time before checking the voltage level of the first data terminal after applying the pull-up power to the second data terminal.
  • the processor 319 may wait for a specified period of time before checking the voltage level of the first data terminal in order to reduce the effect of internal resistance between the first data terminal and the second data terminal.
  • the processor 319 may accurately recognize whether the first data terminal and the second data terminal are short-circuited by waiting for a specified time after applying the pull-up power to the second data terminal. In one embodiment, when the voltage level of the first data terminal is checked and the first data terminal and the second data terminal are not shorted to each other, the processor 319 recognizes the external electronic device 302 as a normal external electronic device. can do. The processor 319 may output a power voltage to the external electronic device 302 through the charging circuit 317 based on recognizing that the external electronic device 302 is a normal external electronic device.
  • the processor 319 recognizes the external electronic device 302 as an abnormal external electronic device. can do.
  • the processor 319 may not output a power voltage to the external electronic device 302 based on recognizing that the external electronic device 302 is an abnormal external electronic device.
  • the processor 319 may control the charging circuit 317 not to output power voltage to the external electronic device 302 .
  • the processor 319 may limit output of the power supply voltage to the external electronic device 302 .
  • the processor 319 discharges electrical energy of the first data terminal and the second data terminal, applies pull-up power to the first data terminal, and checks the voltage level of the second data terminal. After applying pull-up power to the first check operation and the second data terminal, a second check operation of checking the voltage level of the first data terminal may be performed.
  • the processor 319 recognizes that the first data terminal and the second data terminal are shorted to each other as a result of performing the first check operation, and as a result of performing the second check operation, the first data terminal It can be recognized that the terminal and the second data terminal are in a short state with each other. In this case, the processor 319 may not output a power supply voltage to the external electronic device 302 .
  • the processor 319 may recognize that the first data terminal and the second data terminal are not in a short-circuit state based on any one of the first check operation and the second check operation. .
  • the processor 319 may recognize that the first data terminal and the second data terminal are not shorted to each other.
  • the processor 319 recognizes that the first data terminal and the second data terminal are short-circuited as a result of performing the first check operation, and as a result of performing the second check operation, the first data terminal and the second data terminal It can be recognized that the terminals are not shorted to each other.
  • the power supply voltage may be output to the external electronic device 302 .
  • the external electronic device 302 may be a normal external electronic device having designated characteristics.
  • the first data terminal and the second data terminal are shorted to each other until power is applied to the first data terminal and the second data terminal, and the first data terminal and the second data terminal are in a short state.
  • the first data terminal and the second data terminal may be normal external electronic devices having specified characteristics and not shorted to each other.
  • the processor 319 discharges electrical energy in the first data terminal and the second data terminal, and discharges electrical energy in the second data terminal.
  • the processor 319 may recognize that the external electronic device 302 having the specified characteristic corresponds to an abnormal external electronic device. According to an exemplary embodiment, the processor 319 recognizes that the first data terminal and the second data terminal are short-circuited to each other through the first check operation and the second check operation, and then applies a pull-up power to the first data terminal.
  • a third checking operation of reapplying the voltage level of the second data terminal and a fourth checking operation of checking the voltage level of the first data terminal by reapplying the pull-up power to the second data terminal may be further performed.
  • power eg, pull-up power
  • the external electronic device 302 when power (eg, pull-up power) is applied to the first data terminal and the second data terminal of the external electronic device 302 through the first check operation and the second check operation, the external electronic device 302
  • the first data terminal and the second data terminal of may correspond to a non-short state.
  • the processor 319 recognizes that the first data terminal and the second data terminal are not shorted to each other through a result of performing at least one of the third check operation and the fourth check operation, and the external electronic device 302 ) corresponds to a normal external electronic device.
  • the electronic device 301 may be rebooted for various reasons.
  • the electronic device 301 may store state information about the external electronic device 302 recognized before the electronic device 301 is restarted.
  • the state information of the external electronic device 302 may include first information indicating whether the external electronic device 302 is a device receiving power or a device providing power.
  • the state information (eg, first information) of the external electronic device 302 is a first resistance value detected by the processor 319 through the identification circuit 313 (eg, a pull-down resistance value (5.1 kohm)).
  • the state information of the external electronic device 302 may include second information indicating whether the first data terminal and the second data terminal of the external electronic device 302 are in a short state with each other.
  • the state information (eg, second information) of the external electronic device 302 is recognized based on the results of performing the first confirmation operation and the second confirmation operation or the first to fourth confirmation operations. It may indicate whether the external electronic device 302 is a normal external electronic device.
  • the processor 319 (or the electronic device 301) does not output a power supply voltage to the external electronic device 302 after being restarted, and prioritizes state information related to the external electronic device 302. You can check.
  • the processor 319 determines the external electronic device 302 may be recognized as corresponding to an abnormal external electronic device and may not output power voltage to the external electronic device 302 .
  • the processor 319 may accurately recognize whether or not to output the power voltage to the external electronic device 302 .
  • FIG. 4 illustratively illustrates a high voltage generating circuit included in an external electronic device according to various embodiments.
  • a high voltage generating circuit 410 (eg, the high voltage generating circuit 321 of FIG. 3 ) included in an abnormal external electronic device (eg, the external electronic device 302 of FIG. 3 ) is illustrated as an example. do.
  • a first signal terminal eg, a first data terminal (D+)
  • a second signal terminal eg, a second data terminal (D-)
  • electrical A high voltage eg, about approx. 200V
  • an abnormal external electronic device generates a high voltage (eg, about 200V) using a flyback converter when a low voltage (eg, 5V) power supply voltage (Vbus) is applied from the electronic device, and generates a pulse
  • a high voltage generated using a pulse generator may be applied to the first signal terminal and the second signal terminal.
  • the abnormal external electronic device may electrically burn internal components of the electronic device by applying the generated high voltage to the connected electronic device through the first signal terminal and the second signal terminal.
  • the electronic device can recognize with improved recognition whether the first signal terminal and the second signal terminal electrically connected to the abnormal external electronic device are electrically short-circuited.
  • An electronic device according to an embodiment may not output the power voltage Vbus to an external electronic device recognized as an abnormal external electronic device.
  • An electronic device includes at least one signal terminal.
  • a connector e.g. connection terminal 178 in FIG. 1, connector 210 in FIG. 2 or connector 311 in FIG. 3
  • an identification circuit electrically connected to the connector
  • a switching circuit electrically connected to the connector
  • a battery e.g., battery 189 of FIG. 1
  • a memory eg, the memory 130 of FIG. 1 or the memory 240 of FIG. 2
  • the identification circuit e.g. the identification circuit, the switching circuit, the battery and a processor operatively coupled with the memory (eg, the processor 120 of FIG. 1 , the processor 250 of FIG. 2 , or the processor 319 of FIG. 3 ).
  • the processor when the memory is executed, the processor, using the identification circuit, recognizes that an external electronic device is electrically connected to the electronic device through the connector, and uses the switching circuit to: Discharging energy in a capacitor electrically connected to at least one of a first signal terminal and a second signal terminal among the at least one signal terminal, and a voltage level difference between the first signal terminal and the second signal terminal Based on this, instructions for determining whether to output a power voltage based on the battery through the connector to the external electronic device may be stored.
  • the instructions may cause the processor to recognize a first resistance value or a second resistance value through a third signal terminal among the at least one signal terminal, using the identification circuit. .
  • the instructions when the processor recognizes the first resistance value using the identification circuit, the instructions recognize that the external electronic device corresponds to a sink receiving power from the outside, and , When recognizing the second resistance value using the identification circuit, the external electronic device may be recognized as corresponding to a device (source) providing power to the outside.
  • the electronic device further includes a discharge circuit (eg, the discharge circuit 314 of FIG. 3 ) including at least one resistor, and the instructions include the processor, the switching circuit By using, it is possible to connect the first signal terminal and the second signal terminal to the discharge circuit.
  • a discharge circuit eg, the discharge circuit 314 of FIG. 3
  • the instructions include the processor, the switching circuit
  • the instructions include, after the processor discharges at least one of the first signal terminal and the second signal terminal, and then uses the switching circuit to perform a battery-based pull-up to the discharged signal terminal. power can be applied.
  • the instructions may cause the processor to wait for a specified time after applying the pull-up power to the discharged signal terminal.
  • the instructions may determine a voltage level of the first signal terminal and a voltage level of the second signal terminal after the processor discharges at least one of the first signal terminal and the second signal terminal. and when the difference between the voltage level of the first signal terminal and the voltage level of the second signal terminal is less than a threshold value, it may be determined not to output the power supply voltage to the external electronic device.
  • the instructions include, when the processor outputs the power supply voltage to the external electronic device when a difference between the voltage level of the first signal terminal and the voltage level of the second signal terminal is greater than or equal to the threshold value. can decide what to do.
  • the electronic device further includes a charging circuit (eg, the charging circuit 317 of FIG. 3 ), and the instructions are based on the processor determining whether to output the power supply voltage,
  • the charging circuit may be controlled.
  • the instructions may cause the processor to discharge the first signal terminal and the second signal terminal, respectively, by using the switching circuit, apply a pull-up power to the first signal terminal, and Recognizing the voltage level of the second signal terminal, performing a first check operation for recognizing that the voltage level difference between the first signal terminal and the second signal terminal is less than a threshold value, and applying the pull-up power to the second signal terminal and perform a second check operation for recognizing the voltage level of the first signal terminal and recognizing that the voltage level difference between the first signal terminal and the second signal terminal is less than the threshold value.
  • the instructions may cause the processor to limit output of the power supply voltage to the external electronic device based on the first check operation and the second check operation.
  • the instructions include, the processor, applying the pull-up power to the first signal terminal, recognizing the voltage level of the second signal terminal, the first signal terminal and the second signal terminal A third check operation for recognizing that the voltage level difference is less than the threshold value is performed, the pull-up power is applied to the second signal terminal, and the voltage level of the first signal terminal is recognized to determine the first signal terminal and the voltage level of the first signal terminal. Performing a fourth check operation for recognizing that the voltage level difference of the second signal terminal is less than the threshold value, and limiting output of the power supply voltage to the external device based on the third check operation and the fourth check operation can make it
  • the memory stores state information related to the external electronic device, and the instructions cause the processor to reboot while the external electronic device is electrically connected to the electronic device.
  • state information related to the external electronic device Prior to outputting the power voltage to the external electronic device, state information related to the external electronic device may be checked, and output of the power voltage to the external electronic device may be limited based on the checked state information.
  • the first signal terminal and the second signal terminal may be configured to transmit and receive data between the electronic device and the external electronic device.
  • FIG. 5 is a flowchart of a method of operating an electronic device according to various embodiments.
  • operations described as being performed by an electronic device are (eg, the processor of FIG. 1 120 or processor 250 of FIG. 2 or processor 319 of FIG. 3 .
  • the electronic device in operation 510, is connected to an external electronic device (eg, the interface 177 of FIG. 1 , the connector 210 of FIG. 2 , or the connector 311 of FIG. 3 ) through a connector (eg, the interface 177 of FIG. 1 ).
  • the connection of the electronic device 102 of 1 or the external electronic device 302 of FIG. 3 may be recognized.
  • the electronic device detects (or recognizes) a resistance value representing the characteristics of the external electronic device through an identification circuit (eg, identification circuit 220 of FIG. 2 or identification circuit 313 of FIG. 3 ). can do.
  • the electronic device may detect a first resistance value (eg, a pull-down resistance value (5.1 kohm)) through an identification circuit.
  • a first resistance value eg, a pull-down resistance value (5.1 kohm)
  • the first resistance value sensed through the identification circuit may indicate that the external electronic device corresponds to a device receiving power from the electronic device.
  • the electronic device may connect the first signal terminal and the second signal terminal to the discharge circuit.
  • the electronic device uses a switching circuit (eg, the switching circuit 230 of FIG. 2 or the switching circuit 315 of FIG. 3 ) to obtain a first signal terminal (eg, a first data terminal (D+ terminal)).
  • a first signal terminal eg, a first data terminal (D+ terminal)
  • a discharge circuit including a pull-down resistor circuit eg, the discharge circuit 314 of FIG. 3
  • the electronic device may connect the second signal terminal (eg, the second data terminal (D-terminal)) to the discharge circuit including the pull-down resistor circuit by using the switching circuit.
  • the first signal terminal and the second signal terminal are connected to a discharge circuit including a pull-down resistor circuit, at least a portion of capacitor components (eg, residual charges) of the first signal terminal and the second signal terminal may be discharged.
  • the electronic device may apply pull-up power to the first signal terminal.
  • the electronic device may connect the first signal terminal to an electrical path for providing pull-up power by using a switching circuit.
  • the electronic device may check the voltage level of the second signal terminal.
  • the electronic device may check the voltage level of the second signal terminal using an analog to digital converter (ADC) or a comparator.
  • ADC analog to digital converter
  • the electronic device may check whether the first signal terminal and the second signal terminal are short-circuited.
  • the electronic device generates a first signal terminal and a second signal when the voltage level of the first signal terminal is equal to the voltage level of the second signal terminal or the difference between the voltage levels of the two signal terminals is within a threshold value. It can be recognized that the terminals are shorted to each other.
  • the electronic device may perform operation 560.
  • the electronic device when the voltage level of the first signal terminal and the voltage level of the second signal terminal are not the same (or when the difference between the two voltage levels is greater than a threshold value), the electronic device transmits the first signal terminal and the second signal terminal. It can be recognized that the terminals are not shorted to each other. When it is recognized that the first signal terminal and the second signal terminal are not in a short-circuit state (No), the electronic device may perform operation 551.
  • the electronic device may recognize the external electronic device as a normal external electronic device.
  • the electronic device may output a power supply voltage to an external electronic device using a charging circuit (eg, the charging circuit 317 of FIG. 3 ).
  • the electronic device may apply pull-up power to the second signal terminal.
  • the electronic device may connect the second signal terminal to an electrical path for providing pull-up power by using a switching circuit.
  • the electronic device may check the voltage level of the first signal terminal.
  • the electronic device may check the voltage level of the second signal terminal using an analog to digital converter (ADC) or a comparator.
  • ADC analog to digital converter
  • the electronic device may check whether the first signal terminal and the second signal terminal are short-circuited. In one embodiment, when the first signal terminal and the second signal terminal are short-circuited or the difference between the voltage levels of the two signal terminals is within a threshold value (yes), the electronic device may perform operation 590. . In another embodiment, when it is recognized that the first signal terminal and the second signal terminal are not shorted to each other (No), the electronic device may perform operation 551.
  • the electronic device may recognize the external electronic device as an abnormal external electronic device.
  • the electronic device may not output a power voltage to an external electronic device.
  • the electronic device may control the charging circuit not to output the power supply voltage to the external electronic device.
  • FIG. 6 is a flowchart of a method of operating an electronic device according to various embodiments.
  • operations described as being performed by an electronic device are (eg, the processor of FIG. 1 120 or processor 250 of FIG. 2 or processor 319 of FIG. 3 .
  • the electronic device in operation 610, is connected to an external electronic device (eg, the interface 177 of FIG. 1 , the connector 210 of FIG. 2 , or the connector 311 of FIG. 3 ) through a connector (eg, the interface 177 of FIG. 1 ).
  • the connection of the electronic device 102 of 1 or the external electronic device 302 of FIG. 3 may be recognized.
  • the electronic device may set a first resistance value (eg, a pull-down resistance value (5.1 kohm)) through an identification circuit (eg, identification circuit 220 of FIG. 2 or identification circuit 313 of FIG. 3 ). Based on the detection, it may be recognized that the external electronic device corresponds to a device receiving power from the electronic device.
  • the electronic device may connect the first signal terminal and the second signal terminal to a discharge circuit (eg, the discharge circuit 314 of FIG. 3).
  • the electronic device uses a switching circuit (eg, the switching circuit 230 of FIG. 2 or the switching circuit 315 of FIG. 3 ) to obtain a first signal terminal (eg, a first data terminal (D+ terminal)).
  • a first signal terminal eg, a first data terminal (D+ terminal)
  • D+ terminal first data terminal
  • the first signal terminal and the second signal terminal are connected to a discharge circuit including a pull-down resistor circuit, at least a portion of capacitor components of the first signal terminal and the second signal terminal may be discharged.
  • the electronic device may set a count value to 0.
  • the count value may correspond to the number of times the electronic device checks the voltage levels of the first signal terminal and the second signal terminal. For example, the count value may maintain 0 before the electronic device checks the voltage levels of the first signal terminal and the second signal terminal.
  • the electronic device may apply pull-up power to the first signal terminal.
  • the electronic device may connect the first signal terminal to an electrical path for providing pull-up power by using a switching circuit.
  • the electronic device may wait for a specified time. According to an embodiment, the electronic device may wait for a specified time before checking the voltage level of the second signal terminal in order to reduce the effect of the internal resistance between the first signal terminal and the second signal terminal.
  • the electronic device may check the voltage level of the second signal terminal.
  • the electronic device may check the voltage level of the second signal terminal using an analog to digital converter (ADC) or a comparator.
  • ADC analog to digital converter
  • the electronic device may check the voltage level of the second signal terminal in operation 640 after waiting for a specified time in operation 631 .
  • the electronic device may check whether the first signal terminal and the second signal terminal are short-circuited.
  • the electronic device generates a first signal terminal and a second signal when the voltage level of the first signal terminal is the same as that of the second signal terminal or the difference between the voltage levels of the two signal terminals is within a threshold value. It can be recognized that the terminals are shorted to each other.
  • the electronic device may perform operation 660.
  • the electronic device when the voltage level of the first signal terminal and the voltage level of the second signal terminal are not the same or the difference between the voltage levels of the two signal terminals is greater than or equal to a threshold value, the electronic device generates a signal between the first signal terminal and the second signal terminal. It can be recognized that the terminals are not shorted to each other. If it is recognized that the first signal terminal and the second signal terminal are not shorted to each other (No), the electronic device may perform operation 651.
  • the electronic device may recognize the external electronic device as a normal external electronic device.
  • the electronic device may output a power supply voltage to the external electronic device using a charging circuit (eg, the charging circuit 317 of FIG. 3 ).
  • the electronic device may apply pull-up power to the second signal terminal.
  • the electronic device may connect the second signal terminal to an electrical path for providing pull-up power by using a switching circuit.
  • the electronic device may wait for a specified time. According to an embodiment, the electronic device may wait for a specified time before checking the voltage level of the first signal terminal in order to reduce the effect of internal resistance between the first signal terminal and the second signal terminal.
  • the electronic device may check the voltage level of the first signal terminal.
  • the electronic device may check the voltage level of the second signal terminal using an analog to digital converter (ADC) or a comparator.
  • ADC analog to digital converter
  • the electronic device may check whether the first signal terminal and the second signal terminal are short-circuited. In one embodiment, if it is recognized that the first signal terminal and the second signal terminal are shorted to each other (yes), the electronic device may perform operation 681. In another embodiment, when it is recognized that the first signal terminal and the second signal terminal are not shorted to each other (No), the electronic device may perform operation 651.
  • the electronic device may check whether the count value is 1.
  • the count value may indicate the number of times the electronic device checks the voltage levels of the first signal terminal and the second signal terminal.
  • the electronic device may perform operation 683. For example, when the count value corresponds to 0, it may mean that the electronic device checks the voltage level of the first signal terminal and the voltage level of the second signal terminal once. For example, when the count value is 0, it may mean that pull-up power is applied to the first signal terminal and the second signal terminal once each. In another embodiment, when the count value corresponds to 1, it may mean that the electronic device has already checked the voltage level of the first signal terminal and the voltage level of the second signal terminal twice. In one embodiment, when the count value is 1 (Yes), the electronic device may perform operation 690. For example, when the count value is 1, it may mean that pull-up power is applied to the first signal terminal and the second signal terminal twice, respectively. According to various embodiments, the number of times of checking the voltage level of the first signal terminal and the voltage level of the second signal terminal may be two or more.
  • the electronic device may increase the count value by 1.
  • the connected external electronic device maintains a short state with each other before power is applied to the specified characteristic (eg, the first signal terminal and the second signal terminal, and power is applied to the first signal terminal and the second signal terminal). characteristics of not shorting each other after being applied).
  • the electronic device in order to recognize that the external electronic device is a normal external electronic device, the electronic device reapplies pull-up power to the first signal terminal and the second signal terminal to reconfirm whether the first signal terminal and the second signal terminal are shorted to each other. can do.
  • the electronic device may re-perform operation 630 after increasing the count value by 1. In various embodiments, after increasing the count value by 1, the electronic device may wait for a specified time and then perform operation 630 again.
  • the electronic device may recognize the external electronic device as an abnormal external electronic device.
  • the electronic device may not output a power supply voltage to an external electronic device.
  • the electronic device may control the charging circuit not to output the power supply voltage to the external electronic device.
  • FIG. 7 is a flowchart of a method of operating an electronic device according to various embodiments.
  • operations described as being performed by an electronic device are (eg, the processor of FIG. 1 120 or processor 250 of FIG. 2 or processor 319 of FIG. 3 .
  • the electronic device may be rebooted.
  • the electronic device may be an external electronic device (eg, the electronic device of FIG. 1 ) connected through a connector (eg, the interface 177 of FIG. 1 , the connector 210 of FIG. 2 , or the connector 311 of FIG. 3 ).
  • a connector eg, the interface 177 of FIG. 1 , the connector 210 of FIG. 2 , or the connector 311 of FIG. 3 .
  • the electronic device may be restarted in a state in which the external electronic device is coupled to the electronic device through a connector.
  • restarting the electronic device is a system of the electronic device in a state where power supply from the battery (eg, battery 189 in FIG. 1 or battery 260 in FIG. 2 or battery 318 in FIG. 3) continues. This may mean being reset.
  • an internal system of the electronic device may be restarted in a state in which power supply is maintained without interruption.
  • the electronic device may check state information about the external electronic device.
  • the electronic device may check state information about the external electronic device pre-stored in a memory (eg, the memory 130 of FIG. 1 or the memory 240 of FIG. 2 ).
  • the electronic device may check state information about the external electronic device prior to providing a power voltage to the currently electrically connected (or coupled) external electronic device.
  • state information about an external electronic device may include information representing characteristics of an external electronic device recognized and stored in a memory before the electronic device is restarted.
  • the state information on the external electronic device includes first information representing whether the external electronic device is a device receiving power and a first signal terminal (eg, a first data terminal D+) of the external electronic device. It may include second information indicating whether the second signal terminal (eg, the second data terminal D-) is in a short state with each other.
  • the electronic device may recognize that the external electronic device corresponds to the abnormal external electronic device based on the status information. For example, after the electronic device is restarted, the electronic device may recognize first information and second information included in pre-stored state information related to the external electronic device.
  • the first information may indicate that an external electronic device currently electrically coupled corresponds to a device receiving power.
  • the second information may indicate that a first signal terminal and a second signal terminal of an external electronic device that are currently electrically coupled to each other are in a short state.
  • the electronic device may determine not to output a power supply voltage to the external electronic device without initializing state information about the external electronic device.
  • FIG. 8 is a flowchart of a method of operating an electronic device according to various embodiments.
  • operations described as being performed by an electronic device are (eg, the processor of FIG. 1 120 or processor 250 of FIG. 2 or processor 319 of FIG. 3 .
  • the electronic device uses an identification circuit (eg, the identification circuit 220 of FIG. 2 or the identification circuit 313 of FIG. It may be recognized that the electronic device 102 or the external electronic device 302 of FIG. 3 is connected to the electronic device through a connector (eg, the connection terminal 178 of FIG. 1 or the connector 210 of FIG. 2 ). For example, the electronic device may recognize that the external electronic device is electrically coupled to the electronic device by detecting an electrical signal from the connector. According to an embodiment, the electronic device may identify one of the first resistance value and the second resistance value through an identification terminal of a connector connected to the identification circuit. For example, based on the identification of the first resistance value (eg, a pull-down resistance value (5.1 kohm)) by using the identification circuit, the electronic device determines whether the external electronic device can receive power from the electronic device. response can be recognized.
  • an identification circuit eg, the identification circuit 220 of FIG. 2 or the identification circuit 313 of FIG. It may be recognized that the electronic device 102 or the external electronic device
  • the electronic device uses a switching circuit (eg, the switching circuit 230 of FIG. 2 or the switching circuit 315 of FIG. 3) among at least one signal terminal of the connector. Electrical energy in a capacitor electrically connected to at least one of the first signal terminal and the second signal terminal may be discharged.
  • the first signal terminal may include a first data terminal D+.
  • the second signal terminal may include a second data terminal (D ⁇ ).
  • the first signal terminal of the connector may be connected to the first signal line (eg, D+ line) of the external electronic device.
  • the second signal terminal of the connector may be connected to a second signal line (eg, D-line) of an external electronic device.
  • the electronic device connects the first signal terminal to a discharge circuit including a pull-down resistor (eg, the discharge circuit 314 of FIG. 3) to form a capacitor component of the first signal terminal (eg, the discharge circuit 314 of FIG. 3). residual charge) may be at least partially removed. According to an embodiment, the electronic device may remove at least a portion of the capacitor component of the second signal terminal by connecting the second signal terminal to a discharge circuit including a pull-down resistor.
  • a pull-down resistor eg, the discharge circuit 314 of FIG. 3
  • the electronic device may determine whether to output a power supply voltage to the external electronic device through the connector, based on the voltage level difference between the first signal terminal and the second signal terminal.
  • the external electronic device when there is no voltage level difference between the first signal terminal and the second signal terminal or is less than a threshold value (eg, a short state), the external electronic device generates an abnormal voltage for applying a high voltage to the electronic device. It may be an external electronic device.
  • the electronic device may control the charging circuit (eg, the charging circuit 317 of FIG. 3 ) so as not to output the power supply voltage to the external electronic device.
  • the external electronic device when the voltage level difference between the first signal terminal and the second signal terminal is greater than a threshold value (eg, a non-short state), the external electronic device does not apply a high voltage to the electronic device as a normal external electronic device.
  • the electronic device may control the charging circuit to output the power voltage to the external electronic device.
  • An operating method of an electronic device includes an external electronic device using a connector (Example: operation of recognizing that it is electrically connected to the electronic device through the connection terminal 178 of FIG. 1, the connector 210 of FIG. 2 or the connector 311 of FIG.
  • the electronic device may include an operation of determining whether to output a power supply voltage through the connector.
  • the recognizing operation may include recognizing a first resistance value or a second resistance value through a third signal terminal among the at least one signal terminal.
  • the discharging operation may include a discharge circuit including at least one resistor in at least one of the first signal terminal and the second signal terminal (eg, the discharge circuit 314 of FIG. 3 ) It may include an operation to connect to.
  • the operation of determining whether to output the power supply voltage may include discharging at least one of the first signal terminal and the second signal terminal, and then determining the voltage level of the first signal terminal and the second signal terminal. Recognizing the voltage level of the terminal, determining not to output the power supply voltage to the external electronic device based on a difference between the voltage level of the first signal terminal and the voltage level of the second signal terminal being less than a threshold value and determining to output the power supply voltage to the external electronic device based on a difference between the voltage level of the first signal terminal and the voltage level of the second signal terminal being greater than or equal to the threshold value.
  • the discharging operation includes connecting the first signal terminal and the second signal terminal to a discharging circuit, respectively, and the operation of determining whether to output the power supply voltage includes An operation of applying pull-up power to a first signal terminal, a first confirmation operation of recognizing the voltage level of the second signal terminal and recognizing that the voltage level difference between the first signal terminal and the second signal terminal is less than a threshold value, the Operation of applying the pull-up power to a second signal terminal and recognizing the voltage level of the first signal terminal to recognize that the voltage level difference between the first signal terminal and the second signal terminal is less than the threshold. Actions may be included.
  • the operation method may further include an operation of limiting output of the power supply voltage to the external electronic device based on the first confirmation operation and the second confirmation operation.
  • Electronic devices may be devices of various types.
  • the electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance.
  • a portable communication device eg, a smart phone
  • a computer device e.g., a smart phone
  • a portable multimedia device e.g., a portable medical device
  • a camera e.g., a portable medical device
  • a camera e.g., a portable medical device
  • a camera e.g., a portable medical device
  • a camera e.g., a camera
  • a wearable device e.g., a smart bracelet
  • first, second, or first or secondary may simply be used to distinguish a given component from other corresponding components, and may be used to refer to a given component in another aspect (eg, importance or order) is not limited.
  • a (e.g., first) component is said to be “coupled” or “connected” to another (e.g., second) component, with or without the terms “functionally” or “communicatively.”
  • the certain component may be connected to the other component directly (eg by wire), wirelessly, or through a third component.
  • module used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as, for example, logic, logical blocks, parts, or circuits.
  • a module may be an integrally constructed component or a minimal unit of components or a portion thereof that performs one or more functions.
  • the module may be implemented in the form of an application-specific integrated circuit (ASIC).
  • ASIC application-specific integrated circuit
  • a storage medium eg, internal memory 136 or external memory 138
  • a machine eg, electronic device 101
  • a processor eg, the processor 120
  • a device eg, the electronic device 101
  • the one or more instructions may include code generated by a compiler or code executable by an interpreter.
  • the device-readable storage medium may be provided in the form of a non-transitory storage medium.
  • the storage medium is a tangible device and does not contain a signal (e.g. electromagnetic wave), and this term refers to the case where data is stored semi-permanently in the storage medium. It does not discriminate when it is temporarily stored.
  • a signal e.g. electromagnetic wave
  • the method according to various embodiments disclosed in this document may be included and provided in a computer program product.
  • Computer program products may be traded between sellers and buyers as commodities.
  • a computer program product is distributed in the form of a device-readable storage medium (e.g. compact disc read only memory (CD-ROM)), or through an application store (e.g. Play StoreTM) or on two user devices (e.g. It can be distributed (eg downloaded or uploaded) online, directly between smart phones.
  • a device-readable storage medium e.g. compact disc read only memory (CD-ROM)
  • an application store e.g. Play StoreTM
  • two user devices e.g. It can be distributed (eg downloaded or uploaded) online, directly between smart phones.
  • at least part of the computer program product may be temporarily stored or temporarily created in a device-readable storage medium such as a manufacturer's server, an application store server, or a relay server's memory.
  • each component (eg, module or program) of the above-described components may include a single object or a plurality of entities, and some of the plurality of entities may be separately disposed in other components. there is.
  • one or more components or operations among the aforementioned corresponding components may be omitted, or one or more other components or operations may be added.
  • a plurality of components eg modules or programs
  • the integrated component may perform one or more functions of each of the plurality of components identically or similarly to those performed by a corresponding component of the plurality of components prior to the integration. .
  • the actions performed by a module, program, or other component are executed sequentially, in parallel, iteratively, or heuristically, or one or more of the actions are executed in a different order, or omitted. or one or more other actions may be added.

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

본 문서에 개시되는 일 실시예에 따른 전자 장치는, 적어도 하나의 신호 단자들을 포함하는 커넥터, 상기 커넥터와 전기적으로 연결된 식별 회로, 상기 커넥터와 전기적으로 연결된 스위칭 회로, 배터리, 메모리 및 상기 식별 회로, 상기 스위칭 회로, 상기 배터리 및 상기 메모리와 작동적으로 연결되는 프로세서를 포함할 수 있다. 일 실시예에 따르면, 상기 메모리는, 실행 시, 상기 프로세서가, 상기 식별 회로를 이용하여, 외부 전자 장치가 상기 커넥터를 통해서 상기 전자 장치에 전기적으로 연결된 것을 인식하고, 상기 스위칭 회로를 이용하여, 상기 적어도 하나의 신호 단자들 중 제1 신호 단자 및 제2 신호 단자 중 적어도 하나에 전기적으로 연결된 커패시터 내의 에너지를 방전(discharge)시키고, 상기 제1 신호 단자 및 상기 제2 신호 단자의 전압 레벨 차이에 기초하여, 상기 외부 전자 장치로 상기 커넥터를 통해 상기 배터리에 기반한 전원 전압을 출력할지 여부를 결정하도록 하는 인스트럭션들을 저장할 수 있다.

Description

전자 장치 및 전자 장치의 동작 방법
본 문서에서 개시되는 다양한 실시 예들은, 전자 장치 및 전자 장치의 동작 방법과 관련된다.
메모리 또는 전력과 같은 자원(resource)의 확장 요구가 증가함에 따라서, 둘 이상의 전자 장치들이 연결되는 경우가 증가하고 있다. 전자 장치는 다양한 외부 전자 장치들과 연결될 수 있으며, 외부 전자 장치로부터 데이터를 수신하거나, 외부 전자 장치로 데이터를 전송할 수 있다. 또한, 전자 장치는 외부 전자 장치로부터 전력을 수신하거나, 외부 전자 장치로 전력을 전송할 수 있다.
전자 장치는 외부 전자 장치와 전기적으로 연결될 수 있다. 외부 전자 장치는 전자 장치로부터 수신한 전원 전압을 이용하여 고전압을 생성하고, 생성된 고전압을 전자 장치에 인가하여 전자 장치 내부의 구성요소가 소손되는 문제점이 있다.
본 문서에 개시되는 다양한 실시예들은, 외부 전자 장치와 연결된 적어도 하나의 신호 단자들을 방전 회로에 연결한 후, 상기 적어도 하나의 신호 단자들의 전압 레벨에 기초하여 외부 전자 장치에 전원 전압의 출력 여부를 결정할 수 있는 전자 장치를 제공할 수 있다.
본 문서에 개시되는 일 실시 예에 따른 전자 장치는, 적어도 하나의 신호 단자들을 포함하는 커넥터, 상기 커넥터와 전기적으로 연결된 식별 회로, 상기 커넥터와 전기적으로 연결된 스위칭 회로, 배터리, 메모리 및 상기 식별 회로, 상기 스위칭 회로, 상기 배터리 및 상기 메모리와 작동적으로 연결되는 프로세서를 포함할 수 있다. 일 실시예에 따르면, 상기 메모리는, 실행 시, 상기 프로세서가, 상기 식별 회로를 이용하여, 외부 전자 장치가 상기 커넥터를 통해서 상기 전자 장치에 전기적으로 연결된 것을 인식하고, 상기 스위칭 회로를 이용하여, 상기 적어도 하나의 신호 단자들 중 제1 신호 단자 및 제2 신호 단자 중 적어도 하나에 전기적으로 연결된 커패시터 내의 에너지를 방전(discharge)시키고, 상기 제1 신호 단자 및 상기 제2 신호 단자의 전압 레벨 차이에 기초하여, 상기 외부 전자 장치로 상기 커넥터를 통해 상기 배터리에 기반한 전원 전압을 출력할지 여부를 결정하도록 하는 인스트럭션들을 저장할 수 있다.
또한, 본 문서에 개시되는 일 실시 예에 따른 전자 장치의 동작 방법은, 외부 전자 장치가 커넥터를 통해서 상기 전자 장치에 전기적으로 연결된 것을 인식하는 동작, 상기 커넥터에 포함된 적어도 하나의 신호 단자들 중 제1 신호 단자 및 상기 제2 신호 단자 중 적어도 하나에 전기적으로 연결된 커패시터 내의 에너지를 방전시키는 동작 및 상기 제1 신호 단자 및 상기 제2 신호 단자의 전압 레벨 차이에 기초하여, 상기 외부 전자 장치로 상기 커넥터를 통해 전원 전압을 출력할지 여부를 결정하는 동작을 포함할 수 있다.
본 문서에 개시되는 다양한 실시 예들에 따르면, 외부 전자 장치와 연결된 적어도 하나의 신호 단자들을 방전 회로에 연결한 후, 상기 적어도 하나의 신호 단자들의 전압 레벨에 기초하여 외부 전자 장치에 전원 전압의 출력 여부를 결정할 수 있는 전자 장치를 제공할 수 있다.
이외에, 본 문서를 통해 직접적 또는 간접적으로 파악되는 다양한 효과들이 제공될 수 있다.
도 1은, 다양한 실시예들에 따른, 네트워크 환경 내의 전자 장치의 블록도이다.
도 2는 다양한 실시예에 따른 전자 장치의 블록도이다.
도 3은 다양한 실시예에 따른, 전자 장치의 블록도 및 외부 전자 장치의 블록도이다.
도 4는 다양한 실시예에 따른, 외부 전자 장치에 포함된 고전압 생성 회로를 예시적으로 도시한다.
도 5는 다양한 실시예에 따른, 전자 장치의 동작 방법의 흐름도이다.
도 6은 다양한 실시예에 따른, 전자 장치의 동작 방법의 흐름도이다.
도 7은 다양한 실시예에 따른, 전자 장치의 동작 방법의 흐름도이다.
도 8은 다양한 실시예에 따른, 전자 장치의 동작 방법의 흐름도이다.
도면의 설명과 관련하여, 동일 또는 유사한 구성요소에 대해서는 동일 또는 유사한 참조 부호가 사용될 수 있다.
도 1은, 다양한 실시예들에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블록도이다. 도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제 1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제 2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108) 중 적어도 하나 와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 연결 단자(178), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(178))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(176), 카메라 모듈(180), 또는 안테나 모듈(197))은 하나의 구성요소(예: 디스플레이 모듈(160))로 통합될 수 있다.
프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 저장하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일실시예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(101)가 메인 프로세서(121) 및 보조 프로세서(123)를 포함하는 경우, 보조 프로세서(123)는 메인 프로세서(121)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.
보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능 모델이 수행되는 전자 장치(101) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(108))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)을 포함할 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은, 복수의 인공 신경망 레이어들을 포함할 수 있다. 인공 신경망은 심층 신경망(DNN: deep neural network), CNN(convolutional neural network), RNN(recurrent neural network), RBM(restricted boltzmann machine), DBN(deep belief network), BRDNN(bidirectional recurrent deep neural network), 심층 Q-네트워크(deep Q-networks) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다.
메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서 모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다.
프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다.
입력 모듈(150)은, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(150)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다.
음향 출력 모듈(155)은 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 모듈(155)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.
디스플레이 모듈(160)은 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일실시예에 따르면, 디스플레이 모듈(160)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다.
오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일실시예에 따르면, 오디오 모듈(170)은, 입력 모듈(150)을 통해 소리를 획득하거나, 음향 출력 모듈(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.
센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다.
인터페이스(177)는 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.
연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일실시예에 따르면, 연결 단자(178)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.
햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일실시예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.
카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일실시예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.
전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일실시예에 따르면, 전력 관리 모듈(188)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.
배터리(189)는 전자 장치(101)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일실시예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.
통신 모듈(190)은 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108)) 간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일실시예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제 1 네트워크(198)(예: 블루투스, WiFi(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제 2 네트워크(199)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(104)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 또는 인증할 수 있다.
무선 통신 모듈(192)은 4G 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(192)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave 대역)을 지원할 수 있다. 무선 통신 모듈(192)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. 무선 통신 모듈(192)은 전자 장치(101), 외부 전자 장치(예: 전자 장치(104)) 또는 네트워크 시스템(예: 제 2 네트워크(199))에 규정되는 다양한 요구사항을 지원할 수 있다. 일실시예에 따르면, 무선 통신 모듈(192)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.
안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다.
다양한 실시예에 따르면, 안테나 모듈(197)은 mmWave 안테나 모듈을 형성할 수 있다. 일실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제 1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제 2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.
상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.
일실시예에 따르면, 명령 또는 데이터는 제 2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 외부의 전자 장치(102, 또는 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(102, 104, 또는 108) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(101)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시예에 있어서, 외부의 전자 장치(104)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(108)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일실시예에 따르면, 외부의 전자 장치(104) 또는 서버(108)는 제 2 네트워크(199) 내에 포함될 수 있다. 전자 장치(101)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다.
도 2는 다양한 실시예에 따른 전자 장치의 블록도이다.
일 실시예에 따르면, 전자 장치(201)(예: 도 1의 전자 장치(101))는 커넥터(210)(예: 도 1의 연결 단자(178)), 식별 회로(220), 스위칭 회로(230), 메모리(240)(예: 도 1의 메모리(130)), 프로세서(250)(예: 도 1의 프로세서(120)) 및 배터리(260)(예: 도 1의 배터리(189))를 포함할 수 있다.
일 실시예에 따르면, 전자 장치(201)는, 전기적으로 연결된 외부 전자 장치(예: 도 1의 전자 장치(102))를 인식하고, 인식한 외부 전자 장치의 특성에 기초하여 전원 전압을 외부 전자 장치로 출력할지 여부를 결정할 수 있다.
일 실시예에 따르면, 커넥터(210)는, 전자 장치(201)과 외부 전자 장치를 전기적 및/또는 물리적으로 연결할 수 있다. 일 실시예에서, 커넥터(210)는 적어도 하나의 신호 단자(또는, 핀(pin))들을 포함할 수 있다. 일 실시예에서, 전자 장치(201)와 외부 전자 장치가 커넥터(210)를 통해 전기적으로 연결될 수 있다. 전자 장치(201)는, 커넥터(210)의 복수의 신호 단자(또는, 핀)들 중 적어도 하나를 통해 외부 전자 장치에 전기적인 신호(예: 전압 또는 전류)를 송신하거나 및/또는 외부 전자 장치로부터 전기적인 신호를 수신할 수 있다. 일 실시예에서, 전자 장치(201)는, 커넥터(210)를 통해 외부 전자 장치와 연결되어 데이터를 송수신하거나 또는 전력을 송수신할 수 있다.
일 실시예에 따르면, 커넥터(210)는 다양한 타입의 USB(universal serial bus) 표준을 따르는 외부 전자 장치를 전자 장치(201)에 연결시킬 수 있다. 예를 들어, 외부 전자 장치는, USB-C 타입의 전자 장치이거나 또는 USB-A 타입의 메인 장치(예: 고전압 생성 회로를 포함하는 장치) 및 USB-A 타입을 USB-C 타입으로 변환하는 OTG(on the go) 젠더를 포함할 수 있다. 예를 들어, 커넥터(210)는 USB-C 타입의 커넥터(또는, 리셉터클 커넥터(receptacle connector))에 대응할 수 있다. 일 실시예에 따르면, 커넥터(210)는 외부 전자 장치와 연결되어 전자 장치(201)와 외부 전자 장치 사이에서 데이터 통신을 수행하거나 및/또는 전력을 송수신할 수 있다.
일 실시예에서, 커넥터(210)는 적어도 하나의 신호 단자(또는, 핀(pin))들을 포함할 수 있다. 예를 들어, 적어도 하나의 신호 단자는, 전력의 공급 및/또는 수신을 위한 전원 단자(예: VBUS 단자), 외부 전자 장치를 식별하기 위한 식별 단자(예: CC 단자), 데이터의 송수신을 위한 제1 데이터 단자(예: D+ 단자) 및 제2 데이터 단자(예: D- 단자), 및 그라운드 단자(예: GND 단자)를 포함할 수 있다.
일 실시예에 따르면, 식별 회로(220)는 커넥터(210)의 CC 단자와 연결될 수 있다. 예를 들어, 식별 회로(220)는 CCIC(configuration channel IC)를 포함할 수 있다. 일 실시예에 따르면 식별 회로(220)는, 프로세서(250)의 제어에 기초하여, CC 단자를 통해 감지된 저항 값을 프로세서(250)에 전달할 수 있다. 다양한 예에서, 프로세서(250)는, 식별 회로(220)를 이용하여, CC 단자를 통한 저항 값을 인식할 수 있다.
일 실시예에 따르면, 스위칭 회로(230)는 커넥터(210)의 데이터 단자와 연결될 수 있다. 예를 들어, 스위칭 회로(230)는 커넥터(210)의 복수의 신호 단자들 중에서 제1 데이터 단자 및 제2 데이터 단자와 연결될 수 있다. 일 실시예에 따르면, 스위칭 회로(230)는 MUX IC(multiplexer IC)를 포함할 수 있다.
일 실시예에 따르면, 스위칭 회로(230)는, 프로세서(250)의 제어에 따라서, 데이터 단자를 방전 회로에 연결하여 데이터 단자 내의 전기적 에너지를 방전(discharge)시킬 수 있다. 일 실시예에 따르면, 스위칭 회로(230)는, 프로세서(250)의 제어에 따라서, 데이터 단자에 전기적으로 연결된 커패시터 내의 에너지를 방전시키기 위하여 데이터 단자에 방전 회로를 연결할 수 있다. 예를 들어, 데이터 단자에 전기적으로 연결된 커패시터 내의 에너지는, 데이터 단자에 존재하는 커패시터 성분(예: 전하(charge))에 대응할 수 있다. 일 실시예 따르면, 스위칭 회로(230)는, 프로세서(250)의 제어에 따라서 데이터 단자를 풀다운 저항(또는, 적어도 하나의 저항(resistor))을 포함하는 회로에 전기적으로 연결할 수 있다. 데이터 단자가 풀다운 저항을 포함하는 회로에 연결되면, 데이터 단자에 존재하는 전하(또는, 커패시터(capacitor) 성분)의 적어도 일부가 방전(또는, 제거)될 수 있다. 일 실시예에 따르면, 스위칭 회로(230)는, 프로세서(250)의 제어에 따라서, 데이터 단자에 풀업 전원을 전기적으로 인가(또는, 공급)할 수 있다. 예를 들어, 풀업 전원은 데이터 단자(예: 제1 데이터 단자(D+) 및/또는 제2 데이터 단자(D-))의 전압 레벨을 확인하기 위해 인가되는 배터리(260)에 기반한 전원일 수 있다. 이하에서, 연결(또는, 전기적으로 연결)하는 것은, 신호 단자들을 전기적으로 연결하여, 연결된 신호 단자들 사이에 전기적 신호가 송수신(예: 전류의 흐름 또는 전압의 인가)되도록 하는 것을 의미할 수 있다.
일 실시예에 따르면, 메모리(240)는, 다양한 데이터(또는, 정보)를 저장할 수 있다. 일 실시예에 따르면, 메모리(240)는, 프로세서(250)에 의해서 실행되는 적어도 하나의 프로그램, 어플리케이션, 데이터, 또는 인스트럭션들(instructions)을 저장할 수 있다. 일 실시예에 따르면, 메모리(240)는 도 1에 도시된 메모리(130)의 적어도 일부를 포함할 수 있다. 일 실시예에 따르면, 메모리(240)는 후술하는 전자 장치(201)의 동작의 적어도 일부가 수행되도록 하는 정보 또는 인스트럭션들을 저장할 수 있다. 일 실시예에 따르면, 메모리(240)는 프로세서(250)에 의해서 실행되는 복수의 어플리케이션들과 관련된 인스트럭션들을 저장할 수 있다. 일 실시예에 따르면, 메모리(240)는, 전자 장치(201)의 동작에 필요한 정보를 저장할 수 있다.
일 실시예에 따르면, 배터리(260)는 전자 장치(201)의 적어도 하나의 구성 요소 또는 외부 전자 장치에 공급할 전력을 충전한 상태일 수 있다. 일 실시예에 따르면, 전자 장치(201)의 구성 요소는 배터리(260)에 충전된 전력을 이용하여 다양한 동작을 수행할 수 있다. 일 실시예에 따르면, 배터리(260)에 충전된 전력의 적어도 일부는 전자 장치(201)의 구성 요소가 다양한 동작을 수행하기 위한 동작 전압으로 사용될 수 있다. 예를 들어, 배터리(260)에 충전된 전력에 기반한 풀업 전원이 데이터의 송수신을 위한 제1 데이터 단자 및 제2 데이터 단자에 인가될 수 있다. 일 실시예에 따르면, 배터리(260)에 충전된 전력의 적어도 일부는 외부 전자 장치로 제공될 수 있다. 예를 들어, 배터리(260)에 충전된 전력에 기반한 전원 전압이 외부 전자 장치로 제공될 수 있다.
일 실시예에 따르면, 프로세서(250)는, 전자 장치(201)의 다른 구성들과 작동적으로 연결되고 전자 장치(201)의 다양한 동작들을 제어할 수 있다. 예를 들어, 프로세서(250)는, 전자 장치(201)의 어플리케이션 프로세서를 포함할 수 있다. 프로세서(250)는 메모리(240)에 저장된 하나 이상의 인스트럭션들을 실행함으로써 전자 장치(201)의 다양한 동작들을 수행할 수 있다. 이하에서, 전자 장치(201)가 수행하는 것으로 설명된 동작들은 프로세서(250)에 의하여 수행되는 것으로 참조될 수 있다.
일 실시예에 따르면, 프로세서(250)는, 전자 장치(201)에 외부 전자 장치가 전기적으로 연결되는 경우, 외부 전자 장치의 특성을 감지(또는, 인식)하고 외부 전자 장치에 전원 전압(예: Vbus 전압)을 제공할지 여부를 결정할 수 있다. 일 실시예에서, 프로세서(250)는, 전자 장치(201)에 연결된 외부 전자 장치로 전원 전압을 출력할지 여부를 결정할 수 있다.
일 실시예에 따르면, 프로세서(250)는, 제1 데이터 단자와 제2 데이터 단자가 서로 쇼트(short) 상태인 것으로 판단하는 경우, 외부 전자 장치를 비정상적인 외부 전자 장치로 인식할 수 있다. 예를 들어, 쇼트 상태는 제1 신호 단자(예: 제1 데이터 단자)의 전압 레벨과 제2 신호 단자(예: 제2 데이터 단자)의 전압 레벨이 동일한 상태를 의미할 수 있다. 예를 들어, 쇼트 상태는 제1 신호 단자(예: 제1 데이터 단자)의 전압 레벨과 제2 신호 단자(예: 제2 데이터 단자)의 전압 레벨의 차이가 임계값 미만인 상태에 대응할 수 있다. 일 실시예에서, 프로세서(250)는, 외부 전자 장치가 비정상적인 외부 전자 장치임을 인식하면, 전원 전압을 외부 전자 장치에 제공하지 않도록 할 수 있다. 일 실시예에서, 비정상적인 외부 전자 장치는, 전자 장치(201)(또는, 프로세서(250))가 전원 전압(예: Vbus 전압)을 제공하지 않는 전자 장치에 대응할 수 있다. 예를 들어, 비정상적인 외부 전자 장치는 전자 장치(201)로부터 수신한 전원 전압을 이용하여 고전압을 생성하고, 생성된 고전압을 전자 장치(201)에 인가하여 전자 장치(201)의 내부 구성요소를 전기적으로 소손시킬 수 있다. 예를 들어, 비정상적인 외부 전자 장치는 USB 킬러(killer)를 의미할 수 있으나, 이에 제한되지 않는다.
다른 실시예에 따르면, 프로세서(250)는, 제1 데이터 단자와 제2 데이터 단자가 서로 쇼트 상태가 아닌 것으로 판단하는 경우, 외부 전자 장치를 정상적인 외부 전자 장치로 인식할 수 있다. 예를 들어, 쇼트 상태가 아닌 상태는 제1 신호 단자(예: 제1 데이터 단자)의 전압 레벨과 제2 신호 단자(예: 제2 데이터 단자)의 전압 레벨이 동일하지 않은 상태를 의미할 수 있다. 예를 들어, 쇼트 상태가 아닌 상태는 제1 신호 단자(예: 제1 데이터 단자)의 전압 레벨과 제2 신호 단자(예: 제2 데이터 단자)의 전압 레벨의 차이가 임계값 이상인 상태에 대응할 수 있다. 일 실시예에서, 프로세서(250)는, 외부 전자 장치가 정상적인 외부 전자 장치임을 인식하면, 전원 전압을 외부 전자 장치에 제공할 수 있다. 일 실시예에서, 정상적인 외부 전자 장치는, 전자 장치(201)(또는, 프로세서(250))가 전원 전압(예: Vbus 전압)을 제공할 수 있는 전자 장치에 대응할 수 있다. 예를 들어, 정상적인 외부 전자 장치는, 전자 장치(201)를 소손시키지 않고 전자 장치(201)로부터 수신한 전원 전압을 이용하여 다양한 동작을 수행할 수 있다.
일 실시예에 따르면, 프로세서(250)는, 전자 장치(201)에 연결된 외부 전자 장치가 정상적인 외부 전자 장치인지 여부를 확인하기 위해, 커넥터(210)의 복수의 신호 단자들 중 제1 데이터 단자와 제2 데이터 단자가 서로 쇼트(short) 상태인지 여부를 확인할 수 있다.
전자 장치(201)와 외부 전자 장치의 전기적인 연결 및 분리가 짧은 시간 내에 반복되는 경우, 커넥터(210)의 복수의 신호 단자들 중 적어도 하나의 신호 단자(예: 제1 데이터 단자 및/또는 제2 데이터 단자)에 잔존하는 커패시터(capacitor) 성분(예: 잔여 전하)으로 인하여 적어도 하나의 신호 단자의 전압 레벨이 오인식 될 수 있다. 일 실시예에 따르면, 프로세서(250)는, 커넥터(210)의 복수의 신호 단자들 중 적어도 하나의 신호 단자를 방전 회로에 전기적으로 연결하여, 상기 적어도 하나의 신호 단자들 내의 전기적 에너지를 방전시킬 수 있다. 일 실시예에 따르면, 프로세서(250)는, 적어도 하나의 신호 단자의 전압 레벨을 확인하기 전에, 적어도 하나의 신호 단자를 방전 회로에 전기적으로 연결할 수 있다. 일 실시예에 따르면, 프로세서(250)는, 전자 장치(201)에 연결된 외부 전자 장치가 정상적인 외부 전자 장치인지 여부를 확인하기 전에 제1 데이터 단자 및/또는 제2 데이터 단자를 방전 회로에 전기적으로 연결할 수 있다. 일 실시예에 따르면, 프로세서(250)는, 방전 회로를 통해 커패시터 성분이 제거된 제1 데이터 단자와 제2 데이터 단자를 통해, 외부 전자 장치가 정상적인 외부 전자 장치인지 여부를 정확하게 인식할 수 있다. 예를 들어, 프로세서(250)는, 방전 회로를 통해 커패시터 성분이 제거된 제1 데이터 단자와 제2 데이터 단자의 쇼트 상태를 확인하여 외부 전자 장치에 전원 전압을 제공할지 여부를 정확하게 결정할 수 있다.
일 실시예에 따르면, 프로세서(250)는, 식별 회로(220)를 통해 전자 장치(201)에 외부 전자 장치가 전기적으로 연결된 것을 식별(또는, 인식)할 수 있다. 일 실시예에 따르면, 프로세서(250)는, 외부 전자 장치가 커넥터(210)를 통해 전자 장치(201)와 연결되면, 외부 전자 장치의 특성을 인식할 수 있다. 일 실시예에 따르면, 프로세서(250)는, 커넥터(210)의 CC 단자와 연결된 식별 회로(220)를 통해 외부 전자 장치의 특성을 나타내는 저항 값을 감지(또는, 인식)할 수 있다.
일 실시예에 따르면, 프로세서(250)는, 외부 전자 장치가 전자 장치(201)에 연결되면, 식별 회로(220)를 통해 CC 단자의 저항 값을 감지할 수 있다. 일 실시예에 따르면, 프로세서(250)는, 식별 회로(220)에 전기적으로 연결되는 CC 단자의 제1 저항 값(예: 풀다운 저항 값(5.1kohm))을 감지하는 경우, 전자 장치(201)에 연결된 외부 전자 장치가 전자 장치(201)로부터 전력을 제공받는 장치임을 인식할 수 있다. 예를 들어, 전력을 제공받는 장치는 싱크(sink) 장치 또는 UFP(upstream facing port) 장치를 의미할 수 있으나 이에 제한되어 해석되지 않는다. 다른 실시예에 따르면, 프로세서(250)는, 식별 회로(220)에 전기적으로 연결되는 CC 단자의 제2 저항 값(예: 풀업 저항 값(56kohm))을 감지하는 경우, 전자 장치(201)에 연결된 외부 전자 장치가 전자 장치(201)에 전력을 제공하는 장치임을 인식할 수 있다. 예를 들어, 전력을 제공하는 장치는 소스(source) 장치 또는 DFP(downstream facing port) 장치를 의미할 수 있으나 이에 제한되어 해석되지 않는다.
일 실시예에 따르면, 프로세서(250)는, 식별 회로(220)를 이용하여 외부 전자 장치가 전력을 제공받기 위한 장치인 것을 인식하면, 커넥터(210)의 복수의 신호 단자들 중 일부 신호 단자를 방전 회로에 연결할 수 있다. 예를 들어, 프로세서(250)는, 스위칭 회로(230)를 이용하여 커넥터(210)의 복수의 신호 단자들 중에서 데이터 단자를 방전 회로에 연결할 수 있다. 예를 들어, 프로세서(250)는, 스위칭 회로(230)를 이용하여 커넥터(210)의 데이터 단자를 풀다운 저항을 포함하는 방전 회로에 연결하여 데이터 단자에 남아있는 전기적 에너지의 적어도 일부를 방전시킬 수 있다. 예를 들어, 프로세서(250)는, 스위칭 회로(230)를 이용하여, 커넥터(210)의 제1 데이터 단자 및 제2 데이터 단자를 풀다운 저항을 포함하는 방전 회로에 각각 연결하여 제1 데이터 단자 및 제2 데이터 단자에 남아있는 전기적 에너지(예: 커패시터 성분)를 방전시킬 수 있다.
일 실시예에 따르면, 프로세서(250)는, 스위칭 회로(230)를 이용하여, 방전시킨 신호 단자에 풀업 전원을 인가할 수 있다. 예를 들어, 프로세서(250)는, 데이터 단자에 풀업 전원을 인가하기 위하여, 스위칭 회로(230)를 이용하여 풀업 전원을 위한 전기적인 경로에 데이터 단자를 연결할 수 있다. 예를 들어, 프로세서(250)는, 스위칭 회로(230)를 이용하여 제1 데이터 단자에 풀업 전원을 인가하고, 제2 데이터 단자의 전압 레벨을 확인하여 제1 데이터 단자와 제2 데이터 단자가 서로 쇼트(short) 상태인지 여부를 판단할 수 있다. 프로세서(250)는, 스위칭 회로(230)를 이용하여 제2 데이터 단자에 풀업 전원을 인가하고, 제1 데이터 단자의 전압 레벨을 확인하여 제1 데이터 단자와 제2 데이터 단자가 서로 쇼트(short) 상태인지 여부를 판단할 수 있다. 일 실시예에 따르면, 프로세서(250)는, 제1 데이터 단자와 제2 데이터 단자가 서로 쇼트 상태인지 여부에 따라서, 외부 전자 장치에 전원 전압을 제공(또는, 출력)할지 여부를 결정할 수 있다.
일 실시예에 따르면, 프로세서(250)는, 외부 전자 장치가 정상적인 외부 전자 장치인지 여부를 인식하는 경우에, 인식도를 향상시키기 위하여 방전 회로(예: 풀다운 저항을 포함하는 저항 회로)를 이용할 수 있다. 일 실시예에 따르면, 프로세서(250)는, 방전 회로를 통해 커패시터 성분이 적어도 일부 제거된 제1 데이터 단자와 제2 데이터 단자가 서로 쇼트 상태인지 여부를 확인함으로써 외부 전자 장치가 정상적인 외부 전자 장치인지 여부를 정확하게 인식(또는, 판단)할 수 있다.
도 3은 다양한 실시예에 따른, 전자 장치의 블록도 및 외부 전자 장치의 블록도이다.
도 3을 참조하면, 전자 장치(301)(예: 도 1의 전자 장치(101) 또는 도 2의 전자 장치(201))는, 커넥터(311)(예: 도 1의 연결 단자(178) 또는 도 2의 커넥터(210)), 식별 회로(313)(예: 도 2의 식별 회로(220)), 방전 회로(314), 스위칭 회로(315)(예: 도 2의 스위칭 회로(230)), 충전 회로(317), 배터리(318)(예: 도 1의 배터리(189) 또는 도 2의 배터리(260)) 및 프로세서(319)(예: 도 1의 프로세서(120), 또는 도 2의 프로세서(250))를 포함할 수 있다. 도 3을 참조하면, 외부 전자 장치(302)(예: 도 1의 전자 장치(102))는 고전압 생성 회로(321) 및 OTG(on the go) 젠더(323)를 포함할 수 있다. 일 실시예에 따르면, 외부 전자 장치(302)는 USB 표준을 따르는 전자 장치일 수 있다. 도 3을 참조하면, 외부 전자 장치(302)가 USB-A 타입을 USB-C 타입으로 변환하는 OTG 젠더(323)를 포함하는 것으로 도시되어 있으나, 다양한 실시예에서 외부 전자 장치(302)는 고전압 생성 회로(321)를 포함하는 USB-C 타입의 전자 장치일 수 있다.
일 실시예에 따르면, 커넥터(311)는 적어도 하나의 신호 단자(또는, 핀(pin))들을 포함할 수 있다. 예를 들어, 적어도 하나의 신호 단자는, 전력의 공급 및/또는 수신을 위한 전원 단자(예: VBUS 단자), 외부 전자 장치를 식별하기 위한 식별 단자(예: CC 단자), 데이터의 송수신을 위한 제1 데이터 단자(예: D+ 단자) 및 제2 데이터 단자(예: D- 단자), 및 그라운드 단자(예: GND 단자)를 포함할 수 있다.
일 실시예에 따르면, 커넥터(311)는 외부 전자 장치(302)와 전자 장치(301)가 전기적으로 연결되도록 구성될 수 있다. 예를 들어, 커넥터(311)의 그라운드 단자는 외부 전자 장치(302)의 그라운드 단자와 전기적으로 연결될 수 있다. 예를 들어, 커넥터(311)의 전원 단자는 외부 전자 장치(301)의 전원 단자와 전기적으로 연결될 수 있다. 예를 들어, 커넥터(311)의 식별 단자는 외부 전자 장치(302)의 식별 단자와 전기적으로 연결될 수 있다. 예를 들어, 커넥터(311)의 제1 데이터 단자는 외부 전자 장치(302)의 제1 데이터 단자와 전기적으로 연결될 수 있다. 예를 들어, 커넥터(311)의 제2 데이터 단자는 외부 전자 장치(302)의 제2 데이터 단자와 전기적으로 연결될 수 있다.
일 실시예에 따르면, 식별 회로(313)는, 프로세서(319)의 제어에 기초하여 식별 단자를 통해 감지된 저항 값을 프로세서(319)에 전달할 수 있다.
일 실시예에 따르면, 스위칭 회로(315)는, 프로세서(319)의 제어에 기초하여, 데이터 단자(예: 제1 데이터 단자 및/또는 제2 데이터 단자)를 방전 회로에 연결하거나 또는 풀업 전원을 인가하기 위한 전기적인 경로에 데이터 단자를 연결할 수 있다.
일 실시예에 따르면, 충전 회로(317)는, 프로세서(319)의 제어에 기초하여, 외부 전자 장치(302)로 전원 전압을 출력하거나 또는 외부 전자 장치(302)로 전원 전압을 출력하지 않을 수 있다. 예를 들어, 충전 회로(317)는, 프로세서(319)의 지정된 명령(예: 부스트(boost))에 기초하여 배터리(318)의 전압 레벨을 승압하고, 승압된 전압 레벨(예: 5V)을 갖는 출력 전압을 외부 전자 장치(302)로 출력할 수 있다.
일 실시예에 따르면, 배터리(318)는, 전자 장치(301)의 적어도 하나의 구성 요소 또는 외부 전자 장치(302)에 공급할 전력을 저장(또는, 충전)한 상태일 수 있다. 예를 들어, 프로세서(319)의 제어에 기초하여, 배터리(318)에 충전된 전력에 기반한 전원 전압이 외부 전자 장치(302)로 제공될 수 있다. 예를 들어, 프로세서(319)의 제어에 기초하여, 배터리(318)에 충전된 전력에 기반한 풀업 전원이 데이터의 송수신을 위한 제1 데이터 단자 및 제2 데이터 단자에 인가될 수 있다.
일 실시예에 따르면, 프로세서(319)는, 식별 회로(313)(예: CCIC(configuration channel IC))를 통해 전자 장치(301)와 연결된 외부 전자 장치(302)를 식별(또는, 인식)할 수 있다. 예를 들어, 식별 회로(313) 는, 식별 단자를 통해 감지된 저항 값을 프로세서(319)에 전달할 수 있다. 일 실시예에 따르면, 프로세서(319)는, 커넥터(311)의 식별 단자와 전기적으로 연결된 식별 회로(313)를 통해 외부 전자 장치(302)의 특성을 나타내는 저항 값을 감지(또는, 인식)할 수 있다. 일 실시예에 따르면, 프로세서(319)는, 식별 회로(313)를 통하여 제1 저항 값(예: 풀다운 저항 값(5.1kohm))을 감지하는 경우, 전자 장치(301)에 연결된 외부 전자 장치(302)가 전자 장치(301)로부터 전력을 제공받는 장치임을 인식할 수 있다. 다른 실시예에 따르면, 프로세서(319)는, 식별 회로(313)를 통하여 식별 단자의 제2 저항 값(예: 풀업 저항 값(56kohm))을 감지하는 경우, 전자 장치(301)에 연결된 외부 전자 장치(302)가 전자 장치(301)에 전력을 제공하는 장치임을 인식할 수 있다. 예를 들어, 프로세서(319)는 식별 회로(313)를 통하여 제1 저항 값을 감지하고, 외부 전자 장치(302)가 전자 장치(301)로부터 전력을 제공받는 장치임을 인식할 수 있다. 일 실시예에서, 프로세서(319)는, 신호 단자(예: 제1 데이터 단자 및/또는 제2 데이터 단자)의 전압 레벨에 기초하여 외부 전자 장치(302)로 전원 전압을 출력할지 여부를 결정할 수 있다.
일 실시예에 따르면, 프로세서(319)는, 식별 회로(313)를 통하여 제1 저항 값을 감지한 것을 기초로, 스위칭 회로(315)를 이용하여 제1 데이터 단자 및 제2 데이터 단자를 방전 회로(314)에 연결할 수 있다. 예를 들어, 방전 회로(314)는 풀다운 저항을 포함하는 전기적 회로일 수 있다. 일 실시예에 따르면, 프로세서(319)는, 제1 데이터 단자 및 제2 데이터 단자를 방전 회로(314)에 연결하여 제1 데이터 단자 및 제2 데이터 단자에 남아있는 커패시터 성분(예: 잔여 전하)을 적어도 일부 방전시킬 수 있다. 일 실시예에 따르면, 프로세서(319)는, 제1 데이터 단자 및 제2 데이터 단자 중 적어도 하나에 전기적으로 연결된 커패시터 내의 에너지를 방전시키기 위하여 데이터 단자에 방전 회로를 연결할 수 있다. 예를 들어, 제1 데이터 단자 및 제2 데이터 단자 중 적어도 하나에 전기적으로 연결된 커패시터 내의 에너지는, 제1 데이터 단자 및 제2 데이터 단자 중 적어도 하나에 존재하는 커패시터 성분(예: 전하(charge))에 대응할 수 있다. 예를 들어, 프로세서(319)는, 제1 데이터 단자 및 제2 데이터 단자를 방전 회로(314)에 연결하여 잔여 전하를 적어도 일부 제거할 수 있다. 예를 들어, 제1 데이터 단자 및 제2 데이터 단자가 방전 회로(314)에 연결되는 경우, 제1 데이터 단자의 전압 레벨 및 제2 데이터 단자의 전압 레벨은 각각 그라운드 전압에 대응할 수 있다.
일 실시예에 따르면, 프로세서(319)는, 스위칭 회로(315)를 이용하여 제1 데이터 단자 및 제2 데이터 단자를 방전 회로(314)에 연결한 후, 스위칭 회로(315)를 이용하여 제1 데이터 단자 및 제2 데이터 단자에 풀업 전원을 인가할 수 있다. 이 후, 프로세서(319)는, 제1 데이터 단자 및 제2 데이터 단자의 전압 레벨을 확인하여 외부 전자 장치(302)에 전원 전압을 출력할지 여부를 결정할 수 있다. 다양한 실시예에서, 제1 데이터 단자 및 제2 데이터 단자 각각에 풀업 전원이 인가되는 순서는 제한되지 않는다. 이하에서, 프로세서(319)가 제1 데이터 단자에 풀업 전원을 인가한 후 제2 데이터 단자의 전압 레벨을 인식하고, 이후에 제2 데이터 단자에 풀업 전원을 인가한 후 제1 데이터 단자의 전압 레벨을 인식하는 것을 일 예시로 설명한다. 다양한 예에서, 프로세서(319)는 제2 데이터 단자에 풀업 전원을 인가한 후 제1 데이터 단자의 전압 레벨을 인식하고, 이후에 제1 데이터 단자에 풀업 전원을 인가한 후 제2 데이터 단자의 전압 레벨을 인식할 수 있다.
일 실시예에서, 프로세서(319)는, 제1 데이터 단자에 풀업 전원을 인가하고, ADC(analog to digital converter) 또는 비교기(comparator)를 이용하여 제2 데이터 단자의 전압 레벨을 확인할 수 있다. 다양한 실시예에서, 프로세서(319)는, 제1 데이터 단자에 풀업 전원을 인가한 후 제2 데이터 단자의 전압 레벨을 확인하기 전에 지정된 시간 동안 대기할 수 있다. 예를 들어, 지정된 시간은 지연 시간(delay time)을 의미할 수 있다. 제1 데이터 단자에 풀업 전원을 인가한 직후에는, 실질적으로는 제1 데이터 단자와 제2 데이터 단자가 서로 쇼트 상태가 아님에도 제1 데이터 단자와 제2 데이터 단자 사이의 내부 저항으로 인하여 서로 쇼트 상태인 것으로 잘못 인식될 수 있다. 일 실시예에 따르면, 프로세서(319)는 제1 데이터 단자와 제2 데이터 단자 사이의 내부 저항에 의한 영향을 감소시키기 위하여 제2 데이터 단자의 전압 레벨을 확인하기 전에 지정된 시간 동안 대기할 수 있다. 일 실시예에 따르면, 프로세서(319)는, 제1 데이터 단자에 풀업 전원을 인가한 후 지정된 시간 동안 대기하여 제1 데이터 단자와 제2 데이터 단자가 쇼트 상태인지 여부를 정확하게 인식할 수 있다.
일 실시예에서, 제2 데이터 단자의 전압 레벨을 확인한 결과 제1 데이터 단자 및 제2 데이터 단자가 서로 쇼트 상태가 아닌 경우, 프로세서(319)는 외부 전자 장치(302)를 정상적인 외부 전자 장치로 인식할 수 있다. 프로세서(319)는, 외부 전자 장치(302)가 정상적인 외부 전자 장치인 것으로 인식한 것을 기초로, 충전 회로(317)를 통하여 외부 전자 장치(302)로 전원 전압을 출력할 수 있다. 예를 들어, 프로세서(319)는, 제1 데이터 단자 및 제2 데이터 단자가 서로 쇼트 상태가 아닌 경우 충전 회로(317)를 통하여 전자 장치(301)의 배터리(예: 도 1의 배터리(189))에 기반한 전원 전압을 외부 전자 장치(302)로 출력할 수 있다. 예를 들어, 프로세서(319)는 외부 전자 장치(302)로 전원 전압을 출력하도록 충전 회로(317)를 제어할 수 있다.
일 실시예에서, 제2 데이터 단자의 전압 레벨을 확인한 결과 제1 데이터 단자 및 제2 데이터 단자가 서로 쇼트 상태인 경우, 프로세서(319)는 제2 데이터 단자에 풀업 전원을 인가할 수 있다. 일 실시예에 따르면, 프로세서(319)는, ADC(analog to digital converter) 또는 비교기(comparator)를 이용하여 제1 데이터 단자의 전압 레벨을 확인할 수 있다. 다양한 실시예에서, 프로세서(319)는, 제2 데이터 단자에 풀업 전원을 인가한 후 제1 데이터 단자의 전압 레벨을 확인하기 전에 지정된 시간 동안 대기할 수 있다. 일 실시예에 따르면, 프로세서(319)는 제1 데이터 단자와 제2 데이터 단자 사이의 내부 저항에 의한 영향을 감소시키기 위하여 제1 데이터 단자의 전압 레벨을 확인하기 전에 지정된 시간 동안 대기할 수 있다. 일 실시예에 따르면, 프로세서(319)는, 제2 데이터 단자에 풀업 전원을 인가한 후 지정된 시간 동안 대기하여 제1 데이터 단자와 제2 데이터 단자가 쇼트 상태인지 여부를 정확하게 인식할 수 있다. 일 실시예에서, 제1 데이터 단자의 전압 레벨을 확인한 결과 제1 데이터 단자 및 제2 데이터 단자가 서로 쇼트 상태가 아닌 경우, 프로세서(319)는 외부 전자 장치(302)를 정상적인 외부 전자 장치로 인식할 수 있다. 프로세서(319)는, 외부 전자 장치(302)가 정상적인 외부 전자 장치인 것으로 인식한 것을 기초로, 충전 회로(317)를 통하여 외부 전자 장치(302)로 전원 전압을 출력할 수 있다. 다른 실시예에서, 제1 데이터 단자의 전압 레벨을 확인한 결과, 제1 데이터 단자 및 제2 데이터 단자가 서로 쇼트 상태인 경우, 프로세서(319)는 외부 전자 장치(302)를 비정상적인 외부 전자 장치로 인식할 수 있다. 프로세서(319)는, 외부 전자 장치(302)가 비정상적인 외부 전자 장치인 것으로 인식한 것을 기초로, 외부 전자 장치(302)로 전원 전압을 출력하지 않을 수 있다. 예를 들어, 프로세서(319)는 외부 전자 장치(302)로 전원 전압을 출력하지 않도록 충전 회로(317)를 제어할 수 있다. 예를 들어, 프로세서(319)는 외부 전자 장치(302)로 전원 전압을 출력하는 것을 제한할 수 있다.
전술한 방식으로, 프로세서(319)는, 제1 데이터 단자 및 제2 데이터 단자의 전기적 에너지를 방전시킨 후, 제1 데이터 단자에 풀업 전원을 인가한 후 제2 데이터 단자의 전압 레벨을 확인하는 제1 확인 동작 및 제2 데이터 단자에 풀업 전원을 인가한 후 제1 데이터 단자의 전압 레벨을 확인하는 제2 확인 동작을 수행할 수 있다. 일 실시예에서, 프로세서(319)는, 상기 제1 확인 동작을 수행한 결과 제1 데이터 단자 및 제2 데이터 단자가 서로 쇼트 상태인 것을 인식하고, 상기 제2 확인 동작을 수행한 결과 제1 데이터 단자 및 제2 데이터 단자가 서로 쇼트 상태임을 인식할 수 있다. 이 경우, 프로세서(319)는, 외부 전자 장치(302)로 전원 전압을 출력하지 않을 수 있다. 다른 예에서, 프로세서(319)는, 상기 제1 확인 동작 및 상기 제2 확인 동작 중 어느 하나의 확인 동작에 기초하여 제1 데이터 단자 및 제2 데이터 단자가 서로 쇼트 상태가 아님을 인식할 수 있다. 예를 들어, 프로세서(319)는 상기 제1 확인 동작을 수행한 결과 제1 데이터 단자 및 제2 데이터 단자가 서로 쇼트 상태가 아님을 인식할 수 있다. 또는, 프로세서(319)는 상기 제1 확인 동작을 수행한 결과 제1 데이터 단자 및 제2 데이터 단자가 서로 쇼트 상태임을 인식하고, 상기 제2 확인 동작을 수행한 결과 제1 데이터 단자 및 제2 데이터 단자가 서로 쇼트 상태가 아님을 인식할 수 있다. 이 경우, 외부 전자 장치(302)로 전원 전압을 출력할 수 있다.
다양한 실시예에서, 외부 전자 장치(302)는 지정된 특성을 갖는 정상적인 외부 전자 장치일 수 있다. 예를 들어, 외부 전자 장치(302)는, 제1 데이터 단자 및 제2 데이터 단자에 전원이 인가되기 전까지는 제1 데이터 단자 및 제2 데이터 단자가 서로 쇼트 상태에 있고, 제1 데이터 단자 및 제2 데이터 단자에 전원이 인가된 후에는 제1 데이터 단자 및 제2 데이터 단자가 서로 쇼트 상태가 아닌 지정된 특성을 갖는 정상적인 외부 전자 장치일 수 있다. 프로세서(319)는, 상기의 지정된 특성을 갖는 외부 전자 장치(302)가 전자 장치(301)에 연결된 후, 전술한 제1 데이터 단자 및 제2 데이터 단자 내의 전기적 에너지를 방전시키고, 제2 데이터 단자의 전압 레벨을 확인하는 제1 확인 동작을 통해 제1 데이터 단자 및 제2 데이터 단자가 서로 쇼트 상태인 것을 인식하고, 제1 데이터 단자의 전압 레벨을 확인하는 제2 확인 동작을 통해 제1 데이터 단자 및 제2 데이터 단자가 서로 쇼트 상태인 것을 인식할 수 있다. 이 경우, 프로세서(319)는 상기의 지정된 특성을 갖는 외부 전자 장치(302)가 비정상적인 외부 전자 장치에 해당하는 것으로 인식할 수 있다. 일 실시예에 따르면, 프로세서(319)는, 상기 제1 확인 동작 및 제2 확인 동작으로 제1 데이터 단자 및 제2 데이터 단자가 서로 쇼트 상태인 것을 인식한 후에, 제1 데이터 단자에 풀업 전원을 재인가하여 제2 데이터 단자의 전압 레벨을 확인하는 제3 확인 동작 및 제2 데이터 단자에 풀업 전원을 재인가하여 제1 데이터 단자의 전압 레벨을 확인하는 제4 확인 동작을 더 수행할 수 있다. 일 실시예에 따르면, 제1 확인 동작 및 제2 확인 동작으로 외부 전자 장치(302)의 제1 데이터 단자 및 제2 데이터 단자에 전원(예: 풀업 전원)이 인가되면, 외부 전자 장치(302)의 제1 데이터 단자 및 제2 데이터 단자는 서로 쇼트 상태가 아닌 상태에 대응할 수 있다. 이 후, 프로세서(319)는 제3 확인 동작 또는 제4 확인 동작 중 적어도 하나를 수행한 결과를 통해 제1 데이터 단자 및 제2 데이터 단자가 서로 쇼트 상태가 아닌 것을 인식하고, 외부 전자 장치(302)가 정상적인 외부 전자 장치에 대응하는 것을 인식할 수 있다.
다양한 실시예에서, 전자 장치(301)가 외부 전자 장치(302)를 비정상적인 외부 전자 장치에 대응하는 것으로 인식한 후, 다양한 이유로 전자 장치(301)가 재시작(reboot)될 수 있다. 일 실시예에 따르면, 전자 장치(301)는, 전자 장치(301)가 재시작되기 전에 인식한, 외부 전자 장치(302)에 관한 상태 정보를 저장할 수 있다. 예를 들어, 외부 전자 장치(302)의 상태 정보는, 외부 전자 장치(302)가 전력을 제공받는 장치인지 또는 전력을 제공하는 장치인지를 나타내는 제1 정보를 포함할 수 있다. 예를 들어, 외부 전자 장치(302)의 상태 정보(예: 제1 정보)는, 프로세서(319)가 식별 회로(313)를 통하여 감지한 제1 저항 값(예: 풀다운 저항 값(5.1kohm)) 또는 제2 저항 값(예: 풀업 저항 값(56kohm)) 중 하나를 포함할 수 있다. 예를 들어, 외부 전자 장치(302)의 상태 정보는, 외부 전자 장치(302)의 제1 데이터 단자 및 제2 데이터 단자가 서로 쇼트 상태인지 여부를 나타내는 제2 정보를 포함할 수 있다. 예를 들어, 외부 전자 장치(302)의 상태 정보(예: 제2 정보)는, 제1 확인 동작 및 제2 확인 동작 또는 제1 확인 동작 내지 제4 확인 동작을 수행한 결과에 기초하여 인식한 외부 전자 장치(302)가 정상적인 외부 전자 장치인지 여부를 나타낼 수 있다.
일 실시예에 따르면, 프로세서(319)(또는, 전자 장치(301))는 재시작된 후 전원 전압을 외부 전자 장치(302)로 출력하지 않고, 외부 전자 장치(302)에 관련된 상태 정보를 우선하여 확인할 수 있다. 일 실시예에서, 외부 전자 장치(302)의 상태 정보가 제1 저항 값 및 외부 전자 장치(302)가 비정상적인 외부 전자 장치임을 나타내는 정보를 포함하는 경우, 프로세서(319) 는 외부 전자 장치(302)를 비정상적인 외부 전자 장치에 대응하는 것으로 인식하고 전원 전압을 외부 전자 장치(302)로 출력하지 않을 수 있다. 상술한 다양한 실시예를 통해, 프로세서(319)는, 외부 전자 장치(302)로 전원 전압을 출력할지 여부를 정확하게 인식할 수 있다.
도 4는 다양한 실시예에 따른, 외부 전자 장치에 포함된 고전압 생성 회로를 예시적으로 도시한다.
도 4를 참조하면, 비정상적인 외부 전자 장치(예: 도 3의 외부 전자 장치(302))에 포함된 고전압 생성 회로(410)(예: 도 3의 고전압 생성 회로(321))가 예시적으로 도시된다. 예를 들어, 비정상적인 외부 전자 장치는, 제1 신호 단자(예: 제1 데이터 단자(D+)) 및 제2 신호 단자(예: 제2 데이터 단자(D-))가 서로 쇼트 상태에 있고, 전기적으로 연결된 전자 장치(예: 도 1의 전자 장치(101) 또는 도 2의 전자 장치(201) 또는 도 3의 전자 장치(301))로부터 인가된 전원 전압(Vbus)을 이용하여 고전압(예: 약 200V)을 생성할 수 있다. 예를 들어, 비정상적인 외부 전자 장치는, 전자 장치로부터 저전압(예: 5V)의 전원 전압(Vbus)이 인가되면, 플라이백 컨버터(converter)를 이용하여 고전압(예: 약 200V)를 생성하고, 펄스 생성기(pulse generator)를 이용하여 생성된 고전압을 제1 신호 단자 및 제2 신호단자에 인가할 수 있다. 이 경우, 비정상적인 외부 전자 장치는 제1 신호 단자 및 제2 신호 단자를 통해 연결된 전자 장치에 생성된 고전압을 인가하여 전자 장치의 내부 구성요소를 전기적으로 소손시킬 수 있다. 전술한 실시예에 따르면, 전자 장치는, 비정상적인 외부 전자 장치와 전기적으로 연결된 제1 신호 단자 및 제2 신호 단자가 전기적으로 쇼트 상태인지 여부를 향상된 인식도로 인식할 수 있다. 일 실시예에 따른 전자 장치는, 비정상적인 외부 전자 장치로 인식된 외부 전자 장치로 전원 전압(Vbus)을 출력하지 않을 수 있다.
본 개시의 일 실시예에 따른 전자 장치(예: 도 1의 전자 장치(101), 도 2의 전자 장치(201) 또는 도 3의 전자 장치(301))는, 적어도 하나의 신호 단자들을 포함하는 커넥터(예: 도 1의 연결 단자(178), 도 2의 커넥터(210) 또는 도 3의 커넥터(311)), 상기 커넥터와 전기적으로 연결된 식별 회로(예: 도 2의 식별 회로(220) 또는 도 3의 식별 회로(313)), 상기 커넥터와 전기적으로 연결된 스위칭 회로(예: 도 2의 스위칭 회로(230) 또는 도 3의 스위칭 회로(315)), 배터리(예: 도 1의 배터리(189), 도 2의 배터리(260) 또는 도 3의 배터리(318)), 메모리(예: 도 1의 메모리(130) 또는 도 2의 메모리(240)) 및 상기 식별 회로, 상기 스위칭 회로, 상기 배터리 및 상기 메모리와 작동적으로 연결되는 프로세서(예: 도 1의 프로세서(120), 도 2의 프로세서(250) 또는 도 3의 프로세서(319))를 포함할 수 있다. 일 실시예에 따르면, 상기 메모리는, 실행 시, 상기 프로세서가, 상기 식별 회로를 이용하여, 외부 전자 장치가 상기 커넥터를 통해서 상기 전자 장치에 전기적으로 연결된 것을 인식하고, 상기 스위칭 회로를 이용하여, 상기 적어도 하나의 신호 단자들 중 제1 신호 단자 및 제2 신호 단자 중 적어도 하나에 전기적으로 연결된 커패시터 내의 에너지를 방전(discharge)시키고, 상기 제1 신호 단자 및 상기 제2 신호 단자의 전압 레벨 차이에 기초하여, 상기 외부 전자 장치로 상기 커넥터를 통해 상기 배터리에 기반한 전원 전압을 출력할지 여부를 결정하도록 하는 인스트럭션들을 저장할 수 있다.
일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서가, 상기 식별 회로를 이용하여, 상기 적어도 하나의 신호 단자들 중 제3 신호 단자를 통해 제1 저항 값 또는 제2 저항 값을 인식하도록 할 수 있다.
일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서가, 상기 식별 회로를 이용하여 상기 제1 저항 값을 인식하는 경우 상기 외부 전자 장치가 외부로부터 전력을 제공받는 장치(sink)에 대응하는 것으로 인식하고, 상기 식별 회로를 이용하여 상기 제2 저항 값을 인식하는 경우 상기 외부 전자 장치가 외부로 전력을 제공하는 장치(source)에 대응하는 것으로 인식하도록 할 수 있다.
일 실시예에 따르면, 상기 전자 장치는 적어도 하나의 저항(resistor)을 포함하는 방전 회로(예: 도 3의 방전 회로(314))를 더 포함하고, 상기 인스트럭션들은, 상기 프로세서가, 상기 스위칭 회로를 이용하여, 상기 제1 신호 단자 및 상기 제2 신호 단자를 상기 방전 회로에 연결하도록 할 수 있다.
일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서가, 상기 제1 신호 단자 및 상기 제2 신호 단자 중 적어도 하나를 방전시킨 후, 상기 스위칭 회로를 이용하여 상기 방전시킨 신호 단자에 상기 배터리에 기반한 풀업 전원을 인가하도록 할 수 있다.
일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서가, 상기 방전시킨 신호 단자에 상기 풀업 전원을 인가한 후 지정된 시간 동안 대기하도록 할 수 있다.
일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서가, 상기 제1 신호 단자 및 상기 제2 신호 단자 중 적어도 하나를 방전시킨 후 상기 제1 신호 단자의 전압 레벨 및 상기 제2 신호 단자의 전압 레벨을 인식하고, 상기 제1 신호 단자의 전압 레벨 및 상기 제2 신호 단자의 전압 레벨의 차이가 임계값 미만인 경우, 상기 외부 전자 장치로 상기 전원 전압을 출력하지 않을 것을 결정하도록 할 수 있다.
일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서가, 상기 제1 신호 단자의 전압 레벨 및 상기 제2 신호 단자의 전압 레벨의 차이가 상기 임계값 이상인 경우, 상기 외부 전자 장치로 상기 전원 전압을 출력할 것을 결정하도록 할 수 있다.
일 실시예에 따르면, 상기 전자 장치는 충전 회로(예: 도 3의 충전 회로(317))를 더 포함하고, 상기 인스트럭션들은, 상기 프로세서가, 상기 전원 전압을 출력할지 여부를 결정한 것을 기초로, 상기 충전 회로를 제어하도록 할 수 있다.
일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서가, 상기 스위칭 회로를 이용하여, 상기 제1 신호 단자 및 상기 제2 신호 단자를 각각 방전시키고, 상기 제1 신호 단자에 풀업 전원을 인가하고, 상기 제2 신호 단자의 전압 레벨을 인식하여 상기 제1 신호 단자 및 상기 제2 신호 단자의 전압 레벨 차이가 임계값 미만인 것을 인식하는 제1 확인 동작을 수행하고, 상기 제2 신호 단자에 상기 풀업 전원을 인가하고, 상기 제1 신호 단자의 전압 레벨을 인식하여 상기 제1 신호 단자 및 상기 제2 신호 단자의 전압 레벨 차이가 상기 임계값 미만인 것을 인식하는 제2 확인 동작을 수행하도록 할 수 있다.
일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서가, 상기 제1 확인 동작 및 상기 제2 확인 동작에 기초하여 상기 외부 전자 장치로 상기 전원 전압을 출력하는 것을 제한하도록 할 수 있다.
일 실시예에 따르면, 상기 인스트럭션들은, 상기 프로세서가, 상기 제1 신호 단자에 상기 풀업 전원을 인가하고, 상기 제2 신호 단자의 전압 레벨을 인식하여 상기 제1 신호 단자 및 상기 제2 신호 단자의 전압 레벨 차이가 상기 임계값 미만인 것을 인식하는 제3 확인 동작을 수행하고, 상기 제2 신호 단자에 상기 풀업 전원을 인가하고, 상기 제1 신호 단자의 전압 레벨을 인식하여 상기 제1 신호 단자 및 상기 제2 신호 단자의 전압 레벨 차이가 상기 임계값 미만인 것을 인식하는 제4 확인 동작을 수행하고, 상기 제3 확인 동작 및 상기 제4 확인 동작에 기초하여 상기 외부 장치로 상기 전원 전압을 출력하는 것을 제한하도록 할 수 있다.
일 실시예에 따르면, 상기 메모리는 상기 외부 전자 장치에 관련된 상태 정보를 저장하고, 상기 인스트럭션들은, 상기 프로세서가, 상기 외부 전자 장치가 상기 전자 장치와 전기적으로 연결된 상태에서 재시작(reboot)되고, 상기 외부 전자 장치에 상기 전원 전압을 출력하기 전에 상기 외부 전자 장치에 관련된 상태 정보를 확인하고, 상기 확인한 상태 정보에 기반하여, 상기 외부 전자 장치에 상기 전원 전압을 출력하는 것을 제한하도록 할 수 있다.
일 실시예에 따르면, 상기 제1 신호 단자 및 상기 제2 신호 단자는, 상기 전자 장치와 상기 외부 전자 장치간의 데이터를 송수신하도록 구성될 수 있다.
도 5는 다양한 실시예에 따른, 전자 장치의 동작 방법의 흐름도이다.
이하에서, 전자 장치(예: 도 1의 전자 장치(101) 또는 도 2의 전자 장치(201) 또는 도 3의 전자 장치(301))가 수행하는 것으로 설명된 동작들은 (예: 도 1의 프로세서(120) 또는 도 2의 프로세서(250) 또는 도 3의 프로세서(319))에 의하여 수행되는 것으로 이해될 수 있다.
일 실시예에 따르면, 510 동작에서, 전자 장치는 커넥터(예: 도 1의 인터페이스(177), 도 2의 커넥터(210) 또는 도 3의 커넥터(311))를 통해 외부 전자 장치(예: 도 1의 전자 장치(102) 또는 도 3의 외부 전자 장치(302))의 연결을 인식할 수 있다. 일 실시예에서, 전자 장치는, 식별 회로(예: 도 2의 식별 회로(220) 또는 도 3의 식별 회로(313))를 통해 외부 전자 장치의 특성을 나타내는 저항 값을 감지(또는, 인식)할 수 있다. 일 실시예에서, 전자 장치는, 식별 회로를 통하여 제1 저항 값(예: 풀다운 저항 값(5.1kohm))을 감지할 수 있다. 예를 들어, 식별 회로를 통해 감지된 제1 저항 값은 외부 전자 장치가 전자 장치로부터 전력을 제공받는 장치에 대응하는 것을 나타낼 수 있다.
일 실시예에 따르면, 520 동작에서, 전자 장치는 제1 신호 단자 및 제2 신호 단자를 방전 회로에 연결할 수 있다. 일 실시예에서, 전자 장치는 스위칭 회로(예: 도 2의 스위칭 회로(230) 또는 도 3의 스위칭 회로(315))를 이용하여 제1 신호 단자(예: 제1 데이터 단자(D+ 단자))를 풀다운 저항 회로를 포함하는 방전 회로(예: 도 3의 방전 회로(314))에 연결할 수 있다. 일 실시예에서, 전자 장치는 스위칭 회로를 이용하여 제2 신호 단자(예: 제2 데이터 단자(D- 단자))를 풀다운 저항 회로를 포함하는 방전 회로에 연결할 수 있다. 제1 신호 단자 및 제2 신호 단자가 풀다운 저항 회로를 포함하는 방전 회로에 연결되면, 제1 신호 단자 및 제2 신호 단자의 커패시터 성분(예: 잔여 전하)의 적어도 일부가 방전될 수 있다.
일 실시예에 따르면, 530 동작에서, 전자 장치는 제1 신호 단자에 풀업 전원을 인가할 수 있다. 일 실시예에서, 전자 장치는 스위칭 회로를 이용하여 제1 신호 단자를 풀업 전원을 제공하기 위한 전기적인 경로에 연결할 수 있다.
일 실시예에 따르면, 540 동작에서, 전자 장치는 제2 신호 단자의 전압 레벨을 확인할 수 있다. 일 실시예에서, 전자 장치는, ADC(analog to digital converter) 또는 비교기(comparator)를 이용하여 제2 신호 단자의 전압 레벨을 확인할 수 있다.
일 실시예에 따르면, 550 동작에서, 전자 장치는 제1 신호 단자와 제2 신호 단자가 서로 쇼트 상태인지 여부를 확인할 수 있다. 일 실시예에서, 전자 장치는 제1 신호 단자의 전압 레벨과 제2 신호 단자의 전압 레벨이 동일하거나 또는 두 신호 단자의 전압 레벨의 차이가 임계 값 이내인 경우, 제1 신호 단자와 제2 신호 단자가 서로 쇼트 상태인 것으로 인식할 수 있다. 제1 신호 단자와 제2 신호 단자가 서로 쇼트 상태인 것으로 인식되면(Yes), 전자 장치는 560 동작을 수행할 수 있다. 다른 실시예에서, 전자 장치는 제1 신호 단자의 전압 레벨과 제2 신호 단자의 전압 레벨이 동일하지 않은 경우(또는 두 전압 레벨의 차이가 임계 값 이상인 경우), 제1 신호 단자와 제2 신호 단자가 서로 쇼트 상태가 아닌 것으로 인식할 수 있다. 제1 신호 단자와 제2 신호 단자가 서로 쇼트 상태가 아닌 것으로 인식되면(No), 전자 장치는 551 동작을 수행할 수 있다.
일 실시예에 따르면, 551 동작에서, 전자 장치는 외부 전자 장치를 정상적인 외부 전자 장치로 인식할 수 있다. 일 실시예에서, 전자 장치는, 충전 회로(예: 도 3의 충전 회로(317))를 이용하여 외부 전자 장치에 전원 전압을 출력할 수 있다.
일 실시예에 따르면, 560 동작에서, 전자 장치는 제2 신호 단자에 풀업 전원을 인가할 수 있다. 일 실시예에서, 전자 장치는 스위칭 회로를 이용하여 제2 신호 단자를 풀업 전원을 제공하기 위한 전기적인 경로에 연결할 수 있다.
일 실시예에 따르면, 570 동작에서, 전자 장치는 제1 신호 단자의 전압 레벨을 확인할 수 있다. 일 실시예에서, 전자 장치는, ADC(analog to digital converter) 또는 비교기를 이용하여 제2 신호 단자의 전압 레벨을 확인할 수 있다.
일 실시예에 따르면, 580 동작에서, 전자 장치는 제1 신호 단자와 제2 신호 단자가 서로 쇼트 상태인지 여부를 확인할 수 있다. 일 실시예에서, 제1 신호 단자와 제2 신호 단자가 서로 쇼트 상태이거나 또는 두 신호 단자의 전압 레벨의 차이가 임계 값 이내인 것으로 인식되면(yes), 전자 장치는 590 동작을 수행할 수 있다. 다른 실시예에서, 제1 신호 단자와 제2 신호 단자가 서로 쇼트 상태가 아닌 것으로 인식되면(No), 전자 장치는 551 동작을 수행할 수 있다.
일 실시예에 따르면, 590 동작에서, 전자 장치는 외부 전자 장치를 비정상적인 외부 전자 장치로 인식할 수 있다. 일 실시예에서, 전자 장치는, 외부 전자 장치에 전원 전압을 출력하지 않을 수 있다. 예를 들어, 전자 장치는, 외부 전자 장치에 전원 전압을 출력하지 않도록 충전 회로를 제어할 수 있다.
도 6은 다양한 실시예에 따른, 전자 장치의 동작 방법의 흐름도이다.
이하에서, 전자 장치(예: 도 1의 전자 장치(101) 또는 도 2의 전자 장치(201) 또는 도 3의 전자 장치(301))가 수행하는 것으로 설명된 동작들은 (예: 도 1의 프로세서(120) 또는 도 2의 프로세서(250) 또는 도 3의 프로세서(319))에 의하여 수행되는 것으로 이해될 수 있다.
일 실시예에 따르면, 610 동작에서, 전자 장치는 커넥터(예: 도 1의 인터페이스(177), 도 2의 커넥터(210) 또는 도 3의 커넥터(311))를 통해 외부 전자 장치(예: 도 1의 전자 장치(102) 또는 도 3의 외부 전자 장치(302))의 연결을 인식할 수 있다. 일 실시예에서, 전자 장치는, 식별 회로(예: 도 2의 식별 회로(220) 또는 도 3의 식별 회로(313))를 통하여 제1 저항 값(예: 풀다운 저항 값(5.1kohm))을 감지한 것을 기초로 외부 전자 장치가 전자 장치로부터 전력을 제공받는 장치에 대응하는 것을 인식할 수 있다.
일 실시예에 다르면, 620 동작에서, 전자 장치는 제1 신호 단자 및 제2 신호 단자를 방전 회로(예: 도 3의 방전 회로(314))에 연결할 수 있다. 일 실시예에서, 전자 장치는 스위칭 회로(예: 도 2의 스위칭 회로(230) 또는 도 3의 스위칭 회로(315))를 이용하여 제1 신호 단자(예: 제1 데이터 단자(D+ 단자))를 풀다운 저항 회로를 포함하는 방전 회로에 연결할 수 있다. 제1 신호 단자 및 제2 신호 단자가 풀다운 저항 회로를 포함하는 방전 회로에 연결되면, 제1 신호 단자 및 제2 신호 단자의 커패시터 성분의 적어도 일부가 방전될 수 있다.
일 실시예에 따르면, 621 동작에서, 전자 장치는 카운트 값(count value)을 0으로 설정할 수 있다. 일 실시예에서, 카운트 값은 전자 장치가 제1 신호 단자 및 제2 신호 단자의 전압 레벨을 확인하는 횟수에 대응할 수 있다. 예를 들어, 전자 장치가 제1 신호 단자 및 제2 신호 단자의 전압 레벨을 확인하기 전에 카운트 값은 0을 유지할 수 있다.
일 실시예에 따르면, 630 동작에서, 전자 장치는 제1 신호 단자에 풀업 전원을 인가할 수 있다. 일 실시예에서, 전자 장치는 스위칭 회로를 이용하여 제1 신호 단자를 풀업 전원을 제공하기 위한 전기적인 경로에 연결할 수 있다.
일 실시예에 따르면, 631 동작에서, 전자 장치는 지정된 시간 동안 대기할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 신호 단자 및 제2 신호 단자 사이의 내부 저항에 의한 영향을 감소시키기 위하여 제2 신호 단자의 전압 레벨을 확인하기 전에 지정된 시간 동안 대기할 수 있다.
일 실시예에 따르면, 640 동작에서, 전자 장치는 제2 신호 단자의 전압 레벨을 확인할 수 있다. 일 실시예에서, 전자 장치는, ADC(analog to digital converter) 또는 비교기(comparator)를 이용하여 제2 신호 단자의 전압 레벨을 확인할 수 있다. 일 실시예에서, 전자 장치는, 631 동작의 지정된 시간 동안 대기한 후 640 동작에서 제2 신호 단자의 전압 레벨을 확인할 수 있다.
일 실시예에 따르면, 650 동작에서, 전자 장치는 제1 신호 단자와 제2 신호 단자가 서로 쇼트 상태인지 여부를 확인할 수 있다. 일 실시예에서, 전자 장치는 제1 신호 단자의 전압 레벨과 제2 신호 단자의 전압 레벨이 동일거나 또는 두 신호 단자의 전압 레벨의 차이가 임계 값 이내인 경우, 제1 신호 단자와 제2 신호 단자가 서로 쇼트 상태인 것으로 인식할 수 있다. 제1 신호 단자와 제2 신호 단자가 서로 쇼트 상태인 것으로 인식되면(Yes), 전자 장치는 660 동작을 수행할 수 있다. 다른 실시예에서, 전자 장치는 제1 신호 단자의 전압 레벨과 제2 신호 단자의 전압 레벨이 동일하지 않거나 또는 두 신호 단자의 전압 레벨의 차이가 임계 값 이상인 경우, 제1 신호 단자와 제2 신호 단자가 서로 쇼트 상태가 아닌 것으로 인식할 수 있다. 제1 신호 단자와 제2 신호 단자가 서로 쇼트 상태가 아닌 것으로 인식되면(No), 전자 장치는 651 동작을 수행할 수 있다.
일 실시예에 따르면, 651 동작에서, 전자 장치는 외부 전자 장치를 정상적인 외부 전자 장치로 인식할 수 있다. 이 경우, 전자 장치는, 충전 회로(예: 도 3의 충전 회로(317))를 이용하여 외부 전자 장치에 전원 전압을 출력할 수 있다.
일 실시예에 따르면, 660 동작에서, 전자 장치는 제2 신호 단자에 풀업 전원을 인가할 수 있다. 일 실시예에서, 전자 장치는 스위칭 회로를 이용하여 제2 신호 단자를 풀업 전원을 제공하기 위한 전기적인 경로에 연결할 수 있다.
일 실시예에 따르면, 661 동작에서, 전자 장치는 지정된 시간 동안 대기할 수 있다. 일 실시예에 따르면, 전자 장치는 제1 신호 단자 및 제2 신호 단자 사이의 내부 저항에 의한 영향을 감소시키기 위하여 제1 신호 단자의 전압 레벨을 확인하기 전에 지정된 시간 동안 대기할 수 있다.
일 실시예에 따르면, 670 동작에서, 전자 장치는 제1 신호 단자의 전압 레벨을 확인할 수 있다. 일 실시예에서, 전자 장치는, ADC(analog to digital converter) 또는 비교기를 이용하여 제2 신호 단자의 전압 레벨을 확인할 수 있다.
일 실시예에 따르면, 680 동작에서, 전자 장치는 제1 신호 단자와 제2 신호 단자가 서로 쇼트 상태인지 여부를 확인할 수 있다. 일 실시예에서, 제1 신호 단자와 제2 신호 단자가 서로 쇼트 상태인 것으로 인식되면(yes), 전자 장치는 681 동작을 수행할 수 있다. 다른 실시예에서, 제1 신호 단자와 제2 신호 단자가 서로 쇼트 상태가 아닌 것으로 인식되면(No), 전자 장치는 651 동작을 수행할 수 있다.
일 실시예에 따르면, 681 동작에서, 전자 장치는 카운트 값이 1인지 여부를 확인할 수 있다. 일 실시예에서, 카운트 값은 전자 장치가 제1 신호 단자 및 제2 신호 단자의 전압 레벨을 확인하는 횟수를 나타낼 수 있다.
일 실시 예에서, 카운트 값이 1이 아닌 경우(No) 전자 장치는 683 동작을 수행할 수 있다. 예를 들어, 카운트 값이 0에 대응하는 것은 전자 장치가 제1 신호 단자의 전압 레벨 및 제2 신호 단자의 전압 레벨을 1회씩 확인한 상태임을 의미할 수 있다. 예를 들어, 카운트 값이 0인 경우, 제1 신호 단자 및 제2 신호 단자에 각각 1회씩 풀업 전원이 인가된 상태임을 의미할 수 있다. 다른 실시예에서, 카운트 값이 1에 대응하는 것은, 전자 장치가 제1 신호 단자의 전압 레벨 및 제2 신호 단자의 전압 레벨을 이미 2회씩 확인한 상태임을 의미할 수 있다. 일 실시예에서, 카운트 값이 1인 경우(Yes) 전자 장치는 690 동작을 수행할 수 있다. 예를 들어, 카운트 값이 1인 경우, 제1 신호 단자 및 제2 신호 단자에 각각 2회씩 풀업 전원이 인가된 상태임을 의미할 수 있다. 다양한 실시예에 따르면, 제1 신호 단자의 전압 레벨 및 제2 신호 단자의 전압 레벨을 확인하는 횟수는 2 이상일 수 있다.
일 실시예에 따르면, 683 동작에서, 전자 장치는 카운트 값을 1 증가시킬 수 있다. 일 실시예에 따르면, 연결된 외부 전자 장치가 지정된 특성(예: 제1 신호 단자 및 제2 신호 단자에 전원이 인가되기 전에는 서로 쇼트 상태를 유지하고, 제1 신호 단자 및 제2 신호 단자에 전원이 인가된 후에 서로 쇼트 상태가 아닌 상태를 갖는 특성)을 가질 수 있다. 이 경우, 전자 장치는 외부 전자 장치가 정상적인 외부 전자 장치임을 인식하기 위하여 제1 신호 단자 및 제2 신호 단자에 풀업 전원을 재인가하여 제1 신호 단자 및 제2 신호 단자가 서로 쇼트 상태인지를 재확인할 수 있다. 일 실시예에 따르면, 전자 장치는, 카운트 값을 1 증가시킨 후 630 동작부터 재수행할 수 있다. 다양한 실시예에서, 전자 장치는, 카운트 값을 1 증가시킨 후 지정된 시간 동안 대기하고 630 동작부터 재수행할 수 있다.
일 실시예에 따르면, 690 동작에서, 전자 장치는 외부 전자 장치를 비정상적인 외부 전자 장치로 인식할 수 있다. 일 실시예에서, 전자 장치는 일 실시예에서, 전자 장치는, 외부 전자 장치에 전원 전압을 출력하지 않을 수 있다. 예를 들어, 전자 장치는, 외부 전자 장치에 전원 전압을 출력하지 않도록 충전 회로를 제어할 수 있다.
도 7은 다양한 실시예에 따른, 전자 장치의 동작 방법의 흐름도이다.
이하에서, 전자 장치(예: 도 1의 전자 장치(101) 또는 도 2의 전자 장치(201) 또는 도 3의 전자 장치(301))가 수행하는 것으로 설명된 동작들은 (예: 도 1의 프로세서(120) 또는 도 2의 프로세서(250) 또는 도 3의 프로세서(319))에 의하여 수행되는 것으로 이해될 수 있다.
일 실시예에 따르면, 710 동작에서, 전자 장치는 재시작(reboot)될 수 있다. 예를 들어, 전자 장치는, 커넥터(예: 도 1의 인터페이스(177), 도 2의 커넥터(210) 또는 도 3의 커넥터(311))를 통해 연결된 외부 전자 장치(예: 도 1의 전자 장치(102) 또는 도 3의 외부 전자 장치(302))를 비정상적인 외부 전자 장치에 대응하는 것으로 인식한 후, 다양한 이유로 재시작될 수 있다. 일 실시예에서, 전자 장치는 외부 전자 장치가 비정상적인 외부 전자 장치에 대응하는 것으로 인식한 후, 외부 전자 장치가 커넥터를 통해 전자 장치에 결합된 상태에서 재시작될 수 있다. 일 실시예에서, 전자 장치가 재시작되는 것은 배터리(예: 도 1의 배터리(189) 또는 도 2의 배터리(260) 또는 도 3의 배터리(318))로부터 전원 공급이 계속되는 상태에서 전자 장치의 시스템이 리셋(reset)되는 것을 의미할 수 있다. 예를 들어, 전자 장치는 전원 공급이 중단되지 않고 유지되는 상태에서 내부 시스템이 재시작될 수 있다.
일 실시예에 따르면, 720 동작에서, 전자 장치는 외부 전자 장치에 관한 상태 정보를 확인할 수 있다. 일 실시예에 따르면, 전자 장치는, 재시작된 후에 메모리(예: 도 1의 메모리(130) 또는 도 2의 메모리(240))에 기 저장된 외부 전자 장치에 관한 상태 정보를 확인할 수 있다. 일 실시예에 따르면, 전자 장치는, 재시작된 후에, 현재 전기적으로 연결(또는, 결합)된 외부 전자 장치에 전원 전압을 제공하는 것에 우선하여 상기 외부 전자 장치에 관한 상태 정보를 확인할 수 있다. 일 실시예에 따르면 외부 전자 장치에 관한 상태 정보는, 전자 장치가 재시작되기 전에 인식하여 메모리에 저장한 외부 전자 장치의 특성을 나타내는 정보를 포함할 수 있다. 예를 들어, 외부 전자 장치에 관한 상태 정보는, 외부 전자 장치가 전력을 제공받는 장치인지 여부를 나타내는 제1 정보 및 외부 전자 장치의 제1 신호 단자(예: 제1 데이터 단자(D+))와 제2 신호 단자(예: 제2 데이터 단자(D-))가 서로 쇼트 상태인지 여부를 나타내는 제2 정보를 포함할 수 있다.
일 실시예에 따르면, 730 동작에서, 전자 장치는, 상태 정보에 기초하여, 외부 전자 장치가 비정상적인 외부 전자 장치에 대응함을 인식할 수 있다. 예를 들어, 전자 장치가 재시작된 후, 전자 장치는 기 저장된, 외부 전자 장치에 관련된 상태 정보에 포함된 제1 정보 및 제2 정보를 인식할 수 있다. 예를 들어, 제1 정보는, 현재 전기적으로 결합되어 있는 외부 전자 장치가 전력을 제공받는 장치에 대응함을 나타낼 수 있다. 예를 들어, 제2 정보는, 현재 전기적으로 결합되어 있는 외부 전자 장치의 제1 신호 단자와 제2 신호 단자가 서로 쇼트 상태임을 나타낼 수 있다.
일 실시예에 따르면, 740 동작에서, 전자 장치는, 외부 전자 장치에 관한 상태 정보를 초기화 하지 않고, 외부 전자 장치에 전원 전압을 출력하지 않도록 결정할 수 있다.
도 8은 다양한 실시예에 따른, 전자 장치의 동작 방법의 흐름도이다.
이하에서, 전자 장치(예: 도 1의 전자 장치(101) 또는 도 2의 전자 장치(201) 또는 도 3의 전자 장치(301))가 수행하는 것으로 설명된 동작들은 (예: 도 1의 프로세서(120) 또는 도 2의 프로세서(250) 또는 도 3의 프로세서(319))에 의하여 수행되는 것으로 이해될 수 있다.
일 실시예에 따르면, 810 동작에서, 전자 장치는, 식별 회로(예: 도 2의 식별 회로(220) 또는 도 3의 식별 회로(313))를 이용하여, 외부 전자 장치(예: 도 1의 전자 장치(102) 또는 도 3의 외부 전자 장치(302))가 커넥터(예: 도 1의 연결 단자(178) 또는 도 2의 커넥터(210))를 통해서 전자 장치에 연결된 것을 인식할 수 있다. 예를 들어, 전자 장치는, 커넥터로부터 전기적인 신호를 감지하여 외부 전자 장치가 전기적으로 전자 장치에 결합된 것을 인식할 수 있다. 일 실시예에 따르면, 전자 장치는 식별 회로에 연결되는 커넥터의 식별 단자를 통해 제1 저항 값 또는 제2 저항 값 중 하나를 식별할 수 있다. 예를 들어, 전자 장치는, 식별 회로를 이용하여 제1 저항 값(예: 풀다운 저항 값(5.1kohm))을 식별한 것을 기초로, 외부 전자 장치가 전자 장치로부터 전력을 제공받을 수 있는 장치에 대응하는 것을 인식할 수 있다.
일 실시예에 따르면, 820 동작에서, 전자 장치는, 스위칭 회로(예: 도 2의 스위칭 회로(230) 또는 도 3의 스위칭 회로(315))를 이용하여, 커넥터의 적어도 하나의 신호 단자들 중 제1 신호 단자 및 제2 신호 단자 중 적어도 하나에 전기적으로 연결된 커패시터 내의 전기적 에너지를 방전시킬 수 있다. 예를 들어, 제1 신호 단자는 제1 데이터 단자(D+)를 포함할 수 있다. 예를 들어, 제2 신호 단자는 제2 데이터 단자(D-)를 포함할 수 있다. 예를 들어, 커넥터의 제1 신호 단자는 외부 전자 장치의 제1 신호 라인(예: D+ 라인)과 연결될 수 있다. 예를 들어, 커넥터의 제2 신호 단자는 외부 전자 장치의 제2 신호 라인(예: D- 라인)과 연결될 수 있다. 일 실시예에 따르면, 전자 장치는, 풀다운 저항을 포함하는 방전 회로(예: 도 3의 방전 회로(314))에 제1 신호 단자를 연결하여 제1 신호 단자의 커패시터(capacitor) 성분(예: 잔여 전하)을 적어도 일부 제거할 수 있다. 일 실시예에 따르면, 전자 장치는, 풀다운 저항을 포함하는 방전 회로에 제2 신호 단자를 연결하여 제2 신호 단자의 커패시터 성분을 적어도 일부 제거할 수 있다.
일 실시예에 따르면, 830 동작에서, 전자 장치는, 제1 신호 단자 및 제2 신호 단자의 전압 레벨 차이에 기초하여, 외부 전자 장치에 커넥터를 통해 전원 전압을 출력할지 여부를 결정할 수 있다. 일 실시예에 따르면, 제1 신호 단자와 제2 신호 단자의 전압 레벨 차이가 없거나 또는 임계 값 미만인 경우(예: 쇼트(short) 상태)인 경우, 외부 전자 장치는 전자 장치에 고전압을 인가하는 비정상적인 외부 전자 장치일 수 있다. 이 경우, 전자 장치는 외부 전자 장치로 전원 전압을 출력하지 않도록 충전 회로(예: 도 3의 충전 회로(317))를 제어할 수 있다. 일 실시예에 따르면, 제1 신호 단자와 제2 신호 단자의 전압 레벨 차이가 임계 값 이상인 경우(예: 쇼트 상태가 아닌 상태), 외부 전자 장치는 전자 장치에 고전압을 인가하지 않는 정상적인 외부 전자 장치일 수 있다. 이 경우, 전자 장치는 외부 전자 장치로 전원 전압을 출력하도록 충전 회로를 제어할 수 있다.
본 개시의 일 실시예에 따른 전자 장치(예: 도 1의 전자 장치(101) 또는 도 2의 전자 장치(201) 또는 도 3의 전자 장치(301))의 동작 방법은, 외부 전자 장치가 커넥터(예: 도 1의 연결 단자(178), 도 2의 커넥터(210) 또는 도 3의 커넥터(311))를 통해서 상기 전자 장치에 전기적으로 연결된 것을 인식하는 동작, 상기 커넥터에 포함된 적어도 하나의 신호 단자들 중 제1 신호 단자 및 상기 제2 신호 단자 중 적어도 하나에 전기적으로 연결된 커패시터 내의 에너지를 방전시키는 동작 및 상기 제1 신호 단자 및 상기 제2 신호 단자의 전압 레벨 차이에 기초하여, 상기 외부 전자 장치로 상기 커넥터를 통해 전원 전압을 출력할지 여부를 결정하는 동작을 포함할 수 있다.
일 실시예에 따르면, 상기 인식하는 동작은, 상기 적어도 하나의 신호 단자들 중 제3 신호 단자를 통해 제1 저항 값 또는 제2 저항 값을 인식하는 동작을 포함할 수 있다.
일 실시예에 따르면, 상기 방전시키는 동작은, 상기 제1 신호 단자 및 제2 신호 단자 중 적어도 하나를 적어도 하나의 저항(resistor)을 포함하는 방전 회로(예: 도 3의 방전 회로(314))에 연결하는 동작을 포함할 수 있다.
일 실시예에 따르면, 상기 전원 전압을 출력할지 여부를 결정하는 동작은, 상기 제1 신호 단자 및 상기 제2 신호 단자 중 적어도 하나를 방전시킨 후 상기 제1 신호 단자의 전압 레벨 및 상기 제2 신호 단자의 전압 레벨을 인식하는 동작, 상기 제1 신호 단자의 전압 레벨 및 상기 제2 신호 단자의 전압 레벨의 차이가 임계값 미만인 것에 기초하여, 상기 외부 전자 장치로 상기 전원 전압을 출력하지 않을 것을 결정하는 동작 및 상기 제1 신호 단자의 전압 레벨 및 상기 제2 신호 단자의 전압 레벨의 차이가 상기 임계값 이상인 것에 기초하여, 상기 외부 전자 장치로 상기 전원 전압을 출력할 것을 결정하는 동작을 더 포함할 수 있다.
일 실시예에 따르면, 상기 방전시키는 동작은, 상기 제1 신호 단자 및 상기 제2 신호 단자를 각각 방전 회로에 연결하는 동작을 포함하고, 상기 전원 전압을 출력할지 여부를 결정하는 동작은, 상기 제1 신호 단자에 풀업 전원을 인가하는 동작, 상기 제2 신호 단자의 전압 레벨을 인식하여 상기 제1 신호 단자 및 상기 제2 신호 단자의 전압 레벨 차이가 임계값 미만인 것을 인식하는 제1 확인 동작, 상기 제2 신호 단자에 상기 풀업 전원을 인가하는 동작 및 상기 제1 신호 단자의 전압 레벨을 인식하여 상기 제1 신호 단자 및 상기 제2 신호 단자의 전압 레벨 차이가 상기 임계값 미만인 것을 인식하는 제2 확인 동작을 포함할 수 있다.
일 실시예에 따르면, 상기 동작 방법은, 상기 제1 확인 동작 및 상기 제2 확인 동작에 기초하여 상기 외부 전자 장치로 상기 전원 전압을 출력하는 것을 제한하는 동작을 더 포함할 수 있다.
본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.
본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나", "A, B 또는 C", "A, B 및 C 중 적어도 하나", 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.
본 문서의 다양한 실시예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다.
본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, '비일시적'은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.
일실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어™)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.
다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있으며, 복수의 개체 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.

Claims (15)

  1. 전자 장치에 있어서,
    적어도 하나의 신호 단자들을 포함하는 커넥터;
    상기 커넥터와 전기적으로 연결된 식별 회로;
    상기 커넥터와 전기적으로 연결된 스위칭 회로;
    배터리;
    메모리; 및
    상기 식별 회로, 상기 스위칭 회로, 상기 배터리 및 상기 메모리와 작동적으로(operatively) 연결되는 프로세서를 포함하고,
    상기 메모리는, 실행 시, 상기 프로세서가,
    상기 식별 회로를 이용하여, 외부 전자 장치가 상기 커넥터를 통해서 상기 전자 장치에 전기적으로 연결된 것을 인식하고,
    상기 스위칭 회로를 이용하여, 상기 적어도 하나의 신호 단자들 중 제1 신호 단자 및 제2 신호 단자 중 적어도 하나에 전기적으로 연결된 커패시터 내의 에너지를 방전(discharge)시키고,
    상기 제1 신호 단자 및 상기 제2 신호 단자의 전압 레벨 차이에 기초하여, 상기 외부 전자 장치로 상기 커넥터를 통해 상기 배터리에 기반한 전원 전압을 출력할지 여부를 결정하도록 하는 인스트럭션들(instructions)을 저장하는, 전자 장치.
  2. 제1항에 있어서,
    상기 인스트럭션들은, 상기 프로세서가,
    상기 식별 회로를 이용하여, 상기 적어도 하나의 신호 단자들 중 제3 신호 단자를 통해 제1 저항 값 또는 제2 저항 값을 인식하도록 하는, 전자 장치.
  3. 제2항에 있어서,
    상기 인스트럭션들은, 상기 프로세서가,
    상기 식별 회로를 이용하여 상기 제1 저항 값을 인식하는 경우 상기 외부 전자 장치가 외부로부터 전력을 제공받는 장치(sink)에 대응하는 것으로 인식하고,
    상기 식별 회로를 이용하여 상기 제2 저항 값을 인식하는 경우 상기 외부 전자 장치가 외부로 전력을 제공하는 장치(source)에 대응하는 것으로 인식하도록 하는, 전자 장치.
  4. 제1항에 있어서,
    적어도 하나의 저항(resistor)을 포함하는 방전 회로;를 더 포함하고,
    상기 인스트럭션들은, 상기 프로세서가,
    상기 스위칭 회로를 이용하여, 상기 제1 신호 단자 및 상기 제2 신호 단자를 상기 방전 회로에 연결하도록 하는, 전자 장치.
  5. 제1항에 있어서,
    상기 인스트럭션들은, 상기 프로세서가,
    상기 제1 신호 단자 및 상기 제2 신호 단자 중 적어도 하나를 방전시킨 후, 상기 스위칭 회로를 이용하여 상기 방전시킨 신호 단자에 상기 배터리에 기반한 풀업 전원을 인가하도록 하는, 전자 장치.
  6. 제5항에 있어서,
    상기 인스트럭션들은, 상기 프로세서가,
    상기 방전시킨 신호 단자에 상기 풀업 전원을 인가한 후 지정된 시간 동안 대기하도록 하는, 전자 장치.
  7. 제1항에 있어서,
    상기 인스트럭션들은, 상기 프로세서가,
    상기 제1 신호 단자 및 상기 제2 신호 단자 중 적어도 하나를 방전시킨 후 상기 제1 신호 단자의 전압 레벨 및 상기 제2 신호 단자의 전압 레벨을 인식하고,
    상기 제1 신호 단자의 전압 레벨 및 상기 제2 신호 단자의 전압 레벨의 차이가 임계값 미만인 경우, 상기 외부 전자 장치로 상기 전원 전압을 출력하지 않을 것을 결정하도록 하는, 전자 장치.
  8. 제7항에 있어서,
    상기 인스트럭션들은, 상기 프로세서가,
    상기 제1 신호 단자의 전압 레벨 및 상기 제2 신호 단자의 전압 레벨의 차이가 상기 임계값 이상인 경우, 상기 외부 전자 장치로 상기 전원 전압을 출력할 것을 결정하도록 하는, 전자 장치.
  9. 제1항에 있어서,
    충전 회로;를 더 포함하고,
    상기 인스트럭션들은, 상기 프로세서가,
    상기 전원 전압을 출력할지 여부를 결정한 것을 기초로, 상기 충전 회로를 제어하도록 하는, 전자 장치.
  10. 제1항에 있어서,
    상기 인스트럭션들은, 상기 프로세서가,
    상기 스위칭 회로를 이용하여, 상기 제1 신호 단자 및 상기 제2 신호 단자를 각각 방전시키고,
    상기 제1 신호 단자에 풀업 전원을 인가하고,
    상기 제2 신호 단자의 전압 레벨을 인식하여 상기 제1 신호 단자 및 상기 제2 신호 단자의 전압 레벨 차이가 임계값 미만인 것을 인식하는 제1 확인 동작을 수행하고,
    상기 제2 신호 단자에 상기 풀업 전원을 인가하고,
    상기 제1 신호 단자의 전압 레벨을 인식하여 상기 제1 신호 단자 및 상기 제2 신호 단자의 전압 레벨 차이가 상기 임계값 미만인 것을 인식하는 제2 확인 동작을 수행하도록 하는, 전자 장치.
  11. 제10항에 있어서,
    상기 인스트럭션들은, 상기 프로세서가,
    상기 제1 확인 동작 및 상기 제2 확인 동작에 기초하여 상기 외부 전자 장치로 상기 전원 전압을 출력하는 것을 제한하도록 하는, 전자 장치.
  12. 제10항에 있어서,
    상기 인스트럭션들은, 상기 프로세서가,
    상기 제1 신호 단자에 상기 풀업 전원을 인가하고,
    상기 제2 신호 단자의 전압 레벨을 인식하여 상기 제1 신호 단자 및 상기 제2 신호 단자의 전압 레벨 차이가 상기 임계값 미만인 것을 인식하는 제3 확인 동작을 수행하고,
    상기 제2 신호 단자에 상기 풀업 전원을 인가하고,
    상기 제1 신호 단자의 전압 레벨을 인식하여 상기 제1 신호 단자 및 상기 제2 신호 단자의 전압 레벨 차이가 상기 임계값 미만인 것을 인식하는 제4 확인 동작을 수행하고,
    상기 제3 확인 동작 및 상기 제4 확인 동작에 기초하여 상기 외부 전자 장치로 상기 전원 전압을 출력하는 것을 제한하도록 하는, 전자 장치.
  13. 제1항에 있어서,
    상기 메모리는 상기 외부 전자 장치에 관련된 상태 정보를 저장하고,
    상기 인스트럭션들은, 상기 프로세서가,
    상기 외부 전자 장치가 상기 전자 장치와 전기적으로 연결된 상태에서 재시작(reboot)되고,
    상기 외부 전자 장치에 상기 전원 전압을 출력하기 전에 상기 외부 전자 장치에 관련된 상태 정보를 확인하고,
    상기 확인한 상태 정보에 기반하여, 상기 외부 전자 장치에 상기 전원 전압을 출력하는 것을 제한하도록 하는, 전자 장치.
  14. 제1항에 있어서,
    상기 제1 신호 단자 및 상기 제2 신호 단자는,
    상기 전자 장치와 상기 외부 전자 장치 간의 데이터를 송수신하도록 구성된, 전자 장치.
  15. 전자 장치의 동작 방법에 있어서,
    외부 전자 장치가 커넥터를 통해서 상기 전자 장치에 전기적으로 연결된 것을 인식하는 동작;
    상기 커넥터에 포함된 적어도 하나의 신호 단자들 중 제1 신호 단자 및 제2 신호 단자 중 적어도 하나에 전기적으로 연결된 커패시터 내의 에너지를 방전시키는 동작; 및
    상기 제1 신호 단자 및 상기 제2 신호 단자의 전압 레벨 차이에 기초하여, 상기 외부 전자 장치로 상기 커넥터를 통해 전원 전압을 출력할지 여부를 결정하는 동작을 포함하는, 전자 장치의 동작 방법.
PCT/KR2022/007927 2021-07-30 2022-06-03 전자 장치 및 전자 장치의 동작 방법 WO2023008724A1 (ko)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR10-2021-0100412 2021-07-30
KR1020210100412A KR20230018630A (ko) 2021-07-30 2021-07-30 전자 장치 및 전자 장치의 동작 방법

Publications (1)

Publication Number Publication Date
WO2023008724A1 true WO2023008724A1 (ko) 2023-02-02

Family

ID=85087953

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2022/007927 WO2023008724A1 (ko) 2021-07-30 2022-06-03 전자 장치 및 전자 장치의 동작 방법

Country Status (2)

Country Link
KR (1) KR20230018630A (ko)
WO (1) WO2023008724A1 (ko)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160011238A1 (en) * 2014-07-10 2016-01-14 Qualcomm Incorporated Apparatuses and methods to distinguish proprietary, non-floating and floating chargers for regulating charging currents
KR20180014629A (ko) * 2016-08-01 2018-02-09 삼성전자주식회사 외부 장치를 인식하는 방법 및 이를 지원하는 전자 장치
KR20180020479A (ko) * 2016-08-18 2018-02-28 삼성전자주식회사 전자 장치, 및 전자 장치 제어 방법
EP3525312A1 (en) * 2016-11-03 2019-08-14 Huawei Technologies Co., Ltd. Charging method, terminal and charging adapter
JP2020005339A (ja) * 2018-06-25 2020-01-09 キヤノン株式会社 電子機器および電子機器の制御方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160011238A1 (en) * 2014-07-10 2016-01-14 Qualcomm Incorporated Apparatuses and methods to distinguish proprietary, non-floating and floating chargers for regulating charging currents
KR20180014629A (ko) * 2016-08-01 2018-02-09 삼성전자주식회사 외부 장치를 인식하는 방법 및 이를 지원하는 전자 장치
KR20180020479A (ko) * 2016-08-18 2018-02-28 삼성전자주식회사 전자 장치, 및 전자 장치 제어 방법
EP3525312A1 (en) * 2016-11-03 2019-08-14 Huawei Technologies Co., Ltd. Charging method, terminal and charging adapter
JP2020005339A (ja) * 2018-06-25 2020-01-09 キヤノン株式会社 電子機器および電子機器の制御方法

Also Published As

Publication number Publication date
KR20230018630A (ko) 2023-02-07

Similar Documents

Publication Publication Date Title
WO2021020900A1 (en) Electronic device for preventing damage of usb device and operating method thereof
WO2022086207A1 (ko) 고속 충전 방법 및 전자 장치
WO2021060722A1 (en) Electronic device and method for controlling reset of control ic
WO2022114864A1 (ko) 커넥터를 포함하는 전자 장치
WO2022114667A1 (ko) 무선 충전 방법 및 이를 지원하는 전자 장치
WO2023008724A1 (ko) 전자 장치 및 전자 장치의 동작 방법
WO2022181965A1 (ko) 업사이클링 기능을 제공하기 위한 방법 및 이를 지원하는 전자 장치
WO2022158769A1 (ko) 전력 공급 회로 및 이를 포함하는 전자 장치
WO2022186502A1 (ko) 전자 장치 및 전자 장치의 전원 공급 제어 방법
WO2022030925A1 (ko) 전자 장치
WO2023085682A1 (ko) 배터리와 연관된 정보를 획득하기 위한 전자 장치 및 그 동작 방법
WO2023018032A1 (ko) 커넥터의 오동작을 방지하기 위한 방법 및 상기 커넥터를 구비한 전자 장치
WO2022255627A1 (ko) 외부 장치와의 연결을 지원하는 전자 장치 및 그의 동작 방법
WO2023054904A1 (ko) 배터리 팩 및 그 충전 제어 방법
WO2023068694A1 (ko) 전자 장치 및 전자 장치의 케이블 연결 회로 검사 방법
WO2023013848A1 (ko) 바이패스 경로를 통해 전력을 제공하는 방법 및 이를 적용한 전자 장치
WO2023243810A1 (ko) 그립 센서의 구동을 위한 파라미터를 조절하기 위한 전자 장치 및 그 방법
WO2022103108A1 (ko) 전자 장치 및 전자 장치의 터치 입력 감지 방법
WO2023068482A1 (ko) 전자 장치 및 전자 장치에서 배터리를 보호하는 방법
WO2022191659A1 (ko) 배터리 팩을 포함하는 전자 장치, 그 전자 장치에서의 동작 방법
WO2022085921A1 (ko) 전자 장치 및 전자 장치에서 전력 제어 방법
WO2023054886A1 (ko) 유에스비 인터페이스를 통해 외부 장치와 통신하는 전자 장치 및 그 동작 방법
WO2022186503A1 (ko) 전원 공급 장치 및 전원 공급 장치의 전원 공급 제어 방법
WO2023075087A1 (ko) 유선 충전기와 연결된 상태에서 무선 충전 회로의 전력 공급 효율을 높일 수 있는 전자 장치 및 방법
WO2022234955A1 (ko) 무선 충전 노이즈의 처리 방법 및 이를 지원하는 전자 장치

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22849703

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE