Multi-host power indicator light control method, device, equipment and storage medium

By identifying the working mode and performing level flip detection under a multi-host architecture, and using the secondary flip judgment within a preset time window to identify the hot-plug status, the flashing mode of the power indicator light is activated. This solves the problem of low accuracy and response efficiency of the power indicator light status indication under a multi-host architecture, and achieves accurate status indication and efficient status switching.

CN123030464APending Publication Date: 2026-11-03INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611535015.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-30
Publication Date
2026-11-03

AI Technical Summary

Technical Problem

In a multi-host architecture, existing technologies cannot accurately distinguish between normal power-on/off and hot-plug flashing states, leading to abnormal power indicator display, which can cause misjudgments by maintenance personnel and result in business interruptions or equipment downtime. Furthermore, existing solutions have poor real-time performance and increase system load.

Method used

By acquiring the power indicator signal sent by the node, the working mode is identified, and level flip detection is performed in non-single host mode. The hot-plug status is identified by the secondary flip judgment within the preset time window, the flashing mode of the power indicator is activated, and the flashing mode control signal is generated to drive the power indicator to display the hot-plug status.

Benefits of technology

It improves the accuracy and response efficiency of the power indicator light status indication, avoids false triggering of flashing indication, ensures the accuracy of status indication, and directly completes level detection and signal output through the hardware control unit, thereby improving the response efficiency of status switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123030464A_ABST
    Figure CN123030464A_ABST
Patent Text Reader

Abstract

The application discloses a multi-host power indicator light control method, device and equipment and a storage medium, relates to the technical field of multi-host systems, and the multi-host power indicator light control method comprises the following steps: based on power indicator light signals issued by each node, detecting the level inversion of each power indicator light signal in a non-single-host working mode; based on the determination result of whether the target power indicator light signal in a preset time window inverts twice, identifying whether the node is in a hot plug driving interaction state, activating the flicker mode of the power indicator light, generating a flicker mode control signal, and driving the power indicator light to display the corresponding running state. In this way, the determination mechanism of the secondary inversion in the preset time window can distinguish between the hot plug periodic interaction and the ordinary power-on and power-off switching, the accuracy of state indication is improved, the level detection, state determination and signal output are directly completed by a hardware control unit, software transfer processing is not needed, and the response efficiency of state switching is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of multi-host system technology, and in particular to a method, apparatus, device, and storage medium for controlling power indicator lights in multi-host systems. Background Technology

[0002] With the continuous improvement of data center computing power density, multi-node servers and multi-host network interface card (NIC) architectures of the Open Compute Project (OCP) are widely used. In a multi-host architecture, a single NIC is shared by multiple nodes. Hot-swappable NIC maintenance requires accurate identification of the driver loading and unloading status of each node. Incorrect indicator light displays can lead maintenance personnel to misjudge the NIC's pluggable status, causing service interruptions or even equipment downtime.

[0003] To achieve multi-node indicator status aggregation, some technologies employ simple combinational logic schemes using Complex Programmable Logic Devices (CPLDs), but these cannot distinguish between normal power-on / off states and hot-plug flashing states, easily leading to abnormal indicator display issues. Other technologies use software polling aggregation schemes with Baseboard Management Controllers (BMCs), enabling indicator lights to display the status of multiple hosts, but suffer from poor real-time performance and additional system load. Therefore, improving the accuracy and response efficiency of power indicator status indication in multi-host scenarios has become a pressing issue. Summary of the Invention

[0004] This application provides a method, apparatus, device, and storage medium for controlling power indicator lights in a multi-host environment, in order to at least solve the problems of poor accuracy and low response efficiency of power indicator light status indication in multi-host scenarios in the related art.

[0005] This application provides a method for controlling power indicator lights on multiple hosts, including: Obtain the power indicator signal sent by at least one node; Identify the current host's operating mode based on the power indicator light signal sent by at least one node; When the working mode is not the single host working mode, the level of each power indicator light signal is detected by level inversion. If at least one power indicator light signal is detected to have a level flip, based on the current time, determine within a preset time period whether the target power indicator light signal that has experienced a level flip will experience a level flip again. When the target power indicator signal undergoes another level flip, it is determined that the first node to which the target power indicator signal belongs is in a hot-swappable driver interaction state. The operating mode of the power indicator corresponding to the network card to which the first node belongs is activated to the flashing mode, and a flashing mode control signal is generated. The first node is a node among at least one node. Based on the flashing mode control signal, the drive power indicator light displays the hot-swap operation status.

[0006] This application also provides a multi-host power indicator light control device, including: The signal acquisition module is used to acquire power indicator signals sent by at least one node; The pattern recognition module is used to identify the current host's operating mode based on the power indicator light signal sent by at least one node. The flip detection module is used to detect the level flip of each power indicator signal when the working mode is not the single host working mode; The re-flip detection module is used to determine, based on the current time, whether the target power indicator signal that has experienced a level flip will experience a level flip again within a preset time period when at least one power indicator signal has been detected to have a level flip. The signal generation module is used to determine that the first node to which the target power indicator signal belongs is in a hot-plug drive interaction state when the target power indicator signal undergoes another level flip, activate the operating mode of the power indicator corresponding to the network card to which the first node belongs to the flashing mode, and generate a flashing mode control signal. The first node is a node among at least one node. The indicator light control module is used to drive the power indicator light to display the hot-swappable operation status based on the flashing pattern control signal.

[0007] This application also provides an electronic device, comprising: at least one node for sending a power indicator light signal; a hardware control unit for executing any of the above-described multi-host power indicator light control methods; and a power indicator light for receiving control signals from the hardware control unit and displaying the corresponding operating status.

[0008] This application also provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, it implements the steps of any of the above-described multi-host power indicator control methods.

[0009] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of any of the above-described multi-host power indicator control methods.

[0010] In some embodiments of this application, the operating mode of the current host is identified based on the power indicator signals issued by each node, and level flip detection is performed on each power indicator signal in non-single-host operating mode. Based on the determination result of whether the target power indicator signal undergoes a secondary level flip within a preset time window, it is identified whether the node is in a hot-plug drive interaction state, and the corresponding flashing mode of the power indicator is activated and a flashing mode control signal is generated to drive the power indicator to display the corresponding operating state. In this way, the accuracy and response efficiency of the power indicator status indication can be improved simultaneously in multi-host scenarios. For example, the determination mechanism of secondary flip within a preset time window distinguishes between hot-plug periodic interaction and normal power-on / off switching, avoiding false triggering of flashing indication, thereby improving the accuracy of status indication. The hardware control unit directly completes level detection, status determination and signal output without software relay processing, thereby improving the response efficiency of status switching. Thus, the problems of poor accuracy and low response efficiency of power indicator status indication in multi-host scenarios in some technologies can be solved. Attached Figure Description

[0011] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the 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.

[0012] Figure 1 A schematic diagram of the multi-host power indicator light control system provided in this application; Figure 2 A flowchart illustrating a multi-host power indicator light control method provided for some embodiments of this application; Figure 3 Flowchart of the multi-host power indicator light control mechanism provided in this application; Figure 4 The overall flowchart of the multi-host power indicator light control method provided in this application; Figure 5 Timing waveform diagram showing that the power indicator light does not flash when the node is first powered on, as provided in this application; Figure 6 Timing waveform diagram showing that the power indicator light does not flash when the node is first powered on, as provided in this application; Figure 7 Timing comparison diagram of power indicator behavior in a multi-host scenario provided in this application; Figure 8 A schematic diagram of a multi-host power indicator light control device provided for some embodiments of this application; Figure 9A schematic diagram of the modules of an electronic device provided for some embodiments of this application. Detailed Implementation

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

[0014] It should be noted that, in the description of this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. The terms "first," "second," etc., in this application are used to distinguish similar objects and are not used to describe a specific order or sequence.

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

[0016] In related technologies, when addressing the need for hot-swappable network interface card (NIC) status indication in multi-node server and OCP multi-host NIC architectures, many solutions employ simple combination logic schemes using complex programmable logic devices or polling aggregation schemes using baseboard management controller software. These solutions can only achieve basic aggregation of multi-node level signals and cannot distinguish between normal power-on / off switching and the periodic flashing state during hot-swapping. This often leads to abnormal indicator light display and poor real-time performance in status detection and output. Therefore, improving the accuracy and response efficiency of power indicator status indication in multi-host scenarios has become an urgent problem to be solved.

[0017] First, the structure of the multi-host power indicator control system on which this application is based will be described: The multi-host power indicator light control method, device, electronic device, and storage medium provided in this application are applicable to power indicator light status control in multi-node servers and OCP multi-host network card architectures. Figure 1 As shown, Figure 1The schematic diagram of the multi-host power indicator control system provided in this application mainly includes a multi-node system (taking 4 nodes as an example), a backplane CPLD control unit, and OCP network card power indicator lights. In this application, the hardware control unit can be a CPLD. The multi-node system includes multiple node central processing units (CPUs) for outputting power indicator light signals and operating mode configuration information for each node, and sending the obtained power indicator light signals to the backplane CPLD control unit. The backplane CPLD control unit identifies the current host operating mode based on the obtained signals, completes level inversion detection and hot-plug drive interaction status determination, and generates corresponding power indicator light control signals to control the OCP network card power indicator lights to perform corresponding status displays based on the control signals.

[0018] The CPLD control unit is integrated on the backplane. The Virtual Pin Port Inter-Integrated Circuit Channel (VPP I2C) is a dedicated communication path between the node and the backplane CPLD. Each node corresponds to an independent Inter-Integrated Circuit (I2C) channel, used to transmit power indicator control signals and related configuration information. Each channel is independent and does not interfere with each other. For example, in a four-node architecture, there are four channels, I2C0 to I2C3, which carry the control signals of nodes 0 to 3 respectively.

[0019] In view of this, this application provides a multi-host power indicator light control method, which can solve the above problems. The multi-host power indicator light control method can be applied to hardware control units. (See also...) Figure 2 This is a flowchart illustrating a multi-host power indicator light control method provided in some embodiments of this application. Figure 2 The method for controlling the power indicator lights of multiple hosts includes the following steps: Step S201: Obtain the power indicator signal sent by at least one node.

[0020] Specifically, a node refers to an independent computing node in a multi-node server. Each node is equipped with an independent CPU and system power supply, and can independently complete power-on / off, business operation, and network card driver loading / unloading operations. Different nodes can share the hardware resources of the same OCP network card. For example, in a four-node server, nodes 0 to 3 can jointly mount two OCP network cards to collaboratively complete data interaction services.

[0021] Specifically, the power indicator signal refers to the level control signal issued by the CPU of each node, used to characterize the power status of the network card or the hot-swap driver interaction status on the corresponding node side. In a steady-state scenario, a high level corresponds to the node being powered on and the network card being ready, while a low level corresponds to the node being powered off and the network card not being ready. In a hot-swap maintenance scenario, the signal will exhibit periodic level flips during the node driver loading and unloading process, thereby driving the indicator light to flash to indicate the status. In a node power-on / power-off switching scenario, the signal exhibits a single level flip.

[0022] In this embodiment, each node CPU is connected to the hardware control unit of the backplane through the corresponding VPP I2C channel. The node outputs the corresponding power indicator signal according to its own power status and network card driver loading status. Multiple power indicator signals are transmitted to the hardware control unit in parallel so that the hardware control unit can obtain the power indicator signals sent by each node.

[0023] Step S202: Identify the current host's operating mode based on the power indicator light signal sent by at least one node.

[0024] Specifically, the current host working mode refers to the node sharing mode of the OCP network card in a multi-node scenario. It is used to represent how many nodes are currently sharing the hardware resources of the same OCP network card. It mainly includes single host working mode, dual host working mode and four host working mode.

[0025] In this embodiment, after the hardware control unit obtains the power indicator signals sent by each node, it determines the signal access status of the backplane and each channel based on the power indicator signals, determines the number of hosts shared by the current network card and the bandwidth allocation mode, and completes the identification of the current host working mode.

[0026] Understandably, the hardware control unit automatically determines the current bandwidth allocation mode and number of hosts of the OCP card, including single-host X16 bandwidth allocation mode, dual-host X8 bandwidth allocation mode, and quad-host X4 bandwidth allocation mode. It supports N-host expansion scenarios, where N is a positive integer greater than or equal to 2. The bit width of the corresponding history flag register and blink mode register can be expanded to N bits accordingly. In the dual-host X8 bandwidth allocation mode, the two nodes share the X8 bandwidth resources of the OCP card equally. Only the lower 2 bits of the history flag bit history_flag[1:0] and the lower 2 bits of the blink mode register blink_mode[1:0] are used to toggle the indicator lights. The higher 2 bits of the two registers are not used. Only two detection channels are needed to complete the status acquisition and judgment. In the quad-host X4 bandwidth allocation mode, all four detection channels are fully connected to complete the level flip detection and hot-plug status judgment of the four nodes.

[0027] In some embodiments, cross-clock domain synchronization processing is performed on multiple power indicator signals to eliminate metastability issues caused by cross-clock domain signal transmission; hardware anti-jitter filtering is performed on each signal through a built-in counter to filter out narrow pulse glitches in the signal transmission link and avoid glitches causing misjudgments in subsequent level flip detection.

[0028] Step S203: When the working mode is not the single host working mode, perform level flip detection on the power indicator signals.

[0029] Specifically, level transition detection refers to a detection mechanism in which the hardware control unit continuously samples and compares the level state of the power indicator signal to identify signal transition events from high level to low level or from low level to high level.

[0030] In this application, level flip detection is implemented by a D flip-flop and an XOR logic circuit. The power indicator signals are sampled clock-cycle based on the system clock. The current sampled value is XORed with the previous sampled value. A valid level flip is determined when the result is high. Taking four power indicator signals as an example, when a node flip is detected, a pulse signal PWRLED_edge[3:0] with a width of one clock cycle is generated. For example, when node 0 has a level flip, and nodes 1, 2, and 3 do not have a level flip, PWRLED_edge[3:0] is 0001.

[0031] In this embodiment, after the hardware control unit completes the host working mode identification, if it determines that the current working mode is a multi-host shared bandwidth working mode such as dual hosts or quad hosts, it will start the level flip detection logic of the corresponding power indicator signal.

[0032] Step S204: If at least one power indicator light signal is detected to have a level flip, based on the current time, determine within a preset time period whether the target power indicator light signal that has experienced a level flip will experience a level flip again.

[0033] Specifically, the preset time period refers to the duration of a pre-configured state determination time window. This duration is based on the standard flashing frequency of the power indicator light during the hot-plug drive interaction phase in the OCP specification, and must meet the rule of being greater than half a standard flashing cycle and less than a complete standard flashing cycle. For example, if the standard flashing frequency is 1Hz and the corresponding period is 1s, the preset time period can be set to 0.7s. This ensures that the second level transition within the same flashing cycle can be captured, while avoiding misjudging long-interval single power-on / off switching transitions as periodic flashing of the hot-plug drive interaction.

[0034] In this embodiment, once a valid level flip event of any power indicator light signal is captured, a time window determination logic is initiated for that power indicator light signal. The historical flip flag of the corresponding node is set, and the watchdog timer independently configured for that node is started. The timer starts from the flip time and continuously monitors the level change of the power indicator light signal within a preset time period to determine whether a second level flip will occur.

[0035] In some embodiments, after the target power indicator signal is first detected to have a level flip, a pre-warning logic is also included to control the power indicator to enter a low-brightness breathing pre-warning mode, displaying a light intensity lower than the normal steady-state brightness and a slow brightness gradient rhythm. During the second flip determination period within a preset time window, a pre-warning message that the node status is changing is transmitted to the operation and maintenance personnel. At the same time, the hardware control unit automatically records the trigger node number, the first flip direction and the trigger timestamp information of this status change, supporting subsequent reading for status backtracking and investigation.

[0036] In the above embodiments, the status indication gap in the secondary flip determination process within the preset time window is filled, and a visual pre-prompt is provided before the hot-plug status is officially determined, so that operation and maintenance personnel can perceive the node status change earlier and avoid the status blind spot within the preset time period.

[0037] Step S205: When the target power indicator signal undergoes another level flip, it is determined that the first node to which the target power indicator signal belongs is in a hot-swappable driver interaction state, the operating mode of the power indicator corresponding to the network card to which the first node belongs is activated to the flashing mode, and a flashing mode control signal is generated.

[0038] Specifically, the first node is any one of at least one nodes.

[0039] Specifically, the hot-swap driver interaction state refers to the interaction phase during the online hot-swap operation and maintenance of OCP network cards, in which the node side loads or unloads the network card driver. During this phase, the node will periodically toggle the level of the power indicator light signal to remind the maintenance personnel that the network card is in the service interaction state and should not be forcibly plugged in or unplugged to avoid damage to the equipment or service interruption.

[0040] Specifically, the flashing mode refers to the working mode in which the power indicator light alternately turns on and off periodically at a preset standard frequency. Its flashing frequency and duty cycle meet the requirements of the OCP hardware specification, such as a 1Hz frequency and a 50% duty cycle, which is used to intuitively indicate that the network card is currently in the dynamic process of hot-plugging and driving interaction.

[0041] Specifically, the blinking mode control signal refers to the standard pulse control signal generated by the hardware control unit, which is used to drive the physical power indicator light on the OCP network card side.

[0042] In this embodiment, after the hardware control unit detects the second valid level flip of the target power indicator signal within a preset time period, it determines that the first node corresponding to the signal is in the network card hot-plugging drive interaction process. Then, it activates the flashing mode of the power indicator corresponding to the OCP network card of the first node and generates a flashing mode control signal to control the power indicator.

[0043] Step S206: Based on the flashing mode control signal, drive the power indicator light to display the hot-swap operation status.

[0044] In this embodiment, the flashing mode control signal is transmitted to the physical power indicator light drive circuit on the network card side through the indicator light output port of the corresponding OCP network card, so as to control the power indicator light to periodically alternately light up and turn off according to a preset frequency and duty cycle, and finally present the flashing effect of hot-swappable operation.

[0045] In summary, in some embodiments of this application, the operating mode of the current host is identified based on the power indicator signals issued by each node, and level flip detection is performed on the power indicator signals in non-single-host operating modes. Based on the determination result of whether the target power indicator signal undergoes a secondary level flip within a preset time window, it is identified whether the node is in a hot-plug drive interaction state, and the corresponding flashing mode of the power indicator is activated and a flashing mode control signal is generated to drive the power indicator to display the corresponding operating state. In this way, the accuracy and response efficiency of the power indicator status indication can be improved simultaneously in multi-host scenarios. For example, the determination mechanism of secondary flip within a preset time window distinguishes between hot-plug periodic interaction and normal power-on / off switching, avoiding false triggering of flashing indication, thereby improving the accuracy of status indication. The hardware control unit directly completes level detection, status determination, and signal output without software relay processing, thereby improving the response efficiency of status switching. Thus, the problems of poor accuracy and low response efficiency of power indicator status indication in multi-host scenarios in some technologies can be solved.

[0046] In some embodiments, when a level inversion is detected in at least one power indicator light signal, the method of this application further includes: Step a1: When it is determined that the target power indicator signal has not undergone level flipping within the preset time period, the first node is determined to be in power-on / off switching state, and the flashing mode of the power indicator corresponding to the first node is not activated.

[0047] Specifically, the power-on / off switching state refers to the process in which the power state of the corresponding OCP network card changes once when a node in a multi-node system performs a normal power-on or power-off operation. During this process, the power indicator signal undergoes only one level change, and the signal level remains stable for a long time after the change is completed.

[0048] In this embodiment, after detecting the first level transition of the power indicator signal, a second level transition verification is performed within a preset time period. If no second level transition occurs within the preset time period, it can be determined that the transition is a one-time state switch caused by the normal power-on / off of the first node, rather than a periodic flashing process of hot-plug drive interaction, and therefore the corresponding flashing mode is not triggered. Taking the node power-off scenario in the four-master mode as an example, when node 2 performs a normal power-off operation, its power indicator signal jumps from high level to low level in one go, triggering the first level transition detection and then starting the preset time period timing. During the timing period of the preset time period, the hardware control unit continuously monitors the power indicator signal. If no second valid level transition is detected, it is determined that node 2 is in a normal power-off switching state, and the corresponding flashing mode is not activated.

[0049] In the above embodiments, the determination rules for the power-on / off switching state corresponding to a single level flip are clarified. Through the secondary flip verification mechanism with a preset time window, the one-time jump of normal power-on / off and the periodic flip of hot-plug interaction are effectively distinguished, avoiding misjudging normal power-on / off operation as hot-plug state and erroneously triggering the flashing mode, thus ensuring the accuracy of the power indicator status indication.

[0050] In some embodiments, the method of this application further includes: Step b1: When all nodes are not in a hot-swappable drive interaction state and are not in a power-on / off switching state, aggregate the power indicator signals of each node to generate a steady-state control signal for the power indicator.

[0051] Step b2: Based on the steady-state control signal of the power indicator, drive the target power indicator to display in the manner corresponding to the steady-state control signal of the power indicator.

[0052] Specifically, power indicator signal aggregation refers to integrating the dispersed power status of individual nodes into a unified global status control signal.

[0053] Specifically, the steady-state control signal of the power indicator refers to the indicator driving signal whose level remains stable after being generated by the aggregation of signals from multiple nodes. The steady-state control signal of the power indicator has no periodic level jumps and is used to drive the indicator to maintain a fixed display state.

[0054] In this embodiment, when all nodes are in a stable operating state and there is no dynamic interaction process, the power indicator signals of multiple nodes are first logically aggregated to generate a unified steady-state control signal, and then the indicator lights are driven to present the corresponding steady-state display. This allows the overall power status of all nodes to be summarized under the architecture of multiple nodes sharing a single indicator light.

[0055] In the above embodiments, the aggregation rules and driving logic of multi-node power indicator signals in steady-state scenarios are clarified, ensuring the accuracy of indicator status indication in steady-state scenarios and providing effective support for the stable and reliable operation of power indicator lights in multi-host architecture.

[0056] In some embodiments, in step b1, when all nodes are not in a hot-plug drive interaction state and are not in a power-on / off switching state, the power indicator signals of each node are aggregated to generate a steady-state control signal for the power indicator, including: Step c1: If at least one node has a power indicator light signal that is high, then generate the first power indicator light steady-state control signal.

[0057] Step c2: If the power indicator signals of all nodes are low, then generate the second power indicator steady-state control signal.

[0058] Specifically, the first power indicator steady-state control signal refers to the high-level steady-state control signal, which is output after the power indicator signals of multiple nodes are logically ORed. The signal level remains stable at a high level without periodic jumps, and is used to drive the power indicator to maintain a constantly lit display effect.

[0059] Specifically, the second power indicator steady-state control signal refers to the low-level steady-state control signal, which is output only when the power indicator signals of all connected nodes are at a low level. The signal level remains stable at a low level, which is used to drive the power indicator to maintain the display effect of being off.

[0060] In this embodiment, when all nodes are in a steady state, a corresponding type of steady-state control signal is generated based on the level distribution of the power indicator lights of each node. This can transform the overall power state of multiple nodes into a unified indicator light driving signal. Taking the steady-state operation scenario in a four-host mode as an example, when nodes 0 and 2 are in a powered-on state, nodes 1 and 3 are in a powered-off state, and all nodes are not hot-plugging or switching, a logical OR aggregation operation is performed on the four power indicator light signals. Since there is at least one high-level signal, a first power indicator light steady-state control signal is generated, driving the corresponding OCP card's power indicator light to remain lit. When all nodes 0 to 3 are powered off, all signals are low-level, generating a second power indicator light steady-state control signal, driving the corresponding power indicator light to remain off.

[0061] In the above embodiments, the generation conditions and corresponding display effects of two types of steady-state control signals are clarified, and the specific judgment rules for the aggregation of multi-node power indicator signals are refined, making the generation logic of indicator status in steady-state scenarios more standardized and providing a basis for the accurate display of power indicator lights in multi-host architecture.

[0062] In some embodiments, after determining that the first node to which the target power indicator signal belongs is in a hot-swappable drive interaction state when the target power indicator signal undergoes another level flip in step S205, and activating the operating mode of the target power indicator corresponding to the network card to which the first node belongs to the flashing mode, the method of this application further includes: Step d1: Restart the timing and determine whether the target power indicator signal undergoes a level flip within the preset time period.

[0063] Step d2: When it is determined that the target power indicator signal has not undergone a level flip, control the power indicator to exit the flashing mode.

[0064] In this embodiment, after entering the flashing mode, the timer is reset to perform level flip verification within a preset time period. This allows for real-time tracking of the hot-plug drive interaction process. Once no new level flip occurs within the preset time period, the hot-plug process is considered complete, and the power indicator light exits the flashing mode. For example, when only node 1 is in the hot-plug interaction state, after the network card driver of node 1 is loaded and the hot-plug interaction process ends, its power indicator light signal stops periodically flipping and remains at a stable high level. If the power indicator light signal of node 1 is continuously monitored within the preset time period and no new valid level flip is detected, the hot-plug drive interaction state is considered complete, and the power indicator light of the corresponding OCP card exits the flashing mode, displaying a continuously lit state.

[0065] In the above embodiments, the continuous verification mechanism and exit trigger conditions of the flashing mode are clarified, ensuring that the power indicator can display a steady state in a timely manner after the hot-plugging process is completed, thereby improving the operational reliability of the power indicator control in multi-host scenarios.

[0066] In some embodiments, when the operating mode is a single-host operating mode, the method of this application further includes: Step e1: Generate a power indicator flashing mode control signal directly based on the power indicator signal of the single host.

[0067] In this embodiment, in the single-host working mode, after the hardware control unit parses the power indicator signal of the node, it directly jumps to the power indicator output determination stage; when the node is hot-swapped to load or unload the driver, it directly generates a power indicator flashing mode control signal based on the power indicator signal of the node, and outputs it to the physical power indicator of the corresponding OCP card, driving the power indicator to flash synchronously.

[0068] In the above embodiments, the generation mechanism of the flashing mode control signal in the single-host working mode is clarified, which ensures the accuracy of the indicator status indication in the hot-swappable scenario, effectively shortens the signal processing delay, and improves the response speed of state switching in the single-host scenario.

[0069] In some embodiments, when the target power indicator signal undergoes another level flip in step S205, it is determined that the first node to which the target power indicator signal belongs is in a hot-swappable driver interaction state, the operating mode of the power indicator corresponding to the network card to which the first node belongs is activated to flashing mode, and a flashing mode control signal is generated, specifically including: Step S2051: Obtain the first level flip direction of the power indicator signal corresponding to the first node.

[0070] In step S2052, when the first level flip direction is from low level to high level, it is determined to be an insertion operation, and the first flashing parameter is generated.

[0071] Step S2053: Using the first flashing parameter, activate the operating mode of the power indicator light corresponding to the network card of the first node to the first flashing mode, and generate a first flashing mode control signal corresponding to the first flashing mode.

[0072] Step S2054, or, when the first level flip direction is from high level to low level, it is determined to be a pull-out operation, and the second flashing parameter is generated.

[0073] Step S2055: Using the second flashing parameter, activate the operating mode of the power indicator light corresponding to the network card of the first node to the second flashing mode, and generate a second flashing mode control signal corresponding to the second flashing mode.

[0074] Specifically, the first level transition direction refers to the trend of the level change when the hardware control unit captures the first valid level transition of the target power indicator signal. It is divided into two categories: rising edge transition from low level to high level transition and falling edge transition from high level to low level transition.

[0075] Specifically, the insertion operation refers to the online hot-swapping operation of the OCP network card, and the corresponding node side performs the network card driver loading process; the removal operation refers to the online hot-swapping operation of the OCP network card, and the corresponding node side performs the network card driver unloading process.

[0076] Specifically, the first flashing parameter refers to the preset indicator light flashing configuration parameters corresponding to the insertion operation, used to drive the power indicator light to display in the first flashing mode; the second flashing parameter refers to the preset indicator light flashing configuration parameters corresponding to the removal operation, used to drive the power indicator light to display in the second flashing mode. The flashing frequencies or duty cycles of the first and second flashing parameters are different.

[0077] In this embodiment, the direction of the first level transition is used to distinguish between two different hot-plug operations: hot-insertion and hot-removal. Correspondingly, differentiated flashing parameters and flashing modes are matched to represent the specific operation type of the hot-plugging operation through different flashing characteristics of the indicator lights. For example, when node 0 performs an OCP card insertion operation, its power indicator light signal first transitions from low to high. The hardware control unit recognizes that the first level transition direction is a rising edge, determines that the current operation is an insertion operation, generates a first flashing parameter, activates the first flashing mode of the corresponding power indicator light, and outputs a first flashing mode control signal to drive the indicator light to flash uniformly at a frequency of 1Hz. When node 2 performs an OCP card removal operation, its power indicator light signal first transitions from high to low. The hardware control unit recognizes that the first level transition direction is a falling edge, determines that the current operation is a removal operation, generates a second flashing parameter, activates the second flashing mode of the corresponding power indicator light, and outputs a second flashing mode control signal to drive the indicator light to flash rapidly at a frequency of 2Hz. Maintenance personnel can directly distinguish the current hot-plugging operation type by the flashing frequency of the indicator lights.

[0078] In the above embodiments, the hot-plug operation type determination logic based on the first level reversal direction is clarified, as well as the flashing mode generation mechanism corresponding to the two types of operations. The hot-plug operation type information is visualized and transmitted through differentiated flashing features, providing clearer status feedback for the hot-plug operation and maintenance of OCP network cards in a multi-host architecture.

[0079] In some embodiments, the method of this application further includes: Step f1: Record the duration of each node in the hot-plug drive interaction state within a preset historical time period.

[0080] Step f2: If the duration of the second node being in the hot-plug drive interaction state exceeds a preset time threshold, the second node is determined to be an abnormal node, and an abnormal mode control signal is generated.

[0081] Step f3: Based on the abnormal mode control signal, drive the power indicator light to display the abnormal status of the abnormal node.

[0082] Specifically, the second node is any one of at least one nodes.

[0083] Specifically, the preset historical time period refers to a continuous timing interval starting from the moment when a node is first determined to enter the hot-plug drive interaction state.

[0084] Specifically, the duration of a node in the hot-plug driven interaction state refers to the cumulative time a single node continuously maintains the hot-plug interaction state from the moment the hot-plug state is triggered.

[0085] Specifically, the preset time threshold refers to the maximum allowable duration of the normal hot-plug process, which is based on the typical time consumption of driver loading and unloading in the OCP network card standard hot-plug process.

[0086] Specifically, the abnormal mode control signal refers to a dedicated pulse drive signal that is different from the normal hot-plug flashing mode. Its flashing frequency and duty cycle are significantly visually distinguishable from the normal flashing mode, and it is used to display abnormal hot-plug timeout situations.

[0087] In this embodiment, the duration of the hot-plug state is independently recorded for each node. A timeout anomaly determination is performed based on a preset time threshold, and a differentiated anomaly mode control signal is generated accordingly to drive the power indicator light to display an anomaly, indicating the abnormal state of the abnormal node. For example, if the preset time threshold is configured to 5 seconds, when node 1 performs an OCP card insertion operation, it may experience a loading freeze due to a driver malfunction, causing its power indicator light signal to continuously maintain a periodic toggling state. When the hardware control unit records that the duration of node 1's hot-plug driver interaction exceeds 5 seconds, node 1 is determined to be an abnormal node. A 4Hz high-frequency anomaly mode control signal is then generated, driving the corresponding OCP card's power indicator light to enter a rapidly flashing anomaly display state, alerting maintenance personnel that a timeout anomaly has occurred in the hot-plug process of this node.

[0088] In the above embodiments, the logic for judging hot-swap status timeout anomalies is clarified, the status indication dimensions of the power indicator are enriched, and the abnormalities in the hot-swap process can be detected at the hardware logic level. This effectively improves the efficiency of fault identification and the speed of operation and maintenance response, and provides a guarantee for the reliability and security of OCP network card hot-swap operation and maintenance under multi-host architecture.

[0089] In some embodiments, the method of this application further includes: Step g1: Receive the power indicator control command issued by the third node other than the first node.

[0090] Step g2: Determine the priority of the power indicator control command based on the attributes of the third node.

[0091] Step g3: Determine the priority of the power indicator control command corresponding to the current hot-plug driver interaction state based on the attributes of the third node.

[0092] Step g4: Compare the priority of the power indicator control command with the priority of the power indicator control command corresponding to the current hot-swap driver interaction state; wherein, the priority comparison rules include that the power indicator control command issued by the node holding the network card owner's authority has a higher priority than the power indicator control command issued by the node that is not the network card owner, and the power indicator control command issued by the node in the service activation state has a higher priority than the power indicator control command issued by the node that is not in the service activation state.

[0093] Step g5: When the priority of the power indicator control command is lower than the priority of the control command corresponding to the current hot-swap driver interaction state, the power indicator control command is cached so that it can be executed after the hot-swap driver interaction state ends.

[0094] Step g6: When the priority of the power indicator control command is higher than the priority of the control command corresponding to the current hot-swap driver interaction state, execute the power indicator control command and interrupt the flashing mode corresponding to the current hot-swap driver interaction state.

[0095] Specifically, the third node is any node other than the first node among at least one nodes.

[0096] Specifically, the power indicator control command refers to the indicator control command issued by other nodes sharing the same OCP network card to the hardware control unit, which can be used to switch the indicator display mode.

[0097] Specifically, node attributes are the core characteristics of a node used to determine instruction priority, mainly including two dimensions: network interface card (NIC) owner permissions and service activation status. Among them, NIC owner permissions are the identity identifier of the node assigned as the main body for NIC resource management in a multi-host shared architecture, possessing the highest management authority over the NIC. Service activation status is used to indicate whether the node is currently running services and occupying NIC bandwidth resources.

[0098] Specifically, regarding the network card owner's permissions, during the system power-on phase, the hardware control unit reads the permission configuration identifier of each node through the out-of-band management bus on the network card side, writes the identity information of the network card owner node into the internal dedicated attribute register for persistent storage, and directly reads and calls it from the local register when the power indicator control command arrives; regarding the service activation status attribute, when the hardware control unit receives the power indicator control command, it parses the service status field carried in the power indicator control command frame to obtain the real-time service activation status of the node.

[0099] Specifically, the priority comparison rules include that the power indicator control command issued by a node holding network card owner privileges has a higher priority than the power indicator control command issued by a node that is not a network card owner, and the power indicator control command issued by a node in the service activation state has a higher priority than the power indicator control command issued by a node that is not in the service activation state.

[0100] In this embodiment, after receiving a control command from a third node during the hot-plug flashing mode operation, the priorities of the commands from both nodes are first determined based on their respective node attributes. Then, priority determination is completed according to a predetermined two-level comparison rule. Finally, based on the determination result, the system chooses to cache or execute the command first. For example, if the network card owner is preset to node 0, and node 2 is currently in a hot-plug drive interaction state and triggers the indicator light flashing mode; if node 3 issues a power indicator light control command at this time, and its priority is lower than the hot-plug command priority of node 2, the hardware control unit stores the command in the cache queue and executes it after node 2 finishes hot-plugging; if node 0 issues a power indicator light control command at this time, and its priority is higher than the hot-plug command priority of node 2, the hardware control unit executes the command immediately, interrupts the current flashing mode, and prioritizes the response to node 0's power indicator light control command.

[0101] In the above embodiments, the priority arbitration mechanism and processing rules in the scenario of concurrent instructions from multiple nodes are clarified, which ensures the continuity and accuracy of status indication during hot-plugging, avoids low-priority instructions from arbitrarily interrupting hot-plugging status prompts, ensures the response priority of instructions from high-privilege and high-service-level nodes, and improves the orderliness of power indicator control in a multi-host architecture.

[0102] See also Figure 3 , Figure 3 A flowchart of the multi-host power indicator light control mechanism provided in this application. Figure 3In this system, four nodes are connected to the hardware control unit via independent virtual pin port integrated circuit bus channels. First, their respective indicator light information parsing modules complete protocol parsing, outputting the power indicator light signal for each node. All signals are then fed into a 5ms filtering module for cross-clock domain synchronization and hardware debouncing, filtering out transmission glitches. The filtered signals enter four parallel edge detection logic channels, which use XOR timing logic to identify level transition events one by one, outputting the corresponding edge trigger signal. Subsequently, they enter a historical state verification and feature determination module, which performs a second flip verification within a preset time window to identify whether each node is in a hot-pluggable interactive state, outputting four blinking status flags. Simultaneously, externally input bandwidth information is fed into a bandwidth allocation parsing module to identify the current network card's bandwidth allocation mode and the number of hosts, outputting a mode identification signal. The final output side includes three signal paths: first, all level signals are aggregated via OR gate logic to generate a multi-host static output; second, all level signals are directly connected for direct transmission output in single-host mode; and third, a standard blinking pulse is generated by a 1Hz square wave module for multi-host blinking mode output. After aggregation, the flashing status flag, together with the pattern recognition signal, controls the output gating logic. The corresponding output path is switched through a multiplexer (MUX), and finally a unified flashing mode control signal is output to drive the external physical power indicator to display the corresponding status.

[0103] See also Figure 4 , Figure 4 The overall flowchart of the multi-host power indicator light control method provided in this application. Figure 4 First, the system powers on and initializes the historical status register, setting the historical toggle register to 0. It then analyzes the power indicator signals from multiple hosts to obtain the network card's indicator light information, simultaneously performing cross-clock domain synchronization processing and hardware filtering on multiple parallel signals. It then determines whether the current mode is single-host or multi-host. If it's single-host, it directly jumps to the output link, transmitting the corresponding power indicator light information based on the network card and node correspondence, without proceeding to subsequent edge detection and blinking judgment processes. If it's multi-host, it enters the multi-host status detection module. For each... The host's power indicator signal is independently edge-checked, and level transition events are detected one by one. Then, it is checked whether the historical status register corresponding to the host that caused the transition is set. If it is not set, it returns to continuous detection. If it is set, it enters the blinking state and the watchdog timer is started simultaneously. Finally, the watchdog timer is checked for timeout. If it times out, the historical status register of the corresponding node is cleared and the steady-state blinking mode control signal is output according to OR logic. If it does not time out, the 1Hz blinking mode is maintained to indicate that a driver installation or uninstallation is currently in progress. Finally, the power indicator light is displayed, and the process ends.

[0104] See also Figure 5 , Figure 5 The timing waveform diagram shows that the power indicator light does not flash when the node is first powered on, as provided in this application. Figure 5 In the process, the power indicator signal input to the node initially remains low, corresponding to the node's initial state when it is not powered on. When the node performs its first power-on operation, this signal undergoes a rising edge transition from low to high. The corresponding node's level toggle history flag is initially low; when the first rising edge transition of the power indicator signal is detected, this flag is immediately set high, and a watchdog timer window of duration T is started. If no second valid level toggle is detected within the timer window T, the flag automatically resets to low after the timer ends. The blinking mode control signal remains constantly low throughout and is never activated. The physical power indicator control signal is ultimately output to the network card's physical power indicator control signal, initially low, and remains high after completing a single transition following the power indicator signal.

[0105] See also Figure 6 , Figure 6 The timing waveform diagram of the power indicator flashing in the hot-swappable loading driver scenario provided in this application. Figure 6 In the process, the power indicator signal input to the node initially remains at a low level. After entering the hot-plug drive loading process, this signal begins to alternate between high and low levels at a fixed period. The corresponding node's level-flipping history flag is initially low; when the first rising edge of the power indicator signal is detected, this flag is immediately set high, and a watchdog timer window of duration T is started. After a second valid level flip is detected within the timer window T, the flag remains high without resetting. The blinking mode control signal is initially low; when the second level flip of the power indicator signal is detected within the preset watchdog time window T, this signal immediately jumps to a high level, officially activating the blinking mode. The physical power indicator control signal is the final output to the network card's physical power indicator for blinking mode control. When the blinking mode control signal is set to 1, the output waveform exhibits a stable periodic high-low level switching, corresponding to the continuous blinking display effect of the power indicator.

[0106] See also Figure 7 , Figure 7 A timing comparison diagram of the power indicator light behavior in a multi-host scenario provided in this application. Figure 7In this system, nodes 0 and 1 exhibit periodic level transitions, indicating they are in a hot-plug state and have different phases; node 2 remains at a high level; and node 3 remains at a low level. The level transition history flag is set to 1 and a watchdog timer is activated when nodes 0 and 1 undergo their first level transition. Subsequent periodic transitions continuously reset the timer, which never expires, and the flag remains high. Nodes 2 and 3 do not transition and remain low throughout. The blinking mode control signal is initially low and is globally set high only after the node completes its second level transition within a preset time window and is officially identified as a hot-plug process, rather than being pulled high on the first transition. This flag remains valid as long as any node is in a hot-plug state. Traditional pure logic or aggregation schemes, due to node 2 being constantly lit, outputs remain constantly lit, failing to reflect the dynamics of hot-plugging. This scheme outputs a steady-state aggregation result (constantly lit) when there is no hot-plugging, indicating that at least one node is using the network card. When any hot-plugging is detected, it switches to a 1Hz standard blink, prioritizing the reflection of the dynamic state of the driver interaction.

[0107] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method.

[0108] Corresponding to the multi-host power indicator light control method, this application also provides a multi-host power indicator light control device. (See also...) Figure 8 This is a schematic diagram of a multi-host power indicator light control device provided in some embodiments of this application. Figure 8 The multi-host power indicator light control device includes: The signal acquisition module 801 is used to acquire power indicator signals sent by at least one node.

[0109] The pattern recognition module 802 is used to identify the current operating mode of the host based on the power indicator light signal sent by at least one node.

[0110] The flip detection module 803 is used to detect the level flip of each power indicator signal when the working mode is not the single host working mode; The re-flip detection module 804 is used to determine, based on the current time, whether the target power indicator signal that has experienced a level flip will experience a level flip again within a preset time period when at least one power indicator signal has been detected to have a level flip. The signal generation module 805 is used to determine that the first node to which the target power indicator signal belongs is in a hot-swappable drive interaction state when the target power indicator signal undergoes another level flip, activate the operating mode of the power indicator corresponding to the network card to which the first node belongs to the flashing mode, and generate a flashing mode control signal. The first node is a node among at least one node. The indicator light control module 806 is used to drive the power indicator light to display the hot-swappable operation status according to the flashing mode control signal.

[0111] In some embodiments, the re-flip detection module 804 is further configured to: If the target power indicator light signal does not undergo level flipping within a preset time period, then the first node is determined to be in a power-on / off switching state, and the flashing mode of the power indicator light corresponding to the first node is not activated.

[0112] In some embodiments, the signal generation module 805 is further configured to: When all nodes are not in a hot-swappable drive interaction state and are not in a power-on / off switching state, the power indicator signals of each node are aggregated to generate a steady-state control signal for the power indicator. Based on the steady-state control signal of the power indicator, the target power indicator is driven to display according to the display state corresponding to the steady-state control signal of the power indicator.

[0113] In some embodiments, the signal generation module 805 is further configured to: If at least one node's power indicator signal is high, a first power indicator steady-state control signal is generated; wherein, the first power indicator steady-state control signal is used to drive the target power indicator to display a continuously lit state. If the power indicator signals of all nodes are low, a second power indicator steady-state control signal is generated; wherein, the second power indicator steady-state control signal is used to drive the target power indicator to display the off state; The steady-state control signal for the power indicator light includes a first steady-state control signal for the power indicator light and a second steady-state control signal for the power indicator light.

[0114] In some embodiments, the device further includes a flashing exit module, which is specifically used for: Restart the timing and determine whether the target power indicator signal level changes within the preset time period; When it is determined that the target power indicator signal has not undergone a level flip, the control power indicator will exit the flashing mode.

[0115] In some embodiments, the device further includes a single-host control module, which is specifically used for: The power indicator flashing mode control signal is generated directly based on the power indicator signal of the single host.

[0116] In some embodiments, the signal generation module 805 is specifically used for: Obtain the first level flip direction of the power indicator signal corresponding to the first node; When the first level flip direction is from low level to high level, it is determined to be an insertion operation, and the first flashing parameter is generated; Using the first flashing parameter, the operating mode of the power indicator corresponding to the network card of the first node is activated to the first flashing mode, and a first flashing mode control signal corresponding to the first flashing mode is generated. Alternatively, when the first level flip direction is from high level to low level, it is determined to be a pull-out operation, and a second flashing parameter is generated; Using the second flashing parameter, the operating mode of the power indicator light corresponding to the network card of the first node is activated to the second flashing mode, and a second flashing mode control signal corresponding to the second flashing mode is generated.

[0117] In some embodiments, the device further includes an error display module, which is specifically used for: Record the duration of each node in the hot-plug drive interaction state within a preset historical time period; If the duration of the second node being in the hot-plug drive interaction state exceeds a preset time threshold, the second node is determined to be an abnormal node, and an abnormal mode control signal is generated. The second node can be any one of at least one nodes. Based on the abnormal mode control signal, the power indicator light is driven to display abnormal information to indicate the abnormal state of the abnormal node.

[0118] In some embodiments, the device further includes a second indicator light control module, which is specifically used for: Receive power indicator control commands from a third node other than the first node. The third node can be any node other than the first node. Determine the priority of the power indicator control command based on the attributes of the third node; Based on the attributes of the third node, determine the priority of the power indicator control command corresponding to the current hot-plug driver interaction state; The priority of the power indicator control command is compared with the priority of the power indicator control command corresponding to the current hot-swap driver interaction state. The priority comparison rules include that the power indicator control command issued by the node holding the network card owner's authority has a higher priority than the power indicator control command issued by the node that is not the network card owner, and the power indicator control command issued by the node in the service activation state has a higher priority than the power indicator control command issued by the node that is not in the service activation state. When the priority of the power indicator control command is lower than the priority of the control command corresponding to the current hot-plug driver interaction state, the power indicator control command is cached so that it can be executed after the hot-plug driver interaction state ends. When the priority of the power indicator control command is higher than the priority of the control command corresponding to the current hot-swap driver interaction state, the power indicator control command is executed, and the flashing mode corresponding to the current hot-swap driver interaction state is interrupted.

[0119] For a description of the features in the embodiment corresponding to the multi-host power indicator control device, please refer to the relevant description in the embodiment corresponding to the sample data processing method, which will not be repeated here.

[0120] See also Figure 9 The embodiments of this application also provide an electronic device, including: at least one node for sending power indicator light signals; a hardware control unit for executing any of the above-described multi-host power indicator light control methods; and a power indicator light for receiving control signals from the hardware control unit and displaying the corresponding operating status. The electronic device further includes a memory 10 and a processor 20, wherein the memory 10 stores a computer program, and the processor 20 is configured to run the computer program to execute the steps in any of the above-described multi-host power indicator light control method embodiments.

[0121] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above embodiments of the multi-host power indicator control method when it is run.

[0122] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.

[0123] The embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above embodiments of the multi-host power indicator control method.

[0124] Embodiments of this application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in any of the above embodiments of the multi-host power indicator control method.

[0125] Any of the components, modules, units, parts, methods, and operations described herein can be implemented using software, firmware, hardware (e.g., fixed logic circuitry), manual processing, or any combination thereof. Alternatively or additionally, any functionality described herein can be executed at least in part by one or more hardware logic components, such as, but not limited to, a central processing unit (CPU), a field-programmable gate array (FPGA), an application-specific integrated circuit (ASIC), an application-specific standard product (ASSP), a system-on-a-chip (SoC), a complex programmable logic device (CPLD), a microprocessor (MCU), etc. The terms "system," "computing device," or "apparatus" as used herein encompass various means, devices, and machines for processing data, including, for example, one or more programmable processors, computers, SoCs, or combinations thereof. The apparatus may also include code that creates an execution environment for the computer program in question, such as code constituting processor firmware, a protocol stack, a database management system, an operating system, a cross-platform runtime environment, a virtual machine, or one or more combinations thereof. The aforementioned computer program (also known as a program, software, software application, app, script, or code) can be written in any form of programming language, including compiled or interpreted languages, declarative or procedural languages, and can be deployed in any form, including as a standalone program or as a module, component, subroutine, object, or other unit suitable for a computing environment.

[0126] 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 implementation should not be considered beyond the scope of this application.

[0127] The foregoing has provided a detailed description of a multi-host power indicator light control method, apparatus, device, and storage medium provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only intended to aid in understanding the method and core ideas of this application. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of this application.

Claims

1. A method for controlling power indicator lights for multiple hosts, characterized in that, The method is executed by a hardware control unit and includes: Obtain the power indicator signal sent by at least one node; The current operating mode of the host is identified based on the power indicator light signal sent by at least one node; When the working mode is not a single host working mode, the power indicator signals of each power indicator are subjected to level inversion detection; If at least one of the power indicator lights is detected to have a level flip, based on the current time, determine within a preset time period whether the target power indicator light signal that has experienced a level flip will experience a level flip again; When the target power indicator signal undergoes a level flip again, it is determined that the first node to which the target power indicator signal belongs is in a hot-swappable drive interaction state, the operating mode of the power indicator corresponding to the network card to which the first node belongs is activated to the flashing mode, and a flashing mode control signal is generated. The first node is a node among at least one node. According to the flashing mode control signal, the power indicator light is driven to display the hot-swap operation status.

2. The multi-host power indicator light control method according to claim 1, characterized in that, If a level inversion is detected in at least one of the power indicator lights, the method further includes: If it is determined that the target power indicator signal does not undergo level flipping within the preset time period, then the first node is determined to be in a power-on / off switching state, and the power indicator flashing mode corresponding to the first node is not activated.

3. The multi-host power indicator light control method according to claim 2, characterized in that, The method further includes: When all nodes are not in the hot-plug drive interaction state and are not in the power-on / off switching state, the power indicator signals of each node are aggregated to generate a steady-state control signal for the power indicator. Based on the steady-state control signal of the power indicator, the target power indicator is driven to display in a state corresponding to the steady-state control signal of the power indicator.

4. The multi-host power indicator light control method according to claim 3, characterized in that, When all nodes are not in the hot-plug drive interaction state and are not in the power-on / off switching state, the power indicator signals of each node are aggregated to generate a steady-state control signal for the power indicator, including: If at least one node's power indicator signal is high, a first power indicator steady-state control signal is generated; wherein, the first power indicator steady-state control signal is used to drive the target power indicator to display a continuously lit state. If the power indicator signals of all nodes are low, a second power indicator steady-state control signal is generated; wherein, the second power indicator steady-state control signal is used to drive the target power indicator to display an off state; The power indicator steady-state control signal includes the first power indicator steady-state control signal and the second power indicator steady-state control signal.

5. The multi-host power indicator light control method according to claim 1, characterized in that, When the target power indicator signal undergoes another level flip, after determining that the first node to which the target power indicator signal belongs is in a hot-swappable driver interaction state, and activating the operating mode of the target power indicator corresponding to the network card to which the first node belongs to the flashing mode, the method further includes: Restart timing and determine whether the target power indicator signal undergoes a level flip within the preset time period; When it is determined that the target power indicator signal has not undergone a level flip, the power indicator is controlled to exit the flashing mode.

6. The multi-host power indicator light control method according to claim 1, characterized in that, When the operating mode is a single-host operating mode, the method further includes: The power indicator flashing mode control signal is generated directly based on the power indicator signal of the single host.

7. The multi-host power indicator light control method according to claim 1, characterized in that, When the target power indicator signal undergoes another level flip, it is determined that the first node to which the target power indicator signal belongs is in a hot-swappable driver interaction state. The operating mode of the power indicator corresponding to the network card to which the first node belongs is activated to flashing mode, and a flashing mode control signal is generated, specifically including: Obtain the first level flip direction of the power indicator signal corresponding to the first node; When the first level flip direction is from low level to high level, it is determined to be an insertion operation, and the first flashing parameter is generated; Using the first flashing parameter, the operating mode of the power indicator light corresponding to the network card to which the first node belongs is activated to the first flashing mode, and a first flashing mode control signal corresponding to the first flashing mode is generated. Alternatively, when the first level flip direction is from high level to low level, it is determined to be a pull-out operation, and a second flashing parameter is generated; Using the second flashing parameter, the operating mode of the power indicator light corresponding to the network card to which the first node belongs is activated to the second flashing mode, and a second flashing mode control signal corresponding to the second flashing mode is generated.

8. The multi-host power indicator light control method according to claim 1, characterized in that, The method further includes: Record the duration of each node in the hot-plug drive interaction state within a preset historical time period; If the duration of a second node being in a hot-plug drive interaction state exceeds a preset time threshold, the second node is determined to be an abnormal node, and an abnormal mode control signal is generated. The second node is any one of at least one nodes. According to the abnormal mode control signal, the power indicator light is driven to display the abnormal status of the abnormal node.

9. The multi-host power indicator light control method according to claim 1, characterized in that, The method further includes: Receive power indicator control commands from a third node other than the first node, wherein the third node is any node other than the first node among at least one node; Based on the attributes of the third node, determine the priority of the power indicator control command; Based on the attributes of the third node, determine the priority of the power indicator control command corresponding to the current hot-plug drive interaction state; The priority of the power indicator control command is compared with the priority of the power indicator control command corresponding to the current hot-swap driver interaction state; wherein, the priority comparison rules include that the priority of the power indicator control command issued by the node holding the network card owner's authority is higher than the priority of the power indicator control command issued by the node that is not the network card owner, and the priority of the power indicator control command issued by the node in the service activation state is higher than the priority of the power indicator control command issued by the node that is not in the service activation state. When the priority of the power indicator control command is lower than the priority of the control command corresponding to the current hot-plug drive interaction state, the power indicator control command is cached so that it can be executed after the hot-plug drive interaction state ends. When the priority of the power indicator control command is higher than the priority of the control command corresponding to the current hot-swap driver interaction state, the power indicator control command is executed, and the flashing mode corresponding to the current hot-swap driver interaction state is interrupted.

10. An electronic device, characterized in that, include: At least one node is used to send power indicator light signals; A hardware control unit is configured to execute the multi-host power indicator control method as described in any one of claims 1 to 9; The power indicator light is used to receive control signals from the hardware control unit and display the corresponding operating status.