A solid-state drive power management method, system, terminal device, and storage medium

By acquiring power supply data and analyzing anomaly types, generating anomaly analysis results, and matching processing strategies, the power supply security of solid-state drives is improved, the problem of data loss caused by power supply anomalies is solved, and data integrity and connection efficiency are ensured.

CN115457995BActive Publication Date: 2026-11-10SHENZHEN KINGSPEC ELECTRONICS TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211108510.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-13
Publication Date
2026-11-10
Estimated Expiration
2042-09-13

AI Technical Summary

Technical Problem

Solid-state drives (SSDs) may lose important data if they are powered off without receiving a power failure notification from the host or if data storage is not completed, indicating poor power supply security.

Method used

By acquiring power supply data, it is determined whether it meets preset standards, the anomaly type is analyzed, anomaly analysis results are generated, and corresponding processing strategies are matched to improve power supply safety.

Benefits of technology

It improves the data security and connection efficiency of solid-state drives in the event of power failure, ensuring data integrity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115457995B_ABST
    Figure CN115457995B_ABST
Patent Text Reader

Abstract

This application relates to the field of storage technology, and in particular to a solid-state drive (SSD) power supply management method, system, terminal device, and storage medium. The method includes: acquiring power supply data; determining whether the power supply data conforms to a preset power supply standard; if the power supply data does not conform to the preset power supply standard, acquiring corresponding abnormal power supply data; determining the abnormal type of the abnormal power supply data; if the abnormal type is an input abnormality, acquiring and analyzing corresponding input voltage amplitude data to generate a corresponding abnormality analysis result; if the abnormal type is an output abnormality, acquiring and analyzing corresponding output power data to generate a corresponding abnormality analysis result; and performing security processing based on the abnormality analysis result and matching a corresponding abnormality handling strategy. The solid-state drive power supply management method, system, terminal device, and storage medium provided by this application can improve the power supply security of solid-state drives.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of storage technology, and in particular to a solid-state drive power supply management method, system, terminal device, and storage medium. Background Technology

[0002] Solid-state drives (SSDs), also known as solid-state drives, are hard drives made using arrays of solid-state electronic storage chips.

[0003] Solid-state drives (SSDs) mostly use NAND flash memory, a non-volatile random access storage medium. Its characteristic is that data is not lost after power is turned off. Unlike traditional volatile random access storage media and volatile memory such as DRAM and SRAM, it can be used as persistent storage. Traditional SSDs inherit the disadvantages of flash memory: normal power loss does not lead to data loss. After power is restored, the SSD only needs to reload the relevant information saved before the power failure (such as mapping data, flash block information, etc.) and can continue working from the state before the power failure.

[0004] If a solid-state drive (SSD) is powered off without receiving a power-off notification from the host, or if it receives a power-off notification but is powered off before performing any data storage operations, it may result in the loss of important data. Therefore, the power supply security of SSDs is relatively poor. Summary of the Invention

[0005] To improve the power supply safety of solid-state drives (SSDs), this application provides a power supply management method, system, terminal device, and storage medium for SSDs.

[0006] Firstly, this application provides a solid-state drive power supply management method, which adopts the following technical solution: Obtain power supply data; Determine whether the power supply data conforms to the preset power supply standard; If the power supply data does not conform to the preset power supply standard, then obtain the corresponding abnormal power supply data; Determine the anomaly type of the abnormal power supply data; If the anomaly type is an input anomaly, then the corresponding input voltage amplitude data is acquired and analyzed to generate the corresponding anomaly analysis results; If the anomaly type is an output anomaly, then the corresponding output power data is acquired and analyzed to generate the corresponding anomaly analysis result; Based on the anomaly analysis results, a corresponding anomaly handling strategy is matched for security processing.

[0007] By adopting the above technical solution, it is determined whether the power supply data of the solid-state drive (SSD) conforms to the corresponding preset power supply standard. Abnormal power supply data that does not conform to the preset power supply standard is further obtained, and then the abnormal type of the abnormal power supply data is determined. If it is an input abnormality type, the voltage amplitude data corresponding to the input voltage is obtained and analyzed to generate the corresponding abnormality analysis result. If it is an output abnormality type, the corresponding output power data is obtained and analyzed to generate the corresponding abnormality analysis result. Finally, the corresponding abnormality handling strategy is matched with the various abnormality types of all power supply data for safe handling. By classifying and analyzing the power supply data when the SSD has a power supply abnormality, the power supply safety of the SSD is improved.

[0008] Optionally, if the anomaly type is an input anomaly, then acquiring and analyzing the corresponding input voltage amplitude data and generating the corresponding anomaly analysis result includes the following steps: Based on the input voltage amplitude data, obtain the corresponding voltage amplitude value; Determine the type of abnormality in the voltage amplitude value; If the anomaly type is a power failure, then the corresponding data storage progress is obtained and analyzed, and the corresponding anomaly analysis result is generated. If the anomaly type is voltage overshoot, then the current voltage amplitude and the duration of the current voltage amplitude are obtained, and the corresponding anomaly analysis result is generated.

[0009] By adopting the above technical solution, the abnormal types of power failure or voltage overshoot can be obtained and analyzed based on the voltage amplitude value, thereby improving the analysis of power supply safety when solid-state drives experience input abnormalities.

[0010] Optionally, if the anomaly type is a power failure, then acquiring and analyzing the corresponding data storage progress and generating the corresponding anomaly analysis result includes the following steps: Determine whether the data storage progress meets the preset storage standards; If the cache progress does not meet the preset storage standard, then obtain the current data to be stored; Based on the current data to be stored, obtain the corresponding storage energy consumption value; Determine whether the storage energy consumption value meets the preset energy supply standard; If the storage energy consumption value does not meet the preset energy supply standard, then the corresponding energy consumption difference between the storage energy consumption value and the preset energy supply standard is generated as the anomaly analysis result.

[0011] By adopting the above technical solution, when a solid-state drive loses power, its data storage progress is analyzed to obtain data that has not yet been stored. This allows for a further determination of whether the storage energy consumption value meets the preset energy supply standard. The difference in energy consumption of the data to be stored that does not meet the preset energy supply standard is then used as an anomaly analysis result, thereby improving the security of data storage in the solid-state drive.

[0012] Optionally, after determining whether the cache energy consumption value meets the preset energy supply standard, the following steps are also included: If the storage energy consumption value meets the preset energy supply standard, then the corresponding energy supply allocation data is obtained; Determine whether the energy distribution data meets the preset working standards; If the energy allocation data does not conform to the preset working standard, then obtain the corresponding abnormal energy allocation data; Based on the preset working standards and the abnormal power supply allocation data, the allocation difference is generated as the abnormality analysis result.

[0013] By adopting the above technical solution, it is possible to determine whether the power distribution data meets the corresponding preset working standards, thereby improving the security analysis of the operation of other functional modules in the solid-state drive.

[0014] Optionally, after determining whether the data storage progress meets the preset storage standard, the following steps are also included: If the cache progress meets the preset storage standard, then obtain the power supply status of the solid-state drive; Determine whether the solid-state drive has resumed power supply within a preset time period. If power is not restored, continue to wait until the solid-state drive is powered back on; If power is restored, the connection between the solid-state drive and the host will be re-established.

[0015] By adopting the above technical solution, it is determined whether the power supply to the solid-state drive (SSD) is restored within a preset time standard after a power outage. If the power supply is restored, the SSD is restarted to restore its state and reconnect to the host, thereby improving the efficiency of establishing a connection between the SSD and the host.

[0016] Optionally, if the anomaly type is an output anomaly, then acquiring and analyzing the corresponding output power data to generate the corresponding anomaly analysis result includes the following steps: Based on the output power data, obtain the corresponding output voltage; Determine whether the output voltage meets the preset output voltage standard; If the output voltage does not meet the preset output voltage standard, then determine the output voltage abnormality type; If the output anomaly type is overvoltage, then the current voltage value of the output voltage is obtained, and corresponding voltage regulation data is generated according to the preset transmission voltage standard and the current voltage value as the anomaly analysis result; If the output anomaly type is undervoltage, then the current voltage value of the output voltage is obtained, and corresponding compensation voltage data is generated based on the preset transmission voltage standard and the current voltage value as the anomaly analysis result.

[0017] By adopting the above technical solution, overvoltage or undervoltage situations in the output anomaly types are classified and analyzed, and the corresponding stabilization voltage data or compensation voltage data are obtained as anomaly analysis results. This strengthens the data analysis when the solid-state drive (SSD) has output anomalies and improves the power supply safety analysis of the SSD.

[0018] Optionally, after determining whether the output voltage meets the preset transmission voltage standard, the following steps are also included: If the output voltage meets the preset output voltage standard, then the corresponding current data is obtained; Determine whether the current data exceeds a preset operating current threshold; If the current data exceeds the preset operating current standard, then the corresponding overcurrent data is obtained; Based on the overcurrent data, obtain the corresponding line temperature; Determine whether the temperature of the line meets the preset operating temperature standard; If the line temperature does not meet the preset operating temperature standard, the corresponding real-time operating temperature is obtained, and a corresponding alarm signal is generated based on the real-time operating temperature.

[0019] By adopting the above technical solution, it is possible to determine whether the current data of the solid-state drive exceeds the corresponding preset operating current standard. Furthermore, the temperature of the circuit corresponding to the overcurrent data that does not meet the preset operating current standard is analyzed, thereby improving the safety analysis of the current and circuit temperature of the solid-state drive during operation.

[0020] Secondly, this application also provides a solid-state drive power supply management system, which adopts the following technical solution: The first acquisition module is used to acquire power supply data; The first judgment module is used to determine whether the power supply data conforms to the preset power supply standard; If the power supply data does not conform to the preset power supply standard, the second acquisition module is used to acquire the corresponding abnormal power supply data. The second judgment module is used to determine the abnormal type of the abnormal power supply data; If the anomaly type is an input anomaly, the first analysis module is used to acquire and analyze the corresponding input voltage amplitude data and generate the corresponding anomaly analysis result. If the anomaly type is an output anomaly, the second analysis module is used to acquire and analyze the corresponding output power data and generate the corresponding anomaly analysis result. The matching module is used to match the corresponding anomaly handling strategy for security processing based on the anomaly analysis results.

[0021] By adopting the above technical solution, the first judgment module determines whether the power supply data of the solid-state drive obtained by the first acquisition module conforms to the corresponding preset power supply standard. The second acquisition module then acquires abnormal power supply data that does not conform to the preset power supply standard. The second judgment module then determines the abnormal type of the abnormal power supply data. If it is an input abnormality type, the first analysis module acquires and analyzes the voltage amplitude data corresponding to the input voltage to generate a corresponding abnormality analysis result. If it is an output abnormality type, the second analysis module acquires and analyzes the corresponding output power data to generate a corresponding abnormality analysis result. Finally, by combining the various abnormal types of all power supply data, the matching module matches the corresponding abnormality handling strategy for safe processing. By classifying and analyzing the power supply data when the solid-state drive experiences power supply abnormalities, the power supply safety of the solid-state drive is improved.

[0022] Thirdly, this application provides a terminal device, which adopts the following technical solution: A terminal device includes a memory and a processor. The memory stores computer instructions that can be executed on the processor. When the processor loads and executes the computer instructions, it employs the aforementioned solid-state drive power management method.

[0023] By adopting the above technical solution, a solid-state drive power management method is used to generate computer instructions, which are then stored in a memory for loading and execution by a processor. This allows for the creation of terminal devices based on the memory and processor, making them convenient to use.

[0024] Fourthly, this application provides a computer-readable storage medium, which adopts the following technical solution: A computer-readable storage medium storing computer instructions, wherein when the computer instructions are loaded and executed by a processor, the aforementioned solid-state drive power management method is employed.

[0025] By adopting the above technical solution, a solid-state drive power management method is used to generate computer instructions and store them in a computer-readable storage medium for loading and execution by the processor. The computer-readable storage medium facilitates the reading and storage of computer instructions.

[0026] In summary, this application includes the following beneficial technical effects: determining whether the power supply data of the solid-state drive conforms to the corresponding preset power supply standard; further acquiring abnormal power supply data that does not conform to the preset power supply standard; then determining the abnormal type of the abnormal power supply data; if it is an input abnormal type, acquiring and analyzing the voltage amplitude data corresponding to the input voltage to generate the corresponding abnormal analysis result; if it is an output abnormal type, acquiring and analyzing the corresponding output power data to generate the corresponding abnormal analysis result; finally, combining the various abnormal types of all power supply data to match the corresponding abnormal handling strategy for safe processing. By classifying and analyzing the power supply data when the solid-state drive malfunctions, the power supply safety of the solid-state drive is improved. Attached Figure Description

[0027] Figure 1 This is a flowchart illustrating steps S101 to S107 of a solid-state drive power supply management method according to this application.

[0028] Figure 2 This is a flowchart illustrating steps S201 to S204 of a solid-state drive power supply management method according to this application.

[0029] Figure 3 This is a flowchart illustrating steps S301 to S305 of a solid-state drive power supply management method according to this application.

[0030] Figure 4 This is a flowchart illustrating steps S401 to S404 of a solid-state drive power supply management method according to this application.

[0031] Figure 5 This is a flowchart illustrating steps S501 to S504 of a solid-state drive power supply management method according to this application.

[0032] Figure 6 This is a flowchart illustrating steps S601 to S605 of a solid-state drive power supply management method according to this application.

[0033] Figure 7 This is a flowchart illustrating steps S701 to S706 of a solid-state drive power supply management method according to this application.

[0034] Figure 8 This is a schematic diagram of a solid-state drive power supply management system according to this application.

[0035] Explanation of reference numerals in the attached figures: 1. First acquisition module; 2. First judgment module; 3. Second acquisition module; 4. Second judgment module; 5. First analysis module; 6. Second analysis module; 7. Matching module. Detailed Implementation

[0036] The following is in conjunction with the appendix Figure 1-8 This application will be described in further detail.

[0037] To facilitate the explanation of this solution, the description will be based on the integrated power management circuitry in solid-state drives.

[0038] Solid-state drives (SSDs) typically consist of modules such as a controller chip, flash memory array, and cache chip. The power for these modules is provided by an integrated power management circuit. Since the voltage supplied to the integrated power management circuit by the host is higher than the power supply voltage required by each module of the SSD, a step-down DC-DC converter is usually used.

[0039] For the input of the integrated power management circuit, it is necessary to meet the requirements of different host types. In order to achieve this purpose, the input power mode is usually set to configurable. VinA is the main power supply provided by the host to the integrated power management circuit. It needs to support two voltage ranges: 3.3V±10% and 5V±10%. When VinA cannot provide sufficient current capability for the output channel, the backup power supply VinB is required, with a voltage range of 12V±10%. There are three configuration modes for the input power supply: (1) only VinA is required, and VinB is not required; (2) both VinA and VinB are required; (3) VinB is required if it exists.

[0040] This application discloses a solid-state drive power supply management method, such as... Figure 1 As shown, it includes the following steps: S101, Obtain power supply data; S102. Determine whether the power supply data meets the preset power supply standard; S103. If the power supply data does not conform to the preset power supply standard, then obtain the corresponding abnormal power supply data. S104. Determine the anomaly type of abnormal power supply data; S105. If the anomaly type is input anomaly, then acquire and analyze the corresponding input voltage amplitude data and generate the corresponding anomaly analysis results. S106. If the anomaly type is output anomaly, then acquire and analyze the corresponding output power data and generate the corresponding anomaly analysis results. S107. Based on the anomaly analysis results, match the corresponding anomaly handling strategy for security processing.

[0041] The power supply data in steps S101 to S103 refers to the relevant data on the main power supply and backup power supply of the solid-state drive. The preset power supply standard refers to the power supply standard that can meet the normal operation of the solid-state drive.

[0042] In practical applications, solid-state drives (SSDs) must use FTL (Functional Layer Translation) to translate between logical and physical addresses. If a power supply error occurs during normal operation such as reading, writing, and deleting, the mapping table may not be updated in time and may be lost, resulting in the SSD being unrecognizable by the system. Therefore, SSDs have their own corresponding preset power supply standards depending on their type during normal operation.

[0043] Meanwhile, in order to improve read and write performance, SDRAM is usually used as a cache. If a power supply abnormality occurs during the read and write process, such as an abnormal power outage, the data in the SDRAM may not be able to be written to the Nand Flash in time, resulting in data loss, or the updated mapping table may not be able to be written to the Nand Flash in time. Nand Flash is a type of flash memory.

[0044] In steps S104 to S106, abnormal power supply data refers to the relevant data that the power supply data of the solid-state drive does not conform to the corresponding preset power supply standard, input voltage amplitude data refers to the voltage amplitude data generated by the system power supply voltage of the solid-state drive, and output power supply data refers to the power supply data output to each functional module in the solid-state drive.

[0045] In practical applications, integrated power management circuits involve two types of abnormal interrupts: one is used to respond to input abnormalities, and the other is used to respond to output abnormalities. The system performs corresponding processing according to different interrupt types.

[0046] If the solid-state drive (SSD) experiences an input anomaly, the system analyzes the input voltage amplitude data generated by the power supply. If the SSD experiences an output anomaly, the system analyzes the corresponding output power data. Based on the actual type of anomaly that occurred in the SSD, the system generates the corresponding anomaly analysis results.

[0047] The anomaly analysis result in step S107 refers to the corresponding analysis result of the anomaly of the solid-state drive, and the anomaly handling strategy refers to the solution corresponding to the specific anomaly in the anomaly analysis result.

[0048] The solid-state drive (SSD) power supply management method provided in this embodiment determines whether the SSD's power supply data conforms to the corresponding preset power supply standard. It further acquires abnormal power supply data that does not conform to the preset power supply standard, and then determines the abnormal type of the abnormal power supply data. If it is an input abnormal type, it acquires and analyzes the voltage amplitude data corresponding to the input voltage and generates the corresponding abnormal analysis result. If it is an output abnormal type, it acquires and analyzes the corresponding output power data and generates the corresponding abnormal analysis result. Finally, it combines the various abnormal types of all power supply data to match the corresponding abnormal handling strategy for safe processing. By classifying and analyzing the power supply data when the SSD experiences power supply abnormalities, the power supply safety of the SSD is improved.

[0049] In one embodiment of this example, such as Figure 2 As shown, step S105, which involves acquiring and analyzing the corresponding input voltage amplitude data and generating the corresponding anomaly analysis results if the anomaly type is an input anomaly, includes the following steps: S201. Obtain the corresponding voltage amplitude value based on the input voltage amplitude data; S202. Determine the abnormal type of voltage amplitude value; S203. If the anomaly type is power failure, then obtain and analyze the corresponding data storage progress and generate the corresponding anomaly analysis results. S204. If the anomaly type is voltage overshoot, obtain the current voltage amplitude and the duration of the current voltage amplitude, and generate the corresponding anomaly analysis results.

[0050] In practical applications, voltage amplitude value refers to the upper and lower amplitude values ​​of the input voltage in the input voltage amplitude data. Power failure refers to the abnormal power failure of the solid-state drive system power supply. Data storage progress refers to the storage progress of relevant data in the solid-state drive when a power failure occurs. Voltage overshoot refers to the peak value of the input voltage exceeding the set voltage, which may lead to the failure of circuit components.

[0051] For example, when the system power supply experiences a sudden and significant fluctuation, the impact on the solid-state drive (SSD) is enormous. The voltage amplitude indicates that the system has lost power. At this point, the data being read and saved on the SSD can be retrieved, and the storage progress of this data can be obtained. By analyzing the storage progress, corresponding anomaly analysis results can be generated.

[0052] For example, the voltage amplitude value indicates that the peak value of the input voltage at a certain moment exceeds the set voltage of 15V. The current voltage abnormality amplitude and the duration of the voltage abnormality amplitude are obtained. The two are inversely proportional. The larger the voltage abnormality amplitude, the faster the system will issue an interrupt command.

[0053] The solid-state drive power supply management method provided in this embodiment obtains and analyzes the corresponding abnormal types of power failure or voltage overshoot based on the voltage amplitude value, thereby improving the analysis of power supply safety when solid-state drives experience input abnormalities.

[0054] In one embodiment of this example, such as Figure 3 As shown, step S203, which involves obtaining and analyzing the corresponding data storage progress and generating the corresponding anomaly analysis results if the anomaly type is power failure, includes the following steps: S301. Determine whether the data storage progress meets the preset storage standards; S302. If the cache progress does not meet the preset storage standard, then obtain the current data to be stored. S303. Obtain the corresponding storage energy consumption value based on the current data to be stored; S304. Determine whether the storage energy consumption value meets the preset energy supply standard; S305. If the storage energy consumption value does not meet the preset energy supply standard, the corresponding energy consumption difference between the storage energy consumption value and the preset energy supply standard will be generated as the anomaly analysis result.

[0055] In practical applications, the preset storage standard refers to the storage standard of relevant data during the operation of the solid-state drive (SSD). The data to be stored refers to the data that has not yet been stored when the cache progress does not meet the corresponding preset storage standard. The storage energy consumption value refers to the power required to store the data to be stored. The preset power supply standard refers to the power standard that the backup power supply of the SSD can provide. The power consumption difference refers to the difference in power required to store the data to be stored when the backup power supply is insufficient.

[0056] It should be noted that after an abnormal power loss of a solid-state drive (SSD), all data in the SDRAM must be completely written to the NandFlash. Generally speaking, the capacity of the SDRAM is set to one-thousandth of the raw capacity of the SSD. For small-capacity SSDs, the amount of data that needs to be written to the NandFlash in the SDRAM is relatively small, and data can continue to be written by using supercapacitors or tantalum capacitors.

[0057] For example, according to the preset storage standard, all data in SDRAM must be completely written to Nand Flash, corresponding to a storage progress of 100%. If the current data storage progress is detected to be 80%, it means that there is still 20% of the data to be stored that has not been written to Nand Flash. Further, based on the data to be stored, the corresponding storage power consumption value is obtained as 2 watts. According to the preset functional standard, the storage power that can be provided at this time is 1.5 watts. Therefore, the corresponding power consumption difference is obtained as 0.5 watts, and 0.5 watts is taken as the analysis result of the power failure anomaly.

[0058] For example, if the current data storage progress is detected to be 100%, it means that all data in SDRAM must be completely written to Nand Flash. Therefore, the current storage progress of 100% can be obtained and displayed.

[0059] For example, if the storage power consumption value is 2 watts based on the current data to be stored, and the storage power that can be provided at this time is 3 watts according to the preset functional standard, then the storage power value that can be provided in the solid-state drive can be obtained and displayed in real time.

[0060] The solid-state drive power management method provided in this embodiment analyzes the data storage progress of the solid-state drive when it loses power, so as to obtain the data that has not yet been stored, and further determine whether its storage energy consumption value meets the preset power supply standard. Then, the energy consumption difference of the data to be stored that does not meet the preset power supply standard is obtained as the anomaly analysis result, thereby improving the security of the data storage process in the solid-state drive.

[0061] In one embodiment of this example, such as Figure 4 As shown, after step S304, which determines whether the cache energy consumption value meets the preset energy supply standard, the following steps are also included: S401. If the stored energy consumption value meets the preset energy supply standard, then obtain the corresponding energy supply allocation data; S402. Determine whether the energy distribution data meets the preset working standards; S403. If the power supply allocation data does not meet the preset working standards, then obtain the corresponding abnormal power supply allocation data. S404. Based on the preset working standards and abnormal power supply allocation data, generate allocation differences as anomaly analysis results.

[0062] In practical applications, power supply allocation data refers to the power supply allocation data of the system power supply or backup power supply to the various functional modules in the solid-state drive. The preset working standard refers to the standard of power required for the normal operation of each functional module in the solid-state drive. Abnormal power supply allocation data refers to the abnormal data related to the system power supply or backup power supply's inability to provide power to the various functional modules in the solid-state drive normally. Allocation difference refers to the difference in power supply that cannot provide power to the functional modules for normal operation.

[0063] It should be noted that in order to write back and save the cached data to the NAND flash memory, additional energy storage capacitors and related charging and discharging circuits are required. The power-loss protection circuit is triggered to discharge to the solid-state drive to save the cached data by real-time monitoring of whether the input power supply is abnormally depleted.

[0064] After the power-down protection circuit is triggered and discharged, the SSD firmware will stop the SSD from communicating with the host and focus on saving cached data. However, the size of the cached data varies at different power-down times, and the time and energy required to save the cached data also vary. In order to ensure that the data can be completely written to the NAND flash memory when the cache is full, the relevant auxiliary function modules in the SSD also need corresponding power supply, so a sufficient number of spare energy storage capacitors are required.

[0065] For example, based on the power supply allocation data, the backup power supply can provide 3 watts of power to the main control chip and 4 watts of power to the SDRAM. Further preset working standards show that the main control chip requires 4 watts of power to operate normally and the SDRAM requires 4 watts of power to operate normally. Therefore, it can be determined that the power supply allocation data does not meet the corresponding preset working standards. Then, the abnormal power supply allocation data of the main control chip is further obtained, and a 1-watt allocation difference is generated as the abnormal analysis result.

[0066] For example, based on the power supply distribution data, it can be found that the backup power supply can provide 4 watts of power to the main control chip and 4 watts of power to the SDRAM. Therefore, it can be determined that the power supply distribution data meets the corresponding preset working standards, and the power of the backup power supply can be monitored in real time.

[0067] The solid-state drive power management method provided in this embodiment determines whether the power allocation data meets the corresponding preset working standards, thereby improving the security analysis of the operation of other functional modules in the solid-state drive.

[0068] In one embodiment of this example, such as Figure 5 As shown, after step S301, which determines whether the data storage progress meets the preset storage standard, the following steps are also included: S501. If the cache progress meets the preset storage standard, then obtain the power supply status of the solid-state drive. S502. Determine whether the solid-state drive has resumed power supply within the preset time limit. S503. If power is not restored, continue to wait until the solid-state drive is powered back. S504. If power is restored, the connection between the solid-state drive and the host will be re-established.

[0069] In practical applications, power supply status refers to whether the solid-state drive (SSD) has been restored to power after a power outage, and preset duration standard refers to the pre-defined duration for detecting whether the SSD has been restored to power after a power outage.

[0070] It should be noted that when the cache contains only half or less data, there is still a lot of energy left after the NAND flash memory is completely written. After the data is saved, the SSD does not have any data read / write operations, so the energy consumption is reduced. It takes a long time for the energy storage capacitor to fully discharge. If the power supply returns to normal before the energy storage capacitor is fully discharged, the SSD controller will not be able to reset due to the incomplete discharge of the energy storage capacitor, which will prevent the computer host from properly handshaking and connecting with the SSD and thus prevent the computer from recognizing the drive.

[0071] Therefore, in order to solve the problem of the disk not being recognized when the host restores normal power supply before the energy storage capacitor is fully discharged, it is necessary to check whether the host power supply status has been restored to normal after the cache data is written back to the NAND flash memory. If it has been restored to normal, it is necessary to actively re-handshake and reconnect with the host.

[0072] For example, if the PC has been powered back on, the CPU module of the SSD is still powered on and operating, but without data read / write, because the energy storage capacitor array has not fully discharged. At this point, the PC has resumed normal operation, so the SSD needs to reconnect to the PC for normal read / write operations. However, when the energy storage capacitor array was triggered to discharge, the SSD actively disconnected from the PC, so it needs to restart to reconnect. If the PC's power has not returned to normal before the energy storage capacitor array is fully discharged, the energy storage capacitor module continues to discharge until the PC's power is restored, at which point it reconnects to the SSD.

[0073] The solid-state drive power management method provided in this embodiment determines whether the solid-state drive has been restored to power within a preset time period after a power failure. If the power is restored, the solid-state drive is restarted to restore its state and reconnect to the host, thereby improving the efficiency of establishing a connection between the solid-state drive and the host.

[0074] In one embodiment of this example, such as Figure 6 As shown, step S106, which involves acquiring and analyzing the corresponding output power data and generating the corresponding anomaly analysis results if the anomaly type is an output anomaly, includes the following steps: S601. Obtain the corresponding output voltage based on the output power data; S602. Determine whether the output voltage meets the preset output voltage standard; S603. If the output voltage does not meet the preset output voltage standard, determine the type of output voltage abnormality. S604. If the output anomaly type is overvoltage, obtain the current voltage value of the output voltage and generate corresponding voltage regulation data as the anomaly analysis result based on the preset voltage standard and the current voltage value. S605. If the output anomaly type is undervoltage, then obtain the current voltage value of the output voltage and generate corresponding compensation voltage data as the anomaly analysis result based on the preset transmission voltage standard and the current voltage value.

[0075] In practical applications, output voltage refers to the voltage output by each functional module of the solid-state drive (SSD). Preset output voltage standard refers to the rated voltage standard required for each functional module of the SSD to operate normally. Voltage regulation data refers to the relevant data parameters that need to be reduced in case of overvoltage abnormality. Compensation voltage data refers to the relevant data parameters that need to be increased in case of undervoltage abnormality.

[0076] For example, the rated operating voltage of SDRAM in a solid-state drive is 3V, and the corresponding output voltage is 4V. According to the preset output voltage standard, an output voltage of 10% higher than the rated voltage of SDRAM is considered overvoltage, or an output voltage of 10% lower than the rated voltage is considered undervoltage. This output anomaly can be determined to be overvoltage, and a regulated voltage of -0.7V can be generated as the anomaly analysis result.

[0077] The solid-state drive power supply management method provided in this embodiment classifies and analyzes overvoltage or undervoltage conditions in the output anomaly types, and further obtains the corresponding stabilization voltage data or compensation voltage data as the anomaly analysis result, thereby strengthening the data analysis when the solid-state drive has output anomalies and improving the power supply safety analysis of the solid-state drive.

[0078] In one embodiment of this example, such as Figure 7 As shown, after step S602, which determines whether the output voltage meets the preset output voltage standard, the following steps are also included: S701. If the output voltage meets the preset output voltage standard, then obtain the corresponding current data. S702. Determine whether the current data exceeds the preset operating current threshold. S703. If the current data exceeds the preset operating current standard, the corresponding overcurrent data will be obtained. S704. Obtain the corresponding line temperature based on the overcurrent data; S705. Determine whether the line temperature meets the preset operating temperature standard; S706. If the line temperature does not meet the preset operating temperature standard, the corresponding real-time operating temperature is obtained, and a corresponding alarm signal is generated based on the real-time operating temperature.

[0079] In practical applications, current data refers to the operating data of the circuit current in the solid-state drive (SSD). The preset operating current threshold refers to the operating current threshold of the circuit under normal operating conditions of the SSD. Overcurrent data refers to the relevant current data that exceeds the corresponding preset operating current threshold. Circuit temperature refers to the temperature generated by the circuit corresponding to the overcurrent data. The preset operating temperature standard refers to the temperature standard that the SSD must meet for safe operation. Real-time operating temperature refers to the real-time temperature of the circuit during the operation of the SSD.

[0080] For example, based on the preset operating current threshold, the normal operating current threshold of a solid-state drive is 500mA. If the current value displayed in the detected current data is 600mA, it can be determined that the current value exceeds the corresponding preset operating current threshold. Further, the corresponding overcurrent data and the line temperature corresponding to the overcurrent data can be obtained.

[0081] According to the preset operating temperature standard, the operating temperature standard of solid-state drives is 0 degrees to 70 degrees. According to the overcurrent data, the corresponding line temperature is 80 degrees. Therefore, it can be determined that the line temperature does not meet the corresponding preset operating temperature standard. Furthermore, an alarm signal is generated based on the real-time operating temperature of 80 degrees.

[0082] For example, if the current value displayed in the current detection data is 400mA, it can be determined that the current value does not exceed the corresponding preset operating current threshold, and the corresponding current data can be recorded in real time.

[0083] The solid-state drive power supply management method provided in this embodiment determines whether the current data of the solid-state drive exceeds the corresponding preset operating current standard, and further analyzes the temperature of the line corresponding to the overcurrent data that does not meet the preset operating current standard, thereby improving the safety analysis of the current and line temperature of the solid-state drive during operation.

[0084] This application also discloses a solid-state drive power supply management system, such as... Figure 8 As shown, it includes: The first acquisition module 1 is used to acquire power supply data; The first judgment module 2 is used to determine whether the power supply data meets the preset power supply standard; If the power supply data does not conform to the preset power supply standard, the second acquisition module 3 is used to acquire the corresponding abnormal power supply data. The second judgment module 4 is used to determine the abnormal type of abnormal power supply data; If the anomaly type is an input anomaly, the first analysis module 5 is used to acquire and analyze the corresponding input voltage amplitude data and generate the corresponding anomaly analysis results. If the anomaly type is an output anomaly, the second analysis module 6 is used to acquire and analyze the corresponding output power data and generate the corresponding anomaly analysis results. Matching module 7 is used to match the corresponding exception handling strategy for security processing based on the exception analysis results.

[0085] The solid-state drive power supply management system provided in this embodiment determines whether the power supply data of the solid-state drive obtained by the first acquisition module 1 conforms to the corresponding preset power supply standard based on the first judgment module 2. It further obtains abnormal power supply data that does not conform to the preset power supply standard through the second acquisition module 3. Then, the second judgment module 4 determines the abnormal type of the abnormal power supply data. If it is an input abnormal type, the first analysis module 5 obtains and analyzes the voltage amplitude data corresponding to the input voltage to generate the corresponding abnormal analysis result. If it is an output abnormal type, the second analysis module 6 obtains and analyzes the corresponding output power data to generate the corresponding abnormal analysis result. Finally, the matching module 7 matches the corresponding abnormal handling strategy to perform safe processing based on the various abnormal types of all power supply data. By classifying and analyzing the power supply data when the solid-state drive has a power supply abnormality, the power supply safety of the solid-state drive is improved.

[0086] It should be noted that the solid-state drive power management system provided in this application embodiment also includes each module and / or corresponding sub-module corresponding to the logical function or logical step of any of the above solid-state drive power management methods, to achieve the same effect as each logical function or logical step, which will not be elaborated here.

[0087] This application also discloses a terminal device, including a memory, a processor, and computer instructions stored in the memory and capable of running on the processor, wherein the processor executes the computer instructions using any of the solid-state drive power management methods described in the above embodiments.

[0088] The terminal device can be a computer device such as a desktop computer, a laptop computer, or a cloud server. The terminal device includes, but is not limited to, a processor and a memory. For example, the terminal device may also include input / output devices, network access devices, and buses.

[0089] The processor can be a central processing unit (CPU). Of course, depending on the actual use, it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, etc., and this application does not limit it.

[0090] The memory can be an internal storage unit of the terminal device, such as a hard disk or RAM of the terminal device, or an external storage device of the terminal device, such as a plug-in hard disk, smart memory card (SMC), secure digital card (SD), or flash memory card (FC) equipped on the terminal device. Furthermore, the memory can be a combination of internal storage units and external storage devices of the terminal device. The memory is used to store computer instructions and other instructions and data required by the terminal device. The memory can also be used to temporarily store data that has been output or will be output. This application does not limit this.

[0091] In this terminal device, any of the solid-state drive power management methods in the above embodiments can be stored in the terminal device's memory and loaded and executed on the terminal device's processor for convenient use.

[0092] This application also discloses a computer-readable storage medium, which stores computer instructions, wherein when the computer instructions are executed by a processor, any of the solid-state drive power management methods described in the above embodiments are employed.

[0093] The computer instructions can be stored in a computer-readable medium. The computer instructions include computer instruction code, which can be in the form of source code, object code, executable file, or certain middleware. The computer-readable medium includes any entity or device capable of carrying computer instruction code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the computer-readable medium includes, but is not limited to, the above-mentioned components.

[0094] In this embodiment, any of the solid-state drive power management methods described above can be stored in the computer-readable storage medium and loaded and executed on the processor to facilitate the storage and application of the above methods.

[0095] The above are all preferred embodiments of this application, and are not intended to limit the scope of protection of this application. Therefore, all equivalent changes made in accordance with the structure, shape and principle of this application should be covered within the scope of protection of this application.

Claims

1. A solid-state drive power supply management method, characterized in that, Includes the following steps: Obtain power supply data; Determine whether the power supply data conforms to the preset power supply standard; If the power supply data does not conform to the preset power supply standard, then obtain the corresponding abnormal power supply data; Determine the anomaly type of the abnormal power supply data; If the anomaly type is an input anomaly, then the corresponding input voltage amplitude data is acquired and analyzed to generate the corresponding anomaly analysis results; If the anomaly type is an output anomaly, then the corresponding output power data is acquired and analyzed to generate the corresponding anomaly analysis result; Based on the anomaly analysis results, a corresponding anomaly handling strategy is matched for security processing. If the anomaly type is an input anomaly, then acquiring and analyzing the corresponding input voltage amplitude data and generating the corresponding anomaly analysis results includes the following steps: Based on the input voltage amplitude data, obtain the corresponding voltage amplitude value; Determine the type of abnormality in the voltage amplitude value; If the anomaly type is a power failure, then the corresponding data storage progress is obtained and analyzed, and the corresponding anomaly analysis result is generated; If the anomaly type is voltage overshoot, then obtain the current voltage amplitude and the duration of the current voltage amplitude, and generate the corresponding anomaly analysis result; If the anomaly type is a power failure, then acquiring and analyzing the corresponding data storage progress and generating the corresponding anomaly analysis result includes the following steps: Determine whether the data storage progress meets the preset storage standards; If the data storage progress does not meet the preset storage standard, then obtain the current data to be stored; Based on the current data to be stored, obtain the corresponding storage energy consumption value; Determine whether the storage energy consumption value meets the preset energy supply standard; If the storage energy consumption value does not meet the preset energy supply standard, then the corresponding energy consumption difference between the storage energy consumption value and the preset energy supply standard is generated as the anomaly analysis result.

2. The solid-state drive power supply management method according to claim 1, characterized in that, After determining whether the storage energy consumption value meets the preset energy supply standard, the following steps are also included: If the storage energy consumption value meets the preset energy supply standard, then the corresponding energy supply allocation data is obtained; Determine whether the energy distribution data meets the preset working standards; If the energy allocation data does not conform to the preset working standard, then obtain the corresponding abnormal energy allocation data; Based on the preset working standards and the abnormal power supply allocation data, the allocation difference is generated as the abnormality analysis result.

3. The solid-state drive power supply management method according to claim 1, characterized in that, After determining whether the data storage progress meets the preset storage standard, the following steps are also included: If the data storage progress meets the preset storage standard, then obtain the power supply status of the solid-state drive; Determine whether the solid-state drive has resumed power supply within a preset time period. If power is not restored, continue to wait until the solid-state drive is powered back on; If power is restored, the connection between the solid-state drive and the host will be re-established.

4. The solid-state drive power supply management method according to claim 1, characterized in that, If the anomaly type is an output anomaly, then acquiring and analyzing the corresponding output power data to generate the corresponding anomaly analysis result includes the following steps: Based on the output power data, obtain the corresponding output voltage; Determine whether the output voltage meets the preset output voltage standard; If the output voltage does not meet the preset output voltage standard, then determine the output voltage abnormality type; If the output anomaly type is overvoltage, then the current voltage value of the output voltage is obtained, and corresponding voltage regulation data is generated according to the preset transmission voltage standard and the current voltage value as the anomaly analysis result; If the output anomaly type is undervoltage, then the current voltage value of the output voltage is obtained, and corresponding compensation voltage data is generated based on the preset transmission voltage standard and the current voltage value as the anomaly analysis result.

5. A solid-state drive power supply management method according to claim 4, characterized in that, After determining whether the output voltage meets the preset transmission voltage standard, the following steps are also included: If the output voltage meets the preset output voltage standard, then the corresponding current data is obtained; Determine whether the current data exceeds a preset operating current threshold; If the current data exceeds the preset operating current threshold, then the corresponding overcurrent data is obtained; Based on the overcurrent data, obtain the corresponding line temperature; Determine whether the temperature of the line meets the preset operating temperature standard; If the line temperature does not meet the preset operating temperature standard, the corresponding real-time operating temperature is obtained, and a corresponding alarm signal is generated based on the real-time operating temperature.

6. A solid-state drive power supply management system, characterized in that, include: The first acquisition module (1) is used to acquire power supply data; The first judgment module (2) is used to determine whether the power supply data meets the preset power supply standard; If the power supply data does not conform to the preset power supply standard, the second acquisition module (3) is used to acquire the corresponding abnormal power supply data. The second judgment module (4) is used to determine the abnormal type of the abnormal power supply data; If the anomaly type is an input anomaly, the first analysis module (5) is used to acquire and analyze the corresponding input voltage amplitude data and generate the corresponding anomaly analysis result. If the anomaly type is an output anomaly, the second analysis module (6) is used to acquire and analyze the corresponding output power data and generate the corresponding anomaly analysis result. The matching module (7) is used to match the corresponding anomaly handling strategy for security processing based on the anomaly analysis results; The first analysis module (5) is specifically used for: If the anomaly type is an input anomaly, then acquiring and analyzing the corresponding input voltage amplitude data and generating the corresponding anomaly analysis results includes the following steps: Based on the input voltage amplitude data, obtain the corresponding voltage amplitude value; Determine the type of abnormality in the voltage amplitude value; If the anomaly type is a power failure, then the corresponding data storage progress is obtained and analyzed, and the corresponding anomaly analysis result is generated; If the anomaly type is voltage overshoot, then obtain the current voltage amplitude and the duration of the current voltage amplitude, and generate the corresponding anomaly analysis result; The first analysis module (5) is also specifically used for: If the abnormality type is a power failure, determine whether the data storage progress meets the preset storage standard; If the data storage progress does not meet the preset storage standard, then obtain the current data to be stored; Based on the current data to be stored, obtain the corresponding storage energy consumption value; Determine whether the storage energy consumption value meets the preset energy supply standard; If the storage energy consumption value does not meet the preset energy supply standard, then the corresponding energy consumption difference between the storage energy consumption value and the preset energy supply standard is generated as the anomaly analysis result.

7. A terminal device, comprising a memory and a processor, characterized in that, The memory stores computer instructions that can run on a processor, and when the processor loads and executes the computer instructions, it employs the solid-state drive power management method described in any one of claims 1 to 5.

8. A computer-readable storage medium storing computer instructions, characterized in that, When the computer instructions are loaded and executed by the processor, the solid-state drive power management method according to any one of claims 1 to 5 is employed.

Citation Information

Patent Citations

  • Reset system and method of hard disk controller, logic controller and voltage monitor

    CN114566195A

  • Dynamic Brownout Adjustment in a Storage Device

    US20150170716A1