Search

CN-121996476-A - Power-down protection device, data processing method and device, equipment and storage medium

CN121996476ACN 121996476 ACN121996476 ACN 121996476ACN-121996476-A

Abstract

The application discloses a power failure protection device. The power-down protection device is connected with the solid-state disk and comprises a control unit, a capacitor power supply unit and a battery power supply unit, wherein the maximum electric energy reserve of a first capacitor in the capacitor power supply unit is smaller than or equal to 120uF, the maximum electric energy reserve of a first battery in the battery power supply unit is smaller than or equal to 120mAh, the control unit is configured to control the capacitor power supply unit and the battery power supply unit to supply power to the solid-state disk when the solid-state disk is detected to be in a power-down state, and data in a volatile memory of the solid-state disk is written into a nonvolatile memory when the capacitor power supply unit and the battery power supply unit supply power to the solid-state disk. Therefore, through the cooperative work of the control unit, the capacitor power supply unit and the battery power supply unit, the power failure event can be responded quickly, the data loss risk is effectively reduced, the data integrity and the data safety are guaranteed to a certain extent, and a powerful guarantee is provided for the data safety of users.

Inventors

  • ZHAO AN

Assignees

  • 深圳市联洲国际技术有限公司

Dates

Publication Date
20260508
Application Date
20251224

Claims (15)

  1. 1. The power-down protection device is characterized by being connected with a solid state disk and comprising a control unit, a capacitor power supply unit and a battery power supply unit, wherein the maximum electric energy reserve of a first capacitor in the capacitor power supply unit is smaller than or equal to 120uF, and the maximum electric energy reserve of a first battery in the battery power supply unit is smaller than or equal to 120mAh; The control unit is configured to: under the condition that the solid state disk is detected to be in a power-down state, controlling the capacitor power supply unit and the battery power supply unit to supply power to the solid state disk; And under the condition that the capacitor power supply unit and the battery power supply unit supply power to the solid state disk, writing data in the volatile memory of the solid state disk into a nonvolatile memory.
  2. 2. The power loss protection device of claim 1, wherein a maximum electrical energy reserve of each capacitor in the capacitive power supply unit is less than or equal to 120uF and a maximum electrical energy reserve of each battery in the battery power supply unit is less than or equal to 120mAh.
  3. 3. The power loss protection device according to claim 1 or 2, wherein the control unit is specifically configured to: controlling the capacitor power supply unit to supply power to the solid state disk under the condition that the solid state disk is detected to be in a power-down state; and under the condition that the capacitor power supply unit is detected to supply power to the solid state disk, controlling the battery power supply unit to supply power to the solid state disk.
  4. 4. The power-down protection device according to claim 1 or 2, wherein the power-down protection device is disposed on a computer device, and the solid state disk enters a power-down state when the computer device stops supplying power to the solid state disk.
  5. 5. The power loss protection device of claim 4, wherein the control unit is further configured to: Acquiring the electric energy state of the computer equipment under the condition that the computer equipment supplies power to the solid state disk; And under the condition that the computer equipment is in a preset power state, controlling the solid state disk to write target data in the volatile memory into the nonvolatile memory.
  6. 6. The power-down protection device according to claim 1 or 2, wherein the data comprises a plurality of sub-data types, each sub-data type corresponding to a priority, and the control unit is further configured to: And sequentially writing the multiple types of sub data in the volatile memory of the solid state disk into a nonvolatile memory according to the order of the priority from high to low.
  7. 7. The power loss protection device of claim 6, wherein the control unit is further configured to: Determining whether the capacitor power supply unit and the battery power supply unit can support writing target data in the volatile memory of the solid state disk into the nonvolatile memory according to the running state data of the solid state disk, the current residual capacity of the capacitor power supply unit and the current residual capacity of the battery power supply unit; and under the condition that the capacitor power supply unit and the battery power supply unit cannot support the sequential writing of the multiple types of sub data in the volatile memory of the solid state disk into the nonvolatile memory, controlling the solid state disk to execute preset operation for reducing running power consumption.
  8. 8. The power-down protection device according to claim 7, wherein the preset operation includes closing a portion of a data writing channel of the nonvolatile memory and/or reducing a master control frequency of the solid state disk.
  9. 9. The power loss protection device of claim 7, wherein the control unit is further configured to: Determining a first current aging degree of the capacitive power supply unit and a second current aging degree of the battery power supply unit; Feeding back preset prompt information under the condition that the first current aging degree is greater than or equal to a first aging degree threshold value and/or the second current aging degree is greater than or equal to a second aging degree threshold value; writing data in a volatile memory of the solid state disk into a nonvolatile memory in a preset mode under the condition that the first current aging degree is greater than or equal to a third aging degree threshold value and/or the second current aging degree is greater than or equal to a fourth aging degree threshold value, wherein the third aging degree threshold value is greater than the first aging degree threshold value, the fourth aging degree threshold value is greater than the second aging degree threshold value, and the preset mode comprises synchronous writing and/or direct writing.
  10. 10. A data processing method, applied to the power-down protection device of any one of claims 1 to 5, the method comprising: under the condition that the solid state disk is detected to be in a power-down state, controlling the capacitor power supply unit and the battery power supply unit to supply power to the solid state disk; And under the condition that the capacitor power supply unit and the battery power supply unit supply power to the solid state disk, writing data in the volatile memory of the solid state disk into a nonvolatile memory.
  11. 11. The data processing method according to claim 10, wherein the capacitor power supply unit supplies power to the solid state disk when the solid state disk enters a power-down state, the method further comprising: and under the condition that the capacitor power supply unit is detected to supply power to the solid state disk, controlling the battery power supply unit to supply power to the solid state disk.
  12. 12. A data processing apparatus, characterized in that it is applied to a power-down protection apparatus as claimed in any one of claims 1 to 10, said apparatus comprising: the hard disk control unit is used for controlling the capacitor power supply unit and the battery power supply unit to supply power to the solid state disk under the condition that the solid state disk is detected to be in a power-down state; And the data writing unit is used for writing the data in the volatile memory of the solid state disk into the nonvolatile memory under the condition that the capacitor power supply unit and the battery power supply unit supply power to the solid state disk.
  13. 13. An electronic device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, implements the method of claim 10 or 11.
  14. 14. A computer readable storage medium, characterized in that it stores a computer program which, when executed by one or more processors, implements the method of claim 10 or 11.
  15. 15. A computer program product comprising computer programs/instructions which, when executed by a processor, implement the method of claim 10 or 11.

Description

Power-down protection device, data processing method and device, equipment and storage medium Technical Field The present application relates to the field of data storage technology, and in particular, to a power failure protection device, a data processing method, a data processing device, an electronic device, a computer readable storage medium, and a computer program product. Background In the related art, solid state disk (Solid STATE DRIVE, SSD) generally relies on DRAM (Dynamic Random Access Memory ) to perform high-speed data caching during operation, and user data is finally stored in a nonvolatile memory such as NAND flash memory. However, when the computer device is accidentally powered down, if the data buffered in the volatile memory is not written into the nonvolatile memory in time, the data is lost or damaged, which affects the user experience to a certain extent. Disclosure of Invention The application provides a power failure protection device, a data processing method, a data processing device, an electronic device, a computer readable storage medium and a computer program product. The embodiment of the application provides a power-down protection device which is connected with a solid state disk, wherein the power-down protection device comprises a control unit, a capacitor power supply unit and a battery power supply unit, the maximum electric energy reserve of a first capacitor in the capacitor power supply unit is smaller than or equal to 120uF, and the maximum electric energy reserve of a first battery in the battery power supply unit is smaller than or equal to 120mAh; The control unit is configured to: under the condition that the solid state disk is detected to be in a power-down state, controlling the capacitor power supply unit and the battery power supply unit to supply power to the solid state disk; And under the condition that the capacitor power supply unit and the battery power supply unit supply power to the solid state disk, writing data in the volatile memory of the solid state disk into a nonvolatile memory. Therefore, through the cooperative work of the control unit, the capacitor power supply unit and the battery power supply unit, the power failure event can be responded quickly, the data loss risk is effectively reduced, the data integrity and the data safety are guaranteed to a certain extent, and a powerful guarantee is provided for the data safety of users. In certain embodiments, the maximum electrical energy reserve of each capacitor in the capacitive powering unit is less than or equal to 120uF and the maximum electrical energy reserve of each battery in the battery powering unit is less than or equal to 120mAh. Therefore, the upper limit of the capacity of all the energy storage elements in the capacitor power supply unit and the battery power supply unit is limited, the problem that the device volume exceeds standard caused by overlarge capacity of part of the energy storage elements is solved to a certain extent, the whole structure of the power failure protection device is more compact, the occupied area is reduced, the solid state disk with the small form factors of M.2 2230 and the like is more suitable, meanwhile, the whole material cost is reduced to a certain extent, and the development trend of equipment miniaturization is met. In certain embodiments, the control unit is specifically configured to: controlling the capacitor power supply unit to supply power to the solid state disk under the condition that the solid state disk is detected to be in a power-down state; and under the condition that the capacitor power supply unit is detected to supply power to the solid state disk, controlling the battery power supply unit to supply power to the solid state disk. Therefore, by dividing the capacitor power supply unit and the battery power supply unit and establishing a cooperative power supply control mechanism, seamless connection of power supply is realized, stability and reliability of power supply are improved to a certain extent, and compared with a single power supply unit scheme, the method can adapt to diversified power failure scenes and data writing requirements, the effect of power failure protection is improved, and safe storage of data is guaranteed. In some embodiments, the power-down protection device is disposed on a computer device, and when the computer device stops supplying power to the solid state disk, the solid state disk enters a power-down state. Therefore, the integrated design of the power-down protection device and the computer equipment realizes the rapid detection and response of the power-down event, shortens the time from the occurrence of power down to the start of power-down protection to a certain extent, ensures the timely start of data writing operation, reduces the risk of data loss, and improves the timeliness and reliability of the power-down protection. In certain embodiments, the control unit is further configured