CN115457995A - Solid state disk power supply management method, system, terminal device and storage medium - Google Patents

Solid state disk power supply management method, system, terminal device and storage medium Download PDF

Info

Publication number
CN115457995A
CN115457995A CN202211108510.1A CN202211108510A CN115457995A CN 115457995 A CN115457995 A CN 115457995A CN 202211108510 A CN202211108510 A CN 202211108510A CN 115457995 A CN115457995 A CN 115457995A
Authority
CN
China
Prior art keywords
power supply
data
abnormal
preset
standard
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211108510.1A
Other languages
Chinese (zh)
Inventor
沈金良
吴礼优
沈嘉琦
王明锋
王成才
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jinsheng Electronic Technology Co ltd
Original Assignee
Shenzhen Jinsheng Electronic Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jinsheng Electronic Technology Co ltd filed Critical Shenzhen Jinsheng Electronic Technology Co ltd
Priority to CN202211108510.1A priority Critical patent/CN115457995A/en
Publication of CN115457995A publication Critical patent/CN115457995A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C5/00Details of stores covered by group G11C11/00
    • G11C5/14Power supply arrangements, e.g. power down, chip selection or deselection, layout of wirings or power grids, or multiple supply levels
    • G11C5/148Details of power up or power down circuits, standby circuits or recovery circuits
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/56External testing equipment for static stores, e.g. automatic test equipment [ATE]; Interfaces therefor
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/56External testing equipment for static stores, e.g. automatic test equipment [ATE]; Interfaces therefor
    • G11C29/56008Error analysis, representation of errors
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application relates to the technical field of storage, in particular to a solid state disk power supply management method, a system, terminal equipment and a storage medium, wherein the method comprises the following steps: acquiring power supply data; judging whether the power supply data meet a preset power supply standard or not; if the power supply data do not accord with the preset power supply standard, acquiring corresponding abnormal power supply data; judging the abnormal type of the abnormal power supply data; if the abnormal type is input abnormality, acquiring and analyzing corresponding input voltage amplitude data to generate a corresponding abnormality analysis result; if the abnormal type is output abnormality, acquiring and analyzing corresponding output power supply data to generate a corresponding abnormal analysis result; and matching a corresponding exception handling strategy for safety handling according to the exception analysis result. The power supply management method, the power supply management system, the terminal device and the storage medium for the solid state disk can improve the power supply safety of the solid state disk.

Description

Solid state disk power supply management method and system, terminal device and storage medium
Technical Field
The present application relates to the field of storage technologies, and in particular, to a method and a system for managing power supply of a solid state disk, a terminal device, and a storage medium.
Background
Solid state disks, also known as solid state drives, are hard disks made with arrays of solid state electronic memory chips.
The solid state disk is mostly realized by using NAND Flash (NAND gate Flash), which is a nonvolatile random access storage medium and is characterized in that data does not disappear after power failure, and the NAND Flash is different from the traditional volatile random access storage medium and a volatile memory, such as DRAM, SRAM and the like, so that the NAND Flash can be used as a persistent memory. The traditional solid state disk inherits the defects of a flash memory, the data cannot be lost when the power failure occurs normally, and after the solid state disk is electrified again, the solid state disk only needs to reload relevant information (such as mapping data, flash block information and the like) stored before the power failure, and can continue to work after the state before the power failure occurs.
The solid state disk is powered off when the solid state disk does not receive the power failure notification of the host, or the solid state disk is powered off when the solid state disk receives the power failure notification of the host and does not perform related data storage action, so that important data can be lost, and the power supply safety of the solid state disk is poor.
Disclosure of Invention
In order to improve the power supply safety of the solid state disk, the application provides a solid state disk power supply management method, a solid state disk power supply management system, terminal equipment and a storage medium.
In a first aspect, the present application provides a method for managing power supply to a solid state disk, which adopts the following technical scheme:
acquiring power supply data;
judging whether the power supply data meet a preset power supply standard or not;
if the power supply data do not accord with the preset power supply standard, acquiring corresponding abnormal power supply data;
judging the abnormal type of the abnormal power supply data;
if the abnormal type is input abnormality, acquiring and analyzing corresponding input voltage amplitude data to generate a corresponding abnormal analysis result;
if the abnormal type is output abnormality, acquiring and analyzing corresponding output power supply data to generate a corresponding abnormal analysis result;
and matching a corresponding exception handling strategy for safety handling according to the exception analysis result.
By adopting the technical scheme, whether the power supply data of the solid state disk meet the corresponding preset power supply standard is judged, the abnormal power supply data which do not meet the preset power supply standard in the power supply data are further obtained, the abnormal type of the abnormal power supply data is immediately judged, if the abnormal type is input, the voltage amplitude data corresponding to the input voltage is obtained and analyzed, the corresponding abnormal analysis result is generated, if the abnormal type is output, the corresponding output power supply data is obtained and analyzed, the corresponding abnormal analysis result is generated, finally, the safety processing is carried out by combining all the abnormal types of the power supply data to match the corresponding abnormal processing strategies, and the classification analysis is carried out on the power supply data when the power supply abnormality occurs in the solid state disk, so that the power supply safety of the solid state disk is improved.
Optionally, if the anomaly type is input anomaly, acquiring and analyzing corresponding input voltage amplitude data, and generating a corresponding anomaly analysis result includes the following steps:
acquiring a corresponding voltage amplitude value according to the input voltage amplitude data;
judging the abnormal type of the voltage amplitude value;
if the abnormal type is power failure, acquiring and analyzing corresponding data storage progress to generate a corresponding abnormal analysis result;
and if the abnormal type is voltage overshoot, acquiring the current voltage amplitude and the duration of the current voltage amplitude, and generating a corresponding abnormal analysis result.
By adopting the technical scheme, the corresponding abnormal type of power failure or voltage overshoot of the power supply is obtained and analyzed according to the voltage amplitude value, so that the analysis of the power supply safety of the solid state disk when the input abnormality occurs is promoted.
Optionally, if the abnormal type is power failure, acquiring and analyzing a corresponding data storage progress, and generating the corresponding abnormal analysis result includes the following steps:
judging whether the data storage progress meets a preset storage standard or not;
if the cache progress does not meet the preset storage standard, acquiring the current data to be stored;
acquiring a corresponding storage energy consumption value according to the current data to be stored;
judging whether the stored energy consumption value meets a preset energy supply standard or not;
and if the storage energy consumption value does not accord with a preset energy supply standard, generating a corresponding energy consumption difference as the abnormal analysis result according to the storage energy consumption value and the preset energy supply standard.
By adopting the technical scheme, when the solid state disk is powered down, the data storage progress of the solid state disk is analyzed so as to acquire data which is not stored yet, whether the storage energy consumption value meets the preset energy supply standard or not is further judged, and then the energy consumption difference of the current data to be stored which does not meet the preset energy supply standard is acquired as an abnormal analysis result, so that the safety of the data to be stored in the solid state disk in the process of storing the data is improved.
Optionally, after determining whether the cache power consumption value meets a preset power supply standard, the method further includes the following steps:
if the stored energy consumption value meets a preset energy supply standard, acquiring corresponding energy supply distribution data;
judging whether the energy supply distribution data meet a preset working standard or not;
if the energy supply distribution data do not accord with the preset working standard, acquiring corresponding abnormal energy supply distribution data;
and generating a distribution difference as the abnormal analysis result according to the preset working standard and the abnormal energy supply distribution data.
By adopting the technical scheme, whether the energy supply distribution data meet the corresponding preset working standard or not is judged, so that the safety analysis on the operation of other functional modules in the solid state disk is improved.
Optionally, after determining whether the data storage progress meets a preset storage standard, the method further includes the following steps:
if the cache progress meets the preset storage standard, acquiring the power supply state of the solid state disk;
judging whether the solid state disk is powered back within a preset time standard or not;
if the power supply is not recovered, continuing to wait until the power supply of the solid state disk is recovered;
and if the power supply is recovered, reestablishing the connection between the solid state disk and the host.
By adopting the technical scheme, whether the power supply of the solid state disk is recovered within the preset time length standard after the power failure of the solid state disk is judged, if the power supply is recovered, the solid state disk is restarted to recover the state of the solid state disk, and the solid state disk is further connected with the host, so that the efficiency of establishing the connection between the solid state disk and the host is improved.
Optionally, if the type of the abnormality is output abnormality, acquiring and analyzing corresponding output power data, and generating a corresponding abnormality analysis result includes the following steps:
acquiring corresponding output voltage according to the output power data;
judging whether the output voltage meets a preset output voltage standard or not;
if the output voltage does not accord with the preset output voltage standard, judging the output abnormal type of the output voltage;
if the output abnormal type is overvoltage, acquiring the current voltage value of the output voltage, and generating corresponding voltage stabilization data as the abnormal analysis result according to the preset output voltage standard and the current voltage value;
and if the output abnormal type is under-voltage, acquiring the current voltage value of the output voltage, and generating corresponding compensation voltage data as the abnormal analysis result according to the preset output voltage standard and the current voltage value.
By adopting the technical scheme, classification analysis is respectively carried out on overvoltage or undervoltage conditions in the output abnormal type, and corresponding voltage stabilization data or compensation voltage data are further obtained to serve as an abnormal analysis result, so that data analysis when the solid state disk is abnormal in output is enhanced, and power supply safety analysis of the solid state disk is improved.
Optionally, after determining whether the output voltage meets a preset voltage standard, the method further includes the following steps:
if the output voltage meets the preset voltage output standard, acquiring corresponding current data;
judging whether the current data exceeds a preset operation current threshold value;
if the current data exceed the preset operating current standard, acquiring corresponding overcurrent data;
acquiring corresponding line temperature according to the overcurrent data;
judging whether the line temperature meets a preset operation temperature standard or not;
and if the line temperature does not accord with the preset operating temperature standard, acquiring the corresponding real-time operating temperature, and generating a corresponding alarm signal according to the real-time operating temperature.
By adopting the technical scheme, whether the current data of the solid state disk exceeds the corresponding preset operating current standard or not is judged, and the temperature of the line corresponding to the overcurrent data which does not accord with the preset operating current standard is further analyzed, so that the safety analysis of the current and the line temperature of the solid state disk in the operating process is improved.
In a second aspect, the present application further provides a solid state disk power supply management system, which adopts the following technical scheme:
the first acquisition module is used for acquiring power supply data;
the first judgment module is used for judging whether the power supply data meet a preset power supply standard or not;
the second acquisition module is used for acquiring corresponding abnormal power supply data if the power supply data do not accord with the preset power supply standard;
the second judgment module is used for judging the abnormal type of the abnormal power supply data;
the first analysis module is used for acquiring and analyzing corresponding input voltage amplitude data and generating a corresponding abnormal analysis result if the abnormal type is input abnormal;
the second analysis module is used for acquiring and analyzing corresponding output power supply data to generate a corresponding abnormal analysis result if the abnormal type is output abnormality;
and the matching module is used for matching the corresponding exception handling strategy for safety handling according to the exception analysis result.
By adopting the technical scheme, whether the power supply data of the solid state disk acquired by the first acquisition module meets the corresponding preset power supply standard is judged according to the first judgment module, the abnormal power supply data which does not meet the preset power supply standard in the power supply data is further acquired by the second acquisition module, the abnormal type of the abnormal power supply data is immediately judged by the second judgment module, if the abnormal type is input, the voltage amplitude data corresponding to the input voltage is acquired and analyzed by the first analysis module to generate a corresponding abnormal analysis result, if the abnormal type is output, the corresponding output power supply data is acquired and analyzed by the second analysis module to generate a corresponding abnormal analysis result, and finally, the abnormal types of all the power supply data are combined and matched with the corresponding abnormal processing strategy by the matching module to perform safety processing.
In a third aspect, the present application provides a terminal device, which adopts the following technical solution:
a terminal device comprises a memory and a processor, wherein computer instructions capable of running on the processor are stored in the memory, and when the processor loads and executes the computer instructions, the solid state disk power supply management method is adopted.
By adopting the technical scheme, the solid state disk power supply management method generates the computer instruction, and the computer instruction is stored in the memory to be loaded and executed by the processor, so that the terminal equipment is manufactured according to the memory and the processor, and the use is convenient.
In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solutions:
a computer readable storage medium, in which computer instructions are stored, and when the computer instructions are loaded and executed by a processor, the method for managing power supply of a solid state disk is adopted.
By adopting the technical scheme, the solid state disk power supply management method generates the computer instruction, the computer instruction is stored in the computer readable storage medium to be loaded and executed by the processor, and the computer instruction can be conveniently read and stored through the computer readable storage medium.
To sum up, this application includes following beneficial technological effect: judging whether the power supply data of the solid state disk meets the corresponding preset power supply standard or not, further acquiring abnormal power supply data which does not meet the preset power supply standard in the power supply data, immediately judging the abnormal type of the abnormal power supply data, if the abnormal type is input, acquiring and analyzing voltage amplitude data corresponding to input voltage, generating a corresponding abnormal analysis result, if the abnormal type is output, acquiring and analyzing corresponding output power supply data, generating a corresponding abnormal analysis result, and finally matching the corresponding abnormal processing strategies with all the abnormal types of all the power supply data for safety processing.
Drawings
Fig. 1 is a schematic flowchart of steps S101 to S107 in a power supply management method for a solid state disk according to the present application.
Fig. 2 is a schematic flowchart of steps S201 to S204 in the power supply management method for a solid state disk according to the present application.
Fig. 3 is a schematic flowchart of steps S301 to S305 in a power supply management method for a solid state disk according to the present application.
Fig. 4 is a schematic flowchart of steps S401 to S404 in a power supply management method for a solid state disk according to the present application.
Fig. 5 is a schematic flowchart of steps S501 to S504 in the power supply management method for a solid state disk according to the present application.
Fig. 6 is a schematic flowchart of steps S601 to S605 in a power supply management method for a solid state disk according to the present application.
Fig. 7 is a schematic flowchart of steps S701 to S706 in the power supply management method for a solid state disk according to the present application.
Fig. 8 is a schematic block diagram of a solid state disk power supply management system according to the present application.
Description of reference numerals:
1. a first acquisition module; 2. a first judgment module; 3. a second acquisition module; 4. a second judgment module; 5. a first analysis module; 6. a second analysis module; 7. and a matching module.
Detailed Description
The present application is described in further detail below with reference to figures 1-8.
For convenience of describing the present embodiment, a description is given in the context of an integrated power management circuit in a solid state disk.
The solid state disk is generally composed of modules such as a main control chip, a flash memory array and a cache chip, power supplies of the modules are all provided by an integrated power management circuit, and because the voltage provided by a host to the integrated power management circuit is higher than the power voltage required by each module of the solid state disk, the solid state disk is generally realized by adopting a step-down DC-DC converter.
For the input of the integrated power management circuit, the requirements of different host types need to be met, and for this purpose, the mode of the input power is usually set to be configurable. VinA is a main power supply provided by a host for an integrated power management circuit, two voltage domains of 3.3V +/-10% and 5V +/-10% need to be supported, when VinA cannot provide enough current capacity for an output channel, a standby power supply VinB needs to be used, and the voltage range is 12V +/-10%. There are three configuration modes of the input power: only VinA is needed, and VinB is not needed; (2) VinA and VinB are required simultaneously; (3) VinB if present is required.
The embodiment of the application discloses a solid state disk power supply management method, as shown in fig. 1, comprising the following steps:
s101, acquiring power supply data;
s102, judging whether the power supply data meet a preset power supply standard or not;
s103, if the power supply data do not accord with the preset power supply standard, acquiring corresponding abnormal power supply data;
s104, judging the abnormal type of the abnormal power supply data;
s105, if the abnormal type is input abnormal, acquiring and analyzing corresponding input voltage amplitude data to generate a corresponding abnormal analysis result;
s106, if the abnormal type is output abnormal, acquiring and analyzing corresponding output power supply data to generate a corresponding abnormal analysis result;
and S107, matching the corresponding exception handling strategy to carry out security handling according to the exception analysis result.
The power supply data in steps S101 to S103 refer to data related to power supply of a main power supply and a standby power supply of the solid state disk, and the preset power supply standard refers to a power supply standard capable of meeting normal work of the solid state disk.
In practical application, because the solid state disk must use the FTL to convert the logical address and the physical address, if power supply data abnormality occurs under normal operation conditions of the solid state disk such as reading, writing, deleting, and the like, which causes power supply abnormality, the mapping table may be lost due to update failure, and thus the solid state disk cannot be identified by the system, and the solid state disk has respective corresponding preset power supply standards according to different types of the solid state disk during normal operation.
Meanwhile, in order to improve the read-write performance, an SDRAM is usually used as a cache, and if power supply abnormality occurs in the read-write process, such as abnormal power failure, data in the SDRAM may not be written into Nand Flash to cause data loss, or an updated mapping table may not be written into Nand Flash, where the Nand Flash is one of Flash memories.
In steps S104 to S106, the abnormal power supply data refers to data related to the power supply data of the solid state disk that does not meet the corresponding preset power supply standard, the input voltage amplitude data refers to voltage amplitude data generated by the system power supply voltage of the solid state disk, and the output power supply data refers to power supply data output to each functional module in the solid state disk.
In practical application, the integrated power management circuit involves two types of abnormal interrupts, one is used for responding to input abnormality, the other is used for responding to output abnormality, and the system performs corresponding processing according to different interrupt types.
If the input of the solid state disk is abnormal, acquiring input voltage amplitude data generated by a system power supply for analysis; and if the output abnormality occurs, acquiring corresponding output power supply data for analysis, and generating a corresponding abnormality analysis result after analyzing according to the actual abnormality type of the solid state disk.
The anomaly analysis result in step S107 is a corresponding analysis result of an anomaly occurring in the solid state disk, and the anomaly handling policy is a solution corresponding to a specific anomaly condition in the anomaly analysis result.
The solid state disk power supply management method provided by this embodiment determines whether power supply data of a solid state disk meets a corresponding preset power supply standard, further obtains abnormal power supply data that does not meet the preset power supply standard in the power supply data, immediately determines an abnormal type of the abnormal power supply data, if the abnormal type is input, obtains and analyzes voltage amplitude data corresponding to an input voltage, generates a corresponding abnormal analysis result, if the abnormal type is output, obtains and analyzes corresponding output power supply data, generates a corresponding abnormal analysis result, and finally matches corresponding abnormal processing strategies with various abnormal types of all the power supply data for safety processing.
In one implementation of this embodiment, as shown in fig. 2, if the type of the abnormality is an input abnormality, the step S105 of acquiring and analyzing corresponding input voltage amplitude data and generating a corresponding abnormality analysis result includes the following steps:
s201, acquiring a corresponding voltage amplitude value according to input voltage amplitude data;
s202, judging the abnormal type of the voltage amplitude value;
s203, if the abnormal type is power failure, acquiring and analyzing a corresponding data storage progress to generate a corresponding abnormal analysis result;
and S204, if the abnormal type is voltage overshoot, acquiring the current voltage amplitude and the duration of the current voltage amplitude, and generating a corresponding abnormal analysis result.
In practical application, the voltage amplitude value refers to upper and lower amplitude values of input voltage in input voltage amplitude data, power failure refers to abnormal power failure of a power supply of a solid state disk system, data storage progress refers to storage progress of related data in a solid state disk when power failure occurs, and voltage overshoot refers to the fact that the peak value of the input voltage exceeds a set voltage and can cause failure of circuit components.
For example, when a system power supply shakes greatly in the moment, the influence on the solid state disk is huge, the fact that the power supply of the system is powered off can be known through the voltage amplitude value, at the moment, data which are being read and stored in the solid state disk are obtained, the storage progress of the data is further obtained, and the storage progress is analyzed to generate a corresponding abnormal analysis result.
For another example, as can be seen from the voltage amplitude value, if the peak value of the input voltage at a certain time exceeds the set voltage 15V, the current voltage abnormal amplitude and the duration of the voltage abnormal amplitude are obtained, which are inversely proportional, and if the voltage abnormal amplitude is larger, the system will issue an interrupt command faster.
According to the solid state disk power supply management method provided by the embodiment, the corresponding abnormal type of power failure or voltage overshoot of the power supply is obtained and analyzed according to the voltage amplitude value, so that the analysis of the power supply safety of the solid state disk when the input abnormality occurs is promoted.
In one implementation manner of this embodiment, as shown in fig. 3, step S203, namely, if the type of the abnormality is power failure, acquiring and analyzing a corresponding data storage progress, and generating a corresponding abnormality analysis result includes the following steps:
s301, judging whether the data storage progress accords with a preset storage standard or not;
s302, if the cache progress does not accord with a preset storage standard, acquiring the current data to be stored;
s303, acquiring a corresponding storage energy consumption value according to the current data to be stored;
s304, judging whether the storage energy consumption value meets a preset energy supply standard or not;
and S305, if the stored energy consumption value does not accord with the preset energy supply standard, generating a corresponding energy consumption difference as an abnormal analysis result according to the stored energy consumption value and the preset energy supply standard.
In practical application, the preset storage standard refers to a storage standard of related data in an operation process of the solid state disk, the current data to be stored refers to data which is not stored yet when a cache progress does not meet the corresponding preset storage standard, the storage energy consumption value refers to electric energy which needs to be consumed for storing the current data to be stored, the preset energy supply standard refers to an electric energy standard which can be provided by a standby power supply of the solid state disk, and the energy consumption difference refers to an electric energy difference which is caused by the fact that the current standby power supply has insufficient electric energy to store the current data to be stored and further needs to be consumed.
It should be noted that after the solid state disk is abnormally powered down, all data in the SDRAM must be completely written into the Nand Flash, generally, the capacity of the SDRAM is set to one thousandth of the bare capacity of the solid state disk, for a small-capacity solid state disk, the data to be written into the Nand Flash in the SDRAM is less, and the data can be continuously written through the super capacitor or the tantalum capacitor.
For example, according to a preset storage standard, all data in the SDRAM must be completely written into Nand Flash, the corresponding storage progress is 100%, the current data storage progress is detected to be 80%, it can be shown that 20% of the current data to be stored is not written into Nand Flash, further, the corresponding storage energy consumption value is obtained according to the current data to be stored is 2 watts, the storage electric energy which can be provided at this time is 1.5 watts according to the preset functional standard, the corresponding energy consumption difference is obtained to be 0.5 watts, and 0.5 watts is used as an analysis result of the power failure abnormality.
For another example, when the current data storage progress is detected to be 100%, which may indicate that all data in the SDRAM must be completely written into Nand Flash, the current 100% storage progress is obtained and displayed.
For another example, the corresponding storage power consumption value obtained according to the current data to be stored is 2 watts, the storage power which can be provided at the moment can be obtained according to the preset functional standard is 3 watts, and the storage power value which can be provided in the solid state disk is obtained and displayed in real time.
According to the power supply management method for the solid state disk, when the solid state disk is powered off, the data storage progress of the solid state disk is analyzed so as to obtain data which are not stored, whether the storage energy consumption value meets the preset energy supply standard or not is further judged, and then the energy consumption difference of the current data to be stored which does not meet the preset energy supply standard is obtained and serves as an abnormal analysis result, so that the safety of the data to be stored in the solid state disk in the storage process is improved.
In one implementation manner of this embodiment, as shown in fig. 4, after the step S304, that is, after determining whether the buffer power consumption value meets the preset power supply standard, the method further includes the following steps:
s401, if the stored energy consumption value meets a preset energy supply standard, acquiring corresponding energy supply distribution data;
s402, judging whether the energy supply distribution data meet a preset working standard or not;
s403, if the energy supply distribution data do not accord with the preset working standard, acquiring corresponding abnormal energy supply distribution data;
and S404, generating distribution difference as an abnormal analysis result according to the preset working standard and the abnormal energy supply distribution data.
In practical application, the energy supply distribution data refers to power supply distribution data of a system power supply or a standby power supply to each functional module in the solid state disk, the preset working standard refers to a standard of electric energy required by each functional module in the solid state disk to work normally, the abnormal energy supply distribution data refers to related abnormal data that the power supply distribution of the system power supply or the standby power supply cannot normally provide electric energy for each functional module in the solid state disk, and the distribution difference refers to an electric energy difference that the functional modules cannot work normally.
It should be noted that, in order to store the cache data in the NAND flash memory in a write-back manner, an energy storage capacitor and a related charge-discharge circuit need to be additionally added, and whether the input power supply is abnormally powered down is monitored in real time to trigger the power-down protection circuit to discharge the power-down protection circuit to the solid state disk for storing the cache data.
After the power failure protection circuit is triggered to discharge, the solid state disk firmware stops communication between the solid state disk and the host, cache data are stored completely, the size of the cache data at different power failure time points is different, the time and the energy required for storing the cache data are different, and in order to ensure that the cache data can be completely written into the NAND flash memory to be stored when the cache data are full, related auxiliary functional modules in the solid state disk also need corresponding power supply, so that enough spare energy storage capacitors are required.
For example, according to energy supply distribution data, the standby power supply can provide 3 watts of electric energy for the main control chip and 4 watts of electric energy for the SDRAM, further preset working standards can be obtained, the main control chip needs 4 watts of electric energy for normal operation, the SDRAM needs 4 watts of electric energy for normal operation, therefore, the energy supply distribution data can be judged to be not accordant with the corresponding preset working standards, abnormal power supply distribution data of the main control chip are further obtained, and 1 watt of distribution difference is generated to serve as an abnormal analysis result.
For another example, according to the available energy supply distribution data, the standby power supply can provide 4 watts of electric energy for the main control chip and 4 watts of electric energy for the SDRAM, so that it can be determined that the energy supply distribution data meets the corresponding preset working standard, and the electric quantity of the standby power supply is further monitored in real time.
According to the solid state disk power supply management method provided by the embodiment, whether the energy supply distribution data meet the corresponding preset working standard or not is judged, so that the safety analysis on the operation of other functional modules in the solid state disk is improved.
In one implementation manner of this embodiment, as shown in fig. 5, after the step S301 that is to determine whether the data storage progress meets the preset storage standard, the following steps are further included:
s501, if the cache progress accords with the preset storage standard, acquiring the power supply state of the solid state disk;
s502, judging whether the solid state disk recovers power supply within a preset time standard;
s503, if the power supply is not recovered, continuing to wait until the power supply of the solid state disk is recovered;
and S504, if the power supply is recovered, reestablishing the connection between the solid state disk and the host.
In practical application, the power supply state refers to whether the solid state disk recovers power supply after power failure occurs, and the preset duration standard refers to a predefined duration for detecting whether the solid state disk recovers power supply after power failure occurs.
It should be noted that, when the data in the cache is only half or less, much energy is not consumed after the data is completely written into the NAND flash memory, the solid state disk has no data read-write operation after the data is stored, the consumption is reduced, and a long time is required for the energy storage capacitor to completely discharge.
Therefore, in order to solve the problem that the host recovers normal power supply before the energy storage capacitor is completely discharged, so that the disk can not be identified, the host needs to detect whether the power supply state of the host recovers to be normal or not after the cache data is written back and stored in the NAND flash memory, and if the host recovers to be normal, the host needs to actively and repeatedly handshake connection with the host.
For example, if the PC host recovers power supply, because the energy storage capacitor array is not completely discharged, the CPU module of the solid state disk is still in an on-state, and only no data is read and written, and at this time, the PC host has recovered to operate normally, so that the solid state disk needs to be connected with the PC host again to perform normal read and write operations on the solid state disk; however, when the energy storage capacitor array is triggered to discharge, the solid state disk is already actively disconnected from the signal connection with the PC host, so that the solid state disk needs to be restarted at this time, and then the solid state disk is re-connected with the PC host. And if the PC host power supply does not recover to be normal before the energy storage capacitor array completely discharges, the energy storage capacitor module continues to discharge until the PC host power supply recovers to be normal, and then the energy storage capacitor module is connected with the solid state disk.
According to the power supply management method for the solid state disk, whether power supply is recovered within the preset time standard after the solid state disk is powered off is judged, if the power supply is recovered, the solid state disk is restarted to recover the state of the solid state disk, and the solid state disk is further connected with the host, so that the efficiency of establishing connection between the solid state disk and the host is improved.
In one implementation of this embodiment, as shown in fig. 6, if the type of the abnormality is an output abnormality, the step S106 of acquiring and analyzing the corresponding output power data and generating the corresponding abnormality analysis result includes the following steps:
s601, acquiring corresponding output voltage according to the output power data;
s602, judging whether the output voltage meets a preset output voltage standard or not;
s603, if the output voltage does not accord with the preset output voltage standard, judging the output abnormal type of the output voltage;
s604, if the output abnormal type is overvoltage, acquiring a current voltage value of the output voltage, and generating corresponding voltage stabilization data as an abnormal analysis result according to a preset output voltage standard and the current voltage value;
and S605, if the output abnormal type is undervoltage, acquiring the current voltage value of the output voltage, and generating corresponding compensation voltage data as an abnormal analysis result according to the preset output voltage standard and the current voltage value.
In practical application, the output voltage refers to voltage output to each functional module of the solid state disk, the preset voltage output standard refers to a rated voltage standard required by each functional module in the solid state disk in normal operation, the voltage stabilization data refers to related data parameters which need to be subjected to voltage reduction under the condition of overvoltage abnormity, and the compensation voltage data refers to related data parameters which need to be subjected to voltage increase under the condition of undervoltage abnormity.
For example, the working rated voltage of the SDRAM in the solid state disk is 3V, the corresponding output voltage is 4V, the output voltage of the SDRAM higher than 10% of the rated voltage is output overvoltage or lower than 10% of the rated voltage is output undervoltage according to the preset output voltage standard, the output abnormal type can be judged to be overvoltage, and-0.7V voltage stabilization data is further generated as the abnormal analysis result.
According to the solid state disk power supply management method, classification analysis is performed on overvoltage or undervoltage conditions in output abnormal types respectively, and corresponding voltage stabilization data or compensation voltage data are further obtained to serve as an abnormal analysis result, so that data analysis when the solid state disk is abnormal in output is enhanced, and power supply safety analysis of the solid state disk is improved.
In one implementation manner of this embodiment, as shown in fig. 7, after the step S602 of determining whether the output voltage meets the preset output voltage standard, the method further includes the following steps:
s701, if the output voltage meets a preset voltage input standard, acquiring corresponding current data;
s702, judging whether the current data exceeds a preset running current threshold value;
s703, if the current data exceeds a preset operating current standard, acquiring corresponding overcurrent data;
s704, acquiring corresponding line temperature according to the overcurrent data;
s705, judging whether the line temperature meets a preset operation temperature standard or not;
and S706, if the line temperature does not accord with the preset operation temperature standard, acquiring the corresponding real-time operation temperature, and generating a corresponding alarm signal according to the real-time operation temperature.
In practical application, the current data refers to operation data of line current in the solid state disk, the preset operation current threshold refers to a line current operation threshold in a normal operation state of the solid state disk, the overcurrent data refers to relevant current data exceeding the corresponding preset operation current threshold in the current data, the line temperature refers to temperature generated by a line corresponding to the overcurrent data, the preset operation temperature standard refers to a temperature standard to be met by the solid state disk under safe operation, and the real-time operation temperature refers to real-time temperature of the line in an operation process of the solid state disk.
For example, the normal operation current threshold of the solid state disk can be obtained according to the preset operation current threshold and is 500mA, and the current value displayed in the detected current data is 600mA, so that it can be determined that the current value exceeds the corresponding preset operation current threshold, and the corresponding overcurrent data and the line temperature corresponding to the overcurrent data are further obtained.
The operating temperature standard of the solid state disk is 0-70 ℃ according to the preset operating temperature standard, the corresponding line temperature is 80 ℃ according to the overcurrent data, the line temperature can be judged not to accord with the corresponding preset operating temperature standard, and a corresponding alarm signal is further generated according to the real-time operating temperature of 80 ℃.
For another example, if the current value displayed in the detected current data is 400mA, it can be determined that the current value does not exceed the corresponding preset operating current threshold, and further record the corresponding current data in real time.
According to the solid state disk power supply management method provided by the embodiment, whether the current data of the solid state disk exceeds the corresponding preset operating current standard or not is judged, and the temperature of the line corresponding to the overcurrent data which does not meet the preset operating current standard is further analyzed, so that the safety analysis of the current and the line temperature of the solid state disk in the operating process is improved.
The embodiment of the present application further discloses a solid state disk power supply management system, as shown in fig. 8, including:
the first acquisition module 1 is used for acquiring power supply data;
the first judging module 2 is used for judging whether the power supply data meet a preset power supply standard;
the second acquisition module 3 is used for acquiring corresponding abnormal power supply data if the power supply data does not accord with the preset power supply standard;
the second judging module 4 is used for judging the abnormal type of the abnormal power supply data;
the first analysis module 5 is used for acquiring and analyzing corresponding input voltage amplitude data and generating a corresponding abnormal analysis result if the abnormal type is input abnormal;
the second analysis module 6 is used for acquiring and analyzing corresponding output power supply data to generate a corresponding abnormal analysis result if the abnormal type is output abnormal;
and the matching module 7 is used for matching the corresponding exception handling strategy for security handling according to the exception analysis result.
The solid state disk power supply management system provided in this embodiment determines, according to the first determining module 2, whether the power supply data acquired by the first acquiring module 1 by the first acquiring module meets a corresponding preset power supply standard, further acquires abnormal power supply data that does not meet the preset power supply standard in the power supply data by the second acquiring module 3, immediately determines an abnormal type of the abnormal power supply data by the second determining module 4, if an abnormal type is input, acquires and analyzes voltage amplitude data corresponding to the input voltage by the first analyzing module 5 to generate a corresponding abnormal analysis result, if the abnormal type is output, acquires and analyzes corresponding output power supply data by the second analyzing module 6 to generate a corresponding abnormal analysis result, and finally matches the corresponding abnormal processing policy by the matching module 7 in combination with each abnormal type of all the power supply data to perform security processing, because the classification analysis is performed on the power supply data when the power supply abnormality occurs in the solid state disk, the power supply security of the solid state disk is improved.
It should be noted that the power supply management system for a solid state disk provided in the embodiment of the present application further includes each module and/or corresponding sub-module corresponding to a logic function or a logic step of any one of the above power supply management methods, so as to achieve the same effect as each logic function or logic step, and details thereof are not described herein again.
The embodiment of the application further discloses a terminal device, which comprises a memory, a processor and a computer instruction which is stored in the memory and can run on the processor, wherein when the processor executes the computer instruction, any one of the solid state disk power supply management methods in the embodiments is adopted.
The terminal device may adopt a computer device such as a desktop computer, a notebook computer, or a cloud server, and the terminal device includes but is not limited to a processor and a memory, for example, the terminal device may further include an input/output device, a network access device, a bus, and the like.
The processor may be a Central Processing Unit (CPU), and of course, according to an actual use situation, other general processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like may also be used, and the general processor may be a microprocessor or any conventional processor, and the present application does not limit the present invention.
The memory may be an internal storage unit of the terminal device, for example, a hard disk or a memory of the terminal device, or an external storage device of the terminal device, for example, a plug-in hard disk, a Smart Memory Card (SMC), a secure digital card (SD) or a flash memory card (FC) equipped on the terminal device, and the memory may also be a combination of the internal storage unit of the terminal device and the external storage device, and the memory is used for storing computer instructions and other instructions and data required by the terminal device, and the memory may also be used for temporarily storing data that has been output or will be output, which is not limited in this application.
The terminal device stores any one of the solid state disk power supply management methods in the embodiments in a memory of the terminal device, and the solid state disk power supply management method is loaded and executed on a processor of the terminal device, so that the terminal device is convenient to use.
The embodiment of the application further discloses a computer-readable storage medium, and the computer-readable storage medium stores computer instructions, wherein when the computer instructions are executed by a processor, any one of the solid state disk power supply management methods in the embodiments is adopted.
The computer instructions may be stored in a computer readable medium, the computer instructions include computer instruction codes, the computer instruction codes may be in a source code form, an object code form, an executable file or some middleware form, and the computer readable medium includes any entity or device capable of carrying the computer instruction codes, a recording medium, a usb disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a Read Only Memory (ROM), a Random Access Memory (RAM), an electrical carrier signal, a telecommunication signal, a software distribution medium, and the like, and the computer readable medium includes but is not limited to the above components.
The solid state disk power supply management method in the above embodiments is stored in the computer-readable storage medium through the computer-readable storage medium, and is loaded and executed on the processor, so as to facilitate storage and application of the method.
The above embodiments are preferred embodiments of the present application, and the protection scope of the present application is not limited by the above embodiments, so: all equivalent changes made according to the structure, shape and principle of the present application shall be covered by the protection scope of the present application.

Claims (10)

1. A power supply management method for a solid state disk is characterized by comprising the following steps:
acquiring power supply data;
judging whether the power supply data meet a preset power supply standard or not;
if the power supply data do not accord with the preset power supply standard, acquiring corresponding abnormal power supply data;
judging the abnormal type of the abnormal power supply data;
if the abnormal type is input abnormality, acquiring and analyzing corresponding input voltage amplitude data to generate a corresponding abnormality analysis result;
if the abnormal type is output abnormality, acquiring and analyzing corresponding output power supply data to generate a corresponding abnormality analysis result;
and matching a corresponding exception handling strategy for safety handling according to the exception analysis result.
2. The solid state disk power supply management method according to claim 1, wherein if the abnormality type is an input abnormality, acquiring and analyzing corresponding input voltage amplitude data, and generating a corresponding abnormality analysis result includes the following steps:
acquiring a corresponding voltage amplitude value according to the input voltage amplitude data;
judging the abnormal type of the voltage amplitude value;
if the abnormal type is power failure, acquiring and analyzing corresponding data storage progress to generate a corresponding abnormal analysis result;
and if the abnormal type is voltage overshoot, acquiring the current voltage amplitude and the duration of the current voltage amplitude, and generating a corresponding abnormal analysis result.
3. The solid state disk power supply management method according to claim 2, wherein if the abnormal type is power failure, the corresponding data storage progress is acquired and analyzed, and the corresponding abnormal analysis result is generated, and the method comprises the following steps:
judging whether the data storage progress meets a preset storage standard or not;
if the cache progress does not meet the preset storage standard, acquiring the current data to be stored;
acquiring a corresponding storage energy consumption value according to the current data to be stored;
judging whether the stored energy consumption value meets a preset energy supply standard or not;
and if the storage energy consumption value does not accord with a preset energy supply standard, generating a corresponding energy consumption difference as the abnormal analysis result according to the storage energy consumption value and the preset energy supply standard.
4. The method according to claim 3, further comprising the following steps after determining whether the cache power consumption value meets a preset power supply standard:
if the stored energy consumption value meets a preset energy supply standard, acquiring corresponding energy supply distribution data;
judging whether the energy supply distribution data meet a preset working standard or not;
if the energy supply distribution data do not accord with the preset working standard, acquiring corresponding abnormal energy supply distribution data;
and generating a distribution difference as the abnormal analysis result according to the preset working standard and the abnormal energy supply distribution data.
5. The method for managing power supply to the solid state disk according to claim 3, wherein after the step of judging whether the data storage progress meets a preset storage standard, the method further comprises the following steps:
if the cache progress meets the preset storage standard, acquiring the power supply state of the solid state disk;
judging whether the solid state disk is powered back within a preset time standard or not;
if the power supply is not recovered, continuing to wait until the power supply of the solid state disk is recovered;
and if the power supply is recovered, reestablishing the connection between the solid state disk and the host.
6. The method for managing power supply to a solid state disk according to claim 1, wherein if the type of the abnormality is an output abnormality, acquiring and analyzing corresponding output power data, and generating the corresponding abnormality analysis result includes the following steps:
acquiring corresponding output voltage according to the output power data;
judging whether the output voltage meets a preset output voltage standard or not;
if the output voltage does not accord with the preset output voltage standard, judging the output abnormal type of the output voltage;
if the output abnormal type is overvoltage, acquiring a current voltage value of the output voltage, and generating corresponding voltage stabilization data as the abnormal analysis result according to the preset output voltage standard and the current voltage value;
and if the output abnormal type is under-voltage, acquiring the current voltage value of the output voltage, and generating corresponding compensation voltage data as the abnormal analysis result according to the preset output voltage standard and the current voltage value.
7. The method according to claim 6, further comprising the following steps after the step of determining whether the output voltage meets a preset output voltage standard:
if the output voltage meets the preset voltage output standard, acquiring corresponding current data;
judging whether the current data exceeds a preset operation current threshold value;
if the current data exceed the preset operating current standard, acquiring corresponding overcurrent data;
acquiring corresponding line temperature according to the overcurrent data;
judging whether the line temperature meets a preset operation temperature standard or not;
and if the line temperature does not meet the preset operating temperature standard, acquiring a corresponding real-time operating temperature, and generating a corresponding alarm signal according to the real-time operating temperature.
8. A solid state disk power supply management system is characterized by comprising:
the first acquisition module (1) is used for acquiring power supply data;
the first judging module (2) is used for judging whether the power supply data meet a preset power supply standard or not;
the second acquisition module (3) is used for acquiring corresponding abnormal power supply data if the power supply data do not accord with the preset power supply standard;
the second judging module (4) is used for judging the abnormal type of the abnormal power supply data;
the first analysis module (5) is used for acquiring and analyzing corresponding input voltage amplitude data and generating a corresponding abnormal analysis result if the abnormal type is input abnormal;
the second analysis module (6) is used for acquiring and analyzing corresponding output power data to generate a corresponding abnormal analysis result if the abnormal type is output abnormal;
and the matching module (7) is used for matching the corresponding exception handling strategy to carry out security handling according to the exception analysis result.
9. A terminal device, comprising a memory and a processor, wherein the memory stores computer instructions capable of running on the processor, and when the processor loads and executes the computer instructions, the solid state disk power supply management method according to any one of claims 1 to 7 is adopted.
10. A computer readable storage medium having computer instructions stored therein, wherein the computer instructions, when loaded and executed by a processor, implement the power management method for a solid state disk according to any one of claims 1 to 7.
CN202211108510.1A 2022-09-13 2022-09-13 Solid state disk power supply management method, system, terminal device and storage medium Pending CN115457995A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211108510.1A CN115457995A (en) 2022-09-13 2022-09-13 Solid state disk power supply management method, system, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211108510.1A CN115457995A (en) 2022-09-13 2022-09-13 Solid state disk power supply management method, system, terminal device and storage medium

Publications (1)

Publication Number Publication Date
CN115457995A true CN115457995A (en) 2022-12-09

Family

ID=84303413

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211108510.1A Pending CN115457995A (en) 2022-09-13 2022-09-13 Solid state disk power supply management method, system, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN115457995A (en)

Similar Documents

Publication Publication Date Title
US11914441B2 (en) Systems and methods for power outage protection of storage device
US9235245B2 (en) Startup performance and power isolation
US9037879B2 (en) Rack server system having backup power supply
US11150714B2 (en) Storage device and method for powering storage device
US9165667B2 (en) Electronic device with solid state drive and associated control method
CN102496907B (en) Set top box, power fail safeguard device and power fail data protection method
US20080010514A1 (en) Backup power supply and desktop computer and method for protecting the data thereof
CN107403644B (en) Flash memory device with abnormal power protection
CN105512056A (en) Method and device for data storage, and terminal
WO2022048227A1 (en) Data protection apparatus, storage device, and storage system
WO2015081129A2 (en) Hard power fail architecture
WO2024078231A1 (en) Data protection circuit, method and apparatus, and electronic device and storage medium
US9772942B2 (en) Committing transaction without first flushing processor cache to non-volatile memory when connected to UPS
CN112260348A (en) Charging control circuit and charging equipment
US10346072B1 (en) Dislocated power loss protection charge storage
CN104850182A (en) Circuit structure applied to embedded system and power-fail protection method
CN117055822B (en) NVME SSD Raid card board power-carrying system and control method
CN115457995A (en) Solid state disk power supply management method, system, terminal device and storage medium
CN116339479A (en) Control method and device of server power supply, storage medium and electronic device
US9323637B2 (en) Power sequencing and data hardening architecture
CN110794945A (en) Storage server power supply method, device, equipment and storage medium
CN112783806B (en) Control device and method under SSD data storage
EP4286987A1 (en) Storage system including battery module and method for operating the same
CN216751184U (en) Storage device and power management unit thereof
CN116780749B (en) Electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination