POWER CONTROL METHOD, AND ELECTRONIC DEVICE FOR PERFORMING SAME

A power control method and an electronic device for performing the method are disclosed. A power control method according to various embodiments may comprise: receiving an input for turning off the power of an electronic device; identifying the voltage of a battery based on the input being received; determining, based on a set margin voltage and the voltage of the battery based on the input being received, a reference voltage for entering a ship mode preventing and/or reducing discharge of the battery caused by leakage current; turning off the power of the electronic device; monitoring the voltage of the battery after turning off the power of the electronic device; and setting the electronic device to the ship mode based on the monitored voltage of the battery and the reference voltage.

BACKGROUND

Field

The disclosure relates to a power control method and an electronic device for performing the same.

Description of Related Art

A ship mode may turn off all blocks (or a module) in an integrated circuit (IC) of an electronic device and may remove a leakage current of the electronic device by disconnecting a switch between a battery of the electronic device and an internal power system of the electronic device.

Since a leakage current does not occur in the ship mode, the electronic device may minimize and/or reduce the power consumed by an interface power management IC (IF PMIC), a charging module (or a charger), and/or a system. In the electronic device in the ship mode, wired or wireless charging may need to be recognized, a specific signal may need to be applied, or a power key of the electronic device may need to be pressed to cancel the ship mode.

When releasing an electronic device, a forced ship mode may be applied. The forced ship mode may refer to setting the electronic device to the ship mode using a ship mode command through an inter-integrated circuit (I2C) or other channels regardless of a voltage level of a battery.

A leakage current may be minimized/reduced from a time point when the electronic device enters the forced ship mode and a time taken for reaching battery overdischarge may significantly increase compared to a case in which the ship mode is not applied.

After an electronic device is manufactured, by setting the electronic device to enter a forced ship mode through a command using an inter-integrated circuit I2C or other channels before releasing the electronic device, a leakage current of the electronic device may be minimized/reduced and a time to battery overdischarge may increase, thereby a risk of battery swelling may decrease even if the electronic device is kept for a long period in an inbox state. However, when a user keeps an electronic device for a long time after turning off the power of the electronic device in use, a leakage current of the electronic device may not be minimized/reduced and there is a risk of battery overdischarge.

In the case of an electronic device in use by a user, various Android application packages (APKs) and programs may be installed in the electronic device depending on a user's use condition, and depending on a use condition of a power off sequence, for example, depending on a system operation or an APK operation when turning off the power, a time to completely turn off the power of the electronic device may increase. In the case of the electronic device in use, since a time of a power off sequence operation may vary depending on a use condition, the power off operation may not be normally terminated and a sudden power off event may occur when a forced ship mode for entering the ship mode after a predetermined time period has elapsed is applied. When entering the ship mode before the completion of the power off operation, malfunction of an integrated circuit (IC) or damage may be caused in the electronic device.

In the case of a structure in which a system and a battery are separated from each other and separately controlled, a fuel gauge IC may not be provided with power directly from the battery, and in the case of a structure in which the power is provided by a system end, the fuel gauge IC may be reset if the electronic device enters the ship mode whenever a user turns off the power of the electronic device. Since the fuel gauge, which has been reset when canceling the ship mode of the electronic device, estimates an initial state of charge (SOC) based on a terminal battery voltage, a problem that an SOC displayed through a user interface (UI) before and after turning off the power of the electronic device changes may occur.

SUMMARY

Embodiments of the disclosure provide a power control method of monitoring a voltage of a battery after a power-off operation and setting an electronic device to a ship mode when the voltage of the battery after turning off the power is less than or equal to a voltage to enter the ship mode and an electronic device for performing the same.

Embodiments of the disclosure provide a power control method of entering a ship mode depending on a voltage level of a battery after a user turns off the power of an electronic device and neglects the electronic device for a long period and an electronic method for performing the same.

Embodiments of the disclosure provide a power control method of storing power gauge data and loading stored power gauge data when canceling a ship mode and an electronic device for performing the same.

Embodiments of the disclosure provide a power control method of setting an electronic device to a ship mode when a set time period has elapsed after a power-off operation and an electronic device for performing the same.

A power control method according to various example embodiments may include: receiving an input to turn off power of an electronic device, identifying a voltage of a battery based on receiving the input, determining a reference voltage to enter a ship mode to prevent and/or reduce discharge of the battery due to a leakage current based on a set margin voltage and a voltage of the battery when receiving the input, turning off the power of the electronic device, monitoring the voltage of the battery after turning off the power of the electronic device, and setting the electronic device to the ship mode based on a monitored voltage of the battery and the reference voltage.

A power control method according to various example embodiments may include: receiving an input to set an electronic device to a ship mode to prevent and/or reduce discharge of a battery due to a leakage current, turning off power of the electronic device, storing power gauge data related to a state of the battery in a memory, and setting the electronic device to the ship mode.

An electronic device according to various example embodiments may include: a battery, at least one processor, comprising processing circuitry, and a power management module comprising power management circuitry configured to control power output by the battery, wherein at least one processor, individually and/or collectively, is configured to receive an input to turn off power of an electronic device, identify a voltage of a battery based on receiving the input, determine a reference voltage to enter a ship mode to prevent and/or reduce discharge of the battery due to a leakage current based on a set margin voltage and a voltage of the battery when receiving the input, turn off the power of the electronic device, wherein the power management module is further configured to: monitor the voltage of the battery after turning off the power of the electronic device, and set the electronic device to the ship mode based on a monitored voltage of the battery and the reference voltage.

A power control method according to various example embodiments may include: identifying a signal to turn off power of an electronic device, turning off the power of the electronic device, counting a set first time period from when the signal to turn off the power is identified, and setting the electronic device to a ship mode to prevent and/or reduce discharge of a battery due to a leakage current.

According to a power control method and an electronic device for performing the same in various example embodiments, an electronic device may enter a ship mode depending on a use condition of the electronic device of a user when turning off the power of the electronic device.

According to a power control method and an electronic device for performing the same in various example embodiments, the stability of a battery and an electronic may be improved by causing the electronic device to enter the ship mode depending on a use condition of the electronic device of a user and the ship mode may be canceled without resetting fuel gauge data by storing the fuel gauge data before entering the ship mode.

DETAILED DESCRIPTION

Hereinafter, various example embodiments will be described in greater detail with reference to the accompanying drawings. When describing the various example embodiments with reference to the accompanying drawings, like reference numerals may refer to like elements and a repeated description related thereto may not be provided.

The processor120may include various processing circuitry and/or multiple processors. For example, as used herein, including the claims, the term “processor” may include various processing circuitry, including at least one processor, wherein one or more of at least one processor, individually and/or collectively in a distributed manner, may be configured to perform various functions described herein. As used herein, when “a processor”, “at least one processor”, and “one or more processors” are described as being configured to perform numerous functions, these terms cover situations, for example and without limitation, in which one processor performs some of recited functions and another processor(s) performs other of recited functions, and also situations in which a single processor may perform all recited functions. Additionally, the at least one processor may include a combination of processors performing various of the recited/disclosed functions, e.g., in a distributed manner. At least one processor may execute program instructions to achieve or perform various functions. The processor120may execute, for example, software (e.g., a program140) to control at least one other component (e.g., a hardware or software component) of the electronic device101connected to the processor120, and may perform various data processing or computation. According to an embodiment, as at least a part of data processing or computation, the processor120may store a command or data received from another component (e.g., the sensor module176or the communication module190) in a volatile memory132, process the command or the data stored in the volatile memory132, and store resulting data in a non-volatile memory134. According to an embodiment, the processor120may include a main processor121(e.g., a central processing unit (CPU) or an application processor (AP)) or an auxiliary processor123(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 operable independently from, or in conjunction with the main processor121. For example, when the electronic device101includes the main processor121and the auxiliary processor123, the auxiliary processor123may be adapted to consume less power than the main processor121or to be specific to a specified function. The auxiliary processor123may be implemented separately from the main processor121or as a part of the main processor121.

The program140may be stored as software in the memory130and may include, for example, an operating system (OS)142, middleware144, or an application146.

The camera module180may capture a still image and moving images. According to an embodiment, the camera module180may include one or more lenses, image sensors, ISPs, or flashes.

The power management module188may manage power supplied to the electronic device101. According to an embodiment, the power management module188may be implemented as, for example, at least a part of a power management integrated circuit (PMIC).

FIG.2is a block diagram200illustrating an example configuration of the power management module (e.g., including power management circuitry)188and the battery189according to various embodiments. Referring toFIG.2, the power management module188may include a charging circuit210, a power adjuster (e.g., including various circuitry and/or executable program instructions)220, and/or a power gauge230. The charging circuit210may charge the battery189using power supplied from an external power source outside the electronic device101. According to an embodiment, the charging circuit210may select a charging scheme (e.g., normal charging or quick charging) based at least in part on a type of the external power source (e.g., a power outlet, a USB, or wireless charging), magnitude of power suppliable from the external power source (e.g., about 20 Watts or more), or an attribute of the battery189, and may charge the battery189using the selected charging scheme. The external power source may be connected with the electronic device101, for example, by wire via the connecting terminal178or wirelessly via the antenna module197.

For example, the power adjuster220may include various circuitry and/or executable program instructions and generate pieces of power having different voltage levels or different current levels by adjusting a voltage level or a current level of the power supplied from the external power source or the battery189. The power adjuster220may adjust the voltage level or the current level of the power supplied from the external power source or the battery189into a different voltage level or current level appropriate for each of some of the components included in the electronic device101. According to an embodiment, the power adjuster220may be implemented in the form of a low drop out (LDO) regulator or a switching regulator. The power gauge230may measure use state information about the battery189(e.g., the capacity, the number of times charging or discharging, voltage, or the temperature of the battery189).

The power management module188may determine, using, for example, the charging circuit210, the power adjuster220, or the power gauge230, charging state information (e.g., lifetime, over voltage, low voltage, over current, over charge, over discharge, overheat, short, or swelling) related to the charging of the battery189based at least in part on the measured use state information about the battery189. The power management module188may determine whether the state of the battery189is normal or abnormal based at least in part on the determined charging state information. If the state of the battery189is determined to be abnormal, the power management module188may adjust the charging of the battery189(e.g., reduce the charging current or voltage, or stop the charging). According to an embodiment, at least some of the functions of the power management module188may be performed by an external control device (e.g., the processor120).

According to an embodiment, the battery189may include a protection circuit module (PCM)240. The PCM240may perform one or more of various functions (e.g., a pre-cutoff function) to prevent and/or reduce performance deterioration of, or a damage to, the battery189. The PCM240, additionally or alternatively, may be configured as at least part of a battery management system (BMS) capable of performing various functions including cell balancing, measurement of battery capacity, count of the number of charging or discharging cycles, measurement of temperature, or measurement of voltage.

According to an embodiment, at least part of the charging state information or use state information regarding the battery189may be measured using a corresponding sensor (e.g., a temperature sensor) of the sensor module276, the power gauge230, or the power management module188. According to an embodiment, the corresponding sensor (e.g., a temperature sensor) of the sensor module176may be included as part of the PCM140, or may be disposed near the battery189as a separate device.

FIG.3is a diagram illustrating an example operation of an electronic device (e.g., the electronic device101ofFIG.1) according to various embodiments.

Referring toFIG.3, the electronic device101in various embodiments may include the processor (e.g., including processing circuitry)120, the power management module (e.g., including power management circuitry)188, the battery189, and the memory130.

According to various embodiments, the processor120may include an application processor (AP) (e.g., including processing circuitry)120-1and an AP power management integrated chip (PMIC) (e.g., including PMIC circuitry)120-2. For example, the AP PMIC120-2may supply power to components of the electronic device101, such as the AP120-1and/or an integrated circuit (IC) using power input by the battery189. For example, the AP PMIC120-2may convert power input by the battery189to supply the power required for a component of the electronic device101. For example, a voltage of the power required for the AP120-1may vary depending on an internal configuration of the AP120-1and/or an operation state of the AP120-1, and the AP PMIC120-2may supply the power required for the internal configuration of the AP120-1by converting the input power.

According to various embodiments, the power management module188may include a charging circuit260, the power gauge230, a switch250, a power control module (e.g., including power control circuitry)270, an interface module (e.g., including interface circuitry)275, and a microcontroller unit (MCU) (e.g., including various control and/or processing circuitry)290.

For example, the charging circuit260may charge the battery189using power input from the outside or may supply power to the processor120. An operation of the charging circuit260may be controlled by the power control module270. For example, based on the control of the power control module270, power may be supplied to the battery189and/or the processor120by converting external power input to the charging circuit260. For example, the charging circuit260may include a pulse width modulation driver (PWM DRV)261and a buck converter262. For example, the PWM DRV261may be operated by a control signal provided by the power control module270. The PWM DRV261may be operated based on the control signal and may supply the external power input from an adapter300(e.g., a TA ofFIG.3) to the buck converter262, and the supplied external power may be converted by the buck converter262.

For example, the switch250may form a path to supply power from the battery189to components in the electronic device101. For example, when the switch250is in an on state, power may be supplied to the processor120from the battery189.

The example ofFIG.3illustrates a case in which a target to be supplied with power from the power management module188is the processor120, like a case in which power input from the outside is used to charge the battery189and/or is supplied to the processor120by converting the power using the charging circuit260or a case in which the power is supplied to the processor120using power charged in the battery189.

The example ofFIG.3may correspond to any of various embodiments and, the power output from the battery189may be supplied to components of the electronic device101, such as an IC other than the processor120, a display module (e.g., the display module160ofFIG.1), a sound output module (e.g., the sound output module155ofFIG.1), a communication module (e.g., the communication module190ofFIG.1), an audio module (e.g., the audio module170ofFIG.1), a sensor module (e.g., the sensor module176ofFIG.1), a haptic module (e.g., the haptic module179ofFIG.1), or a camera module (e.g., the camera module180ofFIG.1). In addition to the examples described above, the power output from the battery189may be supplied to components included in the electronic device101, such as the memory130, an antenna module (e.g., the antenna module197ofFIG.1), and an input module (e.g., the input module150ofFIG.1).

For example, when a voltage magnitude to be supplied to a component in the electronic device101is different from a voltage magnitude output from the power management module188and/or the battery189, the electronic device101may include a conversion module configured to convert power output from the power management module188and/or the battery189.

For example, the processor120may include various processing circuitry and/or multiple processors. For example, as used herein, including the claims, the term “processor” may include various processing circuitry, including at least one processor, wherein one or more of at least one processor, individually and/or collectively in a distributed manner, may be configured to perform various functions described herein. As used herein, when “a processor”, “at least one processor”, and “one or more processors” are described as being configured to perform numerous functions, these terms cover situations, for example and without limitation, in which one processor performs some of recited functions and another processor(s) performs other of recited functions, and also situations in which a single processor may perform all recited functions. Additionally, the at least one processor may include a combination of processors performing various of the recited/disclosed functions, e.g., in a distributed manner. At least one processor may execute program instructions to achieve or perform various functions. The processor120may, for example, receive a user input to turn off the power of the electronic device101. The processor120may receive a user input A to turn off the power of the electronic device101through a power key input of the electronic device101or an interface of a display module (e.g., the display module160ofFIG.1).

For example, the processor120may identify a voltage of the battery189when receiving the user input A. For example, the power control module270may identify a voltage of the battery189. When receiving a user input, the processor120may identify a voltage of the battery189from the power control module270.

For example, the processor120may set a reference voltage to enter a ship mode. For example, when receiving the user input A to turn off the power of the electronic device101and a set margin voltage, the processor120may determine a reference voltage based on the identified voltage of the battery189.

According to an embodiment, when a maximum charging voltage of the battery189is 4.4 V and a cut-off voltage of the PCM240is 2.5 V, the electronic device101may determine a reference voltage from 20 voltage levels in the unit of 0.1 V within a range between the maximum charging voltage and the cut-off voltage. For example, when the identified voltage of the battery189is 4.0 V and the set margin voltage is 300 mV, the electronic device101may determine the reference voltage to be 3.7 V. In another example, when the identified voltage of the battery189is 3.94 V and the set margin voltage is 300 mV, the electronic device101may determine the reference voltage to be 3.6 V, which is a voltage level less than a voltage obtained by subtracting the margin voltage from the voltage of the battery189.

According to various embodiments, the processor120may determine the reference voltage such that the reference voltage is greater than or equal to the cut-off voltage. As described above, the processor120may determine the reference voltage depending on a voltage magnitude obtained by subtracting a margin voltage from a voltage of the battery189when receiving a user input.

For example, the processor120may set a margin voltage by considering a cut-off voltage of the battery189and a voltage range of the battery189when the electronic device101is in a normal operation. For example, when the voltage range of the battery189when the electronic device101is in a normal operation is greater than or equal to 3.3 V and less than or equal to 4.4 V and the cut-off voltage of the battery189is 2.5 V, the processor120may set a margin voltage to be less than or equal to 0.8 V, which is a voltage magnitude obtained by subtracting a cut-off voltage of the battery189, 2.5 V, from a minimum voltage magnitude of the voltage range of the battery189, 3.3 V. The processor120may determine the reference voltage to be greater than or equal to the cut-off voltage using the margin voltage that is set by considering the voltage range of the battery189and the cut-off voltage of the battery189.

The example in which the reference voltage is determined based on the margin voltage and the voltage of the battery189from voltage levels in the set unit between the maximum charging voltage of the battery189and the cut-off voltage of the PCM240may be one of various embodiments and the electronic device101may determine the reference voltage in a different method from the example described above. In another example, when the voltage of the battery189is 3.94 V and the set margin voltage is 300 mV, the reference voltage may be determined to be 3.64 V, or when the voltage of the battery189is greater than or equal to 3 V and less than or equal to 3.3 V, the reference voltage may be determined to be 2.7 V.

According to various embodiments, the electronic device101may prevent and/or reduce or block the electronic device101from being set to the ship mode before the user input A to turn off the power of the electronic device101is received. Since the user uses the electronic device101before the user input to turn off the power is received, the power may need to be supplied to components of the electronic device101.

For example, the electronic device101may set the reference voltage before the user input to turn off the power is received by considering the cut-off voltage of the battery189. For example, the cut-off voltage of the battery189may be a voltage at which the PCM240operates to prevent and/or reduce overdischarge of the battery189.

For example, the electronic device101may turn off the power. Turning off the power of the electronic device101may represent that a program or an operating system (OS) executed by the processor120is terminated and the power supplied to components in the electronic device101, such as the processor120, an IC, a display module, a sound output module, a communication module, an audio module, a sensor module, a haptic module, or a camera module, is blocked.

For example, the power management module188may monitor a voltage of the battery189after turning off the power of the electronic device101. After the power of the electronic device101is turned off, the power may not be supplied to components in the electronic device101, such as the processor120, but the voltage of the battery189may drop due to a leakage current. For example, after turning off the power, the voltage of the battery189monitored by the power management module188may gradually decrease.

For example, the power management module188may determine whether to change the electronic device101to be in a ship mode based on the monitored voltage of the battery189and a reference voltage to enter the ship mode.

For example, when the monitored voltage of the battery189is less than or equal to the reference voltage, the power management module188may set the electronic device101to the ship mode. For example, when the voltage of the battery189is 3.9 V and the set reference voltage is 3.6 V at the time of receiving the user input to turn off the electronic device101, the voltage of the battery189may gradually decrease due to a leakage current after the power of the device is turned off. When the monitored voltage of the battery189is less than or equal to 3.6 V, the power management module188may set the electronic device101to the ship mode. For example, a case in which the voltage of the battery189becomes less than or equal to the reference voltage because of a voltage decrease due to a leakage current may represent a state in which the electronic device101has not been used for a long time.

For example, when the monitored voltage of the battery189is maintained to be less than or equal to the reference voltage for more than or equal to a set debounce time, the power management module188may set the electronic device101to the ship mode. For example, the debounce time may be set to be one of 1, 4, 16, 32, and 64 seconds. The above example of the debounce time may be one of various embodiments and as an example different from the above example, the debounce time may be variously set, such as 1 hour or 24 hours.

For example, the power management module188may check the leakage current of the electronic device101to determine that the power of the electronic device101is turned off when entering the ship mode. For example, the leakage current of the electronic device101may be a current output from the battery189when the electronic device101is turned off.

The power management module188in various embodiments may control an operation of the switch250. The power management module188may set the electronic device101to the ship mode by controlling the operation of the switch250. For example, the switch250may be connected to the battery189and may transmit the power to the electronic device101. For example, the switch250may form a path to transmit the power output by the battery189to components (e.g., the processor120, an IC, the display module160, the sound output module155, the communication module190, the audio module170, the sensor module176, the haptic module179, and the camera module180) of the electronic device101.

For example, the power management module188may turn off the switch250. When the switch250is turned off, a path through which the leakage current flows from the battery189to components of the electronic device101may be blocked. For example, the power management module188may turn off the switch250and may set the electronic device101to the ship mode.

The electronic device101in various embodiments may store power gauge data related to a state of the battery189in a memory130or231. For example, the power management module188may store the power gauge data in the memory130or231of the power gauge230using the MCU290. For example, the power management module188may store the power gauge data in the memory130or231using the MCU290.

In another example, the processor120may store the power gauge data in the memory130. For example, the processor120may identify the power gauge data through the interface module275of the power management module188and may store the identified power gauge data in the memory130.

The ship mode of the electronic device101in various embodiments may be canceled when a power key is input or the adapter300is inserted. For example, the power management module188may identify that a power key is input in the ship mode or external power is input through the adapter300.

For example, when the power key is input, the power management module188may receive a power key input. For example, the power control module270of the power management module188may be connected to the power key. For example, when the adapter300is inserted, the power management module188may identify that external power is input through the adapter300. For example, the power control module270of the power management module188may identify that external power is input by sensing a voltage and/or a voltage of the input external power. For example, the power management module188may cancel the ship mode of the electronic device101by turning on the switch250when the power key is input or the adapter300is inserted.

The electronic device101in various embodiments may load the power gauge data from the memory130or231when the ship mode is canceled. Loading the power gauge data from the memory130or231may refer to identifying the power gauge data stored in the memory130or231.

For example, when the ship mode of the electronic device101is canceled, the power gauge230may load the power gauge data stored in the memory231of the power gauge230. In another example, when the ship mode of the electronic101is canceled, the power control module270may identify the power gauge data stored in the memory130through the interface module275and the power gauge230may load the power gauge data from the power control module270.

According to various embodiments, the power gauge data may be prevented or blocked from being initialized by storing the power gauge data in the memory when the electronic device101is set to the ship mode or before the electronic device101is set to the ship mode, and loading the power gauge data when the ship mode of the electronic device101is canceled or after the ship mode of the electronic device101is canceled.

The power gauge230in various embodiments may be electrically connected to the processor120and/or the battery189. For example, the processor120may be electrically connected to the power gauge230and may identify the power gauge data, which is information on the state of the battery189. In another example, the processor120may communicate with the power control module270through the interface275and may identify the power gauge data stored in the power gauge230from the power control module270.

For example, the power gauge230may be electrically connected to the battery189and may measure use state information (e.g., the capacity, the number of charge and discharge cycles, the voltage, or the temperature of the battery189) on the battery189.

The electronic device101in various embodiments may control the electronic device101to prevent the electronic device101from being set to the ship mode in an operation before a user input to turn off the power of the electronic device101is received. Since a user uses the electronic device101before the user input to turn off the power is received, the electronic device101may control the electronic device101to prevent the electronic device101from being set to the ship mode.

For example, when the electronic device101is turned on, the reference voltage may be set to a default level. For example, when the electronic device101operates at a voltage of the battery189between 3.4 V and 4.4 V, the reference voltage set to the default level may be a low value, such as 2.6 V.

For example, the electronic device101may set the reference voltage by considering a cut-off voltage of the battery189. For example, when the electronic device101operates at a voltage of the battery189between 3.4 V and 4.4 V, the electronic device101may be automatically turned off until the voltage of the battery189reaches 3.4 V. After the electronic device101is turned off, the battery189may be discharged for a long period. For example, when the voltage of the battery189reaches a cut-off voltage, the PCM240may operate to prevent and/or reduce overdischarge of the battery189. For example, when the cut-off voltage of the battery189is 2.5 V, the electronic device101may set the reference voltage, such as 2.6 V or 2.7 V, by considering the cut-off voltage of the battery189.

For example, when the reference voltage is set by considering the cut-off voltage of the battery189and the user uses the electronic device101, the electronic device101may not be set to the ship mode.

For example, when the reference voltage is set by considering the cut-off voltage of the battery189and the battery189reaches the reference voltage as the battery189is continuously discharged after the electronic device101is automatically turned off, the electronic device101may be set to the ship mode.

For example, the electronic device101may disable a function that the power management module188sets the electronic device101to be in the ship mode. For example, when the power of the electronic device101is turned on and the user uses the electronic device101, the power management module188may disable the function to set the electronic device101to be in the ship mode. For example, when an input to turn off the power of the electronic device101is received from the user, the electronic device101may enable the function of the power management module188to set the electronic device101to the ship mode.

Referring toFIG.3, the electronic device101in an embodiment may identify a signal to turn off the power of the electronic device101. For example, the electronic device101may identify a signal to turn off the power of the electronic device101from a user input to turn off the power of the electronic device101, such as a power key input (e.g., power key press ofFIG.3) or a display and touch interface (e.g., a display and touch interface ofFIG.3).

For example, the electronic device101may determine a change in a state of the electronic device101during a set second time period. When the state of the electronic device101does not change during the second time period, the electronic device101may output a signal to turn off the power.

For example, the electronic device101may determine whether the state of the electronic device101has changed based on a screen touch input through a display module (e.g., the display module160ofFIG.1), a key input, such as a power key or a volume adjustment key, connection to a wired or wireless charger, an operating status of the electronic device101or an external environmental status collected by a sensor module (e.g., the sensor module176ofFIG.1), and a motion of a terminal (e.g., a motion of a terminal collected using a gyro sensor of the sensor module176).

For example, when there is no screen touch input, key input, connection to a charger, a change in the operating status of the electronic device101, and a change in the motion of the terminal during the second time period, it may be determined that there is no change in the state of the electronic device101.

For example, when the signal to turn off the power is identified, the electronic device101may perform an operation to turn off the power of the electronic device101. The electronic device101may terminate a running program or an OS and may block the power supplied to components, such as the processor120, an IC, and the display module160in the electronic device101.

For example, the electronic device101may count a set first time period from the time at which the signal to turn off the power is identified. For example, when the processor120identifies the signal to turn off the power, the processor120may transmit a control signal to the power management module188. For example, the processor120may transmit the control signal to the power management module270through the interface module275.

For example, the power management module188may count the set first time period based on the control signal. For example, the power control module270of the power management module188may count the set first time period.

For example, the electronic device101may determine the first time period based on a voltage magnitude of the battery189. For example, the processor120may identify the voltage magnitude of the battery189when identifying the signal to turn off the power. For example, the processor120may determine the first time period having a positive correlation with the voltage magnitude of the battery189when identifying the signal to turn off the power.

For example, a voltage range of the battery189may be between about 3.3 V and about 4.4 V. For example, in a case in which the voltage magnitude of the battery189is 4.4 V when the signal to turn off the power is identified, the processor120may set the first time period to be 48 hours. For example, when the voltage magnitude of the battery189is 3.3 V at the time of identifying a signal to turn off the power, the processor120may determine the first time period to be 24 hours.

In the example described above, the first time period determined based on the voltage range of the battery189and the voltage magnitude of the battery189is an example and the example is not limited thereto.

For example, the electronic device101may set the electronic device101to the ship mode after the first time period has elapsed. For example, after the first time period has elapsed, the power control module270may set the electronic device101to the ship mode. For example, the power control module270may set the electronic device101to the ship mode by controlling an operation of the switch250.

For example, after the first time period has elapsed, the electronic device101may set the electronic device101to the ship mode by turning off the switch250. The power management module188may turn off the switch250. When the switch250is turned off, a path through which the leakage current flows from the battery189to components of the electronic device101may be blocked. The power management module188may set the electronic device101to the ship mode by turning off the switch250.

For example, the electronic device101may store power gauge data related to a state of the battery189in the memory231. For example, the power control module270may store the power gauge data in the memory231. For example, the power control module270may store the power gauge data in the memory231simultaneously with an operation of setting the electronic device101to the ship mode or may store the power gauge data in the memory231before or after the operation of setting the electronic device to the ship mode.

For example, when a power key is input or an adapter is inserted within the first time period, the electronic device101may stop counting the first time period.

For example, the electronic device101may set a mode to set the electronic device101to the ship mode based on a user input. For example, when setting to the mode to set to the ship mode, the electronic device101may be set to the ship mode after the first time period has elapsed after the power is turned off. For example, when the mode to set to the ship mode is not set, the electronic device101may not be set to the ship mode even if the first time period has elapsed after the power is turned off.

For example, when the power of the electronic device101is turned off based on a user input, the electronic device101may provide an interface to select the mode to set to the ship mode through the display module160. For example, when a user desires to turn off the power of the electronic device101by inputting a power key, an interface to select power off, restart, power off, and enter ship mode may be provided.

For example, when identifying a signal to turn off the power depending on a change in a state of the electronic device101during the second time period, the electronic device101may operate based on a preset option regarding whether to enter the ship mode.

When a power key is input or an adapter is inserted after being set to the ship mode, the electronic device101may control the switch250that controls a path to transmit the power from the battery189. The electronic device101may load the power gauge data stored in the memory130or231.

When a power key is input or an adapter is inserted after being set to the ship mode, the electronic device101may cancel the ship mode of the electronic device101by turning on the switch250. The power management module188may cancel the ship mode of the electronic device101by turning on the switch250when the power key is input or the adapter300is inserted.

Referring to the description ofFIG.3provided above, the electronic device101may be set to the ship mode after the power is turned off. According to an embodiment, the electronic device101may be set to the ship mode based on a voltage magnitude of the battery189after the power is turned off. According to an embodiment, the electronic device101may be set to the ship mode after the set first time period has elapsed after the power is turned off.

The electronic device101may stably secure a time to turn off the power of the electronic device101while increasing a standby time from a state in which the power is turned off to overdischarge of the battery189by being set to the ship mode based on the voltage magnitude of the battery189or the set first time period. In the example embodiment shown inFIG.3, by securing the time to turn off the power of the electronic device101, an anomaly of an internal component of the electronic device101that may occur as the electronic device101enters the ship mode before the power is completely turned off may be prevented and/or reduced.

FIG.4is a flowchart illustrating example operations of an electronic device (e.g., the electronic device101ofFIG.1) according to various embodiments.

Referring toFIG.4, in operation301, the electronic device101in various embodiments may receive an input, e.g., a user input, to turn off the power of the electronic device101. For example, the user input to turn off the power of the electronic device101may include a power key input of the electronic device101or an input through an interface displayed on a display module (e.g., the display module160ofFIG.1).

For example, in operation302, the electronic device101may identify a voltage of a battery (e.g., the battery189ofFIG.1). The voltage of the battery189identified by the electronic device101in operation302may be a voltage of the battery189when receiving a user input to turn off the electronic device101. For example, a power management module (e.g., the power management module188ofFIG.1) may identify a voltage of the battery189and the processor120may identify the voltage of the battery189from the power management module.

For example, in operation303, the electronic device101may set a reference voltage based on a margin voltage and the voltage of the battery189. The reference voltage may be a threshold to determine whether to set the electronic device101to the ship mode by the power management module.

For example, the electronic device101may set the reference voltage using a magnitude obtained by subtracting the margin voltage from the identified voltage of the battery189. For example, the magnitude of the margin voltage may be set to a designated value.

For example, in operation304, the electronic device101may perform an operation to turn off the power. For example, the electronic device101may terminate an OS or a program executed by a processor (e.g., the processor120ofFIG.1) to turn off the power. For example, when the electronic device101performs the operation to turn off the power, the power supply to components of the electronic device101, such as the processor120, may be stopped.

For example, in operation305, the electronic device101may monitor the voltage of the battery189after turning off the power. For example, the power management module may identify the voltage of the battery189after turning off the power. Even after the power of the electronic device101is turned off, the voltage of the battery189may gradually drop due to a leakage current.

For example, the electronic device101may determine whether the voltage of the battery189is less than or equal to the reference voltage in operation306. According to an embodiment, the electronic device101may determine whether the voltage of the battery189is less than or equal to the reference voltage at a predetermined cycle. For example, when the voltage of the battery189is less than or equal to the reference voltage in operation306, in operation307, the electronic device101may determine whether the time, for which the voltage of the battery189is maintained to be less than or equal to the reference voltage, is greater than or equal to the debounce time.

In operation306or307, when the voltage of the battery189is greater than the reference voltage or the time, for which the voltage of the battery189is maintained to be less than or equal to the reference voltage, is less than the debounce time, the electronic device101may monitor the voltage of the battery189in accordance with operation305. According to an embodiment, the electronic device101may monitor at a predetermined cycle whether the voltage of the battery189is less than or equal to the reference voltage and the time, for which the voltage of the battery189is maintained to be less than or equal to the reference voltage, is greater than the debounce time.

For example, in operation308, the electronic device101may store the power gauge data in a memory (e.g., the memory130or231ofFIG.3). For example, the power gauge data may include use state information (e.g., the capacity, the number of charging and discharging cycles, the voltage, or the temperature of the battery189) on the battery189or charging state information (e.g., lifetime, overvoltage, low voltage, low current, over current, overcharge, overdischarge, overheat, short, or swelling) related to the charging of the battery189.

For example, in operation308, an MCU (e.g., the MCU290ofFIG.3) of the power management module may store the power gauge data in a memory (e.g., the memory231ofFIG.3) of a power gauge (e.g., the power gauge230ofFIG.2). In another example, in operation308, the MCU of the power management module or the processor120may store the power gauge data in the memory.

For example, in operation309, the electronic device101may set the electronic device101to the ship mode. For example, in operation310, the electronic device101may control an operation of a switch (e.g., the switch250ofFIG.3) that forms a path to transmit the power from the battery189. For example, the battery189may transmit power to components in the electronic device101, such as the processor120, an IC, a display module (e.g., the display module160ofFIG.1), a sound output module (e.g., the sound output module155ofFIG.1), a communication module (e.g., the communication module190ofFIG.1), an audio module (e.g., the audio module170ofFIG.1), a sensor module (e.g., the sensor module176ofFIG.1), a haptic module (e.g., the haptic module179ofFIG.1), and a camera module (e.g., the camera module180ofFIG.1), through the path transmitting the power. For example, in operation310, when the path transmitting the power from the battery189is blocked as the power management module turns off the switch, a path through which a leakage current flows may be blocked.

For example, in operation311, the electronic device101may identify whether a power key is input or an adapter (e.g., the adapter300ofFIG.3) is inserted. For example, the power management module of the electronic device101may receive a signal when a power key is input. When the power management module identifies that the power key is input, the power management module may cancel the ship mode of the electronic device101.

In another example, when the adapter is inserted in operation311, the power management module may identify that the adapter is inserted and the power management module may cancel the ship mode of the electronic device101.

For example, when the power key is input or the adapter is inserted in operation311, in operation312, the electronic device101may control an operation of the switch. For example, the power management module of the electronic device101may control an operation of the switch, thereby, may form a path for transmitting the power from the battery189to components in the electronic device101, such as the processor120, an IC, a display module, a sound output module, a communication module, an audio module, a sensor module, a haptic module, or a camera module.

For example, in operation313, the electronic device101may load the power gauge data from the memory. The electronic device101may load the power gauge data stored in the memory and the power gauge may identify the loaded power gauge data. As the electronic device101loads the power gauge data stored in the memory, the power gauge data may be prevented from being reset even when the electronic device101is set to the ship mode and then the ship mode is canceled.

FIG.5is a flowchart illustrating example operations of an electronic device (e.g., the electronic device101ofFIG.1) according to various embodiments.

The embodiment illustrated inFIG.5may represent an operation flowchart when the electronic device101receives an input, e.g., an input from a user, to set to a ship mode.

Referring toFIG.5, the electronic device101in various embodiments may receive a user input in operation401. For example, the user input may be an input to set the ship mode. For example, an input to set the electronic device101to the ship mode may be received from the user through a user interface output on a display module (e.g., the display module160ofFIG.1) of the electronic device101.

In another example, the electronic device101may include a separate input element for setting the electronic device101to the ship mode. For example, the user may input a key or a button to set the electronic device101to the ship mode.

For example, in operation402, the electronic device101may perform an operation of turning off the power. In operation403, the electronic device101may store the power gauge data in a memory (e.g., the memory130or231ofFIG.3). In operation404, the electronic device101may set the electronic device101to the ship mode. In operation405, the electronic device101may control an operation of a switch (e.g., the switch250ofFIG.3) that forms a path for transmitting power from a battery (e.g., the battery189ofFIG.1). For example, the power management module may block the path for transmitting the power from the battery189by turning off the switch.

In operation406, whether a power key is input or an adapter (e.g., the adapter300ofFIG.3) is inserted may be identified. When the power key is input or the adapter is inserted in operation406, the electronic device101may control an operation of the switch in operation407. In operation408, the electronic device101may load the power gauge data stored in the memory.

The operations402,403,404,405,406,407, and408described above may be substantially the same as the operations304,308,309,310,311,312, and313ofFIG.4. Accordingly, even if a description is not repeated with respect to the operations402,403,404,405,406,407, and408, the descriptions provided with reference to the operations304,308,309,310,311,312, and313ofFIG.4may be equally applied.

In an embodiment, in operation401, the electronic device101may identify a voltage of the battery189when receiving a user input to set the electronic device101to the ship mode. For example, in operation404, the electronic device101may monitor a voltage of the battery189with a power management module (e.g., the power management module188ofFIG.1) after turning off the power of the electronic device101. For example, in operation404, the electronic device101may set the electronic device101to the ship mode by comparing the monitored voltage of the battery189with the voltage of the battery189when receiving the user input.

For example, when the monitored voltage of the battery189has decreased by a set margin voltage from the voltage of the battery189when receiving the user input, the electronic device101may set the electronic device101to the ship mode.

For example, as shown inFIG.5, the margin voltage when the electronic device101receives the user input from the user to set the electronic device101to the ship mode may be different from the margin voltage to set the reference voltage in the embodiment shown inFIG.4.

For example, in operation404, the magnitude of the margin voltage may be set to be less than the margin voltage described with reference toFIG.4, for example, 50 mV. Even when receiving the input to set the electronic device101to the ship mode from the user, a time to turn off the power of the electronic device101may be secured by setting the electronic device101to the ship mode based on a small margin voltage.

In an embodiment, in operation404, the electronic device101may set the electronic device101to the ship mode based on a change in the voltage of the battery189within a set time period after turning off the power.

For example, after the power of the electronic device101is turned off, the voltage of the battery189may decrease due to a leakage current. The amount of voltage decrease of the battery189due to the leakage current may be significantly smaller than the voltage decrease of the battery189due to an operation of the electronic device101. For example, the electronic device101may determine whether the power of the electronic device101is normally turned off using the decreased voltage magnitude of the battery189during the set time period.

For example, the amount of voltage decrease of the battery189within 24 hours from an operation of turning off the power of the electronic device101is less than or equal to 1 mV, the electronic device101may determine that the power of the electronic device101is normally turned off.

FIG.6is a flowchart illustrating example operations of an electronic device (e.g., the electronic device101ofFIG.1) according to various embodiments.

Referring toFIG.6, the electronic device101in an embodiment may identify a signal to turn off the power of the electronic device101.

For example, in operation510, the electronic device101may receive a user input to set a ship mode. The user input received in operation510may represent a signal to turn off the power.

For example, in operation520, the electronic device101may determine a change in a state of the electronic device101during a set second time period. When the state of the electronic device101is not changed during the set second time period, the electronic device101may output a signal to turn off the power.

For example, the electronic device101may determine that the state of the electronic device101has changed in the case of a screen touch input through a display module (e.g., the display module160ofFIG.1), a key input, such as a power key or a volume adjustment key, connection to a wired or wireless charger, an operating status of the electronic device101or an external environmental status collected by a sensor module (e.g., the sensor module176ofFIG.1), and a motion of a terminal (e.g., a motion of a terminal collected using a gyro sensor of the sensor module176).

In operation530, the electronic device101may perform an operation of turning off the power. For example, when the user input is received in operation510or when the state of the electronic device101is not changed during the second time period in operation520, the electronic device101may perform an operation of turning off the power in operation530. The electronic device101may terminate a running program, an OS, and the like and may block the power supplied to an element (e.g., the processor120, the memory130, the display module160, and an IC) included in the electronic device101.

The electronic device101may count a set first time period in operation540. A processor (e.g., the processor120ofFIG.1) may transmit a control signal to a power management module (e.g., the power management module188ofFIG.1). The power management module188may count the set first time period based on the control signal. The electronic device101may determine the first time period based on a voltage magnitude of the battery189when identifying the signal to turn off the power. For example, the processor120may determine the first time period to have a positive correlation with the voltage magnitude of the battery189.

For example, before the operation of turning off the power of operation530is completed, the processor120may determine the first time period based on the voltage magnitude of the battery189. For example, the power control module270of the power management module188may determine the first time period based on the voltage magnitude of the battery189in operation540.

In operation550, the electronic device101may determine whether a power key is input or an adapter is inserted during the first time period.

When the power key is not input or the adapter is not inserted during the first time period in operation550, the electronic device101may store the power gauge data in a memory (e.g., the memory130or231ofFIG.3) in operation560. The power gauge data may include data on the state of the battery189.

In operation570, the electronic device101may set the electronic device101to the ship mode.

According to the example embodiment illustrated inFIG.6, the electronic device101may minimize and/or reduce discharge of the battery189due to the leakage current and may increase a standby time in a power-off state.

For example, the total capacity of the battery189may be about 5,000 mAh, the voltage of the battery when the power is turned off may be about 4.0 V, the remaining capacity of the battery189when the power is turned off may be about 3,000 mAh, and a magnitude of the leakage current in the power-off state may be about 300 uA. After the electronic device101is set to the ship mode, the magnitude of the leakage current may be about 30 uA. After the voltage of the battery189reaches a V1 voltage (e.g., 2.6 V), the electronic device101may be set to the ship mode and after the electronic device101is set to the ship mode, the voltage of the battery189may reach a V2 voltage (e.g., 1.5 V) at which the battery189is overdischarged. In the example described above, a standby time taken for the voltage of the battery189to reach the V1 voltage may be about 13.9 months (3,000 mAh/300 uA=10,000 h), and a standby time taken to reach the V2 voltage after reaching the V1 voltage may be about 1.38 months (30 mAh/30 uA=1000 h). When the voltage of the battery189when turning off the power is about 4.0 V, the total standby time taken to reach the V2 voltage may be about 15.28 months.

The V1 voltage may be a reference voltage to determine whether to enter the ship mode to prevent and/or reduce overdischarge of the battery189. The V2 voltage may be a voltage at which the battery189is overdischarged.

According to the example embodiment illustrated inFIG.6, after the power of the electronic device101is turned off, a required time for the voltage of the battery189to reach the V1 voltage or the V2 voltage may increase.

For example, the total capacity of the battery189may be about 5,000 mAh, the voltage of the battery when the power is turned off may be about 4.0 V, the remaining capacity of the battery189when the power is turned off may be about 3,000 mAh, and a magnitude of the leakage current after the electronic device101is set to the ship mode may be about 30 uA. When the electronic device101is set to the ship mode after the power of the electronic device101is turned off and the set first time period (e.g., 24 hours, 48 hours, and the like) has elapsed, the time taken for the voltage of the battery189, which is about 4.0 V, to reach the V1 voltage may be about 139 months (3,000 mAh/30 uA=100,000 h). The electronic device101may set the electronic device101to the ship mode when the set first time period has elapsed after the power is turned off, thereby, may increase the standby time taken for the voltage of the battery189to reach the V1 voltage.

The power control method according to various example embodiments may include: receiving an input to turn off the power of the electronic device, identifying a voltage of the battery based on receiving the input, determining a reference voltage to enter a ship mode to prevent and/or reduce discharge of the battery due to a leakage current based on a set margin voltage and a voltage of the battery when receiving the input, turning off the power of the electronic device, monitoring the voltage of the battery after turning off the power of the electronic device, and setting the electronic device to the ship mode based on a monitored voltage of the battery and the reference voltage.

The setting the electronic device to the ship mode may include storing power gauge data related to a state of the battery in the memory.

The power control method may further include, based on a power key being input or an adapter being inserted in the ship mode, loading the power gauge data stored in the memory.

The setting the electronic device to the ship mode may include setting the electronic device to the ship mode based on the monitored voltage of the battery being maintained to be less than or equal to the reference voltage for more than or equal to a set debounce time.

The power control method may further include controlling the electronic device to prevent or block the electronic device from being set to the ship mode before the input is received.

The setting the electronic device to the ship mode may include controlling an operation of the switch connected to the battery .

The determining the reference voltage may include determining the reference voltage based on a voltage magnitude obtained by subtracting the margin voltage from the voltage of the battery based on receiving the input, wherein the reference voltage is greater than or equal to a cut-off voltage set to prevent and/or reduce overdischarge of the battery.

The power control method according to various example embodiments may include: receiving an input to set the electronic device to a ship mode to prevent and/or reduce discharge of the battery due to a leakage current, turning off the power of the electronic device, storing power gauge data related to a state of the battery in the memory, and setting the electronic device to the ship mode.

The setting the electronic device to the ship mode may include controlling the switch connected to the battery.

The power control method may further include loading the power gauge data based on a power key being input or an adapter being inserted in the ship mode.

The setting the electronic device to the ship mode may set the electronic device to the ship mode by monitoring the voltage of the battery after turning off the power of the electronic device, and comparing the monitored voltage of the battery to the voltage of the battery based on receiving the input.

The setting the electronic device to the ship mode may include setting the electronic device to the ship mode based on a change in the voltage of the battery within a set time period after turning off the power of the electronic device.

The power control method may further include controlling the electronic device to prevent setting to the ship mode before the input is received.

The electronic device according to various example embodiments may include: a battery, at least one processor, comprising processing circuitry, and a power management module comprising power management circuitry configured to control power output by the battery, wherein at least one processor, individually and/or collectively, may be configured to: receive an input to turn off the power of the electronic device, identify a voltage of the battery based on receiving the input, determining a reference voltage to enter a ship mode to prevent and/or reduce discharge of the battery due to a leakage current based on a set margin voltage and a voltage of the battery based on receiving the input, and turn off the power of the electronic device, wherein the power management module may be further configured to: monitor the voltage of the battery after turning off the power of the electronic device, and set the electronic device to the ship mode based on a monitored voltage of the battery and the reference voltage.

The power management module may be configured to store power gauge data related to a state of the battery in the memory.

At least one processor, individually and/or collectively, may be configured to load the power gauge data stored in the memory based on a power key being input or an adapter being inserted in the ship mode.

The power management module may be configured to set the electronic device to the ship mode based on the monitored voltage of the battery being maintained to be less than or equal to the reference voltage for more than or equal to a set debounce time.

At least one processor, individually and/or collectively, may be configured to prevent the electronic device from being set to the ship mode before the input is received.

The power management module may be configured to control an operation of a switch connected to the battery.

At least one processor, individually and/or collectively, may be configured to: determine the reference voltage based on a voltage magnitude obtained by subtracting the margin voltage from the voltage of the battery based on receiving the input, wherein the reference voltage is greater than or equal to a cut-off voltage set to prevent and/or reduce overdischarge of the battery.

The power control method according to various example embodiments may include: identifying a signal to turn off power of an electronic device, turning off the power of the electronic device, counting a set first time period from when the signal to turn off the power is identified, setting the electronic device to a ship mode to prevent and/or reduce discharge of a battery due to a leakage current after the first time period has elapsed.

The identifying the signal to turn off the power of the electronic device may include: determining a change in a state of the electronic device during a set second time period, and based on the state of the electronic device not being changed during the second time period, outputting the signal to turn off the power.

The setting the ship mode may include storing power gauge data related to a state of the battery in a memory.

The power control method may further include, based on a power key being input or an adapter being inserted in the ship mode, loading the power gauge data stored in the memory.

The first time period may be set to have a positive correlation with a voltage magnitude of the battery when identifying the signal to turn off the power.

The setting to the ship mode may include controlling an operation of a switch connected to the battery.