Battery backup control method and apparatus, server, and nonvolatile readable storage medium

By switching to the hot standby power supply mode and adjusting the charge and discharge threshold when the power supply unit is non-redundant, the problem of data loss under non-redundant power supply is solved, and the stability of the storage system and the service life of the battery are improved.

WO2024187907A1PCT designated stage expired Publication Date: 2024-09-19LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/141946
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-14
Filing Date
2023-12-26
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

When the power supply unit is in a non-redundant state, the storage device is easily powered off due to the inability of the internal battery capacitor to work, resulting in data loss.

Method used

By detecting the status of the power supply unit, if it is non-redundant, the battery is controlled to enter the hot backup power supply mode, and the charge and discharge are adjusted in real time according to the battery's charge cut-off current threshold and working status to ensure that the battery continues to provide power supply capability after a power outage.

Benefits of technology

It improves the power supply stability and reliability of the storage system, reduces the risk of data loss, and extends the service life of the battery by adjusting the charge and discharge thresholds.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023141946_19092024_PF_FP_ABST
    Figure CN2023141946_19092024_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the field of battery power supply. Disclosed in the present application are a battery backup control method and apparatus, a server and a nonvolatile readable storage medium. The method comprises: when it is detected that a power supply unit is under a non-redundant power supply condition, acquiring a current backup state of a battery, backup states comprising a cold backup state and a hot backup state; when the current backup state is the hot backup state, maintaining the hot backup state; when the current backup state is the cold backup state, issuing a discharge enable signal to the battery; and, according to the discharge enable signal, controlling the current backup state of the battery to be updated from the cold backup state to the hot backup state. In the method, when it is detected that the power supply unit is in a non-redundant power supply mode, the battery is controlled to perform hot-backup power supply, which provides a discharge capability to the outside; and therefore, when the power supply unit is powered off, the battery can serve as the power supply unit for data backup so as to improve the stability and reliability of power supply for storage systems and reduce the risk of data loss.
Need to check novelty before this filing date? Find Prior Art

Description

A battery backup power control method, device, server and non-volatile readable storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on March 14, 2023, with application number 2023102391691, and entitled “A method, device, server and medium for controlling battery backup power”, the entire contents of which are incorporated herein by reference. Technical Field

[0003] The present application relates to the field of battery power supply, and in particular to a battery backup power control method, device, server and non-volatile readable storage medium. Background Art

[0004] Storage devices require batteries as a power supply unit for data backup after a power outage. This is the last line of defense against data loss. The stability of the power supply unit (PSU) after a power outage is crucial. Battery backup units (BBUs) offer hot and cold backup modes. The most common backup mode is cold battery backup. This means that if a PSU power failure occurs, the hardware switches to battery power within milliseconds, maintained by the PSU's internal capacitors. PSUs offer either redundant or non-redundant power. Redundant power is provided by two PSUs simultaneously, while non-redundant power is provided by a single PSU. In non-redundant power, if a PSU experiences a main circuit topology anomaly (e.g., damage to a critical component) or a short circuit, the internal capacitors will cease functioning, causing the PSU to stop supplying power, shutting down the storage device and resulting in data loss.

[0005] Therefore, when the power supply unit is in a non-redundant state, how to ensure that data is not lost as much as possible is a technical problem that people in this field need to solve urgently.

[0006] Summary of the Invention

[0007] The purpose of this application is to provide a battery backup control method, device, server and non-volatile readable storage medium, which are configured to reduce the risk of data loss when the power supply unit is in a non-redundant state.

[0008] To solve the above technical problems, the present application provides a battery backup power control method, comprising:

[0009] When it is detected that the power supply unit is in a non-redundant power supply state, obtaining the current backup power state of the battery; wherein the backup power state includes a cold backup state and a hot backup state;

[0010] When the current backup power state is hot standby state, maintain the hot standby state;

[0011] When the current backup power state is the cold backup state, a discharge enable signal is sent to the battery; and the current backup power state of the battery is controlled to be updated from the cold backup state to the hot backup state according to the discharge enable signal.

[0012] Optionally, after detecting that the current backup state is the hot backup state, or controlling the current backup state of the battery to be updated from the cold backup state to the hot backup state according to the discharge enable signal, the method further includes:

[0013] Get the current charging cut-off current threshold of the battery;

[0014] Lowering the current charge cutoff current threshold to a target charge cutoff current threshold; wherein the target charge cutoff current threshold is less than the current charge cutoff current threshold;

[0015] The charging or discharging of the battery is controlled according to the target charge cut-off current threshold.

[0016] Optionally, determining the target charging cut-off current threshold includes:

[0017] Get the voltage corresponding to when the battery meets the double reserve capacity after one charge;

[0018] The target charge cut-off current threshold is determined according to the voltage.

[0019] Optionally, after controlling the charging or discharging of the battery according to the target charging cut-off current threshold, the method further includes:

[0020] The full charge status of the battery is judged to determine the current working state of the battery; wherein the working state of the battery includes uncharged state, charged state, fully charged state, and idle state.

[0021] Optionally, judging the full charge status of the battery to determine the current working status of the battery includes:

[0022] Get the current voltage, current, and full charge voltage threshold of the battery;

[0023] The full charge condition of the battery is judged based on the current voltage value, current current value, target charge cut-off current threshold, and full charge voltage threshold to determine the current working status of the battery.

[0024] Optionally, judging the full charge condition of the battery according to the current voltage value, the current current value, the target charge cut-off current threshold, and the full charge voltage threshold to determine the current working state of the battery includes:

[0025] When the current current value is negative, obtaining the current value at a first preset moment, wherein the first preset moment is a moment before the current moment corresponding to when the current current value is obtained;

[0026] When the current value at the first preset moment is positive and less than the target charge cut-off current threshold, determining whether the current voltage value is greater than the full charge voltage threshold;

[0027] If the current voltage value is greater than the full charge voltage threshold, it is determined that the current working state of the battery is a full charge state;

[0028] If the current voltage value is not greater than the full charge voltage threshold, it is determined that the current working state of the battery is an idle state;

[0029] Under the condition that the current value at the first preset moment is not a positive value and is less than the target charge cut-off current threshold, it is determined that the current working state of the battery is an uncharged state.

[0030] Optionally, after detecting that the current value is a negative value and before obtaining the current value at the first preset moment, the method further includes:

[0031] Determine whether the current backup power state is hot backup state;

[0032] When the current standby power state is the hot standby state, the step of obtaining the current at the first preset moment is entered;

[0033] When the current standby state is not the hot standby state, it is determined that the current working state of the battery is the uncharged state.

[0034] Optionally, after obtaining the current voltage value, current current value, and full charge voltage threshold of the battery, the method further includes:

[0035] Determine whether the current value is equal to 0;

[0036] If the current current value is equal to 0, the current value at a second preset moment is obtained, wherein the second preset moment is a moment before the current moment corresponding to when the current current value is obtained;

[0037] When the current value at the second preset moment is equal to 0, determine whether the current voltage value is greater than the full charge voltage threshold; when the current voltage value is greater than the full charge voltage threshold, determine that the current working state of the battery is a full charge state; when the current voltage value is not greater than the full charge voltage threshold, determine that the current working state of the battery is an idle state.

[0038] Optionally, the full charge voltage threshold is determined according to the chemical characteristics of the battery.

[0039] Optionally, after obtaining the current current value of the battery, the method further includes:

[0040] Determine whether the current value is positive;

[0041] When the current current value is positive, it is determined that the current working state of the battery is a charging state.

[0042] Optionally, the method further comprises:

[0043] When it is detected that the power supply unit is in redundant power supply mode, the current backup state of the control battery is in cold standby mode.

[0044] Optionally, before determining whether the current value is equal to 0, the method further includes:

[0045] In a cold standby charging scenario, obtaining a charging current value of the battery at each moment within a first preset time period;

[0046] When the charging current value at each moment is less than the target charging cut-off current threshold, the battery is controlled to stop charging and the step of determining whether the current current value is equal to 0 is entered; when the current current value is equal to 0, the step of obtaining the current value at the second preset moment is entered.

[0047] Optionally, after controlling the battery to stop charging and before determining whether the current value is equal to 0, the method further includes:

[0048] Starting from controlling the battery to stop charging, obtaining the current value at each moment within a second preset time period;

[0049] If the current values ​​at each moment are all equal to 0, the process proceeds to a step of determining whether the current current value is equal to 0. If the current current value is equal to 0, the process proceeds to a step of obtaining the current at the second preset moment.

[0050] Optionally, after detecting that the current backup state is the hot standby state, or controlling the current backup state of the battery to be updated from the cold standby state to the hot standby state according to the discharge enable signal, or after controlling the current backup state of the battery to be the cold standby state, the method further includes:

[0051] Obtain the current battery backup status at a fixed frequency;

[0052] Controls battery charging or discharging based on the current backup power status.

[0053] Optionally, after obtaining the current backup state of the battery at a fixed frequency, the method further includes:

[0054] After the current backup power status of the battery is acquired, information about the current backup power status is output within a third preset time period.

[0055] Optionally, after determining the full charge status of the battery to determine the current working status of the battery, the method further includes:

[0056] Set different prompt messages according to the current working status of the battery.

[0057] Optionally, the method comprises:

[0058] Real-time monitoring of the IO status of the power supply unit;

[0059] The redundancy status of the power supply unit is determined according to the IO status.

[0060] In order to solve the above technical problems, the present application also provides a battery backup power control device, comprising:

[0061] an acquisition module configured to acquire a current backup power state of the battery when detecting that the power supply unit is in a non-redundant power supply state; wherein the backup power state includes a cold backup state and a hot backup state;

[0062] The holding module is configured to maintain the hot standby state when the current standby power state is the hot standby state;

[0063] The sending and control module is configured to send a discharge enable signal to the battery when the current standby power state is the cold standby state; and control the current standby power state of the battery to be updated from the cold standby state to the hot standby state according to the discharge enable signal.

[0064] In order to solve the above technical problems, the present application also provides a server, including:

[0065] a memory arranged to store a computer program;

[0066] The processor is configured to implement the steps of the above-mentioned battery backup power control method when executing the computer program.

[0067] In order to solve the above technical problems, the present application also provides a non-volatile readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned battery backup power control method are implemented.

[0068] The battery backup control method provided in the present application includes: obtaining the current backup state of the battery when it is detected that the power supply unit is non-redundantly powered; wherein the backup state includes a cold standby state and a hot standby state; when the current backup state is the hot standby state, maintaining the hot standby state; when the current backup state is the cold standby state, sending a discharge enable signal to the battery; and controlling the current backup state of the battery to be updated from the cold standby state to the hot standby state according to the discharge enable signal. Compared with the previous method of using cold standby power supply when the power supply unit is non-redundantly powered, when the power supply unit is powered off, the storage device will be directly powered off, resulting in data loss. In the method provided in the present application, when it is detected that the power supply unit is non-redundantly powered, the battery is controlled to be hot standby power supply. Since the hot standby power supply provides external discharge capability, after the power supply unit is powered off, the battery can be used as a data backup power supply unit, thereby improving the power supply stability and reliability of the storage system and reducing the risk of data loss.

[0069] In addition, the present application also provides a battery backup power control device, equipment and non-volatile readable storage medium, which have the same or corresponding technical features as the above-mentioned battery backup power control method and have the same effects as above. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0071] FIG1 is a flow chart of a method for controlling battery backup power provided by an embodiment of the present application;

[0072] FIG2 is a flow chart of a charging processing method provided in an embodiment of the present application;

[0073] FIG3 is a structural diagram of a battery backup control device provided in one embodiment of the present application;

[0074] FIG4 is a structural diagram of a server provided in another embodiment of the present application;

[0075] FIG5 is a flowchart of a method for processing battery cold standby and hot standby switching provided in an embodiment of the present application. DETAILED DESCRIPTION

[0076] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0077] The core of this application is to provide a battery backup control method, device, server and non-volatile readable storage medium, which are configured to reduce the risk of data loss when the power supply unit is in a non-redundant state.

[0078] Preventing data loss in storage devices is crucial. Storage devices contain a power supply unit and a battery unit. The battery unit is typically a hardware battery pack. If the power supply unit loses power, the battery acts as a backup power source for data, playing a crucial role in protecting the data in the storage device.

[0079] In order to enable those skilled in the art to better understand the present application, the present application is described below in conjunction with the accompanying drawings and optional implementation methods. FIG1 is a flow chart of a battery backup power control method provided in an embodiment of the present application. As shown in FIG1 , the method includes:

[0080] S10: When it is detected that the power supply unit is in a non-redundant power supply state, obtaining a current backup power state of the battery;

[0081] Among them, the backup power state includes cold backup state and hot backup state;

[0082] S11: Determine whether the current backup power state is a hot backup state. If the current backup power state is a hot backup state, proceed to step S12; if the current backup power state is not a hot backup state, proceed to step S13;

[0083] S12: Maintain hot standby status;

[0084] S13: Sending a discharge enable signal to the battery; controlling the current backup state of the battery to be updated from a cold backup state to a hot backup state according to the discharge enable signal.

[0085] The battery unit's backup power modes include cold and hot standby. In cold standby mode, if the power supply unit experiences a power failure, the hardware switches to the battery unit within a few milliseconds. During this period, the internal capacitor of the power supply unit maintains power. In hot standby mode, the battery unit's discharge branch remains open, providing continuous discharge capacity to ensure stable supply voltage.

[0086] When there are multiple power supply units (i.e., the power supply units are redundant), and the multiple power supply units supply power at the same time, when one power supply unit is powered off or fails, it can still maintain power supply through the internal capacitor of the normally working power supply unit, and then switch to the battery unit for power supply within a few milliseconds. Therefore, when it is detected that the power supply unit is redundantly supplied, the current backup state of the control battery is cold standby. However, when there is only one power supply unit (i.e., the power supply unit is non-redundant), after the power supply unit is powered off or fails, the power supply unit inside the power supply unit will not be able to work, the power supply unit will directly stop supplying power, the storage device will be powered off directly, and the data will be lost. Therefore, the battery backup control method proposed in this embodiment adopts hot backup power supply when the power supply unit is non-redundantly supplied, and the hot backup power supply provides external discharge capability. Therefore, after the power supply unit is powered off, the battery can serve as a power supply unit for data backup, thereby improving the power supply stability and reliability of the storage system and reducing the risk of data loss.

[0087] In implementation, a complex programmable logic device (CPLD) monitors the I / O status of the power supply unit, and determines the redundancy status of the power supply unit based on the I / O status. There is no limit on the frequency at which the CPLD monitors the I / O status of the power supply unit. To ensure real-time understanding of the I / O status of the power supply unit, an optional implementation involves monitoring the I / O status of the power supply unit in real time using the CPLD; and determining the redundancy status of the power supply unit based on the IO status obtained through real-time monitoring.

[0088] When using cold backup power, if the power supply unit is non-redundant and the power supply unit experiences a main circuit topology anomaly (critical component damage) or a short circuit, the internal capacitor will not function. In this case, the power supply unit will directly stop supplying power, and the storage device will be powered off, resulting in data loss. Therefore, this embodiment ensures that the battery backup mode is hot backup power when it is detected that the power supply unit is non-redundant.

[0089] Optionally, first obtain the current backup power status of the battery. When the current backup power status is cold standby, it is necessary to send a discharge enable signal to the battery. After receiving the discharge enable, the battery will open the discharge branch and continue to provide discharge capability to the outside, thereby updating the current backup power status from cold standby to hot standby. When the current backup power status is hot standby, there is no need to adjust the backup power mode, and the hot standby status can be maintained.

[0090] The battery backup control method provided in this embodiment includes: obtaining the current backup state of the battery when it is detected that the power supply unit is in a non-redundant power supply mode; wherein the backup state includes a cold backup state and a hot backup state; maintaining the hot backup state when the current backup state is in a hot backup state; sending a discharge enable signal to the battery when the current backup state is in a cold backup state; and controlling the current backup state of the battery to be updated from a cold backup state to a hot backup state according to the discharge enable signal. Compared with the previous method of using a cold backup power supply when the power supply unit is in a non-redundant power supply mode, when the power supply unit is powered off, the storage device will be powered off directly, resulting in data loss. In the method provided in this embodiment, when it is detected that the power supply unit is in a non-redundant power supply mode, the battery is controlled to be in a hot backup power supply mode. Since the hot backup power supply provides external discharge capability, after the power supply unit is powered off, the battery can serve as a data backup power supply unit, thereby improving the power supply stability and reliability of the storage system and reducing the risk of data loss.

[0091] When the current backup state of the power supply is in the hot standby state, or when it is updated to the hot standby state, since the battery hot standby needs to pass through the BUCK circuit for step-down output, the Metal Oxide Semiconductor Field Effect Transistor (MOSFET) (MOS for short) switch in the BUCK circuit will have losses, so there will be a leakage current problem. If leakage current always exists, it will affect the service life of the battery. Therefore, in implementation, an optional implementation method is that after detecting that the current backup state is in the hot standby state, or after controlling the current backup state of the battery to be updated from the cold standby state to the hot standby state according to the discharge enable signal, the battery backup control method also includes:

[0092] Get the current charging cut-off current threshold of the battery;

[0093] Lowering the current charge cutoff current threshold to a target charge cutoff current threshold; wherein the target charge cutoff current threshold is less than the current charge cutoff current threshold;

[0094] The charging or discharging of the battery is controlled according to the target charge cut-off current threshold.

[0095] Determining the target charge cut-off current threshold includes:

[0096] Get the voltage corresponding to when the battery meets the double reserve capacity after one charge;

[0097] The target charge cut-off current threshold is determined according to the voltage.

[0098] It should be noted that the charge cutoff current threshold here refers to the minimum charge threshold. The minimum charge threshold is determined by the battery's discharge capacity. When the battery is in hot standby mode, leakage current will frequently trigger battery charging, affecting the battery's service life. Therefore, the current charge cutoff current threshold is lowered to the target charge cutoff current threshold.

[0099] In the method provided in this embodiment, the target charge cut-off current threshold is lowered, thereby reducing the charge and discharge switching frequency, thereby improving the service life of the battery.

[0100] After controlling the charging or discharging of the battery according to the target charge cut-off current threshold, in order to more accurately obtain the working status of the battery, an optional implementation manner is that the battery backup power control method further includes:

[0101] The full charge status of the battery is judged to determine the current working state of the battery; wherein the working state of the battery includes uncharged state, charged state, fully charged state, and idle state.

[0102] Optionally, judging the full charge status of the battery to determine the current working status of the battery includes:

[0103] Get the current voltage, current, and full charge voltage threshold of the battery;

[0104] The full charge condition of the battery is judged based on the current voltage value, current current value, target charge cut-off current threshold, and full charge voltage threshold to determine the current working status of the battery.

[0105] In one embodiment, judging the full charge condition of the battery based on the current voltage value, the current current value, the target charge cut-off current threshold, and the full charge voltage threshold to determine the current working state of the battery includes:

[0106] When the current current value is negative, obtaining the current value at a first preset moment, wherein the first preset moment is a moment before the current moment corresponding to when the current current value is obtained;

[0107] When the current value at the first preset moment is positive and less than the target charge cut-off current threshold, determining whether the current voltage value is greater than the full charge voltage threshold;

[0108] If the current voltage value is greater than the full charge voltage threshold, it is determined that the current working state of the battery is a full charge state;

[0109] If the current voltage value is not greater than the full charge voltage threshold, it is determined that the current working state of the battery is an idle state;

[0110] Under the condition that the current value at the first preset moment is not a positive value and is less than the target charge cut-off current threshold, it is determined that the current working state of the battery is an uncharged state.

[0111] There is no limitation on the first preset moment. For example, if the first preset moment is the current value 5s before the current moment, and the current current value is negative, it is determined whether the current value 5s before is positive and less than the target charge cut-off current threshold. If the current value 5s before is positive and less than the target charge cut-off current threshold, it is determined whether the current voltage value is greater than the full charge voltage threshold. There is no limitation on the full charge voltage threshold. In implementation, in order to make the set full charge voltage threshold more reasonable, the full charge voltage threshold is optionally determined according to the chemical characteristics of the battery. When the current voltage value is greater than the full charge voltage threshold, it can be determined that the current working state of the battery is a fully charged state, i.e., a full_charged state; when the current voltage value is not greater than the full charge voltage threshold, it is determined that the current working state of the battery is an idle state; when the current value 5s before does not meet the condition of being a positive value and less than the target charge cut-off current threshold, it is determined that the current working state of the battery is an uncharged state, i.e., a discharging state.

[0112] It should be noted that after determining that the current current value is negative, the battery may be automatically discharged, resulting in a negative current value. Therefore, an optional implementation is that after detecting that the current current value is negative and before obtaining the current value at the first preset moment, the battery backup power control method further includes:

[0113] Determine whether the current backup power state is hot backup state;

[0114] When the current standby power state is the hot standby state, the step of obtaining the current value at the first preset moment is entered;

[0115] When the current standby state is not the hot standby state, it is determined that the current working state of the battery is the uncharged state.

[0116] The method for handling the full charge state in the hot standby scenario after charging is completed provided in this embodiment fully considers the actual impact of leakage current in the hot standby state and realizes precise management of the charging and discharging process.

[0117] In one embodiment, after obtaining the current voltage value, current current value, and full charge voltage threshold of the battery, the battery backup power control method further includes:

[0118] Determine whether the current value is equal to 0;

[0119] If the current current value is equal to 0, the current value at a second preset moment is obtained, wherein the second preset moment is a moment before the current moment corresponding to when the current current value is obtained;

[0120] When the current value at the second preset moment is equal to 0, determine whether the current voltage value is greater than the full charge voltage threshold; when the current voltage value is greater than the full charge voltage threshold, determine that the current working state of the battery is a full charge state; when the current voltage value is not greater than the full charge voltage threshold, determine that the current working state of the battery is an idle state.

[0121] The current value in the hot standby state must be a negative value. Therefore, the current value is equal to 0, indicating that the battery's standby state is not a hot standby state, but charging has stopped. After the current value at the second preset moment is equal to 0, the battery's full charge state is determined. There is no limitation on the second preset moment, which can be the same moment as the first preset moment mentioned above, or it can be a different moment. Here, it is to determine whether the current value at the second preset moment is equal to 0. In practice, the battery's full charge state can be determined after the current value for a period of time before the current moment is continuously 0. If the second preset moment is 5s before the current moment, when the current value 5s before is equal to 0 (or the current value for 5s before the current moment is 0), determine whether the current voltage value is greater than the full charge voltage threshold. If the current voltage value is greater than the full charge voltage threshold, the current working state of the battery is determined to be the full_charged state. If the current voltage value is not greater than the full charge voltage threshold, the current working state of the battery is determined to be the idle state.

[0122] In addition to the above-described working status of the battery, in implementation, after obtaining the current current value of the battery, the battery backup power control method further includes:

[0123] Determine whether the current value is positive;

[0124] When the current current value is positive, it is determined that the current working state of the battery is a charging state.

[0125] In implementation, before determining whether the current value is equal to 0, the battery backup power control method further includes:

[0126] In a cold standby charging scenario, obtaining a charging current value of the battery at each moment within a first preset time period;

[0127] When the charging current value at each moment is less than the target charging cut-off current threshold, the battery is controlled to stop charging and the step of determining whether the current current value is equal to 0 is entered; when the current current value is equal to 0, the step of obtaining the current at the second preset moment is entered.

[0128] After controlling the battery to stop charging and before determining whether the current value is equal to 0, the battery backup power control method further includes:

[0129] Starting from controlling the battery to stop charging, obtaining the current value at each moment within a second preset time period;

[0130] If the current values ​​at each moment are all equal to 0, the process proceeds to a step of determining whether the current current value is equal to 0. If the current current value is equal to 0, the process proceeds to a step of obtaining the current value at the second preset moment.

[0131] There is no limit on the first and second preset time lengths and they are determined based on actual conditions. For example, if the first preset time length is 20 seconds and the second preset time length is 10 seconds, in the cold standby charging scenario, if the battery charging current value is continuously below the target charging cut-off current threshold for 20 seconds, charging will be shut down. If the current value is 0 for 10 consecutive seconds, the battery is judged to be fully charged and the battery working status information will be updated.

[0132] The method provided in this embodiment provides a method for processing a fully charged state in a cold standby scenario after charging is completed, thereby achieving precise management of the charging and discharging process.

[0133] In order to facilitate understanding of the process of handling the full charge state in different scenarios of hot and cold standby after charging is completed, the charging process is further described below in conjunction with Figure 2. Figure 2 is a flow chart of a charging process method provided by an embodiment of the present application. As shown in Figure 2, the method includes:

[0134] S14: Determine whether the current current value is less than 0; if the current current value is less than 0, proceed to step S15; if the current current value is not less than 0, proceed to step S21;

[0135] S15: Determine whether it is in hot standby mode; if it is in hot standby mode, proceed to step S16; if it is not in hot standby mode, proceed to step S17;

[0136] S16: Determine that the battery is in an uncharged state;

[0137] S17: Determine whether the current value 0 < 5s ago is less than the target charge cut-off current threshold; if it is determined that the current value 0 < 5s ago is less than the target charge cut-off current threshold, return to step S16; if it is not determined that the current value 0 < 5s ago is less than the target charge cut-off current threshold, proceed to step S18;

[0138] S18: Determine whether the current voltage value is greater than the full charge voltage threshold; if so, proceed to step S19; if not, proceed to step S20;

[0139] S19: Determine that the battery is in an idle state;

[0140] S20: Determine that the battery is fully charged;

[0141] S21: Determine whether the current value is equal to 0; if the current value is not equal to 0, proceed to step S22; if the current value is equal to 0, proceed to step S23;

[0142] S22: Determine that the battery is in a charging state;

[0143] S23: Determine whether the current value 5 seconds ago is equal to 0; if the current value 5 seconds ago is equal to 0, return to step S18; if the current value 5 seconds ago is not equal to 0, end.

[0144] The entire flowchart mainly includes the following four processes:

[0145] 1. The charge and discharge module obtains the current voltage and current of the battery during the cycle.

[0146] 2. When the current current value is less than 0, determine whether it is in hot standby mode. If not, update the charging state to discharging. If in hot standby mode, continue to determine whether the current value 5 seconds ago is greater than 0 and less than the charge cutoff current. This determination is used to limit the scenario to leakage current after full charging stops. If the current value 5 seconds ago is not greater than 0 and less than the charge cutoff current, update the charging state to discharging. If the current value 5 seconds ago is greater than 0 and less than the charge cutoff current, determine whether the current voltage is greater than the minimum full charge voltage. If so, update the charging state to full_charged; otherwise, update to idle.

[0147] 3. When the current value is equal to 0, it means that the current is not in hot standby mode, but charging has stopped. The current value is 0 5s ago and it is judged to be fully charged.

[0148] 4. When the current value is greater than 0, the charging state is updated to charging state.

[0149] The method provided in this embodiment provides a method for processing the full charge state in different cold and hot standby scenarios after charging is completed, thereby achieving precise management of the charging and discharging process.

[0150] In implementation, in order to achieve charge and discharge control of the battery, an optional implementation method is that after detecting that the current backup state is the hot standby state, or controlling the current backup state of the battery to be updated from the cold standby state to the hot standby state according to the discharge enable signal, or after controlling the current backup state of the battery to be the cold standby state, the battery backup control method further includes:

[0151] Obtain the current battery backup status at a fixed frequency;

[0152] Controls battery charging or discharging based on the current backup power status.

[0153] There is no limit on the fixed frequency. For example, the hot and cold standby status of the battery can be obtained from the CPLD every 5 seconds, so that the battery charge and discharge management can be completed according to the hot and cold standby status of the battery.

[0154] Based on the above embodiment, in order to facilitate the user to understand the current backup power status of the battery, an optional implementation manner is that after obtaining the current backup power status of the battery at a fixed frequency, the battery backup power control method further includes:

[0155] After the current backup power status of the battery is acquired, information about the current backup power status is output within a third preset time period.

[0156] The third preset time period is not limited and is determined according to actual conditions. The method of outputting the information of the battery backup status provided by this embodiment facilitates the user to understand the battery backup status.

[0157] In practice, in order to facilitate the user to understand the working status of the battery, an optional implementation method is that after judging the full charge status of the battery to determine the current working status of the battery, the battery backup power control method further includes:

[0158] Set different prompt messages according to the current working status of the battery.

[0159] There is no limitation on the prompt information set for different working states of the battery, as long as the prompt information is different in different working states. For example, when the battery is fully charged, the control indicator light will turn red as a prompt; when it is charging, the control indicator light will turn green as a prompt; when it is not charging, the control indicator light will turn yellow as a prompt; and when it is idle, the control indicator light will turn white as a prompt.

[0160] This embodiment provides different prompt information according to the current working status of the battery, which helps the user to intuitively understand the current working status of the battery according to the prompt information.

[0161] In the above embodiments, the battery backup control method is described in detail. This application also provides embodiments of a battery backup control device and server. It should be noted that this application describes the device embodiments from two perspectives: one is based on the functional module perspective, and the other is based on the hardware perspective.

[0162] FIG3 is a structural diagram of a battery backup control device according to an embodiment of the present application. This embodiment, based on the functional modules, includes:

[0163] The acquisition module 10 is configured to acquire the current backup power state of the battery when it is detected that the power supply unit is in a non-redundant power supply state; wherein the backup power state includes a cold backup state and a hot backup state;

[0164] The maintaining module 11 is configured to maintain the hot standby state when the current standby power state is the hot standby state;

[0165] The sending and control module 12 is configured to send a discharge enable signal to the battery when the current standby state is the cold standby state; and control the current standby state of the battery to be updated from the cold standby state to the hot standby state according to the discharge enable signal.

[0166] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, and they will not be repeated here.

[0167] The battery backup control device provided in this embodiment, when detecting that the power supply unit is in non-redundant power supply, obtains the current backup power state of the battery through the acquisition module; wherein the backup power state includes a cold backup state and a hot backup state; when the current backup power state is in the hot backup state, the hot backup state is maintained by the maintenance module; when the current backup power state is in the cold backup state, the discharge enable signal is sent to the battery through the sending and control module; and the current backup power state of the battery is controlled to be updated from the cold backup state to the hot backup state according to the discharge enable signal. Compared with the previous method of using cold backup power when the power supply unit is in non-redundant power supply, when the power supply unit is powered off, the storage device will be directly powered off, resulting in data loss. In the device provided in this embodiment, when detecting that the power supply unit is in non-redundant power supply, the battery is controlled to be in hot backup power supply. Since the hot backup power supply provides external discharge capability, after the power supply unit is powered off, the battery can serve as a power supply unit for data backup, thereby improving the power supply stability and reliability of the storage system and reducing the risk of data loss.

[0168] FIG4 is a structural diagram of a server provided in another embodiment of the present application. This embodiment is based on the hardware perspective. As shown in FIG4 , the server includes:

[0169] A memory 20 configured to store computer programs;

[0170] The processor 21 is configured to implement the steps of the battery backup power control method mentioned in the above embodiment when executing the computer program.

[0171] The server provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer, or a desktop computer.

[0172] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor configured to process data in an awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor configured to process data in a standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), and the GPU is configured to be responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is configured to process computing operations related to machine learning.

[0173] The memory 20 may include one or more non-volatile readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least configured to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the battery backup power control method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include but is not limited to the data involved in the above-mentioned battery backup power control method, etc.

[0174] In some embodiments, the server may further include a display screen 22 , an input / output interface 23 , a communication interface 24 , a power supply 25 , and a communication bus 26 .

[0175] Those skilled in the art will appreciate that the structure shown in FIG4 does not limit the server and may include more or fewer components than shown in the figure.

[0176] The server provided in an embodiment of the present application includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the following method: a battery backup power control method, with the same effect as above.

[0177] The present application also provides an embodiment corresponding to a non-volatile readable storage medium. The non-volatile readable storage medium stores a computer program, which, when executed by a processor, implements the steps described in the above method embodiment.

[0178] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the relevant technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the methods of each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0179] The non-volatile readable storage medium provided in this application includes the above-mentioned battery backup power control method, and the effect is the same as above.

[0180] In order to help those skilled in the art better understand the present invention, the present invention is described in detail below in conjunction with FIG5 and an optional embodiment. FIG5 is a flow chart of a method for processing battery hot standby switching provided by an embodiment of the present invention. As shown in FIG5 , the method includes:

[0181] S24: The complex programmable logic device monitors the IO status of the power supply unit;

[0182] S25: The complex programmable logic device performs a non-redundant determination on the power supply unit; if the power supply unit is determined to be non-redundant, the process proceeds to step S26;

[0183] S26: The complex programmable logic device sends a discharge enable signal to the battery unit, updates the current state to the hot standby state, and updates the interface register and provides it to the outside;

[0184] S27: The monitoring module reads the hot and cold standby status from the complex programmable logic device;

[0185] S28: The monitoring module updates the hot and cold standby status to the charging and discharging module;

[0186] S29: The charging and discharging module determines the hot standby state; if it is determined to be the hot standby state, the process proceeds to step S30;

[0187] S30: Lower the minimum charging threshold;

[0188] S31: Perform full charge processing adjustment in hot standby mode.

[0189] The power supply unit serves as a power supply unit and focuses on the redundancy status; the battery module is a hardware battery pack and focuses on the discharge enable status; the complex programmable logic device serves as a hardware monitoring module, which monitors the redundancy status of the power supply module and controls the discharge enable of the battery unit; the monitoring module is a storage server system, which periodically obtains the hot and cold standby status of the battery unit obtained by the complex programmable logic device, and hands it over to the charge and discharge control module to complete the charge and discharge management of the battery unit. During the charge and discharge process, detailed process judgment and state transition are performed according to the hot and cold standby status.

[0190] Throughout the entire process, the complex programmable logic device (CPLD) monitors the I / O status of the power supply unit in real time. If the power supply unit is non-redundant, it issues a discharge enable to the battery unit, updates the current status to hot standby, and stores it in the interface register for external communication. The monitoring module obtains the hot and cold standby status from the CPLD every 5 seconds and updates it to the charge and discharge module. When the charge and discharge module detects hot standby mode, it lowers the minimum charge threshold, performs a full charge determination, and updates the status in hot standby mode. The full charge process in hot standby mode is detailed in Figure 2 and will not be repeated here.

[0191] The method provided in this embodiment utilizes a complex programmable logic device (CPLD) to switch between hot and cold standby power supply modes for battery cells based on the redundant status of the power supply unit, thereby improving the stability and reliability of the storage system's power supply and reducing the risk of data loss. Furthermore, the method fully considers the actual impact of leakage current during hot standby, enabling precise management of the charging and discharging process, dynamically adjusting the minimum charge threshold, reducing the frequency of charge and discharge switching, and extending the battery cell's service life.

[0192] The above is a detailed introduction to a battery backup power control method, device, server and non-volatile readable storage medium provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of this application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of this application.

[0193] It should also be noted that, in this specification, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.

Claims

1. A method for controlling battery backup power, characterized in that: include: When it is detected that the power supply unit is in non-redundant power supply, obtaining the current backup power state of the battery; wherein the backup power state includes a cold backup state and a hot backup state; When the current power standby state is the hot standby state, maintaining the hot standby state; When the current backup power state is the cold backup state, a discharge enable signal is sent to the battery; and the current backup power state of the battery is controlled to be updated from the cold backup state to the hot backup state according to the discharge enable signal.

2. The battery backup control method according to claim 1, characterized in that: After detecting that the current standby power state is the hot standby state, or after controlling the current standby power state of the battery to be updated from the cold standby state to the hot standby state according to the discharge enable signal, the method further includes: Obtaining a current charging cut-off current threshold of the battery; Lowering the current charging cut-off current threshold to a target charging cut-off current threshold; wherein the target charging cut-off current threshold is less than the current charging cut-off current threshold; The charging or discharging of the battery is controlled according to the target charging cut-off current threshold.

3. The battery backup control method according to claim 2, characterized in that: Determining the target charging cut-off current threshold comprises: Obtaining a voltage corresponding to when the battery meets two backup capacities after one charge; The target charging cut-off current threshold is determined according to the voltage.

4. The battery backup control method according to claim 3, characterized in that: After controlling the charging or discharging of the battery according to the target charging cut-off current threshold, the method further includes: The full charge status of the battery is judged to determine the current working state of the battery; wherein the working state of the battery includes an uncharged state, a charged state, a fully charged state, and an idle state.

5. The battery backup control method according to claim 4, characterized in that: The judging of the full charge status of the battery to determine the current working status of the battery includes: Obtaining the current voltage value, current current value, and full charge voltage threshold of the battery; The full charge condition of the battery is judged according to the current voltage value, the current current value, the target charge cut-off current threshold, and the full charge voltage threshold to determine the current working state of the battery.

6. The battery backup control method according to claim 5, characterized in that: The judging the full charge status of the battery according to the current voltage value, the current current value, the target charge cut-off current threshold, and the full charge voltage threshold to determine the current working status of the battery includes: When the current current value is negative, obtaining the current value at a first preset time, wherein the first preset time is a time before the current time corresponding to when obtaining the current current value; When the current value at the first preset moment is a positive value and is less than the target charge cut-off current threshold, determining whether the current voltage value is greater than the full charge voltage threshold; When the current voltage value is greater than the full charge voltage threshold, determining that the current working state of the battery is the full charge state; When the current voltage value is not greater than the full charge voltage threshold, determining that the current working state of the battery is the idle state; Under the condition that the current value at the first preset moment is not a positive value and is less than the target charging cut-off current threshold, it is determined that the current working state of the battery is the uncharged state.

7. The battery backup control method according to claim 6, characterized in that: After detecting that the current current value is a negative value and before obtaining the current value at the first preset moment, the method further includes: Determining whether the current standby power state is the hot standby state; When the current standby power state is the hot standby state, the step of obtaining the current value at the first preset moment is entered; When the current power standby state is not the hot standby state, it is determined that the current working state of the battery is the uncharged state.

8. The battery backup control method according to claim 5, characterized in that: After obtaining the current voltage value, the current current value, and the full charge voltage threshold of the battery, the method further includes: Determine whether the current value is equal to 0; In the case that the current current value is equal to 0, the current value at a second preset moment is obtained, wherein the second preset moment is a moment before the current moment corresponding to when the current current value is obtained; When the current value at the second preset moment is equal to 0, determine whether the current voltage value is greater than the full charge voltage threshold; when the current voltage value is greater than the full charge voltage threshold, determine that the current working state of the battery is the full charge state; when the current voltage value is not greater than the full charge voltage threshold, determine that the current working state of the battery is the idle state.

9. The method for controlling battery backup power according to any one of claims 5 to 8, characterized in that: The full charge voltage threshold is determined according to the chemical characteristics of the battery.

10. The battery backup control method according to claim 5, characterized in that: After obtaining the current current value of the battery, the method further includes: Determining whether the current value is a positive value; When the current current value is a positive value, it is determined that the current working state of the battery is the charging state.

11. The battery backup control method according to claim 1, characterized in that: The method further comprises: When it is detected that the power supply unit is providing redundant power, the current backup state of the battery is controlled to be a cold backup state.

12. The battery backup control method according to claim 8, characterized in that: Before determining whether the current value is equal to 0, the method further includes: In a cold standby charging scenario, obtaining a charging current value of the battery at each moment within a first preset time period; When the charging current value at each moment is less than the target charging cut-off current threshold, the battery is controlled to stop charging and the step of determining whether the current current value is equal to 0 is entered; when the current current value is equal to 0, the step of obtaining the current value at the second preset moment is entered.

13. The battery backup control method according to claim 12, characterized in that: After controlling the battery to stop charging and before determining whether the current value is equal to 0, the method further includes: Starting from controlling the battery to stop charging, obtaining the current value at each moment within a second preset time period; If the current values ​​at each moment are all equal to 0, the step of determining whether the current current value is equal to 0 is entered. If the current current value is equal to 0, the step of obtaining the current value at the second preset moment is entered.

14. The battery backup control method according to claim 11, characterized in that: After detecting that the current standby power state is the hot standby state, or after controlling the current standby power state of the battery to be updated from the cold standby state to the hot standby state according to the discharge enable signal, or after controlling the current standby power state of the battery to be the cold standby state, the method further includes: Acquiring the current backup power state of the battery at a fixed frequency; The charging or discharging of the battery is controlled according to the current backup power state.

15. The battery backup control method according to claim 14, characterized in that: After acquiring the current backup power state of the battery at a fixed frequency, the method further includes: Starting from acquiring the current backup power state of the battery, information about the current backup power state is output within a third preset time period.

16. The battery backup control method according to claim 4, characterized in that: After judging the full charge status of the battery to determine the current working status of the battery, the method further includes: Different prompt information is set according to the current working status of the battery.

17. The battery backup control method according to claim 1, characterized in that: The method comprises: Real-time monitoring of the I0 status of the power supply unit; The redundancy state of the power supply unit is determined according to the I0 state.

18. A battery backup control device, characterized in that: include: An acquisition module is configured to acquire the current backup power state of the battery when it is detected that the power supply unit is in a non-redundant power supply state; wherein the backup power state includes a cold backup state and a hot backup state; A maintaining module, configured to maintain the hot standby state when the current standby power state is the hot standby state; The sending and control module is configured to send a discharge enable signal to the battery when the current standby power state is the cold standby state; and control the current standby power state of the battery to be updated from the cold standby state to the hot standby state according to the discharge enable signal.

19. A server, characterized in that: include: a memory arranged to store a computer program; A processor is configured to implement the steps of the battery backup power control method as described in any one of claims 1 to 17 when executing the computer program.

20. A non-volatile readable storage medium, characterized in that: The non-volatile readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the battery backup power control method according to any one of claims 1 to 17 are implemented.

Citation Information

Patent Citations

  • High-reliability complete machine cabinet continuous power supply device and method

    CN104917286A

  • Power supply method and device

    CN113890179A

  • Battery standby power control method and device, server and medium

    CN115940392A

  • Charge method for battery, storage medium, and terminal

    US20220385091A1