Implementation method and system for lightening backboard NVME hard disk abnormal state lamp

By establishing an I2C interface connection between the BMC and CPLD in the server, cross-platform NVME hard drive fault status feedback is achieved, solving the problem of locating NVME hard drive faults on non-Intel platforms, reducing costs and improving system stability and maintainability.

CN120653514APending Publication Date: 2025-09-16SHENZHEN TONGTAIYI INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510675733.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-23
Publication Date
2025-09-16

AI Technical Summary

Technical Problem

Existing technologies cannot accurately transmit NVME hard drive fault status information to the backplane CPLD on non-Intel platforms, making it difficult for operation and maintenance personnel to quickly locate the faulty hard drive, increasing troubleshooting time and costs.

Method used

By establishing an I2C interface connection between the baseboard management controller BMC and the backplane CPLD in the server, and using the SMBUS interface to communicate with the NVME hard disk, the hard disk status information is read and the fault indicator light is controlled to light up, thus realizing cross-platform NVME hard disk abnormal status feedback.

Benefits of technology

It reduces hardware deployment and system integration costs, simplifies system architecture, shortens development cycles, improves product stability and maintainability, and reduces operation and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120653514A_ABST
    Figure CN120653514A_ABST
Patent Text Reader

Abstract

The invention discloses an implementation method and system for lightening a backboard NVME hard disk abnormal state lamp, and the method comprises the steps: enabling a BMC (baseboard management controller) to be connected with a backboard CPLD (complex programmable logic device) through an I2C interface, so as to achieve the bidirectional communication; recording and reading hard disk in-place information; nVME hard disk health state reading and abnormity judgment: reading state information of Status Flags and SMART Warnings of an NVME hard disk by a BMC (Baseboard Management Controller); the BMC analyzes and judges the read information according to a preset state flag bit or a warning threshold value, and determines whether the NVME hard disk is abnormal or not; when the abnormal hard disk is detected, sending the position information of the abnormal hard disk to a backboard CPLD (Complex Programmable Logic Device); fault indicating lamp control: the backboard CPLD controls the fault indicating lamp at the corresponding position to be turned on according to the recorded in-place information of the hard disk; and when the abnormal hard disk state recovers, extinguishing the fault indicating lamp at the corresponding position. Through the direct communication of the BMC and the NVME hard disk based on the SMBUS interface and the interaction of the I2C interface between the BMC and the CPLD, the abnormal state lamp lighting function of the NVME hard disk can be completed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of computer hardware and server management, and relates to a method and system for lighting an abnormal status light of a backplane NVME hard disk. Background Art

[0002] In servers and other equipment, for the backplane design that supports NVME hard drives, the current common method is to connect the SMBUS (System Management Bus, or VPP bus) based on the motherboard CPU to the CPLD (Complex Programmable Logic Device) chip on the backplane to realize the lighting function of the NVME hard drive. The motherboard CPU transmits relevant information to the CPLD chip on the backplane through the VPP bus. The CPLD chip parses the information and then controls the LED display at the corresponding position on the backplane to achieve a visual indication of the hard drive status. In order to ensure that the LED light corresponds to each NVME SSD interface, the backplane needs to configure a corresponding VPP (Virtual Pin Port) address for each NVME SSD interface. Under a specific platform, the hard drive status and indicator light can be effectively associated, which provides convenience for operation and maintenance personnel to quickly locate hard drive failures.

[0003] The VPP bus parsing method is relatively closed, and the compatibility of its parsing protocol varies significantly across different platforms. On Intel platforms, due to its relatively complete technical ecosystem and unified specifications, developers can easily obtain clear support for the VPP bus parsing protocol, thereby smoothly communicating NVME drive status information with the backplane CPLD. This ensures that when a drive fails, the fault indicator on the backplane slot illuminates accurately, clearly indicating the location of the faulty drive. However, on non-Intel platforms, such as AMD, the situation is quite different. Not all development customers can successfully obtain clear support for the NVME drive fault parsing protocol on these platforms. Due to the lack of a unified protocol specification and comprehensive documentation, developers face significant difficulties in effectively communicating NVME drive fault status information to the backplane CPLD.

[0004] On non-Intel platforms, due to the inability to accurately obtain support for the NVME hard drive fault resolution protocol, when an NVME hard drive error occurs, the backplane CPLD cannot receive the correct hard drive error status and location information. As a result, the CPLD cannot determine which specific NVME hard drive slot has failed, and is unable to drive the fault light in the corresponding slot to light up. For ordinary development and design personnel, implementing the NVME fault lighting function becomes extremely difficult. Due to technical limitations, some development projects may have to abandon this important fault indication function, making it difficult for operation and maintenance personnel to quickly locate the problematic hard drive when faced with an NVME hard drive failure, increasing the time and difficulty of troubleshooting. Other projects, in order to implement this function, need to pay expensive fees to the CPU provider to obtain proprietary support methods, which undoubtedly increases development costs and limits the widespread application of the technology.

[0005] The aforementioned problems with existing technologies severely restrict the stable operation and efficient maintenance of servers and other related equipment in multi-platform environments. With today's diversified hardware platform development trend, server products must possess excellent cross-platform compatibility to meet the needs of diverse users. However, the limitations of existing NVME drive backplane lighting technology on non-Intel platforms prevent servers from providing timely and accurate feedback to maintenance personnel when NVME drive failures occur, impacting server reliability and maintainability. This not only increases operational costs for businesses but can also lead to business interruptions due to untimely fault resolution, resulting in financial losses for the enterprise. Summary of the Invention

[0006] The purpose of the present invention is to solve the limitations of the existing NVME hard drive backplane lighting technology on non-Intel platforms, which makes it impossible for the server to promptly and accurately feedback fault information to the operation and maintenance personnel when facing an NVME hard drive failure. A method and system for lighting the backplane NVME hard drive abnormal status light are provided.

[0007] In order to achieve the above object, the present invention adopts the following technical solutions:

[0008] A method for lighting up a backplane NVME hard drive abnormal status light comprises the following steps:

[0009] Establishing a communication connection: In the server, the baseboard management controller (BMC) is connected to the backplane CPLD through the I2C interface to achieve bidirectional communication. At the same time, the baseboard management controller (BMC) establishes a communication connection with the NVME hard disk based on the SMBUS interface to access the NVME hard disk using the NVM Express Management Interface Command out-of-band management function.

[0010] Recording and reading hard disk presence information: The backplane CPLD senses the information of each hard disk slot. When a hard disk is connected to the backplane slot, the backplane CPLD records the hard disk presence signal and saves it.

[0011] NVME hard drive health status reading and abnormality judgment: The baseboard management controller (BMC) sends commands to the NVME hard drive using the SMBUS interface to read the NVME hard drive's Status Flags and SMART Warnings status information. The BMC analyzes and judges the read Status Flags and SMART Warnings status information based on preset status flags or warning thresholds to determine whether the NVME hard drive has any abnormalities.

[0012] When the baseboard management controller (BMC) detects an NVME hard drive abnormality, it sends the location information of the abnormal hard drive to the backplane CPLD;

[0013] Fault indicator light control: After the backplane CPLD receives the abnormal hard disk location information sent by the baseboard management controller (BMC), it controls the fault indicator light at the corresponding location based on the recorded hard disk presence information.

[0014] The baseboard management controller (BMC) and the backplane CPLD perform periodic polling detection. When the abnormal hard disk status recovers, the backplane CPLD turns off the fault indicator at the corresponding position.

[0015] An I2C interface protocol is defined between the baseboard management controller (BMC) and the backplane CPLD. The baseboard management controller (BMC) sends a command to read the hard disk presence status to the backplane CPLD via the I2C interface according to the protocol. The backplane CPLD simulates one or more groups of 8-byte registers. The baseboard management controller (BMC) accesses the registers through the command to read the hard disk presence information, where bit 7 to bit 0 correspond to HDD7 to HDD0, respectively, '0' represents presence, and '1' represents absence.

[0016] In the NVME hard disk health status reading and abnormality judgment, the BMC analyzes and judges the read Status Flags and SMART Warnings status information according to preset rules to determine whether the NVME hard disk has an abnormality; wherein the preset rules include determining that the NVME hard disk has an abnormality when a flag indicating a hard disk read or write error in the Status Flags is set, or when the SMARTWarnings status information indicates that the remaining life of the hard disk is lower than a preset threshold, or the number of hard disk bad blocks exceeds a preset threshold.

[0017] The baseboard management controller BMC is connected to the NVME backplane via an I2C switch, with each channel corresponding to a fixed slot on the backplane;

[0018] When the baseboard management controller (BMC) detects an NVME hard disk abnormality, it encapsulates the location information of the abnormal hard disk according to the I2C interface protocol defined between the baseboard management controller (BMC) and the backplane CPLD, and sends a command to write the hard disk fault status to the backplane CPLD through the I2C interface. The encapsulated abnormal hard disk location information is written into one or more 8-byte registers simulated by the CPLD, where bit 7 to bit 0 correspond to HDD7 to HDD0 respectively, and '1' indicates that the hard disk fault light at the corresponding position is on.

[0019] When the baseboard management controller BMC detects an abnormality in an NVME hard disk, the location information of the abnormal hard disk is encapsulated according to the I2C interface protocol defined between the backplane CPLD and the data encapsulation method is to convert the slot number of the abnormal hard disk into binary data according to the corresponding relationship and add it to a specific position of the data frame. The data frame also includes a start identifier, a command identifier, a data length identifier and a check identifier.

[0020] When the baseboard management controller BMC and the backplane CPLD perform periodic polling detection, the baseboard management controller BMC captures the hard disk status every 3 seconds; when the baseboard management controller BMC detects that the abnormal hard disk status has recovered, the corresponding status bit is inverted and a command is sent to the backplane CPLD to refresh the status light display. After receiving the command, the backplane CPLD turns off the fault indicator light at the corresponding position.

[0021] In the NVME hard disk health status reading and abnormality judgment, the NVMe hard disk provides an I2C slave address 0xD4 for implementing the basic management function of the subsystem; the baseboard management controller BMC sends a specific I2C command to access the health status information of the NVMe hard disk according to the NVMe express management interface document; wherein, the encoding format command code of the command is 0, and the status flag offset is 0x01; after the baseboard management controller BMC sets the parameters according to the command encoding format, it sends the command through the SMBUS interface; after receiving the response data returned by the NVMe hard disk, the response data is parsed to obtain the health status information of the NVMe hard disk.

[0022] A system for lighting up the abnormal status indicator of the NVME hard disk on the backplane includes the following modules:

[0023] Communication connection module: The baseboard management controller (BMC) is connected to the backplane CPLD via the I2C interface to achieve two-way communication. The baseboard management controller (BMC) establishes a communication connection with the NVME hard disk based on the SMBUS interface to access the NVME hard disk using the NVM Express Management Interface Command out-of-band management function.

[0024] Hard disk presence information recording and reading module: The backplane CPLD senses the information of each hard disk slot. When a hard disk is connected to a backplane slot, the CPLD records and saves the hard disk presence signal. An I2C interface protocol is defined between the baseboard management controller (BMC) and the CPLD. The BMC sends a command to read the hard disk presence status to the CPLD via the I2C interface according to the protocol. The CPLD simulates registers, and the BMC uses this command to access the registers and read the hard disk presence information.

[0025] NVME hard drive health status reading and abnormality judgment module: The baseboard management controller (BMC) sends commands to the NVME hard drive based on the SMBUS interface to read the NVME hard drive's Status Flags and SMART Warnings status information. The baseboard management controller (BMC) analyzes and judges the read Status Flags and SMART Warnings status information based on preset status flags or warning thresholds to determine whether the NVME hard drive has any abnormalities.

[0026] Abnormal hard disk location information sending module: When the baseboard management controller (BMC) detects an NVME hard disk abnormality, it encapsulates the abnormal hard disk location information according to the I2C interface protocol defined between the CPLD and the baseboard management controller (BMC). It then sends a command to write the hard disk fault status to the CPLD through the I2C interface, and writes the encapsulated abnormal hard disk location information into the register simulated by the CPLD.

[0027] Fault indicator light control module: After the CPLD receives the abnormal hard disk location information sent by the baseboard management controller (BMC), it controls the fault indicator light at the corresponding location based on the recorded hard disk presence information. The baseboard management controller (BMC) and CPLD perform periodic polling detection. When the baseboard management controller (BMC) detects that the abnormal hard disk status has recovered, it inverts the corresponding status bit and sends a command to the CPLD to refresh the status light display. After receiving the command, the CPLD turns off the fault indicator light at the corresponding location.

[0028] The NVME hard disk health status reading and abnormality judgment module specifically includes:

[0029] I2C slave address configuration submodule: NVME hard disk pre-configures I2C slave address 0xD4 to implement basic management functions of the subsystem;

[0030] Command generation and sending submodule: The baseboard management controller (BMC) generates a specific I2C command based on the NVMe express management interface document. The command encoding format is as follows: the command code is set to 0 and the status flag offset is set to 0x01. After setting the parameters according to the above command encoding format, the BMC sends the command to the NVMe hard drive through the SMBUS interface.

[0031] Response data receiving and parsing submodule: After the NVME hard disk receives the command sent by the baseboard management controller BMC, it returns the response data; after receiving the response data, the baseboard management controller BMC parses the response data according to the preset parsing rules to obtain the health status information of the NVME hard disk.

[0032] The abnormal hard disk location information sending module specifically includes:

[0033] Abnormality judgment submodule: The baseboard management controller (BMC) analyzes and judges the read Status Flags and SMART Warnings status information according to preset rules to determine whether the NVME hard disk has an abnormality. The preset rules include determining that the NVME hard disk has an abnormality when the flag indicating a hard disk read or write error in the Status Flags is set, or when the SMART Warnings status information indicates that the remaining life of the hard disk is lower than a preset threshold or the number of hard disk bad blocks exceeds a preset threshold.

[0034] Location information encapsulation and sending submodule: When the baseboard management controller BMC detects an NVME hard disk abnormality, it encapsulates the location information of the abnormal hard disk according to the I2C interface protocol defined between the CPLD and the CPLD, sends a command to write the hard disk fault status to the CPLD through the I2C interface, and writes the encapsulated abnormal hard disk location information into the register simulated by the CPLD.

[0035] Compared with the prior art, the present invention has the following beneficial effects:

[0036] The present invention provides a method for illuminating the abnormal status indicator on the backplane NVME hard drive. This function is accomplished through direct communication between the BMC and the NVME hard drive via the SMBUS interface, as well as interaction between the BMC and the CPLD via the I2C interface. This eliminates the need for server manufacturers using solutions from non-Intel platform vendors to pay additional fees for obtaining the VPP end-to-end parsing protocol, effectively reducing hardware deployment and system integration costs. This significantly improves the product's cost competitiveness across different platforms, helping to expand market share, particularly in the cost-sensitive mid- and low-end server market.

[0037] This implementation method boasts a simple and efficient design concept, requiring only the addition of a service program to the BMC backend, without requiring major hardware modifications or new hardware modules. This design significantly simplifies the system architecture, reduces the workload of hardware debugging and testing, effectively shortens the product development cycle, and enables faster time to market. Furthermore, the reduction in hardware components reduces points of failure, improving overall system stability, lowering ongoing maintenance costs and troubleshooting difficulties, and providing users with a more reliable and easier-to-maintain server solution. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.

[0039] Figure 1 This is a schematic block diagram of a method for lighting up the backplane NVME hard drive abnormal status light of the present invention;

[0040] Figure 2 The present invention is a schematic diagram of the workflow of the method for lighting the backplane NVME hard disk abnormal status light. DETAILED DESCRIPTION

[0041] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings herein can be arranged and designed in various different configurations.

[0042] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention as claimed, but rather merely represents selected embodiments of the present invention. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of the present invention without creative effort shall fall within the scope of protection of the present invention.

[0043] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings.

[0044] The present invention is described in further detail below with reference to the accompanying drawings:

[0045] See also Figure 1 and Figure 2 , is a schematic block diagram of a method for lighting up the backplane NVME hard disk abnormal status light of the present invention, the implementation method comprising the following steps:

[0046] Establish a communication connection: In the server, the baseboard management controller BMC is connected to the backplane CPLD via the I2C interface to achieve two-way communication; at the same time, the baseboard management controller BMC establishes a communication connection with the NVME hard disk based on the SMBUS interface to access the NVME hard disk using the NVM Express Management Interface Command out-of-band management function. The baseboard management controller BMC defines an I2C interface protocol between the baseboard management controller BMC and the backplane CPLD. According to the protocol, the baseboard management controller BMC sends a command to read the hard disk in-place status to the backplane CPLD via the I2C interface. The backplane CPLD simulates one or more groups of 8-byte registers. The baseboard management controller BMC accesses the registers through the command to read the hard disk in-place information, where bit7 to bit0 correspond to HDD7 to HDD0 respectively, '0' represents in-place, and '1' represents not in-place.

[0047] Recording and reading hard disk presence information: The backplane CPLD senses the information of each hard disk slot. When a hard disk is connected to a backplane slot, the backplane CPLD records and saves the hard disk presence signal.

[0048] NVME hard disk health status reading and abnormality judgment: The baseboard management controller BMC sends a command to the NVME hard disk based on the SMBUS interface to read the Status Flags and SMART Warnings status information of the NVME hard disk; the baseboard management controller BMC analyzes and judges the read Status Flags and SMART Warnings status information according to the preset status flag or warning threshold to determine whether the NVME hard disk has an abnormality. In the NVME hard disk health status reading and abnormality judgment, the BMC analyzes and judges the read Status Flags and SMART Warnings status information according to the preset rules to determine whether the NVME hard disk has an abnormality; wherein the preset rules include when the flag indicating the hard disk read and write error in the Status Flags is set, or the SMART Warnings status information indicates that the remaining life of the hard disk is lower than the preset threshold, or the number of hard disk bad blocks exceeds the preset threshold, it is determined that the NVME hard disk has an abnormality.

[0049] When the baseboard management controller (BMC) detects that an NVME hard disk is abnormal, it sends the location information of the abnormal hard disk to the backplane CPLD.

[0050] In the NVME hard disk health status reading and abnormality judgment, the NVMe hard disk provides an I2C slave address 0xD4 for implementing the basic management function of the subsystem; the baseboard management controller BMC sends a specific I2C command to access the health status information of the NVMe hard disk according to the NVMe express management interface document; wherein, the encoding format command code of the command is 0, and the status flag offset is 0x01; after the baseboard management controller BMC sets the parameters according to the command encoding format, it sends the command through the SMBUS interface; after receiving the response data returned by the NVMe hard disk, the response data is parsed to obtain the health status information of the NVMe hard disk.

[0051] The baseboard management controller BMC is connected to the NVME backplane via an I2C switch, with each channel corresponding to a fixed slot on the backplane;

[0052] When the baseboard management controller (BMC) detects an NVME hard disk abnormality, it encapsulates the location information of the abnormal hard disk according to the I2C interface protocol defined between the baseboard management controller (BMC) and the backplane CPLD, and sends a command to write the hard disk fault status to the backplane CPLD through the I2C interface. The encapsulated abnormal hard disk location information is written into one or more 8-byte registers simulated by the CPLD, where bit 7 to bit 0 correspond to HDD7 to HDD0 respectively, and '1' indicates that the hard disk fault light at the corresponding position is on.

[0053] When the baseboard management controller BMC detects an abnormality in an NVME hard disk, the location information of the abnormal hard disk is encapsulated according to the I2C interface protocol defined between the backplane CPLD and the data encapsulation method is to convert the slot number of the abnormal hard disk into binary data according to the corresponding relationship and add it to a specific position of the data frame. The data frame also includes a start identifier, a command identifier, a data length identifier and a check identifier.

[0054] Fault indicator control: After the backplane CPLD receives abnormal hard disk location information from the baseboard management controller (BMC), it controls the fault indicator at the corresponding location to light up based on the recorded hard disk presence information.

[0055] The baseboard management controller (BMC) and the backplane CPLD perform periodic polling detection; when the abnormal hard disk status is restored, the backplane CPLD turns off the fault indicator light at the corresponding position. When the baseboard management controller (BMC) and the backplane CPLD perform periodic polling detection, the baseboard management controller (BMC) captures the hard disk status every 3 seconds; when the baseboard management controller (BMC) detects that the abnormal hard disk status has been restored, it inverts the corresponding status bit and sends a command to the backplane CPLD to refresh the status light display. After receiving the command, the backplane CPLD turns off the fault indicator light at the corresponding position.

[0056] An embodiment of the present invention is a system for lighting up the abnormal status indicator of a backplane NVME hard disk, comprising the following modules:

[0057] Communication connection module: The baseboard management controller BMC is connected to the backplane CPLD through the I2C interface to achieve two-way communication; the baseboard management controller BMC establishes a communication connection with the NVME hard disk based on the SMBUS interface to access the NVME hard disk using the NVM ExpressManagement Interface Command out-of-band management function.

[0058] Hard disk presence information recording and reading module: The backplane CPLD senses the information of each hard disk slot. When a hard disk is connected to a backplane slot, the CPLD records and saves the hard disk presence signal. An I2C interface protocol is defined between the baseboard management controller (BMC) and the CPLD. The BMC sends a command to read the hard disk presence status to the CPLD through the I2C interface according to the protocol. The CPLD simulates registers, and the BMC accesses the registers through this command to read the hard disk presence information.

[0059] NVME hard drive health status reading and abnormality judgment module: The baseboard management controller (BMC) sends commands to the NVME hard drive based on the SMBUS interface to read the NVME hard drive's Status Flags and SMART Warnings status information. The baseboard management controller (BMC) analyzes and judges the read Status Flags and SMART Warnings status information based on preset status flags or warning thresholds to determine whether the NVME hard drive has any abnormalities.

[0060] Specifically include:

[0061] I2C slave address configuration submodule: NVME hard disk pre-configures I2C slave address 0xD4 to implement basic management functions of the subsystem;

[0062] Command generation and sending submodule: The baseboard management controller (BMC) generates a specific I2C command based on the NVMe express management interface document. The command encoding format is as follows: the command code is set to 0 and the status flag offset is set to 0x01. After setting the parameters according to the above command encoding format, the BMC sends the command to the NVMe hard drive through the SMBUS interface.

[0063] Response data receiving and parsing submodule: After the NVME hard disk receives the command sent by the baseboard management controller BMC, it returns the response data; after receiving the response data, the baseboard management controller BMC parses the response data according to the preset parsing rules to obtain the health status information of the NVME hard disk.

[0064] Abnormal hard disk location information sending module: When the baseboard management controller (BMC) detects an abnormal NVME hard disk, it encapsulates the abnormal hard disk location information according to the I2C interface protocol defined between the CPLD and the baseboard management controller (BMC). It then sends a command to write the hard disk fault status to the CPLD through the I2C interface, and writes the encapsulated abnormal hard disk location information into the register simulated by the CPLD. Specifically, it includes:

[0065] Abnormality judgment submodule: The baseboard management controller (BMC) analyzes and judges the read Status Flags and SMART Warnings status information according to preset rules to determine whether the NVME hard disk has an abnormality. The preset rules include determining that the NVME hard disk has an abnormality when the flag indicating a hard disk read or write error in the Status Flags is set, or when the SMART Warnings status information indicates that the remaining life of the hard disk is lower than a preset threshold or the number of hard disk bad blocks exceeds a preset threshold.

[0066] Location information encapsulation and sending submodule: When the baseboard management controller BMC detects an NVME hard disk abnormality, it encapsulates the location information of the abnormal hard disk according to the I2C interface protocol defined between the CPLD and the CPLD, sends a command to write the hard disk fault status to the CPLD through the I2C interface, and writes the encapsulated abnormal hard disk location information into the register simulated by the CPLD.

[0067] Fault indicator light control module: After the CPLD receives the abnormal hard disk location information sent by the baseboard management controller (BMC), it controls the fault indicator light at the corresponding location based on the recorded hard disk presence information. The baseboard management controller (BMC) and CPLD perform periodic polling detection. When the baseboard management controller (BMC) detects that the abnormal hard disk status has recovered, it inverts the corresponding status bit and sends a command to the CPLD to refresh the status light display. After receiving the command, the CPLD turns off the fault indicator light at the corresponding location.

[0068] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention shall be included within the scope of protection of the present invention.

Claims

1. A method for lighting up the abnormal status light of the backplane NVME hard disk, characterized in that: The following steps are involved: Establishing a communication connection: In the server, the baseboard management controller (BMC) is connected to the backplane CPLD through the I2C interface to achieve bidirectional communication. At the same time, the baseboard management controller (BMC) establishes a communication connection with the NVME hard disk based on the SMBUS interface to access the NVME hard disk using the NVMExpress Management Interface Command out-of-band management function. Recording and reading hard disk presence information: The backplane CPLD senses the information of each hard disk slot. When a hard disk is connected to the backplane slot, the backplane CPLD records the hard disk presence signal and saves it. NVME hard drive health status reading and abnormality judgment: The baseboard management controller (BMC) sends commands to the NVME hard drive based on the SMBUS interface to read the NVME hard drive's Status Flags and SMART Warnings status information; The baseboard management controller (BMC) analyzes and determines the read Status Flags and SMART Warnings status information based on the preset status flags or warning thresholds to determine whether the NVME hard drive has any abnormalities. When the baseboard management controller (BMC) detects an NVME hard drive abnormality, it sends the location information of the abnormal hard drive to the backplane CPLD; Fault indicator light control: After the backplane CPLD receives the abnormal hard disk location information sent by the baseboard management controller (BMC), it controls the fault indicator light at the corresponding location based on the recorded hard disk presence information. The baseboard management controller (BMC) and the backplane CPLD perform periodic polling detection. When the abnormal hard disk status recovers, the backplane CPLD turns off the fault indicator at the corresponding position.

2. A method for lighting up the abnormal status light of the backplane NVME hard disk according to claim 1, characterized in that: An I2C interface protocol is defined between the baseboard management controller BMC and the backplane CPLD. The baseboard management controller BMC sends a command to read the hard disk presence status to the backplane CPLD through the I2C interface in accordance with the protocol. The backplane CPLD simulates one or more groups of 8-byte registers. The baseboard management controller BMC accesses the registers through the command to read the hard disk presence information, where bit 7 to bit 0 correspond to HDD7 to HDD0 respectively, '0' represents presence, and '1' represents absence.

3. A method for lighting up the abnormal status light of the backplane NVME hard disk according to claim 1, characterized in that: In the NVME hard disk health status reading and abnormality judgment, the BMC analyzes and judges the read Status Flags and SMART Warnings status information according to preset rules to determine whether the NVME hard disk has an abnormality; wherein the preset rules include determining that the NVME hard disk has an abnormality when a flag indicating a hard disk read or write error in Status Flags is set, or when the SMART Warnings status information indicates that the remaining life of the hard disk is lower than a preset threshold, or the number of hard disk bad blocks exceeds a preset threshold.

4. A method for lighting up the abnormal status light of the backplane NVME hard disk according to claim 1, characterized in that: The baseboard management controller BMC is connected to the NVME backplane via an I2C switch, with each channel corresponding to a fixed slot on the backplane; When the baseboard management controller (BMC) detects an NVME hard drive abnormality, it encapsulates the location information of the abnormal hard drive according to the I2C interface protocol defined between the baseboard management controller (BMC) and the backplane CPLD, and sends a command to write the hard drive fault status to the backplane CPLD through the I2C interface. The encapsulated abnormal hard drive location information is written into one or more 8-byte registers simulated by the CPLD, where bit 7 to bit 0 correspond to HDD7 to HDD0 respectively, and '1' indicates that the hard drive fault indicator at the corresponding position is on.

5. A method for lighting up the abnormal status light of the backplane NVME hard disk according to claim 4, characterized in that: When the baseboard management controller BMC detects an abnormality in an NVME hard disk, the location information of the abnormal hard disk is encapsulated according to the I2C interface protocol defined between the backplane CPLD and the data encapsulation method is to convert the slot number of the abnormal hard disk into binary data according to the corresponding relationship and add it to a specific position of the data frame. The data frame also includes a start identifier, a command identifier, a data length identifier and a check identifier.

6. A method for lighting up the abnormal status light of the backplane NVME hard disk according to claim 1, characterized in that: When the baseboard management controller BMC and the backplane CPLD perform periodic polling detection, the baseboard management controller BMC captures the hard disk status every 3 seconds; when the baseboard management controller BMC detects that the abnormal hard disk status has recovered, the corresponding status bit is inverted and a command is sent to the backplane CPLD to refresh the status light display. After receiving the command, the backplane CPLD turns off the fault indicator light at the corresponding position.

7. A method for lighting up the abnormal status light of the backplane NVME hard disk according to claim 1, characterized in that: In the NVME hard disk health status reading and abnormality judgment, the NVMe hard disk provides an I2C slave address 0xD4 for implementing the basic management function of the subsystem; the baseboard management controller BMC sends a specific I2C command to access the health status information of the NVMe hard disk according to the NVMe express management interface document; wherein, the encoding format command code of the command is 0, and the status flag offset is 0x01; after the baseboard management controller BMC sets the parameters according to the command encoding format, it sends the command through the SMBUS interface; after receiving the response data returned by the NVMe hard disk, the response data is parsed to obtain the health status information of the NVMe hard disk.

8. A system for lighting up the abnormal status light of the backplane NVME hard disk, characterized in that: Includes the following modules: Communication connection module: The baseboard management controller BMC is connected to the backplane CPLD through the I2C interface to achieve two-way communication; the baseboard management controller BMC establishes a communication connection with the NVME hard disk based on the SMBUS interface to access the NVME hard disk using the NVM Express Management Interface Command out-of-band management function; Hard disk presence information recording and reading module: The backplane CPLD senses the information of each hard disk slot. When a hard disk is connected to the backplane slot, the CPLD records the hard disk presence signal and saves it; An I2C interface protocol is defined between the baseboard management controller (BMC) and the CPLD. The BMC sends a command to the CPLD through the I2C interface to read the hard disk presence status. The CPLD simulates registers, and the BMC accesses the registers through the command to read the hard disk presence information. NVME hard drive health status reading and abnormality judgment module: The baseboard management controller (BMC) sends commands to the NVME hard drive based on the SMBUS interface to read the NVME hard drive's Status Flags and SMART Warnings status information; The baseboard management controller (BMC) analyzes and determines the read Status Flags and SMART Warnings status information based on the preset status flags or warning thresholds to determine whether the NVME hard drive has any abnormalities. Abnormal hard disk location information sending module: When the baseboard management controller (BMC) detects an NVME hard disk abnormality, it encapsulates the abnormal hard disk location information according to the I2C interface protocol defined between the CPLD and the baseboard management controller (BMC). It then sends a command to write the hard disk fault status to the CPLD through the I2C interface, and writes the encapsulated abnormal hard disk location information into the register simulated by the CPLD. Fault indicator control module: After receiving the abnormal hard disk location information sent by the baseboard management controller (BMC), the CPLD controls the fault indicator at the corresponding location to light up according to the recorded hard disk presence information; The baseboard management controller BMC and CPLD perform periodic polling detection; When the baseboard management controller BMC detects that the abnormal hard disk status has recovered, the corresponding status bit is inverted and a command is sent to the CPLD to refresh the status light display. After receiving the command, the CPLD turns off the fault indicator light at the corresponding position.

9. A system for lighting up the abnormal status light of the backplane NVME hard disk according to claim 8, characterized in that: The NVME hard disk health status reading and abnormality judgment module specifically includes: I2C slave address configuration submodule: NVME hard disk pre-configures I2C slave address 0xD4 to implement basic management functions of the subsystem; Command generation and sending submodule: The baseboard management controller (BMC) generates a specific I2C command based on the NVMe express management interface document. The command encoding format is as follows: the command code is set to 0 and the status flag offset is set to 0x01. After setting the parameters according to the above command encoding format, the BMC sends the command to the NVMe hard drive through the SMBUS interface. Response data receiving and parsing submodule: After the NVME hard disk receives the command sent by the baseboard management controller BMC, it returns the response data; after receiving the response data, the baseboard management controller BMC parses the response data according to the preset parsing rules to obtain the health status information of the NVME hard disk.

10. A system for lighting up the abnormal status light of the backplane NVME hard disk according to claim 8, characterized in that: The abnormal hard disk location information sending module specifically includes: Abnormality judgment submodule: The baseboard management controller (BMC) analyzes and judges the read Status Flags and SMART Warnings status information according to preset rules to determine whether the NVME hard disk has an abnormality. The preset rules include determining that the NVME hard disk has an abnormality when the flag indicating a hard disk read or write error in the Status Flags is set, or when the SMART Warnings status information indicates that the remaining life of the hard disk is lower than a preset threshold or the number of hard disk bad blocks exceeds a preset threshold. Location information encapsulation and sending submodule: When the baseboard management controller BMC detects an NVME hard disk abnormality, it encapsulates the location information of the abnormal hard disk according to the I2C interface protocol defined between the CPLD and the CPLD, sends a command to write the hard disk fault status to the CPLD through the I2C interface, and writes the encapsulated abnormal hard disk location information into the register simulated by the CPLD.