A hard disk lighting method, system, storage medium and device

CN115223606BActive Publication Date: 2026-09-22SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210912743.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-31
Publication Date
2026-09-22
Estimated Expiration
2042-07-31

AI Technical Summary

Technical Problem

[0004]有鉴于此,本发明的目的在于提出一种硬盘点灯方法、系统、存储介质及设备,用以解决现有技术中只能通过片上系统的SGPIO专用控制器或CPLD来生成、解析SGPIO信号,导致增加了硬件成本及电路板面积的问题

Benefits of technology

[0028]本发明通过使用多个GPIO端口,在嵌入式系统下利用软件编程使GPIO端口输出符合SGPIO协议的且与SClock、SLoad及SdataOut信号实现相同功能的脉冲信号,实现了与现有技术中通过配置SGPIO专用控制器寄存器输出SGPIO信号一样的效果;通过此软件模拟方式,不需要系统级芯片集成SGPIO专用控制器,通过底层的软件编程控制GPIO寄存器实现SGPIO的波形和时序,并向上层调用者提供易用的API接口,为系统级芯片的设计减少控制器成本的同时还减少了端口数量。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115223606B_ABST
    Figure CN115223606B_ABST
Patent Text Reader

Abstract

The application provides a hard disk lighting method, system, storage medium and equipment, the method comprises the following steps: determining a plurality of GPIO ports to be used based on the SGPIO bus protocol, the plurality of GPIO ports comprising a first GPIO port, a second GPIO port and a third GPIO port corresponding to SClock signals, SLoad signals and SDataOut signals in the SGPIO bus respectively; receiving the initialization indication of the plurality of GPIO ports by the user, and initializing the plurality of GPIO ports based on the initialization indication; receiving the hard disk lighting indication issued by the user, and making the first GPIO port and the second GPIO port output pulse signals of corresponding level states in turn based on the hard disk lighting indication and the GPIO protocol; traversing the lights of all hard disks, and making the third GPIO port output pulse signals of corresponding level states according to the light state information in the hard disk lighting indication, and realizing the lighting of the corresponding hard disk based on the pulse signals output by the third GPIO port. The application makes the GPIO port output pulse signals conforming to the SGPIO protocol in a software simulation mode, thereby reducing the cost of the system-on-chip.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of hard disk technology, and in particular to a hard disk illumination method, system, storage medium, and device. Background Technology

[0002] The SGPIO bus, or Serial GPIO bus, is a bus defined by the SFF (Small Form Factor) committee. It is used by the global server industry for communication between host bus adapters (HBAs) / redundant arrays of inexpensive disks (RAID) controllers and SAS / SATA hard drive backplanes. The HBA / RAID controller uses the SGPIO bus to obtain the status of the hard drive sockets on the backplane and to send hard drive LED (light-emitting diode) status indication signals.

[0003] In existing technologies, such as the published patent document "A Signal Management Device, Method and Server for a Server," a separate CPLD (Complex Programmable Logic Device) is used to parse and generate SGPIO signals; the published patent document "A Hard Disk Expansion Device" also uses a dedicated SGPIO controller on the SOC (System-on-a-Chip) to parse and generate SGPIO signals. Using either a CPLD or a dedicated SGPIO controller increases both cost and space requirements. Summary of the Invention

[0004] In view of this, the purpose of this invention is to provide a hard disk LED lighting method, system, storage medium and device to solve the problem that in the prior art, SGPIO signals can only be generated and parsed through a dedicated SGPIO controller or CPLD on a system-on-a-chip, which leads to increased hardware costs and circuit board area.

[0005] To achieve the above objectives, the present invention provides a hard disk LED lighting method, comprising the following steps:

[0006] Based on the SGPIO bus protocol, multiple GPIO ports to be used are determined. These multiple GPIO ports include a first GPIO port, a second GPIO port, and a third GPIO port, which correspond to the SClock signal, SLoad signal, and SDataOut signal in the SGPIO bus, respectively.

[0007] Receive initialization instructions from the user for multiple GPIO ports, and initialize the multiple GPIO ports based on the initialization instructions;

[0008] Receive the hard drive light indicator sent by the user, and based on the hard drive light indicator and the GPIO protocol, make the first GPIO port and the second GPIO port output pulse signals with corresponding level states in sequence;

[0009] Iterate through all the LEDs on the hard drives and, based on the LED status information in the hard drive LED indicator, output a pulse signal with the corresponding level status on the third GPIO port. Then, based on the pulse signal output by the third GPIO port, activate the corresponding hard drive LED.

[0010] In some embodiments, initializing multiple GPIO ports based on an initialization instruction includes:

[0011] Read the port numbers of multiple GPIO ports, configure the initial state of multiple GPIO ports, including at least the initial level state, and initialize the clock of the GPIO to be used.

[0012] In some embodiments, the method of causing the first GPIO port and the second GPIO port to sequentially output pulse signals of corresponding level states based on the hard disk indicator and the GPIO protocol includes:

[0013] Based on the hard drive LED indicator and GPIO protocol, the first GPIO port outputs a pulse signal with the corresponding level state and maintains it for a specified number of clock cycles.

[0014] The second GPIO port outputs a pulse signal with the corresponding level state and maintains it for a specified number of clock cycles.

[0015] In some embodiments, causing the third GPIO port to output a pulse signal with a corresponding level state based on the lamp status information in the hard disk LED indicator includes:

[0016] Based on the lamp status information in the hard drive LED indicator, the third GPIO port outputs a pulse signal with the corresponding level status and maintains it for a specified number of clock cycles.

[0017] In some embodiments, the level state is a high level state or a low level state, and the lamp status information is a first status information corresponding to the high level state or a second status information corresponding to the low level state.

[0018] In some embodiments, the hard drive indicator includes a status indication of the corresponding light on all hard drives, including an on or off state.

[0019] In some embodiments, the lights for each hard drive include at least an activity indicator, a fault indicator, and a location indicator.

[0020] In another aspect, the present invention provides a hard disk illumination system, comprising:

[0021] The port signal module is configured to determine multiple GPIO ports to be used based on the SGPIO bus protocol. The multiple GPIO ports include a first GPIO port, a second GPIO port, and a third GPIO port, which correspond to the SClock signal, SLoad signal, and SDataOut signal in the SGPIO bus, respectively.

[0022] The initialization module is configured to receive user initialization instructions for multiple GPIO ports and initialize the multiple GPIO ports based on the initialization instructions.

[0023] The output module is configured to receive hard drive LED indicators from the user and, based on the hard drive LED indicators and the GPIO protocol, sequentially output pulse signals with corresponding level states from the first and second GPIO ports; and

[0024] The LED module is configured to traverse the LEDs of all hard drives and, based on the LED status information in the hard drive LED indicator, outputs a pulse signal with the corresponding level status on the third GPIO port, and implements LED lighting for the corresponding hard drive based on the pulse signal output from the third GPIO port.

[0025] In another aspect, the present invention provides a computer-readable storage medium storing computer program instructions that, when executed by a processor, implement the above-described method.

[0026] In another aspect, the present invention provides a computer device including a memory and a processor, wherein the memory stores a computer program that, when executed by the processor, performs the above-described method.

[0027] The present invention has at least the following beneficial technical effects:

[0028] This invention utilizes multiple GPIO ports in an embedded system to enable software programming, allowing the GPIO ports to output pulse signals conforming to the SGPIO protocol and performing the same function as the SClock, SLoad, and SdataOut signals. This achieves the same effect as the existing technology of outputting SGPIO signals by configuring dedicated SGPIO controller registers. Through this software simulation method, there is no need for a dedicated SGPIO controller integrated into the system-on-a-chip (SoC). The waveform and timing of SGPIO are controlled by low-level software programming of the GPIO registers, and an easy-to-use API interface is provided to upper-level callers. This reduces controller costs and the number of ports in the design of the SoC. Attached Figure Description

[0029] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other embodiments can be obtained based on these drawings without creative effort.

[0030] Figure 1 This is a schematic diagram of a hard disk LED lighting method provided according to an embodiment of the present invention;

[0031] Figure 2 This is a schematic diagram of typical SGPIO signal relationships defined by SFF-8485 according to an embodiment of the present invention;

[0032] Figure 3 This is a schematic diagram of a software implementation framework for simulating SGPIO using GPIO, provided according to an embodiment of the present invention.

[0033] Figure 4 According to Figure 3 Provided flowchart related to Action_Start;

[0034] Figure 5 According to Figure 3 Provided flowchart related to Action_Set;

[0035] Figure 6 This is a schematic diagram of a hard disk LED lighting system provided according to an embodiment of the present invention;

[0036] Figure 7 This is a schematic diagram of a computer-readable storage medium for implementing a hard disk LED lighting method according to an embodiment of the present invention;

[0037] Figure 8 This is a schematic diagram of the hardware structure of a computer device for performing a hard disk lighting method according to an embodiment of the present invention. Detailed Implementation

[0038] To make the objectives, technical solutions, and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to specific examples and the accompanying drawings.

[0039] It should be noted that all uses of "first" and "second" in the embodiments of the present invention are for the purpose of distinguishing two different entities or different parameters with the same name. Therefore, "first" and "second" are merely for convenience of expression and should not be construed as limiting the embodiments of the present invention. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, such as other steps or units inherent in a process, method, system, product, or device that includes a series of steps or units.

[0040] Based on the above objectives, the first aspect of the present invention provides an embodiment of a hard disk lighting method. Figure 1 The diagram shown is a schematic representation of an embodiment of the hard disk LED lighting method provided by the present invention. Figure 1 As shown, the embodiments of the present invention include the following steps:

[0041] Step S10: Determine multiple GPIO ports to be used based on the SGPIO bus protocol. The multiple GPIO ports include a first GPIO port, a second GPIO port, and a third GPIO port, which correspond to the SClock signal, SLoad signal, and SDataOut signal in the SGPIO bus, respectively.

[0042] Step S20: Receive initialization instructions from the user for multiple GPIO ports, and initialize the multiple GPIO ports based on the initialization instructions;

[0043] Step S30: Receive the hard drive light indicator sent by the user, and based on the hard drive light indicator and the GPIO protocol, make the first GPIO port and the second GPIO port output pulse signals of corresponding level states in sequence.

[0044] Step S40: Traverse all the LEDs on the hard drives, and output the corresponding level pulse signal from the third GPIO port according to the LED status information in the hard drive LED indicator, and realize the LED of the corresponding hard drive based on the pulse signal output from the third GPIO port.

[0045] This invention utilizes multiple GPIO ports in an embedded system to programmatically output pulse signals that conform to the SGPIO protocol and perform the same functions as the SClock, SLoad, and SdataOut signals. This achieves the same effect as configuring a dedicated SGPIO controller register to output SGPIO signals in existing technologies. This software simulation eliminates the need for a dedicated SGPIO controller integrated into the system-on-a-chip (SoC). By controlling the GPIO registers through low-level software programming, the waveform and timing of SGPIO are implemented, and an easy-to-use API interface is provided to upper-level callers. This reduces controller costs and the number of ports in SoC design.

[0046] GPIO (General-purpose input / output) is similar in function to P0-P3 of the 8051 microcontroller. Its pins can be freely used by the user through programming. Depending on practical considerations, the pins can be used as general-purpose inputs (GPI), general-purpose outputs (GPO), or general-purpose input and outputs (GPIO). For inputs, the pin level can be determined by reading a register; for outputs, a high or low level can be set by writing to a register; other special functions are controlled by separate registers.

[0047] SGPIO (Serial General-purpose input / output) is a bus protocol developed by the SFF committee for communication between RAID (Redundant Arrays of Inexpensive Disks) / HBA (Host Bus Adapter) cards and hard drive backplanes.

[0048] Figure 2 This is a schematic diagram illustrating typical SGPIO signal relationships defined by SFF-8485 (SFF being a committee) according to an embodiment of the present invention. For example... Figure 2 As shown in Table 1, the signals of the SGPIO bus (Serial General-purpose input / output, a bus protocol defined by the SFF committee for communication between RAID / HBA cards and hard drive backplanes) defined by SFF-8485 are as follows:

[0049] Table 1 SGPIO signal definitions

[0050]

[0051] In some embodiments, the lights for each hard drive include at least an activity indicator, a fault indicator, and a location indicator.

[0052] According to the protocol, every 3 bits in the bitstream on SDataOut and SDataIn indicate the status of a Drive (hard drive), representing the status of the activity / locate / error indicator lights (activity / location / fault indicators), respectively. The bitstream is restarted after the SLoad model is set to 1. The bitstream contains key information for at least 4 drives. The bitstream does not need to be the same length each time; it can end at any position of the 3rd bit of Drive3 and start a new round of bitstream transmission.

[0053] In some embodiments, initializing multiple GPIO ports based on an initialization instruction includes: reading the port numbers of multiple GPIO ports, configuring an initial state for the multiple GPIO ports, the initial state including at least an initial level state, and initializing the GPIO clock to be used.

[0054] In some embodiments, the method of causing the first GPIO port and the second GPIO port to sequentially output pulse signals of corresponding level states based on the hard disk light indicator and the GPIO protocol includes: causing the first GPIO port to output pulse signals of corresponding level states based on the hard disk light indicator and the GPIO protocol, and maintaining them for a specified number of clock cycles; and causing the second GPIO port to output pulse signals of corresponding level states, and maintaining them for a specified number of clock cycles.

[0055] In some embodiments, causing the third GPIO port to output a pulse signal of a corresponding level state according to the lamp status information in the hard disk lamp indicator includes: causing the third GPIO port to output a pulse signal of a corresponding level state according to the lamp status information in the hard disk lamp indicator, and maintaining it for a specified number of clock cycles.

[0056] In some embodiments, the level state is a high level state or a low level state, and the lamp status information is a first status information corresponding to the high level state or a second status information corresponding to the low level state.

[0057] In some embodiments, the hard drive indicator includes a status indication of the corresponding light on all hard drives, including an on or off state.

[0058] The following are specific embodiments of the hard disk LED lighting method of the present invention:

[0059] Figure 3 This is a schematic diagram of a software implementation framework for simulating SGPIO using GPIO, provided according to an embodiment of the present invention. Figure 3 As shown, this embodiment encapsulates an SGPIO_HAL (SGPIO Hardware Abstraction Layer) layer on top of the GPIO_DEV (GPIO Device) driver layer of the embedded operating system, providing upper-layer users with API (Application Program Interface) functions to implement hard disk LED lighting functions. Internally, it implements basic SGPIO signal waveforms by calling GPIO driver layer functions.

[0060] I. The API interfaces provided to users include:

[0061] Led_Ctrl_Init: Initializes the Led_Ctrl port;

[0062] Led_Ctrl_Action(uint8 drive_num,struct driveStatus*pdrive_status):

[0063] The specific interface for controlling the LED status is defined as follows: drive_num is the total number of drives (hard drives) that SGPIO needs to control, and pdrive_status indicates the active / error / locate LED status that each drive needs to display.

[0064]

[0065] II. The SGPIO_HAL layer interface includes:

[0066] Sgpio_Port_Init: Initializes and configures the GPIO ports that will be used.

[0067] SClock_High / Low: Configures the SClock port with high or low voltage levels;

[0068] SLoad_High / Low: Configures the high / low level of the SLoad port;

[0069] SDataOut_High / Low: Configures the high / low level of the SDataOut port;

[0070] Action_Set(struct driveStatus*pdrive_status): Sets the LED status of a single drive, with the specific status indicated by pdrive_status (i.e., the hard drive LED indicator).

[0071] Action_Start: Configures the SClock and SLoad signals before Action_Set.

[0072] III. The GPIO_DEV layer functions called include:

[0073] RCC_GPIO_CLK_INIT: Initializes the clock for the GPIO family used;

[0074] GPIO_INIT: Initializes the parameters of the GPIO ports used, such as port number, input / output direction, pull-up / pull-down type, and speed.

[0075] GPIO_OUT: Sets the high and low levels of the output of the specified GPIO port, which is achieved by writing to the register.

[0076] During initialization, LED_CTRL_INIT mainly uses the GPIO_OUT interface to configure the GPIO ports that need to be used, which are read from the configuration file or global variables, to their default states (open-drain output / pull-up / high speed / default level low), and initializes the GPIO clock to put the GPIO ports into the ready state.

[0077] Figure 4 According to Figure 3 The provided flowchart illustrates the Action_Start process. (Example) Figure 4 As shown, when Led_Ctrl_Action executes, it first calls Action_Start, which pulls up the clock signal and the SLoad signal as specified in the protocol, indicating that configuration has begun. HALF_CYCLE represents half a clock cycle, which can be configured from 5µs to 17ms according to the protocol.

[0078] Figure 5 According to Figure 3 The provided flowchart illustrates the Action_Set process. (For example...) Figure 5 As shown, after the Action_Start process is completed, Action_Set (i.e. Active_Set) is called to configure each of the drive_num (number of hard drives).

[0079] This embodiment, on an embedded operating system, encapsulates the GPIO underlying driver interface provided by the operating system to realize the simulation of SGPIO signals that conform to the waveform and timing requirements specified by the SFF-8485 protocol through software.

[0080] A second aspect of the present invention also provides a hard disk lighting system. Figure 6 The diagram shown is a schematic representation of an embodiment of the hard disk LED lighting system provided by the present invention. Figure 6As shown, a hard drive LED lighting system includes: a port signal module 10, configured to determine multiple GPIO ports to be used based on the SGPIO bus protocol, the multiple GPIO ports including a first GPIO port, a second GPIO port, and a third GPIO port corresponding to the SClock signal, SLoad signal, and SDataOut signal in the SGPIO bus, respectively; an initialization module 20, configured to receive user initialization instructions for the multiple GPIO ports and initialize the multiple GPIO ports based on the initialization instructions; an output module 30, configured to receive hard drive LED lighting instructions from the user and, based on the hard drive LED lighting instructions and the GPIO protocol, cause the first GPIO port and the second GPIO port to sequentially output pulse signals of corresponding level states; and an LED lighting module 40, configured to traverse the LEDs of all hard drives and, according to the LED status information in the hard drive LED lighting instructions, cause the third GPIO port to output pulse signals of corresponding level states, and realize the lighting of the corresponding hard drive based on the pulse signals output by the third GPIO port.

[0081] The hard disk LED lighting system of this invention uses multiple GPIO ports and software programming in an embedded system to output pulse signals that conform to the SGPIO protocol and perform the same function as the SClock, SLoad, and SdataOut signals. This achieves the same effect as the prior art of outputting SGPIO signals by configuring a dedicated SGPIO controller register. Through this software simulation method, there is no need for a dedicated SGPIO controller to be integrated into the system-on-a-chip. The waveform and timing of SGPIO are realized by controlling the GPIO register through low-level software programming, and an easy-to-use API interface is provided to the upper-level caller. This reduces the controller cost and the number of ports for the design of the system-on-a-chip.

[0082] A third aspect of the present invention also provides a computer-readable storage medium. Figure 7 A schematic diagram of a computer-readable storage medium implementing a hard disk LED lighting method according to an embodiment of the present invention is shown. Figure 7 As shown, the computer-readable storage medium 3 stores computer program instructions 31. When executed by the processor, the computer program instructions 31 perform the following steps:

[0083] Based on the SGPIO bus protocol, multiple GPIO ports to be used are determined. These multiple GPIO ports include a first GPIO port, a second GPIO port, and a third GPIO port, which correspond to the SClock signal, SLoad signal, and SDataOut signal in the SGPIO bus, respectively.

[0084] Receive initialization instructions from the user for multiple GPIO ports, and initialize the multiple GPIO ports based on the initialization instructions;

[0085] Receive the hard drive light indicator sent by the user, and based on the hard drive light indicator and the GPIO protocol, make the first GPIO port and the second GPIO port output pulse signals with corresponding level states in sequence;

[0086] Iterate through all the LEDs on the hard drives and, based on the LED status information in the hard drive LED indicator, output a pulse signal with the corresponding level status on the third GPIO port. Then, based on the pulse signal output by the third GPIO port, activate the corresponding hard drive LED.

[0087] In some embodiments, initializing multiple GPIO ports based on an initialization instruction includes: reading the port numbers of multiple GPIO ports, configuring an initial state for the multiple GPIO ports, the initial state including at least an initial level state, and initializing the GPIO clock to be used.

[0088] In some embodiments, the method of causing the first GPIO port and the second GPIO port to sequentially output pulse signals of corresponding level states based on the hard disk light indicator and the GPIO protocol includes: causing the first GPIO port to output pulse signals of corresponding level states based on the hard disk light indicator and the GPIO protocol, and maintaining them for a specified number of clock cycles; and causing the second GPIO port to output pulse signals of corresponding level states, and maintaining them for a specified number of clock cycles.

[0089] In some embodiments, causing the third GPIO port to output a pulse signal of a corresponding level state according to the lamp status information in the hard disk lamp indicator includes: causing the third GPIO port to output a pulse signal of a corresponding level state according to the lamp status information in the hard disk lamp indicator, and maintaining it for a specified number of clock cycles.

[0090] In some embodiments, the level state is a high level state or a low level state, and the lamp status information is a first status information corresponding to the high level state or a second status information corresponding to the low level state.

[0091] In some embodiments, the hard drive indicator includes a status indication of the corresponding light on all hard drives, including an on or off state.

[0092] In some embodiments, the lights for each hard drive include at least an activity indicator, a fault indicator, and a location indicator.

[0093] It should be understood that, without conflict, all the embodiments, features and advantages described above for the hard disk lighting method according to the present invention are equally applicable to the hard disk lighting system and storage medium according to the present invention.

[0094] A fourth aspect of the present invention also provides a computer device, including as follows: Figure 8The memory 402 and processor 401 shown are provided. The memory 402 stores a computer program that, when executed by the processor 401, implements the method of any of the above embodiments.

[0095] like Figure 8 The diagram shown is a hardware structure schematic of an embodiment of a computer device for executing the hard disk LED lighting method provided by the present invention. Figure 8 Taking the computer device shown as an example, this computer device includes a processor 401 and a memory 402, and may also include an input device 403 and an output device 404. The processor 401, memory 402, input device 403, and output device 404 can be connected via a bus or other means. Figure 4 Taking a bus connection as an example, input device 403 can receive input digital or character information, and generate key signal inputs related to user settings and function control of the hard disk illumination system. Output device 404 may include display devices such as a display screen.

[0096] Memory 402, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules corresponding to the hard disk lighting method in this embodiment. Memory 402 may include a program storage area and a data storage area, wherein the program storage area may store the operating system and application programs required for at least one function; the data storage area may store data created by using the hard disk lighting method, etc. In addition, memory 402 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, memory 402 may optionally include memory remotely located relative to processor 401, and these remote memories can be connected to the local module via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0097] The processor 401 executes various server functions and data processing by running non-volatile software programs, instructions, and modules stored in the memory 402, thereby implementing the hard disk lighting method of the above method embodiment.

[0098] Finally, it should be noted that the computer-readable storage medium (e.g., memory) described herein can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. By way of example, and not limitation, non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which can act as external cache memory. By way of example, and not limitation, RAM can be obtained in various forms, such as synchronous RAM (DRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct Rambus RAM (DRRAM). The storage devices disclosed herein are intended to include, but are not limited to, these and other suitable types of memory.

[0099] Those skilled in the art will also understand that the various exemplary logic blocks, modules, circuits, and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software, or a combination of both. To clearly illustrate this interchangeability between hardware and software, the functionality of various illustrative components, blocks, modules, circuits, and steps has been generally described. Whether this functionality is implemented as software or as hardware depends on the specific application and the design constraints imposed on the system as a whole. Those skilled in the art can implement the functionality in various ways for each specific application, but such implementation decisions should not be construed as departing from the scope of the embodiments disclosed herein.

[0100] The various exemplary logic blocks, modules, and circuits described herein can be implemented or performed using the following components designed to perform the functions herein: general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general-purpose processor may be a microprocessor, but alternatively, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors combined with a DSP, and / or any other such configuration.

[0101] The above are exemplary embodiments disclosed in this invention. However, it should be noted that various changes and modifications can be made without departing from the scope of the embodiments of this invention as defined by the claims. The functions, steps, and / or actions of the methods according to the disclosed embodiments described herein do not need to be performed in any particular order. Furthermore, although the elements disclosed in the embodiments of this invention may be described or claimed individually, they may be understood as multiple unless explicitly limited to a singular number.

[0102] It should be understood that, as used herein, the singular form "a" is intended to include the plural form as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations of one or more of the associatedly listed items. The embodiment numbers disclosed above are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0103] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of the invention (including the claims) is limited to these examples. Within the framework of the invention, technical features of the above embodiments or different embodiments can be combined, and many other variations of different aspects of the invention exist, which are not provided in the details for the sake of brevity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the invention should be included within the protection scope of the invention.

Claims

1. A method for igniting a hard disk LED, characterized in that, Includes the following steps: Based on the SGPIO bus protocol, multiple GPIO ports to be used are determined, including a first GPIO port, a second GPIO port, and a third GPIO port that correspond to the SClock signal, SLoad signal, and SDataOut signal in the SGPIO bus, respectively. Receive initialization instructions from the user for the plurality of GPIO ports, and initialize the plurality of GPIO ports based on the initialization instructions; wherein, initializing the plurality of GPIO ports based on the initialization instructions includes: reading the port numbers of the plurality of GPIO ports, and configuring an initial state for the plurality of GPIO ports, wherein the initial state includes at least an initial level state; Receive the hard drive light indicator sent by the user, and based on the hard drive light indicator and the GPIO protocol, make the first GPIO port and the second GPIO port output pulse signals with corresponding level states in sequence; The system iterates through all the LEDs on the hard drives and outputs a pulse signal with the corresponding level state on the third GPIO port based on the LED status information in the hard drive LED indicator. The system then activates the corresponding hard drive LED based on the pulse signal output from the third GPIO port.

2. The method according to claim 1, characterized in that, Initializing the plurality of GPIO ports based on the initialization instruction further includes: Initialize the GPIO clock to be used.

3. The method according to claim 1, characterized in that, Based on the hard disk indicator and the GPIO protocol, the first GPIO port and the second GPIO port sequentially output pulse signals with corresponding level states, including: Based on the hard disk indicator and the GPIO protocol, the first GPIO port outputs a pulse signal with a corresponding level state and maintains it for a specified number of clock cycles. The second GPIO port outputs a pulse signal with the corresponding level state and maintains it for a specified number of clock cycles.

4. The method according to claim 1, characterized in that, The lamp status information in the hard disk LED indicator causes the third GPIO port to output a pulse signal with a corresponding level status, including: Based on the lamp status information in the hard disk light indicator, the third GPIO port outputs a pulse signal with the corresponding level status and maintains it for a specified number of clock cycles.

5. The method according to claim 1, characterized in that, The level state is either a high level state or a low level state, and the lamp status information is either a first status information corresponding to the high level state or a second status information corresponding to the low level state.

6. The method according to claim 1, characterized in that, The hard drive indicator lights include status indications for the corresponding lights on all the hard drives, and the status includes an on or off state.

7. The method according to claim 1, characterized in that, Each hard drive's indicator lights should include at least an activity indicator, a fault indicator, and a location indicator.

8. A hard disk illumination system, characterized in that, include: The port signal module is configured to determine multiple GPIO ports to be used based on the SGPIO bus protocol. The multiple GPIO ports include a first GPIO port, a second GPIO port, and a third GPIO port, which correspond to the SClock signal, SLoad signal, and SDataOut signal in the SGPIO bus, respectively. An initialization module is configured to receive initialization instructions from the user for the plurality of GPIO ports, and to initialize the plurality of GPIO ports based on the initialization instructions; wherein, initializing the plurality of GPIO ports based on the initialization instructions includes: reading the port numbers of the plurality of GPIO ports, and configuring an initial state for the plurality of GPIO ports, wherein the initial state includes at least an initial level state; The output module is configured to receive hard drive LED indicators from the user, and based on the hard drive LED indicators and the GPIO protocol, to sequentially output pulse signals with corresponding level states from the first GPIO port and the second GPIO port; and The LED module is configured to traverse the LEDs of all hard drives, and to output a pulse signal with the corresponding level state on the third GPIO port according to the LED status information in the hard drive LED indicator, and to realize the LED of the corresponding hard drive based on the pulse signal output by the third GPIO port.

9. A computer-readable storage medium, characterized in that, The system stores computer program instructions that, when executed by a processor, implement the method as described in any one of claims 1-7.

10. A computer device, comprising a memory and a processor, characterized in that, The memory stores a computer program, which, when executed by the processor, performs the method as described in any one of claims 1-7.