A method, apparatus, device, medium, and product for controlling hard disk backplanes.

By arbitrating the indicator light control signals of the host and the baseboard management controller through an FPGA/CPLD hardware arbitrator and combining the physical status of the hard drive, the problem of conflicting indicator light control signals on the hard drive backplane is solved, and more precise indicator light control is achieved.

CN121144150BActive Publication Date: 2026-01-30JINAN INSPUR DATA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511667229.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-11-14
Publication Date
2026-01-30
Estimated Expiration
2045-11-14

AI Technical Summary

Technical Problem

In existing technologies, the indicator light control logic of hard drive backplanes is simple, which can easily lead to control signal conflicts, resulting in confusing indication results and misleading maintenance personnel.

Method used

An FPGA/CPLD hardware arbitrator is used to arbitrate the indicator light control signals of the host and the baseboard management controller. Combined with the physical status of the hard drive, the valid indicator light control signals are determined, and conflicting signals are handled through a priority strategy.

Benefits of technology

The accuracy of the indicator lights has been improved, ensuring that the indicated results are consistent with the actual status of the hard drive, reducing maintenance misconceptions, simplifying hardware design, and reducing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121144150B_ABST
    Figure CN121144150B_ABST
Patent Text Reader

Abstract

This invention relates to the technical field of hard disk indicator light control, and particularly to a hard disk backplane control method, apparatus, device, medium, and product. The method includes: acquiring indicator light control signals from a target hard disk; if the indicator light control signals include a first indicator light control signal and a second indicator light control signal, arbitrating the first and second indicator light control signals to determine a valid indicator light control signal; and controlling the indicator lights of the target hard disk based on the valid indicator light control signal and the physical state of the target hard disk. Arbitrating indicator light control signals from different sources to determine the valid indicator light control signal resolves the issue of inconsistent indication results caused by control conflicts. Furthermore, by comprehensively determining the final indication based on the physical state of the indicator lights, the control results of the indicator lights are more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the technical field of hard disk indicator light control, and in particular to a hard disk backplane control method, device, equipment, medium, and product. Background Technology

[0002] With the rapid development of cloud computing, big data, and artificial intelligence, the storage density of data centers is constantly increasing. It has become the norm for a single server node or JBOD (Just a Bunch Of Disks) storage expansion unit to be equipped with 35 or more hard drives. This high level of integration brings challenges to the complexity of status indication.

[0003] High-density backplanes require clear status indicators for each hard drive, typically including Activity, Locate, and Fault indicator lights. Control signals for Locate and Fault typically come from two sources: a) the host-side SAS / RAID controller serially sends control commands via the SGPIO (Serial General Purpose Input / Output) protocol; b) the Baseboard Management Controller (BMC) issues control commands via management buses such as I2C (e.g., for remote maintenance). These technologies often have simple processing logic, making them prone to conflicts. For example, the BMC might request the Locate indicator light to illuminate a hard drive that is not in place; or the SGPIO might indicate Activity, but the hard drive could not be active due to lack of power. Such inconsistent indications can severely mislead maintenance personnel, resulting in confusing and inaccurate indicator light readings.

[0004] It is evident that improving the accuracy of indicator lights is a problem that needs to be solved by those skilled in the art. Summary of the Invention

[0005] The purpose of this invention is to provide a hard disk backplane control method, device, equipment, medium, and product that can improve the accuracy of indicator lights.

[0006] In a first aspect, a hard disk backplane control method is provided, comprising: acquiring indicator light control signals of a target hard disk; if the indicator light control signals include a first indicator light control signal and a second indicator light control signal, arbitrating the first indicator light control signal and the second indicator light control signal to determine a valid indicator light control signal; the first indicator light control signal representing an indicator light control signal originating from a host, and the second indicator light control signal representing an indicator light control signal originating from a baseboard management controller; acquiring the physical state of the target hard disk; and controlling the indicator lights of the target hard disk based on the valid indicator light control signal and the physical state of the target hard disk.

[0007] In a preferred embodiment, the present invention may be further configured to include: if the indicator light control signal includes a first indicator light control signal or a second indicator light control signal, then the indicator light of the target hard disk is controlled based on the indicator light control signal and the status information of the target hard disk.

[0008] In a preferred embodiment, the present invention can be further configured such that: the physical state of the target hard disk includes: an in-situ state and a power-on state; correspondingly, based on the valid indicator light control signal and the physical state of the target hard disk, controlling the indicator light of the target hard disk includes: if the in-situ state of the target hard disk is in-situ and the power-on state is power-on, then controlling the indicator light of the target hard disk based on the valid indicator light control signal; if the in-situ state of the target hard disk is not in-situ, or the power-on state is not power-on, then ignoring the valid indicator light control signal and controlling the indicator light of the target hard disk to turn off.

[0009] In a preferred embodiment, the present invention may be further configured to include: periodically acquiring pulse counts of the target hard disk, the pulse counts representing the number of times the target hard disk is active; if the pulse counts are less than a preset threshold, controlling an indicator light of the target hard disk based on the physical state of the target hard disk; if the pulse counts are not less than the preset threshold, controlling the indicator light of the target hard disk based on a first preset parameter.

[0010] In a preferred embodiment, the present invention can be further configured to: control the indicator light of the target hard disk based on the physical state of the target hard disk, including: if the target hard disk is not in place or is not powered on, then control the indicator light of the target hard disk to turn off; otherwise, control the indicator light of the target hard disk based on a second preset parameter.

[0011] In a preferred embodiment, the present invention can be further configured to: periodically acquire the pulse count of the target hard disk, including: periodically reading the active pulse signal of the target hard disk; detecting the edge of the active pulse signal to obtain the pulse count of the target hard disk.

[0012] In a preferred embodiment, the present invention can be further configured to: arbitrate the first indicator light control signal and the second indicator light control signal to determine a valid indicator light control signal, including: arbitrating the first indicator light control signal and the second indicator light control signal based on the priority information carried by the second indicator light control signal, and determining the second indicator light control signal as a valid indicator light control signal.

[0013] In a preferred embodiment, the present invention may be further configured to: arbitrate the first indicator light control signal and the second indicator light control signal to determine a valid indicator light control signal, including: determining a valid indicator light control signal from the first indicator light control signal and the second indicator light control signal according to a preset priority strategy.

[0014] In a preferred embodiment, the present invention can be further configured as follows: the preset priority strategy is determined based on the value of the priority control register; if the value of the priority control register is a first value, the priority of the indicator light control signal from the host is higher than the priority of the indicator light control signal from the board management controller; if the value of the priority control register is a second value, the priority of the indicator light control signal from the board management controller is higher than the priority of the indicator light control signal from the host.

[0015] In a preferred embodiment, the present invention may be further configured to: before acquiring the indicator light control signal of the target hard drive, further comprising: detecting whether the backplane main power supply is stable; if the backplane main power supply is stable, then enabling the hard drive power supply corresponding to each hard drive according to the power-on time interval.

[0016] In a preferred embodiment, the present invention can be further configured to: enable the power supply of each hard drive according to the power-on time interval, including: when the power-on time interval is reached, updating the power-on counter value and determining whether the power-on counter value exceeds the disk position value; if it does not exceed the disk position value, decoding the power-on counter value to obtain the power enable signal of the corresponding hard drive; and enabling the power supply of the corresponding hard drive according to the power enable signal until the power-on counter value reaches the disk position value, thereby completing the power-on of all hard drives.

[0017] In a preferred embodiment, the present invention can be further configured as follows: when the power-on time interval is reached, the power-on counter value is updated, including: if the number of hard drives powered on at this time is greater than 1, then when the power-on time interval is reached, the power-on counter value is updated according to the number of hard drives powered on at this time and the previous power-on counter value; correspondingly, the power-on counter value is decoded to obtain the power enable signal of the corresponding hard drive, including: decoding the power-on counter value to obtain the power enable signal of the hard drive corresponding to the number of hard drives powered on at this time.

[0018] In a preferred embodiment, the present invention may be further configured to: after acquiring the indicator light control signal of the target hard drive, further comprising: determining whether the indicator light control signal of the target hard drive conforms to the protocol specification.

[0019] In a preferred embodiment, the present invention may be further configured to include: recording the timestamp of the current conflict, and the slot information of the target hard disk.

[0020] In a preferred embodiment, the present invention may be further configured as follows: after controlling the indicator lights of the target hard drive based on the valid indicator light control signal and the physical state of the target hard drive, the invention further includes: determining whether the control of the valid indicator light control signal exceeds a preset duration; if so, controlling the indicator lights of the target hard drive based on other indicator light control signals besides the valid indicator light control signal.

[0021] In a preferred embodiment, the present invention can be further configured as follows: if so, the indicator lights of the target hard drive are controlled based on indicator light control signals other than the valid indicator light control signal, including: if so, determining whether the first indicator light control signal and the second indicator light control signal are the same; if not, controlling the indicator lights of the target hard drive based on indicator light control signals other than the valid indicator light control signal.

[0022] Secondly, a hard disk backplane control device is provided, comprising: an acquisition module for acquiring indicator light control signals of a target hard disk; an arbitrator for arbitrating the first indicator light control signal and the second indicator light control signal if the indicator light control signal includes a first indicator light control signal and a second indicator light control signal, to determine a valid indicator light control signal; wherein the first indicator light control signal represents an indicator light control signal originating from a host, and the second indicator light control signal represents an indicator light control signal originating from a baseboard management controller; a physical state management module for acquiring the physical state of the target hard disk; and a control module for controlling the indicator lights of the target hard disk based on the valid indicator light control signal and the physical state of the target hard disk.

[0023] Thirdly, an electronic device is provided, comprising a memory for storing a computer program and a processor for executing the computer program to implement the method as described in any of the first aspects.

[0024] Fourthly, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the method as described in any of the first aspects.

[0025] Fifthly, a computer program product is provided, including a computer program / instructions that, when executed by a processor, implement the method as described in any of the first aspects.

[0026] In summary, the hard disk backplane control method provided by this invention has the following beneficial technical effects: acquiring indicator light control signals of the target hard disk; if the indicator light control signals include a first indicator light control signal and a second indicator light control signal, arbitrating the first and second indicator light control signals to determine the valid indicator light control signal; the first indicator light control signal represents the indicator light control signal from the host, and the second indicator light control signal represents the indicator light control signal from the baseboard management controller; acquiring the physical state of the target hard disk; and controlling the indicator lights of the target hard disk based on the valid indicator light control signal and the physical state of the target hard disk. Arbitrating indicator light control signals from different sources to determine the valid indicator light control signal solves the problem of chaotic indication results caused by control conflicts. Furthermore, by combining the physical state of the indicator lights to comprehensively determine the final indication, the control results of the indicator lights are more accurate.

[0027] In addition, the present invention also provides a hard disk backplane control device, equipment, medium and product, all of which have the above-mentioned beneficial technical effects. Attached Figure Description

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

[0029] Figure 1 This is a schematic diagram of a hard disk backplane control system provided in an embodiment of the present invention.

[0030] Figure 2 This is a schematic flowchart of a hard disk backplane control method provided in an embodiment of the present invention.

[0031] Figure 3 This is a schematic diagram of an arbitration process provided by an embodiment of the present invention.

[0032] Figure 4 This is a schematic diagram of hard disk activity determination and control provided by an embodiment of the present invention.

[0033] Figure 5 This is a schematic diagram of a hard drive being powered on according to an embodiment of the present invention.

[0034] Figure 6 This is a schematic diagram of a hard disk backplane control device provided in an embodiment of the present invention.

[0035] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0036] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the present invention.

[0037] The terms "comprising" and "having," and any variations thereof, in the specification and accompanying drawings of this invention are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may include steps or units not listed.

[0038] To facilitate understanding, some technical terms will now be explained.

[0039] CPLD (Complex Programmable Logic Device): A core chip used to implement backplane control logic.

[0040] BMC (Baseboard Management Controller): A standalone processor that provides a remote management interface.

[0041] SGPIO (Serial General Purpose Input / Output): A serial general purpose input / output interface used for LED control communication between the host and the backplane.

[0042] eFuse (Electronic Fuse): An integrated circuit device that provides overcurrent protection.

[0043] PWRGD (Power Good): Power ready signal, indicating that the voltage has reached the stable operating range.

[0044] PRSNT_N (Presence Negative): Hard disk presence detection signal (active low), physical definition: V_active < 0.8V (0 = present).

[0045] ACT_R (Activity Red): Hard drive activity indicator signal (driven by a red LED). SGPIO protocol specification: 1Hz flashing = location status; 4Hz flashing = read / write activity. Currently, high-density backplanes need to provide clear status indicators for each hard drive, typically including Activity, Locate, and Fault indicators. Control signals usually come from two sources: a) the host-side SAS / RAID controller serially sends control commands via the SGPIO protocol; b) the Baseboard Management Controller (BMC) issues control commands via management buses such as I2C (e.g., for remote maintenance).

[0046] Existing solutions often have simple logic, making them prone to conflicts. For example, the BMC might request to light up the location indicator of a hard drive, even if the hard drive is not in position; or the SGPIO might indicate activity, but the hard drive could not be active due to lack of power. Such inconsistent indications can seriously mislead maintenance personnel. Specifically, if a hard drive is power-off and not in position, the BMC will not update its presence status in real time. It will only capture the presence signal in the next cycle and actively issue a light-up command during this period. However, if the hard drive is unable to supply power or interact normally due to a fault, the BMC will issue a light-up command, but the hard drive will not actually light up. Maintenance personnel then need to additionally locate the corresponding hard drive from the control terminal to check if it is lit. For clusters with thousands or tens of thousands of hard drives, this inaccuracy increases maintenance costs. Furthermore, the simple "light up when signal is available" mode of activity indication cannot distinguish between different activity intensities, resulting in insufficient information.

[0047] Based on this, the purpose of the present invention is to provide a hard disk backplane control system and method based on FPGA / CPLD to solve the problems mentioned in the background art.

[0048] Specifically, this invention provides a hard disk backplane control system, which can be found in [reference needed]. Figure 1 This includes: a server motherboard (which includes a SAS controller), a baseboard management controller (BMC) (which includes I2C slave devices), and a CPLD / FPGA. Furthermore, it may also include a backplane CPLD and a hard disk drive.

[0049] The core of this system is a CPLD / FPGA. This CPLD / FPGA integrates the following functional modules: Power Sequencing Controller: Responsible for executing the time-sharing power-on algorithm. SGPIO Interface Controller: Parses the SGPIO data stream from the host SAS controller, extracting indicator light control signals for each hard drive, such as Locate and Error commands. I2C Slave Interface Controller: Communicates with the BMC, receiving LED control commands and hard drive power control commands from the BMC. LED Arbitrator: Selects the host's SGPIO or BMC commands as valid indicator light control signals according to preset priorities. Intelligent Activity Indication Logic: Independently processes the activity signals of each hard drive, generating corresponding LED blinking patterns.

[0050] Furthermore, it may also include an input synchronization and debouncing module, used to synchronize and digitally filter all input signals (such as hard disk in-situ signal PRSNT_N, power good signal PWRGD, and activity signal ACT_R) to improve the system's reliability in noisy environments.

[0051] In one feasible approach, a time-sharing power-on algorithm is executed for the power sequence controller. Specifically, once the backplane's main power supply (e.g., +12V, +5V) is normal, the corresponding power-on good signal (PWRGD_P12V_HDD_CTR, etc.) becomes valid. After the power sequence control module detects that all necessary main power supplies (e.g., CPLD power supply, CPU power supply, etc.) are valid, it releases the reset state, and the system begins operation. Subsequently, the signal conditioning and synchronization module begins continuously sampling 35 channels of hard disk presence signals (HDDx_PRSNT_N).

[0052] In one feasible approach, for the LED arbiter, instructions from the host's SGPIO or BMC are selected as valid indicator light control signals based on a preset priority. Specifically, this includes a signal input phase, a request generation and verification phase, an arbitration phase, and an output phase.

[0053] For the signal input stage, two independent input sources are received. The first indicator control signal, LOC_SGPIO / ERR_SGPIO, comes from the host SAS controller via the SGPIO bus and reflects the actual, real-time physical status of the hard drive (e.g., activity due to read / write operations, or error reports due to faults). The second indicator control signal, LOC_BMC / ERR_BMC, comes from instructions from the Baseboard Management Controller (BMC). This signal can be a response to remote management operations (e.g., a user requesting hard drive location via the management interface) or the BMC's own diagnostic strategies.

[0054] For the request generation and verification phase, when any input source has a signal, a corresponding request (REQ) signal (such as REQ_BMC, REQ_SGPIO) is generated, indicating that the signal source wishes to acquire control of the indicator light. Furthermore, status verification logic can be included. For example, the system verifies whether the target hard drive is present and powered on. If the hard drive is not present, any command to locate its indicator light will be ignored or masked to avoid misleading maintenance personnel and to resolve conflicts such as "BMC requests to light up a hard drive's indicator light, but the hard drive is not present."

[0055] Regarding the arbitration phase: When two input sources simultaneously send valid request signals, the arbiter begins operation. The arbiter determines which indicator control signal gains output permission based on a preset priority strategy. It's important to understand that this logic is a selection logic, not a simple masking logic. Masking logic refers to masking certain bits of a signal, while the arbiter is essentially a two-to-one or many-to-one router, selecting one input from multiple inputs as the final output.

[0056] However, the arbitration result cannot directly power on the light; it must be bitwise ANDed with the physical state. The mask condition for the selection logic is hardcoded as: mask[i]=HDD_PRSNT_N[i]==0&&PWR_EN[i]==1, where HDD_PRSNT_N[i]==0 indicates whether the i-th element is equal to 0 (indicating it is in place), and PWR_EN[i]==1 indicates whether the i-th element is equal to 1 (indicating it is powered on). After that, if it is both in place and powered on, the mask condition mask[i] of the hard drive is 1.

[0057] Regarding the output stage, the arbitrator's output is the final LOC / ERR_OUT signal, which is sent to the LED driver circuit on the hard drive backplane to control the corresponding hard drive indicator light to turn on or off or flash.

[0058] The core decision-making mechanism of the arbitrator is based on priority selection. The system has a configurable priority register. By default, BMC requests are usually set to have a higher priority than SGPIO requests. Priorities can also be dynamically switched through specific instructions issued by the BMC, i.e., priority requests. Maintenance personnel can add a command or field before issuing control commands through the BMC. After the arbitrator obtains the prefix command / field, it will automatically take the command following this command as the highest priority. `LED_LOC_HDDi_N=!(LOC_arb[i]&mask[i])`, where `LOC_arb[i]` represents the arbitration result for the first element, `mask[i]` represents the mask condition, and `LED_LOC_HDDi_N` represents the final result; `LED_ERR_HDDi_N=!(ERR_arb[i]&mask[i])`.

[0059] There are two scenarios for the arbitration rules. Scenario 1, Single Request: When only the BMC or only the SGPIO sends a request, the arbitrator directly selects the signal from that party as its output. Scenario 2, Conflicting Requests: When both the BMC and SGPIO send requests simultaneously (e.g., SGPIO requests an ERR light flashing due to a hard drive failure, while the BMC requests an LOC light flashing due to remote maintenance), the arbitrator compares their priorities. If the BMC has higher priority, it outputs the LOC / ERR_BMC signal. If the SGPIO has higher priority, it outputs the LOC / ERR_SGPIO signal.

[0060] In this embodiment of the invention, the hard disk backplane control system mainly consists of a server motherboard, BMC, CPLD / FPGA, and hard disk. Communication is primarily conducted via SGPIO and I2C buses.

[0061] Specifically, a hardware arbitrator was designed for CPLD / FPGA to process LED control commands from host SGPIO and BMC, and output the final control signal according to priority, realizing a multi-source signal collaborative processing and arbitration mechanism.

[0062] Furthermore, a configurable power-on timing state machine can be implemented in the firmware to ensure that hard drives are powered on one by one at preset time intervals, realizing a programmable time-sharing power-on algorithm. Moreover, the LED display is not only based on control commands but also hard-linked to the actual physical state of the hard drive (whether it is present) and power status (whether it is powered on), avoiding invalid indications. All logic is implemented in hardware within the FPGA / CPLD, resulting in fast response speed, high reliability, and no consumption of host CPU resources.

[0063] As can be seen, in this embodiment of the invention, all functional modules (power timing, SGPIO parsing, I2C slave interface, arbiter, mask logic, activity detector, etc.) are integrated into a single CPLD or FPGA, replacing the multiple discrete chips (PMIC, logic IC, MCU, etc.) that may be required in traditional solutions. This greatly simplifies PCB design, reduces system complexity and material costs, and improves overall reliability (by reducing connectors and solder joints). Implemented in pure hardware, it possesses extremely high reliability and real-time performance.

[0064] To enable those skilled in the art to better understand the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0065] The following sections will describe in detail a hard disk backplane control method, apparatus, device, medium, and product provided by embodiments of the present invention. Figure 2 A hard disk backplane control method provided in this embodiment of the invention includes: S101, acquiring indicator light control signals of the target hard disk.

[0066] For the system, there are multiple hard drives. For the same hard drive, the indicator light control signal can be a single signal or two signals. Specifically, there is a first indicator light control signal from the host and a second indicator light control signal from the board management controller. The control signals include: a Locate command and an Error command.

[0067] A location command (Locate) refers to the visual identification of a specific physical hard drive. Taking the host source as an example, maintenance personnel select the hard drive that needs maintenance in the management software. When the server requires on-site maintenance, the target hard drive can be quickly located, and then a location command can be issued to locate it. This allows control of the blue location light (usually constantly lit) of the specified hard drive slot, providing a prominent visual identification in the hard drive array.

[0068] Error commands are used to indicate hard drive failures or abnormal states. They can be used to control hard drive indicator lights in scenarios such as read / write errors, SMART failures, abnormal or dropped hard drive links, and predictive hard drive failure warnings. This allows for the control of the red fault light (usually constantly lit) in a designated hard drive slot, immediately issuing a visual alarm to maintenance personnel.

[0069] In this embodiment of the invention, the execution entity can be a CPLD or an FPGA. The following explanation uses a CPLD as an example. As the core controller for instruction execution, the CPLD parses the received indicator light control signal. Taking SGPIO as an example, it parses the slot address and instruction type in the SGPIO data frame of the first indicator light control signal to determine the information of the target hard disk.

[0070] In one feasible approach, if the indicator light control signal includes a first indicator light control signal or a second indicator light control signal, then the indicator lights of the target hard drive are controlled based on the indicator light control signal and the status information of the target hard drive.

[0071] S102. If the indicator light control signal includes a first indicator light control signal and a second indicator light control signal, then the first indicator light control signal and the second indicator light control signal are arbitrated to determine the valid indicator light control signal.

[0072] The first indicator light control signal represents the indicator light control signal originating from the host, and the second indicator light control signal represents the indicator light control signal originating from the board management controller.

[0073] In one possible scenario, when an indicator light control signal (SGPIO instruction) from the host computer conflicts with an indicator light control signal from the Baseboard Management Controller (BMC) (e.g., an SGPIO error occurs while the BMC requests location), arbitration logic is initiated. Specifically, the valid indicator light control signal to be executed can be selected based on a preset priority (usually the BMC management instruction has higher priority). Furthermore, conflict events can be recorded for subsequent querying via the management interface to trace the source.

[0074] Of course, there is also the case where there is no conflict between the two, in which case arbitration logic can be initiated.

[0075] Specifically, in this embodiment of the invention, an arbitrator is used to determine the valid indicator light control signal. This arbitrator is essentially a multiplexer (MUX) with priority selection, and its core architecture includes: an input interface, an arbitration logic unit, and an output interface. The input interface includes: SGPIO instruction inputs, primarily from real-time status instructions (LOC_SGPIO, ERR_SGPIO) from the host SAS controller; BMC instruction inputs, primarily from management instructions issued by the BMC via the I2C bus (LOC_BMC, ERR_BMC); and priority configuration inputs, primarily from the configurable priority selection signal (PRIORITY_SEL) of the BMC. The arbitration logic unit uses combinational logic to implement priority decision-making; it compares the validity of two input signals in real time; and selects the output signal source according to the priority configuration. The output interface generates the final hard disk indicator signal (LOC_OUT, ERR_OUT); and outputs it to the LED driver circuit for physical indication.

[0076] This invention includes a configurable priority register, specifically a 1-bit control register named PRIORITY_REG in the CPLD; PRIORITY_REG=0: high SGPIO source priority; PRIORITY_REG=1: high BMC source priority (default value). Furthermore, a register access interface is configured, enabling register read / write operations via an I2C slave interface; the BMC writes the priority configuration by sending I2C frames of a specific format; an example I2C write sequence is: [Start][SlaveAddr][RegAddr][Data][Stop]. Further, it supports dynamic priority modification at runtime; changes take effect immediately without requiring a system reset; and a priority status readback function is provided.

[0077] The arbitrator's decision logic can be described using the following Verilog code:

[0078] module led_arbiter (

[0079] input [35:0] loc_bmc, err_bmc, / / BMC instructions

[0080] input [35:0] loc_sgpio, err_sgpio, / / SGPIO instructions

[0081] input priority_sel, / / Priority selection

[0082] output reg [35:0] loc_out, err_out / / Output command );

[0084] always @(*) begin

[0085] for (int i = 0; i < 36; i = i + 1) begin

[0086] / / Priority arbitration logic

[0087] if (priority_sel) begin / / BMC has high priority

[0088] loc_out[i] = loc_bmc[i] ? loc_bmc[i] : loc_sgpio[i];

[0089] err_out[i] = err_bmc[i] ? err_bmc[i] : err_sgpio[i];

[0090] end else begin / / SGPIO has high priority

[0091] loc_out[i] = loc_sgpio[i] ? loc_sgpio[i] : loc_bmc[i];

[0092] err_out[i] = err_sgpio[i] ? err_sgpio[i] : err_bmc[i];

[0093] end

[0094] end

[0095] end

[0096] endmodule.

[0097] Furthermore, embodiments of the present invention can also process signals. For example, input signal synchronization: asynchronous input signals are synchronized using two-stage registers; metastability is prevented from propagating to the arbitration logic; signal stability is maintained for at least two clock cycles. Another example is clock domain processing: SGPIO signals are typically synchronized with the SAS controller clock; BMC instructions are transmitted asynchronously via I2C; asynchronous FIFO or handshake protocols are used for cross-clock domain processing. Yet another example is output hold time: the arbitration result is held for at least one clock cycle; excessively high LED blinking frequency is prevented from affecting visual recognition; output enable control is provided to avoid glitches.

[0098] Furthermore, it also includes: recording the timestamp of the current conflict, as well as the slot information of the target hard drive. Specifically, it detects a conflict state where two inputs are simultaneously valid; sets a conflict flag for BMC to query; and records the time of the conflict and the slot information.

[0099] Furthermore, it verifies whether the input signal conforms to the protocol specification; discards obviously invalid instructions (such as all 0s / all 1s); and provides signal quality monitoring functionality. Specifically, after acquiring the indicator light control signal of the target hard drive, it also includes: determining whether the indicator light control signal of the target hard drive conforms to the protocol specification. If it does not conform, the indicator light control signal of the target hard drive is discarded; if it does conform, the subsequent process is executed.

[0100] Furthermore, after controlling the indicator lights of the target hard drive based on the valid indicator light control signal and the physical state of the target hard drive, the process also includes: determining whether the control of the valid indicator light control signal exceeds a preset duration; if so, controlling the indicator lights of the target hard drive based on other indicator light control signals besides the valid indicator light control signal. Specifically, if the indicator light control signal corresponding to the BMC has a high priority, a timeout timer is set for the BMC instruction; after the timeout, SGPIO control is automatically restored; this prevents the indicator from failing due to BMC malfunction.

[0101] This invention employs a three-stage pipeline to improve throughput: input synchronization → arbitration decision → output drive; new inputs can be processed in each clock cycle. Bit-parallel processing is used to reduce logic layers; shared common arbitration logic reduces resource consumption; and optimized state machine coding improves timing performance. Clock gating technology can also be used to reduce dynamic power consumption; automatic entry into a low-power mode when there is no operation; and a power state management interface is supported.

[0102] Furthermore, a level signal that meets the LED driving requirements is generated based on the effective indicator light control signal, so that the LED flashing frequency and mode (constant light, slow flashing, fast flashing) can be controlled based on the level signal.

[0103] S103. Obtain the physical status of the target hard drive.

[0104] The physical status of the target hard drive includes whether it is in place or powered on. The status of being in place includes whether it is in place or not, and the status of being powered on includes whether it is powered on or not.

[0105] S104. Control the indicator lights of the target hard drive based on the valid indicator light control signal and the physical state of the target hard drive.

[0106] In this embodiment of the invention, the physical status of the target hard disk slot (whether it is in place or powered on) can be verified. After receiving the instruction, the CPLD is only responsible for turning on the LED, but it must first pass the hardware mask of "in place & powered on" before the LED can finally blink at the protocol frequency; invalid instructions for hard disks that are not in place or not powered on are ignored.

[0107] For a detailed explanation of the arbitration process, please refer to [link / reference]. Figure 3 The location signal LOC and error signal ERR are sourced from either SGPIO or BMC by the arbitrator, and valid signals are output. The final output also goes through a masking logic: if the hard drive is in place and powered on, LEDs are controlled based on the valid signals; if the hard drive is not in place or not powered on, the corresponding LEDs are turned off. This logic takes precedence over any control commands.

[0108] For example, suppose the maintenance personnel request the location of hard disk 15 (i.e., to light up its location indicator) through the BMC Web interface. BMCFirmware translates this request into an I²C write register operation. BMC writes a control command to the I2C slave interface of the CPLD through the I2C bus, writing 1 to the LOC_BMC

[15] bit in the "BMCLED control register" inside the CPLD. When the LED arbitration and mask module receives LOC_BMC

[15] =1, it means that BMC has formally requested to light up the location indicator of hard disk 15. At the same time, the module continuously monitors the physical status of hard disk 15: the presence signal PRSNT_N

[15] and the power enable signal PWR_EN

[15] . Only when both are valid will LOC_final

[15] output 1, and finally light up the LED_LOC_HDD15_N. If hard disk 15 is removed at this time, PRSNT_N

[15] immediately becomes invalid. Even if the BMC command is still in effect, the LED will be forcibly turned off by the hardware, accurately reflecting the physical reality.

[0109] This invention provides a hardware arbitration and priority management mechanism for multiple control sources (SGPIO and BMC). A hardware arbitrator (such as a multiplexer MUX) is designed, whose inputs are control commands from the host SGPIO and control commands issued by the BMC via the I2C bus. A configurable priority signal determines which command is currently output. This solves the "control conflict" problem in high-density backplane systems, avoids the LED status confusion when SGPIO and BMC send different commands simultaneously, and provides a clear and conflict-free control path for remote operation and maintenance and local monitoring.

[0110] As can be seen, in this embodiment of the invention, arbitration is performed on indicator light control signals from different sources to determine the valid indicator light control signal, which solves the problem of chaotic indication results caused by control conflicts. Furthermore, the physical state of the indicator light is combined to comprehensively determine the final indication, making the control result of the indicator light more accurate.

[0111] In one possible implementation of this invention, the physical state of the target hard disk includes: an in-situ state and a power-on state. Correspondingly, based on the valid indicator light control signal and the physical state of the target hard disk, the indicator light of the target hard disk is controlled, including: if the target hard disk is in-situ and powered on, then the indicator light of the target hard disk is controlled based on the valid indicator light control signal; if the target hard disk is not in-situ or not powered on, then the valid indicator light control signal is ignored, and the indicator light of the target hard disk is turned off.

[0112] This invention controls the hard drive based on LED output forced masking logic that determines whether the drive is in place and powered on. It performs a logical AND operation between the arbitrated LED control command and the hard drive's real-time physical state (~PRSNT_N & PWR_EN, i.e., "in place and powered on"). Only when the hard drive is actually present and powered on can the valid indicator control signal be finally delivered to the LED; otherwise, the LED is forcibly turned off. This fundamentally eliminates "false indications." For example, a BMC requesting to locate a physically removed hard drive, or an SGPIO report of activity on a non-powered hard drive, are highly misleading in maintenance. This invention ensures the "absolute authenticity" of the indication system, improving system maintainability.

[0113] As can be seen, in this embodiment of the invention, the valid indicator light control signal after arbitration is logically ANDed with the real-time physical state of the hard drive. Only when the hard drive is actually present and powered on can the control command be finally sent to the indicator light.

[0114] One possible implementation of this invention further includes: periodically acquiring the pulse count of the target hard disk, the pulse count representing the number of times the target hard disk is active; if the pulse count is less than a preset threshold, controlling the indicator light of the target hard disk based on the physical state of the target hard disk; if the pulse count is not less than the preset threshold, controlling the indicator light of the target hard disk based on a first preset parameter.

[0115] The method of controlling the indicator light of the target hard drive based on the physical status of the target hard drive includes: if the target hard drive is not in place or is not powered on, then the indicator light of the target hard drive is turned off; otherwise, the indicator light of the target hard drive is controlled based on the second preset parameter.

[0116] The process of periodically acquiring the pulse count of the target hard drive includes: periodically reading the active pulse signal of the target hard drive; detecting the edge of the active pulse signal to obtain the pulse count of the target hard drive.

[0117] In this embodiment of the invention, the first preset parameter, the preset threshold and the second preset parameter are no longer limited and can be customized by the user.

[0118] For details, see Figure 4A preset threshold, Threshold, can be set to 3, indicating that more than 3 read / write operations are detected within 1 second, which is considered high-intensity activity. Taking hard drive 0 as an example, its activity signal HDD0_ACT is sent to the intelligent activity indicator module. This module is a self-contained, self-triggering hardware unit. Its execution does not depend on external "request" signals, but is based on a continuously running monitoring mechanism (edge ​​detection + timed query), and real-time status input (HDD0_ACT activity pulse) and the necessary enabling conditions (hard drive present and powered on successfully). The edge detector inside this module captures each activity pulse. A separate 1Hz timer window is used for query counting. If more than 3 activities (C_threshold=3) are detected within 1 second, LED_ACT_HDD0_N is driven to flash at a frequency of 4Hz (first preset parameter). If only 1-2 activities occur, the counter is reset to zero at the end of the 1-second window, and the LED remains constantly lit according to the second preset parameter. If the presence signal disappears or the power is not turned on, the LED is forcibly turned off.

[0119] In this embodiment of the invention, the dynamic activity intensity detection and indication pattern generation algorithm based on hardware counting designs an independent hardware circuit for each hard drive to detect and count the edges of activity signals. Within a fixed time window (e.g., 1 second), the display mode of the active LED (constant light / low-frequency flashing / high-frequency flashing) is automatically determined based on whether the count value exceeds a preset threshold (e.g., 3 times).

[0120] As can be seen, in this embodiment of the invention, the activity of the hard drive can be detected spontaneously and periodically. By detecting and counting the edges of the activity signals, the control parameters of the indicator lights are determined based on the count values, so as to dynamically reflect the hard drive load.

[0121] One possible implementation of this invention involves using priority information during arbitration. This priority information can be carried by the second indicator light control signal. Specifically, arbitrating the first indicator light control signal and the second indicator light control signal to determine the valid indicator light control signal includes: arbitrating the first indicator light control signal and the second indicator light control signal based on the priority information carried by the second indicator light control signal, and determining the second indicator light control signal as the valid indicator light control signal.

[0122] Another possible implementation of this invention involves using priority information during arbitration. This priority information can be a preset priority strategy stored in the system. Specifically, arbitrating the first indicator light control signal and the second indicator light control signal to determine the valid indicator light control signal includes: determining the valid indicator light control signal from the first indicator light control signal and the second indicator light control signal according to the preset priority strategy.

[0123] Furthermore, in one feasible implementation, the preset priority strategy is determined based on the value of the priority control register; if the value of the priority control register is a first value, the priority of the indicator light control signal from the host is higher than the priority of the indicator light control signal from the board management controller; if the value of the priority control register is a second value, the priority of the indicator light control signal from the board management controller is higher than the priority of the indicator light control signal from the host. The first value can be 0, and the second value can be 1; this is not limited in this embodiment of the invention.

[0124] Furthermore, it is understandable that hard disk drives (HDDs), especially mechanical hard disk drives (HDDs), require a huge instantaneous current for their motors and controllers during startup. If all hard drives on the backplane are powered on simultaneously, the resulting total inrush current will form a huge current spike, potentially far exceeding the instantaneous overload capacity of the power supply unit (PSU), causing a sudden drop in the backplane power rail voltage. This "voltage collapse" can not only cause hard drive startup failure and data corruption, but may also trigger system reset, PSU protective shutdown, and even physical damage to the power supply and connectors. The traditional solution is to use multiple dedicated power management ICs (PMICs) for staggered spin-up, but this increases circuit complexity, board area, and material costs. Therefore, one possible implementation of this invention, before acquiring the indicator light control signal of the target hard drive, further includes: detecting whether the backplane main power supply is stable; if the backplane main power supply is stable, then enabling the power supply of each hard drive according to the power-on time interval.

[0125] In this embodiment of the invention, the backplane main power supply is used to provide basic power. Stability means that the output voltage, current, and other parameters of the backplane main power supply remain relatively constant within a specified time range, without significant fluctuations or abnormal changes. The power-on time interval refers to the time difference set between the power-on operations of different hard drives / hard drive groups, indicating the sequential startup time and interval of each hard drive power supply, and the current generated by each powered-on hard drive / hard drive group does not exceed the instantaneous overload capacity of the power supply unit.

[0126] In one feasible method of grouping hard drives, the maximum startup current of a single hard drive is determined, and the theoretical maximum number of groups, N_max, is calculated as (instantaneous overload capacity - base load current) / (maximum startup current * safety factor K). The goal is to ensure that the number of hard drives in each group does not exceed this calculated value. This method is applicable to scenarios where all hard drives are of the same model and capacity. For hard drives with different models, they should first be grouped by type, and then the hard drives within each group should be further grouped using the method described above.

[0127] Understandably, if different models of hard drives need to be mixed in when grouping, the hard drive with the highest startup current should be used as the basis for grouping. In addition, the hard drives with high startup current should be grouped separately or placed in a small group (a group with fewer hard drives) to balance the load of each group.

[0128] Furthermore, hard drives in the same RAID group can be grouped together to avoid RAID card errors or downgrades caused by excessively long power-on time differences among member disks.

[0129] Specifically, key parameters such as the output voltage and current of the backplane main power supply are monitored and compared with preset stability standards. If all parameters of the backplane main power supply are within the normal range, the backplane main power supply is considered stable. After confirming the stability of the backplane main power supply, the power supplies for each hard drive are enabled according to a preset power-on interval. The power-on interval is set after considering factors such as hard drive specifications, overall device performance requirements, and avoiding current surges during power-on. When enabling the hard drive power supply, a specific enable signal is sent to each hard drive power module through the control circuit, thereby activating the power supply sequentially and supplying power to the corresponding hard drive.

[0130] As can be seen, in this embodiment of the invention, the hard drive is ensured to start under a stable power supply environment, avoiding problems such as hard drive startup failure or data corruption caused by unstable power supply; at the same time, enabling the hard drive power supply according to the power-on time interval can effectively prevent current surges when multiple hard drives start at the same time.

[0131] One possible implementation of this invention involves enabling the power supply of each hard drive according to a power-on time interval, including: updating the power-on counter value after the power-on time interval is reached, and determining whether the power-on counter value exceeds the disk slot value; if it does not exceed the disk slot value, decoding the power-on counter value to obtain the power enable signal for the corresponding hard drive; and enabling the power supply of the corresponding hard drive according to the power enable signal until the power-on counter value reaches the disk slot value, thus completing the power-on of all hard drives.

[0132] In this embodiment of the invention, updating the power-on counter value after the power-on time interval is reached includes: if the number of hard drives powered on at this time is greater than 1, then after the power-on time interval is reached, updating the power-on counter value according to the number of hard drives powered on at this time and the previous power-on counter value; correspondingly, decoding the power-on counter value to obtain the power enable signal of the corresponding hard drive includes: decoding the power-on counter value to obtain the power enable signal of the hard drive corresponding to the number of hard drives powered on at this time.

[0133] Specifically, the system pre-sets the number of power-ups and the drive bays of the hard drives to be powered on for each time period. For example, from 0-1s, one hard drive 1 is powered on; from 1s-4s, hard drives 2, 3, and 4 are powered on; from 3s-4s, hard drive 5 is powered on. Taking the second group of power-ups as an example, when the power-up interval reaches 1s, the power-up counter value is updated to 1+3=4. At this time, 4 is less than the drive bay value 5. Decoding 4 and combining it with the preset number of power-ups 3, the power enable signals for hard drives 2, 3, and 4 can be obtained. Then, starting at 1s, the power of the corresponding hard drive is enabled according to the power enable signal. Taking the third group of power-ups as an example, when the power-up interval reaches 3s, the power-up counter value is updated to 4+1=5. At this time, 5 does not exceed the drive bay value 5. Decoding 5, the power enable signal for hard drive 5 can be obtained. Then, at 4s, the power of the corresponding hard drive is enabled according to the power enable signal.

[0134] Based on the above embodiments, the following is an example of powering on sequentially at preset time intervals. In this embodiment of the invention, the interval is set to 1 second, and one hard drive is powered on each time. In actual use, the interval can be adjusted, and the number of hard drives powered on in each group can also be different, as long as the current generated by each power-on does not exceed the instantaneous overload capacity of the power supply unit.

[0135] For details, see Figure 5 Taking a 35-bay backplane as an example, the power-on time of the nth hard drive. (Where, Δt = 1 second, n = 1, 2, 3, ..., 35). After the CPLD detects that the backplane main power supply (e.g., 12V, 5V) is stable, it starts the power-on sequence.

[0136] Internally, a counter (r_hdd_pwr_en_cnt) and a timer with a 1-second cycle are enabled.

[0137] Every time the timer reaches 1 second, the counter increments by 1, and the power supply of the corresponding hard drive (HDDx_12V_5V_EN) is enabled based on the current counter value.

[0138] As shown in Example 35, the timer in the power sequence control module starts generating pulses with a 1-second period. With each pulse, the power-on sequence counter increments by 1. The current value of the counter is then decoded and converted into the corresponding power enable signal for the hard drive.

[0139] For example: in the first second, the counter = 1, and HDD0_12V_5V_EN is enabled after decoding.

[0140] At the 2nd second, the counter reaches 2, and HDD1_12V_5V_EN is enabled after decoding.

[0141]

[0142] At the 35th second, the counter reaches 35, and HDD34_12V_5V_EN is enabled after decoding.

[0143] At this point, the power-on process for all hard drives is complete, taking a total of 35 seconds. The entire process is smooth and without any disruption.

[0144] As can be seen, this invention provides a configurable time-sharing power-on timing control algorithm based on a hardware state machine. A state machine is implemented in pure hardware logic within an FPGA / CPLD. This state machine does not rely on the CPU or software instructions. Through built-in timers and counters, it generates precise pulses with fixed time intervals (e.g., 1 second) and sequentially generates multiple (e.g., 35) power enable signals strictly according to the formula T_n = T_0 + n*Δt. Pure software timing may result in inaccurate timing or delays due to task scheduling, interrupts, etc.; dedicated PMIC solutions are costly and inflexible. This invention provides a low-cost, highly reliable, highly deterministic solution with flexibly configurable parameters (Δt, power-on sequence).

[0145] One possible implementation of this invention is as follows: if so, the indicator lights of the target hard drive are controlled based on indicator light control signals other than the valid indicator light control signal, including: if so, determining whether the first indicator light control signal and the second indicator light control signal are the same; if not, controlling the indicator lights of the target hard drive based on indicator light control signals other than the valid indicator light control signal.

[0146] Determine if the control signals for the two indicator lights are identical, meaning both are positioning commands or both are fault commands. If they are identical, there's no need to control the indicator light again; the result of the valid indicator light control signal can be used as the result of the other indicator light control signal. If they are different, the remaining control signals will be used to control the indicator lights only after the valid indicator light control signal has completed its operation. Set a timeout timer for the valid indicator light control signal; after the timeout, control of all other indicator light control signals except the valid one will be automatically restored to prevent indicator failure due to abnormal valid indicator light control signals.

[0147] In summary, this invention features full hardware logic implementation, eliminating the risk of firmware failure; digital filtering eliminates signal jitter; power sequence control effectively suppresses inrush current; LED status is strictly bound to physical status, providing accurate and intuitive display; and activity indicators dynamically reflect hard drive load. Parameters such as power-on timing, activity sensitivity, and priority can be modified via code to adapt to different product requirements. Integrated into a single CPLD, it saves the cost and PCB space of multiple discrete power management ICs and logic ICs.

[0148] One possible implementation of this invention further includes: acquiring other control signals for the target hard disk, wherein the other control signals may be power control signals, spindle motor control signals, or voice coil motor control signals, etc.; if an indicator light control signal for the target hard disk is received at the same time, the other control signals and the indicator light control signals are written into a signal queue, and the corresponding operations are executed sequentially according to the signal order of the signal queue.

[0149] Specifically, in the queue, each signal carries a priority tag. When a high-priority signal is written, it is automatically sorted and written into the queue according to its priority and the order of its write timestamp. The remaining signals can be arranged according to their timestamp order and executed sequentially. It's understandable that for power control signals, if the priority of the indicator light control signal is consistently higher than this signal, power requests could be starved. Therefore, while processing the current indicator light control signal, if another indicator light control signal is received, the power control signal can be executed after the current indicator light control signal is completed, thus powering on the hard drive.

[0150] Furthermore, if a non-indicator light control command is currently being executed, the task can be interrupted immediately or interrupted after a preset time, and then the indicator light control signal will be executed first. Once the indicator light control command is completed, the interruption will be resumed.

[0151] The following describes a device provided by an embodiment of the present invention. The device described below can be referred to in correspondence with the method described above. The device of this embodiment is installed in an electronic device. Figure 6 This is a structural block diagram of an apparatus according to one embodiment of the present invention, comprising: an acquisition module 210, configured to acquire indicator light control signals of a target hard disk; an arbitrator 220, configured to arbitrate the first indicator light control signal and the second indicator light control signal if the indicator light control signal includes a first indicator light control signal and a second indicator light control signal, to determine a valid indicator light control signal; the first indicator light control signal represents an indicator light control signal from the host, and the second indicator light control signal represents an indicator light control signal from the baseboard management controller; a physical state management module 230, configured to acquire the physical state of the target hard disk; and a control module 240, configured to control the indicator lights of the target hard disk based on the valid indicator light control signal and the physical state of the target hard disk.

[0152] In one possible implementation, the control module 240 is further configured to: if the indicator light control signal includes a first indicator light control signal or a second indicator light control signal, then control the indicator lights of the target hard drive based on the indicator light control signal and the status information of the target hard drive.

[0153] In one possible implementation, the physical state of the target hard disk includes: in-situ and power-on; accordingly, the control module 240 is configured to: if the in-situ state of the target hard disk is in-situ and the power-on state is power-on, then control the indicator light of the target hard disk based on the valid indicator light control signal; if the in-situ state of the target hard disk is not in-situ, or the power-on state is not power-on, then ignore the valid indicator light control signal and control the indicator light of the target hard disk to turn off.

[0154] In one possible implementation, the system further includes an activity detection module, used to: periodically acquire the pulse count of the target hard drive, the pulse count representing the number of times the target hard drive is active; if the pulse count is less than a preset threshold, control the indicator light of the target hard drive based on the physical state of the target hard drive; if the pulse count is not less than the preset threshold, control the indicator light of the target hard drive based on a first preset parameter.

[0155] In one possible implementation, the activity detection module is specifically used to: if the target hard drive is not present or is not powered on, then control the indicator light of the target hard drive to turn off; otherwise, control the indicator light of the target hard drive based on a second preset parameter.

[0156] In one possible implementation, the activity detection module is specifically used to: periodically read the activity pulse signal of the target hard disk; detect the edge of the activity pulse signal to obtain the pulse count of the target hard disk.

[0157] In one possible implementation, the arbitrator 220 is used to: arbitrate the first indicator light control signal and the second indicator light control signal based on the priority information carried by the second indicator light control signal, and determine that the second indicator light control signal is a valid indicator light control signal.

[0158] In one possible implementation, the arbitrator 220 is used to: determine the valid indicator control signal from the first indicator control signal and the second indicator control signal according to a preset priority strategy.

[0159] In one feasible approach, the preset priority strategy is determined based on the value of the priority control register; if the value of the priority control register is a first value, the priority of the indicator light control signal from the host is higher than the priority of the indicator light control signal from the board management controller; if the value of the priority control register is a second value, the priority of the indicator light control signal from the board management controller is higher than the priority of the indicator light control signal from the host.

[0160] In one possible implementation, it also includes: a power-on module for detecting whether the backplane main power supply is stable; if the backplane main power supply is stable, then the power supply of each hard drive is enabled according to the power-on time interval.

[0161] In one feasible approach, the power-on module is used to: update the power-on counter value after the power-on time interval is reached, and determine whether the power-on counter value exceeds the disk bay value; if it does not exceed the disk bay value, decode the power-on counter value to obtain the power enable signal for the corresponding hard drive; and enable the power supply of the corresponding hard drive according to the power enable signal until the power-on counter value reaches the disk bay value, thus completing the power-on of all hard drives.

[0162] In one feasible implementation, the power-on module is configured to: if the number of hard drives powered on at this time is greater than 1, then after the power-on time interval is reached, update the power-on counter value according to the number of hard drives powered on at this time and the previous power-on counter value; and decode the power-on counter value to obtain the power enable signal of the hard drive corresponding to the number of hard drives powered on at this time.

[0163] In one possible implementation, it also includes a determination module for determining whether the indicator light control signals of the target hard drive conform to the protocol specifications.

[0164] In one possible implementation, it also includes a recording module for recording the timestamp of the current conflict and the slot information of the target hard drive.

[0165] In one possible implementation, the control module 240 is further configured to: determine whether the control of the valid indicator light control signal exceeds a preset duration; if so, control the indicator lights of the target hard drive based on other indicator light control signals besides the valid indicator light control signal.

[0166] In one possible implementation, the control module 240 is configured to: if so, determine whether the first indicator light control signal and the second indicator light control signal are the same; if they are not the same, control the indicator lights of the target hard drive based on other indicator light control signals besides the valid indicator light control signal.

[0167] Figure 7 A structural diagram of an electronic device provided in an embodiment of the present invention, such as... Figure 7 As shown, the electronic device includes: a memory 60 for storing a computer program; and a processor 61 for executing the computer program to implement the steps of the method as described in the above embodiments.

[0168] The processor 61 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 61 may be implemented using at least one hardware form selected from Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 61 may also include a main processor and a coprocessor. The main processor, also known as the Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 61 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor 61 may also include an Artificial Intelligence (AI) processor, which handles computational operations related to machine learning.

[0169] The memory 60 may include one or more computer-readable storage media, which may be non-transitory. The memory 60 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In this embodiment, the memory 60 is used to store at least the following computer program 601, which, after being loaded and executed by the processor 61, is capable of implementing the relevant steps of the hard disk backplane control method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 60 may also include an operating system 602 and data 603, etc., and the storage method may be temporary storage or permanent storage. The operating system 602 may include Windows, Unix, Linux, etc.

[0170] In some embodiments, the electronic device may further include a display screen 62, an input / output interface 63, a communication interface 64, a power supply 65, and a communication bus 66.

[0171] Those skilled in the art will understand that Figure 7 The structures shown do not constitute a limitation on electronic devices and may include more or fewer components than those shown.

[0172] It is understood that if the hard disk backplane control method in the above embodiments is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the current technology, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods in the various embodiments of the present invention. The aforementioned storage medium includes: USB flash drive, portable hard disk, read-only memory (ROM), random access memory (RAM), electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, magnetic disk, or optical disk, and other media capable of storing program code.

[0173] Based on this, embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the method described above.

[0174] Based on this, embodiments of the present invention also provide a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the above-described method.

[0175] The foregoing has provided a detailed description of a hard disk backplane control method, apparatus, device, medium, and product according to embodiments of the present invention. The various embodiments are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.

[0176] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0177] The present invention has provided a detailed description of a hard disk backplane control method, apparatus, device, medium, and product. Specific examples have been used to illustrate the principles and implementation methods of the invention. The descriptions of these embodiments are merely for the purpose of helping to understand the method and core ideas of the present invention. It should be noted that those skilled in the art can make various improvements and modifications to the present invention without departing from its principles, and these improvements and modifications also fall within the protection scope of the present invention.

Claims

1. A hard disk backplane control method, characterized by, The method comprises the following steps: obtaining an indicator light control signal of a target hard disk; if the indicator light control signal comprises a first indicator light control signal and a second indicator light control signal, arbitrating the first indicator light control signal and the second indicator light control signal to determine an effective indicator light control signal; the first indicator light control signal represents a host-derived indicator light control signal, and the second indicator light control signal represents a baseboard management controller-derived indicator light control signal; obtaining a physical state of the target hard disk; controlling an indicator light of the target hard disk based on the effective indicator light control signal and the physical state of the target hard disk; after the step of controlling the indicator light of the target hard disk based on the effective indicator light control signal and the physical state of the target hard disk, the method further comprises the following steps: determining whether the control of the effective indicator light control signal exceeds a preset time length; if yes, controlling the indicator light of the target hard disk based on other indicator light control signals except the effective indicator light control signal.

2. The hard disk backplane control method of claim 1, wherein, The method further comprises the following steps: if the indicator light control signal comprises the first indicator light control signal or the second indicator light control signal, controlling the indicator light of the target hard disk based on the indicator light control signal and state information of the target hard disk.

3. The hard disk backplane control method of claim 1, wherein, The physical state of the target hard disk comprises an in-place condition and a power-on condition. Correspondingly, the step of controlling the indicator light of the target hard disk based on the effective indicator light control signal and the physical state of the target hard disk comprises the following steps: if the in-place condition of the target hard disk is in place, and the power-on condition is powered on, controlling the indicator light of the target hard disk based on the effective indicator light control signal; if the in-place condition of the target hard disk is not in place, or the power-on condition is not powered on, ignoring the effective indicator light control signal and controlling the indicator light of the target hard disk to be turned off.

4. The hard disk backplane control method of claim 3, wherein, The method further comprises the following steps: periodically obtaining a pulse count of the target hard disk, the pulse count representing the number of activities of the target hard disk; if the pulse count is less than a preset threshold, controlling the indicator light of the target hard disk based on the physical state of the target hard disk; if the pulse count is not less than the preset threshold, controlling the indicator light of the target hard disk based on a first preset parameter.

5. The hard disk backplane control method of claim 4, wherein, The step of controlling the indicator light of the target hard disk based on the physical state of the target hard disk comprises the following steps: if the in-place condition of the target hard disk is not in place, or the power-on condition is not powered on, controlling the indicator light of the target hard disk to be turned off; otherwise, controlling the indicator light of the target hard disk based on a second preset parameter.

6. The hard disk backplane control method of claim 4, wherein, The step of periodically obtaining the pulse count of the target hard disk comprises the following steps: periodically reading an active pulse signal of the target hard disk; detecting an edge of the active pulse signal to obtain the pulse count of the target hard disk.

7. The hard disk backplane control method of claim 1, wherein, The step of arbitrating the first indicator light control signal and the second indicator light control signal to determine the effective indicator light control signal comprises the following steps: based on the second indicator light control signal carrying priority information, arbitrating the first indicator light control signal and the second indicator light control signal to determine that the second indicator light control signal is the effective indicator light control signal.

8. The hard disk backplane control method of claim 1, wherein, arbitrating the first indicator light control signal and the second indicator light control signal to determine an effective indicator light control signal, including: determining the effective indicator light control signal from the first indicator light control signal and the second indicator light control signal according to a preset priority policy.

9. The hard disk backplane control method of claim 8, wherein, The preset priority policy is determined based on a value of a priority control register; if the value of the priority control register is a first value, the priority of the indicator light control signal from the host is higher than the priority of the indicator light control signal from the baseboard management controller; if the value of the priority control register is a second value, the priority of the indicator light control signal from the baseboard management controller is higher than the priority of the indicator light control signal from the host.

10. The hard disk backplane control method of claim 1, wherein, Before obtaining the indicator light control signal of the target hard disk, further comprising: detecting whether the backplane main power supply is stable; if the backplane main power supply is stable, enabling the hard disk power supply corresponding to each hard disk according to a power-on time interval.

11. The hard disk backplane control method of claim 10, wherein, Enabling the hard disk power supply corresponding to each hard disk according to a power-on time interval, including: when the power-on time interval is reached, updating the power-on counter value and determining whether the power-on counter value exceeds the disk position value; if not, decoding the power-on counter value to obtain the power supply enable signal of the corresponding hard disk; and enabling the corresponding hard disk power supply according to the power supply enable signal until the power-on counter value reaches the disk position value, completing the power-on of all hard disks.

12. The hard disk backplane control method of claim 11, wherein, When the power-on time interval is reached, updating the power-on counter value, including: if the number of hard disks to be powered on at this time is greater than 1, when the power-on time interval is reached, updating the power-on counter value according to the number of hard disks to be powered on at this time and the last power-on counter value; correspondingly, decoding the power-on counter value to obtain the power supply enable signal of the corresponding hard disk, including: decoding the power-on counter value to obtain the power supply enable signal of the hard disk corresponding to the number of hard disks to be powered on at this time.

13. The hard disk backplane control method of claim 1, wherein, After obtaining the indicator light control signal of the target hard disk, further comprising: determining whether the indicator light control signal of the target hard disk conforms to the protocol specification.

14. The hard disk backplane control method of claim 1, wherein, Further comprising: recording the timestamp of the current conflict and the slot information of the target hard disk.

15. The hard disk backplane control method of claim 1, wherein, If yes, controlling the indicator light of the target hard disk based on the indicator light control signal other than the effective indicator light control signal, including: if yes, determining whether the first indicator light control signal and the second indicator light control signal are the same; if not, controlling the indicator light of the target hard disk based on the indicator light control signal other than the effective indicator light control signal.

16. A hard disk backplane control apparatus, characterized by, including: an acquisition module for obtaining the indicator light control signal of the target hard disk; an arbitrator for arbitrating the first indicator light control signal and the second indicator light control signal to determine an effective indicator light control signal if the indicator light control signal includes the first indicator light control signal and the second indicator light control signal; the first indicator light control signal represents the indicator light control signal from the host, and the second indicator light control signal represents the indicator light control signal from the baseboard management controller; a physical state management module for obtaining the physical state of the target hard disk; The control module is configured to control the indicator light of the target hard disk based on the effective indicator light control signal and the physical state of the target hard disk. The control module is further configured to determine whether the control of the effective indicator light control signal exceeds a preset time length, and if so, control the indicator light of the target hard disk based on other indicator light control signals except the effective indicator light control signal.

17. An electronic device, comprising: The computer program is stored in the computer readable storage medium and is executed by the processor to implement the steps of the hard disk backplane control method according to any one of claims 1 to 15. The computer program is stored in the computer readable storage medium and is executed by the processor to implement the steps of the hard disk backplane control method according to any one of claims 1 to 15. The computer program is stored in the computer readable storage medium and is executed by the processor to implement the steps of the hard disk backplane control method according to any one of claims 1 to 15.

18. A computer-readable storage medium, characterized in that, ​ 19. A computer program product comprising computer programs / instructions, characterized in that, ​

Citation Information

Patent Citations

  • Method, system and device for realizing hot plug and lighting functions of hard disk based on BMC (Baseboard Management Controller)

    CN118550797A

  • Lighting control system, lighting control method, electronic device, medium and product

    CN120091485A