Method for controlling power supply and electronic device using the same
By designing an electronic device that can simultaneously supply power with multiple USB-C ports, the problem of difficulty in using multiple ports in the prior art is solved, and faster charging time and lower cost and complexity are achieved.
Patent Information
- Application Number
- CN202380048903.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-07-14
- Filing Date
- 2023-04-05
- Publication Date
- 2025-02-18
AI Technical Summary
The prior art is difficult to supply power using multiple USB-C ports simultaneously, and electronic devices including multiple charging circuits have limitations when controlling different power values.
An electronic device is designed, including multiple USB-C ports and a charging circuit, and the processor obtains information on the power of each port, compares and adjusts the power supply, ensuring that the charging circuit receives power from multiple ports at the same time.
Reduced charging time with multiple power connections, reduced cost and installation space requirements, and simplified configuration complexity.
Smart Images

Figure CN119487724A_ABST
Abstract
Description
Technical Field
[0001] Various embodiments of the present disclosure relate to an electronic device supporting connection to an external electronic device and an operating method thereof, and specifically, to an electronic device supplied with power through a universal serial bus (USB) port and an operating method thereof, and a method for configuring an electronic device capable of being supplied with one or more power supplies simultaneously in an electronic device supplied with power through one or more USB ports. Background Art
[0002] Various electronic devices such as smart phones, tablet PCs, portable multimedia players (PMPs), personal digital assistants (PDAs), laptop personal computers (PCs), and wearable devices are becoming more and more popular. Recently, various electronic devices are provided with ports that can be connected to external electronic devices via wires, and these ports are specified according to various standards. Among the various standards, the Universal Serial Bus (USB) method is the most widely used.
[0003] The Universal Serial Bus (hereinafter referred to as USB) is an input / output standard method for connecting an electronic device to an external electronic device. Recently, with the introduction of power delivery (PD) technology in USB Type-C, power can be supplied to the electronic device from a USB-connected power supply device (power delivery (PD) source). The external power supply device can supply the power required to drive the electronic device through the USB connector. In addition, the power supply device connected to the electronic device using the USB Type-C specification can send control signals to the electronic device or receive control signals from the electronic device through the configuration channel (CC) defined in the USB Type-C specification. In addition, conversely, the electronic device connected to the power supply device can send control signals to the external power supply device or receive control signals from the external power supply device through the configuration channel (CC) defined in the USB Type-C specification. Summary of the invention
[0004] Technical issues
[0005] An electronic device including multiple USB-C ports can be supplied with power from any USB-C port. However, even if multiple power sources are connected at the same time, the electronic device can be supplied with power by selecting only one port (selecting a larger power source among multiple power sources).
[0006] For example, when two power supplies of 45W and 65W are connected to two ports respectively, the electronic device can select only one port to supply power. Therefore, even if the electronic device is designed to use 110W, that is, the sum of the two power supplies, there may be a limitation that only one power supply can be used due to the structure of the port.
[0007] In addition, when the electronic device selects multiple ports to supply power, the electronic device may have limitations including multiple charging circuits. The electronic device including multiple charging circuits may have limitations in actual implementation due to controlling different power values.
[0008] Solution to the problem
[0009] An electronic device according to various embodiments is provided. The electronic device may include: a first port connected to a first power source capable of supplying power to the electronic device; a second port connected to a second power source capable of supplying power to the electronic device; a charging circuit electrically connected to the first port and the second port and configured to receive power supplied through the first port and / or the second port; a first switch configured to control an electrical connection between the charging circuit and the first port; a second switch configured to control an electrical connection between the charging circuit and the second port; and a processor electrically connected to the charging circuit.
[0010] The processor may: obtain information indicating the size of the first power supplied from the first power source and information indicating the size of the second power supplied from the second power source; compare the size of the first power supplied from the first power source and the size of the second power supplied from the second power source; based on determining that the size of the first power is relatively smaller than the size of the second power, compare the size of the second power with the size of the sum of multiple power values when the size of the power supplied from the second power source is changed to be equal to the size of the first power; in response to identifying that the size of the second power is relatively smaller than the size of the sum of the multiple power values, control the size of the power supplied from the second power source to be equal to the size of the first power; and control the first switch and the second switch so that power is supplied to the charging circuit using both the first power source and the second power source.
[0011] According to various embodiments, there is a method for controlling power supply of an electronic device. The method may include: acquiring information indicating the size of a first power supplied from a first power source and information indicating the size of a second power supplied from a second power source; comparing the size of the first power supplied from the first power source and the size of the second power supplied from the second power source; based on determining that the size of the first power is relatively smaller than the size of the second power, comparing the size of the second power with the size of the sum of multiple power values when the size of the power supplied from the second power source is changed to be equal to the size of the first power; in response to recognizing that the size of the second power is relatively smaller than the size of the sum of the multiple power values, controlling the size of the power supplied from the second power source to be equal to the size of the first power; and controlling a first switch and a second switch so that power is supplied to a charging circuit using both the first power source and the second power source.
[0012] Beneficial Effects of the Invention
[0013] According to various embodiments, an electronic device can reduce a charging time by simultaneously using power of a plurality of power sources in a case where the plurality of power sources are connected to a plurality of ports.
[0014] According to various embodiments, the electronic device can include only one charging circuit, thereby reducing costs and reducing installation space.
[0015] According to various embodiments, since the electronic device uses only one charging circuit, the electronic device can reduce complexity of configuration compared to a case where a plurality of charging circuits are used. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 is a block diagram of an electronic device in a network environment according to various embodiments.
[0017] Figure 2 is a block diagram illustrating a power management module and a battery according to various embodiments.
[0018] Figure 3 is a schematic configuration diagram of an electronic device according to various embodiments.
[0019] Figure 4 A block diagram illustrating a configuration of an electronic device according to various embodiments.
[0020] Figure 5 A flow chart of a method of controlling power supply of an electronic device according to various embodiments is shown. DETAILED DESCRIPTION
[0021] Figure 1 1 is a block diagram illustrating an electronic device 101 in a network environment 100 according to various embodiments. Figure 1 , the electronic device 101 in the network environment 100 may communicate with the electronic device 102 via the first network 198 (e.g., a short-range wireless communication network), or communicate with at least one of the electronic device 104 or the server 108 via the second network 199 (e.g., a long-range wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 via the server 108. According to an embodiment, the electronic device 101 may include a processor 120, a memory 130, an input module 150, a sound output module 155, a display module 160, an audio module 170, a sensor module 176, an interface 177, a connection terminal 178, a haptic module 179, a camera module 180, a power management module 188, a battery 189, a communication module 190, a user identification module (SIM) 196, or an antenna module 197. In some embodiments, at least one of the above components (e.g., the connection terminal 178) may be omitted from the electronic device 101, or one or more other components may be added to the electronic device 101. In some embodiments, some of the above-described components (eg, sensor module 176, camera module 180, or antenna module 197) may be implemented as a single integrated component (eg, display module 160).
[0022] The processor 120 may run, for example, software (e.g., program 140) to control at least one other component (e.g., hardware component or software component) of the electronic device 101 connected to the processor 120, and may perform various data processing or calculations. According to one embodiment, as at least part of the data processing or calculation, the processor 120 may store a command or data received from another component (e.g., sensor module 176 or communication module 190) in the volatile memory 132, process the command or data stored in the volatile memory 132, and store the resultant data in the non-volatile memory 134. According to an embodiment, the processor 120 may include a main processor 121 (e.g., a central processing unit (CPU) or an application processor (AP)) or an auxiliary processor 123 (e.g., a graphics processing unit (GPU), a neural processing unit (NPU), an image signal processor (ISP), a sensor hub processor, or a communication processor (CP)) that is operationally independent or combined with the main processor 121. For example, when the electronic device 101 includes a main processor 121 and an auxiliary processor 123, the auxiliary processor 123 may be adapted to consume less power than the main processor 121, or adapted to be dedicated to a specific function. The auxiliary processor 123 may be implemented separately from the main processor 121, or as part of the main processor 121.
[0023] When the main processor 121 is in an inactive (e.g., sleep) state, the auxiliary processor 123 (rather than the main processor 121) may control at least some of the functions or states related to at least one component among the components of the electronic device 101 (e.g., the display module 160, the sensor module 176, or the communication module 190), or when the main processor 121 is in an active state (e.g., running an application), the auxiliary processor 123 may control at least some of the functions or states related to at least one component among the components of the electronic device 101 (e.g., the display module 160, the sensor module 176, or the communication module 190) together with the main processor 121. According to an embodiment, the auxiliary processor 123 (e.g., an image signal processor or a communication processor) may be implemented as part of another component (e.g., a camera module 180 or a communication module 190) that is functionally related to the auxiliary processor 123. According to an embodiment, the auxiliary processor 123 (e.g., a neural processing unit) may include a hardware structure dedicated to artificial intelligence model processing. The artificial intelligence model may be generated by machine learning. For example, such learning may be performed by the electronic device 101 where the artificial intelligence is executed or via a separate server (e.g., server 108). The learning algorithm may include, but is not limited to, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, for example. The artificial intelligence model may include multiple artificial neural network layers. The artificial neural network may be a deep neural network (DNN), a convolutional neural network (CNN), a recurrent neural network (RNN), a restricted Boltzmann machine (RBM), a deep belief network (DBN), a bidirectional recurrent deep neural network (BRDNN), or a deep Q network or a combination of two or more thereof, but is not limited thereto. Additionally or alternatively, the artificial intelligence model may include a software structure in addition to a hardware structure.
[0024] The memory 130 may store various data used by at least one component of the electronic device 101 (e.g., the processor 120 or the sensor module 176). The various data may include, for example, software (e.g., the program 140) and input data or output data for commands related thereto. The memory 130 may include a volatile memory 132 or a nonvolatile memory 134.
[0025] The program 140 may be stored as software in the memory 130 , and may include, for example, an operating system (OS) 142 , middleware 144 , or applications 146 .
[0026] The input module 150 may receive commands or data to be used by other components (e.g., the processor 120) of the electronic device 101 from outside (e.g., a user) of the electronic device 101. The input module 150 may include, for example, a microphone, a mouse, a keyboard, a key (e.g., a button), or a digital pen (e.g., a stylus).
[0027] The sound output module 155 can 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 playing multimedia or playing records. The receiver can be used to receive incoming calls. Depending on the embodiment, the receiver can be implemented as a separate part from the speaker, or as part of the speaker.
[0028] The display module 160 may visually provide information to the outside of the electronic device 101 (e.g., a user). The display device 160 may include, for example, a display, a holographic device, or a projector, and a control circuit for controlling a corresponding one of the display, the holographic device, and the projector. According to an embodiment, the display module 160 may include a touch sensor adapted to detect a touch or a pressure sensor adapted to measure the strength of a force caused by a touch.
[0029] The audio module 170 may convert sound into an electrical signal, or vice versa. According to an embodiment, the audio module 170 may obtain sound via the input module 150, or output sound via the sound output module 155 or an earphone of an external electronic device (e.g., electronic device 102) directly (e.g., wired) or wirelessly connected to the electronic device 101.
[0030] The sensor module 176 may detect an operating state (e.g., power or temperature) of the electronic device 101 or an environmental state (e.g., a user's state) outside the electronic device 101, and then generate an electrical signal or data value corresponding to the detected state. According to an embodiment, the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, an atmospheric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an infrared (IR) sensor, a biometric sensor, a temperature sensor, a humidity sensor, or an illumination sensor.
[0031] The interface 177 may support one or more specific protocols to be used to connect the electronic device 101 directly (e.g., wired) or wirelessly to an external electronic device (e.g., the electronic device 102). According to an embodiment, the interface 177 may include, for example, a high-definition multimedia interface (HDMI), a universal serial bus (USB) interface, a secure digital (SD) card interface, or an audio interface.
[0032] The connection end 178 may include a connector, wherein the electronic device 101 can be physically connected to an external electronic device (e.g., the electronic device 102) via the connector. According to an embodiment, the connection end 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).
[0033] The haptic module 179 may convert the electrical signal into mechanical stimulation (eg, vibration or motion) or electrical stimulation that can be recognized by the user via his sense of touch or kinesthetic sense. According to an embodiment, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulator.
[0034] The camera module 180 may capture still images or moving images. According to an embodiment, the camera module 180 may include one or more lenses, an image sensor, an image signal processor, or a flash.
[0035] The power management module 188 may manage power supply to the electronic device 101. According to an embodiment, the power management module 188 may be implemented as, for example, at least a part of a power management integrated circuit (PMIC).
[0036] The battery 189 may power at least one component of the electronic device 101. According to an embodiment, the battery 189 may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.
[0037] The communication module 190 may support establishing a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (e.g., electronic device 102, electronic device 104, or server 108), and perform communication via the established communication channel. The communication module 190 may include one or more communication processors capable of operating independently from the processor 120 (e.g., an application processor (AP)) and supporting direct (e.g., wired) communication or wireless communication. According to an embodiment, the communication module 190 may include a wireless communication module 192 (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (e.g., a local area network (LAN) communication module or a power line communication (PLC) module). A corresponding one of these communication modules can communicate with an external electronic device via a first network 198 (e.g., a short-range communication network such as Bluetooth, Wireless Fidelity (Wi-Fi) Direct, or Infrared Data Association (IrDA)) or a second network 199 (e.g., a long-range communication network such as a traditional cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., a LAN or a wide area network (WAN))). These various types of communication modules can be implemented as a single component (e.g., a single chip), or these various types of communication modules can be implemented as multiple components separated from each other (e.g., multiple chips). The wireless communication module 192 can identify and authenticate the electronic device 101 in a communication network (such as the first network 198 or the second network 199) using user information (e.g., an International Mobile Subscriber Identity (IMSI)) stored in the user identification module 196.
[0038] The wireless communication module 192 can support 5G networks after 4G networks and next-generation communication technologies (e.g., new radio (NR) access technology). NR access technology can support enhanced mobile broadband (eMBB), massive machine type communication (mMTC), or ultra-reliable low-latency communication (URLLC). The wireless communication module 192 can support high-frequency bands (e.g., millimeter wave bands) to achieve, for example, high data transmission rates. The wireless communication module 192 can support various technologies for ensuring performance on high-frequency bands, such as, for example, beamforming, massive multiple-input multiple-output (massive MIMO), full-dimensional MIMO (FD-MIMO), array antennas, analog beamforming, or massive antennas. The wireless communication module 192 can support various requirements specified in the electronic device 101, an external electronic device (e.g., electronic device 104), or a network system (e.g., a second network 199). According to an embodiment, the wireless communication module 192 may support a peak data rate for implementing eMBB (e.g., 20 Gbps or greater), loss coverage for implementing mMTC (e.g., 164 dB or less), or U-plane delay for implementing URLLC (e.g., 0.5 ms or less for each of the downlink (DL) and uplink (UL), or 1 ms or less round trip).
[0039] The antenna module 197 may transmit or receive a signal or power to or from the outside of the electronic device 101 (e.g., an external electronic device). According to an embodiment, the antenna module 197 may include an antenna including a radiating element formed of a conductive material or a conductive pattern formed in or on a substrate (e.g., a printed circuit board (PCB)). According to an embodiment, the antenna module 197 may include a plurality of antennas (e.g., an array antenna). In this case, at least one antenna suitable for a communication scheme used in a communication network (such as the first network 198 or the second network 199) may be selected from the plurality of antennas by, for example, the communication module 190 (e.g., the wireless communication module 192). A signal or power may then be transmitted or received between the communication module 190 and the external electronic device via the selected at least one antenna. According to an embodiment, another component (e.g., a radio frequency integrated circuit (RFIC)) other than the radiating element may be additionally formed as part of the antenna module 197.
[0040] According to various embodiments, the antenna module 197 may form a millimeter wave antenna module. According to an embodiment, the millimeter wave antenna module may include a printed circuit board, a radio frequency integrated circuit (RFIC), and a plurality of antennas (e.g., array antennas), wherein the RFIC is disposed on a first surface (e.g., bottom surface) of the printed circuit board, or adjacent to the first surface and capable of supporting a specified high frequency band (e.g., millimeter wave band), and the plurality of antennas are disposed on a second surface (e.g., top surface or side surface) of the printed circuit board, or adjacent to the second surface and capable of transmitting or receiving signals of the specified high frequency band.
[0041] At least some of the above components may be connected to each other via an inter-peripheral communication scheme (e.g., a bus, a general purpose input output (GPIO), a serial peripheral interface (SPI), or a mobile industry processor interface (MIPI)) and communicatively transmit signals (e.g., commands or data) therebetween.
[0042] According to an embodiment, a command or data may be sent or received between the electronic device 101 and the external electronic device 104 via the server 108 connected to the second network 199. Each of the electronic device 102 or the electronic device 104 may be a device of the same type as the electronic device 101, or a device of a different type from the electronic device 101. According to an embodiment, all or some operations to be executed in the electronic device 101 may be executed in one or more of the external electronic device 102, the external electronic device 104, or the server 108. For example, if the electronic device 101 should automatically execute a function or service or should execute a function or service in response to a request from a user or another device, the electronic device 101 may request the one or more external electronic devices to execute at least part of the function or service instead of executing the function or service, or the electronic device 101 may request the one or more external electronic devices to execute at least part of the function or service in addition to executing the function or service. The one or more external electronic devices receiving the request may execute at least part of the function or service requested, or execute another function or another service related to the request, and transmit the result of the execution to the electronic device 101. The electronic device 101 may provide the result as at least a partial reply to the request in the case of further processing the result or in the case of not further processing the result. To this end, cloud computing technology, distributed computing technology, mobile edge computing (MEC) technology or client-server computing technology, for example, may be used. The electronic device 101 may use, for example, distributed computing or mobile edge computing to provide ultra-low latency services. In another embodiment, the external electronic device 104 may include an Internet of Things (IoT) device. The server 108 may be an intelligent server using machine learning and / or neural networks. According to an embodiment, the external electronic device 104 or the server 108 may be included in the second network 199. The electronic device 101 may be applied to intelligent services (e.g., smart homes, smart cities, smart cars or health care) based on 5G communication technology or IoT-related technologies.
[0043] The electronic device according to various embodiments may be one of various types of electronic devices. The electronic device may include, for example, a portable communication device (e.g., a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a household appliance. According to an embodiment of the present disclosure, the electronic device is not limited to those electronic devices described above.
[0044] It should be understood that the various embodiments of the present disclosure and the terms used therein are not intended to limit the technical features set forth herein to specific embodiments, but include various changes, equivalent forms or alternative forms for corresponding embodiments. For the description of the accompanying drawings, similar reference numerals may be used to refer to similar or related elements. It will be understood that the nouns in the singular form corresponding to the term may include one or more things unless the relevant context clearly indicates otherwise. As used herein, each of the phrases such as "A or B", "at least one of A and B", "at least one of A or B", "A, B or C", "at least one of A, B and C" and "at least one of A, B or C" may include any one or all possible combinations of the items listed together with the corresponding one of the multiple phrases. As used herein, terms such as "1st" and "2nd" or "first" and "second" may be used to simply distinguish the corresponding component from another component, and do not limit the component in other aspects (e.g., importance or order). It will be understood that if an element (e.g., a first element) is referred to as being “combined with another element (e.g., the second element)”, “combined to another element (e.g., the second element)”, “connected with another element (e.g., the second element)”, or “connected to another element (e.g., the second element)” when the terms “operably” or “communicatively” are used or when the terms “operably” or “communicatively” are not used, it means that the element may be directly (e.g., wired) connected to the other element, wirelessly connected to the other element, or connected to the other element via a third element.
[0045] As used in connection with various embodiments of the present disclosure, the term "module" may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with other terms (e.g., "logic," "logic block," "portion," or "circuit"). A module may be a single integrated component adapted to perform one or more functions or a minimum unit or portion of the single integrated component. For example, according to an embodiment, a module may be implemented in the form of an application specific integrated circuit (ASIC).
[0046] The various embodiments described herein may be implemented as software (e.g., program 140) including one or more instructions stored in a storage medium (e.g., internal memory 136 or external memory 138) that can be read by a machine (e.g., electronic device 101). For example, under the control of a processor, a processor (e.g., processor 120) of the machine (e.g., electronic device 101) may call at least one of the one or more instructions stored in the storage medium and execute the at least one instruction with or without the use of one or more other components. This enables the machine to operate to perform at least one function according to the at least one instruction called. The one or more instructions may include code generated by a compiler or code that can be run by an interpreter. A machine-readable storage medium may be provided in the form of a non-transitory storage medium. Among them, the term "non-transitory" only means that the storage medium is a tangible device and does not include a signal (e.g., an electromagnetic wave), but the term does not distinguish between data being semi-permanently stored in a storage medium and data being temporarily stored in a storage medium.
[0047] According to an embodiment, the method according to various embodiments of the present disclosure may be included and provided in a computer program product. The computer program product may be traded between a seller and a buyer as a product. The computer program product may be released in the form of a machine-readable storage medium (e.g., a compact disk read-only memory (CD-ROM)), or may be downloaded via an application store (e.g., Play Store TM ) The computer program product may be published (e.g., downloaded or uploaded) online, or the computer program product may be distributed (e.g., downloaded or uploaded) directly between two user devices (e.g., smart phones). If published online, at least part of the computer program product may be temporarily generated, or at least part of the computer program product may be at least temporarily stored in a machine-readable storage medium (such as a memory of a manufacturer's server, an application store's server, or a forwarding server).
[0048] According to various embodiments, each component (e.g., module or program) in the above-mentioned components may include a single entity or multiple entities, and some entities in the multiple entities may be separately arranged in different components. According to various embodiments, one or more components in the above-mentioned components may be omitted, or one or more other components may be added. Alternatively or additionally, multiple components (e.g., module or program) may be integrated into a single component. In this case, according to various embodiments, the integrated component may still perform the one or more functions of each component in the multiple components in the same or similar manner as the corresponding one component in the multiple components before integration. According to various embodiments, the operations performed by a module, program or another component may be performed sequentially, in parallel, repeatedly or in a heuristic manner, or one or more operations in the operations may be run or omitted in different orders, or one or more other operations may be added.
[0049] Figure 2 2 is a block diagram 200 of the power management module 188 and the battery 189 according to various embodiments. Figure 2 , the power management module 188 may include a charging circuit 210, a power conditioner 220, or a power meter 230. The charging circuit 210 may charge the battery 189 by using the power supplied from the external power source to the electronic device 101. According to an embodiment, the charging circuit 210 may select a charging method (e.g., normal charging or fast charging) based on at least some of the type of the external power source (e.g., a power adapter, USB, or wireless charging), the size of the available power supplied by the external power source (e.g., about 20 watts or more), or the properties of the battery 189, and may charge the battery 189 using the selected charging method. The external power source may be connected to the electronic device 101, for example, via a wired connection through the connection terminal 178, or via a wireless connection through the antenna module 197.
[0050] The power regulator 220 can, for example, generate a plurality of power with different voltage levels or different current levels by regulating the voltage level or current level of the power supplied from the external power source or the battery 189. The power regulator 220 can regulate the power of the external power source or the battery 189 so that the voltage level or current level is suitable for each of some of the constituent elements included in the electronic device 101. According to an embodiment, the power regulator 220 can be implemented in the form of a low dropout (LDO) regulator or a switching regulator. The power meter 230 can measure the usage status information of the battery 189 (for example, the capacity of the battery 189, the number of charge and discharge cycles, the voltage or the temperature).
[0051] The power management module 188 may determine, at least in part based on the measured usage status information, charging status information (e.g., life, overvoltage, undervoltage, overcurrent, overcharge, overdischarge, overheat, short circuit, or expansion) related to charging the battery 189 using, for example, the charging circuit 210, the power conditioner 220, or the power meter 230. The power management module 188 may determine, at least in part based on the determined charging status information, whether the battery 189 is normal or abnormal. If the state of the battery 189 is determined to be abnormal, the power management module 188 may adjust the charging of the battery 189 (e.g., by reducing the charging current or voltage, or stopping charging). According to an embodiment, at least some functions of the power management module 188 may be performed by an external control device (e.g., the processor 120).
[0052] According to an embodiment, the battery 189 may include a battery protection circuit (protection circuit module (PCM)) 240. The battery protection circuit 240 may perform one or more of various functions (e.g., a pre-cutoff function) for preventing performance degradation or damage of the battery 189. The battery protection circuit 240 may be additionally or alternatively configured as at least a portion of a battery management system (BMS), which may perform various functions including balancing battery cells, measuring the capacity of the battery, measuring the number of charge and discharge cycles, measuring temperature, or measuring voltage.
[0053] According to an embodiment, at least a portion of the usage status information or charging status information about the battery 189 may be measured using a corresponding sensor (e.g., a temperature sensor) of the sensor module 276, the power meter 230, or the power management module 188. According to an embodiment, the corresponding sensor (e.g., a temperature sensor) of the sensor module 176 may be included as part of the battery protection circuit 140, or may be provided near the battery 189 as a separate device.
[0054] Figure 3 is a schematic configuration diagram of an electronic device according to various embodiments.
[0055] Specifically, Figure 3 The present invention is briefly shown Figure 1 and Figure 2 The configuration required for the electronic device in the embodiment of the present invention is shown, although other configurations may be included in addition to the configuration shown, and some configurations may be omitted. Figure 3 , electronic devices (such as Figure 1 The electronic device 101 in the embodiment may include a system 330, the system 330 includes a first port 310 (eg, Figure 1 The connection terminal 178 in the second port 312, the interface power management IC (IF PMIC) 320 (eg Figure 1power management module 188 in the example), battery 350 (e.g. Figure 1 The battery 189) and the processor 340 in the Figure 3 In addition to the processor 340, the system 330 may also include a communication processor (CP), a display (e.g. Figure 1 display module 160 in the display module 160), antenna (e.g. Figure 1 Antenna module 197 in), communication module (e.g. Figure 1 Any configuration that is supplied with power as an internal configuration of the electronic device 101 may be included in the system 330. Figure 3 In the embodiment of the present invention, the internal configuration of the electronic device 101 to which power is supplied may be collectively referred to as a system 330 .
[0056] According to various embodiments, the first port 310 or the second port 312 may be an interface for connecting an external electronic device to the electronic device 300. The first port 310 and / or the second port 312 are physical interfaces, which may be ports supporting a specific specification (e.g., a universal serial bus (USB)). The first port 310 and / or the second port 312 may be an interface for providing various data and / or power (or voltage, current) between an external electronic device (e.g., a charger) capable of supplying power and the electronic device 300. For example, the first port 310 and / or the second port 312 may be a universal serial bus (USB) port or an adapter port. The number of connection terminals may not be limited to two.
[0057] According to various embodiments, the PMIC 320 may be supplied with power from an external electronic device (e.g., an external battery, an adapter) that is connected through at least one of the first port 310 and / or the second port 312 and is capable of supplying power, and the PMIC 320 may provide the supplied power to the system 330. Alternatively, the PMIC 320 may provide the system 330 with power provided by the battery 350.
[0058] According to various embodiments, the PMIC 320 may use the sensed information to identify whether the battery 350 is attached. When the battery 350 is attached or detached, the PMIC 320 may generate an event (e.g., direct power mode) and send the event to the processor 340. The PMIC 320 may store information related thereto in a specific variable (e.g., sysfs). Sysfs may refer to a memory-based file system including information about kernel data structures. The processor 340 may determine whether the battery 350 is to be attached or detached based on the value of a specific variable as needed.
[0059] According to various embodiments, the PMIC 320 may transmit information on whether the battery 350 is attached to the processor 340 so that when the battery 350 is attached in a state where an external source is connected, the performance of the electronic device 101 is not limited.
[0060] According to various embodiments, when an external power source is connected to at least one of the first port 310 or the second port 312, the PMIC 320 may sense the voltage of the external power source to identify whether the external source can supply power to the system 330. When the sensed voltage of the external source is lower than a preset voltage, the PMIC 320 may supply power to the system 330 using the battery 350.
[0061] Figure 4 A block diagram illustrating a configuration of an electronic device according to various embodiments.
[0062] According to various embodiments, the electronic device 400 may include a first port 410 , a first switch 410 - 1 , a second port 412 , a second switch 412 - 1 , a third port 414 , a third switch 414 - 1 , a PD controller 420 , a processor 430 , a charging circuit 440 , and a battery 450 .
[0063] According to an embodiment, the electronic device 400 including at least one USB-C port can supply power to the system using at least one switch under the control of the processor 430. The electronic device 400 can prevent reverse supply of power to another port to which no power source is connected. Even if the voltage of one power source is relatively higher than the voltage of another power source when multiple power sources are connected simultaneously, the electronic device 400 can control so that power is supplied without current flowing in the reverse direction.
[0064] According to an embodiment, the electronic device 400 may use at least one switch to perform a function of protecting a circuit from reverse current (reverse current protection function). The processor 430 may obtain information indicating at least one voltage and current that may be output by a power supply connected using the PD controller 420. The processor 430 may determine whether the at least one switch is working based on the information obtained. The operation of at least one switch may refer to generating an electrical connection between the power supply and the electronic device 400 so that the connected power supply supplies power to the electronic device 400. The non-operation of at least one switch may refer to cutting off the electrical connection between the power supply and the electronic device 400 so that the connected power supply does not supply power to the electronic device 400. For example, the processor 430 may control at least one switch to not work when using one power supply than unifying and using multiple power supplies together allows greater power usage. The processor 430 may control at least one switch to not work, thereby cutting off the electrical connection between at least one power supply and the electronic device 400. When it is difficult to use all multiple power supplies to supply power due to system limitations (e.g., temperature increase), the processor 430 may control at least one switch to not work.
[0065] According to an embodiment, the processor 430 may operate at least one switch in a case where the use of one power source allows relatively large power usage compared to unifying the power from a plurality of power sources for combined use. The processor 430 may operate at least one switch to generate an electrical connection between the at least one power source and the electronic device 400. The processor 430 may operate at least one switch to control so that power is supplied to the electronic device 400 using a plurality of power sources.
[0066] The electronic device 400 may receive information about the power source, including the size, voltage, and current of the power supplied from the external electronic device connected to each port. Alternatively, the electronic device 400 may request information about the power source from the external electronic device, including the size, voltage, and current of the power supplied from the external electronic device connected to each port. The electronic device 400 may limit the maximum size of the current that can flow in the charging circuit 440 based on the information about the power source.
[0067] According to an embodiment, when the voltage of the power source connected to each port is different, the electronic device 400 can calculate the power of each power source using the processor 430. For example, the power source connected to the first port 410 can have 45W (15V / 3A). The power source connected to the second port 412 can have 65W (20V / 3.25A). The electronic device 400 can change the power source connected to the second port 412 to 45W (15V / 3A) so that the power source connected to the second port 412 is equal to the current and voltage supported by the first port 410. The electronic device 400 can change the power source connected to the second port 412 to 45W (15V / 3A), and then use all connected power sources (e.g., the first port 410 and the second port 412) to perform charging. When all connected power sources (e.g., the first port 410 and the second port 412) are used, the sum of the total power to be charged can be 90W (15V / 6A). The electronic device 400 may change the power of the power source connected to the second port 412 to 45 W (15 V / 3 A) based on recognizing that the sum of the total power to be charged is greater than the power of the largest power source among the connected power sources (e.g., the first port 410 and the second port 412), which is 65 W. The electronic device 400 may change the power of the power source connected to the second port 412 to 45 W (15 V / 3 A) and perform charging using all connected power sources (power sources of the first port 410 and the second port 412), thereby charging the battery 450 at 90 W (15 V / 6 A).
[0068] According to an embodiment, the processor 430 may compare the size of the first power supplied from the first power supply with the size of the second power supplied from the second power supply. In the following, the description is made under the assumption that the size of the first power from the first power supply is relatively low compared to the size of the second power from the second power supply. The processor 430 may adjust multiple power supplies (e.g., the first power supply or the second power supply) to have the same power size as the size of the first power (current and voltage). When the sum of the adjusted multiple power values is greater than the power of the second power supply having the maximum value, the processor 430 may change the power of the multiple power supplies to supply the changed power to the charging circuit 440. The processor 430 may control the switch to charge using both the first power supply and the second power supply. The first power supply and the second power supply may supply power to the charging circuit 440.
[0069] The processor 430 may adjust multiple power sources (e.g., the first power source or the second power source) to have the same power size. When the sum of the adjusted multiple power values is less than the power of the second power source having the maximum value, the processor 430 may supply power to the charging circuit 440 using only the second power source without changing the power of the multiple power sources. The processor 430 may control the switch to charge using only the second power source. The second power source may supply power to the charging circuit 440.
[0070] For example, the power source connected to the first port 410 may have 45W (15V / 3A), and the power source connected to the second port 412 may have 100W (20V / 5A). When the power source connected to the second port 412 becomes 45W (15V / 3A) and is combined so that the current and voltage of the connected power sources are equal, the electronic device 400 may not change the power of the power source connected to the second port 412 to 45W based on recognizing that the sum of the total power becomes 90W (15V / 6A) and is less than the power of the maximum power source 100W (20V / 5A). The electronic device 400 may charge the battery 450 using only the power source connected to the second port 412. The electronic device 400 may not charge the battery 450 using the power source connected to the first port 410. The processor 430 may control the switch to release the electrical connection between the power source connected to the first port 410 and the electronic device 400, or to maintain the electrical connection but not supply power.
[0071] According to an embodiment, the electronic device 400 may use the PD controller 420 to control the charging circuit 440 to use the maximum power of the USB-C power source. The PD controller 420 may use a communication module (e.g., Figure 1 The communication module 190 in the system sends information indicating the power required in the system to the USB-C power source and supplies power to the charging circuit 440.
[0072] According to an embodiment, the electronic device 400 may control the current flowing to the charging circuit 440 and the battery 450 using at least one of a plurality of switches (e.g., a first switch 410-1, a second switch 412-1, and a third switch 414-1). For example, a power source may be connected to the first port 410. In this case, the electronic device 400 may cause the switch (e.g., the first switch 410-1) directly connected to the port (e.g., the first port 410) to which the power source is connected to operate to control so that the power source and the battery 450 remain electrically connected. The electronic device 400 may stop the operation of the switch (e.g., the second switch 412-1) directly connected to the port (e.g., the second port 412) to which the power source is not connected. The electronic device 400 may use a plurality of switches to prevent the current from flowing in the reverse direction within the electronic device 400. The forward direction may refer to the direction in which the current flows from the power source connected to the electronic device 400 to the battery 450 and the charging circuit 440. The reverse direction may refer to the direction in which the current flows from the battery 450 and the charging circuit 440 to the port.
[0073] According to an embodiment, the electronic device 400 may supply power using all of the multiple power sources connected to the multiple ports (eg, the first port 410, the second port 412, and the third port 414). The number of the multiple ports may not be limited. Figure 4 Limitations of the embodiments described in .
[0074] According to an embodiment, the electronic device 400 may control the charging circuit 440 based on the connection of a power source having the same power so that the magnitude of the current input to the charging circuit 440 is equal to or less than (or less than) a specified value. The electronic device 400 may acquire information indicating the power of the connected power source using the processor 430. The electronic device 400 may control the charging circuit 440 based on the information indicating the power of the connected power source so that the magnitude of the current input to the charging circuit 440 is less than a specified value.
[0075] For example, the electronic device 400 may control so that when a 65W (20V / 3.25A) power source is connected to the first port 410 and a 65W (20V / 3.25A) power source is connected to the second port 412, less than 6.5A of power may be supplied to the charging circuit 440, which is the sum of two 3.25A. The electronic device 400 may use the processor 430 to obtain information indicating that a power source has been additionally connected, when a 65W (20V / 3.25A) power source is additionally connected to the third port 414. The electronic device 400 may control based on the information indicating that a power source has been additionally connected so that less than 9.75A of power may be supplied to the charging circuit 440, which is the sum of three 3.25A. The electronic device 400 may use the processor 430 to obtain information indicating that part of the power source has been removed. The electronic device 400 may control the power supplied to the charging circuit 440 based on the information indicating that part of the power source has been removed.
[0076] According to an embodiment, the electronic device 400 may further include a power delivery integrated circuit (PDIC). The electronic device 400 may use the PDIC to establish a communication connection with at least one of the first power source or the second power source connected to the electronic device, and may receive information including the type or charging capacity of the first power source or the second power source.
[0077] According to an embodiment, the electronic device 400 may display a display (eg, Figure 1 The display module 160 in FIG. 1 shows the charging information of the battery. Figure 1 The charging information of the battery 189) may include at least one of the battery's charging status, temperature, charging current, or charging voltage.
[0078] According to an embodiment, the electronic device 400 may cut off the power supply to the charging circuit 440 in response to recognizing that the charging state of the battery 189 is in a fully charged state.
[0079] According to an embodiment, the electronic device 400 may distribute power to the processor 430 and the charging circuit 440 using a power management integrated circuit (PMIC).
[0080] According to various embodiments, in the case where multiple power sources with different power are connected, the electronic device 400 can use the processor 430 to obtain information indicating the power of the connected power sources. For example, situation 1 in Table 1 may refer to a case where the electronic device 400 has a power source of 45W (15V / 3A) connected to the first port 410 and a power source of 65W (20V / 3.25A) connected to the second port 412. The electronic device 400 can use the processor 430 to obtain information indicating the power of the connected power sources. The electronic device 400 can recognize that when the power of the second port 412 is changed to 45W (15V / 3A), so that the magnitude of the current and voltage supported by the two power sources is equal, and the power values are combined together, the result is 90W (15V / 6A), and the electronic device has a relatively large value compared to the maximum value of 65W (20V / 3.25A) when one power source is used. By changing the power of the two power sources to 45 W (15 V / 3 A) and combining the power values, the electronic device 400 can supply 90 W (15 V / 6 A) of power to the charging circuit 440 .
[0081] In case 2 in Table 1, the electronic device 400 may use the processor 430 to obtain information indicating the power of the connected power source. The electronic device 400 may recognize that when the power of the multiple power sources is changed to 45W (15V / 3A) to make the current and voltage in the multiple power sources equal, and all the multiple power sources are used to supply power to the charging circuit 440, the size of the supplied power becomes 90W (15V / 6A). The electronic device 400 may recognize that when one power source is used to supply power, the size of the supplied power is as high as 100W (20V / 5A). The electronic device 400 may determine that when only one power source is used to supply power, the size of the supplied power is relatively large compared to converting the sizes of the multiple power sources to be equal and using the multiple power sources to supply power. In case 2, the electronic device 400 may maintain the power of the power source indicating 100W (20V / 5A), and only use the power source indicating 100W to supply 100W (20V / 5A) of power to the charging circuit 440.
[0082] In case 3 in Table 1, the electronic device 400 may use the processor 430 to obtain information indicating the power of the connected power source. In response to recognizing that the power (current and voltage) of the two power sources are equal, the electronic device 400 may use all of the multiple power sources to supply power to the charging circuit 440. When the power of the two power sources is equal but the current and voltage are different, the electronic device 400 may convert the size of the two power sources to have the same current and voltage. The electronic device 400 may compare the sum of the power of the converted power sources with the power value before conversion to determine whether to use all of the multiple power sources or one power source.
[0083] [Table 1]
[0084]
[0085]
[0086] According to an embodiment, the electronic device 400 may cut off the connection of at least one of the connected multiple power supplies based on the internal temperature rising above a predetermined level. For example, in case 1, the electronic device 400 may cut off the connection with the power supply indicating 45 W based on the temperature of the processor 430 rising above a predetermined level. The electronic device 400 may supply power to the charging circuit 440 using only the power supply indicating 65 W.
[0087] For example, in case 1, the electronic device 400 may cut off the connection with the power supply indicating 65 W based on the temperature of the processor 430 rising above a predetermined level. The electronic device 400 may supply power to the charging circuit 440 using only the power supply indicating 45 W.
[0088] According to an embodiment, when the sum of the power of the input power sources exceeds the maximum allowable capacity of the system, the electronic device 400 may limit the current input to the charging circuit 440 using the processor 430. The electronic device 400 may control the total amount of power supplied by limiting the current input to the charging circuit 440. For example, in a case where the maximum allowable power within the system is 100W and there are two input power sources (65W+65W=130W), the electronic device 400 may limit the current input to the charging circuit 440 to control so that the total amount of power supplied from the two power sources does not exceed 100W.
[0089] According to an embodiment, the PD controller 420 may maintain a voltage supplied to the charging circuit 440 constant, and control a current supplied to the charging circuit 440 such that the current does not exceed a predetermined level.
[0090] According to the comparative embodiment, when a 45W (15V / 3A) power source is connected to the first port 410 and a 65W (20V / 3.25A) power source is connected to the second port 412, the electronic device has a limitation of using only one power source due to the voltage difference between the power sources connected to the two ports. Due to the connection structure of the multiple power sources connected to the ports, even if the total power of the multiple power sources connected is 110W and the battery can be supplied with 110W of power, the electronic device according to the comparative embodiment may have difficulty in fully utilizing the power.
[0091] According to a comparative embodiment, in the case where a 45W (15V / 3A) power source is connected to the first port 410 and a 65W (20V / 3.25A) power source is connected to the second port 412, the electronic device may need to include a plurality of charging circuits to use a plurality of power sources having different voltages. According to a comparative embodiment, the electronic device may include a plurality of charging circuits, which may increase the installation space and lead to increased costs. According to a comparative embodiment, the electronic device may consume relatively more system resources to control the plurality of charging circuits as compared to one charging circuit due to the inclusion of the plurality of charging circuits.
[0092] The electronic device 400 according to various embodiments of this document can supply relatively large power using multiple power sources with different voltages to charge the battery 450 while using only one charging circuit 440. The electronic device 400 can prevent current from flowing in the reverse direction by using multiple switches while using multiple power sources.
[0093] Figure 5 A flow chart of a method of controlling power supply of an electronic device according to various embodiments is shown.
[0094] pass Figure 5 The described operations may be based on data that may be stored in a computer recording medium or memory (e.g., Figure 1 The method 500 shown in the figure can be implemented by the above-mentioned Figures 1 to 4 The electronic device described (e.g., Figure 4 The electronic device 400) is executed, and the technical features described above will be omitted below.
[0095] In operation 510, the electronic device 400 may process a signal on a processor (eg, Figure 3 The electronic device 400 may obtain information indicating the power, voltage, and current of the power source connected to each port under the control of the processor 340 in the electronic device 400. For example, the electronic device 400 may obtain information indicating the power, voltage, and current of the power source connected to the first port (e.g., Figure 4 The power supply of the first port 410 in is 45W (15V, 3A) and connected to the second port (e.g., Figure 4 The number of ports and power sources included in the electronic device 400 is not limited to the embodiment of operation 510.
[0096] At operation 520, the electronic device 400 may identify whether the power supplied from the plurality of power sources is equal based on acquiring information indicating the power of the power sources. At operation 525, the electronic device 400 may, based on the equality of the power supplied from the plurality of power sources, supply power to the charging circuit (e.g., Figure 4The charging circuit 440 in the electronic device 400 supplies power. When the power of the two power sources is equal but the current and voltage are different, the electronic device 400 can convert the size of the two power sources to have the same current and voltage. The electronic device 400 can compare the sum of the power of the converted power sources with the power value before conversion to determine whether to use all of the multiple power sources or one power source.
[0097] At operation 530, the electronic device 400 may determine whether to use all of the multiple power supplies to supply power or only one power supply with the maximum power to supply power based on the unequal power supplied from the multiple power supplies. In the case where two power supplies are connected to the electronic device 400 through each port, the electronic device 400 may use the processor 430 to obtain information indicating the power of the power supply connected to each port.
[0098] The electronic device 400 may compare the size of the first power supplied from the first power source with the size of the second power supplied from the second power source. The electronic device 400 may adjust the multiple power sources (e.g., the first power source or the second power source) to have the same power size (current and voltage) as the first power based on determining that the size of the first power is relatively smaller than the size of the second power. When the sum of the adjusted multiple power values is greater than the power of the second power source having the maximum value, the electronic device 400 may use all the multiple power sources to supply power to the charging circuit 440. In operation 535, the electronic device 400 may change the power of the power source connected to each port to be the same as the value (current and voltage) indicating the power of the first power source, and supply power to the charging circuit 440 using the multiple power sources. The electronic device 400 may cause the first switch (e.g., Figure 4 The first switch 410-1 in the embodiment and the second switch (eg Figure 4 The first switch 410-1 can be located between the charging circuit 440 and the first port (eg, Figure 4 The second switch 412-1 may be located between the charging circuit 440 and the second port (eg, Figure 4 The second port 412) is used to control the electrical connection.
[0099] For example, the power source connected to the first port 410 may supply 45W (15V / 3A) of power, and the power source connected to the second port 412 may supply 65W (20V / 3.25A) of power. The electronic device 400 may change the power to 45W (15V / 3A) so that the current and voltage of the connected power sources are equal, and use multiple power sources to supply power to the charging circuit 440. When multiple power sources are used to supply power to the charging circuit 440, the total power supplied may have a size of 90W (15V / 6A). The electronic device 400 may determine that a relatively larger amount of power may be supplied when multiple power sources are used to supply power to the charging circuit 440 than when one power source is used to supply power to the charging circuit 440. The electronic device 400 may change the size of the power supplied from the connected power source to 45W (15V / 3A) so as to use multiple power sources. The electronic device 400 may use a plurality of power sources to supply 90 W (15 V / 6 A) of power to the charging circuit 440 , which is relatively greater than the existing 65 W (20 V / 3.25 A).
[0100] The electronic device 400 may adjust the multiple power sources (e.g., the first power source or the second power source) to have the same power size (current and voltage) as the first power based on determining that the size of the first power is relatively smaller than the size of the second power. When the sum of the adjusted multiple power values is smaller than the size of the power of the second power source having the maximum value, the electronic device 400 may supply power to the charging circuit 440 using only the second power source without changing the power of the multiple power sources. In operation 540, the electronic device 400 may stop the operation of the first switch 410-1 and operate the second switch 412-1 to supply power to the charging circuit 440 using only the second power source.
[0101] For example, the power supply connected to the first port 410 may supply 45W (15V / 3A) of power, and the power supply connected to the second port 412 may supply 100W (20V / 5A) of power. The electronic device 400 may determine that when the supplied power size is changed to 45W (15V / 3A) to equalize the current and voltage of the connected power supplies, and multiple power supplies are used to supply power, 90W (15V / 6A) of power can be supplied. The electronic device 400 may not change the power size supplied from the connected power supply to 45W (15V / 3A) based on the fact that the power supply connected to the second port 412 is capable of supplying a relatively large power of 100W (20V / 5A). The electronic device 400 may supply power to the charging circuit 440 using only the power supply connected to the second port 412.
[0102] According to an embodiment, when an external power source is connected to multiple ports, the electronic device 400 may provide information indicating which port is being used for charging to the user. For example, the electronic device 400 may display a display (e.g., Figure 1 The electronic device 400 may display information indicating that power is being supplied through the first port 410 on the display module 160 in the display module 160. Alternatively, the electronic device 400 may display at least one of a user interface (UI), a light, an icon, text, or an image within a predetermined distance from the first port 410 based on recognizing that power is supplied from the first port 410 to the charging circuit 440.
[0103] According to an embodiment, when an external power source is connected to multiple ports, the electronic device 400 may provide guidance to the user indicating which port is being used for charging. For example, the electronic device 400 may display a display (e.g., Figure 1 The electronic device 400 may display on the display module 160 a guide indicating that the cable connected to the second port 414 may be removed. The electronic device 400 may display on the display module 160 whether it is currently being charged, a current charging mode (e.g., normal mode, fast mode, super fast mode), a time required for full charging, or at least one of a current battery charge percentage.
[0104] According to an embodiment, the processor may compare the size of the sum of multiple power values when the size of the power supplied from the second power source changes to be equal to the size of the first power with the size of the second power, and in response to identifying that the size of the second power is relatively large compared to the sum of the multiple power values, control the first switch and the second switch to supply power to the charging circuit using only the second power source.
[0105] According to an embodiment, the processor may control the first switch and the second switch to supply power to the charging circuit using both the first power source and the second power source based on the magnitude of the first power being equal to the magnitude of the second power.
[0106] According to an embodiment, the first switch and the second switch corresponding to the power source determined to supply power to the charging circuit may be controlled to be in a connected state, and the remaining switches not corresponding to the determined power source may be controlled to be in a non-connected state.
[0107] According to an embodiment, the electronic device may further include a power management integrated circuit (PMIC), and the PMIC may distribute power to the processor and the charging circuit.
[0108] According to an embodiment, the electronic device may further include a power delivery integrated circuit (PDIC), which may establish a communication connection with at least one of a first power source or a second power source connected to the electronic device and receive information including a type or charging capacity of the first power source or the second power source.
[0109] According to various embodiments, a method for controlling the power supply of an electronic device may include: obtaining information indicating the size of a first power supplied from a first power source and information indicating the size of a second power supplied from a second power source; comparing the size of the first power supplied from the first power source and the size of the second power supplied from the second power source; based on determining that the size of the first power is relatively smaller than the size of the second power, comparing the size of the second power with the size of a sum of multiple power values when the size of the power supplied from the second power source changes to be equal to the size of the first power; in response to identifying that the size of the second power is relatively smaller than the size of the sum of the multiple power values, controlling the size of the power supplied from the second power source to be equal to the size of the first power, and controlling the first switch and the second switch to supply power to a charging circuit using both the first power source and the second power source.
[0110] According to an embodiment, the method may further include: based on the number of external power supply devices connected to the electronic device, comparing the size of the sum of multiple power values when the size of the power supplied from the second power source changes to be equal to the size of the first power with the size of the second power; and in response to identifying that the size of the second power is relatively large compared to the size of the sum of the multiple power values, controlling the first switch and the second switch to supply power to the charging circuit using only the second power source.
[0111] According to an embodiment, the method may include, based on the magnitude of the first power being equal to the magnitude of the second power, controlling the first switch and the second switch to supply power to the charging circuit using both the first power source and the second power source.
[0112] The embodiments disclosed in this specification and illustrated in the accompanying drawings are provided as specific examples to easily explain the technical content according to the embodiments of this article and help understand the embodiments of this article, but are not intended to limit the scope of the embodiments of this article. Therefore, in addition to the disclosed embodiments, the scope of the various embodiments of this article should be interpreted as including all changes or modifications derived from the technical spirit of the various embodiments of this article.
Claims
1. An electronic device, comprising: a first port connected to a first power source capable of supplying power to the electronic device; a second port connected to a second power source capable of supplying power to the electronic device; a charging circuit electrically connected to the first port and the second port and configured to receive power supplied through the first port and / or the second port; a first switch configured to control an electrical connection between the charging circuit and the first port; a second switch configured to control an electrical connection between the charging circuit and the second port; as well as a processor electrically connected to the charging circuit, The processor: acquires information indicating the size of the first power supplied from the first power source and information indicating the size of the second power supplied from the second power source; compares the size of the first power supplied from the first power source and the size of the second power supplied from the second power source; and compares the size of the second power with the size of the sum of multiple power values when the size of the power supplied from the second power source is changed to be equal to the size of the first power based on determining that the size of the first power is relatively smaller than the size of the second power; In response to identifying that the size of the second power is relatively small compared to the size of the sum of the multiple power values, controlling the size of the power supplied from the second power source to be equal to the size of the first power; and controlling the first switch and the second switch so that power is supplied to the charging circuit using both the first power source and the second power source.
2. The electronic device according to claim 1, wherein: The processor compares the size of the sum of the multiple power values when the size of the power supplied from the second power source changes to be equal to the size of the first power with the size of the second power, and in response to identifying that the size of the second power is relatively large compared to the size of the sum of the multiple power values, controls the first switch and the second switch to supply power to the charging circuit using only the second power source.
3. The electronic device according to claim 1, wherein: The processor controls the first switch and the second switch to supply power to the charging circuit using both the first power source and the second power source based on the magnitude of the first power being equal to the magnitude of the second power.
4. The electronic device according to claim 1, wherein: The processor controls a switch among the first switch and the second switch corresponding to a power source determined to supply power to the charging circuit to be in a connection state, and controls remaining switches not corresponding to the determined power source to be in a non-connection state.
5. The electronic device according to claim 1, further comprising: A power management integrated circuit (PMIC) distributes power to the processor and the charging circuit.
6. The electronic device of claim 1, further comprising a power delivery integrated circuit (PDIC), in, The PDIC establishes a communication connection with at least one of the first power source or the second power source connected to the electronic device, and receives information including a type or a charging capacity of the first power source or the second power source.
7. An electronic device, comprising: a first port connected to a first power source capable of supplying power to the electronic device; a second port connected to a second power source capable of supplying power to the electronic device; a charging circuit electrically connected to the first port and the second port and configured to receive power supplied through the first port and / or the second port; a first switch, the first switch being located between the charging circuit and the first port and configured to control an electrical connection; a second switch, the second switch being located between the charging circuit and the second port and configured to control the electrical connection; a processor electrically connected to the charging circuit; as well as a memory operatively connected to the processor, wherein the memory stores instructions that, when executed, allow the processor to: obtain information indicating the size of first power supplied from the first power source and information indicating the size of second power supplied from the second power source; compare the size of the first power supplied from the first power source with the size of the second power supplied from the second power source; and based on determining that the size of the first power is relatively smaller than the size of the second power, compare the size of the second power with the size of a sum of a plurality of power values when the size of the power supplied from the second power source changes to be equal to the size of the first power; In response to identifying that the size of the second power is relatively small compared to the size of the sum of the multiple power values, controlling the size of the power supplied from the second power source to be equal to the size of the first power; and controlling the first switch and the second switch so that power is supplied to the charging circuit using both the first power source and the second power source.
8. The electronic device according to claim 7, wherein: The instructions allow the processor to compare the size of the sum of the multiple power values when the size of the power supplied from the second power source changes to be equal to the size of the first power with the size of the second power, and in response to identifying that the size of the second power is relatively large compared to the size of the sum of the multiple power values, control the first switch and the second switch to supply power to the charging circuit using only the second power source.
9. The electronic device according to claim 7, wherein: The instructions allow the processor to control the first switch and the second switch to supply power to the charging circuit using both the first power source and the second power source based on the magnitude of the first power being equal to the magnitude of the second power.
10. The electronic device according to claim 7, wherein: The instructions allow the processor to control a switch among the first and second switches corresponding to a power source determined to supply power to the charging circuit to be in a connected state, and control remaining switches not corresponding to the determined power source to be in a non-connected state.
11. The electronic device according to claim 7, further comprising: A power management integrated circuit (PMIC) distributes power to the processor and the charging circuit.
12. The electronic device of claim 7, further comprising a power delivery integrated circuit (PDIC), in, The PDIC establishes a communication connection with at least one of the first power source or the second power source connected to the electronic device, and receives information including a type or a charging capacity of the first power source or the second power source.
13. A method for controlling power supply of an electronic device, the method comprising: acquiring information indicating a magnitude of first power supplied from a first power source and information indicating a magnitude of second power supplied from a second power source; comparing a magnitude of the first power supplied from the first power source and a magnitude of the second power supplied from the second power source; based on determining that the magnitude of the first power is relatively smaller than the magnitude of the second power, comparing the magnitude of the second power with a magnitude of a sum of a plurality of power values when the magnitude of power supplied from the second power source changes to be equal to the magnitude of the first power; In response to recognizing that the magnitude of the second power is relatively small compared to the magnitude of the sum of the plurality of power values, controlling the magnitude of the power supplied from the second power source to be equal to the magnitude of the first power; as well as controlling the first switch and the second switch so that power is supplied to the charging circuit using both the first power source and the second power source, The first switch controls the electrical connection between the charging circuit and the first port, and the second switch controls the electrical connection between the charging circuit and the second port.
14. The method according to claim 13, further comprising: comparing, based on the number of external power supply devices connected to the electronic device, a magnitude of a sum of the plurality of power values when the magnitude of the power supplied from the second power source is changed to be equal to the magnitude of the first power with a magnitude of the second power; as well as In response to identifying that the magnitude of the second power is relatively large compared to the magnitude of the sum of the plurality of power values, the first switch and the second switch are controlled to supply power to the charging circuit using only the second power source.
15. The method according to claim 13, further comprising: Based on the magnitude of the first power being equal to the magnitude of the second power, the first switch and the second switch are controlled to supply power to the charging circuit using both the first power source and the second power source.