Battery discharge control methods, devices and storage media

By detecting battery charge and discharge current, the power adapter's output power is dynamically adjusted, solving the problem of abnormal system shutdown or performance degradation in battery maintenance mode, and enabling rapid discharge to maintenance mode.

CN115241549BActive Publication Date: 2024-11-19NANCHANG YIQIN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210905749.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-29
Publication Date
2024-11-19
Estimated Expiration
2042-07-29

AI Technical Summary

Technical Problem

In existing technologies, forced discharge of the battery in maintenance mode can lead to abnormal system shutdown or performance degradation.

Method used

By detecting battery charge and discharge current, the power adapter's output power is dynamically adjusted to allow the battery to discharge quickly in maintenance mode, thus avoiding impact on system performance.

Benefits of technology

It enables the battery to quickly discharge to maintenance mode without affecting system performance, thus shortening the discharge time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115241549B_ABST
    Figure CN115241549B_ABST
Patent Text Reader

Abstract

The present application provides a discharge control method, device and storage medium for a battery. The method includes: when it is detected that the battery is in a maintenance mode, detecting the battery power of the battery; if the battery power is greater than the maintenance power, reducing the output power of the power adapter to a first power; detecting whether the discharge current of the battery is within a set range; if the discharge current of the battery is within the set range, maintaining the output power of the power adapter at the first power, and when the battery power is equal to the maintenance power, adjusting the output power of the power adapter to a set power, the set power being greater than the first power. The present application dynamically adjusts the output power of the power adapter to enable the battery to be quickly discharged to the maintenance mode without affecting the system performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to battery discharge technology, and more particularly to a battery discharge control method, device and storage medium. Background Art

[0002] Portable electronic devices with batteries and power adapters (referred to as "portable devices"), such as laptops, have integrated more and more high-performance hardware configurations due to their advantages such as ease of mobility, which has shortened the standby time of portable devices. Users are more concerned about battery life, so in order to extend the service life of batteries in portable devices, the battery is maintained by setting the battery in maintenance mode to ensure battery activity.

[0003] In the related art, if the battery maintenance mode is enabled, the battery needs to be discharged to the maintenance power level, for example, 50%, when the power adapter is connected. The maintenance power level of different brands may vary. Considering that the natural discharge of the battery takes 1 to 2 months, the discharge time is relatively long. Therefore, the battery is usually forced to discharge through the power management module. However, forced discharge may cause abnormal shutdown or system performance degradation, such as freezing. Summary of the invention

[0004] The present application provides a battery discharge control method, device and storage medium, which are used to quickly discharge the battery to a maintenance mode without affecting system performance.

[0005] In a first aspect, the present application provides a discharge control method of a battery, comprising:

[0006] In the case where it is detected that the battery is in the maintenance mode, the battery power of the battery is detected;

[0007] If the battery power is greater than the maintenance power, the output power of the power adapter is reduced to the first power;

[0008] Check whether the battery discharge current is within the set range;

[0009] If the discharge current of the battery is within the set range, the output power of the power adapter is maintained at the first power, and when the battery power is equal to the maintenance power, the output power of the power adapter is adjusted to the set power, which is greater than the first power.

[0010] In a possible implementation manner, the condition for maintaining the output power of the power adapter at the first power may include: the discharge current of the battery is maintained within a set range for a set period of time.

[0011] In a possible implementation manner, the battery discharge control method may further include: if the discharge current of the battery is less than a smaller boundary value of a set range, gradually reducing the output power of the power adapter until the discharge current of the battery is within the set range after the output power is reduced;

[0012] Maintain the output power of the power adapter, and when the battery power is equal to the maintenance power, adjust the output power of the power adapter to the set power.

[0013] In a possible implementation manner, the battery discharge control method may further include: if the discharge current of the battery is greater than a larger boundary value of a set range, restoring the output power of the power adapter to a power level above the current power, until the discharge current of the battery is within the set range after the output power is restored;

[0014] Maintain the output power of the power adapter, and when the battery power is equal to the maintenance power, adjust the output power of the power adapter to the set power.

[0015] In a possible implementation manner, the battery discharge control method may further include: if the battery power is less than the maintenance power, turning on the charging function until the battery power is equal to the maintenance power, and then turning off the charging function;

[0016] If the battery power is equal to the maintenance power, the charging function is turned off.

[0017] In a possible implementation manner, the battery discharge control method may further include: a boundary value of the setting range is set according to a maximum safe discharge current of the battery.

[0018] In a second aspect, the present application provides a battery discharge control device, comprising:

[0019] A first detection module, used for detecting the battery power of the battery when it is detected that the battery is in a maintenance mode;

[0020] A processing module, used for reducing the output power of the power adapter to a first power when the battery power is greater than the maintenance power;

[0021] The second detection module is used to detect whether the discharge current of the battery is within a set range;

[0022] The processing module is also used to maintain the output power of the power adapter at a first power when the discharge current of the battery is within a set range, and to adjust the output power of the power adapter to a set power when the battery power is equal to the maintenance power, and the set power is greater than the first power.

[0023] In a possible implementation manner, the condition for maintaining the output power of the power adapter at the first power may include: the discharge current of the battery is maintained within a set range for a set period of time.

[0024] In one possible implementation, the processing module may also be used to: if the discharge current of the battery is less than a smaller boundary value of a set range, gradually reduce the output power of the power adapter until the discharge current of the battery is within the set range after the output power is reduced; maintain the output power of the power adapter, and when the battery power is equal to the maintenance power, adjust the output power of the power adapter to the set power.

[0025] In one possible implementation, the processing module can also be used for: if the discharge current of the battery is greater than the larger boundary value of the set range, restoring the output power of the power adapter to the power level previous to the current power, until the discharge current of the battery is within the set range after the output power is restored; maintaining the output power of the power adapter, and when the battery power is equal to the maintenance power, adjusting the output power of the power adapter to the set power.

[0026] In a possible implementation manner, the processing module may also be used to:

[0027] If the battery power is less than the maintenance power, the charging function is turned on until the battery power reaches the maintenance power, and then the charging function is turned off;

[0028] If the battery power is equal to the maintenance power, the charging function is turned off.

[0029] In a possible implementation manner, the boundary value of the set range is set according to the maximum safe discharge current of the battery.

[0030] In a third aspect, the present application provides an electronic device, including: a memory, a processor;

[0031] Memory for storing computer-executable instructions;

[0032] The processor is used to execute the above-mentioned computer execution instructions to implement the discharge control method of the battery as described in the first aspect.

[0033] In a fourth aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, the discharge control method of the battery according to the first aspect is implemented.

[0034] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the discharge control method of a battery as in the first aspect.

[0035] The battery discharge control method, device and storage medium provided by the present application detect the battery power of the battery when it is detected that the battery is in the maintenance mode; if the battery power is greater than the maintenance power, the output power of the power adapter is reduced to the first power; and detect whether the discharge current of the battery is within the set range; if the discharge current is within the set range, the output power of the power adapter is maintained at the first power, and when the battery power is equal to the maintenance power, the output power of the power adapter is adjusted to the set power, and the set power is greater than the first power. It is achieved that the battery can be quickly discharged to the maintenance mode by dynamically adjusting the output power of the power adapter without affecting the system performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0037] Figure 1 An example diagram of an application scenario of the battery discharge control method provided in an embodiment of the present application;

[0038] Figure 2 A schematic flow chart of a battery discharge control method provided in one embodiment of the present application;

[0039] Figure 3 A schematic flow chart of a battery discharge control method provided by another embodiment of the present application;

[0040] Figure 4 A schematic diagram of the structure of a battery discharge control device provided in one embodiment of the present application;

[0041] Figure 5 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application.

[0042] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0043] 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 implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0044] First, the terms involved in this application are explained:

[0045] Embedded Controller (EC): An embedded main control chip under the Low Pin Count (LPC) bus of the Central Processing Unit (CPU). The purpose of the embedded controller is mainly to help computing devices such as laptops manage low-speed peripherals, such as touchpads, matrix keyboards, etc. The most important thing is that laptops use EC to manage power.

[0046] In view of the forced discharge existing in the related technology, the discharge power of many portable devices (such as laptops) cannot meet the performance requirements of the system, resulting in abnormal shutdown or system performance degradation. Based on this problem, the present application provides a battery discharge control method, device and storage medium, which dynamically and step by step reduces the output power limit of the power adapter, allowing the battery to assist the power adapter to jointly supply power to the system, so that the battery can be quickly discharged to the maintenance mode while ensuring that the system performance is not affected.

[0047] Figure 1 This is an example diagram of an application scenario of the battery discharge control method provided in the embodiment of the present application. Figure 1 As shown, when maintaining the battery of the laptop computer, the battery is set to maintenance mode, that is, the battery enters the maintenance mode. After that, the laptop computer dynamically adjusts the output power of the power adapter according to the battery power. For example, when the battery power is greater than the maintenance power, the output power of the power adapter is dynamically reduced step by step, so that the laptop battery assists the power adapter to supply power to the system. This can ensure that the laptop battery is quickly discharged to the maintenance mode while ensuring that the system performance is not affected.

[0048] It should be noted that Figure 1 This is only an example of the application scenario of the present application and does not constitute a limitation of the present application. For example, the laptop computer can also be replaced by other portable devices with a battery and a power adapter.

[0049] Next, the discharge control method of the battery is described in detail in conjunction with a specific embodiment.

[0050] Figure 2 This is a flow chart of a battery discharge control method provided in an embodiment of the present application. It can be understood that the present application embodiment provides a battery discharge control method, and its execution subject can be Figure 1 EC in a laptop or other components with certain computing power, such as a processor, is used as an example here. Figure 2 As shown, the discharge control method of the battery includes:

[0051] S21, when it is detected that the battery is in the maintenance mode, detecting the battery power of the battery.

[0052] When the battery of the portable device needs to be maintained, the user turns on / starts the maintenance mode of the battery. Correspondingly, the EC detects whether the battery is in the maintenance mode, and if it is detected that the battery is in the maintenance mode, performs an operation of detecting the current battery power of the battery.

[0053] S22: If the battery power is greater than the maintenance power, the output power of the power adapter is reduced to a first power.

[0054] The battery life of different portable devices may be different. For example, the battery life of a laptop computer may be 50%. For a portable device, the output power of the power adapter may be the energy provided by the power adapter to the portable device per unit time.

[0055] It is understood that, initially, the output power of the power adapter is the set power. In response to the battery power being greater than the maintenance power, the EC will reduce the output power of the power adapter from the set power to the first power. For example, the set power may be the rated output power of the power adapter.

[0056] Optionally, the discharge control method of the battery may further include: in response to the battery power being equal to the maintenance power, the EC turning off the charging function; and / or, in response to the battery power being less than the maintenance power, the EC turning on the charging function, and turning off the charging function after the battery power is equal to the maintenance power.

[0057] S23, detecting whether the discharge current of the battery is within a set range.

[0058] After reducing the output power of the power adapter to the first power, the EC detects in real time whether the discharge current of the battery is within a set range in the current state.

[0059] Optionally, the boundary value of the setting range is set according to the maximum safe discharge current of the battery. The setting ranges corresponding to different batteries may be different or the same, so the setting range can be selected according to the battery. As a possible implementation, the boundary value of the setting range does not exceed the maximum safe discharge current of the battery. For a battery with a maintenance power of 50%, the corresponding setting range may be 0.5C-1C, where C is the capacity of the battery.

[0060] In response to the discharge current of the battery being within the set range, step S24 is executed.

[0061] S24, maintaining the output power of the power adapter at the first power, and when the power of the battery is equal to the maintenance power, adjusting the output power of the power adapter to a set power, the set power being greater than the first power.

[0062] In some embodiments, the condition for maintaining the output power of the power adapter at the first power may include: the discharge current of the battery is maintained within a set range for a set time. That is, the output power of the power adapter will be maintained at the first power only when the discharge current of the battery is within the set range and maintained for a set time. For example, the set time can be 1 second or other data, which can be set according to actual needs or historical experience.

[0063] In the process of maintaining the output power of the power adapter, the battery power is detected in real time, and when the battery power is equal to the maintenance power, the output power of the power adapter is adjusted to the set power, that is, after discharging to the maintenance power, the output power of the power adapter is adjusted back to the set power to avoid system performance degradation caused by output power adjustment.

[0064] In the embodiment of the present application, when it is detected that the battery is in the maintenance mode, the battery power of the battery is detected. If the battery power is greater than the maintenance power, the output power of the power adapter is reduced to the first power; then, whether the discharge current of the battery is within the set range is detected. If the discharge current of the battery is within the set range, the output power of the power adapter is maintained at the first power, and when the battery power is equal to the maintenance power, the output power of the power adapter is adjusted to the set power. Through the embodiment of the present application, the battery can be quickly discharged to the maintenance power without affecting the system performance. For example, the battery can be discharged to the maintenance power in 1 to 2 hours.

[0065] On the basis of the above embodiment, the battery discharge control method may further include: in response to the battery discharge current not being within the set range, continuing to adjust the output power of the power adapter. The following is a specific description:

[0066] In one implementation, in response to the discharge current of the battery being less than a smaller boundary value of a set range, the output power of the power adapter is gradually reduced until the discharge current of the battery is within the set range after the output power is reduced; thereafter, the output power of the power adapter is maintained, and when the battery power is equal to the maintenance power, the output power of the power adapter is adjusted to the set power.

[0067] In some embodiments, the output power of the power adapter is gradually reduced only when the discharge current of the battery is less than the smaller boundary value of the set range for a period of time. The period of time may be equal to the above-mentioned set period of time, which may be 1 second or other data, and may also be set according to actual needs or historical experience.

[0068] In another implementation, in response to the discharge current of the battery being greater than a larger boundary value of a set range, the output power of the power adapter is restored to the power level previous to the current power until the discharge current of the battery is within the set range after the output power is restored; thereafter, the output power of the power adapter is maintained, and when the battery power is equal to the maintenance power, the output power of the power adapter is adjusted to the set power.

[0069] In some embodiments, the output power of the power adapter will be restored to the previous level of power only when the discharge current of the battery is greater than the larger boundary value of the set range for a period of time. The time period can be equal to the above-mentioned set time period, which can be 1 second or other data, and can also be set according to actual needs or historical experience.

[0070] For example, in response to the situation that the discharge current of the battery is less than the smaller boundary value of the set range for 1 second, the output power of the power adapter is reduced to 70%; thereafter, it is detected whether the discharge current of the battery is within the set range; if the discharge current of the battery is within the set range, the output power of the power adapter is maintained at 70%, and when the battery power is equal to the maintenance power, the output power of the power adapter is adjusted to the set power; if the discharge current of the battery is not within the set range and is still less than the smaller boundary value of the set range, the output power of the power adapter is reduced to 60%, and the above cycle is repeated by analogy; if the discharge current of the battery is not within the set range and is greater than the larger boundary value of the set range, the output power of the power adapter is restored to 80%, and the above cycle is repeated by analogy.

[0071] For example, refer to Figure 3 , after the laptop enters battery care mode, EC performs the following operations:

[0072] S31, checking whether the battery power is ≤50%.

[0073] In this embodiment, the maintenance power of the laptop battery is set to 50%, and the EC detects whether the battery power of the battery is less than or equal to 50% of the battery capacity. If the battery power of the battery is less than or equal to 50% of the battery capacity, S32 is executed; if the battery power of the battery is greater than 50% of the battery capacity, S33 is executed.

[0074] S32, checking whether the battery power is less than 50%.

[0075] EC detects whether the battery power of the battery is less than 50% of the battery capacity. If the battery power of the battery is less than 50% of the battery capacity, the charging function is maintained until the battery power reaches 50% and the charging is stopped; if the battery power of the battery is equal to 50% of the battery capacity, the charging function is turned off.

[0076] S33, the power adapter output power is reduced to 80% of the rated power.

[0077] When the battery power of the battery is greater than 50% of the battery capacity, the EC reduces the output power of the power adapter from the rated power to 80% of the rated power. It should be understood that the rated power is the above-mentioned set power.

[0078] S34, detecting whether the battery discharge current is greater than 0.5C and less than 1C.

[0079] That is, the EC detects whether the battery discharge current (i.e., the battery discharge current) is between 0.5C and 1C. Wherein, C represents the rated capacity of the battery, and 1C represents the rated discharge current of the battery; when the EC detects whether the battery discharge current is between 0.5C and 1C, the discharge current does not include two discrete values ​​of 0.5C and 1C. If the EC detects that the battery discharge current is between 0.5C and 1C, S35 is executed; if the EC detects that the battery discharge current is not between 0.5C and 1C, S36 is executed.

[0080] S35, checking whether the battery power is 50%.

[0081] If the battery power is equal to 50%, the output power of the power adapter is restored, that is, the output power of the power adapter is restored to the rated power; if the battery power is not equal to 50%, the battery discharge state is continued.

[0082] S36, detecting whether the battery discharge current is ≤0.5C.

[0083] If the battery discharge current is greater than or equal to 1C, the power adapter is controlled to restore to the previous level of output power, and then the battery is kept in the discharge state; if the battery discharge current is less than or equal to 0.5C, S37 is executed.

[0084] S37, the output power of the power adapter is reduced to 70% of the rated power, and the battery discharge current is detected to see if it is between 0.5C and 1C, and so on to 60%, 50%, 40%...

[0085] Optionally, if the battery discharge current is less than 0.5C, the output power of the power adapter is reduced to 60% of the rated power. The battery discharge current is detected again to see if it is less than 0.5C. If the battery discharge current is less than 0.5C, the output power of the power adapter is reduced to 50% of the rated power, and so on, until the battery discharge current is not less than 0.5C.

[0086] Furthermore, the discharge current of the battery is maintained within a set range for a set time period. For example, the discharge current of the battery is maintained for 1 second.

[0087] Optionally, the battery maintenance power is 50%, which is only used as an example. Since the maintenance power of different brands may vary, the battery maintenance power here can be understood as an arbitrary value.

[0088] Through the embodiments of the present application, when the power level of the laptop computer is greater than 50%, the adapter output power can be dynamically and gradually reduced to allow the battery to quickly discharge and enter the maintenance mode without affecting system performance.

[0089] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0090] Figure 4 Schematic diagram of the structure of a battery discharge control device provided in one embodiment of the present application. The present application embodiment provides a battery discharge control device. Figure 4 As shown, the discharge control device 40 of the battery includes:

[0091] The first detection module 41 is used to detect the battery power of the battery when it is detected that the battery is in the maintenance mode;

[0092] The processing module 42 is used to reduce the output power of the power adapter to a first power when the battery power is greater than the maintenance power;

[0093] A second detection module 43, used to detect whether the discharge current of the battery is within a set range;

[0094] Among them, the processing module 42 is also used to maintain the output power of the power adapter at a first power when the discharge current of the battery is within a set range, and to adjust the output power of the power adapter to a set power when the battery power is equal to the maintenance power, and the set power is greater than the first power.

[0095] In some embodiments, the condition for maintaining the output power of the power adapter at the first power may include: the discharge current of the battery remains within a set range for a set period of time.

[0096] In some embodiments, the processing module 42 can also be used to: if the discharge current of the battery is less than the smaller boundary value of the set range, gradually reduce the output power of the power adapter until the discharge current of the battery is within the set range after the output power is reduced; maintain the output power of the power adapter, and when the battery power is equal to the maintenance power, adjust the output power of the power adapter to the set power.

[0097] In some embodiments, the processing module 42 can also be used to: if the discharge current of the battery is greater than the larger boundary value of the set range, restore the output power of the power adapter to the previous power level of the current power, until the discharge current of the battery is within the set range after the output power is restored; maintain the output power of the power adapter, and when the battery power is equal to the maintenance power, adjust the output power of the power adapter to the set power.

[0098] In some embodiments, the processing module 42 may also be used to:

[0099] If the battery power is less than the maintenance power, the charging function is turned on until the battery power reaches the maintenance power, and then the charging function is turned off;

[0100] If the battery power is equal to the maintenance power, the charging function is turned off.

[0101] In some embodiments, the boundary value of the set range is set according to the maximum safe discharge current of the battery.

[0102] The device of this embodiment can be used to implement the technical solution of the discharge control method of the battery in any of the above-mentioned method embodiments. Its implementation principle and technical effect are similar and will not be repeated here.

[0103] Figure 5 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 5 , the electronic device 500 may include one or more of the following components:

[0104] The processing component 502 further includes one or more processors, and a memory resource represented by a memory 504 for storing program instructions, such as an application, that can be executed by the processing component 502. The application stored in the memory 504 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 502 is configured to execute the program instructions to perform the steps performed by the EC in the above method embodiment.

[0105] The memory 504 is configured to store various types of data to support operations on the electronic device 500. Examples of such data include instructions for any application or method operating on the electronic device 500. The memory 504 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.

[0106] The electronic device 500 may further include a power supply component 506, a wired or wireless network interface 508, and an input / output interface 510. Among them:

[0107] The power supply component 506 provides power to the various components of the electronic device 500. The power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 500.

[0108] The network interface 508 is configured to connect the electronic device 500 to a network.

[0109] In an exemplary embodiment, the electronic device 500 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above method.

[0110] An embodiment of the present application also provides a computer-readable storage medium, which stores computer execution instructions. When the computer execution instructions are executed, the solution of the testing method of the above-mentioned vehicle-mounted unit is implemented. The specific implementation method and technical effect are similar and will not be repeated here.

[0111] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the above-mentioned method for testing the on-board unit.

[0112] It should be noted that the computer-readable storage medium may be a ROM, PROM, EPROM, EEPROM, Ferromagnetic Random Access Memory (FRAM), Flash Memory, magnetic surface memory, optical disk, or Compact Disc Read-Only Memory (CD-ROM). It may also be various electronic devices including one or any combination of the above memories, such as computers, tablet devices, personal digital assistants, etc.

[0113] An exemplary readable storage medium is coupled to the processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be an integral part of the processor. The processor and the readable storage medium can be located in an ASIC. Of course, the processor and the readable storage medium can also be present as discrete components in the test device of the vehicle-mounted unit.

[0114] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0115] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0116] It should be understood that the present application is not limited to the precise 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 application is limited only by the appended claims.

Claims

1. A battery discharge control method, characterized in that: include: In case of detecting that the battery is in a maintenance mode, detecting the battery charge of the battery; If the battery power is greater than the maintenance power, the output power of the power adapter is reduced to the first power; and the discharge current of the battery is detected to be within a set range; If the discharge current of the battery is within the set range, the output power of the power adapter is maintained at the first power, and when the power of the battery is equal to the maintenance power, the output power of the power adapter is adjusted to a set power, and the set power is greater than the first power; If the discharge current of the battery is less than the smaller boundary value of the set range, the output power of the power adapter is gradually reduced until the discharge current of the battery is within the set range after the output power is reduced; Maintaining the output power of the power adapter, and when the power level of the battery is equal to the maintenance power level, adjusting the output power of the power adapter to the set power; If the discharge current of the battery is greater than the larger boundary value of the set range, the output power of the power adapter is restored to the power level above the current power until the discharge current of the battery is within the set range after the output power is restored; The output power of the power adapter is maintained, and when the power level of the battery is equal to the maintenance power level, the output power of the power adapter is adjusted to the set power.

2. The discharge control method according to claim 1, characterized in that: The condition for maintaining the output power of the power adapter at the first power includes: the discharge current of the battery is maintained within the set range for a set period of time.

3. The discharge control method according to claim 1 or 2, characterized in that: Also includes: If the battery power is less than the maintenance power, the charging function is turned on until the battery power is equal to the maintenance power, and then the charging function is turned off; If the battery power is equal to the maintenance power, the charging function is turned off.

4. The discharge control method according to claim 1 or 2, characterized in that: The boundary value of the set range is set according to the maximum safe discharge current of the battery.

5. A battery discharge control device, characterized in that: include: A first detection module, configured to detect the battery power of the battery when it is detected that the battery is in a maintenance mode; A processing module, configured to reduce the output power of the power adapter to a first power when the battery power is greater than the maintenance power; A second detection module, used to detect whether the discharge current of the battery is within a set range; The processing module is further configured to maintain the output power of the power adapter at the first power when the discharge current of the battery is within the set range, and to adjust the output power of the power adapter to a set power when the power of the battery is equal to the maintenance power, wherein the set power is greater than the first power; The processing module is further configured to, if the discharge current of the battery is less than a smaller boundary value of the set range, gradually reduce the output power of the power adapter until the discharge current of the battery is within the set range after the output power is reduced; maintain the output power of the power adapter, and when the power of the battery is equal to the maintenance power, adjust the output power of the power adapter to the set power; The processing module is also used to restore the output power of the power adapter to the previous level of power of the current power if the discharge current of the battery is greater than the larger boundary value of the set range, until the discharge current of the battery is within the set range after the output power is restored; maintain the output power of the power adapter, and adjust the output power of the power adapter to the set power when the battery power is equal to the maintenance power.

6. An electronic device comprising: Memory, processor; The memory is used to store computer-executable instructions; The processor is used to execute the computer-executable instruction to implement the discharge control method of the battery according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the discharge control method for a battery according to any one of claims 1 to 4 is implemented.

8. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the discharge control method of the battery according to any one of claims 1 to 4.