Method and device for dynamically adjusting discharge electric quantity and power supply

By dynamically adjusting the power supply's discharge capacity based on the battery cell temperature and remaining power, the problem of data loss before power failure in NAS devices is solved, ensuring normal device shutdown and reducing data loss.

CN120999815APending Publication Date: 2025-11-21SHENZHEN GREEN CONNECTION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511049198.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-28
Publication Date
2025-11-21

AI Technical Summary

Technical Problem

Existing technologies cannot effectively guarantee that NAS devices will shut down before a power outage, resulting in data loss. Furthermore, existing solutions suffer from low compatibility or UPS capacity loss.

Method used

By collecting the current cell temperature and remaining power of the power supply, and combining it with pre-determined temperature rise and power calibration data, the discharge power is dynamically adjusted so that the power supply returns to zero before the high temperature protection is triggered, ensuring that the NAS device can be shut down normally.

Benefits of technology

It achieves zero power before high temperature protection, ensuring normal shutdown of NAS devices, reducing data loss, and avoiding UPS capacity loss and compatibility issues.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120999815A_ABST
    Figure CN120999815A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of power supply electric quantity analysis, in particular to a method and a device for dynamically adjusting discharge electric quantity and a power supply. The method comprises the following steps: acquiring the current cell temperature, the current residual electric quantity and the nominal capacity electric quantity of the power supply for supplying power to NAS (Network Attached Storage) equipment; and based on the collected current cell temperature and pre-calibrated temperature rise electric quantity calibration data, executing an electric quantity attenuation adjustment operation in the discharging process of the power supply, and monitoring the cell temperature of the power supply in the electric quantity attenuation process, and if the cell temperature is monitored to reach the next cell calibration temperature, executing the electric quantity attenuation adjustment operation in the discharging process of the power supply. And the current residual electric quantity of the power supply is obtained again, and the current cell temperature of the power supply is combined, and the electric quantity attenuation of the power supply is adjusted again, so that the electric quantity of the power supply is dynamically and uniformly attenuated along with the temperature, thereby ensuring that the electric quantity of the power supply returns to zero before high-temperature protection triggering, ensuring normal shutdown of the NAS equipment, and storing data before shutdown. And furthermore, the data loss condition is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power supply analysis technology, and in particular to a method, apparatus and power supply for dynamically adjusting discharge power. Background Technology

[0002] NAS (Network Attached Storage) devices are powered by UPS (Uninterruptible Power Supply) systems. A fully charged UPS must be able to support the NAS device operating at full power for at least a certain duration, such as 10 minutes. However, when the UPS triggers its high-temperature protection, the NAS device may lose power before it has completely shut down, resulting in data loss. Therefore, ensuring that the NAS device shuts down before a power outage is crucial for data preservation.

[0003] In practical applications, shutdown is generally achieved in two ways: Option 1 involves the UPS power supply analyzing the collected current, temperature, and voltage data to obtain corresponding shutdown warning values, which are then sent to the NAS device. The NAS device then saves the data based on these warning values. Option 2 involves increasing the UPS power supply's zero-charge voltage, allowing it to reach zero charge earlier and avoid triggering high-temperature protection, thus shutting down before the high-temperature protection kicks in and preserving the data.

[0004] However, in practice, it has been found that Solution 1 requires multi-domain collaboration between UPS and NAS devices, resulting in a large workload and low compatibility with commercially available NAS devices. Solution 2 leads to UPS capacity loss, potentially causing the system to be unable to meet operational needs for a certain period. Furthermore, ambient temperature can affect the UPS power supply's protection speed, such as accelerating the triggering of high-temperature protection. Therefore, neither Solution 1 nor Solution 2 can guarantee data retention before the NAS device is shut down. Thus, there is an urgent need to propose a technical solution that enables the NAS device to retain data before shutdown, reducing data loss. Summary of the Invention

[0005] This invention provides a method, apparatus, and power supply for dynamically adjusting discharge capacity, enabling NAS devices to save data before shutdown and reducing data loss.

[0006] To address the aforementioned technical problems, a first aspect of this invention discloses a method for dynamically adjusting discharge capacity. The method is applied to a network-attached storage device (NATD), which is equipped with a target power supply. The NATD is used to perform a data saving operation based on the result of a discharge capacity adjustment operation performed by the target power supply. The method includes: Obtain the current data of the target power source, which includes the current cell temperature and the current remaining power of the target power source. Based on the current cell temperature of the target power supply, the current remaining charge of the target power supply, and the pre-determined temperature rise charge calibration data matching the target power supply, a charge decay adjustment operation is performed on the target power supply during discharge. The temperature rise charge calibration data corresponding to the target power supply includes a temperature rise cutoff temperature matching the target power supply and charge decay amplitudes corresponding to multiple temperature rise intervals matching the current cell temperature of the target power supply. When the real-time cell temperature of the target power supply reaches the temperature rise cutoff temperature corresponding to the target power supply, the charge of the target power supply decays to 0. During the power decay operation, the real-time cell temperature of the target power supply is monitored. When the real-time cell temperature of the target power supply rises to the next cell calibration temperature of the temperature rise calibration data, the operation of obtaining the current data of the target power supply is repeated until the real-time cell temperature of the target power supply rises to the temperature rise cutoff temperature. The next cell calibration temperature of the temperature rise calibration data is the temperature corresponding to one of the temperature rise intervals among all the temperature rise intervals.

[0007] As an optional implementation, in the first aspect of the present invention, the step of performing a charge attenuation adjustment operation on the target power supply during discharge based on the current cell temperature of the target power supply, the current remaining charge of the target power supply, and pre-determined temperature rise charge calibration data matching the target power supply includes: Based on the current cell temperature of the target power supply, the current remaining power of the target power supply, and the pre-determined temperature rise power calibration data that matches the target power supply, determine the current power attenuation rate of the target power supply; Based on the current power attenuation rate of the target power source, a power attenuation adjustment operation is performed on the target power source during the discharge process.

[0008] As an optional implementation, in the first aspect of the present invention, determining the current power attenuation rate of the target power supply based on the current cell temperature of the target power supply, the current remaining power of the target power supply, and pre-determined temperature rise power calibration data matching the target power supply includes: Based on the current cell temperature of the target power supply and the pre-calibrated temperature rise power calibration data matched with the target power supply, determine the current power decay required for the target power supply to decay power at the current cell temperature. The current attenuation coefficient of the target power source is determined based on the current attenuation capacity and the current remaining capacity of the target power source. Based on the current attenuation coefficient of the target power source and the predetermined attenuation factor affecting the attenuation of the target power source, the current attenuation ratio of the target power source is determined.

[0009] As an optional implementation, in the first aspect of the present invention, determining the current attenuation amount required for the target power supply to attenuate at the current cell temperature based on the current cell temperature of the target power supply and pre-calibrated temperature rise charge calibration data matched to the target power supply includes: Based on the current cell temperature of the target power supply and the pre-determined temperature rise power calibration data that matches the target power supply, determine the current basic power attenuation required for the target power supply to attenuate power at the current cell temperature. Determine the current base decay capacity corresponding to the target power supply, and use it as the current decay capacity required for the target power supply to decay under the current cell temperature; Based on the current cell temperature of the target power supply and the pre-determined temperature rise charge calibration data matching the target power supply, determine the current base charge reduction required for the target power supply to reduce charge at the current cell temperature, including: Based on the current cell temperature of the target power supply and the temperature rise cutoff temperature, determine the current temperature difference corresponding to the target power supply; Based on the current temperature difference corresponding to the target power supply, determine all the temperature rise ranges that the target power supply needs to pass through to achieve power decay at the current cell temperature; Obtain the temperature decay coefficient corresponding to each temperature rise interval, and calculate the current basic decay amount required for the target power supply to decay at the current cell temperature based on the temperature decay coefficients corresponding to all temperature rise intervals.

[0010] As an optional implementation, in the first aspect of the present invention, before determining the current baseline degradation capacity corresponding to the target power supply as the current degradation capacity required for the target power supply to degrade its capacity at the current cell temperature, the method further includes: Determine whether the current basic attenuation capacity of the target power source is greater than or equal to the current remaining capacity of the target power source; When it is determined that the current basic attenuation capacity of the target power source is greater than or equal to the current remaining capacity of the target power source, the operation of determining the current basic attenuation capacity of the target power source is performed, which is used as the current attenuation capacity required for the target power source to attenuate under the current cell temperature. When it is determined that the current basic attenuation capacity of the target power source is less than the current remaining capacity of the target power source, the current remaining capacity of the target power source is determined as the current attenuation capacity required for the target power source to attenuate under the current cell temperature.

[0011] As an optional implementation, in the first aspect of the present invention, when the current data of the target power source includes the current remaining power of the target power source, the step of obtaining the current data of the target power source includes: Obtain the current discharge current of the target power source at the current cell temperature of the target power source; The base discharge capacity of the target power source is calculated based on the current discharge current of the target power source and the current capacity decay rate of the target power source. Based on the base discharge capacity of the target power supply and the predetermined cumulative discharge capacity of the target power supply at the previous cell temperature, calculate the current cumulative discharge capacity of the target power supply at the current cell temperature; Calculate the current remaining power of the target power source based on its current discharge capacity and nominal capacity.

[0012] As an optional implementation, in the first aspect of the present invention, the temperature rise power calibration data corresponding to the target power supply is determined by the following method: Monitor the current temperature of the sample power supply under the current constant temperature environment, wherein the type of the sample power supply is the same as the type of the target power supply; Based on the current temperature of the sample power supply, a cyclic discharge operation is performed on the sample power supply, and the power data and temperature data of the sample power supply during the cyclic discharge process are collected simultaneously until the sample power supply is shut off due to high temperature protection during discharge. The cut-off temperature when the sample power supply is shut off due to high temperature protection during discharge is recorded as the temperature rise cut-off temperature corresponding to the target power supply. Based on the collected power and temperature data of the sample power supply, the power change data of the sample power supply from the first preset discharge temperature to the second preset discharge temperature during the discharge process is calculated, and used as the temperature rise power calibration data of the target power supply; wherein, the first preset discharge temperature is less than the second preset discharge temperature, and the second preset discharge temperature is less than or equal to the cutoff temperature. Before each discharge under the current constant temperature environment, the current charge of the sample power supply is equal to or greater than the preset charge, and the preset charge is less than or equal to the full charge of the sample power supply.

[0013] As an optional implementation, in the first aspect of the present invention, the monitoring of the current temperature of the sample power supply under the current constant temperature environment, and the execution of a cyclic discharge operation on the sample power supply based on the current temperature of the sample power supply, while simultaneously collecting the charge data and temperature data of the sample power supply during the cyclic discharge process, until the sample power supply cuts off the discharge due to high temperature protection, includes: Monitor the current temperature of the sample power supply under the current constant temperature environment; When the current temperature of the sample power supply is used to indicate that the current temperature of the sample power supply meets the predetermined charge calibration conditions, a discharge operation is performed on the sample power supply, and temperature data and charge data of the sample power supply during the discharge process are collected simultaneously until the sample power supply discharges to the end. Collect the cell temperature of the sample power supply when it is discharged and cut off under the current constant temperature environment; The cell temperature at which the sample power supply was discharged and cut off under the current constant temperature environment is updated to the current constant temperature environment of the sample power supply, and the operation of monitoring the current temperature of the sample power supply under the current constant temperature environment is re-executed until the sample power supply cuts off the discharge due to high temperature protection.

[0014] A second aspect of this invention discloses an apparatus for dynamically adjusting discharge capacity. The apparatus is applied in a network-attached storage device (NATS), and the NATS is equipped with a target power supply. The NATS is used to perform a data saving operation based on the result of a discharge capacity adjustment operation performed by the target power supply. The apparatus includes: The acquisition module is used to acquire the current data of the target power supply, which includes the current cell temperature and the current remaining power of the target power supply. The attenuation adjustment module is used to perform a power attenuation adjustment operation on the target power supply during discharge based on the current cell temperature of the target power supply, the current remaining power of the target power supply, and the pre-determined temperature rise power calibration data matched with the target power supply. The temperature rise power calibration data corresponding to the target power supply includes a temperature rise cutoff temperature matched with the target power supply and power attenuation amplitudes corresponding to multiple temperature rise intervals matched with the current cell temperature of the target power supply. When the real-time cell temperature of the target power supply reaches the temperature rise cutoff temperature corresponding to the target power supply, the power of the target power supply attenuates to 0. The monitoring module is used to monitor the real-time cell temperature of the target power supply during the power decay operation. When the real-time cell temperature of the target power supply rises to the next cell calibration temperature of the temperature rise calibration data, the acquisition module is triggered to re-execute the operation of acquiring the current data of the target power supply until the real-time cell temperature of the target power supply rises to the temperature rise cutoff temperature. The next cell calibration temperature of the temperature rise calibration data is the temperature corresponding to one of the temperature rise intervals among all the temperature rise intervals.

[0015] As an optional implementation, in a second aspect of the present invention, the attenuation adjustment module includes: The determination submodule is used to determine the current power attenuation rate of the target power supply based on the current cell temperature of the target power supply, the current remaining power of the target power supply, and the pre-determined temperature rise power calibration data that matches the target power supply. The attenuation adjustment submodule is used to perform a power attenuation adjustment operation on the target power supply during the discharge process based on the current power attenuation ratio of the target power supply.

[0016] As an optional implementation, in a second aspect of the invention, the determining submodule determines the specific method by which it determines the current power attenuation rate of the target power source based on the current cell temperature of the target power source, the current remaining power of the target power source, and pre-determined temperature rise power calibration data matching the target power source, including: Based on the current cell temperature of the target power supply and the pre-calibrated temperature rise power calibration data matched with the target power supply, determine the current power decay required for the target power supply to decay power at the current cell temperature. The current attenuation coefficient of the target power source is determined based on the current attenuation capacity and the current remaining capacity of the target power source. Based on the current attenuation coefficient of the target power source and the predetermined attenuation factor affecting the attenuation of the target power source, the current attenuation ratio of the target power source is determined.

[0017] As an optional implementation, in a second aspect of the invention, the determining submodule determines, based on the current cell temperature of the target power supply and pre-calibrated temperature rise charge calibration data matched to the target power supply, the specific method for determining the current charge decay required for the target power supply to decay at the current cell temperature, including: Based on the current cell temperature of the target power supply and the pre-determined temperature rise power calibration data that matches the target power supply, determine the current basic power attenuation required for the target power supply to attenuate power at the current cell temperature. Determine the current base decay capacity corresponding to the target power supply, and use it as the current decay capacity required for the target power supply to decay under the current cell temperature; The determining submodule determines, based on the current cell temperature of the target power supply and pre-determined temperature rise charge calibration data matching the target power supply, the specific method for determining the current base charge reduction required for the target power supply to reduce charge at the current cell temperature, including: Based on the current cell temperature of the target power supply and the temperature rise cutoff temperature, determine the current temperature difference corresponding to the target power supply; Based on the current temperature difference corresponding to the target power supply, determine all the temperature rise ranges that the target power supply needs to pass through to achieve power decay at the current cell temperature; Obtain the temperature decay coefficient corresponding to each temperature rise interval, and calculate the current basic decay amount required for the target power supply to decay at the current cell temperature based on the temperature decay coefficients corresponding to all temperature rise intervals.

[0018] As an optional implementation, in a second aspect of the invention, the apparatus further includes: The judgment module is used to determine whether the current basic attenuation capacity of the target power source is greater than or equal to the current remaining capacity of the target power source before the attenuation adjustment module determines the current basic attenuation capacity corresponding to the target power source as the current attenuation capacity required for the target power source to attenuate under the current cell temperature; when it is determined that the current basic attenuation capacity corresponding to the target power source is greater than or equal to the current remaining capacity of the target power source, the attenuation adjustment module is triggered to perform the operation of determining the current basic attenuation capacity corresponding to the target power source as the current attenuation capacity required for the target power source to attenuate under the current cell temperature. The determining module is further configured to, when it is determined that the current basic attenuation capacity corresponding to the target power supply is less than the current remaining capacity of the target power supply, determine the current remaining capacity of the target power supply as the current attenuation capacity required for the target power supply to attenuate at the current cell temperature.

[0019] As an optional implementation, in a second aspect of the present invention, when the current data of the target power source includes the current remaining power of the target power source, the specific method by which the acquisition module acquires the current data of the target power source includes: Obtain the current discharge current of the target power source at the current cell temperature of the target power source; The base discharge capacity of the target power source is calculated based on the current discharge current of the target power source and the current capacity decay rate of the target power source. Based on the base discharge capacity of the target power supply and the predetermined cumulative discharge capacity of the target power supply at the previous cell temperature, calculate the current cumulative discharge capacity of the target power supply at the current cell temperature; Calculate the current remaining power of the target power source based on its current discharge capacity and nominal capacity.

[0020] As an optional implementation, in the second aspect of the present invention, the temperature rise power calibration data corresponding to the target power source is determined in the following manner: Monitor the current temperature of the sample power supply under the current constant temperature environment, wherein the type of the sample power supply is the same as the type of the target power supply; Based on the current temperature of the sample power supply, a cyclic discharge operation is performed on the sample power supply, and the power data and temperature data of the sample power supply during the cyclic discharge process are collected simultaneously until the sample power supply is shut off due to high temperature protection during discharge. The cut-off temperature when the sample power supply is shut off due to high temperature protection during discharge is recorded as the temperature rise cut-off temperature corresponding to the target power supply. Based on the collected power and temperature data of the sample power supply, the power change data of the sample power supply from the first preset discharge temperature to the second preset discharge temperature during the discharge process is calculated, and used as the temperature rise power calibration data of the target power supply; wherein, the first preset discharge temperature is less than the second preset discharge temperature, and the second preset discharge temperature is less than or equal to the cutoff temperature. Before each discharge under the current constant temperature environment, the current charge of the sample power supply is equal to or greater than the preset charge, and the preset charge is less than or equal to the full charge of the sample power supply.

[0021] As an optional implementation, in a second aspect of the invention, the monitoring of the current temperature of the sample power supply under a constant temperature environment, and the execution of a cyclic discharge operation on the sample power supply based on the current temperature of the sample power supply, while simultaneously collecting the charge data and temperature data of the sample power supply during the cyclic discharge process, until the sample power supply is shut off due to high-temperature protection during discharge, includes: Monitor the current temperature of the sample power supply under the current constant temperature environment; When the current temperature of the sample power supply is used to indicate that the current temperature of the sample power supply meets the predetermined charge calibration conditions, a discharge operation is performed on the sample power supply, and temperature data and charge data of the sample power supply during the discharge process are collected simultaneously until the sample power supply discharges to the end. Collect the cell temperature of the sample power supply when it is discharged and cut off under the current constant temperature environment; The cell temperature at which the sample power supply was discharged and cut off under the current constant temperature environment is updated to the current constant temperature environment of the sample power supply, and the operation of monitoring the current temperature of the sample power supply under the current constant temperature environment is re-executed until the sample power supply cuts off the discharge due to high temperature protection.

[0022] A third aspect of the present invention discloses a power supply installed in a network attached storage device (NASDD), the NSDD being used to perform a data saving operation based on the result of a discharge capacity adjustment operation performed by the power supply; wherein the power supply comprises: Memory containing executable program code; A processor coupled to memory; The processor calls the executable program code stored in the memory to execute some or all of the steps in any of the methods for dynamically adjusting the discharge capacity disclosed in the first aspect of the present invention.

[0023] The fourth aspect of the present invention discloses a computer storage medium storing computer instructions, which, when invoked, are used to execute some or all of the steps in any of the methods for dynamically adjusting the discharge capacity disclosed in the first aspect of the present invention.

[0024] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: In this embodiment of the invention, the current cell temperature, current remaining power, and nominal capacity of the power supply used to power the NAS device are collected. Based on the collected current cell temperature and pre-calibrated temperature rise and power calibration data, the power supply performs a power attenuation adjustment operation during the discharge process. At the same time, the cell temperature of the power supply is monitored during the power attenuation process. If the cell temperature is detected to reach the next cell calibration temperature, the current remaining power of the power supply is reacquired, and combined with the current cell temperature, the power attenuation adjustment operation of the power supply is re-executed. This ensures that the power of the power supply decreases dynamically and uniformly with temperature, thereby ensuring that the power supply reaches zero power before the high temperature protection is triggered, ensuring the normal shutdown of the NAS device, and saving the data before shutdown, thus reducing the possibility of data loss. Attached Figure Description

[0025] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0026] Figure 1This is a flowchart illustrating a method for dynamically adjusting the discharge capacity disclosed in an embodiment of the present invention. Figure 2 This is a schematic diagram of the structure of a device for dynamically adjusting the discharge capacity disclosed in an embodiment of the present invention; Figure 3 This is a schematic diagram of another device for dynamically adjusting the discharge capacity disclosed in an embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of a power supply disclosed in an embodiment of the present invention. Detailed Implementation

[0027] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0028] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices.

[0029] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0030] This invention discloses a method, apparatus, and power supply for dynamically adjusting discharge capacity. By collecting the current cell temperature, current remaining capacity, and nominal capacity of the power supply used to power NAS devices, and based on the collected current cell temperature and pre-calibrated temperature-to-capacity calibration data, the power supply performs a capacity attenuation adjustment operation during discharge. Simultaneously, the cell temperature of the power supply is monitored during the capacity attenuation process. If the cell temperature reaches the next calibrated cell temperature, the current remaining capacity of the power supply is re-acquired, and combined with the current cell temperature, the capacity attenuation operation is readjusted. This ensures that the power supply's capacity dynamically and uniformly decreases with temperature, thereby ensuring that the power supply reaches zero capacity before high-temperature protection is triggered, guaranteeing normal shutdown of the NAS device, and saving data before shutdown, thus reducing data loss. Detailed descriptions follow.

[0031] Example 1 Please see Figure 1 , Figure 1 This is a flowchart illustrating a method for dynamically adjusting discharge capacity according to an embodiment of the present invention. This method can be applied to any scenario requiring power discharge capacity attenuation analysis and equipped with a NAS device, such as live audio streaming or Tencent Video viewing. The NAS device is configured with a target power supply. The NAS device performs data saving operations based on the results of the discharge capacity adjustment operation performed on the target power supply. For example... Figure 1 As shown, the method may include the following steps: 101. Obtain the current data of the target power source, which includes the current cell temperature and the current remaining power of the target power source.

[0032] In this embodiment of the invention, optionally, the target power supply can be used directly to power the NAS device, or the target power supply can be used to power the NAS device when mains power is not connected. Optionally, the battery of the target power supply may include, but is not limited to, lithium batteries, nickel-cadmium batteries, and nickel-metal hydride batteries.

[0033] 102. Based on the current cell temperature of the target power supply, the current remaining charge of the target power supply, and the pre-determined temperature rise charge calibration data that matches the target power supply, perform a charge attenuation adjustment operation on the target power supply during the discharge process.

[0034] In this embodiment of the invention, optionally, the temperature rise power calibration data corresponding to the target power supply includes a temperature rise cutoff temperature matching the target power supply and a power decay range corresponding to multiple temperature rise intervals matching the current cell temperature of the target power supply. When the real-time cell temperature of the target power supply reaches the temperature rise cutoff temperature corresponding to the target power supply, the power of the target power supply decays to 0.

[0035] In this embodiment of the invention, optionally, the temperature rise energy calibration data corresponding to the target power supply is determined in the following way: Monitor the current temperature of the sample power supply under the current constant temperature environment. The type of the sample power supply is the same as that of the target power supply. Based on the current temperature of the sample power supply, perform a cyclic discharge operation on the sample power supply, and simultaneously collect the power and temperature data of the sample power supply during the cyclic discharge process until the sample power supply is shut off due to high temperature protection during discharge, and record the cut-off temperature of the sample power supply when it is shut off due to high temperature protection during discharge, as the temperature rise cut-off temperature corresponding to the target power supply. Based on the collected power and temperature data of the sample power supply, the power change data of the sample power supply from the first preset discharge temperature to the second preset discharge temperature during the discharge process is calculated, and used as the temperature rise power calibration data of the target power supply.

[0036] In this embodiment of the invention, optionally, the current temperature of the sample power supply under the current constant temperature environment is monitored, and a cyclic discharge operation is performed on the sample power supply based on the current temperature of the sample power supply, while simultaneously collecting the charge data and temperature data of the sample power supply during the cyclic discharge process, until the sample power supply cuts off the discharge due to high temperature protection during discharge, including: Monitor the current temperature of the sample power supply under the current constant temperature environment; When the current temperature of the sample power supply is used to indicate that the current temperature of the sample power supply meets the predetermined charge calibration conditions, a discharge operation is performed on the sample power supply, and temperature data and charge data of the sample power supply during the discharge process are collected simultaneously until the sample power supply discharges to the end. The cell temperature of the sample power supply at the discharge cutoff point under the current constant temperature environment was collected. The cell temperature at which the sample power supply was discharged to the current constant temperature environment is updated to the current constant temperature environment of the sample power supply, and the operation of monitoring the current temperature of the sample power supply under the current constant temperature environment is re-executed until the sample power supply is cut off due to high temperature protection during discharge.

[0037] In this embodiment of the invention, optionally, before discharging in each current constant temperature environment, the current charge of the sample power supply is equal to and greater than the preset charge, and the preset charge is less than or equal to the full charge of the sample power supply. That is, it can be a full charge state or a charge state that is slightly lower than the preset charge.

[0038] In this embodiment of the invention, optionally, when the current temperature of the sample power supply is used to indicate that the absolute value of the temperature difference between the current temperature of the sample power supply and the constant temperature of the current constant temperature environment is less than or equal to a preset temperature value for a duration greater than or equal to a preset duration, such as 30 minutes, it indicates that the predetermined power calibration conditions are met. The current constant temperature environment can be a constant temperature container environment, such as a constant temperature chamber, as long as the constant temperature conditions are met.

[0039] In this embodiment of the invention, optionally, during each discharge process, the temperature data and charge data of the battery cell can be recorded using an instrument capable of temperature acquisition, such as a thermometer. For each cycle of discharge, by analyzing the temperature data and charge data of the sample power supply collected in that cycle, the charge decrease corresponding to each rise in the sample power supply temperature to a preset temperature (e.g., an increase of 0.5℃, 1℃) is obtained, which is used as the charge change data for that cycle, i.e., the charge decrease. Here, the temperature range corresponding to each temperature rise interval is the preset temperature, and the temperatures at both ends of each temperature rise interval are the cell calibration temperatures. It should be noted that the preset temperatures for each rise can be equal or unequal, but the same is preferred. Further, after obtaining all charge change data for all cycle discharge processes, based on all charge change data and the first and second preset temperatures, the temperature rise charge calibration data corresponding to the target power supply is analyzed. For example, all charge change data and the temperature data and interval temperature corresponding to each charge change data can be input into the corresponding temperature rise software for analysis to obtain the temperature rise charge change data between the first and second preset temperatures. Here, the first preset discharge temperature is less than the second preset discharge temperature, and the second preset discharge temperature is less than or equal to the cutoff temperature. The first preset discharge temperature can be the temperature measured at the start of the first discharge in the cyclic discharge process of the sample power supply, or it can be the temperature thereafter, such as 0.5℃. The second preset discharge temperature can be the cut-off temperature of the high-temperature protection at the last discharge in the cyclic discharge process of the sample power supply, or a temperature slightly lower, such as 0.5℃.

[0040] Therefore, by placing a sample power supply of the same type as the power supply to be degraded in a constant temperature environment for cyclic degradation, and with the temperature of the constant temperature environment during each degradation based on the temperature of the cell at the end of the previous discharge, until the sample power supply stops collecting power and temperature data due to high temperature discharge protection, the corresponding cutoff temperature is recorded, and the temperature rise and power change data of the sample power supply are analyzed, the accuracy and reliability of the analysis of the temperature rise and power change data of the target power supply are improved.

[0041] 103. During the power decay operation, monitor the real-time cell temperature of the target power supply. When the real-time cell temperature of the target power supply rises to the next cell calibration temperature of the temperature rise calibration data, repeat step 101.

[0042] In this embodiment of the invention, optionally, the next cell calibration temperature in the temperature rise calibration data is the temperature corresponding to one of the temperature rise intervals among all temperature rise intervals. Optionally, the temperature interval between any two adjacent cell calibration temperatures can be equal or unequal.

[0043] It should be noted that as long as the real-time cell temperature of the target power supply does not rise to the temperature rise cutoff temperature, the process of steps 101-103 will continue to cycle.

[0044] In this embodiment of the invention, when the remaining power of the target power supply is less than or equal to a preset remaining power (e.g., 10%), a data saving prompt is sent to the NAS device to prompt the NAS device to save the data. Furthermore, CPU power consumption can also be reduced. When the remaining power of the target power supply is completely discharged, i.e., equal to or close to 0, the NAS device is powered off, and at this time, the current cell temperature of the target power supply is less than or equal to the aforementioned cutoff temperature.

[0045] It is evident that implementation Figure 1 The described method collects the current cell temperature, current remaining power, and nominal capacity of the power supply used to power the NAS device. Based on the collected current cell temperature and pre-calibrated temperature rise and power calibration data, it performs a power attenuation adjustment operation on the power supply during discharge. Simultaneously, it monitors the cell temperature of the power supply during the power attenuation process. If the cell temperature reaches the next cell calibration temperature, it re-acquires the current remaining power of the power supply and, combined with the current cell temperature, re-adjusts the power attenuation operation to ensure that the power of the power supply decreases dynamically and evenly with temperature. This ensures that the power supply reaches zero power before the high-temperature protection is triggered, guaranteeing the normal shutdown of the NAS device. Data is also saved before shutdown, thereby reducing the possibility of data loss.

[0046] In this embodiment of the invention, optionally, based on the current cell temperature of the target power supply, the current remaining charge of the target power supply, and pre-determined temperature rise charge calibration data matching the target power supply, a charge attenuation adjustment operation is performed on the target power supply during discharge, including: Based on the current cell temperature of the target power supply, the current remaining power of the target power supply, and the pre-determined temperature rise power calibration data that matches the target power supply, determine the current power attenuation rate of the target power supply. Based on the current power attenuation rate of the target power supply, a power attenuation adjustment operation is performed on the target power supply during the discharge process.

[0047] In this embodiment of the invention, optionally, the current power attenuation rate of the target power supply is determined based on the current cell temperature of the target power supply, the current remaining power of the target power supply, and pre-determined temperature rise power calibration data matching the target power supply, including: Based on the current cell temperature of the target power supply and the pre-calibrated temperature rise capacity calibration data of the target power supply, determine the current capacity reduction required for the target power supply to reduce capacity at the current cell temperature. Determine the current attenuation coefficient of the target power source based on its current attenuation capacity and remaining capacity. Based on the current attenuation coefficient of the target power source and the pre-determined attenuation factor affecting the attenuation of the target power source, determine the current attenuation rate of the target power source.

[0048] In this embodiment of the invention, optionally, the current amount of charge reduction required for the target power supply to reduce its charge at the current cell temperature is determined based on the current cell temperature of the target power supply and the pre-calibrated temperature rise charge calibration data matched to the target power supply, including: Based on the current cell temperature of the target power supply and the pre-determined temperature rise charge calibration data that matches the target power supply, determine the current basic charge reduction required for the target power supply to reduce charge at the current cell temperature. Determine the current base decay capacity corresponding to the target power supply, which is used as the current decay capacity required for the target power supply to decay under the current cell temperature.

[0049] In this embodiment of the invention, optionally, the current base attenuation charge required for the target power supply to attenuate at the current cell temperature is determined based on the current cell temperature of the target power supply and pre-determined temperature rise charge calibration data matching the target power supply, including: Determine the current temperature difference of the target power supply based on the current cell temperature and temperature rise cutoff temperature of the target power supply. Based on the current temperature difference corresponding to the target power supply, determine all the temperature rise ranges that the target power supply needs to go through to achieve power decay at the current cell temperature; Obtain the temperature decay coefficient corresponding to each temperature rise interval, and calculate the current basic decay amount required for the target power supply to decay at the current cell temperature based on the temperature decay coefficients corresponding to all temperature rise intervals.

[0050] In this embodiment of the invention, optionally, all the aforementioned power change data can be sorted, such as in reverse order (from the highest cell temperature to the lowest cell temperature) or in sequence (from the lowest cell temperature to the highest cell temperature). For each discharge decay, iteratively starting from 0, the current basic decay power of the target power supply can be obtained, as shown in the formula. The iteration stops when i ≥ the target power supply's temperature rise cutoff temperature. The current baseline degradation of the target power supply. for Where, when i=0, =0.

[0051] In this embodiment of the invention, optionally, a power discharge operation is performed on the target power supply during the discharge process based on the current power attenuation rate of the target power supply.

[0052] In this embodiment of the invention, optionally, the current power attenuation rate of the target power source can be determined by the following calculation method: ; = ; In the formula, The current charge decay rate of the target power supply. The current attenuation coefficient of the target power source. The charge attenuation factor of the target power supply. The current remaining power of the target power source; This represents the current decay of the target power supply.

[0053] In this embodiment of the invention, optionally, the power attenuation factor can be determined based on the number of discharge cycles that the target power supply has already undergone and / or the discharge attenuation ratio corresponding to the discharge. For example, the larger the discharge attenuation ratio, the larger the power attenuation factor, such as equal to 1.

[0054] As can be seen, the embodiments of the present invention can also determine the amount of power that the power supply needs to decay at the current cell temperature by analyzing the current cell temperature, the temperature rise cutoff temperature, and the temperature rise range it has passed through. This improves the accuracy of the power analysis. Furthermore, by combining the current remaining power of the power supply at the current cell temperature with the power decay factor, the power decay rate at the current cell temperature is analyzed, achieving dynamic analysis of the power decay rate. This improves the accuracy and reliability of the power decay rate analysis at the current cell temperature, allowing for power decay adjustment of the power supply at the current cell temperature. This improves the accuracy of dynamic power decay, making the power decay more uniform with the real-time cell temperature of the power supply. It further increases the probability of the power decay reaching 0 when the real-time cell temperature rises to the temperature rise cutoff temperature, further ensuring successful data saving before the NAS device is shut down, and improving the accuracy of CPU power consumption adjustment. Moreover, by combining the power decay factor to analyze the power decay rate at the current cell temperature, it reduces inaccurate capacity due to issues such as power supply consistency and health, thus reducing power supply power fluctuations and further improving the accuracy of the power decay rate analysis.

[0055] In this embodiment of the invention, optionally, when the current data of the target power source includes the current remaining power of the target power source, obtaining the current data of the target power source includes: Obtain the current discharge current of the target power supply at the current cell temperature of the target power supply; Calculate the base discharge capacity of the target power source based on its current discharge current and current capacity attenuation rate. Based on the target power source's base discharge capacity and the predetermined cumulative discharge capacity of the target power source at the previous cell temperature, calculate the target power source's current cumulative discharge capacity at the current cell temperature. Calculate the current remaining power of the target power source based on its current discharge capacity and nominal capacity (also known as rated capacity).

[0056] In this embodiment of the invention, optionally, the current remaining power of the target power source can be calculated using the following formula: ; ; In the formula, The target power source has a current remaining charge. The current discharge current of the target power supply. The current charge decay rate of the target power supply. The cumulative discharge capacity of the target power source. The current cumulative discharge capacity of the target power source. The nominal capacity of the target power supply.

[0057] As can be seen, the embodiments of the present invention analyze the cumulative discharge capacity that the power supply needs to attenuate at the current cell temperature by combining the current discharge current, the current capacity decay rate, and the cumulative discharge capacity at the previous cell temperature. Combined with the nominal capacity of the power supply, the remaining capacity after capacity decay based on the current cell temperature capacity decay rate is analyzed, which improves the accuracy of the capacity analysis. This is beneficial to improving the accuracy and reliability of the power supply's capacity decay rate dynamically adjusting with changes in cell temperature.

[0058] In an optional embodiment, before determining the current baseline degradation capacity corresponding to the target power supply as the current degradation capacity required for the target power supply to degrade at the current cell temperature, the method may further include the following steps: Determine whether the current base decay capacity of the target power source is greater than or equal to the current remaining capacity of the target power source; When it is determined that the current basic attenuation capacity of the target power supply is greater than or equal to the current remaining capacity of the target power supply, the operation of determining the current basic attenuation capacity of the target power supply is performed, which is used as the current attenuation capacity required for the target power supply to attenuate under the current cell temperature. When it is determined that the current basic attenuation capacity of the target power supply is less than the current remaining capacity of the target power supply, the current remaining capacity of the target power supply is determined as the current attenuation capacity required for the target power supply to attenuate under the current cell temperature.

[0059] As can be seen, this optional embodiment, after analyzing the required amount of power to decay at the current cell temperature based on the current cell temperature, temperature rise cutoff temperature, and corresponding power change calibration data, further compares it with the remaining power when performing power decay based on the power decay ratio corresponding to the previous cell temperature. This determines the amount of power decay required for power decay ratio analysis at the current cell temperature, improving the accuracy of determining the amount of power decay at the current cell temperature, ensuring that the power decays uniformly with the cell temperature, and reducing the occurrence of over-discharge of the power supply.

[0060] In another alternative embodiment, the method may further include the following steps: Calculate the current number of power decays of the target power source, and base the decay difference between the current remaining power of the target power source and the current base decay power source for each power decay. Compare all attenuation differences with a preset attenuation difference (e.g., 0.2%) to obtain the attenuation comparison results; When the attenuation comparison result is used to indicate that the number of attenuation times when the attenuation difference is greater than or equal to the preset attenuation difference (e.g., 3 times), the number of attenuation times when the attenuation difference is greater than or equal to the preset attenuation difference is calculated, and the current power attenuation ratio of the target power supply is corrected according to the number of attenuation times to obtain the corrected current power attenuation ratio.

[0061] In this optional embodiment, optionally, the more attenuation times, the greater the corrected current power attenuation ratio compared to the original current power attenuation ratio, but there is a limit.

[0062] As can be seen, this optional embodiment calculates the attenuation difference between the power required to be attenuated at the current cell temperature and the remaining power when attenuating based on the power attenuation ratio corresponding to the previous cell temperature after each power attenuation. This difference is then compared with a preset attenuation value. If multiple attenuation differences are found to be large, the current power attenuation ratio corresponding to the current cell temperature is corrected to better match the power attenuation ratio required by the power supply. This further increases the likelihood of uniform power attenuation with temperature changes and ensures that data is saved before the high-temperature protection is triggered, i.e., before the NAS device is shut down.

[0063] Example 2 Please see Figure 2 , Figure 2 This is a schematic diagram of a device for dynamically adjusting discharge capacity according to an embodiment of the present invention. This device can be applied to any scenario requiring power discharge capacity attenuation analysis and equipped with a NAS device, such as live audio streaming or Tencent Video viewing. The NAS device is equipped with a target power supply. The NAS device performs data saving operations based on the results of the discharge capacity adjustment operation performed on the target power supply. For example... Figure 2 As shown, the device may include: The acquisition module 201 is used to acquire the current data of the target power supply, which includes the current cell temperature and the current remaining power of the target power supply. The attenuation adjustment module 202 is used to perform a power attenuation adjustment operation on the target power supply during discharge based on the current cell temperature of the target power supply, the current remaining power of the target power supply, and the pre-determined temperature rise power calibration data matched with the target power supply. The temperature rise power calibration data corresponding to the target power supply includes the temperature rise cutoff temperature matched with the target power supply and the power attenuation range corresponding to multiple temperature rise intervals matched with the current cell temperature of the target power supply. When the real-time cell temperature of the target power supply reaches the temperature rise cutoff temperature corresponding to the target power supply, the power of the target power supply is attenuated to 0. The monitoring module 203 is used to monitor the real-time cell temperature of the target power supply during the power decay operation. When the real-time cell temperature of the target power supply rises to the next cell calibration temperature of the temperature rise calibration data, the acquisition module 201 is triggered to re-execute the operation of acquiring the current data of the target power supply until the real-time cell temperature of the target power supply rises to the temperature rise cutoff temperature. The next cell calibration temperature of the temperature rise calibration data is the temperature corresponding to one of the temperature rise intervals among all temperature rise intervals.

[0064] In this embodiment of the invention, optionally, the target power supply can be used directly to power the NAS device, or the target power supply can be used to power the NAS device when mains power is not connected. Optionally, the battery of the target power supply may include, but is not limited to, lithium batteries, nickel-cadmium batteries, and nickel-metal hydride batteries.

[0065] In this embodiment of the invention, optionally, the temperature rise power calibration data corresponding to the target power supply includes a temperature rise cutoff temperature matching the target power supply and a power decay range corresponding to multiple temperature rise intervals matching the current cell temperature of the target power supply. When the real-time cell temperature of the target power supply reaches the temperature rise cutoff temperature corresponding to the target power supply, the power of the target power supply decays to 0.

[0066] In this embodiment of the invention, optionally, the temperature rise energy calibration data corresponding to the target power supply is determined in the following way: Monitor the current temperature of the sample power supply under the current constant temperature environment. The type of the sample power supply is the same as that of the target power supply. Based on the current temperature of the sample power supply, perform a cyclic discharge operation on the sample power supply, and simultaneously collect the power and temperature data of the sample power supply during the cyclic discharge process until the sample power supply is shut off due to high temperature protection during discharge, and record the cut-off temperature of the sample power supply when it is shut off due to high temperature protection during discharge, as the temperature rise cut-off temperature corresponding to the target power supply. Based on the collected power and temperature data of the sample power supply, the power change data of the sample power supply from the first preset discharge temperature to the second preset discharge temperature during the discharge process is calculated, and used as the temperature rise power calibration data of the target power supply.

[0067] In this embodiment of the invention, optionally, the current temperature of the sample power supply under the current constant temperature environment is monitored, and a cyclic discharge operation is performed on the sample power supply based on the current temperature of the sample power supply, while simultaneously collecting the charge data and temperature data of the sample power supply during the cyclic discharge process, until the sample power supply cuts off the discharge due to high temperature protection during discharge, including: Monitor the current temperature of the sample power supply under the current constant temperature environment; When the current temperature of the sample power supply is used to indicate that the current temperature of the sample power supply meets the predetermined charge calibration conditions, a discharge operation is performed on the sample power supply, and temperature data and charge data of the sample power supply during the discharge process are collected simultaneously until the sample power supply discharges to the end. The cell temperature of the sample power supply at the discharge cutoff point under the current constant temperature environment was collected. The cell temperature at which the sample power supply was discharged to the current constant temperature environment is updated to the current constant temperature environment of the sample power supply, and the operation of monitoring the current temperature of the sample power supply under the current constant temperature environment is re-executed until the sample power supply is cut off due to high temperature protection during discharge.

[0068] In this embodiment of the invention, optionally, before discharging in each current constant temperature environment, the current charge of the sample power supply is equal to and greater than the preset charge, and the preset charge is less than or equal to the full charge of the sample power supply. That is, it can be a full charge state or a charge state that is slightly lower than the preset charge.

[0069] In this embodiment of the invention, optionally, when the current temperature of the sample power supply is used to indicate that the absolute value of the temperature difference between the current temperature of the sample power supply and the constant temperature of the current constant temperature environment is less than or equal to a preset temperature value for a duration greater than or equal to a preset duration, such as 30 minutes, it indicates that the predetermined power calibration conditions are met. The current constant temperature environment can be a constant temperature container environment, such as a constant temperature chamber, as long as the constant temperature conditions are met.

[0070] In this embodiment of the invention, optionally, during each discharge process, the temperature data and charge data of the battery cell can be recorded using an instrument capable of temperature acquisition, such as a thermometer. For each cycle of discharge, by analyzing the temperature data and charge data of the sample power supply collected in that cycle, the charge decrease corresponding to each temperature rise of the sample power supply to a preset temperature (e.g., an increase of 0.5℃, 1℃) is obtained, which is used as the charge change data for that cycle. The temperature range corresponding to each temperature rise interval is the preset temperature. It should be noted that the preset temperature rise for each cycle can be equal or unequal, but the same temperature is preferred. Further, after obtaining all charge change data for all cycle discharge processes, based on all charge change data and the first and second preset temperatures, the temperature rise charge calibration data corresponding to the target power supply is analyzed. For example, all charge change data and the temperature data and interval temperature corresponding to each charge change data can be input into the corresponding temperature rise software for analysis to obtain the temperature rise charge change data between the first and second preset temperatures. The first preset discharge temperature is lower than the second preset discharge temperature, and the second preset discharge temperature is less than or equal to the cutoff temperature. The first preset discharge temperature can be the temperature measured at the start of the first discharge in the cyclic discharge process of the sample power supply, or it can be the temperature thereafter, such as 0.5℃. The second preset discharge temperature can be the cut-off temperature of the high-temperature protection at the last discharge in the cyclic discharge process of the sample power supply, or a temperature slightly lower, such as 0.5℃.

[0071] Therefore, by placing a sample power supply of the same type as the power supply to be degraded in a constant temperature environment for cyclic degradation, and with the temperature of the constant temperature environment during each degradation based on the temperature of the cell at the end of the previous discharge, until the sample power supply stops collecting power and temperature data due to high temperature discharge protection, the corresponding cutoff temperature is recorded, and the temperature rise and power change data of the sample power supply are analyzed, the accuracy and reliability of the analysis of the temperature rise and power change data of the target power supply are improved.

[0072] In this embodiment of the invention, optionally, the next cell calibration temperature in the temperature rise calibration data is the temperature corresponding to one of the temperature rise intervals among all temperature rise intervals. Optionally, the temperature interval between any two adjacent cell calibration temperatures can be equal or unequal.

[0073] It should be noted that as long as the real-time cell temperature of the target power supply does not rise to the temperature rise cutoff temperature, the functions of the acquisition module 201 and monitoring module 203 will be continuously executed in a loop.

[0074] In this embodiment of the invention, when the remaining power of the target power supply is less than or equal to a preset remaining power (e.g., 10%), a data saving prompt is sent to the NAS device to prompt the NAS device to save the data. Furthermore, CPU power consumption can also be reduced. When the remaining power of the target power supply is completely discharged, i.e., equal to or close to 0, the NAS device is powered off, and at this time, the current cell temperature of the target power supply is less than or equal to the aforementioned cutoff temperature.

[0075] As can be seen, the embodiments of the present invention can collect the current cell temperature, current remaining power, and nominal capacity of the power supply used to power the NAS device. Based on the collected current cell temperature and pre-calibrated temperature rise and power calibration data, the power supply performs a power attenuation adjustment operation during the discharge process. At the same time, the cell temperature of the power supply is monitored during the power attenuation process. If the cell temperature is detected to reach the next cell calibration temperature, the current remaining power of the power supply is re-acquired, and combined with the current cell temperature, the power attenuation of the power supply is readjusted to ensure that the power of the power supply decreases dynamically and evenly with the temperature. This ensures that the power supply reaches zero power before the high temperature protection is triggered, ensuring the normal shutdown of the NAS device. Data is saved before shutdown, thereby reducing the possibility of data loss.

[0076] In this embodiment of the invention, optionally, Figure 3 This is a schematic diagram of another device for dynamically adjusting the discharge capacity disclosed in an embodiment of the present invention, as shown below. Figure 3 As shown, the attenuation adjustment module 202 may include: The determination submodule 2021 is used to determine the current power attenuation rate of the target power supply based on the current cell temperature of the target power supply, the current remaining power of the target power supply, and the pre-determined temperature rise power calibration data that matches the target power supply. The attenuation adjustment submodule 2022 is used to perform a power attenuation adjustment operation on the target power supply during the discharge process based on the current power attenuation ratio of the target power supply.

[0077] In this embodiment of the invention, optionally, the determining submodule 2021 determines the specific method by which it determines the current power attenuation rate of the target power supply based on the current cell temperature of the target power supply, the current remaining power of the target power supply, and pre-determined temperature rise power calibration data matching the target power supply. This includes: Based on the current cell temperature of the target power supply and the pre-calibrated temperature rise capacity calibration data of the target power supply, determine the current capacity reduction required for the target power supply to reduce capacity at the current cell temperature. Determine the current attenuation coefficient of the target power source based on its current attenuation capacity and remaining capacity. Based on the current attenuation coefficient of the target power source and the pre-determined attenuation factor affecting the attenuation of the target power source, determine the current attenuation rate of the target power source.

[0078] The determination submodule 2021, based on the current cell temperature of the target power supply and the pre-calibrated temperature rise and charge calibration data matched to the target power supply, determines the specific method of the current charge reduction required for the target power supply to reduce charge at the current cell temperature, including: Based on the current cell temperature of the target power supply and the pre-determined temperature rise charge calibration data that matches the target power supply, determine the current basic charge reduction required for the target power supply to reduce charge at the current cell temperature. Determine the current base decay capacity corresponding to the target power supply, which is used as the current decay capacity required for the target power supply to decay under the current cell temperature; The determination submodule 2021, based on the current cell temperature of the target power supply and pre-determined temperature rise and charge calibration data matched with the target power supply, determines the specific method for the target power supply to reduce the current base charge at the current cell temperature, including: Determine the current temperature difference of the target power supply based on the current cell temperature and temperature rise cutoff temperature of the target power supply. Based on the current temperature difference corresponding to the target power supply, determine all the temperature rise ranges that the target power supply needs to go through to achieve power decay at the current cell temperature; Obtain the temperature decay coefficient corresponding to each temperature rise interval, and calculate the current basic decay amount required for the target power supply to decay at the current cell temperature based on the temperature decay coefficients corresponding to all temperature rise intervals.

[0079] In this embodiment of the invention, optionally, all the aforementioned power change data can be sorted, such as in reverse order (from the highest cell temperature to the lowest cell temperature) or in sequence (from the lowest cell temperature to the highest cell temperature). For each discharge decay, iteratively starting from 0, the current basic decay power of the target power supply can be obtained, as shown in the formula. The iteration stops when i ≥ the target power supply's temperature rise cutoff temperature. The current baseline degradation of the target power supply. for .

[0080] In this embodiment of the invention, optionally, the current power attenuation rate of the target power source can be determined by the following calculation method: ; = ; In the formula, The current charge decay rate of the target power supply. The current attenuation coefficient of the target power source. The charge attenuation factor of the target power supply. The current remaining power of the target power source; This represents the current decay of the target power supply.

[0081] In this embodiment of the invention, optionally, the power attenuation factor can be determined based on the number of discharge cycles that the target power supply has already undergone and / or the discharge attenuation ratio corresponding to the discharge. For example, the larger the discharge attenuation ratio, the larger the power attenuation factor, such as equal to 1.

[0082] As can be seen, the embodiments of the present invention can also determine the amount of power that the power supply needs to decay at the current cell temperature by analyzing the current cell temperature, the temperature rise cutoff temperature, and the temperature rise range it has passed through. This improves the accuracy of the power analysis. Furthermore, by combining the current remaining power of the power supply at the current cell temperature with the power decay factor, the power decay rate at the current cell temperature is analyzed, achieving dynamic analysis of the power decay rate. This improves the accuracy and reliability of the power decay rate analysis at the current cell temperature, allowing for power decay adjustment of the power supply at the current cell temperature. This improves the accuracy of dynamic power decay, making the power decay more uniform with the real-time cell temperature of the power supply. It further increases the probability of the power decay reaching 0 when the real-time cell temperature rises to the temperature rise cutoff temperature, further ensuring successful data saving before the NAS device is shut down, and improving the accuracy of CPU power consumption adjustment. Moreover, by combining the power decay factor to analyze the power decay rate at the current cell temperature, it reduces inaccurate capacity due to issues such as power supply consistency and health, thus reducing power supply power fluctuations and further improving the accuracy of the power decay rate analysis.

[0083] In this embodiment of the invention, optionally, when the current data of the target power source includes the current remaining power of the target power source, the specific method by which the acquisition module 201 acquires the current data of the target power source includes: Obtain the current discharge current of the target power supply at the current cell temperature of the target power supply; Calculate the base discharge capacity of the target power source based on its current discharge current and current capacity attenuation rate. Based on the target power source's base discharge capacity and the predetermined cumulative discharge capacity of the target power source at the previous cell temperature, calculate the target power source's current cumulative discharge capacity at the current cell temperature. Calculate the current remaining power of the target power source based on its current discharge capacity and nominal capacity.

[0084] In this embodiment of the invention, optionally, the current remaining power of the target power source can be calculated using the following formula: ; ; In the formula, The target power source has a current remaining charge. The current discharge current of the target power supply. The current charge decay rate of the target power supply. The cumulative discharge capacity of the target power source. The current cumulative discharge capacity of the target power source. The nominal capacity of the target power supply.

[0085] As can be seen, the embodiments of the present invention analyze the cumulative discharge capacity that the power supply needs to attenuate at the current cell temperature by combining the current discharge current, the current capacity decay rate, and the cumulative discharge capacity at the previous cell temperature. Combined with the nominal capacity of the power supply, the remaining capacity after capacity decay based on the current cell temperature capacity decay rate is analyzed, which improves the accuracy of the capacity analysis. This is beneficial to improving the accuracy and reliability of the power supply's capacity decay rate dynamically adjusting with changes in cell temperature.

[0086] In an optional embodiment, such as Figure 3 As shown, the device may further include: The judgment module 204 is used to determine whether the current basic attenuation capacity of the target power supply is greater than or equal to the current remaining capacity of the target power supply before the attenuation adjustment module 202 determines the current basic attenuation capacity corresponding to the target power supply as the current attenuation capacity required for the target power supply to attenuate under the current cell temperature; when it is determined that the current basic attenuation capacity corresponding to the target power supply is greater than or equal to the current remaining capacity of the target power supply, the attenuation adjustment module 201 is triggered to perform the operation of determining the current basic attenuation capacity corresponding to the target power supply as the current attenuation capacity required for the target power supply to attenuate under the current cell temperature. The determining module 205 is also used to determine the current remaining power of the target power as the current power attenuation required for the target power to perform power attenuation at the current cell temperature when it is determined that the current basic attenuation power corresponding to the target power is less than the current remaining power of the target power.

[0087] As can be seen, this optional embodiment can analyze the amount of power to be decayed at the current cell temperature based on the current cell temperature, temperature rise cutoff temperature and corresponding power change calibration data, and then further compare it with the remaining power when the power decay is performed based on the power decay ratio corresponding to the previous cell temperature, so as to determine the amount of power decay required for the power decay ratio analysis at the current cell temperature. This improves the accuracy of determining the amount of power decay at the current cell temperature, ensures that the power decays uniformly with the cell temperature, and reduces the occurrence of over-discharge of the power supply.

[0088] Example 3 Please see Figure 4 , Figure 4 This is a schematic diagram of a power supply structure disclosed in an embodiment of the present invention. This power supply can be applied to any scenario requiring power discharge attenuation analysis and equipped with a NAS device, such as live audio streaming or Tencent Video viewing. The power supply is integrated into and powers the NAS device. The NAS device performs data saving operations based on the results of the power supply's discharge adjustment operation. Figure 4 As shown, the electronic device may include: Memory 301 storing executable program code; Processor 302 coupled to memory 301; Furthermore, it may also include an input interface 303 and an output interface 304 coupled to the processor 302; The processor 302 calls the executable program code stored in the memory 301 to execute the steps in the method for dynamically adjusting the discharge capacity described in Embodiment 1.

[0089] Example 4 This invention discloses a computer storage medium storing computer instructions. When these computer instructions are invoked, they are used to execute the steps in the method for dynamically adjusting the discharge capacity described in Embodiment 1.

[0090] Example 5 This invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the steps in the method for dynamically adjusting the discharge capacity described in Embodiment 1.

[0091] The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0092] Through the detailed description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-Erasable Programmable Read-Only Memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0093] Finally, it should be noted that the method, apparatus, and power supply for dynamically adjusting the discharge capacity disclosed in the embodiments of the present invention are merely preferred embodiments of the present invention and are only used to illustrate the technical solutions of the present invention, not to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for dynamically adjusting the discharge capacity, the method being applied in a network-attached storage device, wherein the network-attached storage device is provided with a target power supply for supplying power, characterized in that... The network-attached storage device is used to perform a data saving operation based on the result of the discharge capacity adjustment operation performed by the target power supply; wherein, the method includes: Obtain the current data of the target power source, which includes the current cell temperature and the current remaining power of the target power source. Based on the current cell temperature of the target power supply, the current remaining charge of the target power supply, and the pre-determined temperature rise charge calibration data matching the target power supply, a charge decay adjustment operation is performed on the target power supply during discharge. The temperature rise charge calibration data corresponding to the target power supply includes a temperature rise cutoff temperature matching the target power supply and charge decay amplitudes corresponding to multiple temperature rise intervals matching the current cell temperature of the target power supply. When the real-time cell temperature of the target power supply reaches the temperature rise cutoff temperature corresponding to the target power supply, the charge of the target power supply decays to 0. During the power decay operation, the real-time cell temperature of the target power supply is monitored. When the real-time cell temperature of the target power supply rises to the next cell calibration temperature of the temperature rise calibration data, the operation of obtaining the current data of the target power supply is repeated until the real-time cell temperature of the target power supply rises to the temperature rise cutoff temperature. The next cell calibration temperature of the temperature rise calibration data is the temperature corresponding to one of the temperature rise intervals among all the temperature rise intervals.

2. The method for dynamically adjusting the discharge capacity according to claim 1, characterized in that, The step of performing a charge attenuation adjustment operation on the target power supply during discharge, based on the current cell temperature of the target power supply, the current remaining charge of the target power supply, and pre-determined temperature rise charge calibration data matching the target power supply, includes: Based on the current cell temperature of the target power supply, the current remaining power of the target power supply, and the pre-determined temperature rise power calibration data that matches the target power supply, determine the current power attenuation rate of the target power supply; Based on the current power attenuation rate of the target power source, a power attenuation adjustment operation is performed on the target power source during the discharge process.

3. The method for dynamically adjusting the discharge capacity according to claim 2, characterized in that, The step of determining the current power attenuation rate of the target power source based on its current cell temperature, current remaining power, and pre-determined temperature rise power calibration data matching the target power source includes: Based on the current cell temperature of the target power supply and the pre-calibrated temperature rise power calibration data matched with the target power supply, determine the current power decay required for the target power supply to decay power at the current cell temperature. The current attenuation coefficient of the target power source is determined based on the current attenuation capacity and the current remaining capacity of the target power source. Based on the current attenuation coefficient of the target power source and the predetermined attenuation factor affecting the attenuation of the target power source, the current attenuation ratio of the target power source is determined.

4. The method for dynamically adjusting the discharge capacity according to claim 3, characterized in that, The step of determining the current capacity reduction required for the target power supply to perform capacity reduction at the current cell temperature based on the current cell temperature of the target power supply and the pre-calibrated temperature rise capacity calibration data matched to the target power supply includes: Based on the current cell temperature of the target power supply and the pre-determined temperature rise power calibration data that matches the target power supply, determine the current basic power attenuation required for the target power supply to attenuate power at the current cell temperature. Determine the current base decay capacity corresponding to the target power supply, and use it as the current decay capacity required for the target power supply to decay under the current cell temperature; Based on the current cell temperature of the target power supply and the pre-determined temperature rise charge calibration data matching the target power supply, determine the current base charge reduction required for the target power supply to reduce charge at the current cell temperature, including: Based on the current cell temperature of the target power supply and the temperature rise cutoff temperature, determine the current temperature difference corresponding to the target power supply; Based on the current temperature difference corresponding to the target power supply, determine all the temperature rise ranges that the target power supply needs to pass through to achieve power decay at the current cell temperature; Obtain the temperature decay coefficient corresponding to each temperature rise interval, and calculate the current basic decay amount required for the target power supply to decay at the current cell temperature based on the temperature decay coefficients corresponding to all temperature rise intervals.

5. The method for dynamically adjusting the discharge capacity according to claim 4, characterized in that, Before determining the current baseline degradation capacity corresponding to the target power supply as the current degradation capacity required for the target power supply to degrade under the current cell temperature, the method further includes: Determine whether the current basic attenuation capacity of the target power source is greater than or equal to the current remaining capacity of the target power source; When it is determined that the current basic attenuation capacity of the target power source is greater than or equal to the current remaining capacity of the target power source, the operation of determining the current basic attenuation capacity of the target power source is performed, which is used as the current attenuation capacity required for the target power source to attenuate under the current cell temperature. When it is determined that the current basic attenuation capacity of the target power source is less than the current remaining capacity of the target power source, the current remaining capacity of the target power source is determined as the current attenuation capacity required for the target power source to attenuate under the current cell temperature.

6. The method for dynamically adjusting the discharge capacity according to any one of claims 1-5, characterized in that, When the current data of the target power source includes the current remaining power of the target power source, obtaining the current data of the target power source includes: Obtain the current discharge current of the target power source at the current cell temperature of the target power source; The base discharge capacity of the target power source is calculated based on the current discharge current of the target power source and the current capacity decay rate of the target power source. Based on the base discharge capacity of the target power supply and the predetermined cumulative discharge capacity of the target power supply at the previous cell temperature, calculate the current cumulative discharge capacity of the target power supply at the current cell temperature; Calculate the current remaining power of the target power source based on its current discharge capacity and nominal capacity.

7. The method for dynamically adjusting the discharge capacity according to any one of claims 1-5, characterized in that, The temperature rise electrical calibration data corresponding to the target power supply is determined in the following way: Monitor the current temperature of the sample power supply under the current constant temperature environment, wherein the type of the sample power supply is the same as the type of the target power supply; Based on the current temperature of the sample power supply, a cyclic discharge operation is performed on the sample power supply, and the power data and temperature data of the sample power supply during the cyclic discharge process are collected simultaneously until the sample power supply is shut off due to high temperature protection during discharge. The cut-off temperature when the sample power supply is shut off due to high temperature protection during discharge is recorded as the temperature rise cut-off temperature corresponding to the target power supply. Based on the collected power and temperature data of the sample power supply, the power change data of the sample power supply from the first preset discharge temperature to the second preset discharge temperature during the discharge process is calculated, and used as the temperature rise power calibration data of the target power supply; wherein, the first preset discharge temperature is less than the second preset discharge temperature, and the second preset discharge temperature is less than or equal to the cutoff temperature. Before each discharge under the current constant temperature environment, the current charge of the sample power supply is equal to or greater than the preset charge, and the preset charge is less than or equal to the full charge of the sample power supply.

8. The method for dynamically adjusting the discharge capacity according to claim 7, characterized in that, The system monitors the current temperature of the sample power supply under constant temperature conditions, and performs a cyclic discharge operation on the sample power supply based on its current temperature. Simultaneously, it collects the power and temperature data of the sample power supply during the cyclic discharge process, until the sample power supply is shut off due to high-temperature protection during discharge. This includes: Monitor the current temperature of the sample power supply under the current constant temperature environment; When the current temperature of the sample power supply is used to indicate that the current temperature of the sample power supply meets the predetermined charge calibration conditions, a discharge operation is performed on the sample power supply, and temperature data and charge data of the sample power supply during the discharge process are collected simultaneously until the sample power supply discharges to the end. Collect the cell temperature of the sample power supply when it is discharged and cut off under the current constant temperature environment; The cell temperature at which the sample power supply was discharged and cut off under the current constant temperature environment is updated to the current constant temperature environment of the sample power supply, and the operation of monitoring the current temperature of the sample power supply under the current constant temperature environment is re-executed until the sample power supply cuts off the discharge due to high temperature protection.

9. A device for dynamically adjusting the discharge capacity, the device being applied in a network-attached storage device, wherein the network-attached storage device is provided with a target power supply for supplying power, characterized in that, The network-attached storage device is used to perform a data saving operation based on the result of the discharge capacity adjustment operation performed by the target power supply; wherein, the device includes: The acquisition module is used to acquire the current data of the target power supply, which includes the current cell temperature and the current remaining power of the target power supply. The attenuation adjustment module is used to perform a power attenuation adjustment operation on the target power supply during discharge based on the current cell temperature of the target power supply, the current remaining power of the target power supply, and the pre-determined temperature rise power calibration data matched with the target power supply. The temperature rise power calibration data corresponding to the target power supply includes a temperature rise cutoff temperature matched with the target power supply and power attenuation amplitudes corresponding to multiple temperature rise intervals matched with the current cell temperature of the target power supply. When the real-time cell temperature of the target power supply reaches the temperature rise cutoff temperature corresponding to the target power supply, the power of the target power supply attenuates to 0. The monitoring module is used to monitor the real-time cell temperature of the target power supply during the power decay operation. When the real-time cell temperature of the target power supply rises to the next cell calibration temperature of the temperature rise calibration data, the acquisition module is triggered to re-execute the operation of acquiring the current data of the target power supply until the real-time cell temperature of the target power supply rises to the temperature rise cutoff temperature. The next cell calibration temperature of the temperature rise calibration data is the temperature corresponding to one of the temperature rise intervals among all the temperature rise intervals.

10. A power supply installed in a network-attached storage device, characterized in that, The network-attached storage device is used to perform a data saving operation based on the result obtained from the power supply's discharge capacity adjustment operation; wherein, the power supply includes: Memory containing executable program code; A processor coupled to memory; The processor calls the executable program code stored in the memory to execute the method for dynamically adjusting the discharge capacity as described in any one of claims 1-8.

11. A computer storage medium, characterized in that, The computer storage medium stores computer instructions, which, when invoked, are used to execute the method for dynamically adjusting the discharge capacity as described in any one of claims 1-8.