Discharge control method and device, storage medium and electronic equipment
By determining the discharge state of the battery in the shutdown state based on the target storage time, the problem of damage caused by long-term discharge of the terminal battery is solved, and the reliability and safety of the terminal are improved.
Patent Information
- Application Number
- CN202310694147.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-12
- Publication Date
- 2024-12-13
AI Technical Summary
The terminal battery that is in a shutdown state for a long time continues to discharge, resulting in damage to the battery and irreversible, affecting the reliability and safety of the terminal.
When receiving the shutdown command, the target discharge state of the battery is determined according to the target storage time, and the battery is controlled to discharge in the shutdown state. It is divided into different states to flexibly manage the battery discharge, including stopping the discharge state of the designated processing module and the battery protection module.
Improves the flexibility of battery discharge in the terminal when the shutdown state, extends the battery life, and improves the reliability and safety of the terminal.
Smart Images

Figure CN119126953A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of terminal technology, and in particular to a discharge control method, device, storage medium and electronic device. Background Art
[0002] Usually, for terminals that are idle for a long time, users will control the terminals to shut down in order to reduce the power loss of the terminals and extend the storage time of the terminals as much as possible. However, even when the terminal is turned off, the terminal battery will continue to power some components of the terminal. If the terminal enters the shutdown state for too long, the battery will continue to discharge, which may easily lead to battery depletion, and further cause irreversible damage to the battery, such as battery bulging, battery inability to be charged, etc. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a discharge control method, device, storage medium and electronic device.
[0004] According to a first aspect of an embodiment of the present disclosure, there is provided a discharge control method, comprising:
[0005] In response to receiving a shutdown instruction, if it is determined that there is a target storage time after entering the shutdown state, a target discharge state of the battery after entering the shutdown state is determined according to the target storage time, and the discharge object of the battery under different target discharge states is different;
[0006] The terminal is controlled to enter the shutdown state, and when it is determined that the terminal enters the shutdown state, the battery is controlled to discharge according to the target discharge state.
[0007] Optionally, the target discharge state includes a first discharge state and a second discharge state, the first discharge state is used to represent a state in which discharging of a designated processing module in the terminal is stopped, the designated processing module is used to execute a terminal operating system program, and the battery protection module in the battery continues to be discharged, and the second discharge state is used to represent a state in which discharging of the designated processing module and the battery protection module is stopped;
[0008] The step of determining the target discharge state of the battery after entering the shutdown state according to the target storage time includes:
[0009] When it is determined that the target storage time is less than or equal to a preset time threshold, the target discharge state is determined to be the first discharge state.
[0010] Optionally, controlling the battery to discharge according to the target discharge state includes:
[0011] When it is determined that the battery is in the first discharging state, obtaining a current voltage of the battery at a first preset frequency;
[0012] The battery is controlled to discharge according to the current voltage.
[0013] Optionally, controlling the battery to discharge according to the current voltage includes:
[0014] When it is determined that the current voltage is less than a first preset voltage threshold, controlling the battery to discharge in a second discharge state;
[0015] When it is determined that the current voltage is greater than or equal to the first preset voltage threshold, the battery is controlled to discharge in the first discharge state.
[0016] Optionally, the determining, according to the target storage time, a target discharge state of the battery after entering the shutdown state, further includes:
[0017] When it is determined that the target storage time is greater than the preset time threshold, the target discharge state is determined to be the second discharge state.
[0018] The method further comprises:
[0019] If it is determined that there is no target storage time after entering the shutdown state, obtaining the current voltage of the battery;
[0020] When it is determined that the current voltage is greater than a first preset voltage threshold and less than a second preset voltage threshold, determining that the target discharge state is the first discharge state, wherein the second preset voltage threshold is greater than the first preset voltage threshold;
[0021] When it is determined that the current voltage is less than or equal to the first preset voltage threshold, the target discharge state is determined to be the second discharge state.
[0022] Optionally, the battery is connected to the designated processing module and the battery protection module, the target discharge state further includes a third discharge state, and the third discharge state is used to characterize a state in which the designated processing module and the battery protection module are discharged simultaneously, and the method further includes:
[0023] When it is determined that the current voltage is greater than or equal to the second preset voltage threshold, the target discharge state is determined to be the third discharge state.
[0024] Optionally, the method further comprises:
[0025] If it is determined that there is a target storage time after entering the shutdown state, determine the shutdown recommended power according to the target storage time, and the shutdown recommended power is the power required to continuously discharge the target storage time in the shutdown state;
[0026] Before entering the shutdown state, the shutdown recommended power level is displayed.
[0027] According to a second aspect of an embodiment of the present disclosure, there is provided a discharge control device, comprising:
[0028] A first determination module is configured to, in response to receiving a shutdown instruction, determine a target discharge state of the battery after entering the shutdown state according to the target storage time if it is determined that there is a target storage time after entering the shutdown state, wherein the discharge object of the battery is different under different target discharge states;
[0029] The control module is configured to control the terminal to enter the shutdown state, and when it is determined that the terminal enters the shutdown state, control the battery to discharge according to the target discharge state.
[0030] Optionally, the target discharge state includes a first discharge state and a second discharge state, the first discharge state is used to represent a state in which discharging of a designated processing module in the terminal is stopped, the designated processing module is used to execute a terminal operating system program, and the battery protection module in the battery continues to be discharged, and the second discharge state is used to represent a state in which discharging of the designated processing module and the battery protection module is stopped;
[0031] The first determination module is configured to:
[0032] When it is determined that the target storage time is less than or equal to a preset time threshold, the target discharge state is determined to be the first discharge state.
[0033] Optionally, the control module is configured to:
[0034] When it is determined that the battery is in the first discharging state, obtaining a current voltage of the battery at a first preset frequency;
[0035] The battery is controlled to discharge according to the current voltage.
[0036] Optionally, the control module is configured to:
[0037] When it is determined that the current voltage is less than a first preset voltage threshold, controlling the battery to discharge in a second discharge state;
[0038] When it is determined that the current voltage is greater than or equal to the first preset voltage threshold, the battery is controlled to discharge in the first discharge state.
[0039] Optionally, the first determining module is further configured to:
[0040] When it is determined that the target storage time is greater than the preset time threshold, the target discharge state is determined to be the second discharge state.
[0041] Optionally, the device further comprises:
[0042] an acquisition module, configured to acquire a current voltage of the battery if it is determined that there is no target storage time after entering the shutdown state;
[0043] A second determination module is configured to determine that the target discharge state is the first discharge state when it is determined that the current voltage is greater than a first preset voltage threshold and less than a second preset voltage threshold, wherein the second preset voltage threshold is greater than the first preset voltage threshold;
[0044] The second determination module is configured to determine that the target discharge state is the second discharge state when it is determined that the current voltage is less than or equal to the first preset voltage threshold.
[0045] Optionally, the battery is connected to the designated processing module and the battery protection module, the target discharge state further includes a third discharge state, and the third discharge state is used to characterize a state in which the designated processing module and the battery protection module are discharged simultaneously, and the device further includes:
[0046] The second determination module is configured to determine that the target discharge state is the third discharge state when it is determined that the current voltage is greater than or equal to the second preset voltage threshold.
[0047] Optionally, the device further comprises:
[0048] The third determination module is further configured to determine a shutdown recommended power supply according to the target storage time if it is determined that there is a target storage time after entering the shutdown state, wherein the shutdown recommended power supply is the power required to continuously discharge the target storage time in the shutdown state;
[0049] The display module is configured to display the shutdown recommended power before entering the shutdown state.
[0050] According to a third aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the discharge control method provided in the first aspect of the present disclosure are implemented.
[0051] According to a fourth aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0052] a memory having a computer program stored thereon;
[0053] A processor is used to execute the computer program in the memory to implement the steps of the discharge control method provided in the first aspect of the present disclosure.
[0054] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0055] By determining the target storage time after entering the shutdown state, determining the target discharge state of the battery after entering the shutdown state according to the storage time, and controlling the battery discharge through the target discharge state when the terminal enters the shutdown state, the flexibility of battery discharge after the terminal enters the shutdown state can be effectively improved, thereby effectively improving the reliability and safety of the terminal.
[0056] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0058] Figure 1 is a flow chart showing a discharge control method according to an exemplary embodiment;
[0059] Figure 2 is a schematic diagram of a terminal discharge architecture according to an exemplary embodiment;
[0060] Figure 3 is a flow chart of a discharge control method shown in another exemplary embodiment of the present disclosure;
[0061] Figure 4 is a flow chart showing another discharge control method according to an exemplary embodiment;
[0062] Figure 5 is a block diagram of a discharge control device according to an exemplary embodiment;
[0063] Figure 6 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0064] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0065] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.
[0066] Figure 1 is a flow chart of a discharge control method according to an exemplary embodiment. Figure 1 As shown, the discharge control method includes the following steps:
[0067] In step 101, in response to receiving a shutdown command, if it is determined that there is a target storage time after entering the shutdown state, the target discharge state of the battery after entering the shutdown state is determined according to the target storage time, and the discharge object of the battery is different under different target discharge states.
[0068] The target storage time may be a storage time set according to the actual needs of the user. For example, if the user uses the terminal approximately once every four months, the user may set the target storage time to four months. Alternatively, the interval between the user's use of the terminal may be greater than six months, and the user cannot determine a specific time. The user may set any time greater than six months as the target storage time. The target discharge state may include a first discharge state and a second discharge state. The first discharge state is used to characterize the state of stopping the discharge of a designated processing module in the terminal and continuing the discharge of a battery protection module in the battery. The designated processing module is used to execute the terminal operating system program. The second discharge state is used to characterize the state of stopping the discharge of the designated processing module and the battery protection module.
[0069] In this step, when it is determined that the target storage time is less than or equal to the preset time threshold, the target discharge state can be determined to be the first discharge state; when it is determined that the target storage time is greater than the preset time threshold, the target discharge state can be determined to be the second discharge state. The preset time threshold can be 6 months or the battery storage time determined according to experimental results.
[0070] In step 102, the terminal is controlled to enter a shutdown state, and when it is determined that the terminal enters the shutdown state, the battery is controlled to discharge according to a target discharge state.
[0071] For example, Figure 2is a schematic diagram of a terminal discharge architecture according to an exemplary embodiment. Figure 2 As shown, the terminal may include a mainboard and a battery. The mainboard may include a first switch tube Q1, a second switch tube Q2, a third switch tube Q3, an inductor L, and a fourth switch tube Q4. The mainboard may integrate a charging interface. The input end of the charging interface may be used to connect a charger. The charger is used to connect a power supply to charge the terminal. The output end of the charging interface is connected to the drain of the first switch tube Q1, the source of the first switch tube Q1 is connected to the drain of the second switch tube Q2, the source of the second switch tube Q2 is connected to the drain of the third switch tube Q3 and one end of the inductor L, the source of the third switch tube Q3 is grounded, and the other end of the inductor L is connected to a designated processing module of the terminal and the fourth The drain of the switch tube Q4 is connected, wherein the designated processing module is used to execute the terminal operating system program, the source of the fourth switch tube Q4 is connected to the positive electrode of the battery cell, the negative electrode of the battery cell is connected to the first end of the secondary protection component, the second end of the secondary protection component is connected to the first end of the primary protection component, the third end of the secondary protection component is connected to one end of the second protection control module, the second end of the primary protection component is connected to one end of the first protection control module, the third end of the primary protection component is used for grounding, the other end of the second protection control module is connected to the first protection control module and the fuel gauge, and the other end of the fuel gauge is used to connect the communication signal line, for example: I2C (integrated circuit bus) bus. The battery protection module may include a primary protection component, a secondary protection component, a first protection control module, and a second protection control module of the battery.
[0072] It should be noted that, when the target discharge state is the first discharge state, the implementation method of controlling the battery discharge according to the target discharge state may be: controlling the fourth switch tube Q4 to be disconnected to stop discharging to the designated processing module executing the terminal operating system program in the terminal, wherein when the fourth switch tube Q4 is controlled to be disconnected, the fuel gauge in the battery may trigger a corresponding control signal to disconnect the fourth switch tube Q4; when the target discharge state is the second discharge state, the implementation method of controlling the battery discharge according to the target discharge state may be: controlling the fourth switch tube Q4 to be disconnected, and disconnecting the secondary protection component through the second protection control module to stop discharging to the designated processing module and the battery protection module. The designated processing module may include all electronic components in the terminal except the battery and the battery protection module.
[0073] In addition, when the battery is in the first discharge state, the first discharge state can be exited by long pressing the power key to start the terminal, or when the charging interface is connected to the charger for charging, the first discharge state can be exited by long pressing the power key to start the terminal; when the battery is in the second discharge state, if the charging interface is connected to the charger, the terminal can be started by long pressing the power key. After the terminal is started, the fourth switch tube Q4 is closed and the battery is charged.
[0074] The above scheme determines the target storage time after entering the shutdown state, determines the target discharge state of the battery after entering the shutdown state according to the storage time, and controls the battery discharge through the target discharge state when the terminal enters the shutdown state. When the terminal enters the shutdown state, the flexibility of battery discharge can be effectively improved after the terminal enters the shutdown state, thereby effectively improving the reliability and safety of the terminal.
[0075] Figure 3 is a flow chart of a discharge control method shown in another exemplary embodiment of the present disclosure; Figure 3 As shown, the discharge control method includes:
[0076] In step 301, in response to receiving a shutdown instruction, if it is determined that there is a target storage time after entering the shutdown state, it is determined whether the target storage time is less than or equal to a preset time threshold.
[0077] In this step, if it is determined that the target storage time is less than or equal to the preset time threshold, step 302 is executed. If it is determined that the target storage time is greater than the preset time threshold, step 303 is executed.
[0078] In step 302, it is determined that the target discharge state is a first discharge state.
[0079] Wherein, when it is determined that the battery is in the first discharging state, the current voltage of the battery can be obtained at a first preset frequency; and the battery discharge can be controlled according to the current voltage.
[0080] The above-described implementation of controlling battery discharge according to the current voltage may include: when it is determined that the current voltage is less than a first preset voltage threshold, controlling the battery to discharge in a second discharge state; when it is determined that the current voltage is greater than or equal to the first preset voltage threshold, controlling the battery to discharge in a first discharge state.
[0081] It should be noted that Figure 2Taking the illustrated embodiment as an example, when it is determined that the target state discharge state is the first discharge state, the fourth switch tube Q4 can be controlled to be disconnected to stop discharging to the terminal designated processing module. The first preset frequency can be 20ms, 30ms or 35ms, etc. The first preset voltage threshold can be 2.5V, 2.6V or other voltage thresholds preset according to battery characteristics.
[0082] In step 303, it is determined that the target discharge state is the second discharge state.
[0083] In this step, it is determined that the target state discharge state is the second discharge state, and the fourth switch tube Q4 and the secondary protection component can be controlled to be disconnected to stop discharging to the terminal designated processing module and battery protection.
[0084] The above technical solution determines the target discharge state by the target storage time, and when the target discharge state is in the first discharge state, obtains the current voltage and determines the battery discharge state according to the current voltage, thereby further improving the reliability of battery discharge.
[0085] Figure 4 is a flow chart of another discharge control method according to an exemplary embodiment. Figure 4 As shown, the discharge control method may further include the following steps:
[0086] In step 401, if it is determined that there is no target storage time after entering the shutdown state, the current voltage of the battery is obtained.
[0087] The current voltage may be acquired periodically or non-periodically. The periodic acquisition may be acquired at a second preset frequency. The second preset frequency may be the same as the first preset frequency, or may be greater than or less than the first preset frequency.
[0088] In step 402, when it is determined that the current voltage is less than the second preset voltage threshold and greater than the first preset voltage threshold, the target discharge state is determined to be the first discharge state.
[0089] Among them, the second preset voltage threshold is greater than the first preset voltage threshold; the second preset voltage threshold may be greater than or equal to 3.4V, or may be a voltage threshold set according to the start-up of a designated processing module of the terminal; the first discharge state is used to characterize the state of stopping discharging the designated processing module in the terminal, the designated processing module is used to execute the terminal operating system program, and continuing to discharge the battery protection module in the battery.
[0090] In step 403, when it is determined that the current voltage is less than or equal to the first preset voltage threshold, the target discharge state is determined to be the second discharge state.
[0091] The second discharge state is used to represent a state of stopping discharging the designated processing module and the battery protection module.
[0092] In step 404, when it is determined that the current voltage is greater than or equal to the second preset voltage threshold, the target discharge state is determined to be the third discharge state.
[0093] The third discharge state is used to represent a state in which the designated processing module and the battery protection module are discharged simultaneously.
[0094] It should be noted that the battery is connected to the designated processing module and the battery protection module, and the battery protection module may include a primary protection component, a secondary protection component, a first protection control module and a second protection control module of the battery. Figure 2 As shown, the battery is connected to the designated processing module through the fourth switch tube Q4, and the battery is connected to the secondary protection component. After determining that there is no target storage time after entering the shutdown state, the terminal responds to the shutdown command and enters the shutdown state. At this time, the target discharge state of the battery is the third discharge state, that is, Figure 2 The fourth switch tube Q4 and the secondary protection component shown are in the on state, and the fuel gauge detects the output voltage of the battery cell. If the output voltage is greater than the second preset voltage threshold, the target discharge state remains in the third discharge state. If the output voltage value is less than the second preset voltage threshold and greater than the first preset voltage threshold, the target discharge state enters the first discharge state; if the output voltage value is less than or equal to the first preset voltage threshold, the target discharge state enters the second discharge state.
[0095] The above technical solution, when it is determined that there is no target storage time, determines the target discharge state according to the acquired current voltage, which can reduce the power loss of the battery during long-term storage, thereby effectively improving the reliability of the battery.
[0096] Optionally, the discharge control method may further include:
[0097] If it is determined that there is a target storage time after entering the shutdown state, the shutdown recommended power is determined based on the target storage time. The shutdown recommended power is the power required for continuous discharge for the target storage time in the shutdown state; before entering the shutdown state, the shutdown recommended power is displayed.
[0098] It should be noted that the recommended power consumption for the target storage time when the terminal enters the shutdown state can be calculated based on the target storage time set by the terminal user and the preset power consumption of the designated processing module, the self-consumption of the battery cell, and the power consumption of the battery protection module.
[0099] For example, the calculation formula of the shutdown recommended power is: Q=T×(M+N+S) / .
[0100] Among them, Q represents the recommended power consumption for shutdown, T represents the target storage time, M represents the power consumption of the specified processing module, N represents the power consumption of the battery cell, S represents the power consumption of the battery protection module, and C represents the effective capacity of the battery.
[0101] The above scheme, by setting the target storage time, determines the battery power loss when the terminal enters the shutdown state, and displays the recommended shutdown power before entering the shutdown state, which can effectively avoid battery depletion and is beneficial to improving the reliability and safety of the terminal.
[0102] Figure 5 FIG. 1 is a block diagram of a discharge control device according to an exemplary embodiment. Figure 5 As shown, the discharge control device 500 may include:
[0103] The first determination module 501 is configured to respond to receiving a shutdown command. If it is determined that there is a target storage time after entering the shutdown state, the target discharge state of the battery after entering the shutdown state is determined according to the target storage time. Different target discharge states are states of discharging different power modules.
[0104] The control module 502 is configured to control the terminal to enter a shutdown state, and when it is determined that the terminal enters the shutdown state, control the battery to discharge according to a target discharge state.
[0105] The above scheme determines the target storage time after entering the shutdown state, determines the target discharge state of the battery after entering the shutdown state according to the storage time, and controls the battery discharge through the target discharge state when the terminal enters the shutdown state. This can effectively improve the flexibility of battery discharge after the terminal enters the shutdown state, thereby effectively improving the reliability and safety of the terminal.
[0106] Optionally, the target discharge state includes a first discharge state and a second discharge state, the first discharge state is used to characterize the state of stopping discharging a designated processing module in the terminal, the designated processing module is used to execute the terminal operating system program, and continuing to discharge a battery protection module in the battery, and the second discharge state is used to characterize the state of stopping discharging the designated processing module and the battery protection module.
[0107] The first determining module 501 is configured to:
[0108] When it is determined that the target storage time is less than or equal to the preset time threshold, the target discharge state is determined to be the first discharge state.
[0109] Optionally, the control module 502 is configured to:
[0110] When it is determined that the battery is in the first discharge state, obtaining the current voltage of the battery at a first preset frequency;
[0111] Controls battery discharge based on current voltage.
[0112] Optionally, the control module 502 is configured to:
[0113] When it is determined that the current voltage is less than the first preset voltage threshold, the battery is controlled to discharge in a second discharge state.
[0114] When it is determined that the current voltage is greater than or equal to the first preset voltage threshold, the battery is controlled to discharge in a first discharge state.
[0115] Optionally, the first determining module 501 is further configured to:
[0116] When it is determined that the target storage time is greater than the preset time threshold, the target discharge state is determined to be the second discharge state.
[0117] The above technical solution determines the target discharge state by the target storage time, and when the target discharge state is in the first discharge state, obtains the current voltage and determines the battery discharge state according to the current voltage, thereby further improving the reliability of battery discharge.
[0118] Optionally, the apparatus 500 further includes:
[0119] The acquisition module is configured to acquire the current voltage of the battery if it is determined that there is no target storage time after entering the shutdown state.
[0120] The second determination module is configured to determine that the target discharge state is the first discharge state when it is determined that the current voltage is greater than or equal to the first preset voltage threshold and less than or equal to the second preset voltage threshold, wherein the second preset voltage threshold is greater than the first preset voltage threshold.
[0121] The second determination module is configured to determine that the target discharge state is a second discharge state when it is determined that the current voltage is less than a first preset voltage threshold.
[0122] Optionally, the battery is connected to a designated processing module and a battery protection module, the target discharge state further includes a third discharge state, and the third discharge state is used to characterize a state in which the designated processing module and the battery protection module are discharged simultaneously. The device 500 further includes:
[0123] The second determination module is configured to determine that the target discharge state is a third discharge state when it is determined that the current voltage is greater than a second preset voltage threshold.
[0124] The above technical solution, when it is determined that there is no target storage time, determines the target discharge state according to the acquired current voltage, which can reduce the power loss of the battery during long-term storage, thereby effectively improving the reliability of the battery.
[0125] Optionally, the apparatus 500 further includes:
[0126] The third determination module is further configured to determine the recommended shutdown power according to the target storage time if it is determined that there is a target storage time after entering the shutdown state. The recommended shutdown power is the power required for continuous discharge for the target storage time in the shutdown state.
[0127] The display module is configured to display the shutdown recommended power before entering the shutdown state.
[0128] The above scheme, by setting the target storage time, determines the battery power loss when the terminal enters the shutdown state, and displays the recommended shutdown power before entering the shutdown state, which can effectively avoid battery depletion and is beneficial to improving the reliability and safety of the terminal.
[0129] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0130] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, and the program instructions, when executed by a processor, implement the steps of the discharge control method provided by the present disclosure.
[0131] Figure 6 6 is a block diagram of an electronic device according to an exemplary embodiment. For example, the device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0132] Reference Figure 6 , the device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output interface 612 , a sensor component 614 , and a communication component 616 .
[0133] The processing component 602 generally controls the overall operation of the device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the charging control method described above. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.
[0134] The memory 604 is configured to store various types of data to support operations on the device 600. Examples of such data include instructions for any application or method operating on the device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0135] The power supply component 606 provides power to the various components of the device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 600.
[0136] The multimedia component 608 includes a screen that provides an output interface between the device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0137] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the device 600 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.
[0138] The input / output interface 612 provides an interface between the processing component 602 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0139] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the device 600. For example, the sensor assembly 614 can detect the open / closed state of the device 600, the relative positioning of components, such as the display and keypad of the device 600, the sensor assembly 614 can also detect the position change of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, the orientation or acceleration / deceleration of the device 600 and the temperature change of the device 600. The sensor assembly 614 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 614 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0140] The communication component 616 is configured to facilitate wired or wireless communication between the device 600 and other devices. The device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0141] In an exemplary embodiment, the device 600 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-mentioned discharge control method.
[0142] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of the device 600 to perform the above-mentioned discharge control method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0143] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0144] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A discharge control method, characterized in that: The method comprises: In response to receiving a shutdown instruction, if it is determined that there is a target storage time after entering the shutdown state, a target discharge state of the battery after entering the shutdown state is determined according to the target storage time, and the discharge object of the battery under different target discharge states is different; The terminal is controlled to enter the shutdown state, and when it is determined that the terminal enters the shutdown state, the battery is controlled to discharge according to the target discharge state.
2. The method according to claim 1, characterized in that: The target discharge state includes a first discharge state and a second discharge state, the first discharge state is used to represent the state of stopping discharging a designated processing module in the terminal, the designated processing module is used to execute the terminal operating system program, and continuing to discharge the battery protection module in the battery, and the second discharge state is used to represent the state of stopping discharging the designated processing module and the battery protection module; The step of determining the target discharge state of the battery after entering the shutdown state according to the target storage time includes: When it is determined that the target storage time is less than or equal to a preset time threshold, the target discharge state is determined to be the first discharge state.
3. The method according to claim 2, characterized in that The controlling the battery discharge according to the target discharge state comprises: When it is determined that the battery is in the first discharging state, obtaining a current voltage of the battery at a first preset frequency; The battery is controlled to discharge according to the current voltage.
4. The method according to claim 3, characterized in that The step of controlling the battery to discharge according to the current voltage comprises: When it is determined that the current voltage is less than a first preset voltage threshold, controlling the battery to discharge in a second discharge state; When it is determined that the current voltage is greater than or equal to the first preset voltage threshold, the battery is controlled to discharge in the first discharge state.
5. The method according to claim 2, characterized in that: The step of determining the target discharge state of the battery after entering the shutdown state according to the target storage time also includes: When it is determined that the target storage time is greater than the preset time threshold, the target discharge state is determined to be the second discharge state.
6. The method according to claim 2, characterized in that The method further comprises: If it is determined that there is no target storage time after entering the shutdown state, obtaining the current voltage of the battery; When it is determined that the current voltage is greater than a first preset voltage threshold and less than a second preset voltage threshold, determining that the target discharge state is the first discharge state, wherein the second preset voltage threshold is greater than the first preset voltage threshold; When it is determined that the current voltage is less than or equal to the first preset voltage threshold, the target discharge state is determined to be the second discharge state.
7. The method according to claim 6, characterized in that The battery is connected to the designated processing module and the battery protection module, the target discharge state further includes a third discharge state, and the third discharge state is used to characterize the state of discharging the designated processing module and the battery protection module, and the method further includes: When it is determined that the current voltage is greater than or equal to the second preset voltage threshold, the target discharge state is determined to be the third discharge state.
8. The method according to claim 1, characterized in that The method further comprises: If it is determined that there is a target storage time after entering the shutdown state, determine the shutdown recommended power according to the target storage time, and the shutdown recommended power is the power required to continuously discharge the target storage time in the shutdown state; Before entering the shutdown state, the shutdown recommended power level is displayed.
9. A discharge control device, characterized in that: include: A first determination module is configured to, in response to receiving a shutdown instruction, determine a target discharge state of the battery after entering the shutdown state according to the target storage time if it is determined that there is a target storage time after entering the shutdown state, wherein the discharge object of the battery is different under different target discharge states; The control module is configured to control the terminal to enter the shutdown state, and when it is determined that the terminal enters the shutdown state, control the battery to discharge according to the target discharge state.
10. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 8 are implemented.
11. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 8.
