In-band lighting system, method, apparatus, medium, program product, and server
By coordinating the switching and logic components, the illumination signal is shielded and reset, resolving the issue of false illumination of the positioning light caused by the shared register of the power indicator and the positioning light. This improves the ease of use and maintenance efficiency of the equipment, and ensures accurate feedback of the equipment status and rapid fault location.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-30
- Publication Date
- 2026-04-10
AI Technical Summary
In systems without VROC drivers, the power indicator and positioning light share the same register, causing the positioning light to light up incorrectly, which affects the ease of use of the device and the efficiency of operation and maintenance.
By coordinating the operation of the switching components and logic components, the power indicator light signal is shielded during the preset time after the device is inserted, ensuring that the positioning light does not turn on accidentally, and the lighting signal is reset after the preset time to control the lighting or turning off of the positioning light.
This technology enables in-band illumination of positioning lights in systems without VROC drivers, improving device usability and maintenance efficiency, avoiding the problem of false lighting of positioning lights, and ensuring accurate feedback of device status and rapid fault location.
Smart Images

Figure CN121833424A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of circuit design technology, and in particular to an in-band lighting system, method, device, medium, program product and server. Background Technology
[0002] As competition intensifies in the server industry, ease of use has become a crucial competitive factor. In systems using VROC (Virtual RAID on CPU) drivers, the ideal solution when data center equipment malfunctions is for maintenance personnel to activate a location indicator via in-band commands, helping on-site repair staff quickly locate the faulty device. However, in scenarios without VROC drivers, a problem arises: due to duplicate registers corresponding to the power indicator and location indicator, when a device is hot-swapped and powered on normally, the power indicator will light up, but because they share the same register, the location indicator will also be mistakenly activated. This register conflict causes the location indicator to be incorrectly activated during hot-swapping, causing inconvenience for maintenance personnel.
[0003] To avoid this problem, the common approach is to disable the power indicator light, thereby indirectly disabling the location light's illumination and preventing accidental activation. However, this solution also renders the location light unusable, preventing maintenance personnel from effectively locating faults and impacting the equipment's usability.
[0004] In related technologies, especially in systems without VROC drivers, hot-swappable devices have design flaws that prevent them from supporting in-band illumination of positioning lights. Therefore, to address this issue, out-of-band illumination is typically employed, where the BMC (Baseboard Management Controller) controls the CPLD (Complex Programmable Logic Device) on the backplane to illuminate the positioning lights. However, out-of-band illumination has the following problems: it is usually not available to users or long-term applications are not permitted, limiting real-time control of the device status by maintenance personnel; and out-of-band control can lead to significant operational delays in certain situations, impacting customer maintenance efficiency and increasing fault response time.
[0005] In summary, how to provide an effective solution for in-band illumination of positioning lights in systems without VROC drivers has become a technical challenge that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0006] This application provides an in-band lighting system, method, device, medium, program product, and server to at least solve the technical problem of false lighting of positioning lights caused by the sharing of the same register between the power indicator and the positioning light in related technologies, thereby achieving the technical effect of improving the ease of use and operation and maintenance efficiency of the equipment.
[0007] This application provides an in-band lighting system, including: a switching component and a logic component. A first end of the logic component is connected to the output end of the switching component, a second end of the logic component is connected to a positioning light of at least one device, and a third end of the logic component is connected to a configuration end of the switching component. The switching component is configured to generate a corresponding lighting signal in response to a lighting command issued by the operating system, and to reset the lighting signal after a preset time through signal interaction between the configuration end and the third end of the logic component. The operating system issues a power lighting command when the device is inserted and a positioning lighting command according to positioning requirements. The logic component is configured to supply power to the device when the device is inserted into the corresponding slot, and to block the lighting signal of the switching component for a preset time after the device is inserted. After the preset time, it responds to the reset lighting signal of the switching component to control the lighting or deactivation of the positioning light.
[0008] This application also provides a server, including the in-band lighting system described above, and further including at least one device and a positioning light corresponding to the device.
[0009] This application also provides an in-band lighting method, applied to a logic component in the in-band lighting system described above. The in-band lighting method includes: when a device is inserted into a corresponding slot, powering the device and receiving a lighting signal from the switching component; the switching component generating the lighting signal in response to a power-on lighting command or a positioning lighting command issued by the operating system; blocking the lighting signal within a preset time after the device is inserted into the corresponding slot, thereby turning off the positioning light; and after a preset time after the device is inserted into the corresponding slot, responding to a reset lighting signal to control the lighting and turning off of the positioning light; wherein, after the preset time, the switching component resets the lighting signal based on signal interaction between its own configuration terminal and the third terminal of the logic component.
[0010] This application also provides an electronic device, including: a memory for storing a computer program; and a processor for executing the computer program to implement the steps of any of the above-described in-band lighting methods.
[0011] 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 in-band lighting methods.
[0012] 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 in-band lighting methods.
[0013] This application improves the interaction mechanism between the switching component and the logic component. After the device is inserted, a preset time is set. During this time, the logic component blocks the LED signal from the switching component, preventing signal conflicts and abnormal LED illumination caused by hot-plugging. After the preset time, the logic component responds to the reset LED signal and resumes normal LED control, ensuring the correct illumination or deactivation of the LED. This solution avoids the problem of LED unavailability caused by blocking the power indicator in traditional methods, enabling effective in-band LED illumination even in systems without VROC drivers. It solves the technical problem of LED malfunction caused by the power indicator and LED sharing the same register, achieving the technical effect of improving device usability and maintenance efficiency. Attached Figure Description
[0014] 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.
[0015] Figure 1 A framework diagram of an internal lighting system provided in this application embodiment;
[0016] Figure 2 A schematic diagram of a device being powered on, provided as an embodiment of this application;
[0017] Figure 3 A schematic diagram of an in-band lighting method provided in an embodiment of this application;
[0018] Figure 4 This is a schematic diagram of a computer-readable storage medium provided in an embodiment of this application. Detailed Implementation
[0019] 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.
[0020] 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.
[0021] 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.
[0022] like Figure 1 This application provides an internal lighting system, comprising:
[0023] The switching component 11 and the logic component 12 are provided. The first end of the logic component 12 is connected to the output end of the switching component 11, the second end of the logic component 12 is connected to the positioning light of at least one device, and the third end of the logic component 12 is connected to the configuration end of the switching component 11.
[0024] The switching component 11 is configured to generate a corresponding light-up signal in response to the light-up command issued by the operating system, and reset the light-up signal after a preset time through signal interaction between the configuration terminal and the third terminal of the logic component 12; wherein, the operating system issues a power light-up command when the device is inserted and a positioning light-up command according to the positioning requirements.
[0025] The logic component 12 is configured to power the device when it is inserted into the corresponding slot, and to block the light signal of the switching component 11 within a preset time after the device is inserted. After the preset time, it responds to the reset light signal of the switching component 11 to control the lighting or turning off of the positioning light.
[0026] The in-band lighting system proposed in this application aims to solve the problem of incorrect lighting of the positioning light during hot-plugging of devices in systems without VROC drivers, due to the shared register between the power indicator and the positioning light. Related technologies typically control the lighting of the positioning light out of band, relying on the interaction between the BMC and CPLD. This approach introduces significant operational latency and limitations in real-time user control. To avoid this problem, this application employs an in-band lighting control scheme, ensuring precise control of the positioning light's state through the coordinated operation of the switching component 11 and the logic component 12 when the device is inserted.
[0027] Specifically, the switching component 11 receives lighting commands (including power lighting commands and positioning lighting commands) from the operating system, which can be sent from the operating system to the CPU, and then further sent by the CPU to the switching component 11. It generates corresponding lighting signals and, through its configuration terminal, interacts with the logic component 12 to control the shielding of these lighting signals within a preset time after device insertion. The logic component 12's function is to first power on the device when it is inserted into the corresponding slot, and then shield the lighting signals from the switching component 11, ensuring that the power lighting signal does not mistakenly illuminate the positioning light. This way, even if the device is hot-swapped, the positioning light will not be incorrectly illuminated due to the power lighting signal, improving system reliability and user experience.
[0028] After a preset time has elapsed since the device was inserted, the logic component 12 controls the state of the positioning light based on the reset lighting signal from the switching component 11. When the preset time arrives, the switching component 11, through its configuration terminal, interacts with the logic component 12 to reset the lighting signal and accurately control the positioning light to turn on or off according to the device status. This approach avoids accidental lighting of the positioning light while ensuring that the device, once in normal working order, can accurately respond to positioning requirements, achieving the effect of in-band positioning light illumination.
[0029] In one exemplary embodiment, the preset time is determined based on the device's activation time. In this embodiment, the activation time refers to the time it takes for the device to begin normal operation and enter a working state, i.e., the time from when the device is powered on and completes initialization until it is fully ready. The preset time is a time interval set based on the device's activation time to ensure the device is in a stable working state and can correctly respond to the indicator lights. To prevent insufficient shielding time due to short device insertion times, the preset time should be calculated from the most recent hard drive insertion. This effectively avoids false triggering of indicator lights due to short insertion / removal times, even with multiple insertion / removal operations within a short period, ensuring that the lighting and shutdown processes of the positioning lights and fault indicator lights meet the actual needs of the device's status.
[0030] This design avoids the latency issues inherent in traditional out-of-band lighting schemes, while providing maintenance personnel with a more real-time and precise method for controlling the positioning lights. When equipment malfunctions, maintenance personnel can quickly locate the faulty device by accurately illuminating the positioning lights, thereby improving equipment maintenance efficiency. Compared to current related technologies, this in-band lighting scheme not only resolves the conflict between the power supply and positioning light registers but also improves the convenience of equipment management and system response speed, providing an effective solution for systems without VROC drivers.
[0031] In one exemplary embodiment, the switching component 11 includes a first register configured to store a first state value corresponding to a lighting signal, so as to control the lighting or turning off of the positioning light.
[0032] In this embodiment, the switching component 11 includes a first register for storing a first state value corresponding to the lighting signal. The function of the first register is to record the current state of the lighting signal (e.g., whether the positioning light is on). In this way, the switching component 11 can monitor the current state of the positioning light in real time and adjust this state according to instructions issued by the operating system, thereby controlling the positioning light to turn on or off.
[0033] Specifically, when the operating system issues a light-on command, the switching component 11 generates a corresponding light-on signal based on the content of the command (such as a power light-on command or a positioning light-on command) and stores the status value of the light-on signal in the first register. If the light-on command requires the positioning light to be turned on, the first status value of the first register will be set to the on state (e.g., set to 1); if it requires the positioning light to be turned off, the status value will be set to the off state (e.g., set to 0). This status recording allows the switching component 11 to continuously track and manage the status of the positioning light throughout the device's lifecycle.
[0034] Furthermore, the state value of the first register can be reset through interaction between the switching component 11 and the logic component 12. When the preset time after device insertion ends, the switching component 11 can restore the first state value of the first register by sending a reset signal, such as restoring it to the initial state (the initial state is the same as the off state, such as setting the first state value to 0), ensuring that the state of the positioning light matches the latest lighting signal. This reset mechanism ensures that the positioning light can be accurately turned on or off according to actual needs, thereby avoiding the problem of the positioning light being accidentally turned on due to power signals.
[0035] With this design, the first register not only stores the status of the lighting signal, but also works closely with the signal interaction between the switching component 11 and the logic component 12 to ensure precise control of lighting and turning off the positioning lights, thereby improving the reliability and operation and maintenance efficiency of the system.
[0036] In one exemplary embodiment, the logic component 12 includes: a second register configured to store a second state value corresponding to the insertion / removal state of the device; and a third register configured to store a third state value indicating whether the insertion time of the device has reached a preset time.
[0037] In this embodiment, the logic component 12 includes a second register and a third register. These registers are used to store and track the device's status information to precisely control the illumination and extinguishing of the positioning light. The second register records the device's insertion / removal status. The device's insertion / removal status is a dynamically changing parameter reflecting whether the device is in an inserted state. When the device is inserted or removed, the second status value of the second register changes accordingly, thus recording whether the device is currently in the inserted position. In this way, the logic component 12 can monitor the device's insertion / removal status in real time, ensuring that appropriate operations can be performed based on the device's presence or absence. For example, the second status value is 0 when there is no insertion / removal and 1 when there is insertion / removal.
[0038] The third register is used to record whether the preset time has been reached after the device is inserted. The third status value of the third register is used to determine whether the device has been inserted for a sufficient period of time to determine whether the shielding of the light signal can be removed. Specifically, when the device is inserted, the logic component 12 starts a timing process, continuously tracks the insertion time, and stores this time information in the third register. If the insertion time reaches the preset time, the third status value of the third register will be updated, indicating that the device has been successfully inserted and the predetermined waiting time has been completed. For example, the third status value is 0 if the preset time has not been reached, and 1 if the preset time has been reached. This mechanism ensures that the positioning light will not be accidentally turned on or off within the preset time.
[0039] By using these two registers together, logic component 12 can accurately determine the status of the device and control the processing of the lamp signal according to the actual situation of the device insertion, thus avoiding false triggering of the lamp signal during hot-plugging and improving the stability and reliability of the system.
[0040] In one exemplary embodiment, the logic component 12 includes an output interface configured as a third terminal of the logic component 12; the switching component 11 includes an input interface configured as a configuration terminal of the switching component 11; a first communication channel is configured between the output interface and the input interface to realize signal interaction from the logic component 12 to the switching component 11.
[0041] In this embodiment, a data transmission channel is established between the logic component 12 and the switching component 11 through a pair of interfaces, thereby ensuring that signals in the system can be correctly transmitted and interacted. Specifically, the logic component 12 includes an output interface, which is configured as the third terminal of the logic component 12 and is responsible for outputting signals from the logic component 12 to the switching component 11. The design of the output interface enables the logic component 12 to generate corresponding signals according to the system status or operation instructions and transmit them to the switching component 11.
[0042] On the other hand, the switching component 11 is configured with an input interface, which serves as the configuration terminal of the switching component 11 and is responsible for receiving signals from the logic component 12. The function of the input interface is to receive signals sent by the logic component 12 through the output interface and pass them to the switching component 11 for processing.
[0043] For example, when logic component 12 needs to reset the lamp signal, it sends a reset signal through the output interface, and the input interface transmits the received signal to the switching component 11, triggering the subsequent lamp signal reset operation.
[0044] To ensure correct signal interaction and transmission, a first communication channel (such as one built based on a preset communication protocol, like the I2C protocol) is configured between the output interface of logic component 12 and the input interface of switching component 11. This communication channel enables efficient and stable data exchange between logic component 12 and switching component 11, whether it is sending a light-on signal or receiving a reset signal.
[0045] This mechanism enables timely adjustment of the indicator light signal during device insertion and hot-swapping, ensuring accurate control of the positioning light and power indicator light, and avoiding fault diagnosis problems caused by misoperation.
[0046] In one exemplary embodiment, the logic component 12 includes an interface to be accessed, which is configured as the third end of the logic component 12. The switching component 11 includes an access interface, which is configured as the configuration end of the switching component 11. A second communication channel is configured between the access interface and the interface to be accessed to realize signal interaction from the switching component 11 to the logic component 12.
[0047] In this embodiment, the logic component 12 and the switching component 11 communicate via a communication channel configured with a target interface and an access interface, enabling signal interaction. Specifically, the logic component 12 includes a target interface, which serves as the third terminal of the logic component 12 and the entry point for receiving instructions and signals from the switching component 11. Through the target interface, the logic component 12 can receive polling signals or other operation requests from the switching component 11, allowing it to perform corresponding processing or adjustments based on the actual situation.
[0048] The switching component 11 includes an access interface configured as its configuration terminal. This interface is responsible for sending request signals to the logic component 12, specifically signals used to poll the register status of the logic component 12. The access interface's function is to proactively initiate signal requests to inquire about the current status of the logic component 12, thereby determining whether certain operations need to be performed, such as resetting the LED signal. In this configuration, the switching component 11 can periodically check the status of the logic component 12 to obtain the latest status information regarding its registers.
[0049] Data transmission between the interface to be accessed and the accessed interface is conducted via a second communication channel. This channel ensures efficient and timely response when signals are transmitted from the switching component 11 to the logic component 12. The second communication channel allows the switching component 11 to actively poll the status of the logic component 12, avoiding the delays of passive waiting and ensuring real-time response to changes in device status and timely adjustments. This active polling mechanism is particularly suitable for hot-swappable devices and status monitoring scenarios, effectively improving device management efficiency and maintenance response speed.
[0050] It should be noted that the main difference between the signal interaction from logic component 12 to switching component 11 and from switching component 11 to logic component 12 in these two embodiments lies in the directionality of signal transmission and the triggering mechanism. In the first embodiment, the signal interaction from logic component 12 to switching component 11 is conducted through a first communication channel between the output interface and the input interface. Logic component 12 actively controls switching component 11 by feeding back a reset signal, thereby resetting the lamp signal. In the second embodiment, the signal interaction from switching component 11 to logic component 12 is conducted through a second communication channel between the access interface and the interface to be accessed. Switching component 11 actively polls the status of logic component 12 to obtain the register value in logic component 12 to determine whether an operation (such as a reset signal) is required. Therefore, the first embodiment focuses on the instruction feedback from logic component 12 to switching component 11, while the second embodiment focuses on switching component 11 actively obtaining the status information of logic component 12. The interaction methods and triggering mechanisms of the two differ in their initiative and control direction.
[0051] In one exemplary embodiment, it further includes: a fault indicator light, corresponding one-to-one with the device, and the fourth terminal of the logic component is connected to the fault indicator light of at least one device; the switching component 11 is further configured to generate a corresponding fault indicator light signal in response to a fault indicator light command issued by the operating system when the device is inserted; the switching component 11 is further configured to control the fault indicator light to turn on or off in response to the fault indicator light signal.
[0052] In this embodiment, in addition to the normal positioning light function, a fault indicator light function is also added to provide further feedback on the device status, especially for fault detection during device insertion. Each fault indicator light corresponds one-to-one with a device and is connected to the device's fault indicator light via the fourth terminal of the logic component 12, enabling real-time feedback on the fault status. When a device is inserted, the switching component 11 responds to the fault indicator light activation command issued by the operating system, generates a corresponding fault indicator light signal, and transmits it to the logic component 12, thereby controlling the activation or deactivation of the fault indicator light.
[0053] During this process, the status of the fault indicator light is independent of other indicator lights. Even within the preset insertion time, logic component 12 will still block other indicator lights (such as the positioning light signal), but the fault indicator light signal corresponding to the fault indicator light will still be retained and remain valid. This is because retaining the fault indicator light signal allows for continuous detection of whether a fault occurs during the device insertion process, ensuring that the system can promptly reflect the fault status during activation. In this way, when the device is inserted, the fault indicator light can provide maintenance personnel with clear feedback on whether a fault exists during the device activation process, further improving the system's reliability and fault response capabilities.
[0054] This application also provides a server, including the in-band lighting system described above, and at least one device and a corresponding positioning light. Through the control of the in-band lighting system, the server of this application can precisely control the lighting and closing of the device's positioning light based on the device's plug-in / unplug status and other conditions, thereby achieving efficient and accurate device fault location and management.
[0055] For further details regarding the server, please refer to the above embodiments; this application will not repeat them here.
[0056] like Figure 3 This application also provides an in-band lighting method, applied to a logic component in the in-band lighting system described above. The in-band lighting method includes:
[0057] S11: When the device is inserted into the corresponding slot, power is supplied to the device and the switching component receives the lighting signal sent by the switching component; the switching component generates the lighting signal in response to the power lighting command or positioning lighting command sent by the operating system.
[0058] In this step, when the device is inserted into the corresponding slot, power is supplied to ensure its proper functioning. Simultaneously, the switching component receives indicator lights from the operating system; these can be power-on or positioning-on commands. The power-on command activates the power indicator light, while the positioning-on command activates the device's positioning light. For example... Figure 2 After the device is inserted into the corresponding slot, it sends an "In Position" signal to the logic component. The logic component then powers on the device via a power-on enable signal transmitted through a fuse. The switching component receives a power-on command for the LED indicator. Based on this command, the switching component generates the corresponding LED indicator signal and transmits it to the logic component.
[0059] S12: Within a preset time after the device is inserted into the corresponding slot, the light signal is blocked, and the positioning light is turned off;
[0060] In this step, to further ensure proper device initialization and correct control of the positioning lights, specifically, after the device is inserted into the corresponding slot and receives power, it enters a preset time window. During this period, the logic component will block the lighting signals transmitted by the switching component. This means that regardless of whether the lighting signal generated by the switching component is a power lighting signal or a positioning lighting signal, the positioning lights will remain off to avoid accidentally lighting up the positioning lights during device initialization.
[0061] The core purpose of this operation is to prevent incorrect light indications caused by signal conflicts or temporary device instability when the device is first inserted. By blocking the light-up signal, it ensures that the device is fully ready within a preset time, preventing the power indicator and positioning light from being mistakenly lit simultaneously upon insertion. This mechanism not only effectively avoids the problem of the positioning light accidentally turning on, but also provides a time buffer for subsequent lighting control, ensuring device stability and correct indicator display.
[0062] S13: After the device is inserted into the corresponding slot for a preset time, respond to the reset light-up signal to control the lighting and closing of the positioning light; wherein, the switching component resets the light-up signal according to the signal interaction between its own configuration terminal and the third terminal of the logic component after the preset time.
[0063] This step involves resetting the device after initialization. Once the preset time after insertion into the slot has elapsed, a reset indicator signal will be triggered based on the signal interaction between the switching and logic components. This reset signal restores the device to a known and stable state, ensuring the positioning indicator functions correctly.
[0064] Specifically, after a preset time, the switching component will interact with the third-party terminal of the logic component via its configuration terminal, triggering the generation of a reset indicator signal. Upon receiving this reset signal, the logic component will control the positioning light to turn on or off based on the actual state of the device. At this point, it is ensured that the device is fully initialized, avoiding erroneous operations during device insertion. Through this mechanism, the device avoids incorrect activation during initialization, and after the system stabilizes, it can correctly control the state of the positioning light according to the actual positioning needs.
[0065] In one exemplary embodiment, generating an LED lighting signal in response to a power-on command or location-based LED-on command issued by the operating system includes:
[0066] When the device is inserted into the corresponding slot and powered on, it receives the power-on command from the operating system and responds to the power-on command by generating an illumination signal.
[0067] After the device is inserted into the corresponding slot for a preset time, it receives the positioning light-up command issued by the operating system in response to the positioning requirement, and generates a light-up signal in response to the positioning light-up command.
[0068] In this embodiment, the generation of the indicator light signal takes two forms, each responding to different operating system commands. After the device is plugged in and powered on, it first responds to the power indicator light command issued by the operating system. The purpose of this command is to confirm that the device has successfully connected to power and is ready to operate. Therefore, the switching component generates a power indicator light signal to illuminate the device's positioning light, indicating that the device is normally powered on. This is the first form of indicator light signal generation.
[0069] Next, when the preset time after device insertion is reached, a positioning indicator command is received from the operating system. This command provides an indication of the device's specific location or status, facilitating rapid positioning by maintenance personnel. The switching component then generates a positioning indicator signal based on this command, controlling the positioning light to turn on or off. The generated indicator signal is the second type, specifically designed for the device's positioning requirements.
[0070] In one exemplary embodiment, during a preset time after the device is inserted into the corresponding slot, the lighting signal is blocked to turn off the positioning light, including:
[0071] When the device is inserted into the corresponding slot, the light signal is blocked and the timer is started simultaneously.
[0072] Determine if the preset time has been reached;
[0073] If the timer does not reach the preset time, the light-on signal will be continuously blocked, causing the positioning light to turn off.
[0074] In this embodiment, the purpose of shielding the light signal is to prevent the power indicator or positioning light from being accidentally lit after the device is inserted, thereby ensuring that the positioning light will only be lit at the appropriate time when the device is in the activation process.
[0075] Specifically, when the device is inserted into the corresponding slot, two actions are executed: first, the indicator light signal is blocked, and second, a timer is started. Blocking the indicator light signal means that the device's positioning light is temporarily turned off. Even if the operating system has issued a power-on command, the positioning light will not light up immediately, thus preventing the positioning light from being accidentally turned on during device insertion. At the same time, a timer starts to record the time it takes for the device to be inserted into the slot, so as to determine whether the preset time has been reached later.
[0076] Next, the timer will be continuously monitored to determine whether the current time has reached the preset time. This preset time is usually set based on the device's activation process and stability requirements. The purpose is to provide the device with a reasonable startup process and avoid premature termination of the blocking operation due to an excessively short time, which would affect the control of the positioning light. If the timer does not reach the set value within the preset time, the light-on signal will be continuously blocked to ensure that the positioning light remains off.
[0077] This operation avoids the situation where the positioning light accidentally lights up due to signal conflict between the power indicator and the positioning light when the device is first plugged in. Only after the preset time has elapsed will the status of the positioning light be reassessed based on subsequent operations to determine whether to turn it on again.
[0078] In one exemplary embodiment, after determining whether the timing period has reached a preset time, the in-band lighting method further includes:
[0079] If the timeout period reaches the preset time, a reset signal is sent to the configuration terminal of the switching component so that the switching component responds to the reset signal and resets the lamp signal.
[0080] Specifically, after determining whether the preset time has been reached, a reset signal is sent to the configuration end of the switching component. The purpose of this process is to ensure that within a reasonable time after the device is inserted into the slot, the switching component can reset the lighting signal and restart signal generation according to the system's needs.
[0081] When the timer detects that the time since the device was inserted has reached a preset threshold, it notifies the switching component by sending a reset signal. This triggers the switching component's internal logic, resetting the LED signal it controls to its initial state. Upon receiving the reset signal, the switching component stops the LED state previously triggered by power-on commands or other signals and prepares to receive new control commands (such as positioning LED commands). This mechanism ensures precise control of the LED signal, avoiding erroneous states caused by prematurely responding to power-on commands during the initial device activation phase.
[0082] This design ensures a stable startup process for the device after insertion by resetting the light signal, avoiding the problem of the positioning light turning on at an inappropriate time due to hot-swapping or inconsistent power states. It provides higher controllability and accuracy, especially when it comes to delicate operations such as device insertion and positioning light control.
[0083] In one exemplary embodiment, the switching component includes a first register for storing a first state value corresponding to a lighting signal;
[0084] Responding to power-on or location-based light-on commands issued by the operating system to generate light-on signals, including:
[0085] Responding to the power-on or location-on command issued by the operating system, the first state value of the first register is set to the on state.
[0086] In response to the reset signal, the light-on signal is reset, including:
[0087] When responding to a reset signal, the first state value in the first register is restored to the initial state.
[0088] Specifically, the switching component includes a first register that stores a first state value associated with the lighting signal. This first register controls the state of the positioning light, dynamically changing the state of the lighting signal based on instructions from the operating system or a reset signal. In this way, the switching component can precisely control the on / off state of the device and ensure that changes in the device's state are promptly reflected in the hardware.
[0089] When the operating system issues a power-on or location-based light-on command, the switching component generates the corresponding light-on signal based on these commands. Specifically, upon receiving a power-on or location-based light-on command, the switching component sets the first status value in the first register to the light-on state (e.g., set it to 1), thereby initiating the lighting process of the location light or power indicator. This process ensures that the device or location light's activation is closely matched with the control signal, avoiding erroneous lighting or deactivation.
[0090] Simultaneously, when a reset of the lighting signal is requested, the switching component responds with a reset signal. Upon receiving the reset signal, the switching component restores the first state value in the first register to its initial state (e.g., sets it to 0). This operation resets the lighting signal, stopping the current lighting state and preparing for the next step of lighting control. By restoring to the initial state, the correctness of the lighting signal is ensured, preventing erroneous operations caused by interference from the preceding state, and guaranteeing precise control of the device's lighting state at different stages.
[0091] This design ensures the accuracy and stability of the lighting signal, effectively avoiding redundancy and misoperation in the system, and ensuring the correct operating sequence of the positioning light and power indicator light, thereby improving the reliability and operability of the system.
[0092] In one exemplary embodiment, the switching component includes a first register for storing a first state value corresponding to a lighting signal, and the logic component includes a second register for storing a second state value corresponding to a device plug-in / plug-out state.
[0093] Responding to the power-on command issued by the operating system to generate an LED signal, including:
[0094] Poll the second status value in the second register to determine if the device has been inserted;
[0095] If the device is not inserted, the first state value of the first register is kept at the initial state.
[0096] If the device is plugged in, it responds to the power-on command issued by the operating system and sets the first status value to the on state.
[0097] Specifically, the collaboration between the switching component and the logic component is achieved through registers, which store key information related to device status and illumination signals. The switching component includes a first register that stores a first status value related to the illumination signal, controlling the on or off state of the positioning light. The logic component includes a second register that stores a second status value related to the device's insertion / removal status, i.e., whether the device is inserted into the slot.
[0098] The operation of the switching component includes polling the second status value in the second register to determine whether the device has been successfully inserted. When the switching component detects that the device is not inserted, it maintains the first status value of the first register in its initial state, thereby ensuring that the positioning light or power indicator remains off and is not affected by other factors. This operation effectively prevents the positioning light from being accidentally turned on before the device is inserted, avoiding errors caused by the positioning light being turned on when the device is not ready.
[0099] If the device is inserted into the corresponding slot, the switching component responds to the power-on command issued by the operating system and sets the first state value of the first register to the on state. At this time, the switching component initiates the lighting process of the positioning light or power indicator light by changing the value in the first register. However, the logic component blocks the lighting signal from the switching component for a preset time. This blocking mechanism ensures that the positioning light will not be lit initially after the device is inserted. Specifically, when the device is first inserted, although the switching component attempts to light the positioning light according to the power-on command, the lighting signal generated by the switching component is blocked due to the blocking mechanism of the logic component, meaning that the positioning light remains off. The main purpose of this is to prevent the positioning light from being accidentally lit immediately after the device is inserted due to the response to the power-on command.
[0100] Through this operation, the switching component not only monitors the device insertion status but also controls the status of the indicator light signal according to the operating system's instructions after the device is inserted. This design avoids erroneous indications caused by unclear device insertion status, thus improving the system's reliability and accuracy.
[0101] In one exemplary embodiment, the logic component further includes a third register storing a third state value indicating whether the insertion time of the device has reached a preset time;
[0102] After a preset time, the LED signal is reset based on the signal interaction between its own configuration terminal and the third terminal of the logic component, including:
[0103] After the device is inserted into the corresponding slot, the third status value in the third register is polled to determine whether the time for inserting the device into the corresponding slot has reached the preset time.
[0104] If the preset time is reached, the first state value will be restored to the initial state, and the second state value will be set to the default value indicating that the device has not performed a hot-plug operation.
[0105] Specifically, the logic component includes a third register that stores the device insertion time and updates its status value based on whether a preset time has been reached. When a device is inserted into a slot, the switching component polls the status value in this third register to determine whether the device insertion time has reached the preset time.
[0106] Specifically, the switching component obtains the time status value in the third register through signal interaction with the configuration terminal and the third terminal of the logic component. If this value indicates that the device has been inserted for more than a preset time, the switching component will perform a reset operation, restoring the first status value in the first register to the initial state (e.g., setting it to 0). The restoration of the first status value means that the lighting signal can restart control of the device's positioning light.
[0107] Furthermore, to ensure the correct device status, the switching component sets the second status value of the second register to a default value indicating that the device has not been hot-plugged. This is to prevent hot-plugging operations from affecting system stability and the normal operation of indicator lights, ensuring that the positioning light correctly reflects the device's status after it has stabilized. Additionally, it can clear the third status value of the third register. Therefore, the use of a preset time ensures that the light signal is only reset after the device is fully stable, avoiding accidental lighting due to incomplete or unprepared device status.
[0108] In one exemplary embodiment, after powering on the device and receiving the lighting signal from the switching component when the device is inserted into the corresponding slot, the in-band lighting method further includes:
[0109] Within a preset time after the device is inserted into the corresponding slot, the receiving switching component generates a fault prompt signal in response to the fault command issued by the operating system.
[0110] In response to fault indication signals, control the corresponding fault indicator light of the equipment to turn on or off.
[0111] Specifically, when the device is inserted into the corresponding slot, the logic component first powers the device and receives the lighting signals from the switching component. These lighting signals can be power-on or positioning-on commands, used to control the lighting status of the device's positioning lights. However, for a preset period of time after the device is inserted, the logic component does not immediately respond to these lighting signals, especially the lighting of the positioning lights. Instead, it needs to disable these lighting signals to ensure device stability and avoid unnecessary malfunctions.
[0112] In addition to the indicator light signal, the switching component can also respond to fault commands issued by the operating system and generate fault indication signals (similar to the principle of the first register, a fourth register corresponding to the fault command is also provided). These fault indication signals are used to indicate whether the system has encountered certain faults or whether there are any device problems that require immediate attention when a device is inserted. Since hot-plugging or other unstable situations may occur during device insertion, the processing of fault indication signals is crucial.
[0113] Upon receiving a fault indication signal, the logic component controls the corresponding fault indicator light to illuminate or deactivate based on the signal's content. Specifically, the fault indicator light illuminates when a fault is detected, alerting maintenance personnel to the abnormal equipment status. If no fault is detected, the indicator light remains off. This method provides real-time feedback on the equipment's health status, enabling effective fault location and management during equipment installation.
[0114] In one exemplary embodiment, the in-band lighting method further includes:
[0115] When the device is removed from the corresponding slot, the shielded switching component generates an illumination signal in response to the illumination command issued by the operating system, and generates a fault indication signal in response to the fault command issued by the operating system, so as to turn off the positioning light and the fault indicator light.
[0116] Specifically, when a device is removed from its corresponding slot, the logic component blocks all signals associated with that device, including lighting signals generated by the switching component in response to operating system commands and fault indication signals generated in response to fault commands. The core principle of this operation is to ensure that by blocking these signals, no lighting operations related to that device are triggered after it is removed.
[0117] Specifically, after the equipment is unplugged, the positioning lights and fault indicator lights no longer have any practical significance and therefore should not remain lit. By disabling these signals, unnecessary indicator light illumination can be effectively avoided, preventing interference or misleading maintenance personnel. For example, after the equipment is unplugged, there is no longer a need to indicate the equipment status or fault condition through light signals; therefore, the relevant signals and lights should be turned off immediately to ensure the accuracy of the system status and the clear presentation of the equipment status.
[0118] This operation is achieved by controlling the signal channel within the logic component to block all indicator lights and fault indication signals from the switching component. This ensures that the system will not continue to send signals related to the device after it is unplugged, thus ensuring that the system behaves as expected and avoiding invalid operation instructions.
[0119] In one specific embodiment, in a hardware design, to enhance communication between logic components (such as a CPLD) and switching components (such as a SWITCH), a communication connection needs to be added between them. This connection can use GPIO (General Purpose Input / Output) signal lines as the communication method, simplifying the design. Specifically, the CPLD is configured as an output GPIO, while the SWITCH is configured as an input GPIO. In this way, the CPLD can interact with the SWITCH through output signals to control corresponding operations.
[0120] CPLD Logic Modification: ① When the device state changes, the CPLD logic needs to be modified appropriately. When the device changes from an in-place state to an out-of-place state (i.e., from being inserted into the corresponding slot to being removed from the corresponding slot), the CPLD locates the device's slot, turns off the device's power, and requires additional steps to disable all indicator lights in that slot, including the positioning light, power indicator, and fault indicator (it should be understood that the positioning light and power indicator are the same light, and the corresponding register is the same register (i.e., the first register in the above embodiment)). ② When the device changes from an uninserted state to an inserted state, the CPLD locates the specific device's slot, turns on the device's power, and needs to disable the signals of the positioning light and power indicator light in that slot (i.e., the indicator lights described in the above embodiment). However, the fault indicator light's illumination function needs to be retained to ensure that the device can still respond to fault states even when the positioning light is disabled. ③ When the device is inserted, the CPLD starts a timer for a preset time (e.g., 60 seconds). After the timing ends, the GPIO state between the CPLD and the switch will change, specifically by switching the GPIO signal from high to low or vice versa. Simultaneously, the CPLD will unshield the positioning and power indicator lights for that slot, restoring normal illumination.
[0121] SWITCH logic modification: Upon receiving a reset signal from the CPLD, the new design requires the SWITCH to clear the first register corresponding to the positioning light of the hot-swap slot based on the reset signal (e.g., Clear Locate Flag). This ensures that the device can correctly control the positioning light's illumination during the next insertion / removal operation, unaffected by the previous operation.
[0122] It's also important to understand that, in the design, the reset signal between the CPLD and SWITCH needs to be calculated with a preset time starting from the time of the most recent hard drive insertion. This prevents insufficient shielding time due to short insertion times, ensuring the system can accurately and reliably handle state changes of hot-swappable devices.
[0123] To improve efficiency, the communication connection between the SWITCH and CPLD can be optimized to the I2C communication protocol. This protocol effectively reduces system complexity and improves the reliability and speed of data transmission. Through this communication protocol, the SWITCH can also actively poll the registers on the CPLD (specifically the second and third registers) to check which slots have undergone hard drive hot-plugging operations (this is achieved by polling the second register, as shown in Table 1). Furthermore, when the insertion action reaches a preset time (this is achieved by polling the third register, as shown in Table 1), the SWITCH can clear the state of the first register corresponding to the relevant indicator light.
[0124] Table 1 Interaction table between SWITCH and CPLD
[0125]
[0126] Table 2. Schematic diagram of writing SWITCH to CPLD
[0127]
[0128] It should be noted that in Tables 1 and 2 above, byte1 is the second state value corresponding to the second register, and byte2 is the third state value corresponding to the third register.
[0129] After the SWITCH clears the state of the first register corresponding to the positioning light, an instruction needs to be written to the CPLD to clear the hot-plug flag (that is, the state of the second register is restored to the default value). This ensures synchronization between the SWITCH and the CPLD, avoiding signal misjudgment in the next round of hot-plug operations due to the state not being updated in time.
[0130] By optimizing the communication mechanism between the CPLD and the SWITCH, the illumination and deactivation of positioning and fault indicator lights can be precisely controlled during device insertion and removal. Specifically, the CPLD ensures that the device status is reflected in real time and accurately, unaffected by hot-swapping operations, by masking or restoring the corresponding indicator signals based on the device's insertion and removal status. Furthermore, by introducing the I2C communication protocol, the SWITCH can actively poll the CPLD's registers to promptly clear expired indicator statuses, ensuring effective management of the indicator light status for each device and achieving efficient in-band instruction-based indicator light control.
[0131] 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.
[0132] like Figure 4 The embodiments of this application also provide a computer-readable storage medium 201, which stores a computer program 202, wherein the computer program 202 is configured to execute the steps in any of the above-described in-band lighting method embodiments when it is run.
[0133] In one exemplary embodiment, the computer-readable storage medium 201 described above may include, but is not limited to, various media capable of storing computer programs 202, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0134] 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-described in-band lighting method embodiments.
[0135] Embodiments of this application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps in any of the above-described in-band lighting method embodiments.
[0136] 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.
[0137] The foregoing has provided a detailed description of an in-band lighting system, method, apparatus, medium, program product, and server 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 merely for the purpose of helping to understand 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 lighting system with internal illumination, characterized in that, include: A switching component and a logic component, wherein a first end of the logic component is connected to the output end of the switching component, a second end of the logic component is connected to the positioning light of at least one device, and a third end of the logic component is connected to the configuration end of the switching component; The switching component is configured to respond to the light-on command issued by the operating system, generate a corresponding light-on signal, and reset the light-on signal after a preset time through signal interaction between the configuration terminal and the third terminal of the logic component; wherein, the operating system issues a power light-on command when the device is inserted and a positioning light-on command according to the positioning requirements. The logic component is configured to power the device when the device is inserted into the corresponding slot, and to shield the light signal of the switching component for a preset time after the device is inserted, and to respond to the light signal reset by the switching component after the preset time to control the lighting or turning off of the positioning light.
2. The internal lighting system according to claim 1, characterized in that, The switching component includes: The first register is configured to store a first state value corresponding to the lighting signal, so as to control the lighting or turning off of the positioning light.
3. The internal lighting system according to claim 1, characterized in that, The logic component includes: The second register is configured to store a second state value corresponding to the plugging / unplugging state of the device; The third register is configured to store a third state value indicating whether the insertion time with the device has reached the preset time.
4. The internal lighting system according to claim 1, characterized in that, The logic component includes an output interface, which is configured as the third terminal of the logic component; the switching component includes an input interface, which is configured as the configuration terminal of the switching component; a first communication channel is configured between the output interface and the input interface to realize signal interaction from the logic component to the switching component.
5. The internal lighting system according to claim 1, characterized in that, The logical component includes an interface to be accessed, which is configured as the third end of the logical component. The switching component includes an access interface, which is configured as the configuration end of the switching component. A second communication channel is configured between the access interface and the interface to be accessed to realize signal interaction from the switching component to the logical component.
6. The internal lighting system according to any one of claims 1-5, characterized in that, Also includes: Fault indicator lights are provided, each corresponding to one of the devices. The fourth terminal of the logic component is connected to the fault indicator light of at least one device. The switching component is also configured to generate a corresponding fault light signal in response to a fault light command issued by the operating system when the device is inserted. The switching component is also configured to control the fault indicator light to turn on or off in response to the fault indicator light signal.
7. A server, characterized in that, The system includes the in-band lighting system as described in any one of claims 1-6, and further includes at least one device and a positioning light corresponding to the device.
8. A method for internal lighting, characterized in that, The logic component applied in the in-band lighting system as described in any one of claims 1-6, the in-band lighting method comprising: When the device is inserted into the corresponding slot, power is supplied to the device and the device receives the lighting signal sent by the switching component; the switching component generates the lighting signal in response to the power lighting command or positioning lighting command sent by the operating system. Within a preset time after the device is inserted into the corresponding slot, the lighting signal is blocked, causing the positioning light to turn off; After a preset time has elapsed since the device was inserted into the corresponding slot, a reset lighting signal is received to control the lighting and turning off of the positioning light; wherein, after the preset time, the switching component resets the lighting signal based on the signal interaction between its own configuration terminal and the third terminal of the logic component.
9. The method for lighting an inner light strip according to claim 8, characterized in that, Generating the lighting signal in response to a power-on or location-based lighting command issued by the operating system includes: When the device is inserted into the corresponding slot and powered on, it receives the power-on command from the operating system and responds to the power-on command to generate the lighting signal. After a preset time has elapsed since the device was inserted into the corresponding slot, the device receives the positioning light-up command issued by the operating system in response to the positioning requirement, and generates the light-up signal in response to the positioning light-up command.
10. The method for lighting a light within a band according to claim 8, characterized in that, Within a preset time after the device is inserted into the corresponding slot, the lighting signal is blocked to turn off the positioning light, including: When the device is inserted into the corresponding slot, the light-up signal is blocked and the timer is started simultaneously; Determine if the preset time has been reached; If the timing period does not reach the preset time, the light-on signal will be continuously blocked, causing the positioning light to turn off.
11. The method for lighting a light within a band according to claim 10, characterized in that, After determining whether the timing has reached the preset time, the in-band lighting method further includes: If the timing reaches the preset time, a reset signal is sent to the configuration terminal of the switching component, so that the switching component responds to the reset signal and resets the lighting signal.
12. The method for lighting within a band according to claim 11, characterized in that, The switching component includes a first register for storing a first state value corresponding to the lighting signal; Generating the lighting signal in response to a power-on or location-based lighting command issued by the operating system includes: In response to the power-on command or location-on command issued by the operating system, the first state value of the first register is set to the on state. Responding to the reset signal, resetting the light-on signal includes: In response to the reset signal, the first state value in the first register is restored to the initial state.
13. The method for lighting an inner light strip according to claim 8, characterized in that, The switching component includes a first register for storing a first state value corresponding to the lighting signal, and the logic component includes a second register for storing a second state value corresponding to the plugging / unplugging state of the device. Generating the light-up signal in response to a power-on command issued by the operating system includes: Poll the second status value in the second register to determine if the device has been inserted; If the device is not inserted, the first state value of the first register is maintained at the initial state. If the device is inserted, in response to the power-on command issued by the operating system, the first state value is set to the light-on state.
14. The method for lighting within a band according to claim 13, characterized in that, The logic component further includes a third register that stores a third state value indicating whether the insertion time with the device has reached the preset time; After the preset time, the lighting signal is reset based on the signal interaction between its own configuration terminal and the third terminal of the logic component, including: After the device is inserted into the corresponding slot, the third state value in the third register is polled to determine whether the time for inserting the device into the corresponding slot has reached the preset time. If the preset time is reached, the first state value is restored to the initial state, and the second state value is set to a default value indicating that the device has not performed a hot-plug operation.
15. The method for lighting an inner light strip according to claim 8, characterized in that, The preset time is determined based on the activation time of the device.
16. The method for lighting an inner light strip according to any one of claims 8-15, characterized in that, When the device is inserted into the corresponding slot, power is supplied to the device, and after receiving the lighting signal sent by the switching component, the in-band lighting method further includes: Within a preset time after the device is inserted into the corresponding slot, a fault prompt signal generated by the switching component in response to a fault command issued by the operating system is received; In response to the fault indication signal, the corresponding fault indicator light of the device is controlled to turn on and off.
17. The method for lighting an inner light strip according to claim 16, characterized in that, The in-band lighting method further includes: When the device is removed from the corresponding slot, the lighting signal generated by the switching component in response to the lighting command issued by the operating system and the fault indication signal generated by the switching component in response to the fault command issued by the operating system are blocked, so that the positioning light and the fault indicator light are turned off.
18. An electronic device, characterized in that, include: Memory, used to store computer programs; A logic component for implementing the steps of the in-band lighting method as described in any one of claims 8-17 when executing the computer program.
19. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, it implements the steps of the in-band lighting method as described in any one of claims 8-17.
20. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the in-band lighting method as described in any one of claims 8-17.