Hard disk backboard indicating lamp lighting test method and server

Through the coordinated work of the RAID controller and BMC, combined with the detector to automatically collect light information information and use image recognition technology to compare, solve the problem of low test efficiency and insufficient accuracy of the hard disk backboard slot indicator light, and achieve efficiency and accuracy. Detection.

CN119359628APending Publication Date: 2025-01-24XFUSION DIGITAL TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411322626.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-20
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

The lighting test method of existing hard disk backplane slot indicator lights is inefficient and inaccurate, especially in large-scale server environments, which is difficult to achieve fast and accurate detection.

Method used

Through the coordinated work of the RAID controller and BMC, the automated spotlight test of the hard disk backboard slot indicator light is realized, the status information of the detector is automatically taken or video light, and the feature value of the feature value of the image or video recognition technology is used.

Benefits of technology

It improves the efficiency and accuracy of hard disk backplane indicator status detection, reduces manual intervention, and ensures the reliability and consistency of test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119359628A_ABST
    Figure CN119359628A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a lighting test method for indicating lamps on a hard disk backboard, and the method is applied to a server, and comprises the steps that an RAID controller obtains a lighting instruction, the lighting instruction is used for instructing the RAID controller of the server to execute lighting operation on lamps on one or more slot positions in the hard disk backboard, and the lighting instruction is used for instructing the RAID controller of the server to execute lighting operation on the lamps on one or more slot positions in the hard disk backboard; the lighting operation is used for controlling the state of the lamp on the slot position; the RAID controller responds to the lighting instruction, sends a lighting command to the hard disk backboard and sends an information acquisition command to the BMC; the BMC responds to the information obtaining command and obtains the lamp state information from a register corresponding to the slot position, and the register is used for storing the state information of the lamp on the slot position; and the BMC sends the lamp state information to the test equipment. Thus, through cooperative work of the RAID controller and the BMC, the lighting test of the indicator lamp is automatically executed, manual intervention is reduced, and the test efficiency and accuracy are improved. And whether a problem exists or not can be quickly judged by comparing the lamp state information in the register with an expected value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of hard disk backplane testing, and in particular to a hard disk backplane indicator light lighting testing method and a server. Background Art

[0002] With the rapid development of information technology, the demand for data storage and processing is growing, especially in modern data centers and enterprise server environments. Hard disk drives (HDDs) and solid-state drives (SSDs) are core components of data storage and play an important role in servers and data centers. In order to ensure the security and reliability of data, the performance and status monitoring of hard disks has become particularly important. In these systems, the RAID controller is responsible for managing the logical organization of hard disks and the redundant protection of data, while the slot indicators on the hard disk backplane provide intuitive feedback on the hard disk status. However, as the complexity of server systems increases, it becomes particularly important to ensure that the slot indicators on the hard disk backplane (such as the activity indicator, fault indicator, and power indicator) can correctly display the working status of the hard disk.

[0003] The traditional method of detecting the status of the hard disk backplane slot indicator light usually relies on manual observation, that is, the technician judges the status of the hard disk by visually judging the color and flashing frequency of the slot indicator light of each slot. This method is not only inefficient, but also prone to human errors. Especially in large-scale server environments, it is time-consuming and easy to miss the slot indicator light status of multiple hard disk slots one by one. This limits the efficiency of server maintenance and troubleshooting to a certain extent.

[0004] In order to solve the problems of low efficiency and insufficient accuracy in the existing hard disk backplane slot indicator light lighting test method, it is crucial to implement an accurate and efficient test process for the hard disk backplane slot indicator light status. Summary of the invention

[0005] The embodiment of the present application provides a hard disk backplane indicator light testing method and a server, which realizes the automatic detection of the hard disk backplane indicator light status and improves the detection efficiency.

[0006] In a first aspect, an embodiment of the present application provides a method for testing a hard disk backplane indicator light, which is applied to a server, and the method comprises: a RAID controller obtains a lighting instruction, the lighting instruction is used to instruct the RAID controller of the server to perform a lighting operation on the lights on one or more slots in the hard disk backplane, and the lighting operation is used to indicate that the state of the lights on the slots is controlled; the RAID controller responds to the lighting instruction, sends a lighting command to the hard disk backplane and sends an information acquisition command to the BMC; the BMC responds to the information acquisition command, and obtains the light status information from the register corresponding to the slot, wherein the register is used to store the status information of the lights on the slots; the BMC sends the light status information to the test device.

[0007] In the above example, the RAID controller and BMC work together to automatically perform the lighting test of the slot indicators on the hard disk backplane, reducing manual intervention and improving test efficiency and accuracy.

[0008] In one possible implementation, the RAID controller responds to a lighting instruction and sends a light image acquisition command to the BMC. The BMC responds to the light image acquisition command and acquires light image information of the lights on one or more slots in the hard disk backplane after the lighting operation is performed from the detector, wherein the detector is used to take photos or videos of the lights on one or more slots in the hard disk backplane to generate light image information after the lighting operation is performed; the BMC sends the acquired light image information to the test device.

[0009] In the above example, the BMC controls the detector to automatically take photos or record videos. This eliminates the need for manual photography or monitoring, realizes an automated image acquisition process, and greatly improves test efficiency. After the detector performs the lighting operation, it takes photos or records videos of the specified slot, and can accurately capture the lighting status, color, and flashing frequency of the indicator light. This ensures that accurate and high-quality image information can be obtained during the test for subsequent analysis and verification.

[0010] In one possible implementation, the detector obtains light image information of lights on one or more slots in the server hard disk backplane after a lighting operation is performed in response to a control instruction sent by a test device, and the detector sends the obtained light image information to the test device.

[0011] In the above example, the probe is in the test equipment, and the data transmission speed is fast, reducing potential delays and communication errors. It also ensures the stability of the server during the test, without introducing additional load or potential interference due to the operation of the probe.

[0012] In a possible implementation, after the BMC sends the acquired light image information to the test device, the method further includes: the test device uses image or video recognition technology to extract feature values ​​from the light image information, the feature values ​​including the silk screen number of one or more slots in the hard disk backplane, the light color and the flashing frequency; the extracted feature values ​​are compared with preset values ​​to generate a light image information test result.

[0013] In the above example, by using image or video recognition technology, key feature values ​​can be accurately extracted from the lamp image information, such as the silk screen number of the slot, the color of the lamp, and the flashing frequency. This automated analysis can reduce human errors and ensure that the extracted image information is consistent with the actual indicator light status, thereby improving the accuracy of the test.

[0014] In one possible implementation, the BMC responds to an information acquisition command, reads register values ​​of the slot to be tested and all slots from the hard disk backplane, and extracts corresponding light status information; the test device determines whether the light status of the test slot meets the expected value based on the acquired register value of the test slot; the test device determines whether the light status of the remaining slots has changed, and whether it is consistent with the expected value, based on the acquired register values ​​of the remaining slots; or, the detector responds to a control instruction sent by the test device, obtains light image information of the light on the test slot in the hard disk backplane after the lighting operation is performed, and light image information of the lights on the remaining slots after the lighting operation is performed; the test device determines whether the light image information of the test slot meets the expected value based on the acquired light image information of the test slot; the test device determines whether the light image information of the remaining slots has changed, and whether it is consistent with the expected value, based on the acquired light image information of the remaining slots.

[0015] In the above example, the test equipment detects the target test slot and other slots at the same time, ensuring that the status of the target test slot meets the expected value while monitoring whether the status of other slots has changed or is abnormal. By fully reading the register values ​​or light image information of all slots, it is possible to effectively avoid missing potential problems in other slots during the test process. By analyzing the register values ​​or light image information of all slots, the test equipment can detect any unexpected changes, which helps preventive maintenance and prevent potential hardware failures.

[0016] In one possible implementation, when the light status information test result is correct and the light image information test result is incorrect, it is determined that a hardware failure occurred in the server during the test; when the light status information test result is incorrect and the light image information test result is correct, it is determined that a software failure occurred in the server during the test; when the light status information test result is incorrect and the light image information test result is incorrect, it is determined that a hardware or software failure occurred in the server during the test.

[0017] In the above example, by comparing the test results of the lamp status information and the lamp image information at the same time, hardware and software faults can be quickly distinguished. This provides a more detailed basis for fault diagnosis. The source of the problem can be determined more accurately through the combination of dual test results.

[0018] In one possible implementation, the information acquisition command includes: a RAID controller ID number, used to identify the RAID controller that sends the information acquisition command; a RAID controller model, used to provide model information of the RAID controller; a backplane ID number, used to identify the hard disk backplane in the server; a backplane slot number, used to specify the hard disk backplane slot that needs to read the light status information; and a register address, used to indicate the register address of the storage light status information accessed by the BMC.

[0019] In the above example, through the newly added information acquisition command, the RAID controller can notify the BMC to read the register value of the specified slot in the hard disk backplane. The new command simplifies the interaction logic between the RAID controller and the BMC. Through clear fields (such as RAID controller ID, backplane ID number, slot number and register address), the BMC can accurately read the status information of the target slot without complex multi-step operations. This makes the hard disk backplane test process more efficient and accurate.

[0020] In one possible implementation, the light image acquisition command includes: a RAID controller ID number, used to identify the RAID controller that sends the information acquisition command; a RAID controller model, used to provide model information of the RAID controller; a backplane ID number, used to identify the hard disk backplane in the server; a backplane slot number, used to specify the hard disk backplane slot for obtaining the light image information; and a detector ID number, used to identify the detector used to capture the image.

[0021] In the above example, through the newly added image acquisition command, the RAID controller can directly notify the BMC to control the detector to obtain the image information of the light in the specified slot, thereby realizing the automated image capture process. Without manual operation, the test equipment can automatically complete the entire process from lighting to image information capture through this command, greatly improving the automation and efficiency of the test.

[0022] In the second aspect, an embodiment of the present application provides a method for testing the lighting of a hard disk backplane indicator light, which is applied to a test device, and the method includes: the test device sends a lighting instruction to a RAID controller in a server, and the lighting instruction is used to instruct the RAID controller to perform a lighting operation on the lights on one or more slots in the hard disk backplane; the lighting operation is used to indicate the control of the lights on the slots; the test device obtains the light status information in the register corresponding to the slot through the BMC in the server, and the register is used to store the status information of the lights on the slots; the test device compares the light status information with a preset value to generate a light status information test result.

[0023] In a third aspect, an embodiment of the present application provides a server, comprising: a RAID controller, used to obtain a lighting instruction, and in response to the lighting instruction, send a lighting command to the hard disk backplane and an information acquisition command to the BMC; the lighting instruction is used to instruct the RAID controller of the server to perform a lighting operation on the lights on one or more slots in the hard disk backplane, and the lighting operation is used to indicate the control of the status of the lights on the slots; the BMC is used to respond to the information acquisition command, obtain the light status information from the register corresponding to the slot, and send the light status information to the test equipment, wherein the register is used to store the status information of the lights on the slots.

[0024] In a fourth aspect, an embodiment of the present application provides a test system, comprising: a test device, the test device comprising a processor and a memory; wherein the memory is used to store programs; the processor is used to execute the programs stored in the memory, and when the programs stored in the memory are executed, the method described in the second aspect is executed; a server, the server comprising a processor and a memory, wherein the memory is used to store programs; the processor is used to execute the method described in the first aspect.

[0025] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1A An application scenario provided by an embodiment of the present application is shown;

[0027] Figure 1B Another application scenario provided by the embodiment of the present application is shown;

[0028] Figure 1C Another application scenario provided by the embodiment of the present application is shown;

[0029] Figure 2 A schematic diagram of a process of lighting a hard disk backplane indicator light provided in an embodiment of the present application is shown;

[0030] Figure 3A flowchart of a method for testing a hard disk backplane indicator light provided by an embodiment of the present application is shown;

[0031] Figure 4 This is a flowchart of another method for testing the lighting of a hard disk backplane indicator light provided by an embodiment of the present application;

[0032] Figure 5 A schematic diagram of a process flow of another hard disk backplane indicator light testing method provided in an embodiment of the present application is shown;

[0033] Figure 6 A schematic diagram of the interaction flow between the test equipment and RAID control, BMC, CPLD and detector provided in the embodiment of the present application;

[0034] Figure 7 A schematic diagram of the lighting operation of the indicator light corresponding to the target slot provided in the embodiment of the present application and the integrity verification of the remaining slots;

[0035] Figure 8 A schematic diagram of a flow chart of an automated loop traversal test provided in an embodiment of the present application;

[0036] Fig. 9 A schematic diagram of the structure of a multi-hard disk backplane and a RAID controller provided in an embodiment of the present application is shown;

[0037] Fig.10 A structural schematic diagram of a centralized testing system provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0038] The term "and / or" in this article is a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The symbol " / " in this article indicates that the associated objects are in an or relationship, for example, A / B means A or B.

[0039] The terms "first" and "second" in the specification and claims herein are used to distinguish different objects rather than to describe a specific order of the objects. For example, a first response message and a second response message are used to distinguish different response messages rather than to describe a specific order of the response messages.

[0040] In the description of this document, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "circumferential" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation.

[0041] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0042] To facilitate understanding of the technical solutions of the embodiments of the present application, the terms involved in this document are explained below.

[0043] The baseboard management controller (Baseboard Management Controller, referred to as BMC) is an out-of-band management system for the server, mainly used to manage server hardware, including monitoring the temperature and voltage of hardware such as power supplies and fans, and processing the deployment and installation of system software, firmware upgrades, etc. It should be noted that different manufacturers have different names for out-of-band management controllers; the names of out-of-band management controllers usually include baseboard management controller (baseboard management controller, BMC), integrated remote management port (Integrated Lights-Out, iLO), remote control card (Integrated Dell Remote Access, IDRAC), hardware device management (HDM), integrated management module (IMM), etc. Whether it is called iLO, iDRAC, HDM, IMM, it can be understood as the BMC in the embodiments of the present application.

[0044] Management Component Transport Protocol (MCTP) is a standard communication protocol used to transmit management data between different management components of a server. It can support various physical transport layers (such as I2C, PCIe, SMBus, etc.) and provides a flexible and extensible framework to support different types of management commands and data.

[0045] Complex Programmable Logic Device (CPLD) is a digital integrated circuit that users can construct logic functions according to their needs. It uses integrated development software platform, schematic diagram, hardware description language and other methods to generate corresponding target files, and transfers the code to the target chip to realize the designed digital system.

[0046] Hard disk backplane is a circuit board used to connect computing devices to more hard disks. It is generally used in the server field and can also be used to build personal storage systems. The hard disk backplane is directly connected to the motherboard or various adapter cards through cables. The hard disks that can be connected to each backplane are also different. Generally, the backplane is classified according to the type of data interface. Common classifications include serial advanced technology attachment (SATA) backplane, 6G backplane (such as SFF-8087), and 12G (such as SFF-8643) backplane.

[0047] Motherboard: One of the main components of a server. The motherboard generally houses the power supply, central processing unit, baseboard management controller, internal storage, memory controller, RAID controller, and PCI E interface, as well as connectors reserved for expansion cards.

[0048] RAID controller: A dedicated expansion card used to manage multiple hard drives to achieve data storage and protection functions, usually installed on the PCI E slot of the motherboard through a slot.

[0049] During the lighting test of the slot indicator lights on the hard disk backplane, check whether the light status of each hard disk slot corresponds to the silkscreen number of its slot. Each hard disk slot usually has a silkscreen number on the hard disk backplane to identify the slot. When a hard disk is inserted into a specific slot, the light next to the slot should display a specific color or flashing pattern to indicate the status of the hard disk (for example, normal operation, failure, data transmission, etc.). For example, if hard disk 1 is inserted into slot 1, the LED light next to slot 1 should correctly display the status of hard disk 1. When testing, by simulating or actually inserting a hard disk into a specific slot, and observing whether the corresponding light is on and displays the correct color or flashing frequency, if the light status (color, flashing frequency) is consistent with the expected status of the silkscreen number of the slot on the hard disk backplane, the test result is considered correct, indicating that the lighting test has passed. Whether in the internal version test, compatibility test phase of the product, or in the production line delivery test phase, it is necessary to perform a lighting function test on the lights on the slots of the hard disk backplane.

[0050] The embodiment of the present application provides a method for testing the lighting of the indicator lights on the hard disk backplane, which is applied to the server. The RAID controller obtains a lighting instruction, and the lighting instruction is used to instruct the RAID controller of the server to perform a lighting operation on the lights on one or more slots in the hard disk backplane, and the lighting operation is used to indicate the control of the lights on the slots; the RAID controller responds to the lighting instruction, sends a lighting command to the hard disk backplane and sends an information acquisition command to the BMC; the BMC responds to the information acquisition command, and obtains the light status information from the register corresponding to the slot, wherein the register is used to store the status information of the light on the slot; the BMC sends the light status information to the test equipment. Through the collaborative work of the RAID controller and the BMC, the lighting test of the slot indicator lights on the hard disk backplane is automatically performed, which reduces manual intervention and improves the test efficiency and accuracy. By comparing the light status information in the register with the expected value, it can be quickly determined whether there is a problem. If there is an inconsistency, the test equipment can accurately locate the slot where the problem is.

[0051] To facilitate understanding of the technical solution of the embodiment of the present application, an application scenario of the embodiment of the present application is introduced below.

[0052] Figure 1AAn application scenario provided by an embodiment of the present application is shown. As shown in Figure 1, a server 100 and a test device 200 to be tested are exemplarily shown, and the server 100 includes a RAID controller 110, a hard disk backplane 120, a BMC 130, and a slot 140, a controller 121 and several registers on the controller 121 arranged on the hard disk backplane 120. The test device 200 includes a processor (such as a CPU) and a detector for sending and receiving instructions. The processor of the test device 200 can communicate with the RAID controller, BMC and detector via a wired or wireless connection, such as Ethernet, Wi-Fi, Bluetooth and other network technologies.

[0053] The processor of the test device 200 sends a light-on instruction to the RAID controller 110. After the light-on instruction is executed, the RAID controller 110 sends a light-on command to the hard disk backplane 120 and sends an information acquisition command to the BMC 130. In response to the information acquisition command, the BMC 130 acquires the light status information from the registers corresponding to one or more slots 140. The BMC 130 sends the light status information to the test device 200.

[0054] After the processor of the test device 200 sends a light-on instruction to the RAID controller 110, the test device 200 may also control the detector to take a photo or record a video of the lights on one or more slots in the hard disk backplane to generate light image information.

[0055] Afterwards, the test device 200 uses image or video recognition technology to extract feature values ​​from the light image information, the feature values ​​including the silk screen number of one or more slots in the hard disk backplane, the light color and the flashing frequency; the extracted feature values ​​are compared with the preset values ​​to generate the light image information test results. It should be noted that the test device 200 can provide a graphical user interface (GUI) or a command line interface (CLI) to allow operators to monitor the test process, view the test results, and perform manual intervention when necessary. The embodiment of the present application does not limit the specific implementation of the test device 200, and a variety of different hardware and software configurations can be used to meet the test requirements. The test device 200 can be implemented on various computing devices, including but not limited to personal computers, workstations, servers or embedded systems. The test device 200 can run on a variety of operating systems, such as Windows, Linux, macOS or other dedicated operating systems. The software of the test device 200 can be implemented using a stand-alone application, a client-server model or a cloud-based service to adapt to different test scales and requirements. The test device 200 can be compatible with different models of RAID controllers, BMCs and detectors (cameras) to achieve wide applicability. The detector can be a device used to capture visual data during the test process, and can be integrated into the system through wired or wireless connection, including but not limited to a camera, video camera or other image recording device. The main function of the detector is to take a photo or video of the lamp on at least one slot in the hard disk backplane after the lighting operation is performed to generate lamp image information for subsequent analysis and evaluation. The selection and configuration of the detector depends on the specific needs of the test, including the required image quality, monitoring range, data processing capabilities, etc. It should be noted that the lamp image information is not limited to a single-frame static image, but can also include video. Video is composed of a series of continuous image frames, so the dynamic information of the lamp, such as the flickering frequency, can be extracted by analyzing multiple frames of images. Video is composed of a series of frames, and by analyzing these frames, the on and off state of the lamp can be detected. For example, when the lamp is on in a certain frame and off in the next frame, it indicates that a light-off cycle has occurred. By recording the number of frames for each change in the on and off state, and combining it with the frame rate of the video (how many frames per second), the flickering frequency of the lamp can be calculated. For example, if each on-off change occurs within 10 frames and the video frame rate is 30 frames per second, it can be concluded that the flashing frequency of the light is 3 times per second. The flashing frequency is compared with the preset frequency.

[0056] Specifically, the RAID controller 110 receives the lighting instruction sent by the processor in the test device 200 in the upstream. It is connected to the hard disk backplane 120 and the slot 140 on the hard disk backplane 120 for communication in the downstream. The slot 140 is connected to the hard disk, and the hard disk can exist in the form of a RAID group (Virtua l Drive, referred to as VD) or a single disk JBOD. The hard disk backplane 120 also includes a controller 121, which is responsible for controlling the power supply timing and light status of the hard disk backplane 120 and each slot 140 thereon. In one implementation, the controller 121 is, for example, a CPLD. It should be noted that the controller 121 is not limited to a specific type of programmable logic device. It can also be an FPGA (Field-Programmab le Gate Array) or other similar programmable logic devices. The light on each slot 140 can be a light emitting diode (Light Emitting Diode, referred to as LED). For the convenience of description, LED is used as an example for description below, but the scope of application of the embodiment of the present application is not limited to LED, but also includes other types of lighting devices.

[0057] The RAID controller 110 can communicate with the controller 121 on the hard disk backplane 120 to control the status of the light of each slot. These states include Locate, Fault, Present, etc. Each state is represented by a different light color and flashing frequency.

[0058] The hard disk backplane 120 is provided with a plurality of slots for fixing and connecting hard disks. Each slot 140 is equipped with necessary interfaces and signal transmission lines so that the hard disk can communicate with the RAID controller 110. In addition, each slot is equipped with a light, which is controlled by the controller 121. The controller 121 sets the color and flashing frequency of the corresponding slot light according to the command sent by the RAID controller 110 to display different states of the hard disk. For example, a light corresponding to a slot displays green to indicate a normal operating state, while a red light that flashes rapidly may indicate that the hard disk is faulty.

[0059] Each slot on the hard disk backplane has a silkscreen number, which is an identification number or symbol printed on a circuit board or hard disk backplane that uniquely identifies the installation location of each hard disk. During the test, the detector captures these silkscreen numbers and records them together with the color and flashing frequency of the light. In this way, the processor in the test device 200 can accurately associate the status of each hard disk with its physical location when analyzing the pictures or videos taken or recorded by the detector. Usually, these identifications may appear on the hard disk backplane in the form of numbers, letters, or a combination thereof.

[0060] The register in the server 100 stores and transmits information related to the light status of each slot on the hard disk backplane. For example, the register is a serial general purpose input / output (SGPIO) register. In addition, other types of registers can also be used to store and transmit such information, such as a general purpose input / output (GPIO) register, a system management bus (SMBus) register, etc. The SGPIO register is only used as an example. The following is an example of the SGPIO register. The controller 121 receives a command from the RAID controller 110 through the SGPIO signal, for example, and adjusts the light status of each slot to reflect the different states of the hard disk. The controller 121 can also communicate with the BMC 130 through the I2C signal. The BMC 130 reads the register values ​​in the controller 121 through the I2C channel, and these register values ​​control the color and flashing frequency of the lights on the hard disk backplane slot. In the embodiment of the present application, the communication method between the controller 121 and the RAID controller is not limited to a specific protocol or interface. A variety of communication methods can be used to achieve this, such as serial general purpose input / output (SGPIO), inter-integrated circuit communication (I2C), serial peripheral interface (SPI), general purpose input / output (GPIO), etc.

[0061] The register stores information about the hard disk status. However, the register value may be wrong during system operation, which is usually caused by improper instruction transmission or register setting at the software level. For example, when the RAID controller sends a control command, the light status value recorded in the register may not match the expected value due to code logic problems or interference in data transmission. This error is often difficult to be directly perceived in normal operation. Therefore, by reading the actual value recorded in the register and comparing it with the expected value, software errors can be effectively detected and located, thereby ensuring the reliability and stability of the system.

[0062] The BMC 130 is connected to the RAID controller 110 in communication, for example, via an I2C channel or a Management Component Transport Protocol (MCTP) channel, so that the BMC 130 executes a command issued by the RAID controller 110 to read the value of the SGPIO register in the hard disk backplane.

[0063] In addition to reading the value of the register corresponding to the target slot to obtain the lamp status information, the embodiment of the present application can also use the detector to obtain the lamp image information to quickly identify the problem. Through this double verification method, the system can more quickly determine the source of the problem and take corresponding solutions.

[0064] Specifically, during the test process, the processor in the test device sends a command to the RAID controller 110 to perform a predetermined operation of lighting, extinguishing, or changing the color and flashing frequency of at least one light corresponding to the target slot in the hard disk backplane. The RAID controller 110 transmits the command to the controller of the hard disk backplane 120 through the SGPIO signal, and the controller controls the light state of the corresponding slot. The BMC 130 is connected to the RAID controller 110 in communication, for example, through an I2C channel or an MCTP channel. The RAID controller 110 notifies the BMC 130 to read the value of the register of the corresponding slot through the controller in the hard disk backplane 120 to verify whether the command issued by the RAID controller 110 is correctly written into the corresponding register. After receiving the request from the RAID controller 110, the BMC 130 reads the value of the register. At the same time, the processor in the test device triggers the detector to operate, and controls the detector to take a photo or record a video of the light state of the target slot. The BMC returns the value of the light status corresponding to the target slot read from the register to the processor in the test device for processing; the detector also returns the picture or video with slot information and light status information obtained by taking photos or recording videos to the processor in the test device, and the processor in the test device extracts the characteristic value of the light status from the picture or video and compares it with the preset expected value; and the processor in the test device determines whether the light status of each slot on the hard disk backplane meets expectations by reading whether the light status information corresponding to the target slot in the register is consistent with the expected value. The test results are recorded in the test log together with information such as the silk screen number of the slot, light color and flashing frequency. This automated testing method not only improves the efficiency and accuracy of the test, but also greatly facilitates server maintenance and troubleshooting through accurate slot identification and status display.

[0065] Figure 1B Another application scenario provided by the embodiment of the present application is shown. Figure 1B As shown, a server 100 and a test device 200 are shown as examples. Figure 1A The difference is that the detector is located in the server 100. For example, it is located in the frame or hard disk backplane of the server 100. The BMC and the detector are connected, for example, through the Intelligent Platform Management Interface (IPMI). After the light-on instruction is executed, the RAID controller notifies the BMC to control the detector to capture or record the light status of the specified slot. Subsequently, the BMC returns the light image information with the slot information and the light status information to the processor of the test device.

[0066] Figure 1C Another application scenario provided by the embodiment of the present application is shown. Figure 1C As shown, a server 100 is shown as an example. Figure 1A The difference is that the test device is the server 100, and the processor is connected to the RAID controller 110 to start the entire hard disk backplane lighting test process. By communicating with the RAID controller 110, the processor sends a lighting instruction, and instructs the BMC control detector to capture or record the light status through the RAID controller 110. The detector is located in the test device. After the test is completed, the processor receives the test results and makes a judgment to determine whether the test is successful. It should be noted that after the light-on command is executed, the processor can also send a command to the RAID controller 110 at the same time, instructing the RAID controller 110 to notify the BMC 130 to read the value of the register in the hard disk backplane 120, and the read register value is sent to the processor for comparison with the preset value.

[0067] The following is an introduction to the hard disk backplane lighting test process in the embodiment of the present application in conjunction with the accompanying drawings. Figure 2 FIG. 1 is a flow chart of a hard disk backplane indicator light-on test provided by an embodiment of the present application. Figure 2 As shown,

[0068] The embodiments of the present application relate to a processor, a RAID controller FW module, a lighting module, a BMC and a detector of a testing device.

[0069] Step 1: The test device processor sends a light-on instruction to the RAID controller FW module.

[0070] The processor of the test device is used to initiate the test process and judge the test results. The module can be located in the device to be tested (such as the server 100 in Figure 1), or in other devices, such as the test device, through remote connection to the server, remote connection methods such as SSH (Secure Shell), Remote Desktop Protocol (RDP), etc. These remote connection methods allow the processor of the test device to monitor the status of the device to be tested in different environments, including sending light-on instructions, reading device status, and performing other test operations. The module includes the following functions: sending a light-on instruction to the RAID controller, specifying the target slot light (such as Locate LED, Faul lt LED, Present LED) to perform corresponding operations, such as lighting, extinguishing, or adjusting the flashing frequency.

[0071] When the detection device is located in an external device (such as a test device), after the lighting instruction is executed, the processor of the test device controls the detector to take photos or videos of the slot light status to obtain light image information. The light image information is received by the processor of the test device and used to record the test results and judge whether the slot light image information meets expectations.

[0072] Step 2: After receiving the lighting command, the RAID controller FW module sends the lighting command to the lighting module of the hard disk backplane.

[0073] The RAID controller FW (Fireware) module is a firmware module running on the RAID controller. It manages the status of the lights on the hard disk backplane slots and communicates with the BMC, including controlling the status of the lights through SGPIO signals to indicate the current working status or fault condition of the hard disk.

[0074] Step 3: The RAID controller FW module sends an information acquisition command and a light image acquisition command to the BMC.

[0075] The RAID controller uses the developed LIB library to interact with the BMC. The LIB library is usually developed and defined by each RAID controller manufacturer, and it contains APIs for performing operations such as query, setting, creation, and deletion. Because the compatibility of different RAID controllers in the system varies. Usually, the RAID controller has some common functions pre-configured when it leaves the factory, which is convenient for normal operation in various environments. However, in the actual testing process, the system requires more coordinated control and monitoring functions. In order to improve the compatibility, integrity, automation and accuracy of the test, the embodiment of the present application expands the RAID controller FW module, and adds an API interface in the LIB library to obtain information acquisition commands and light image acquisition command APIs to enhance the interaction between the RAID controller and the BMC. The newly added information acquisition commands and light image acquisition commands can be embedded in the LIB library for the interaction between the RAID controller and the BMC.

[0076] The information acquisition command enables the RAID controller to send a command to notify the BMC to read the value of the hard disk backplane register by extending the FW module. The light image acquisition command enables the RAID controller to send a command to notify the BMC to control the detector to obtain light image information by extending the FW module. Through the information acquisition command and the light image acquisition command, the RAID controller can not only control the lighting operation of the lights on the hard disk backplane, but also interact with the BMC more flexibly to achieve richer and more automated testing functions. Through the newly added command API, efficient communication with the BMC is achieved, ensuring the accurate reading of the hard disk backplane register value and the precise control of the detector. The integration of these functions not only optimizes the performance of the RAID controller, but also provides strong support for the automated testing and monitoring of the storage system.

[0077] Step 4, the BMC responds to the information acquisition command and obtains the light status information from the register corresponding to the slot. The BMC also responds to the light image acquisition command and obtains the light image information of the lights on one or more slots in the hard disk backplane after the lighting operation is performed from the detector. The detector is located in the device to be tested.

[0078] The BMC receives the request from the RAID controller, obtains the register value of the hard disk backplane controller, and passes it to the hard disk backplane lighting module. After the reading is completed, the result is returned to the test equipment processor. This process ensures the accurate transmission and monitoring of the hardware status. And when the RAID controller issues a request for taking pictures or recording videos about the detector, the BMC passes the request to the corresponding detector. If the detector is an internal device (for example, in a server), the BMC will complete the implementation of the corresponding request.

[0079] The lighting module is located on the hard disk backplane, for example, integrated in the controller of the hard disk backplane. This module processes signals such as SGPIO from the RAID controller and controls the lights on the hard disk backplane slots by setting the register values ​​in the controller. The register values ​​correspond to the lights of specific slots and determine the behavior of the lights, including the lighting status, color, and flashing mode. The lighting module parses the lighting command from the RAID controller, sets the register value of the target slot according to the command content, and then lights up the light of the target slot and controls its color and flashing frequency.

[0080] The lighting module is also used to return the value of the corresponding register to the BMC when receiving a request from the BMC to read the value of the register in the hard disk backplane controller. The data interaction between the lighting module and the BMC can be realized through I2C or other communication protocols. For example, the lighting module and the register transmit data and control signals through internal signal lines or internal buses.

[0081] When the detector is located in the test equipment, after the test equipment processor sends a lighting command to the RAID controller FW module, a control instruction is directly sent to the detector to obtain light image information after the lights on one or more slots in the server hard disk backplane execute the lighting operation.

[0082] Step 5: BMC sends the lamp status information to the test device, and BMC returns the lamp image information to the test device through the detector.

[0083] For example, when the detector is on the device under test, the detector can store the image or video taken or recorded in a storage space such as a disk of the device under test. The storage path is usually pre-configured and accessible to the test device.

[0084] Next, based on the above description, a method for testing the lighting of a hard disk backplane indicator light provided by an embodiment of the present application is introduced. The method is proposed based on the above description, and part or all of the contents of the method can be referred to the above description.

[0085] For example, Figure 3 The flowchart of a method for testing the lighting of a hard disk backplane indicator light provided by an embodiment of the present application is shown. The method is applied to a device to be tested (such as a server), such as Figure 3 As shown, the method may include:

[0086] Step S301, the RAID controller obtains a lighting instruction, which is used to instruct the RAID controller of the server to perform a lighting operation on the lights on one or more slots in the hard disk backplane, and the lighting operation is used to indicate that the status of the lights on the slots is controlled.

[0087] For example, each slot usually has multiple LED lights, which are used to indicate different slot states, such as: Locate LED: usually used to locate the slot, and may light up blue or white. Fault LED: used to indicate a fault state, usually lights up red. Present LED: used to indicate whether a hard disk exists or is connected, usually lights up green. For example, the instruction includes the slot ID, the light state (such as Locate, Fault, Present), and the required light behavior (such as lighting, extinguishing, color change, flashing frequency adjustment).

[0088] In the embodiment of the present application, one or more slots represent that the lighting operation can be performed on the light on a single slot on the hard disk backplane, or on multiple slots at the same time, that is, the test device is allowed to test any number of slots on the hard disk backplane. Through the lighting operation, the indicator light of each slot can be controlled to indicate the corresponding hard disk status, including lighting, extinguishing, color change or adjustment of the flashing frequency.

[0089] Step S302: The RAID controller responds to the light-on instruction, sends a light-on command to the hard disk backplane and sends an information acquisition command to the BMC.

[0090] After the RAID controller receives the light-on command sent by the test equipment, it first parses the command to determine the target slot where the light to be operated is located and the action that the light should perform, such as lighting, turning off, or flashing at a specific frequency. After the analysis is completed, the RAID controller communicates with the controller of the hard disk backplane, for example, through the SGPIO interface, and sends a control signal to control the light. The controller on the hard disk backplane receives the SGPIO signal from the RAID controller, and sets the state of the light by parsing the SGPIO signal to reflect the state of the hard disk, such as active, faulty, present, or located. After the light state changes, the controller can send a status feedback signal to the RAID controller to confirm that the light-on command has been executed correctly. The RAID controller records the operation results and can return the light-on command completion information to the test equipment.

[0091] For example, the RAID controller is connected to a 16-slot hard disk backplane, and a number is printed next to each slot, such as "SLOT 1", "SLOT 2"... "SLOT 16", and SLOT X is a silk-screen number used to indicate the slot number. The test equipment can control the light status of each slot on the hard disk backplane by sending a lighting command to the RAID controller. When the Activity LED of "SLOT 1" needs to be tested, the test equipment will send a specific lighting command to the RAID controller, and the command includes the following parameters: target slot: SLOT 1, LED light status: Activity, LED light color: green, flashing frequency: 2 times per second. After receiving the lighting command, the RAID controller sends the lighting command to the controller on the hard disk backplane through the SGPIO signal or other appropriate communication protocol. After receiving and parsing the command, the controller controls the LED light of the specified SLOT 1 slot so that the Present LED lights up green and flashes at a frequency of 2 times per second according to the lighting command.

[0092] In a possible implementation, all states of the lamp corresponding to the target slot are tested, including the Activity, Faul lt, and Present lamp states for lighting tests.

[0093] In a possible implementation, the target slot includes multiple slots, and the test device can perform lighting tests on multiple lamp states of the multiple slots. For example, the Present LED of SLOT 1 is set to be always on, and the Faul t LED of SLOT 2 is set to flash.

[0094] The RAID controller and BMC usually communicate through the I2C channel or MCTP channel. RAID controller manufacturers usually develop exclusive LIB libraries to define API interfaces for interacting with BMC. These interfaces usually cover the basic functions of the RAID controller, including query (query whether the hard disk in a specific slot exists, whether its status is normal, or obtain the current status of the light), setting (configure or modify certain parameters of the RAID card or hard disk backplane), creation (create a new RAID operation array or other logical unit), deletion (delete an existing RAID array or logical unit) and other operations. The existing API interface mainly focuses on the management and status monitoring of the RAID controller itself, and the detailed control and status feedback functions of the hard disk backplane are relatively limited, especially in terms of automated testing and light status verification. When it is necessary to verify the light status information in the register, the existing API interface does not provide the corresponding command, and it is not possible to issue instructions to the BMC through the RAID controller to read the register value corresponding to the target slot.

[0095] The embodiment of the present application adds an information acquisition command API interface, which is implemented through the API in the LI B library for the interaction between the RAID controller and the BMC. The specific parameters of the command may include the RAID controller ID number, the RAID controller model, the backplane ID number, the backplane slot number, the register address, etc., to ensure that the register value of the target slot can be accurately read. The RAID controller ID number uniquely identifies the RAID controller that sends the command. In a multi-RAID controller system, it helps to identify which RAID controller issued the command. The RAID controller model identifies the specific model of the RAID controller. Different models of RAID controllers may have different command sets and communication methods. Clarifying the model helps to match the correct operation protocol. The backplane ID number uniquely identifies the hard disk backplane. In a system where multiple hard disk backplanes are connected, it ensures that the command can be executed for a specific hard disk backplane. The backplane slot number identifies the specific slot number that needs to be read, and clarifies the light status of which slot the command is for. The register address indicates the storage location of the register associated with the light status of a specific slot. By introducing the information acquisition command, the light status can be detected and verified more accurately, and the root cause of the problem can be quickly distinguished. Significantly shorten the time for troubleshooting.

[0096] In step S303, the BMC responds to the information acquisition command and acquires the light status information from the register corresponding to the slot, wherein the register is used to store the light status information on the slot.

[0097] The register can be located in the controller of the hard disk backplane, communicate with the RAID controller through the SGPIO bus, receive commands from the RAID controller, and set the color and flashing frequency of the light accordingly. The register is used to store and control the light status information of each slot on the hard disk backplane. The information stored in these registers determines the color, on and off status, and flashing frequency of the light.

[0098] The register stores the light information of each slot, including the light status of Locate, Faul lt, Present, etc. Each status corresponds to a different light color and flashing frequency. The RAID controller controls the values ​​of these registers by sending SGPIO signals to change the state of the light. The backplane controller communicates with the BMC through I2C signals, and the BMC can read the values ​​of the registers in the controller. The value of the register represents the light status information of the corresponding slot. The light status information is the data information related to the indicator lights of each slot stored in the register. This data information can reflect the current state of the light, including whether the light is on, the color of the light, the flashing frequency, etc. During the test, the BMC will read the light status information from the register corresponding to the slot to be tested. By analyzing this data information, the test equipment can determine whether the light works as expected and whether it can correctly reflect the current working state of the hard disk slot, thereby verifying whether the light-on command issued by the RAID controller is correctly executed and providing a basis for the light status verification. For example, a certain storage bit in the SGPIO register can represent the on / off status of the LED light (such as 0 for off, 1 for on), and a combination of other storage bits can store information on the flashing frequency and the color of the LED light, such as green, red, blue, etc. For example, the RAID controller sends the light-on command to the CPLD of the hard disk backplane to operate slot 1. The CPLD updates the SGPIO register related to "SLOT 1" and writes the corresponding LED light status control value. The SGPIO register records the identification, color, LED light on status, and LED light flashing frequency of SLOT 1.

[0099] In a possible implementation, the RAID controller responds to the light-on instruction and also sends a light image acquisition command to the BMC. The BMC responds to the light image acquisition command and acquires light image information of the lights on one or more slots in the hard disk backplane after the light-on operation is performed from the detector, wherein the detector is used to take photos or videos of the lights on one or more slots in the hard disk backplane after the light-on operation is performed to generate light image information; wherein the detector is located in the server; and the BMC sends the acquired light image information to the test equipment. The detector is, for example, installed on the rack of the server or the hard disk backplane. For example, the test equipment will analyze the Presence LED light of the "SLOT 1" slot to verify whether it is displayed as green as expected and whether it flashes at a frequency of 2 times per second. After the light-on command is executed, the detector performs real-time image or video acquisition of the specified slot of the hard disk backplane. By using the detector, the light status of each slot can be accurately captured in a highly automated manner, and analyzed by image / video recognition technology to automatically extract the characteristic values ​​of the light, such as color, flashing frequency, and backplane slot silk screen number. In addition, the detector can monitor and record data in real time, providing a basis for historical analysis of server status and troubleshooting. This not only improves the efficiency of testing, but also enhances the objectivity of data, providing a more intelligent solution for the management of large-scale server systems, reducing human intervention and potential errors.

[0100] In one possible implementation, the detector obtains light image information of the lights on one or more slots in the server hard disk backplane after performing a lighting operation in response to a control instruction sent by a test device, wherein the detector is located in the test device; the control instruction is sent after the test device sends the lighting instruction; and the detector sends the obtained light image information to the test device.

[0101] Step S304: The BMC sends the lamp status information to the test device.

[0102] The test equipment compares the lamp status information with the preset value to obtain the lamp status information test result.

[0103] In a possible implementation, when the test device tests the status of a light in a slot, it saves the specified light status as a preset value, and the test device compares the actual value in the register with the preset value. If the actual value is consistent with the preset value, it means that the light status is correct; if not, there may be a hardware or software problem.

[0104] For example, the expected value of the SGPIO register can be expressed in binary form, and each binary bit usually corresponds to a specific LED light state. The value of the SGPIO register, for example, consists of 4 bits, each of which corresponds to a different LED state of SLOT 1:

[0105] Bit 0: Presence LED status (0 = off, 1 = on)

[0106] Bit 1: Faul lt LED status (0 = off, 1 = on)

[0107] Bit 2: Locate LED status (0 = off, 1 = on)

[0108] Bit 3: Flashing frequency (0 = normal, 1 = fast)

[0109] If the test equipment issues a command to instruct the Presence LED of SLOT 1 to light up (that is, turn on) and flash at a fast rate, then the expected SGPIO register value is "1001", that is, the preset value is "1001":

[0110] Bit 0 (Presence LED): 1 (on)

[0111] Bit 1 (Faul lt LED): 0 (off)

[0112] Bit 2 (Locate LED): 0 (off)

[0113] Bit 3 (flicker frequency): 1 (fast flashing)

[0114] In a possible implementation, the BMC also sends the light image information to the test device. The test device uses image or video recognition technology to extract feature values ​​from the light image information, the feature values ​​including the silk screen number of at least one slot in the hard disk backplane, the light color, and the flashing frequency; the extracted feature values ​​are compared with preset values ​​to generate a light image information test result.

[0115] Image recognition technologies include, for example, convolutional neural networks (CNN), optical character recognition (OCR), edge detection algorithms, and color recognition algorithms. Video recognition technologies include, for example, spatiotemporal convolutional neural networks (3D CNN), recurrent neural networks (RNN), and long short-term memory networks (LSTM).

[0116] For example, CNN can be used to identify the color of LED lights or detect the silk screen number of hard disk slots. RNN is used to analyze the flashing frequency and color changes of LED lights in videos.

[0117] The test equipment verifies whether the slot position of the light extracted from the light image information is consistent with the silk screen number of the target slot. The test equipment will also compare the extracted light color value with the preset color value. For example, if the test expects that the LocateLED should be displayed as blue, the test equipment will check whether the extracted color value matches the expected value corresponding to blue, which can be recorded in the system according to the configuration of the hard disk backplane. Similarly, the extracted light flashing frequency value will also be compared with the expected frequency value. For example, if the Presence LED is expected to flash at a frequency of 2 times per second, the test equipment will verify whether the actual flashing frequency falls within this expected range. The extracted feature values ​​are compared with the expected values, including LED color, flashing frequency, and silk screen number, to determine whether the light image information of the target slot is completely in line with expectations.

[0118] The embodiment of the present application obtains and responds to the light-on instruction through the RAID controller, sends the light-on command to the hard disk backplane, and sends the information acquisition command to the BMC at the same time, and then the BMC reads the light status information of the target slot from the register of the hard disk backplane and transmits it to the test equipment. The automatic monitoring of the light status of each slot of the hard disk backplane is realized, and the source of the problem is quickly located by comparing the register value and the actual light status.

[0119] Figure 3 What is shown is only a basic embodiment of the method of the embodiment of the present application. By performing certain optimization and expansion on this basis, other preferred embodiments of the method can be obtained.

[0120] In a possible implementation, the embodiment of the present application optimizes the LED lighting status test of the target slot to a certain extent based on the above embodiment. Figure 2 As shown, the detector is located in the device to be tested. After the light-on command is executed, the BMC not only obtains the light status information from the register corresponding to the slot, but also controls the detector to obtain the light image information of the lights on one or more slots in the hard disk backplane after the light-on operation is executed. This is just a brief description of the method. For details of the method, please refer to the following description.

[0121] Figure 4 This is another flowchart of a method for testing the lighting of a hard disk backplane indicator light provided by an embodiment of the present application. The embodiment of the present application can be applied to the device to be tested. Figure 4 As shown, the testing method provided in the embodiment of the present application includes at least the following steps:

[0122] Step S401, the RAID controller obtains a lighting instruction, which is used to instruct the RAID controller of the server to perform a lighting operation on a light on at least one slot in the hard disk backplane, and the lighting operation is used to indicate that the state of the light on the slot is controlled.

[0123] Please refer to the description of step 301 for details, which will not be repeated here.

[0124] Step S402: The RAID controller responds to the light-on instruction, sends a light-on command to the hard disk backplane, sends an information acquisition command to the BMC, and sends a light image acquisition command to the BMC.

[0125] When the detector is located in the server, the RAID controller sends a light image acquisition command to the BMC, so that the BMC controls the detector to acquire light image information.

[0126] The embodiment of the present application adds a light image acquisition command interface in the LIB library of the RAID controller. The parameters of the interface function include the hard disk backplane ID, the slot ID, and may also include the operation type (such as taking pictures, recording videos), the detector ID, and the method of returning data. The detector ID number uniquely identifies the detector device used. There may be multiple detectors in the system, and this field is used to identify which detector is used for image / video acquisition. The RAID controller sends a light image acquisition command to control the detector to the BMC, for example, through the I2C or MCTP protocol, instructing the BMC to control the detector to perform a photo or video recording operation on the light in the specified slot. When the RAID controller sends a command to the BMC, for example, it will include the test device network address or return path information so that the BMC returns the data directly to the test device. After receiving the command from the RAID controller, the BMC controls the detector to take pictures or record videos of the light in the target slot through a communication channel (such as I2C or a dedicated interface).

[0127] Step S403, the BMC responds to the information acquisition command and acquires the light status information from the register corresponding to the slot, wherein the register is used to store the status information of the light on the slot. And the BMC responds to the light image acquisition command and acquires the light image information of the lights on one or more slots in the hard disk backplane after the light-on operation is performed from the detector, wherein the detector is used to take a photo or record a video of the light on at least one slot in the hard disk backplane to generate the light image information after the light-on operation is performed.

[0128] In a possible implementation, the RAID controller responds to the light-on instruction and also sends a light image acquisition command to the BMC. The BMC responds to the light image acquisition command and acquires light image information of the lights on one or more slots in the hard disk backplane after the light-on operation is performed from the detector, wherein the detector is used to take photos or videos of the lights on one or more slots in the hard disk backplane after the light-on operation is performed to generate light image information; the detector is located on the server; and the BMC sends the acquired light image information to the test equipment. The detector is, for example, installed on the rack or hard disk backplane of the device to be tested. For example, the test equipment will analyze the Presence LED light of the "SLOT 1" slot to verify whether it is displayed as green as expected and whether it flashes at a frequency of 2 times per second. After the light-on command is executed, the detector performs real-time image or video acquisition of the specified slot of the hard disk backplane. By using the detector, the light status of each slot can be accurately captured in a highly automated manner, and analyzed by image / video recognition technology to automatically extract the characteristic values ​​of the light, such as color, flashing frequency, and backplane slot silk screen number. In addition, the detector can monitor and record data in real time, providing a basis for historical analysis of server status and troubleshooting. This not only improves the efficiency of testing, but also enhances the objectivity of data, providing a more intelligent solution for the management of large-scale server systems, reducing human intervention and potential errors.

[0129] Step S404: The BMC sends the lamp status information and the lamp image information to the test device.

[0130] The BMC controls the detector to take pictures or videos with slot information and light status information, and can store the image data in the specified storage location. For example: the light image information obtained by the detector can be stored in:

[0131] BMC's internal memory: After taking a photo or recording a video, the detector sends the image or video data back to the BMC. This can be done through a wired connection (such as I2C, SPI, etc.) or a wireless connection (such as Wi-Fi, Bluetooth, etc.). The image information is stored directly in the BMC's memory, which may be NOR Flash, NAND Flash, or other types of non-volatile memory. The BMC sends relevant information about the stored image (such as file path, storage timestamp, etc.) back to the test equipment, and the test equipment knows when and where the captured image can be accessed based on this information. It should be noted that the internal storage capacity of the BMC may be limited, so storage capacity and data management strategies need to be considered when designing the system. If the test data volume is large, it may be necessary to migrate the data to other storage devices regularly.

[0132] In the storage space of the device under test: The detector can directly store the image or video taken or recorded in the storage space such as the disk of the device under test. The storage path is usually pre-configured and accessible to the test device.

[0133] By obtaining the test results of lamp status information and lamp image information, the problem can be quickly demarcated and the test efficiency and accuracy can be improved.

[0134] When the lamp status information test result is correct but the lamp image information test result is incorrect, it is determined that a hardware failure occurs in the server during the test.

[0135] When the lamp status information test result is wrong and the lamp image information test result is correct, it is determined that a software failure occurs in the server during the test.

[0136] When the lamp status information test result is wrong and the lamp image information test result is wrong, it is determined that a hardware or software failure occurs in the server during the test.

[0137] The following is a specific example. The test equipment tests the LED status of SLOT 1, instructing it to light up green and flash at a frequency of 2 times per second. The test equipment first sends a lighting instruction through the RAID controller, indicating that the color of the LED light of SLOT 1 is green and the flashing frequency is 2 times per second. After receiving the lighting instruction, the RAID controller writes the status information of the target LED (such as color and flashing frequency) into the SGPIO register corresponding to SLOT1 in the CPLD of the hard disk backplane through the SGPIO signal.

[0138] After the light status is written, the RAID controller responds to the light-on instruction and sends an information acquisition command to the BMC, and reads the SGPIO register value of SLOT 1 through the BMC. This command contains necessary identification information, such as the RAID controller ID number, backplane ID number, backplane slot number, register address, timestamp (the time when the command is issued, used for synchronization and logging, optional), timeout setting (optional), error handling (operation when reading fails, optional), command type (optional), etc., to ensure that the BMC can accurately locate and read the correct register. After receiving the information acquisition command, the BMC communicates with the CPLD of the hard disk backplane through the I2C or MCTP channel, reads the value of the SGPIO register, and returns these values ​​to the test equipment. It should be noted that the field design of the information acquisition command can be flexibly adjusted according to the specific application scenario. The combination of different fields, or the inclusion of more or fewer fields and the order in which the various fields appear in the command, all belong to the protection scope of this application.

[0139] After the test equipment receives the corresponding SGPIO register value, it compares it with the expected LED state value. This comparison is used to verify whether the data displayed in the target SGPIO register matches the actual LED state.

[0140] At the same time, the test equipment also receives and analyzes the image or video data captured by the detector to further verify the status of the light.

[0141] If the color and blinking frequency of the LED light are incorrect, but the value of the SGPIO register is correct, it means that the problem is at the hardware level, such as the hardware link of the LED light is poorly soldered or the pin connection is wrong.

[0142] If the LED color and flashing frequency are correct, but the SGPIO register value is incorrect, it may be that the BMC has an error when reading the SGPIO register, resulting in an incorrect register value, but the actual hardware status is still normal. This situation may be caused by a communication problem in the I2C channel or MCTP channel.

[0143] If the color and flashing frequency of the LED light are incorrect, and the value of the SGPIO register is also incorrect, the problem may be a software or hardware failure. You need to further check the software command transmission process and hardware connection to accurately determine the source of the problem.

[0144] Finally, the test equipment records the verification results of the SGPIO register values ​​and the detector data and generates a test report. If any verification results are found to be inconsistent with expectations, the test equipment will generate an error log to further analyze the source of the problem and take appropriate measures to solve it.

[0145] The embodiment of the present application includes not only sending an information acquisition command to the BMC, but also sending a light image acquisition command to the BMC, which further improves the accuracy of the test. Different combinations of test results (such as the light state is correct but the image is abnormal, the light state is wrong but the image is correct, etc.) can help quickly determine whether the problem occurs at the hardware or software level. This method not only improves the efficiency of problem diagnosis, but also shortens the troubleshooting and repair time, and is particularly suitable for automated testing scenarios of complex RAID controllers and hard disk backplanes.

[0146] Figure 3 What is shown is only a basic embodiment of the method of the embodiment of the present invention. By performing certain optimization and expansion on this basis, other preferred embodiments of the method can be obtained.

[0147] In one embodiment, based on the above-mentioned embodiment, this embodiment provides a more detailed description and a certain degree of optimization for the test process. Specifically, Figure 5As shown, the detector is located in the test equipment. After the light-on command is executed, the test equipment controls the detector to take a photo or record a light on at least one slot in the hard disk backplane to generate light image information.

[0148] This is just a brief description of the method. For details about the method, please refer to the description below.

[0149] In one embodiment, based on the above-mentioned embodiments, this embodiment provides a more specific description and a certain degree of optimization for the test process. Figure 5 A flowchart of another method for testing the lighting of a hard disk backplane indicator light provided by an embodiment of the present application is shown. Figure 5 As shown, the method in this embodiment includes:

[0150] Step S510, the RAID controller obtains a lighting instruction, the lighting instruction is used to instruct the RAID controller of the server to perform a lighting operation on a light on at least one slot in the hard disk backplane, and the lighting operation is used to indicate that the state of the light on the slot is controlled.

[0151] Please refer to the description of step 301 for details, which will not be repeated here.

[0152] Step 520, the RAID controller responds to the lighting instruction, sends a lighting instruction to the hard disk backplane and sends an information acquisition command to the BMC. The test device sends a control instruction to the detector, instructing the detector to obtain the light image information of the lights on one or more slots in the server hard disk backplane after the lighting operation is performed.

[0153] In a possible implementation, the test device and the detector are located in the test device. After the light-on command is executed, the test device receives feedback information sent by the RAID controller to confirm that the light-on command has been executed and the light of the target slot in the device to be tested has displayed the corresponding state according to the instruction of the test device. Only then will the test device send a command to the detector to notify the detector to start taking pictures or recording videos. Taking pictures or recording videos at this time can capture a stable image or video of the LED light corresponding to the target slot.

[0154] Step S530, the BMC responds to the information acquisition command and acquires the light status information from the register corresponding to the slot, wherein the register is used to store the status information of the light on the slot. The detector responds to the control instruction sent by the test equipment and acquires the light image information of the light on at least one slot in the server hard disk backplane after the light is turned on.

[0155] Step S540: The BMC sends the lamp status information to the test device, and the detector returns the lamp image information to the test device.

[0156] After the BMC reads the register value, it returns the read register value and command execution result to the test device. The test device analyzes and processes the read register value to verify whether the color and flashing frequency of the light meet expectations. For example, the data returned by the BMC to the test device includes: Target register value: contains the read target register value. Command execution result (success or failure): indicates the execution status of the command. Reason for execution failure (error code): If the command execution fails, provide a specific error code. Detector (camera) ID number, etc.

[0157] In the embodiment of the present application, the detector is directly connected to the test equipment, and the test equipment can control the detector to collect images more quickly, reducing communication delays. The detection process is simplified so that after sending the lighting command, the test equipment can obtain and process image information in real time, speeding up the test. In addition, the location of the detector in the test equipment also improves the flexibility of the system, making it easier to switch and test between multiple servers, which helps to cope with complex testing requirements in large-scale data centers.

[0158] Figure 6 A schematic diagram of the interaction flow between the test equipment and RAID control, BMC, CPLD and detector provided in the embodiment of the present application. Figure 6 As shown,

[0159] Step S601: The test device sends a light-on instruction to the RAID controller.

[0160] Step S602: After receiving the light-on instruction sent by the test device, the RAID controller sends the light-on command to the CPLD through the SGPIO interface.

[0161] Step S603: After receiving the light-on command sent by the RAID controller, the CPLD parses it and updates the value of the corresponding register.

[0162] Step S604: The CPLD controls the state of the lamp according to the new value of the register and performs a lighting operation on the lamps in one or more slots according to the lighting command.

[0163] Step S605, the CPLD feeds back to the RAID controller that the execution of the light-on command is completed.

[0164] Step S606: RAID control feeds back to the test device that the execution of the light-on instruction is completed.

[0165] Step S607: The RAID controller sends an information acquisition command and an image acquisition command to the BMC.

[0166] Step S608: The BMC receives the information acquisition command and reads the value in the register to obtain the lamp status information. The BMC receives the image acquisition command and controls the detector to take a photo or record a video of the lamp in at least one slot to obtain the lamp image information.

[0167] The BMC sends a request to the lighting module to read the register value, and the lighting module reads the corresponding value from the register and returns it to the BMC (the lighting module sends a request to read the value of the response memory, and the register return value to the lighting module, and the lighting module returns the corresponding register value to the BMC, which is not shown in the figure).

[0168] Step S609: The BMC returns status information to the test device, and returns lamp image information to the test device.

[0169] In a possible implementation, in the hard disk backplane lighting test, in order to verify that the lighting operation of the target slot will not affect the light status of other slots, it is necessary to fully monitor the light status of all slots during the test. This includes taking photos to capture the light status of all slots and reading the register values ​​of all slots after executing the lighting command of the target slot. By fully capturing and comparing the status information of all slots, it can be ensured that when testing the LED of a single slot, it will not affect the LED light status of other slots, thereby ensuring the reliability and accuracy of the test results.

[0170] Specifically, when the BMC reads the value of the target register, it also reads the register values ​​of the remaining slots. By comparing the register value of each slot with the expected value, it can be detected whether the lights in other slots are accidentally activated or change state. For example, if the command only operates the LED light in slot 1, then when reading the register values ​​of slot 2 and other slots, they should be consistent with the previous values. If the register value of slot 2 changes, it indicates that there is a cross-influence. The cross-validation provided in the embodiment of the present application helps to identify whether there are potential signal interference or hardware design problems in the system, and can ensure that no cross-influence detection is missed in complex test scenarios.

[0171] In another possible implementation, when performing a lighting test, the detector not only takes a picture of the indicator light of the test slot, but also takes a picture or records the indicator lights of all other slots in the hard disk backplane synchronously. This method ensures that the light status of the test slot is correct while verifying whether the light status of other slots is affected, avoiding the situation where the light status of other slots may change abnormally when testing a certain slot. This comprehensive shooting and recording method can help quickly locate potential problems and ensure the stability of the system and the accuracy of the test.

[0172] Figure 7This is a schematic diagram of the lighting operation of the indicator light corresponding to the target slot provided in the embodiment of the present application and the integrity verification of the remaining slots. Figure 7 As shown, the hard disk backplane includes two SGPIO registers, each register controls the LED status of two slots. SGPIO register 1 controls the LED lights of SLOT 1 and SLOT 2. SGPIO register 2 controls the LED lights of SLOT 3 and SLOT 4. The test device sends a lighting instruction to the RAID controller, and controls the Faul t LEDs of SLOT 1 and SLOT 2 to light up through the CPLD. After receiving the lighting instruction from the test device, the RAID controller parses the SGPIO registers to be operated and the corresponding bits are bit 1 in SGPIO register 1 corresponding to the Faul t LED light of slot 1, and bit 4 in SGPIO register 1 corresponding to the Faul t LED light of slot 2. The RAID controller uses SGPIO signals, for example, to set these bits to 1 to light up the corresponding LED lights.

[0173] After lighting up the Faul lt LEDs of SLOT 1 and SLOT 2, the RAID controller sends an information acquisition command to the BMC, instructing the BMC to read all related SGPIO register values ​​to obtain light status information; the RAID controller sends an image acquisition command to control the detector to take photos or record videos of the LED light status of all slots to obtain light image information. According to the command of the RAID controller, the BMC reads the values ​​of all SGPIO registers and controls the detector to cover all slots to take photos or videos.

[0174] The test equipment compares the status value in the target SGPIO register with the expected value, confirms whether the Fault LED lights of SLOT 1 and SLOT2 are correctly lit, and checks whether the values ​​of the SGPIO registers of other slots remain in the expected state (such as remaining unlit). The test equipment further verifies from the light image information obtained by the detector to determine whether the LED light status corresponding to the target slot is consistent with the expected value. This can avoid ignoring other slots or states due to testing the LED lighting status of the target slot, ensuring the comprehensiveness and accuracy of the test. If only the LED status of the target slot is correct, but the LED status of other slots is wrong, it is judged that there are problems such as signal interference, SGPIO signal transmission, electrical wiring, etc., and such problems can be specifically checked.

[0175] Figure 8 A schematic diagram of a flow chart of an automated loop traversal test provided in an embodiment of the present application. Figure 8As shown in the figure, this test method uses an automated script or program to traverse each slot in turn and control and verify the different light states of each slot one by one. This helps to fully cover all possible operating scenarios and ensure the stability and consistency of the system under different conditions.

[0176] The entire hard disk backplane LED lighting test process is as follows:

[0177] The test device starts the test process, initializes the required resources and variables, and sets up the test environment. Initializes various configuration parameters used in the test process, such as the list of test slots, expected slot light colors and flashing frequencies, etc. Sets the parameters required for the remote connection protocol, such as the SSH username, password, and address of the device to be tested.

[0178] The test equipment connects to the device under test via SSH or other remote connection protocols to ensure communication with the RAID controller and BMC, including checking the firmware version and configuration of the RAID controller. The test equipment generates a series of instructions, each of which performs a lighting operation on the target slot on the hard disk backplane.

[0179] Step S801, the test device sets a loop, which will traverse all N slots on the hard disk backplane, and the initial number of loops is set to X. When X>N, jump to step S803 to obtain the test results of all slots, and the test ends. When X≤N, each slot will perform the following steps.

[0180] Step 802: The RAID controller sends a light-on command to the Xth slot of the hard disk backplane.

[0181] Step 804, the BMC reads the register value of the Xth slot through the hard disk backplane CPLD to obtain the light status information, and then jumps to step 805 to determine whether the value of the memory meets the preset value. At the same time, the BMC takes a photo or video of the Xth slot of the hard disk backplane through the detector to obtain the light image information, and then jumps to step S806.

[0182] Step 805, determine whether the value of the register meets the preset value. If it does, jump to step 807, indicate that the backplane slot X light status information test is correct, and record the test result in the test success log. If it does not meet the requirements, jump to step 808, indicate that the backplane slot X light status information test is wrong, and record the test result in the test failure log.

[0183] Step 806: Extract the image information of the light in the Xth slot of the hard disk backplane through image / video recognition technology to obtain the characteristic values ​​of the light color and flickering frequency. Jump to step 809.

[0184] Step 807, indicating that the backplane slot X lamp status information / lamp image information test is correct, and recording the test result in the test success log

[0185] Step 808, indicating that the backplane slot X light status information / light image information test error, and recording the test result in the test failure log.

[0186] Step 809, determine whether the characteristic value of the lamp in the Xth slot meets the preset value. If it does, jump to step S807, indicate that the image information test of the lamp in the Xth slot of the backplane is wrong, and record the test result in the test failure log. If it does not meet the requirements, jump to step S808, indicate that the image information test of the lamp in the Xth slot of the backplane is wrong, and record the test result in the test failure log.

[0187] Step S10, after the lighting operation test for the lamp in the Xth slot is completed, the slot number is X+1, and the lighting operation test for the lamp in the X+1th slot is started.

[0188] For example, if the Fault LED light color, flashing frequency, and silk-screen number of the target slot "SLOT 1" are consistent with expectations, the test equipment records that the light image information of the slot is tested correctly. If any item does not meet expectations, the system records that the light image information test has failed, and records the reasons in detail in the log, such as color mismatch, flashing frequency mismatch, silk-screen mismatch, etc. The register value of the target slot "SLOT 1" is consistent with the expected value, and the test equipment records that the light status information of the slot is tested correctly. Then increase the slot number X value by 1, send a light-on command to the next slot (such as "SLOT 2"), and repeat the above detection steps until all slots are tested. After the test is completed, the test equipment generates a report containing the test results of all slots. This report will list in detail the LED status of each slot, the detection time, and whether it matches expectations.

[0189] After all slots are traversed, the test device performs a cleanup operation, disconnects from the device to be tested, and closes the test environment.

[0190] Through this cyclic traversal method, the test equipment can ensure that the LED lighting status of each slot is tested and verified one by one, realizing a comprehensive and automated test process.

[0191] In the automated test architecture, by simulating the RAID controller to light up the lights on the hard disk backplane slots, it is also possible to verify whether the lights on the slots can accurately reflect the status of the hard disks and RAID groups in the virtual disk group (VD) mode.

[0192] The test device sends a simulated light-on command to the RAID controller, instructing it to perform a virtual configuration. Figure 7For example, the light-on command instructs the RAID controller to simulate SLOT 1 and SLOT 2 configured as a RAID 1 virtual disk group. After receiving the command from the storage device, the RAID controller generates a simulation signal and notifies the CPLD through the SGPIO interface that the simulated hard disk has been configured as a RAID 1 virtual disk group.

[0193] The test equipment sends a fault simulation command to simulate the state of a RAID 1 virtual disk group failure. The RAID controller generates a RAID 1 virtual disk group Failure signal, and the CPLD lights up the Failure LED.

[0194] In RAID 1 virtual disk mode, the two hard disks should display activity status synchronously. The RAID controller generates synchronization signals, and the CPLD controls the Activity LEDs of SLOT 1 and SLOT 2 to flash simultaneously, simulating synchronous read and write operations.

[0195] When simulating a hard disk failure, the fault indicator lights (Fau lt LED lights) of SLOT 1 and SLOT 2 will light up to synchronously display the fault status. The embodiment of the present application can perform LED lighting test on the virtual disk group (VD) mode to ensure the accuracy and reliability of the hard disk backplane LED lights in the RAID group VD mode.

[0196] In modern data centers and high-performance computing environments, servers are usually equipped with multiple hard disk backplanes and RAID controllers to provide powerful storage capacity and data protection. Each backplane usually contains multiple hard disk slots, and each slot has an indicator light indicating the hard disk status. These indicators are used to display the working status, fault information, and location information of the hard disk. Fig. 9 FIG. 1 shows a schematic diagram of the structure of a multi-hard disk backplane and a RAID controller provided in an embodiment of the present application. Fig. 9 As shown, for example, two RAID controllers (RAID controllers 01 and 02) and two hard disk backplanes (hard disk backplanes 01 and 02) are configured in the server, each hard disk backplane has a controller (controller 1 is on hard disk backplane 01, controller 2 is on hard disk backplane 02), and each controller has two registers for controlling the light status of the slot.

[0197] Each register corresponds to a specific set of slots, and different bits of each register correspond to the light status information of different slots, for example:

[0198] Register 1:

[0199] Bit 0: Controls the Presence LED of SLOT 1.

[0200] Bit 1: Controls the Faul lt LED of SLOT 1.

[0201] Bit 2: Controls the Activity LED of SLOT 1.

[0202] Bit 3: Controls the Presence LED of SLOT 2.

[0203] Bit 4: Controls the Faul lt LED of SLOT 2.

[0204] Bit 5: Controls the Activity LED of SLOT 2.

[0205] Register 2:

[0206] Bit 0: Controls the Presence LED of SLOT 3.

[0207] Bit 1: Controls the Faul lt LED of SLOT 3.

[0208] Bit 2: Controls the Activity LED of SLOT 3.

[0209] Bit 3: Controls the Presence LED of SLOT 4.

[0210] Bit 4: Controls the Faul lt LED of SLOT 4.

[0211] Bit 5: Controls the Activity LED of SLOT 4.

[0212] Similarly, the controller 02 includes registers 03 and 04. Register 03 controls the LED light states of slots 5 and 6, and register 04 controls the LED light states of slots 7 and 8.

[0213] RAID controller 1 is connected to controller 1 through SGPIO 1 signal, and controller 1 is installed on hard disk backplane 1. Controller 1 has two registers inside, which are used to control the LED status of multiple slots on hard disk backplane 1. Register 1 controls the LED status of SLOT 1 and SLOT 2. Register 2 controls the LED status of SLOT 3 and SLOT 4. RAID controller 2 is connected to controller 2 through SGPIO 2 signal, and controller 2 is installed on hard disk backplane 2. Controller 2 has two registers inside, which are used to control the LED status of multiple slots on hard disk backplane 2. Register 3 controls the LED status of SLOT 1 and SLOT 2. Register 4 controls the LED status of SLOT 3 and SLOT 4.

[0214] The test device processor sends a command to RAID controller 1, instructing it to control register 1 on controller 1 and turn on the Faul t LED of SLOT 1 on hard disk backplane 1, setting it to steady red. RAID controller 1 sends a control signal to controller 1 through SGPIO 1.

[0215] After receiving the SGPIO signal, controller 1 updates the corresponding bit of register 1 and sets the Faul t LED state of SLOT 1 to the first value (for example, the first value indicates lighting). Controller 1 controls the Faul t LED of SLOT 1 on hard disk backplane 1, and the LED light turns on. At this time, the LED light is red, indicating a fault state.

[0216] After the LED light is on, RAID controller 1 sends an information acquisition command to instruct RAID controller 1 to notify BMC to read the value of register 1. BMC reads the value of register 1 in controller 1 through I2C or MCTP channel to obtain the light status information. At the same time, RAID controller 1 sends an image acquisition command to instruct RAID controller 1 to notify BMC to use the detector to capture or record the LED lighting status of slot 1 in hard disk backplane 01 to obtain the light image information.

[0217] The embodiment of the present application can also be applied to a centralized test system. Fig.10 FIG. 1 shows a schematic diagram of the structure of a centralized test system provided by an embodiment of the present application. Fig.10 As shown, the test device is equipped with a processor and multiple detectors for communicating and testing multiple devices to be tested. The devices to be tested are, for example, servers. Each server is equipped with a RAID controller, a BMC and a hard disk backplane, and the hard disk backplane is equipped with an indicator light for status indication.

[0218] The test equipment, including a processor and multiple detectors (such as cameras), is responsible for generating test commands and controlling the test process, for example, communicating with the RAID controller and BMC of each server through a communication interface (such as Ethernet, InfiniBand, etc.).

[0219] The test equipment establishes a communication connection with each server. The RAID controller of each server receives the command, and the test equipment sends a light-on instruction to the RAID controller of the connected server. The RAID controller receives the light-on instruction, for example, controls the lights on the slots on the hard disk backplane through the SGPIO interface to simulate different states. The detector takes pictures or records videos of the lights on the slots on the server hard disk backplane according to the control instructions of the test equipment processor. The detector transmits the acquired light image information back to the test equipment, and the test equipment uses image recognition technology to extract the feature value of the light image information. The test equipment compares the extracted feature value with the preset expected value to determine whether the light image information of at least one slot meets the expectation after the light-on operation is performed. The test equipment records the test results of each server and generates a comprehensive test report after the test is completed.

[0220] Based on the method in the above embodiment, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a processor, the processor executes the method in the above embodiment.

[0221] Based on the method in the above embodiment, an embodiment of the present application provides a computer program product, characterized in that when the computer program product runs on a processor, the processor executes the method in the above embodiment.

[0222] It should be understood that each step of the above method embodiment can be completed by a hardware-based logic circuit or a software-based instruction in a processor.

[0223] It is understandable that the size of the sequence number of each step in the above embodiment does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. In addition, in some possible implementations, each step in the above embodiment can be selectively executed according to actual conditions, and can be partially executed or fully executed, which is not limited here.

[0224] It is understandable that the processor in the embodiments of the present application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.

[0225] An embodiment of the present application further provides a computing device, the computing device includes a BMC, and the BMC is used to execute the method provided in any of the above embodiments.

[0226] The method steps in the embodiments of the present application can be implemented by hardware, or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.

[0227] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions may be transmitted from a website site, a computer, a server or a data center to another website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.

[0228] It should be understood that the various numerical numbers involved in the embodiments of the present application are only used for the convenience of description and are not used to limit the scope of the embodiments of the present application.

Claims

1. A method for testing the lighting of a hard disk backplane indicator light, applied to a server, characterized in that: The method comprises: The RAID controller obtains a light-on instruction, wherein the light-on instruction is used to instruct the RAID controller of the server to perform a light-on operation on lights on one or more slots in the hard disk backplane, wherein the light-on operation is used to indicate that the state of the lights on the slots is controlled; The RAID controller responds to the light-on instruction by sending a light-on command to the hard disk backplane and an information acquisition command to the BMC; The BMC responds to the information acquisition command and acquires the light status information from the register corresponding to the slot, wherein the register is used to store the light status information on the slot; The BMC sends the lamp status information to a test device.

2. The method according to claim 1, characterized in that The method further comprises: The RAID controller responds to the lighting instruction and sends a light image acquisition command to the BMC. The BMC responds to the light image acquisition command and acquires light image information of the lights on one or more slots in the hard disk backplane after the light-on operation is performed from the detector, wherein the detector is used to take photos or videos of the lights on one or more slots in the hard disk backplane to generate the light image information after the light-on operation is performed; The BMC sends the acquired lamp image information to the testing device.

3. The method according to claim 1, characterized in that The method further comprises: The detector responds to the control instruction sent by the test device to obtain the lamp image information after the lamps on the one or more slots in the hard disk backplane perform the lighting operation; The detector sends the acquired lamp image information to the testing device.

4. The method according to claim 1, characterized in that The method further comprises: The BMC responds to the information acquisition command, reads register values ​​of the test slot and other slots from the hard disk backplane, and extracts corresponding light status information; The test device determines whether the light status of the test slot meets the expected value based on the acquired register value of the test slot; The test device determines whether the light states of the remaining slots have changed and whether they are consistent with expected values ​​based on the acquired register values ​​of the remaining slots; or, The detector responds to the control instruction sent by the test device to obtain the lamp image information after the lamp on the test slot in the hard disk backplane performs the lighting operation, and the lamp image information after the lamps on the other slots perform the lighting operation; The test device determines whether the lamp image information of the test slot meets the expected value based on the acquired lamp image information of the test slot; The test device determines whether the lamp image information of the remaining slots has changed and whether it is consistent with the expected value based on the acquired lamp image information of the remaining slots.

5. The method according to any one of claims 1 to 4, characterized in that: The information acquisition command includes: a RAID controller ID number, used to identify the RAID controller that sends the information acquisition command; a RAID controller model, used to provide model information of the RAID controller; a backplane ID number, used to identify the hard disk backplane in the server; a backplane slot number, used to specify the hard disk backplane slot where the light status information needs to be read; and a register address, used to indicate the register address of the storage light status information accessed by the BMC.

6. A method for testing the lighting of a hard disk backplane indicator light, applied to a test device, characterized in that: The method comprises: the test device sends a lighting instruction to a RAID controller in a server, the lighting instruction is used to instruct the RAID controller to perform a lighting operation on the lights on one or more slots in a hard disk backplane; the lighting operation is used to indicate that the lights on the slots are controlled; The test device obtains the light status information in the register corresponding to the slot through the BMC in the server, and the register is used to store the light status information on the slot; The testing device generates a lamp status information test result based on the lamp status information.

7. The method according to claim 6, characterized in that The method further comprises: The test device receives the light image information sent by the BMC and extracts the characteristic value of the light state from the image information. The light image information is generated by the detector taking a photo or recording a video of the lights on one or more slots in the hard disk backplane. The test device compares the extracted characteristic value with the preset value to generate a lamp image information test result.

8. The method according to claim 6, characterized in that The method further comprises: The test device sends a control instruction to the detector, and the detector responds to the control instruction to obtain lamp image information after the lamps of one or more slots in the server hard disk backplane perform a lighting operation; The testing device receives the lamp image information acquired by the detector.

9. The method according to claim 7, characterized in that: The method further comprises: When the lamp status information test result is correct and the lamp image information test result is wrong, it is determined that a hardware failure occurs in the server; When the lamp status information test result is wrong and the lamp image information test result is correct, it is determined that a software failure occurs in the server; When the lamp status information test result is wrong and the lamp image information test result is wrong, it is determined that the server has a hardware or software failure.

10. A server, characterized in that: include: The RAID controller is used to obtain a lighting instruction, and in response to the lighting instruction, send a lighting command to the hard disk backplane and send an information acquisition command to the BMC; The light-on instruction is used to instruct the RAID controller of the server to perform a light-on operation on the lights on one or more slots in the hard disk backplane, and the light-on operation is used to indicate that the state of the lights on the slots is controlled; The BMC is used to respond to the information acquisition command, obtain the lamp status information from the register corresponding to the slot, and send the lamp status information to the test equipment, wherein the register is used to store the status information of the lamp on the slot.

Citation Information

Cited By

  • Method for testing status indicator lamp of server and electronic equipment

    CN121187901A

  • Method for testing status indicator light of server and electronic device

    CN121187901B