Hard disk illumination devices, methods, systems, computer equipment, and storage media
By using I2C signals to transmit hard drive LED signals between the motherboard and the backplane, the problem of space complexity and high cost caused by the large number of pins in the existing technology is solved, and more efficient hard drive LED operation is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-13
- Publication Date
- 2026-04-03
AI Technical Summary
In existing technologies, the transmission of SATA hard drive LED signals requires connectors and cables with a large number of pins, resulting in complex motherboard space, increased costs, and low transmission efficiency.
The I2C signal is used instead of the SGPIO signal for hard drive LED signal transmission. Through communication between the programmable logic devices on the motherboard and the programmable logic devices on the backplane, the number of connector pins and backplane pins is reduced, and the hard drive that needs to perform the LED operation is accurately picked up.
This reduces the number of signals interconnected between the motherboard and the backplane, saving space, reducing costs, and improving lighting and grasping efficiency.
Smart Images

Figure CN115905083B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of servers, and in particular to a hard disk illumination device, method, system, computer equipment, and storage medium. Background Technology
[0002] With the rapid development of internet storage and big data services, users' demand for servers with large-capacity storage is increasing. To meet the demand for high capacity and cost-effectiveness of servers, SATA hard drives still occupy a large market share in the server industry due to their advantages of large storage capacity and high cost-effectiveness, even with the widespread use of NVMe hard drives.
[0003] The most common way to connect SATA hard drives is to use multiple SATA controllers on the PCH to connect multiple sets of SATA signals to the hard drives on the SATA backplane for data transfer. Simultaneously, the multiple SATA controllers on the PCH connect multiple sets of SGPIO signals to the CPLDs on the SATA backplane to transmit hard drive status LED signals. Typically, a motherboard connects to multiple SATA backplanes. Current technology requires connectors and cables with a large number of pins for transmitting hard drive status LED signals between the motherboard and the SATA backplanes. When a SATA controller needs to connect to two backplanes that are far apart, the same set of SGPIO signals needs to be connected to the CPLDs of both backplanes, resulting in long branch traces. Furthermore, the increased number of connector pins increases the motherboard's footprint, making the motherboard more complex. Summary of the Invention
[0004] Based on this, this application provides a hard disk lighting device, method, system, computer equipment, and storage medium to reduce the space occupied by pins.
[0005] On one hand, a hard disk illumination device is provided, comprising a motherboard and at least one backplane. The motherboard includes a baseboard management controller, a programmable logic device (PLD), and a platform path controller, which are sequentially and communicatively connected. The PLD communicates with the platform path controller via SGPIO signals and with the baseboard management controller via I2C signals. The motherboard also has a first communication interface, and both the baseboard management controller and the PLD communicate with the first communication interface via I2C signals. The backplane includes a PLD and a second communication interface, and the PLD on the backplane communicates with the second communication interface via I2C signals. The first communication interface and the second communication interface are communicated via I2C signals, and the PLD on the backplane is also communicatively connected to the hard disk.
[0006] On the other hand, a hard disk LED lighting method is provided, the hard disk LED lighting method comprising:
[0007] In response to the SLOAD signal being low, target information of the target hard disk is received, and an information lookup table is obtained from the platform path controller based on the target information;
[0008] Based on the target information, determine the target information reading address from the information lookup table and read the target lighting information from the target information reading address;
[0009] The target lighting information is sent to the programmable logic device on the target backplane via an I2C signal, so that the programmable logic device on the target backplane can control the target hard disk to perform the lighting operation according to the target lighting information.
[0010] In one embodiment, the response to the SLOAD signal being low further includes:
[0011] The slot information and address information of the hard drives on different backplanes are obtained by using different I2C signals, and an information lookup table corresponding to the backplane is generated based on the slot information and address information of the hard drives on different backplanes.
[0012] The information lookup table is stored in the platform path controller.
[0013] In one embodiment, the response to the SLOAD signal being low further includes:
[0014] In response to a change in the status information of the hard disk, the hard disk whose status information has changed is identified as the target hard disk, and the status information of the target hard disk is obtained;
[0015] Obtain the slot information of the target hard drive, and determine the target bus corresponding to the target hard drive based on the slot information of the target hard drive;
[0016] Pull the level of the SLOAD signal corresponding to the target bus low.
[0017] In one embodiment, the slot information and status information of the target hard drive form the target information, and the step of receiving the target information of the target hard drive in response to the SLOAD signal being low includes:
[0018] In response to the SLOAD signal being low, the system receives the target hard drive slot information and status information sent from the platform path controller via the SGPIO signal.
[0019] The status information of the target hard drive is determined as the target indicator information, and the target indicator information is stored in the target information reading address of the information lookup table corresponding to the target hard drive.
[0020] In one embodiment, obtaining the information lookup table from the platform path controller based on the target information includes:
[0021] The target backplane is determined from the backplane based on the slot information of the target hard drive, so as to obtain the information lookup table corresponding to the target backplane from the platform path controller.
[0022] In one embodiment, the step of determining the target information reading address from the information lookup table based on the target information and reading the target light information from the target information reading address includes:
[0023] Based on the slot information of the target hard drive, the target information read address corresponding to the target hard drive is determined from the information lookup table corresponding to the target backplane;
[0024] Read the target lighting information from the target information reading address.
[0025] Furthermore, a hard disk illumination system is provided, the hard disk illumination system comprising:
[0026] The information processing module is used to receive target information of the target hard disk in response to the SLOAD signal being low, so as to obtain an information lookup table from the platform path controller according to the target information;
[0027] The lighting information module is used to determine the target information reading address from the information lookup table based on the target information and read the target lighting information from the target information reading address.
[0028] The lamp-lighting execution module is used to send the target lamp-lighting information to the programmable logic device on the target backplane via an I2C signal, so that the programmable logic device on the target backplane can control the target hard disk to perform a lamp-lighting operation according to the target lamp-lighting information.
[0029] In another aspect, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, performs the following steps:
[0030] In response to the SLOAD signal being low, target information of the target hard disk is received, and an information lookup table is obtained from the platform path controller based on the target information;
[0031] Based on the target information, determine the target information reading address from the information lookup table and read the target lighting information from the target information reading address;
[0032] The target lighting information is sent to the programmable logic device on the target backplane via an I2C signal, so that the programmable logic device on the target backplane can control the target hard disk to perform the lighting operation according to the target lighting information.
[0033] In another aspect, a computer-readable storage medium is provided, the computer-readable storage medium storing a program that, when executed by a processor, causes the processor to perform the following steps:
[0034] In response to the SLOAD signal being low, target information of the target hard disk is received, and an information lookup table is obtained from the platform path controller based on the target information;
[0035] Based on the target information, determine the target information reading address from the information lookup table and read the target lighting information from the target information reading address;
[0036] The target lighting information is sent to the programmable logic device on the target backplane via an I2C signal, so that the programmable logic device on the target backplane can control the target hard disk to perform the lighting operation according to the target lighting information.
[0037] The technical solution described in this application has the following advantages over the prior art:
[0038] The aforementioned hard drive LED lighting device, method, system, computer equipment, and storage medium transmit the SATA hard drive LED signal on the motherboard to the backplane via I2C, reducing the number of signals interconnecting the motherboard and the backplane, reducing the number of connector pins and backplane pins, and occupying less space resources; in addition, there is no need to add an isolation buffer chip, reducing costs; and it can accurately grasp the hard drive that needs to perform the LED operation, improving grasping efficiency and LED efficiency. Attached Figure Description
[0039] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0040] Figure 1 This is a structural diagram of the hard disk lighting device provided in the embodiments of this application;
[0041] Figure 2 This is a flowchart of the first method of the hard disk LED lighting method provided in the embodiments of this application;
[0042] Figure 3 This is a flowchart of the second method of the hard disk LED lighting method provided in the embodiments of this application;
[0043] Figure 4 This is a system structure diagram of the hard disk lighting system provided in the embodiments of this application;
[0044] Figure 5 This is a device structure diagram of the computer device provided in the embodiments of this application;
[0045] Figure 6 This is a structural diagram of a hard disk light-up device in the prior art. Detailed Implementation
[0046] 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.
[0047] Example 1
[0048] Reference Figure 1 As shown, Figure 1 This is a structural diagram of the hard disk lighting device provided in an embodiment of this application.
[0049] The hard drive LED illumination device includes a motherboard and at least one backplane. The motherboard includes a baseboard management controller, a programmable logic device (PLD), and a platform path controller, which are sequentially and communicatively connected. The PLD communicates with the platform path controller via SGPIO signals and with the baseboard management controller via I2C signals. The motherboard also has a first communication interface, through which the baseboard management controller and the PLD communicate via I2C signals. The backplane includes a PLD and a second communication interface. The PLD on the backplane communicates with the second communication interface via I2C signals. The first and second communication interfaces communicate via I2C signals, and the PLD on the backplane communicates with the hard drive.
[0050] Servers typically have multiple backplanes connected to a single motherboard. Each backplane includes multiple buses, one bus corresponding to multiple hard drive controllers, and each hard drive controller has multiple hard drives installed for data storage operations. The hard drive illumination device of this application includes a motherboard and at least one backplane. The motherboard includes a Baseboard Management Controller (BMC), a Complex Programmable Logic Device (CPLD), and a Platform Controller Hub (PCH) connected in sequence. Specifically, the BMC communicates with the CPLD, and the CPLD communicates with the PCH. Furthermore, the CPLD on the motherboard communicates with the PCH via SGPIO signals, and with the BMC via I2C signals. The motherboard also has a first communication interface (e.g., ...). Figure 1 CONN0 in the diagram represents the first communication interface, used to establish communication between the motherboard and the backplane. The baseboard management controller and programmable logic devices on the motherboard are connected to the first communication interface via I2C signals. The backplane includes programmable logic devices and a second communication interface (such as...). Figure 1 As shown, the second communication interface on the first backplane is CONN1, and the second communication interface on the second backplane is CONN3. The programmable logic devices on the backplane are connected to the second communication interface via I2C signals; the first and second communication interfaces are also connected via I2C signals, thus realizing the communication connection between the motherboard and the backplane. The programmable logic devices on the backplane are connected to the hard drive, thus realizing the communication connection between the motherboard and the hard drive on the backplane. In the prior art, the transmission of LED signals between the motherboard and the backplane is directly transmitted through SGPIO signals. Since one SGPIO signal includes four signals, namely SLOAD (end signal of current bit stream), SDOUT (serial data output bit stream), SDIN (serial data input bit stream), and SCLK (clock), one SGPIO signal requires four pins. When the motherboard and the backplane are connected through a connector (through SGPIO signal transmission), such as... Figure 6 The diagram shown is a structural diagram of a prior art hard drive LED lighting device. BP0 is backplane number 0, BP1 is backplane number 1, and the motherboard is connected to each backplane via connectors. Figure 1In both diagrams, backplane 0 represents 12 hard drives, 3 hard drive controllers, and 1 hard drive controller corresponding to 4 hard drives; backplane 1 represents 1 hard drive controller (taking 2 hard drives as an example). The connectors connecting to backplane 0 have three SGPIO signals, including 12 signals, meaning the connector requires 12 pins; the connectors connecting to backplane 1 have one SGPIO signal, including 4 signals, meaning the connector requires 4 pins. Therefore, the connectors in the structure shown have many pins, occupying a large amount of space on the motherboard and backplane. Furthermore, SGPIO0 needs to pass through two connectors to both backplanes simultaneously, resulting in very long traces and a branching path that affects SGPIO signal quality. Therefore, an isolation buffer chip needs to be added to this link to solve the SGPIO signal quality problem, which increases costs. In addition, existing hard drive LED signals must transmit the LED signals of 8 hard drives at a time according to the set standard. If only one hard drive needs to be illuminated, the existing technology still transmits the LED signals of 8 hard drives simultaneously, wasting resources and being inefficient. Therefore, the hard drive LED device of this application... Figure 1 As shown, in this application, the LED signal between the motherboard and the backplane is no longer transmitted via SGPIO signals, but via I2C signals. Only one hard drive LED signal is transmitted at a time via I2C, effectively improving transmission efficiency and saving resources. Since only one hard drive LED signal is transmitted at a time, the I2C connector between the motherboard and the backplane only needs one pin; that is, only one I2C signal is needed between the motherboard and the backplane to complete the hard drive LED function. Furthermore, the programmable logic device and the communication interface are also connected via GPIO signals, which are used for functions such as hard drive backplane power-on and PCIE RST (PCIE reset).
[0051] Therefore, the SATA hard drive LED signal on the motherboard is transmitted to the backplane via I2C, reducing the number of signals interconnecting the motherboard and the backplane, reducing the number of connector pins and backplane pins, and occupying less space. In addition, there is no need to add an isolation buffer chip, reducing costs. Moreover, it can accurately pick up the hard drive that needs to perform the LED operation, improving picking efficiency and LED efficiency.
[0052] Example 2
[0053] Reference Figure 2 As shown, Figure 2 A flowchart of the first method for the hard disk LED lighting method provided in this application embodiment.
[0054] The method includes the following steps:
[0055] In response to the SLOAD signal being low, target information of the target hard disk is received, and an information lookup table is obtained from the platform path controller based on the target information;
[0056] The SGPIO signal includes the SLOAD signal. When the hard drive's state changes and the platform path controller needs to activate the LED, the platform path controller pulls the SLOAD signal low. Therefore, the level of the SLOAD signal reflects whether an LED activation operation is required. That is, when the SLOAD signal is pulled low, the platform path controller sends an LED activation signal to activate the hard drive. When the SLOAD signal is pulled low, the programmable logic device (PLD) on the motherboard receives the target information of the target hard drive. Then, the PLD retrieves the target LED activation information from the information lookup table in the platform path controller based on the target information.
[0057] Based on the target information, determine the target information reading address from the information lookup table and read the target lighting information from the target information reading address;
[0058] After obtaining the information lookup table, the target information read address corresponding to the target hard drive can be determined from the information lookup table based on the target information. Then, the target lighting information can be read from the target information read address to enable the lighting operation.
[0059] The target lighting information is sent to the programmable logic device on the target backplane via an I2C signal, so that the programmable logic device on the target backplane can control the target hard disk to perform the lighting operation according to the target lighting information.
[0060] After acquiring the target LED illumination information, the information is sent to the programmable logic device (PLD) on the target backplane via an I2C signal. For example, if it is backplane 0 (BP0), the information is sent to the PLD via I2C5; if it is backplane 1 (BP1), the information is sent to the PLD via I2C6. Then, the PLD on the target backplane controls the target hard drive to perform the LED illumination operation based on the target LED illumination information.
[0061] In one embodiment, the response to the SLOAD signal being low further includes:
[0062] The slot information and address information of the hard drives on different backplanes are obtained by using different I2C signals, and an information lookup table corresponding to the backplane is generated based on the slot information and address information of the hard drives on different backplanes.
[0063] Before the SLOAD signal goes low, a one-to-one information lookup table needs to be established with the backplane. Furthermore, this information lookup table is pre-configured and generated based on slot information on the backplane. For Figure 1 In the case of backplane 0, the baseboard management controller on the motherboard obtains the slot information and address information of the hard drive on backplane 0 via the I2C3 signal. It then generates an information lookup table corresponding to backplane 0, as shown in Table 1 (Table 1 only lists one hard drive controller under one bus; four hard drives are installed on one hard drive controller). The information lookup table may also include SGPIO bus information and hard drive serial number. Furthermore, when a new hard drive is connected to the backplane, the baseboard management controller also obtains the corresponding SGPIO bus information, slot information, hard drive serial number, and address information of the newly connected hard drive, and stores this information in the corresponding information lookup table.
[0064] Table 1. Information Comparison Table for Backplate No. 0 (BP0)
[0065]
[0066] For backplane #1, the baseboard management controller on the motherboard obtains the hard drive slot information and address information on backplane #1 through the I2C4 signal, and then generates an information lookup table corresponding to backplane #1 based on this information, as shown in Table 2 (Table 2 only lists one hard drive controller under one bus; the case of one hard drive controller with two hard drives installed) The information lookup table may also include bus information and hard drive serial number.
[0067] Table 2. Information Comparison Table for Backplate No. 1 (BP1)
[0068]
[0069] The information lookup table is stored in the platform path controller.
[0070] After generating an information lookup table that corresponds one-to-one with the backplane, the information lookup table is stored in the platform path controller so that the programmable logic devices on the motherboard can read the information lookup table from the platform path controller.
[0071] In one embodiment, the response to the SLOAD signal being low further includes:
[0072] In response to a change in the status information of the hard disk, the hard disk whose status information has changed is identified as the target hard disk, and the status information of the target hard disk is obtained;
[0073] When the hard drive's status information changes, the hard drive's indicator light status needs to be changed. For example, when a hard drive malfunctions, an alarm indicator light operation is required, which means the hard drive's indicator light displays the color corresponding to the alarm signal. Therefore, this operation is necessary, and the hard drive's status information must be constantly monitored. The platform path controller is used to monitor the hard drive's status information. When the platform path controller detects a change in the hard drive's status information, it identifies the hard drive with the changed status information as the target hard drive. The platform path controller collects the target hard drive's slot information and status information, and then sends it to the programmable logic device (PLD) on the motherboard via an SGPIO signal. The PLD on the motherboard receives the target hard drive's slot information and status information from the platform path controller. Furthermore, changes in hard drive status information also include newly connected hard drives on the backplane. Further, the hard drive indicator light status includes Read / Write / Power On (ACT), Problem Alarm (ERR), and On-Call (LOC) status, each indicated by a different color.
[0074] Obtain the slot information of the target hard drive, and determine the target bus corresponding to the target hard drive based on the slot information of the target hard drive;
[0075] The platform path controller collects the slot information and status information of the target hard drive. After the platform path controller collects the slot information of the target hard drive, it determines the target bus corresponding to the target hard drive based on the slot information, so as to pull down the level of the SLOAD signal in the target bus.
[0076] Pull the level of the SLOAD signal corresponding to the target bus low.
[0077] After determining the target bus corresponding to the target hard drive based on the slot information of the target hard drive, a low-level operation is performed to pull the level of the SLOAD signal in the target bus to a low level, so that the programmable logic device on the motherboard can send the target LED information to the target backplane and perform the LED operation on the hard drive on the target backplane.
[0078] In one embodiment, the slot information and status information of the target hard drive form the target information, and the step of receiving the target information of the target hard drive in response to the SLOAD signal being low includes:
[0079] In response to the SLOAD signal being low, the system receives the target hard drive slot information and status information sent from the platform path controller via the SGPIO signal.
[0080] In response to the SLOAD signal being low, that is, when the programmable logic device on the motherboard detects that the SLOAD signal is pulled down to a low level, it means that the status information of one or more hard drives has changed and a hard drive LED operation needs to be performed. The programmable logic device on the motherboard receives the target hard drive slot information and status information sent from the platform path controller through the SGPIO signal, so as to determine the target backplane based on the slot information and determine the target LED information based on the status information.
[0081] The status information of the target hard drive is determined as the target indicator information, and the target indicator information is stored in the target information reading address of the information lookup table corresponding to the target hard drive.
[0082] After determining the status information of the target hard drive, the status information corresponding to the target hard drive is stored in the target information read address of the information lookup table corresponding to the target hard drive. This allows the target LED information at the target information read address to be read during the LED activation operation, and the hard drive can be activated using this target LED information. At this point, it is necessary to determine the target backplane corresponding to the target hard drive, and then store the status information of the target hard drive in the target information read address of the information lookup table corresponding to the target backplane.
[0083] In one embodiment, obtaining the information lookup table from the platform path controller based on the target information includes:
[0084] The target backplane is determined from the backplane based on the slot information of the target hard drive, so as to obtain the information lookup table corresponding to the target backplane from the platform path controller.
[0085] The programmable logic devices on the motherboard continuously monitor the SLOAD signal level on each bus. When a SLOAD signal is pulled low, it indicates that the status information of one or more hard drives has changed, requiring a hard drive LED activation operation. Since a motherboard connects to multiple backplanes, the target hard drive's slot information records the slot information of the hard drive whose status has changed. Based on this slot information, the target backplane can be identified from among the multiple backplanes, that is, the backplane containing the hard drive with the status change. After identifying the target backplane, a lookup table corresponding to the target backplane can be obtained.
[0086] In one embodiment, the step of determining the target information reading address from the information lookup table based on the target information and reading the target lighting information from the target information reading address includes:
[0087] Based on the slot information of the target hard drive, the target information read address corresponding to the target hard drive is determined from the information lookup table corresponding to the target backplane;
[0088] After obtaining the slot information of the target hard drive and the information lookup table corresponding to the target backplane, a query operation is performed from the information lookup table corresponding to the target backplane based on the slot information of the target hard drive to determine the target information read address corresponding to the target hard drive, so as to read the target lighting information from the target information read address.
[0089] Read the target lighting information from the target information reading address.
[0090] After determining the target information reading address, the target lighting information is read from the target information reading address, and then the target lighting information can be sent to the target backplane to perform the corresponding lighting operation according to the target lighting information.
[0091] Example 3
[0092] Reference Figure 3 As shown, Figure 3 This is a flowchart of the second method for the hard disk LED lighting method provided in an embodiment of this application. Wherein, Figure 3 In the method shown, with Figure 2 For content that is the same or similar to the method shown, please refer to... Figure 2 The method description will not be repeated here.
[0093] The slot information and address information of the hard drives on different backplanes are obtained by using different I2C signals, and an information lookup table corresponding to the backplane is generated based on the slot information and address information of the hard drives on different backplanes.
[0094] Before the SLOAD signal goes low, an information lookup table corresponding to each backplane needs to be established. Furthermore, this information lookup table is pre-configured and generated based on slot information on the backplane. The baseboard management controller on the motherboard obtains information about backplane number 0 via the I2C3 signal. Figure 1 The motherboard obtains the slot and address information of the hard drive on backplane BP0 (in the BP0 section), and then uses this information to generate an information lookup table corresponding to backplane 0. The baseboard management controller on the motherboard obtains the slot and address information of backplane 1 through the I2C4 signal, and then uses this information to generate an information lookup table for backplane 1 (in the BP0 section). Figure 1 The information lookup table corresponding to BP1 in the table.
[0095] The information lookup table is stored in the platform path controller;
[0096] After generating an information lookup table that corresponds one-to-one with the backplane, the information lookup table is stored in the platform path controller so that the programmable logic devices on the motherboard can read the information lookup table from the platform path controller.
[0097] In response to a change in the status information of the hard disk, the hard disk whose status information has changed is identified as the target hard disk, and the status information of the target hard disk is obtained;
[0098] When the hard drive's status information changes, the hard drive's indicator light status needs to be changed. For example, when a hard drive malfunctions, an alarm indicator light operation is required, which means the hard drive's indicator light displays the color corresponding to the alarm signal. Therefore, this operation is necessary, and the hard drive's status information must be constantly monitored. The platform path controller is used to monitor the hard drive's status information. When the platform path controller detects a change in the hard drive's status information, it identifies the hard drive with the changed status information as the target hard drive. The platform path controller collects the target hard drive's slot information and status information, and then sends it to the programmable logic device (PLD) on the motherboard via an SGPIO signal. The PLD on the motherboard receives the target hard drive's slot information and status information from the platform path controller.
[0099] Obtain the slot information of the target hard drive, and determine the target bus corresponding to the target hard drive based on the slot information of the target hard drive;
[0100] The platform path controller collects the slot information and status information of the target hard drive. After the platform path controller collects the slot information of the target hard drive, it determines the target bus corresponding to the target hard drive based on the slot information, so as to pull down the level of the SLOAD signal in the target bus.
[0101] Pull the level of the SLOAD signal corresponding to the target bus low;
[0102] After determining the target bus corresponding to the target hard drive based on the slot information of the target hard drive, a low-level operation is performed to pull the level of the SLOAD signal in the target bus to a low level, so that the programmable logic device on the motherboard can send the target LED information to the target backplane and perform the LED operation on the hard drive on the target backplane.
[0103] In response to the SLOAD signal being low, the system receives the target hard drive slot information and status information sent from the platform path controller via the SGPIO signal.
[0104] In response to the SLOAD signal being low, that is, when the programmable logic device on the motherboard detects that the SLOAD signal is pulled down to a low level, it means that the status information of one or more hard drives has changed and a hard drive LED operation needs to be performed. The programmable logic device on the motherboard receives the target hard drive slot information and status information sent from the platform path controller through the SGPIO signal, so as to determine the target backplane based on the slot information and determine the target LED information based on the status information.
[0105] The status information of the target hard disk is determined as the target indicator information, and the target indicator information is stored in the target information reading address of the information lookup table corresponding to the target hard disk;
[0106] After determining the status information of the target hard drive, the status information corresponding to the target hard drive is stored in the target information reading address of the information lookup table corresponding to the target hard drive. This is so that when performing the light-up operation, the target light-up information at the target information reading address can be read, and the light-up operation can be performed on the hard drive through the target light-up information.
[0107] The target backplane is determined from the backplane based on the slot information of the target hard drive, and an information lookup table corresponding to the target backplane is obtained from the platform path controller.
[0108] The programmable logic devices on the motherboard continuously monitor the SLOAD signal level on each bus. When a SLOAD signal is pulled low, it indicates that the status information of one or more hard drives has changed, requiring a hard drive LED activation operation. Since a motherboard connects to multiple backplanes, the target hard drive's slot information records the slot information of the hard drive whose status has changed. Based on this slot information, the target backplane can be identified from among the multiple backplanes, that is, the backplane containing the hard drive with the status change. After identifying the target backplane, a lookup table corresponding to the target backplane can be obtained.
[0109] Based on the slot information of the target hard drive, the target information read address corresponding to the target hard drive is determined from the information lookup table corresponding to the target backplane;
[0110] After obtaining the slot information of the target hard drive and the information lookup table corresponding to the target backplane, a query operation is performed from the information lookup table corresponding to the target backplane based on the slot information of the target hard drive to determine the target information read address corresponding to the target hard drive, so as to read the target lighting information from the target information read address.
[0111] Read the target lighting information from the target information reading address;
[0112] After determining the target information reading address, the target lighting information is read from the target information reading address, and then the target lighting information can be sent to the target backplane to perform the corresponding lighting operation according to the target lighting information.
[0113] The target lighting information is sent to the programmable logic device on the target backplane via an I2C signal, so that the programmable logic device on the target backplane can control the target hard disk to perform the lighting operation according to the target lighting information.
[0114] After acquiring the target LED illumination information, the information is transmitted to the programmable logic device (PLD) on the target backplane via an I2C signal. For example, if it is the first backplane, the information is transmitted via I2C5; if it is the second backplane, the information is transmitted via I2C6. Then, the PLD on the target backplane controls the target hard drive to perform the LED illumination operation based on the target LED illumination information.
[0115] It should be understood that, although Figures 2-3 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figures 2-3 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
[0116] Example 4
[0117] Reference Figure 4 As shown, Figure 4 This is a system structure diagram of the hard disk lighting system provided in the embodiments of this application.
[0118] The hard disk LED lighting system of this embodiment includes:
[0119] The information processing module is used to receive target information of the target hard disk in response to the SLOAD signal being low, so as to obtain an information lookup table from the platform path controller according to the target information;
[0120] The SGPIO signal includes the SLOAD signal. When the hard drive's state changes and the platform path controller needs to control the hard drive to activate its LED, the SLOAD signal level is pulled low. Therefore, the SLOAD signal level reflects whether an LED activation operation is required. That is, when the SLOAD signal level is pulled low, the platform path controller needs to send an LED activation signal to activate the hard drive. When the SLOAD signal level is pulled low, the information processing module receives the target information of the target hard drive and then retrieves the target LED activation information from the information lookup table in the platform path controller based on the target information.
[0121] The lighting information module is used to determine the target information reading address from the information lookup table based on the target information and read the target lighting information from the target information reading address.
[0122] After obtaining the information lookup table, the target information reading address corresponding to the target hard drive can be determined from the information lookup table through the lighting information module based on the target information. Then, the target lighting information can be read from the target information reading address to enable the lighting operation.
[0123] The lamp-lighting execution module is used to send the target lamp-lighting information to the programmable logic device on the target backplane via an I2C signal, so that the programmable logic device on the target backplane can control the target hard disk to perform a lamp-lighting operation according to the target lamp-lighting information.
[0124] After obtaining the target LED lighting information, the information is sent to the programmable logic device on the target backplane via I2C signals. For example, if it is the first backplane, the target LED lighting information is sent to the programmable logic device on the first backplane via I2C5 signal; if it is the second backplane, the target LED lighting information is sent to the programmable logic device on the second backplane via I2C6 signal. Then, the LED lighting execution module controls the target hard drive to perform the LED lighting operation based on the target LED lighting information.
[0125] Specific limitations regarding the hard disk LED lighting system can be found in the method limitations section above, and will not be repeated here. Each module in the aforementioned hard disk LED lighting system can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0126] Example 5
[0127] This embodiment provides a computer device, 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 implements the steps of the hard disk lighting method.
[0128] This computer device can be a terminal, and its internal structure diagram can be as follows: Figure 5 As shown, the computer device includes a processor, memory, network interface, display screen, and input devices 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 and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements a hard disk illumination method. The display screen can be an LCD screen or an e-ink display screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device casing, or an external keyboard, touchpad, or mouse.
[0129] Those skilled in the art should understand that Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0130] 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, wherein the processor executes the computer program to perform the following steps:
[0131] In response to the SLOAD signal being low, target information of the target hard disk is received, and an information lookup table is obtained from the platform path controller based on the target information;
[0132] Based on the target information, determine the target information reading address from the information lookup table and read the target lighting information from the target information reading address;
[0133] The target lighting information is sent to the programmable logic device on the target backplane via an I2C signal, so that the programmable logic device on the target backplane can control the target hard disk to perform the lighting operation according to the target lighting information.
[0134] Example 6
[0135] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it performs the following steps:
[0136] In response to the SLOAD signal being low, target information of the target hard disk is received, and an information lookup table is obtained from the platform path controller based on the target information;
[0137] Based on the target information, determine the target information reading address from the information lookup table and read the target lighting information from the target information reading address;
[0138] The target lighting information is sent to the programmable logic device on the target backplane via an I2C signal, so that the programmable logic device on the target backplane can control the target hard disk to perform the lighting operation according to the target lighting information.
[0139] 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 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) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of 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 memory bus dynamic RAM (RDRAM), etc.
[0140] 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.
[0141] The embodiments described above are merely illustrative of 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 hard disk illumination device, characterized in that, The hard disk illumination device includes a motherboard and at least one backplane. The motherboard includes a baseboard management controller, a programmable logic device (PLD), and a platform path controller, which are connected in sequence. The PLD communicates with the platform path controller via SGPIO signals and with the baseboard management controller via I2C signals. The motherboard also has a first communication interface, and the baseboard management controller and the PLD are both connected to the first communication interface via I2C signals. The backplane includes a PLD and a second communication interface. The PLD on the backplane communicates with the second communication interface via I2C signals. The first communication interface and the second communication interface are connected via I2C signals, and the PLD on the backplane is also connected to the hard disk.
2. A hard disk lighting method using the hard disk lighting device as described in claim 1, characterized in that, The SGPIO signal includes the SLOAD signal, and the hard disk LED lighting method includes: In response to the SLOAD signal being low, target information of the target hard disk is received, and an information lookup table is obtained from the platform path controller based on the target information; Based on the target information, determine the target information reading address from the information lookup table and read the target lighting information from the target information reading address; The target lighting information is sent to the programmable logic device on the target backplane via an I2C signal, so that the programmable logic device on the target backplane can control the target hard disk to perform the lighting operation according to the target lighting information.
3. The hard disk LED lighting method according to claim 2, characterized in that, The response before the SLOAD signal goes low also includes: The slot information and address information of the hard drives on different backplanes are obtained by using different I2C signals, and an information lookup table corresponding to the backplane is generated based on the slot information and address information of the hard drives on different backplanes. The information lookup table is stored in the platform path controller.
4. The hard disk LED lighting method according to claim 2, characterized in that, The response before the SLOAD signal goes low also includes: In response to a change in the status information of the hard disk, the hard disk whose status information has changed is identified as the target hard disk, and the status information of the target hard disk is obtained; Obtain the slot information of the target hard drive, and determine the target bus corresponding to the target hard drive based on the slot information of the target hard drive; Pull the level of the SLOAD signal corresponding to the target bus low.
5. The hard disk LED lighting method according to claim 4, characterized in that, The target information is formed by the slot information and status information of the target hard drive. Receiving the target information of the target hard drive in response to the SLOAD signal being low includes: In response to the SLOAD signal being low, the system receives the target hard drive slot information and status information sent from the platform path controller via the SGPIO signal. The status information of the target hard drive is determined as the target indicator information, and the target indicator information is stored in the target information reading address of the information lookup table corresponding to the target hard drive.
6. The hard disk LED lighting method according to claim 5, characterized in that, The step of obtaining the information lookup table from the platform path controller based on the target information includes: The target backplane is determined from the backplane based on the slot information of the target hard drive, so as to obtain the information lookup table corresponding to the target backplane from the platform path controller.
7. The hard disk LED lighting method according to claim 6, characterized in that, The step of determining the target information reading address from the information lookup table based on the target information and reading the target lighting information from the target information reading address includes: Based on the slot information of the target hard drive, the target information read address corresponding to the target hard drive is determined from the information lookup table corresponding to the target backplane; Read the target lighting information from the target information reading address.
8. A hard disk LED lighting system implementing the hard disk LED lighting method as described in any one of claims 2-7, characterized in that, The hard disk illumination system includes: The information processing module is used to receive target information from the target hard disk in response to the SLOAD signal being low, so as to obtain an information lookup table from the platform path controller based on the target information; The lighting information module is used to determine the target information reading address from the information lookup table based on the target information and read the target lighting information from the target information reading address. The lamp-lighting execution module is used to send the target lamp-lighting information to the programmable logic device on the target backplane via an I2C signal, so that the programmable logic device on the target backplane can control the target hard disk to perform a lamp-lighting operation according to the target lamp-lighting information.
9. 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 2 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program that, when executed by a processor, causes the processor to perform the steps of the method as described in any one of claims 2 to 7.
Citation Information
Patent Citations
Server, hard disk lighting method and system and computer readable storage medium
CN110543404A
Disk detection system, method and device and storage medium
CN112463475A