Test and verification methods and devices for SSD SMBUS temperature alarm and low power consumption status
Patent Information
- Application Number
- CN202210375982.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-11
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2042-04-11
AI Technical Summary
若支持SMBUS功能的固态硬盘不能在正常或低功耗模式下读取固态硬盘温度或温度报警机制失效,其将错失最佳处理故障时机,大大影响用户对固态硬盘产品的体验和信任度
[0046] The advantages of this invention compared to existing technologies are: it can quickly and efficiently verify the SMBUS out-of-band management functions of solid-state drives, such as SMBUS reading of solid-state drive status and information, temperature alarm mechanisms, and the inability to access SMBUS under low-power PS3, thus better meeting the needs.
Smart Images

Figure CN115525486B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of solid-state drive out-of-band management storage technology, and in particular to a testing and verification method and apparatus for SSD SMBUS temperature alarm and low power consumption status. Background Technology
[0002] SMBUS (System Management Bus) is a communication management mechanism developed based on the I2C (Inter-Integrated Circuit) protocol for low-speed, high-stability scenarios. Its system management bus primarily uses two signal lines for data transmission and communication: SMCLK (SMBUS clock) and SMDAT (SMBUS Data). Even when in-band signal anomalies prevent the normal reading of SSD information and temperature, the health status of the SSD can still be monitored in real time via out-of-band SMBUS signals, such as obtaining SSD power consumption, device information, and temperature. The BIOS (Basic Input Output System) adjusts fan speed based on the acquired temperature to optimize the overall system acoustics. In computers with mass-produced SSDs, the SMBUS out-of-band signal access mechanism will significantly improve computer maintenance efficiency and reduce maintenance costs. Therefore, testing whether the SSD can read SSD temperature, device information, and temperature alarms in normal and low-power modes after enabling SMBUS is crucial. If a solid-state drive (SSD) that supports SMBUS cannot read the SSD temperature in normal or low-power mode, or if the temperature alarm mechanism fails, it will miss the best opportunity to handle the fault, greatly affecting the user's experience and trust in the SSD product.
[0003] Currently, server platforms do not support low-power SSD functionality. Only desktops and laptops support SSD low-power, but no computers with SMBUS-enabled M.2 SSD interfaces have been released on the market. ULINK's Driver Master software and its accompanying PSPA (PCIe SSD Power Adaptor) hardware lack physical SMBUS wiring, and SMBUS testing commands are not yet fully developed. SANBLAZE's server-specific SSD testing suite also does not support low-power mode. Summary of the Invention
[0004] The purpose of this invention is to overcome the shortcomings of the prior art and provide a testing and verification method and device for SSD SMBUS temperature alarm and low power consumption state.
[0005] To solve the above-mentioned technical problems, the present invention adopts the following technical solution:
[0006] Firstly, this embodiment provides a testing and verification method for SSD SMBUS temperature alarm and low power consumption state, including the following steps:
[0007] Read information from the solid-state drive;
[0008] Determine if the VID and DID in the solid-state drive's information match the preset settings;
[0009] If the settings are met, the status of the solid-state drive is read.
[0010] Determine if the SMART Warning status of the solid-state drive is FFh;
[0011] If SMART Warning is FFh, then record the current composite temperature value of the solid-state drive;
[0012] Write data to the solid-state drive;
[0013] Determine if the current synthesis temperature of the solid-state drive is greater than the set threshold.
[0014] If the value exceeds the set threshold, data writing to the solid-state drive will be stopped.
[0015] Read the status of the solid-state drive;
[0016] Determine if the SMART Warning status of the solid-state drive is DFh;
[0017] If SMART Warning is DFh, it means that the temperature alarm event was successfully triggered, and the current composite temperature value of the solid-state drive is recorded.
[0018] Turn off the automatic power state transition function of the solid-state drive and set the solid-state drive to a low power state;
[0019] Determine if the power status of the solid-state drive is in a low-power state;
[0020] If the power state is low power, determine whether SMBUS can respond normally and return hard disk information;
[0021] If SMBUS can respond normally and return hard disk information, it means that SMBUS is operating normally in a low-power state.
[0022] The further technical solution is as follows: before the step of reading the information of the solid-state drive, it also includes: checking whether the solid-state drive controller data structure supports SMBUS; if it supports SMBUS, then the SMBUS function is enabled.
[0023] The further technical solution is as follows: after the step of determining whether the SMART Warning in the state of the solid-state drive is FFh, it also includes: if the SMART Warning is not FFh, it indicates that a temperature alarm event has been detected, and the current composite temperature value of the solid-state drive is recorded.
[0024] The further technical solution is as follows: after the step of determining whether the current synthesis temperature value of the solid-state drive is greater than the set threshold, it also includes: if it is not greater than the set threshold, then continue to write data to the solid-state drive for 5 minutes, and then determine whether the current synthesis temperature value of the solid-state drive is greater than the set threshold. If it is still not greater than the set threshold, it indicates that the temperature sensor has malfunctioned.
[0025] Secondly, this embodiment provides a test and verification device for SSD SMBUS temperature alarm and low power consumption state, including: a first reading unit, a first judgment unit, a second reading unit, a second judgment unit, a recording unit, a writing unit, a third judgment unit, a stop unit, a third reading unit, a fourth judgment unit, a trigger recording unit, a shutdown setting unit, a fifth judgment unit, a sixth judgment unit, and a running unit.
[0026] The first reading unit is used to read information from the solid-state drive;
[0027] The first judgment unit is used to determine whether the VID and DID in the information of the solid-state drive conform to the preset settings;
[0028] The second reading unit is used to read the status of the solid-state drive if it meets the preset settings;
[0029] The second judgment unit is used to determine whether the SMART Warning status of the solid-state drive is FFh;
[0030] The recording unit is used to record the current composite temperature value of the solid-state drive if the SMART Warning is FFh.
[0031] The writing unit is used to write data to the solid-state drive;
[0032] The third judgment unit is used to determine whether the current synthesis temperature value of the solid-state drive is greater than the set threshold.
[0033] The stop unit is used to stop writing data to the solid-state drive if the value exceeds a set threshold.
[0034] The third reading unit is used to read the status of the solid-state drive;
[0035] The fourth judgment unit is used to determine whether the SMART Warning status of the solid-state drive is DFh.
[0036] The trigger recording unit is used to record the current composite temperature value of the solid-state drive if the SMART Warning is DFh, indicating that the temperature alarm event has been successfully triggered.
[0037] The shutdown setting unit is used to disable the automatic power state transition function of the solid-state drive and set the solid-state drive to a low-power state.
[0038] The fifth judgment unit is used to determine whether the power state of the solid-state drive is a low-power state.
[0039] The sixth judgment unit is used to determine whether SMBUS can respond normally and return hard disk information if the power state is a low power state.
[0040] The operating unit is configured to indicate that SMBUS is operating normally in a low-power state if SMBUS can respond normally and return hard disk information.
[0041] The further technical solution includes: a checking unit for checking whether the solid-state drive controller data structure supports SMBUS; if SMBUS is supported, the SMBUS function is enabled.
[0042] The further technical solution includes: a check recording unit, which is used to record the current composite temperature value of the solid-state drive if the SMART Warning is not FFh, indicating that a temperature alarm event has been detected.
[0043] The further technical solution includes: a write judgment unit, which is used to continue writing data to the solid-state drive for 5 minutes if the value is not greater than the set threshold, and then judge whether the current composite temperature value of the solid-state drive is greater than the set threshold. If it is still not greater than the set threshold, it indicates that the temperature sensor has failed.
[0044] Thirdly, this embodiment provides a computer device, which includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, it implements the test and verification method for SSD SMBUS temperature alarm and low power consumption state as described above.
[0045] Fourthly, this embodiment provides a storage medium storing a computer program, the computer program including program instructions, which, when executed by a processor, can implement the test and verification method for SSDSMBUS temperature alarm and low power consumption state as described above.
[0046] The advantages of this invention compared to existing technologies are: it can quickly and efficiently verify the SMBUS out-of-band management functions of solid-state drives, such as SMBUS reading of solid-state drive status and information, temperature alarm mechanisms, and the inability to access SMBUS under low-power PS3, thus better meeting the needs.
[0047] The present invention will be further described below with reference to the accompanying drawings and specific embodiments. Attached Figure Description
[0048] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0049] Figure 1 A flowchart illustrating the testing and verification method for SSD SMBUS temperature alarm and low power consumption state provided in this embodiment of the invention.
[0050] Figure 2 A schematic block diagram of a test and verification device for SSD SMBUS temperature alarm and low power consumption state provided in an embodiment of the present invention;
[0051] Figure 3 A schematic block diagram of a computer device provided for an embodiment of the present invention. Detailed Implementation
[0052] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0053] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.
[0054] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0055] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0056] Please see Figure 1 The specific embodiment shown in this invention discloses a testing and verification method for SSD SMBUS temperature alarm and low power consumption state, including the following steps:
[0057] The testing environment for this method is as follows: Computer under test: Lenovo X1 Carbon 9th laptop; Note: This method is suitable for low-power laptops and desktops, but the specific model is not mandatory. The Lenovo X1 Carbon 9th laptop is preferred as the computer under test. Solid-state drive under test: M.2 solid-state drive supporting the SMBUS protocol. Software requirements: Operating system: Linux Ubuntu 20.04; Testing tool: NVME-cli; Testing script: Shell testing script.
[0058] S1, reads information from the solid-state drive;
[0059] Before step S1, the test also includes: checking whether the solid-state drive controller data structure supports SMBUS; if SMBUS is supported, enabling the SMBUS function through the NVME set-feature command; if SMBUS is not supported, exiting the test.
[0060] Specifically, check if the first position (solid-state drive controller data structure) in byte 4004 supports SMBUS; if the first position is 1, then SMBUS is supported and the SMBUS function can be enabled.
[0061] Specifically, in step S1, the SMBUS write command format in Table 1 is used to first send the SMBUS write command to address D4h, then send the command code 08h (representing reading information from the solid-state drive), and finally send the read command to address D5h to obtain the solid-state drive information returned by the solid-state drive through SMBUS.
[0062] Table 1
[0063]
[0064] S2 checks whether the VID and DID in the solid-state drive information match the preset settings; if they do not match the preset settings, the solid-state drive is recorded as faulty.
[0065] Wherein, VID stands for Vendor Identifier, and DID stands for Device Identifier. The default values are VID = 0x1CC4 and DID = 0x06A0.
[0066] S3, if it meets the preset settings, reads the status of the solid-state drive;
[0067] Specifically, in step S3, command code 00 is sent via SMBUS basic management commands to read the status of the solid-state drive.
[0068] The basic management commands here have the same format as the management commands above.
[0069] S4, determine if the SMART Warning status of the solid-state drive is FFh;
[0070] Among them, SMART stands for Self-Monitoring Analysis and Reporting Technology; Warning is an alarm byte; FFh indicates that no temperature alarm event has occurred.
[0071] Following step S4, the process includes: if SMART Warning is not FFh, it indicates a temperature alarm event has been detected, and the current composite temperature value of the SSD is recorded. Upon receiving this temperature alarm, the BIOS will increase the fan speed to cool the SSD, allowing it to quickly return to optimal performance.
[0072] S5, if SMART Warning is FFh, then record the current synthesis temperature value of the solid-state drive;
[0073] S6, writes data to the solid-state drive;
[0074] Specifically, in step S6, data is written to the solid-state drive using the NVME write command.
[0075] S7, determine whether the current synthesis temperature of the solid-state drive is greater than the set threshold;
[0076] Prior to step S7, the method includes setting a temperature alarm threshold using the NVME set-feature command. Specifically, in this embodiment, the temperature alarm threshold is set to 40 degrees or 45 degrees.
[0077] The process includes the following steps after step S7: if the temperature is not greater than the set threshold, continue writing data to the solid-state drive for 5 minutes, and then determine whether the current combined temperature value of the solid-state drive is greater than the set threshold. If it is still not greater than the set threshold, it indicates that the temperature sensor has malfunctioned. If it is greater than the set threshold, the temperature alarm trigger condition is met, and the SMARTwarning byte can be read.
[0078] S8, if the value exceeds the set threshold, stop writing data to the solid-state drive;
[0079] Specifically, in step S8, the NVME write command is stopped from writing data to the solid-state drive.
[0080] S9 reads the status of the solid-state drive;
[0081] Specifically, in step S9, command code 00 is sent via SMBUS basic management commands to read the status of the solid-state drive.
[0082] S10, determine if the SMART Warning status of the solid-state drive is DFh;
[0083] Among them, DFh: A temperature alarm event occurred.
[0084] The steps following S10 include: if SMART Warning is not DFh, record the temperature alarm verification failure and record the current synthesized temperature value of the solid-state drive.
[0085] S11, if SMART Warning is DFh, it means that the temperature alarm event was successfully triggered, and the current composite temperature value of the solid-state drive is recorded.
[0086] S12, disable the automatic power state transition function of the solid-state drive and set the solid-state drive to a low power state;
[0087] S13, determine whether the power state of the solid-state drive is in a low-power state; if the power state is not in a low-power state, record that the solid-state drive is faulty and fail to enter the low-power state.
[0088] S14. If the power state is low power, determine whether SMBUS can respond normally and return hard disk information; if SMBUS cannot respond normally and return hard disk information, record that the solid-state drive is faulty, or that there is an SMBUS problem in the low power state. An SMBUS problem means that SMBUS cannot work.
[0089] S15. If SMBUS can respond normally and return hard disk information, it means that SMBUS is operating normally in a low-power state.
[0090] This invention can quickly and efficiently verify the SMBUS out-of-band management functions of solid-state drives, such as SMBUS reading of solid-state drive status and information, temperature alarm mechanism, and problems such as the inability to access SMBUS under low power PS3, and can better meet the needs.
[0091] Please see Figure 2 As shown, the present invention also discloses a test and verification device for SSD SMBUS temperature alarm and low power consumption state, including: a first reading unit 10, a first judgment unit 20, a second reading unit 30, a second judgment unit 40, a recording unit 50, a writing unit 60, a third judgment unit 70, a stop unit 80, a third reading unit 90, a fourth judgment unit 100, a trigger recording unit 110, a shutdown setting unit 120, a fifth judgment unit 130, a sixth judgment unit 140, and a running unit 150;
[0092] The first reading unit 10 is used to read information from the solid-state drive;
[0093] The first judgment unit 20 is used to determine whether the VID and DID in the information of the solid-state drive conform to the preset settings;
[0094] The second reading unit 30 is used to read the status of the solid-state drive if it meets the preset settings;
[0095] The second judgment unit 40 is used to determine whether the SMART Warning status of the solid-state drive is FFh;
[0096] The recording unit 50 is used to record the current synthesis temperature value of the solid-state drive if the SMART Warning is FFh.
[0097] The writing unit 60 is used to write data to the solid-state drive;
[0098] The third judgment unit 70 is used to determine whether the current synthesis temperature value of the solid-state drive is greater than a set threshold.
[0099] The stop unit 80 is used to stop writing data to the solid-state drive if the value exceeds a set threshold.
[0100] The third reading unit 90 is used to read the status of the solid-state drive;
[0101] The fourth judgment unit 100 is used to determine whether the SMART Warning status of the solid-state drive is DFh.
[0102] The trigger recording unit 110 is used to record the current composite temperature value of the solid-state drive if the SMART Warning is DFh, indicating that the temperature alarm event has been successfully triggered.
[0103] The shutdown setting unit 120 is used to disable the automatic power state transition function of the solid-state drive and set the solid-state drive to a low power state.
[0104] The fifth judgment unit 130 is used to determine whether the power state of the solid-state drive is a low-power state.
[0105] The sixth judgment unit 140 is used to determine whether SMBUS can respond normally and return hard disk information if the power state is a low power state.
[0106] The operating unit 150 is configured to indicate that SMBUS is operating normally in a low-power state if SMBUS can respond normally and return hard disk information.
[0107] The device also includes a checking unit for checking whether the solid-state drive controller data structure supports SMBUS; if it supports SMBUS, the SMBUS function is enabled.
[0108] The device also includes a check and record unit, which records the current composite temperature value of the solid-state drive if the SMART Warning is not FFh, indicating that a temperature alarm event has been detected.
[0109] The device also includes a write judgment unit, which is used to continue writing data to the solid-state drive for 5 minutes if the temperature is not greater than a set threshold, and then judge whether the current composite temperature value of the solid-state drive is greater than the set threshold. If it is still not greater than the set threshold, it indicates that the temperature sensor has malfunctioned.
[0110] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned SSD SMBUS temperature alarm and low power state test verification device and each unit can be referred to the corresponding description in the foregoing method embodiments. For the sake of convenience and brevity, it will not be repeated here.
[0111] The aforementioned testing and verification device for SSD SMBUS temperature alarm and low power consumption state can be implemented as a computer program, which can be used in, for example... Figure 3 It runs on the computer device shown.
[0112] Please see Figure 3 , Figure 3This is a schematic block diagram of a computer device 500 provided in an embodiment of this application; the computer device 500 can be a terminal or a server, wherein the terminal can be an electronic device with communication functions such as a smartphone, tablet computer, laptop computer, desktop computer, personal digital assistant, and wearable device. The server can be a standalone server or a server cluster composed of multiple servers.
[0113] See Figure 3 The computer device 500 includes a processor 502, a memory, and a network interface 505 connected via a system bus 501. The memory may include a non-volatile storage medium 503 and internal memory 504.
[0114] The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions that, when executed, cause the processor 502 to perform a test verification method for SSD SMBUS temperature alarm and low power consumption state.
[0115] The processor 502 provides computing and control capabilities to support the operation of the entire computer device 500.
[0116] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a test and verification method for SSD SMBUS temperature alarm and low power consumption state.
[0117] This network interface 505 is used for network communication with other devices. Those skilled in the art will understand that... Figure 3 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device 500 to which the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0118] The processor 502 is used to run a computer program 5032 stored in the memory to perform the following steps:
[0119] Step S1: Read the information from the solid-state drive;
[0120] Step S2: Determine whether the VID and DID in the solid-state drive information match the preset settings; if they do not match the preset settings, record the solid-state drive as faulty.
[0121] Step S3: If the preset conditions are met, read the status of the solid-state drive;
[0122] Step S4: Determine if the SMART Warning status of the solid-state drive is FFh;
[0123] Step S5: If SMART Warning is FFh, record the current synthesis temperature value of the solid-state drive.
[0124] Step S6: Write data to the solid-state drive;
[0125] Step S7: Determine whether the current synthesis temperature of the solid-state drive is greater than the set threshold.
[0126] Step S8: If the value exceeds the set threshold, stop writing data to the solid-state drive.
[0127] Step S9: Read the status of the solid-state drive;
[0128] Step S10: Determine whether the SMART Warning status of the solid-state drive is DFh;
[0129] Step S11: If SMART Warning is DFh, it means that the temperature alarm event was successfully triggered. Record the current composite temperature value of the solid-state drive.
[0130] Step S12: Turn off the automatic power state transition function of the solid-state drive and set the solid-state drive to a low power state.
[0131] Step S13: Determine whether the power state of the solid-state drive is in a low-power state; if the power state is not in a low-power state, record that the solid-state drive is faulty and fail to enter the low-power state.
[0132] Step S14: If the power state is low power, determine whether SMBUS can respond normally and return hard disk information.
[0133] Step S15: If SMBUS can respond normally and return hard disk information, it means that SMBUS is operating normally in a low-power state.
[0134] It should be understood that in the embodiments of this application, the processor 502 may be a central processing unit (CPU), or it may be other general-purpose 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, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0135] It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program includes program instructions and can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.
[0136] Therefore, the present invention also provides a storage medium. This storage medium can be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions, which, when executed by a processor, can implement the above-described test and verification method for SSD SMBUS temperature alarm and low-power state. The storage medium stores a computer program, which includes program instructions, which, when executed by a processor, can implement the above-described method. The program instructions include the following steps:
[0137] Step S1: Read the information from the solid-state drive;
[0138] Step S2: Determine whether the VID and DID in the solid-state drive information match the preset settings; if they do not match the preset settings, record the solid-state drive as faulty.
[0139] Step S3: If the preset conditions are met, read the status of the solid-state drive;
[0140] Step S4: Determine if the SMART Warning status of the solid-state drive is FFh;
[0141] Step S5: If SMART Warning is FFh, record the current synthesis temperature value of the solid-state drive.
[0142] Step S6: Write data to the solid-state drive;
[0143] Step S7: Determine whether the current synthesis temperature of the solid-state drive is greater than the set threshold.
[0144] Step S8: If the value exceeds the set threshold, stop writing data to the solid-state drive.
[0145] Step S9: Read the status of the solid-state drive;
[0146] Step S10: Determine whether the SMART Warning status of the solid-state drive is DFh;
[0147] Step S11: If SMART Warning is DFh, it means that the temperature alarm event was successfully triggered. Record the current composite temperature value of the solid-state drive.
[0148] Step S12: Turn off the automatic power state transition function of the solid-state drive and set the solid-state drive to a low power state.
[0149] Step S13: Determine whether the power state of the solid-state drive is in a low-power state; if the power state is not in a low-power state, record that the solid-state drive is faulty and fail to enter the low-power state.
[0150] Step S14: If the power state is low power, determine whether SMBUS can respond normally and return hard disk information.
[0151] Step S15: If SMBUS can respond normally and return hard disk information, it means that SMBUS is operating normally in a low-power state.
[0152] In one embodiment, before the step of reading information from the solid-state drive, the method further includes: checking whether the solid-state drive controller data structure supports SMBUS; if SMBUS is supported, then enabling the SMBUS function.
[0153] In one embodiment, after determining whether the SMART Warning in the state of the solid-state drive is FFh, the method further includes: if the SMART Warning is not FFh, it indicates that a temperature alarm event has been detected, and the current composite temperature value of the solid-state drive is recorded.
[0154] In one embodiment, after the step of determining whether the current composite temperature value of the solid-state drive is greater than the set threshold, the method further includes: if it is not greater than the set threshold, then continue writing data to the solid-state drive for 5 minutes, and then determine whether the current composite temperature value of the solid-state drive is greater than the set threshold again; if it is still not greater than the set threshold, then it indicates that the temperature sensor has malfunctioned.
[0155] The storage medium can be any computer-readable storage medium capable of storing program code, such as a USB flash drive, portable hard drive, read-only memory (ROM), magnetic disk, or optical disk.
[0156] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0157] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each unit is merely a logical functional division, and there may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.
[0158] The steps in the method of this invention can be adjusted, merged, or reduced in order according to actual needs. The units in the device of this invention can be merged, divided, or reduced according to actual needs. Furthermore, the functional units in the various embodiments of this invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0159] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
[0160] The above embodiments are preferred implementations of the present invention. In addition, the present invention can be implemented in other ways. Any obvious substitutions without departing from the concept of the present technical solution are within the protection scope of the present invention.
Claims
1. A test and verification method for SSD SMBUS temperature alarm and low power consumption state, characterized in that, Includes the following steps: Read information from the solid-state drive; Determine if the VID and DID in the solid-state drive's information match the preset settings; If the settings are met, the status of the solid-state drive is read. Determine if the SMART Warning status of the solid-state drive is FFh; If SMART Warning is FFh, then record the current composite temperature value of the solid-state drive; Write data to the solid-state drive; Determine if the current synthesis temperature of the solid-state drive is greater than the set threshold. If the value exceeds the set threshold, data writing to the solid-state drive will be stopped. Read the status of the solid-state drive; Determine if the SMART Warning status of the solid-state drive is DFh; If SMART Warning is DFh, it means that the temperature alarm event was successfully triggered, and the current composite temperature value of the solid-state drive is recorded. Turn off the automatic power state transition function of the solid-state drive and set the solid-state drive to a low power state; Determine if the power status of the solid-state drive is in a low-power state; If the power state is low power, determine whether SMBUS can respond normally and return hard disk information; If SMBUS can respond normally and return hard disk information, it means that SMBUS is operating normally in a low-power state.
2. The test and verification method for SSD SMBUS temperature alarm and low power consumption state according to claim 1, characterized in that, Before the step of reading information from the solid-state drive, the method further includes: checking whether the solid-state drive controller data structure supports SMBUS; if SMBUS is supported, then enabling the SMBUS function.
3. The test and verification method for SSD SMBUS temperature alarm and low power consumption state according to claim 1, characterized in that, After determining whether the SMART Warning in the state of the solid-state drive is FFh, the method further includes: if the SMART Warning is not FFh, it indicates that a temperature alarm event has been detected, and the current composite temperature value of the solid-state drive is recorded.
4. The test and verification method for SSD SMBUS temperature alarm and low power consumption state according to claim 1, characterized in that, After determining whether the current composite temperature value of the solid-state drive is greater than the set threshold, the method further includes: if it is not greater than the set threshold, continue writing data to the solid-state drive for 5 minutes, and then determine whether the current composite temperature value of the solid-state drive is greater than the set threshold. If it is still not greater than the set threshold, it indicates that the temperature sensor has malfunctioned.
5. A testing and verification device for SSD SMBUS temperature alarm and low power consumption state, characterized in that, include: First reading unit, first judgment unit, second reading unit, second judgment unit, recording unit, writing unit, third judgment unit, stop unit, third reading unit, fourth judgment unit, trigger recording unit, close setting unit, fifth judgment unit, sixth judgment unit and running unit; The first reading unit is used to read information from the solid-state drive; The first judgment unit is used to determine whether the VID and DID in the information of the solid-state drive conform to the preset settings; The second reading unit is used to read the status of the solid-state drive if it meets the preset settings; The second judgment unit is used to determine whether the SMART Warning status of the solid-state drive is FFh; The recording unit is used to record the current composite temperature value of the solid-state drive if the SMART Warning is FFh. The writing unit is used to write data to the solid-state drive; The third judgment unit is used to determine whether the current synthesis temperature value of the solid-state drive is greater than the set threshold. The stop unit is used to stop writing data to the solid-state drive if the value exceeds a set threshold. The third reading unit is used to read the status of the solid-state drive; The fourth judgment unit is used to determine whether the SMART Warning status of the solid-state drive is DFh. The trigger recording unit is used to record the current composite temperature value of the solid-state drive if the SMART Warning is DFh, indicating that the temperature alarm event has been successfully triggered. The shutdown setting unit is used to disable the automatic power state transition function of the solid-state drive and set the solid-state drive to a low-power state. The fifth judgment unit is used to determine whether the power state of the solid-state drive is a low-power state. The sixth judgment unit is used to determine whether SMBUS can respond normally and return hard disk information if the power state is a low power state. The operating unit is configured to indicate that SMBUS is operating normally in a low-power state if SMBUS can respond normally and return hard disk information.
6. The testing and verification device for SSD SMBUS temperature alarm and low power consumption state according to claim 5, characterized in that, Also includes: The inspection unit is used to check whether the solid-state drive controller data structure supports SMBUS; If SMBUS is supported, then enable the SMBUS function.
7. The testing and verification device for SSD SMBUS temperature alarm and low power consumption state according to claim 5, characterized in that, Also includes: The check recording unit is used to record the current composite temperature value of the solid-state drive if the SMART Warning is not FFh, indicating that a temperature alarm event has been detected.
8. The testing and verification device for SSD SMBUS temperature alarm and low power consumption state according to claim 5, characterized in that, Also includes: The write judgment unit is used to continue writing data to the solid-state drive for 5 minutes if the temperature is not greater than the set threshold, and then judge whether the current composite temperature value of the solid-state drive is greater than the set threshold. If it is still not greater than the set threshold, it indicates that the temperature sensor has failed.
9. A computer device, characterized in that, The computer device includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, it implements the test and verification method for SSD SMBUS temperature alarm and low power consumption state as described in any one of claims 1-4.
10. A storage medium, characterized in that, The storage medium stores a computer program, which includes program instructions. When executed by a processor, the program instructions can implement the test and verification method for SSDSMBUS temperature alarm and low power consumption state as described in any one of claims 1-4.
Citation Information
Patent Citations
Dual-redundant CAN bus communication system
CN105743755A
Interface implementation method based on power management bus protocol
CN111427831A