Hard disk lamp state control method and device, computer device and storage medium

By connecting the first programmable logic device on the disk controller board to the second programmable logic device on the hard disk backplane, and receiving and grouping SGPIO signals, the error problem of hard disk status indicator lights under different disk controller schemes is solved, and the correct indication and convenient management of hard disk status are realized.

CN116825152BActive Publication Date: 2026-08-25INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310615391.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-29
Publication Date
2026-08-25
Estimated Expiration
2043-05-29

AI Technical Summary

Technical Problem

Because different disk controller solutions implement the SGPIO signal of the hard disk indicator light in different ways, the traditional method requires manual setting of the DIP switch, which can easily lead to incorrect status of the hard disk status indicator light, affecting the management, monitoring and maintenance of the server hard disk.

Method used

By setting a first programmable logic device on the disk controller board and connecting it to a second programmable logic device on the hard disk backplane, the SGPIO signals are received and grouped, and then decoded into signals with a fixed number of bits, thus unifying the decoding method and avoiding human configuration errors.

Benefits of technology

It ensures correct indication of hard drive status lights under different disk controller schemes, avoids errors caused by human operation, and improves the convenience of hard drive management and maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116825152B_ABST
    Figure CN116825152B_ABST
Patent Text Reader

Abstract

The application relates to a hard disk lamp state control method and device, computer equipment and a storage medium. The method comprises the following steps: a first programmable logic device receives an SGPIO signal, the SGPIO signal comprising control data corresponding to each hard disk lamp; the first programmable logic device groups the SGPIO signal according to a preset bit number; and the first programmable logic device sends the SGPIO signal corresponding to each group to a second programmable logic device, so that the second programmable logic device decodes the SGPIO signal corresponding to each group and controls the state of each hard disk lamp according to the control data obtained after decoding. The method can uniformly convert the received SGPIO signal into a signal with a fixed bit number, which facilitates the second programmable logic device to decode in only one mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a disk lighting method, apparatus, computer device, and storage medium. Background Technology

[0002] With the development of computer technology, server disk expansion technologies have emerged. Server hard drive expansion offers various disk controller options, such as Intel platform PCH (Platform Controller Hub) or CPU-direct SSATA (Support SATA) and SATA (Serial ATA), as well as SAS (Serial Attached SCSI) and SATA expansion via RAID (Redundant Arrays of Independent Disks) cards, and SAS and SATA expansion via RAID cards connected to an expander backplane. Regardless of the method, convenient management, monitoring, and maintenance of the hard drives are required, and the hard drive operating status should be clearly visible via hard drive indicator lights in the data center. Because different disk controller solutions use different SGPIO (Serial General Purpose Input / Output) signal implementation schemes for the hard drive indicator lights, the hard drive backplane CPLD (Complex Programmable Logic Device) needs to support decoding schemes for multiple SGPIO signals simultaneously.

[0003] In traditional solutions, the CPLD is typically instructed to use a DIP switch on the hard drive backplane to select one of several SGPIO decoding methods. However, this traditional method requires manual DIP switch configuration, and incorrect settings can lead to incorrect hard drive status indicator lights, impacting server hard drive management, monitoring, and maintenance. Summary of the Invention

[0004] Therefore, it is necessary to provide a hard disk light status control method, device, computer equipment, and storage medium to address the aforementioned technical problems.

[0005] A method for controlling the status of hard disk indicator lights, applied to a disk control board, wherein the disk control board is provided with a first programmable logic device, the first programmable logic device is connected to a second programmable logic device disposed on the backplane of the hard disk, and the second programmable logic device is also connected to each hard disk indicator light disposed on the backplane of the hard disk, the method comprising:

[0006] The first programmable logic device receives SGPIO signals, which include control data corresponding to each hard disk light.

[0007] The first programmable logic device groups the SGPIO signals according to a preset number of bits;

[0008] The first programmable logic device sends the SGPIO signals corresponding to each group to the second programmable logic device, so that the second programmable logic device can decode the SGPIO signals corresponding to each group and control the state of each hard disk light according to the control data obtained after decoding.

[0009] In one embodiment, the first programmable logic device described above groups the SGPIO signals according to a preset number of bits, including:

[0010] The first programmable logic device decodes the SGPIO signal to obtain the sequence of control data corresponding to each hard disk light;

[0011] The first programmable logic device obtains a preset number of bits in the sequence according to the order of each control data in the sequence and forms a group for grouping.

[0012] In one embodiment, the above method further includes:

[0013] When the number of bits of control data in a target group is less than the preset number of bits, the first programmable logic device fills the target group with a preset value so that the number of bits of control data in the target group is the preset number of bits.

[0014] In one embodiment, the above method further includes:

[0015] The first programmable logic device converts the control data corresponding to each group into SGPIO signals, thus obtaining the SGPIO signals corresponding to each group.

[0016] In one embodiment, the disk control board further includes a disk controller and various ports. The disk controller is connected to a first programmable logic device, and each port is connected to the disk controller. The disk backplane also includes hard drives corresponding to each hard drive indicator light. Each hard drive is connected to each port, and each port has a preset order. The method further includes:

[0017] The disk controller determines the order of each control data in the sequence according to the preset sorting, so as to obtain the SGPIO signal and send it to the first programmable logic device;

[0018] The first programmable logic device receives the SGPIO signal sent by the disk controller.

[0019] In one embodiment, the aforementioned hard disk backplane includes multiple backplanes, each connected to a first programmable logic device (PLD). The first PLD sends SGPIO signals corresponding to each group to the PLD CPLD, so that the PLD CPLD decodes the SGPIO signals corresponding to each group and controls the state of the hard disk indicator lights based on the decoded signals, including:

[0020] The first programmable logic device determines the hard disk LED corresponding to each control data according to the order of the control data in the SGPIO signals of each group;

[0021] The first programmable logic device determines the hard disk backplane corresponding to each group based on the hard disk LEDs corresponding to each control data and the hard disk backplane to which each hard disk LED belongs.

[0022] The first programmable logic device sends the SGPIO signals corresponding to each group to the corresponding second programmable logic device, so that each second programmable logic device can decode the SGPIO signals of the corresponding group and control the status of the indicator lights on the corresponding hard disk backplane according to the decoded signals.

[0023] A hard disk indicator light status control system includes a first programmable logic device and a disk controller mounted on a disk control board, and a second programmable logic device mounted on the backplane of the hard disk. The first programmable logic device and the second programmable logic device are connected, and the disk controller is connected to the first programmable logic device.

[0024] The first programmable logic device is used to receive SGPIO signals, which include control data corresponding to each hard disk light. The SGPIO signals are grouped according to a preset number of bits, and the SGPIO signals corresponding to each group are sent to the second programmable logic device.

[0025] The second programmable logic device is used to receive the SGPIO signals corresponding to each group sent by the first programmable logic device, decode the SGPIO signals corresponding to each group, and control the state of each hard disk light according to the control data obtained after decoding.

[0026] The disk controller is used to send SGPIO signals to the first programmable logic device.

[0027] A hard disk indicator light status control device is applied to a disk control board. The disk control board is equipped with a first programmable logic device, which is connected to a second programmable logic device disposed on the backplane of the hard disk. The second programmable logic device is also connected to each hard disk indicator light disposed on the backplane of the hard disk. The device includes:

[0028] The receiving module is used by the first programmable logic device to receive SGPIO signals, which include control data corresponding to each hard disk light.

[0029] The grouping module is used by the first programmable logic device to group the SGPIO signals according to a preset number of bits;

[0030] The transmitting module is used by the first programmable logic device to send the SGPIO signals corresponding to each group to the second programmable logic device, so that the second programmable logic device can decode the SGPIO signals corresponding to each group and control the state of each hard disk light according to the control data obtained after decoding.

[0031] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it performs the following steps:

[0032] The first programmable logic device receives SGPIO signals, which include control data corresponding to each hard disk light.

[0033] The first programmable logic device groups the SGPIO signals according to a preset number of bits;

[0034] The first programmable logic device sends the SGPIO signals corresponding to each group to the second programmable logic device, so that the second programmable logic device can decode the SGPIO signals corresponding to each group and control the state of each hard disk light according to the control data obtained after decoding.

[0035] A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, performs the following steps:

[0036] The first programmable logic device receives SGPIO signals, which include control data corresponding to each hard disk light.

[0037] The first programmable logic device groups the SGPIO signals according to a preset number of bits;

[0038] The first programmable logic device sends the SGPIO signals corresponding to each group to the second programmable logic device, so that the second programmable logic device can decode the SGPIO signals corresponding to each group and control the state of each hard disk light according to the control data obtained after decoding.

[0039] The aforementioned hard disk indicator status control method, device, computer equipment, and storage medium are applied to a first programmable logic device (PLD). The first PLD is connected to a second PLD, which is also connected to each hard disk indicator light located on the hard disk backplane. The method uses the first PLD to group SGPIO signals according to a preset number of bits, so that regardless of the number of bits of the received SGPIO signal, it can be converted into a signal with a fixed number of bits. Subsequently, the second PLD only needs to be configured with the decoding method corresponding to the fixed number of bits to decode the signal, thus solving the problem of needing to manually configure the SGPIO decoding method on the hard disk backplane and avoiding hard disk status light errors caused by human error. Attached Figure Description

[0040] Figure 1 This is a circuit diagram for controlling the hard disk light status in one embodiment;

[0041] Figure 2 This is a flowchart illustrating a hard disk light status control method in one embodiment;

[0042] Figure 3 This is a system block diagram of a hard disk light status control system in one embodiment;

[0043] Figure 4 This is a circuit diagram for controlling the hard disk light status in one embodiment;

[0044] Figure 5 This is a timing diagram of the SGPIO signals received at the hard disk backplane in one embodiment;

[0045] Figure 6 This is a timing diagram of the SGPIO signals received at the hard disk backplane in one embodiment;

[0046] Figure 7 This is a schematic diagram of a first programmable logic device grouping SGPIO signals in one embodiment;

[0047] Figure 8 This is a schematic diagram illustrating the grouping of control data within each group in one embodiment;

[0048] Figure 9 This is a structural block diagram of a hard disk light status control device in one embodiment;

[0049] Figure 10 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0050] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0051] Please refer to Figure 1 , Figure 1 This is a circuit diagram of a hard disk light status control method provided as an exemplary embodiment of this application. Figure 1 As shown in the diagram, the circuit diagram includes a disk control board, which has a first programmable logic device (PLD). The first PLD is connected to a second PLD located on the backplane of the hard drive. The second PLD is also connected to the corresponding hard drive LEDs of each hard drive located on the backplane of the hard drive.

[0052] The first programmable logic device is used to receive SGPIO signals sent by the disk control module. The SGPIO signals include control data corresponding to each hard disk light. The SGPIO signals are grouped according to a preset number of bits, and the SGPIO signals corresponding to each group are sent to the second programmable logic device so that the second programmable logic device can decode the SGPIO signals corresponding to each group and control the state of each hard disk light according to the control data obtained after decoding.

[0053] The second programmable logic device is used to receive the SGPIO signals corresponding to each group sent by the first programmable logic device, decode the SGPIO signals corresponding to each group, and control the state of each hard disk light according to the control data obtained after decoding.

[0054] The first programmable logic device and the second programmable logic device mentioned above can be CPLD and FPGA, etc.

[0055] In one embodiment, such as Figure 2 As shown, a hard disk light status control method is provided, which can be applied to... Figure 1 Taking the first programmable logic device as an example, the above-mentioned hard disk light status control method is applied to a disk control board. The disk control board is equipped with a first programmable logic device, which is connected to a second programmable logic device located on the backplane of the hard disk. The second programmable logic device is also connected to each hard disk light located on the backplane of the hard disk. The method includes:

[0056] S11. The first programmable logic device receives the SGPIO signal, which includes control data corresponding to each hard disk light.

[0057] In this application, the first programmable logic device can be a simple programmable logic array, such as a PLA, or a complex programmable logic device, such as a CPLD, or an FPGA, etc., without specific limitations. The disk control board can be a RAID (Redundant Arrays of Independent Disks) card, a motherboard, or an Expander backplane.

[0058] The SGPIO (Serial GPIO) signals mentioned above refer to serial general-purpose input / output signals, which are signals transmitted based on serial communication protocols. SGPIO signals are typically used for communication between the initiator (such as a host bus adapter) and the target (such as a backplane). The target typically converts the output serial signal into multiple parallel signals and provides input signals through GPIO. Both the initiator and target can consist of one or more chips. SGPIO is commonly used in high-speed storage interfaces such as SATA or SAS, and it transmits data through four sets of interface signals: SClock, SLoad, SDataOut, and SDataln.

[0059] In this application, SGPIO signals are used for communication between the disk controller board and the hard drive backplane. The disk controller board transmits control data for the hard drive lights on the hard drive backplane to the hard drive backplane via SGPIO signals. Specifically, the aforementioned control data refers to data used to control the state of the hard drive lights on the hard drive backplane. For example, this control data can control the brightness and blinking frequency of the hard drive lights, etc. Each hard drive light state represents a state of the hard drive, including states such as hard drive rebuilding, hard drive failure, hard drive location, hard drive in place and normal, hard drive recognition or deletion, and rebuilding terminated. Each hard drive state can be indicated by the state of the corresponding hard drive light.

[0060] This application transmits control data of the hard drive light status to the hard drive backplane via SGPIO signals in order to control the status of the hard drive light and further indicate the status of the hard drive through the status of the hard drive light.

[0061] S12. The first programmable logic device groups the SGPIO signals according to a preset number of bits.

[0062] In this application, the above-mentioned grouping of SGPIO signals according to a preset number of bits means dividing the SGPIO signals into multiple groups, and the number of bits of control data contained in each group is a preset number of bits.

[0063] In this application, the number of bits of the SGPIO signal varies depending on the type of disk controller card connected to the hard drive backplane. For example, when connected to a RAID card, the SGPIO signal is 12 bits; when connected to a motherboard, it is 24 bits; and when connected to an Expander backplane, it is 72 bits. By grouping the SGPIO signal according to a preset number of bits, this application can uniformly convert the SGPIO signals corresponding to various encoding types into SGPIO signals of a fixed number of bits when the hard drive backplane is connected to different disk controller cards. This allows the hard drive backplane to decode the received SGPIO signals with only one decoding method.

[0064] S13. The first programmable logic device sends the SGPIO signal corresponding to each group to the second programmable logic device so that the second programmable logic device can decode the SGPIO signal corresponding to each group and control the state of each hard disk light according to the control data obtained after decoding.

[0065] In this application, the aforementioned second programmable logic device is disposed on the hard disk backplane and connected to each hard disk LED disposed on the hard disk backplane. It is used to decode the SGPIO signals corresponding to each received group and control the state of each hard disk LED according to the control data of each hard disk LED obtained by decoding.

[0066] In one embodiment, the first programmable logic device described above may group the SGPIO signals according to a preset number of bits, which may include:

[0067] The first programmable logic device decodes the SGPIO signal to obtain the sequence of control data corresponding to each hard disk light;

[0068] The first programmable logic device obtains a preset number of bits in the sequence according to the order of each control data in the sequence and forms a group for grouping.

[0069] In this application, the aforementioned control data refers to the data used to control the corresponding hard disk light. Specifically, the control data for each group of hard disk light modules consists of 3 bits. Each hard disk has one group of hard disk light modules, and each group of hard disk light modules has 3 hard disk lights. The 3 bits of data control the 3 hard disk lights under one group of hard disk light modules. For example, there are 4 hard disk light modules on the backplane of the hard disk. The first hard disk light module includes 3 hard disk lights: LED1-1 (green), LED1-2 (blue), and LED1-3 (red). The control data for LED1-1 (green) is D1-1, and the control data for LED1-2 (blue) and LED1-3 (red) are D1-2 and D1-3, respectively. The states of each hard disk light can be shown in Table 1 below.

[0070] Table 1

[0071]

[0072]

[0073] As shown in Table 1 above, when D1-1 is "0", LED1-1 (green) blinks; when D1-1 is "1", LED1-1 (green) is constantly on. When D1-2 and D1-3 are "00", LED1-2 (blue) is constantly on and LED1-3 (red) is off; when D1-2 and D1-3 are "01", LED1-2 (blue) is off and LED1-3 (red) is constantly on; when D1-2 and D1-3 are "10", LED1-2 (blue) is off and LED1-3 (red) blinks; when D1-2 and D1-3 are "11", LED1-2 (blue) is off and LED1-3 (red) is off.

[0074] The on / off state and flashing state of each hard drive indicator light are used to indicate the status of the corresponding hard drive. For example, a flashing green light indicates reading or writing is in progress, a solid green light indicates the hard drive is present, and a solid green light indicates the hard drive is not present. Similarly, for the blue and red lights, a solid green light indicates the hard drive is functioning normally, a solid blue light indicates the hard drive is located, a solid red light indicates a hard drive error, and a flashing red light indicates the hard drive is being rebuilt.

[0075] In this application, the control data in the aforementioned SGPIO signals have a specific order. Specifically, each hard disk indicator (HDD) LED in the aforementioned SGPIO signals has corresponding control data, and the control data does not exist in the SGPIO signals without any order, but corresponds to a specific order of the HDD LEDs.

[0076] For example, this application can pre-set the control data for controlling the hard disk light LED1-1 to be in the first position, the control data for controlling the hard disk light LED1-2 to be in the second position, and so on, until the control data for controlling the hard disk light LED1-N is in the Nth position.

[0077] Furthermore, when grouping the control data, the control data for each hard disk light is treated as a pre-ordered sequence. This sequence is then grouped by accumulating a preset number of bits sequentially from beginning to end or in reverse. For example, the preset number of bits is 12 bits, and the sequence of the control data is as follows:

[0078] bit1, bit2, bit3, bit4, bit5, bit6, bit7, bit8, bit9, bit10, bit11, bit12, bit13, bit14, bit15, bit16, bit17, bit18, bit19, bit20, bit21, bit22, bit23 and bit24.

[0079] Furthermore, when grouping the above sequences, they are divided into the following two groups:

[0080] First group: bit1, bit2, bit3, bit4, bit5, bit6, bit7, bit8, bit9, bit10, bit11, bit12;

[0081] Second group: bit13, bit14, bit15, bit16, bit17, bit18, bit19, bit20, bit21, bit22, bit23 and bit24.

[0082] In one embodiment, bits 1, 2, and 3 can be control data for hard disk light module 1 (3 hard disk lights LED1-1, LED1-2, and LED1-3); bits 4, 5, and 6 can be control data for hard disk light module 2 (3 hard disk lights LED2-1, LED2-2, and LED2-3); bits 7, 8, and 9 can be control data for hard disk light module 3 (3 hard disk lights LED3-1, LED3-2, and LED3-3); and bits 10, 11, and 12 can be control data for hard disk light module 4 (3 hard disk lights LED4-1, LED4-2, and LED4-3). According to the data, bits 13, 14, and 15 can be the control data for hard disk light module 5 (3 hard disk lights LED5-1, LED5-2, and LED5-3), bits 16, 17, and 18 can be the control data for hard disk light module 6 (3 hard disk lights LED6-1, LED6-2, and LED6-3), bits 19, 20, and 21 can be the control data for hard disk light module 7 (3 hard disk lights LED7-1, LED7-2, and LED7-3), and bits 22, 23, and 24 can be the control data for hard disk light module 8 (3 hard disk lights LED8-1, LED8-2, and LED8-3).

[0083] This application, through this implementation method, can group the received SGPIO signals according to a preset number of bits, so that the number of bits of control data in each group is the preset number of bits. This allows the hard disk backplane to decode the received SGPIO signals uniformly using the method of decoding SGPIO signals with a preset number of bits, without the need to configure multiple encoding methods for SGPIO signals with different bit widths.

[0084] In one embodiment, the above method may further include:

[0085] When the number of bits of control data in a target group is less than the preset number of bits, the first programmable logic device fills the target group with a preset value so that the number of bits of control data in the target group is the preset number of bits.

[0086] In this application, the number of bits of the control data mentioned above refers to the number of bits of the control data. For example, if the control data is 000, then the number of bits of the control data is 3 bits.

[0087] For example, when there are 7 hard drives on the hard drive backplane and the input SGPIO signal is 21 bits, when grouped into 12-bit groups, the number of bits in the second group is 9 bits. If it is less than 12 bits, "000" or "111" is added to the second group. This case indicates that the last hard drive is not connected.

[0088] This implementation method can solve the problem of insufficient bit length in a certain group during grouping by supplementing the preset value, thus achieving flexibility and broadening the scope of application.

[0089] In one embodiment, the above method may further include:

[0090] The first programmable logic device converts the control data corresponding to each group into SGPIO signals, thus obtaining the SGPIO signals corresponding to each group.

[0091] In this application, the first programmable logic device decodes the received SGPIO signal to obtain the control data corresponding to each hard disk lamp. Further, the control data is grouped to obtain each group, and each group includes control data with a preset number of bits. This application needs to send the control data of each group to the hard disk backplane as an SGPIO signal, that is, the control data needs to be converted into an SGPIO signal and sent to the hard disk backplane.

[0092] In one embodiment, the disk control board further includes a disk controller and various ports. The disk controller is connected to a first programmable logic device, and each port is connected to the disk controller. The disk backplane also includes disks corresponding to each hard disk indicator light. Each disk is connected to its respective port, and each port has a preset order. The method may further include:

[0093] The disk controller described above determines the order of each control data in the sequence according to the preset sorting, so as to obtain the SGPIO signal and send it to the first programmable logic device;

[0094] The first programmable logic device mentioned above receives the SGPIO signal sent by the disk controller.

[0095] In this application, the disk controller described above is used to send SGPIO signals to the hard disk backplane. Each of the aforementioned ports is used to connect to the disk interface of the hard disk backplane, which is connected to each hard disk on the backplane. Each port can be connected to the disk controller via a SAS signal line, and each port can be a SAS port.

[0096] In one possible design, the disk controller board further includes a first connector, on which the aforementioned ports are located. This first connector is connected to the disk controller via SAS signal lines and is also connected to the aforementioned first programmable logic device. The hard drive backplane has multiple second connectors corresponding to the first connector; these second connectors are equivalent to the aforementioned hard drive interfaces. Each second connector connects to the first connector and to each hard drive on the hard drive backplane. The disk controller transmits data with the hard drives via SAS signals.

[0097] Specifically, the aforementioned preset order of the ports refers to the pre-setting of the order of each port. The disk controller generates control data corresponding to each port sequentially according to the port order; that is, the disk controller generates control data corresponding to each SAS signal sequentially. Thus, the generated control data has a sorting corresponding to the preset order of each port. In this application, since each control data corresponds one-to-one with a SAS signal, and each SAS signal corresponds one-to-one with each hard drive, and each hard drive corresponds one-to-one with each hard drive LED, each control data also corresponds one-to-one with each hard drive LED. It is precisely because of these correspondences that the second programmable logic device on the hardware backplane can decode the received SGPIO signals of each group, establish a one-to-one correspondence between the decoded control data and each hard drive LED, and further control the state of each hard drive LED based on this one-to-one correspondence.

[0098] In one embodiment, the aforementioned hard disk backplane may include multiple backplanes, each connected to a first programmable logic device (PLD). The first PLD sends SGPIO signals corresponding to each group to the PLD CPLD, so that the PLD CPLD decodes the SGPIO signals corresponding to each group and controls the state of the hard disk lights based on the decoded signals. This may include:

[0099] The first programmable logic device determines the hard disk LED corresponding to each control data according to the order of the control data in the SGPIO signals of each group;

[0100] The first programmable logic device determines the hard disk backplane corresponding to each group based on the hard disk LEDs corresponding to each control data and the hard disk backplane to which each hard disk LED belongs.

[0101] The first programmable logic device sends the SGPIO signals corresponding to each group to the corresponding second programmable logic device, so that each second programmable logic device can decode the SGPIO signals of the corresponding group and control the status of the indicator lights on the corresponding hard disk backplane according to the decoded signals.

[0102] In this application, the aforementioned hard disk backplane may include at least one, each hard disk backplane is provided with multiple hard disks and corresponding hard disk lights, and each hard disk backplane is also provided with a second programmable logic device and connectors for each port logic of the disk control board.

[0103] For example, the disk controller board connects to two hard drive backplanes, each hard drive backplane including four hard drives and corresponding hard drive LEDs. Specifically, the first hard drive backplane is provided with hard drive LED module 1, hard drive LED module 2, hard drive LED module 3 and hard drive LED module 4. Hard drive LED module 1 includes three hard drive LEDs, namely LED1-1, LED1-2 and LED1-3; hard drive LED module 2 also includes three hard drive LEDs, namely LED2-1, LED2-2 and LED2-3; hard drive LED module 3 also includes three hard drive LEDs, namely LED3-1, LED3-2 and LED3-3; and hard drive LED module 4 also includes three hard drive LEDs, namely LED4-1, LED4-2 and LED4-3. Furthermore, the control data corresponding to each hard drive light is as follows: bit1, bit2 and bit3 control the three hard drive lights LED1-1, LED1-2 and LED1-3 in hard drive light module 1; bit4, bit5 and bit6 control the three hard drive lights LED2-1, LED2-2 and LED2-3 in hard drive light module 2; bit7, bit8 and bit9 control the three hard drive lights LED3-1, LED3-2 and LED3-3 in hard drive light module 3; and bit10, bit11 and bit12 control the three hard drive lights LED4-1, LED4-2 and LED4-3 in hard drive light module 4.

[0104] The second hard drive backplate is equipped with hard drive light modules 5, 6, 7, and 8. Hard drive light module 5 includes three hard drive lights (LED5-1, LED5-2, and LED5-3), hard drive light module 6 includes three hard drive lights (LED6-1, LED6-2, and LED6-3), hard drive light module 7 includes three hard drive lights (LED7-1, LED7-2, and LED7-3), and hard drive light module 8 includes three hard drive lights (LED8-1, LED8-2, and LED8-3). Furthermore, the control data corresponding to each hard drive light is as follows: bit13, bit14 and bit15 control the three hard drive lights LED5-1, LED5-2 and LED5-3 in hard drive light module 5; bit16, bit17 and bit18 control the three hard drive lights LED6-1, LED6-2 and LED6-3 in hard drive light module 6; bit19, bit20 and bit21 control the three hard drive lights LED7-1, LED7-2 and LED7-3 in hard drive light module 7; and bit12, bit23 and bit24 control the three hard drive lights LED8-1, LED8-2 and LED8-3 in hard drive light module 8.

[0105] When grouping, since the order of each control data corresponds to the hard disk indicator light, the corresponding hard disk indicator light can be determined according to the order of each control data. Furthermore, the hard disk backplane corresponding to the control data of each group is determined according to the relationship between each hard disk indicator light and each hard disk. Then, the SGPIO signal corresponding to each group is sent to the corresponding second programmable logic device.

[0106] That is, based on the order of the first group: bit1, bit2, bit3, bit4, bit5, bit6, bit7, bit8, bit9, bit10, bit11, bit12, and the preset order of each hard drive LED, it can be: Hard drive LED module 1 (3 hard drive LEDs LED1-1, LED1-2, LED1-3), Hard drive LED module 2 (3 hard drive LEDs LED2-1, LED2-2, LED2-3), Hard drive LED module 3 (3 hard drive LEDs LED3-1, LED3-2, LED3-3), and Hard drive LED module 4 (3 hard drive LEDs LED4-1, LED4-2, LED4-3). D4-3), determine that bit1, bit2 and bit3 correspond to control hard disk light module 1 (3 hard disk lights LED1-1, LED1-2, LED1-3), bit4, bit5 and bit6 correspond to control hard disk light module 2 (3 hard disk lights LED2-1, LED2-2, LED2-3), bit7, bit8 and bit9 correspond to control hard disk light module 3 (3 hard disk lights LED3-1, LED3-2, LED3-3), and bit10, bit11 and bit12 correspond to control hard disk light module 4 (3 hard disk lights LED4-1, LED4-2, LED4-3).

[0107] Furthermore, if the hard disk backplane to which the hard disk light module 1 (3 hard disk lights LED1-1, LED1-2, LED1-3), hard disk light module 2 (3 hard disk lights LED2-1, LED2-2, LED2-3), hard disk light module 3 (3 hard disk lights LED3-1, LED3-2, LED3-3), and hard disk light module 4 (3 hard disk lights LED4-1, LED4-2, LED4-3) belong is the first hard disk backplane, then it can be determined that the SGPIO signal of the first group is sent to the second programmable logic device of the first hard disk backplane.

[0108] This application, through its implementation method, can be extended to multiple hard drive backplane application scenarios, thus broadening its applicability. The solution adopted in this application solves the problem of requiring additional manual configuration of the hard drive backplane SGPIO decoding method (not limited to DIP switches, GPIO pull-up / pull-down switches, and I2C software configuration methods), avoiding hard drive status light errors caused by human error.

[0109] In one embodiment, such as Figure 3 As shown, a hard disk light status control system is provided, including a first programmable logic device 311 and a disk controller 312 disposed on a disk control board 31, and a second programmable logic device 321 disposed on a hard disk backplane 32. The first programmable logic device 311 is connected to the second programmable logic device 321, the second programmable logic device 321 is connected to a hard disk light 322, and the disk controller 312 is connected to the first programmable logic device 311.

[0110] The first programmable logic device 311 is used to receive SGPIO signals, which include control data corresponding to each hard disk light. The SGPIO signals are grouped according to a preset number of bits, and the SGPIO signals corresponding to each group are sent to the second programmable logic device.

[0111] The second programmable logic device 321 is used to receive the SGPIO signals corresponding to each group sent by the first programmable logic device, decode the SGPIO signals corresponding to each group, and control the state of each hard disk light 322 according to the control data obtained after decoding.

[0112] The disk controller 312 is used to send SGPIO signals to the first programmable logic device.

[0113] In one embodiment, please refer to Figure 4 , Figure 4 This is a circuit diagram of a hard disk light status control method in one embodiment. Figure 4 As shown, the circuit diagram includes a disk control board, a disk controller mounted on the disk control board, a programmable logic device 3, SAS connector 1, and SAS connector 2. SAS connector 1 and SAS connector 2 are connected to the disk controller via SAS signal lines. The disk controller connects to two hard drive backplanes, hard drive backplane 1 and hard drive backplane 2. The hard drive backplane 1 includes multiple connectors, a programmable logic device 1, four hard drives, and corresponding hard drive LEDs. Each hard drive LED is connected to the programmable logic device 1. Each hard drive is connected to the SAS connector 1 of the disk control board via the connectors of the hard drive backplane 1. The programmable logic device 3 is equivalent to the first programmable logic device, and the programmable logic device 1 is equivalent to the second programmable logic device.

[0114] The aforementioned hard disk backplane 2 includes multiple connectors, a programmable logic device 2, four hard disks, and corresponding hard disk LEDs. Each hard disk LED is connected to the programmable logic device 2, and each hard disk is connected to the SAS connector 2 of the disk controller board through each connector of the hard disk backplane 2. The aforementioned programmable logic device 2 is equivalent to the aforementioned second programmable logic device.

[0115] The disk controller sends SGPIO signal 1 to the first programmable logic device. The first programmable logic device decodes, stores, and groups the SGPIO signal 1. After grouping, the control data in each group is reassembled into new SGPIO signals 4 and 5. The SGPIO signal 4 (SGPIO signal 2 in the figure is equivalent to SGPIO signal 4) is then sent to programmable logic device 1, and the SGPIO signal 5 (SGPIO signal 3 in the figure is equivalent to SGPIO signal 5) is sent to programmable logic device 2.

[0116] Furthermore, programmable logic device 1 decodes the received SGPIO signal 2 and controls the hard disk indicator light accordingly based on the decoded control data. Programmable logic device 2 decodes the received SGPIO signal 3 and controls the hard disk indicator light accordingly based on the decoded control data.

[0117] Furthermore, the data bits corresponding to the three encoding methods of the two hard drive backplanes mentioned above are shown in Table 1 and Table 2 below.

[0118] Table 1 shows the data bits corresponding to the three encoding methods of the hard disk backplane 1 in one embodiment.

[0119] Hard disk 1 data bit D1-1 / 2 / 3[bit1 / 2 / 3] D1-1 / 2 / 3[bit1 / 2 / 3] D1-1 / 2 / 3[bit1 / 2 / 3] Hard disk 2 data bits D2-1 / 2 / 3[bit4 / 5 / 6] D2-1 / 2 / 3[bit4 / 5 / 6] D2-1 / 2 / 3[bit4 / 5 / 6] 3-bit hard drive D3-1 / 2 / 3 [bit 7 / 8 / 9] D3-1 / 2 / 3 [bit 7 / 8 / 9] D3-1 / 2 / 3 [bit 7 / 8 / 9] Hard drive 4 data bits D4-1 / 2 / 3[bit10 / 11 / 12] D4-1 / 2 / 3[bit10 / 11 / 12] D4-1 / 2 / 3[bit10 / 11 / 12] Hard drive backplane 1 valid data bit bit1-bit12 bit1-bit12 bit1-bit12 SGPIO decoding method Method 1 Method 1 Method 1

[0120] Table 1 shows the data bits for the control data of hard drives 1, 2, 3, and 4 when the hard drive backplane 1 is connected to a RAID card, a motherboard PCH, or an Expander backplane. For example, when the hard drive backplane 1 is connected to a RAID card, the SGPIO signal received by the hard drive backplane is 12 bits. The data bits controlling the hard drive LEDs of hard drive 1 are bits 1 / 2 / 3, those controlling hard drive 2 are bits 4 / 5 / 6, those controlling hard drive 3 are bits 7 / 8 / 9, and those controlling hard drive 4 are bits 10 / 11 / 12. As can be seen from Table 1, regardless of whether the hard drive backplane 1 is connected to a RAID card, motherboard PCH, or Expander backplane, the corresponding decoding method is always mode 1. There is no need to call different decoding methods based on different disk controllers, nor is it necessary to manually set DIP switches to indicate which connection method to use for the hard drive backplane.

[0121] Table 2 shows the data bits corresponding to the three encoding methods of the hard disk backplane 2 in one embodiment.

[0122] 5 data bits for hard drive D5-1 / 2 / 3[bit1 / 2 / 3] D5-1 / 2 / 3[bit1 / 2 / 3] D5-1 / 2 / 3[bit1 / 2 / 3] 6-bit hard drive D6-1 / 2 / 3[bit4 / 5 / 6] D6-1 / 2 / 3[bit4 / 5 / 6] D6-1 / 2 / 3[bit4 / 5 / 6] 7 data bits for hard drive D7-1 / 2 / 3 [bit 7 / 8 / 9] D7-1 / 2 / 3 [bit 7 / 8 / 9] D7-1 / 2 / 3 [bit 7 / 8 / 9] 8-bit hard drive D8-1 / 2 / 3[bit10 / 11 / 12] D8-1 / 2 / 3[bit10 / 11 / 12] D8-1 / 2 / 3[bit10 / 11 / 12] Hard drive backplane 2 valid data bits bit1-bit12 bit1-bit12 bit1-bit12 SGPIO decoding method Method 1 Method 1 Method 1

[0123] Table 2 shows the data bits for the control data of hard drives 1, 2, 3, and 4 when the hard drive backplane 2 is connected to a RAID card, a motherboard PCH, or an Expander backplane. For example, when the hard drive backplane 2 is connected to a RAID card, the SGPIO signal received by the hard drive backplane is 12 bits. The data bits controlling the hard drive 5 corresponding to the hard drive LED are bits 1 / 2 / 3, the data bits controlling the hard drive 6 corresponding to the hard drive LED are bits 4 / 5 / 6, the data bits controlling the hard drive 7 corresponding to the hard drive LED are bits 7 / 8 / 9, and the data bits controlling the hard drive 8 corresponding to the hard drive LED are bits 10 / 11 / 12. As can be seen from Table 1, regardless of whether the hard drive backplane 2 is connected to a RAID card, a motherboard PCH, or an Expander backplane, the corresponding decoding method is always mode 1. There is no need to call different decoding methods based on different disk controllers, nor is it necessary to manually set DIP switches to indicate which connection method the hard drive backplane should use.

[0124] In one embodiment, please refer to Figure 5 , Figure 5 This is a timing diagram of the SGPIO signals received at the hard disk backplane in one embodiment. Figure 5 In this configuration, two identical hard drive backplanes are connected to a RAID card via SATA[8:5] and SATA[4:1], respectively. The RAID card sends a 12-bit SGPIO signal. Hard drive backplane 1 receives a 12-bit SGPIO signal, including control data for four hard drive LED modules. Hard drive backplane 2 receives a 12-bit SGPIO signal, also including control data for four hard drive LED modules, each containing multiple hard drive LEDs. When the first programmable logic device receives a 12-bit SGPIO signal, that SGPIO signal is treated as a group.

[0125] In one embodiment, please refer to Figure 6 , Figure 6 This is a timing diagram of the SGPIO signals sent by the motherboard and the corresponding SGPIO signals received by hard disk backplane 1 and hard disk backplane 2 in one embodiment. Figure 6 In the middle, the two identical hard drive backplanes are connected to the motherboard PCH (Platform Controller Hub, integrated southbridge) SATA[8:5] and SATA[4:1] respectively. The SGPIO signal sent by the motherboard is 24 bits, including control data for 8 hard drive LED modules.

[0126] Specifically, the SGPIO signal received by the hard drive backplane 1 is 12 bits. Bits 1, 2, and 3 control all hard drive LEDs in hard drive LED module 1; bits 4, 5, and 6 control all hard drive LEDs in hard drive LED module 2; bits 7, 8, and 9 control all hard drive LEDs in hard drive LED module 3; and bits 10, 11, and 12 control all hard drive LEDs in hard drive LED module 4. For example, the hard drive LEDs in hard drive LED module 1 can be three: LED1-1, LED1-2, and LED1-3; the hard drive LEDs in hard drive LED module 2 can be three: LED2-1, LED2-2, and LED2-3; the hard drive LEDs in hard drive LED module 3 can be three: LED3-1, LED3-2, and LED3-3; and the hard drive LEDs in hard drive LED module 4 can be three: LED4-1, LED4-2, and LED4-3.

[0127] Furthermore, the SGPIO signal received by hard drive backplane 2 is 12 bits. Bits 13, 14, and 15 control all hard drive LEDs in hard drive LED module 5; bits 16, 17, and 18 control all hard drive LEDs in hard drive LED module 6; bits 19, 20, and 21 control all hard drive LEDs in hard drive LED module 7; and bits 12, 23, and 24 control all hard drive LEDs in hard drive LED module 8. During grouping, the 24-bit SGPIO signal sent by the motherboard is grouped by the first programmable logic device, resulting in 12-bit SGPIO signals transmitted to both hard drive backplane 1 and hard drive backplane 2.

[0128] In one embodiment, please refer to Figure 7 , Figure 7 This is a schematic diagram illustrating how a first programmable logic device groups SGPIO signals in one embodiment. Figure 7 In this context, programmable logic device 1, equivalent to the aforementioned first programmable logic device, processes SGPIO signal 1. Specifically, this processing includes decoding, storing, grouping, and then converting SGPIO signal 1 back into an SGPIO signal. After processing, it is divided into six groups, corresponding to SGPIO signals 2, 3, 4, 5, 6, and 7, respectively. These six signals are then transmitted to the hard disk backplane via SAS connectors 1, 2, 3, 4, 5, and 6, respectively.

[0129] In one embodiment, please refer to Figure 8 , Figure 8This is a schematic diagram illustrating the grouping of control data within each group in one embodiment. Figure 8 In this process, the received SGPIO signal is decoded to obtain 72-bit control data. This 72-bit control data is first stored in SDATA register 1. Then, the 72-bit control data is grouped into six groups: the control data corresponding to the first group is stored in SDATA register 2, the control data corresponding to the second group in SDATA register 3, the control data corresponding to the third group in SDATA register 4, the control data corresponding to the fourth group in SDATA register 5, and the control data corresponding to the fifth group in SDATA register 6. The control data in each register is then converted into SGPIO signals and sent to the second programmable logic device (PLD). The PLD decodes the SGPIO signals corresponding to each group and controls the state of each hard disk LED based on the decoded control data.

[0130] Specifically, the SGPIO module 1 of the disk controller 1 outputs SGPIO signal 1 (containing the hard drive LED status information of all hard drives, with 3 bits of data corresponding to each hard drive; taking the 72-bit SGPIO of the 24-hard drive expander backplane as an example). The programmable logic device receives the SGPIO signal 1 and decodes it to obtain 72 bits of data, which is stored in SDATA register 1. The 72 bits of data are then grouped into 12 bits and stored in SDATA registers 2 / 3 / 4 / 5 / 6 / 7 respectively. Finally, the data in SDATA registers 2 / 3 / 4 / 5 / 6 / 7 are output to SGPIO signals 2 / 3 / 4 / 5 / 6 / 7 respectively.

[0131] In one embodiment, such as Figure 9 As shown, a hard disk indicator light status control device is provided, applied to a disk control board. The disk control board has a first programmable logic device, which is connected to a second programmable logic device located on the backplane of the hard disk. The second programmable logic device is also connected to each hard disk indicator light located on the backplane of the hard disk. The device includes: a receiving module 11, a packet-sending module 12, and a transmitting module 13, wherein:

[0132] Receiver module 11 is used for the first programmable logic device to receive SGPIO signals, the SGPIO signals including control data corresponding to each hard disk light;

[0133] Grouping module 12 is used by the first programmable logic device to group SGPIO signals according to a preset number of bits;

[0134] The transmitting module 13 is used by the first programmable logic device to send the SGPIO signals corresponding to each group to the second programmable logic device, so that the second programmable logic device can decode the SGPIO signals corresponding to each group and control the state of each hard disk lamp according to the control data obtained after decoding.

[0135] In one embodiment, the grouping module 12 can decode the SGPIO signal using a first programmable logic device to obtain a sequence of control data corresponding to each hard disk light. The first programmable logic device then sequentially acquires a preset number of bits in the sequence according to the order of the control data in the sequence to form a group for grouping.

[0136] In one embodiment, the grouping module 12 may also supplement the target group with a preset value when the number of bits of control data in the target group is less than the preset number of bits, so that the number of bits of control data in the target group is the preset number of bits.

[0137] In one embodiment, the grouping module 12 described above can also use a first programmable logic device to convert the control data corresponding to each group into SGPIO signals to obtain the SGPIO signals corresponding to each group.

[0138] In one embodiment, the disk control board is further provided with a disk controller and various ports. The disk controller is connected to the first programmable logic device, and each port is connected to the disk controller. The disk backplane also includes a hard disk corresponding to each hard disk light. Each hard disk is connected to each port, and each port has a preset order. The receiving module 11 can also determine the order of each control data in the sequence according to the preset order by the disk controller to obtain the SGPIO signal and send it to the first programmable logic device. The first programmable logic device receives the SGPIO signal sent by the disk controller.

[0139] In one embodiment, the aforementioned hard disk backplane includes multiple backplanes, each of which is connected to a first programmable logic device. The aforementioned transmitting module 13 can use the first programmable logic device to determine the hard disk light corresponding to each control data according to the sorting of control data in the SGPIO signals of each group. The first programmable logic device determines the hard disk backplane corresponding to each group according to the hard disk light corresponding to each control data and the hard disk backplane to which each hard disk light belongs. The first programmable logic device sends the SGPIO signals corresponding to each group to the corresponding second programmable logic device, so that each second programmable logic device can decode the SGPIO signals of the corresponding group and control the indicator light status on the corresponding hard disk backplane according to the decoded signals.

[0140] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 10 As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The internal memory provides the environment for the operation of the operating system and computer programs in the non-volatile storage media. The database stores data such as the operating data of the smart home device. The network interface is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a hard disk light status control method.

[0141] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it performs the following steps: a first programmable logic device receives an SGPIO signal, the SGPIO signal including control data corresponding to each hard disk indicator; the first programmable logic device groups the SGPIO signal according to a preset number of bits; the first programmable logic device sends the SGPIO signal corresponding to each group to a second programmable logic device, so that the second programmable logic device decodes the SGPIO signal corresponding to each group and controls the state of each hard disk indicator according to the decoded control data.

[0142] In one embodiment, when the processor executes a computer program to implement the above-described step of the first programmable logic device grouping SGPIO signals according to a preset number of bits, the specific steps include:

[0143] The first programmable logic device decodes the SGPIO signal to obtain the sequence of control data corresponding to each hard disk light;

[0144] The first programmable logic device obtains a preset number of bits in the sequence according to the order of each control data in the sequence and forms a group for grouping.

[0145] In one embodiment, when the processor executes a computer program, it further performs the following steps:

[0146] When the number of bits of control data in a target group is less than the preset number of bits, the first programmable logic device fills the target group with a preset value so that the number of bits of control data in the target group is the preset number of bits.

[0147] In one embodiment, when the processor executes a computer program, it further performs the following steps:

[0148] The first programmable logic device converts the control data corresponding to each group into SGPIO signals, thus obtaining the SGPIO signals corresponding to each group.

[0149] In one embodiment, the disk control board further includes a disk controller and various ports. The disk controller is connected to a first programmable logic device, and each port is connected to the disk controller. The disk backplane also includes hard disks corresponding to each hard disk indicator light. Each hard disk is connected to each port, and each port has a preset order. When the processor executes the computer program, it further implements the following steps:

[0150] The disk controller determines the order of each control data in the sequence according to the preset sorting, so as to obtain the SGPIO signal and send it to the first programmable logic device;

[0151] The first programmable logic device receives the SGPIO signal sent by the disk controller.

[0152] In one embodiment, the aforementioned hard disk backplane includes multiple backplanes, each connected to a first programmable logic device. When the processor executes a computer program to enable the first programmable logic device to send the SGPIO signals corresponding to each group to the hard disk backplane CPLD, so that the hard disk backplane CPLD can decode the SGPIO signals corresponding to each group and control the state of the hard disk indicator lights based on the decoded signals, the following steps are specifically implemented:

[0153] The first programmable logic device determines the hard disk LED corresponding to each control data according to the order of the control data in the SGPIO signals of each group;

[0154] The first programmable logic device determines the hard disk backplane corresponding to each group based on the hard disk LEDs corresponding to each control data and the hard disk backplane to which each hard disk LED belongs.

[0155] The first programmable logic device sends the SGPIO signals corresponding to each group to the corresponding second programmable logic device, so that each second programmable logic device can decode the SGPIO signals of the corresponding group and control the status of the indicator lights on the corresponding hard disk backplane according to the decoded signals.

[0156] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, it performs the following steps: a first programmable logic device receives an SGPIO signal, the SGPIO signal including control data corresponding to each hard disk indicator; the first programmable logic device groups the SGPIO signal according to a preset number of bits; the first programmable logic device sends the SGPIO signal corresponding to each group to a second programmable logic device, so that the second programmable logic device decodes the SGPIO signal corresponding to each group and controls the state of each hard disk indicator according to the decoded control data.

[0157] In one embodiment, when a computer program is executed by a processor to implement the above-described step of the first programmable logic device grouping SGPIO signals according to a preset number of bits, the specific steps include:

[0158] The first programmable logic device decodes the SGPIO signal to obtain the sequence of control data corresponding to each hard disk light;

[0159] The first programmable logic device obtains a preset number of bits in the sequence according to the order of each control data in the sequence and forms a group for grouping.

[0160] In one embodiment, when a computer program is executed by a processor, it further performs the following steps:

[0161] When the number of bits of control data in a target group is less than the preset number of bits, the first programmable logic device fills the target group with a preset value so that the number of bits of control data in the target group is the preset number of bits.

[0162] In one embodiment, when a computer program is executed by a processor, it further performs the following steps:

[0163] The first programmable logic device converts the control data corresponding to each group into SGPIO signals, thus obtaining the SGPIO signals corresponding to each group.

[0164] In one embodiment, the disk control board further includes a disk controller and various ports. The disk controller is connected to a first programmable logic device, and each port is connected to the disk controller. The disk backplane also includes hard disks corresponding to each hard disk indicator light. Each hard disk is connected to each port, and each port has a preset order. When the computer program is executed by the processor, the following steps are specifically implemented:

[0165] The disk controller determines the order of each control data in the sequence according to the preset sorting, so as to obtain the SGPIO signal and send it to the first programmable logic device;

[0166] The first programmable logic device receives the SGPIO signal sent by the disk controller.

[0167] In one embodiment, the aforementioned hard disk backplane includes multiple backplanes, each connected to a first programmable logic device. When a computer program is executed by a processor to implement the first programmable logic device sending SGPIO signals corresponding to each group to the hard disk backplane CPLD, so that the hard disk backplane CPLD decodes the SGPIO signals corresponding to each group and controls the state of the hard disk indicator lights based on the decoded signals, the following steps are specifically implemented:

[0168] The first programmable logic device determines the hard disk LED corresponding to each control data according to the order of the control data in the SGPIO signals of each group;

[0169] The first programmable logic device determines the hard disk backplane corresponding to each group based on the hard disk LEDs corresponding to each control data and the hard disk backplane to which each hard disk LED belongs.

[0170] The first programmable logic device sends the SGPIO signals corresponding to each group to the corresponding second programmable logic device, so that each second programmable logic device can decode the SGPIO signals of the corresponding group and control the status of the indicator lights on the corresponding hard disk backplane according to the decoded signals.

[0171] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.

[0172] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0173] The above embodiments merely illustrate several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A method for controlling the status of a hard disk indicator light, characterized in that, An application is made to a disk control board, the disk control board comprising a first programmable logic device, a disk controller, and a first connector connected to the disk controller, the first connector having multiple ports, the first programmable logic device being connected to a second programmable logic device disposed on a hard disk backplane, the second programmable logic device also being connected to each hard disk LED disposed on the hard disk backplane, the hard disk backplane having a second connector, each of the ports being connected to each hard disk on the hard disk backplane via the second connector, the ports having a preset order, the method comprising: The disk controller determines the order of each control data in the sequence according to the preset order of each port, so as to obtain the SGPIO signal and send it to the first programmable logic device. The first programmable logic device receives an SGPIO signal, the SGPIO signal including control data corresponding to each of the hard disk lights; The first programmable logic device groups the SGPIO signals according to a preset number of bits based on the correspondence between each control data and the hard disk light; The first programmable logic device sends the SGPIO signal corresponding to each group to the second programmable logic device, so that the second programmable logic device can decode the SGPIO signal corresponding to each group and control the state of each hard disk light according to the control data obtained after decoding.

2. The method according to claim 1, characterized in that, The first programmable logic device groups the SGPIO signals according to a preset number of bits, including: The first programmable logic device decodes the SGPIO signal to obtain a sequence of control data corresponding to each hard disk light; The first programmable logic device obtains a preset number of bits in the sequence according to the order of each control data in the sequence to form a group for grouping.

3. The method according to claim 2, characterized in that, The method further includes: When the number of bits of the control data in a target group is less than the preset number of bits, the first programmable logic device adds a preset value to the target group so that the number of bits of the control data in the target group is the preset number of bits.

4. The method according to claim 2, characterized in that, The method further includes: The first programmable logic device converts the control data corresponding to each group into SGPIO signals to obtain the SGPIO signals corresponding to each group.

5. The method according to claim 1, characterized in that, The hard disk backplane includes multiple backplanes, each of which is connected to the first programmable logic device (PLD). The first PLD sends SGPIO signals corresponding to each group to the CPLD of the hard disk backplane, so that the CPLD decodes the SGPIO signals corresponding to each group and controls the state of the hard disk LEDs according to the decoded signals, including: The first programmable logic device determines the hard disk light corresponding to each control data according to the sorting of the control data in the SGPIO signals of each group; The first programmable logic device determines the hard disk backplane corresponding to each group based on the hard disk LEDs corresponding to each of the control data and the hard disk backplanes to which each of the hard disk LEDs belongs; The first programmable logic device sends the SGPIO signals corresponding to each group to the corresponding second programmable logic device, so that each second programmable logic device can decode the SGPIO signals of the corresponding group and control the status of the indicator lights on the corresponding hard disk backplane according to the decoded signals.

6. A hard disk indicator light status control system, characterized in that, The system includes a first programmable logic device and a disk controller mounted on a disk control board, and a second programmable logic device mounted on the backplane of the hard disk. The first programmable logic device is connected to the second programmable logic device, and the disk controller is connected to the first programmable logic device. The first programmable logic device is used to receive SGPIO signals, the SGPIO signals including control data corresponding to each of the hard disk lights, group the SGPIO signals according to a preset number of bits, and send the SGPIO signals corresponding to each group to the second programmable logic device. The second programmable logic device is used to receive the SGPIO signals corresponding to each group sent by the first programmable logic device, decode the SGPIO signals corresponding to each group, and control the state of each hard disk light according to the control data obtained after decoding. The disk controller is used to send SGPIO signals to the first programmable logic device.

7. A hard disk indicator light status control device, characterized in that, An application is made to a disk control board, the disk control board comprising a first programmable logic device, a disk controller, and a first connector connected to the disk controller. The first connector has multiple ports. The first programmable logic device is connected to a second programmable logic device disposed on a hard disk backplane. The second programmable logic device is also connected to each hard disk LED disposed on the hard disk backplane. The hard disk backplane has a second connector, and each of the ports is connected to each hard disk on the hard disk backplane through the second connector. The ports have a preset order. The device includes: The receiving module is used to determine the order of each control data in the sequence according to the preset order of each port, so as to obtain the SGPIO signal, wherein the SGPIO signal includes the control data corresponding to each hard disk light; The grouping module is used to group the SGPIO signals according to a preset number of bits based on the correspondence between each control data and the hard disk light; The transmitting module is used to send the SGPIO signals corresponding to each group to the second programmable logic device, so that the second programmable logic device can decode the SGPIO signals corresponding to each group and control the state of each hard disk light according to the control data obtained after decoding.

8. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 5.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Expansion system and extension method for SGPIO signal of server hard disk

    CN108733612A