Lighting method of data center switch and electronic device

By generating and combining status codes and control signals to create lighting codes, the problem of lighting issues that data center switches cannot meet in parallel management by BMC and CPU is solved, achieving accuracy and reliability of system lighting and reducing operation and maintenance costs.

CN121310365BActive Publication Date: 2026-02-27INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202511844836.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-12-09
Publication Date
2026-02-27
Estimated Expiration
2045-12-09

AI Technical Summary

Technical Problem

Traditional lighting solutions for data center switches cannot meet the needs of parallel management by remote server management controllers and central processing units, increasing research and development and maintenance costs.

Method used

By acquiring the first and second state codes, an initial lighting code is generated. Combined with the control enable signal and the system lighting control bit signal, a target lighting code is generated, enabling accurate lighting of the switch indicator lights. This supports parallel management of the BMC and CPU, meeting the lighting needs of complex application scenarios.

Benefits of technology

It improves the accuracy and reliability of system lighting, reduces R&D and maintenance costs, and meets the lighting requirements of parallel management by BMC and CPU.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121310365B_ABST
    Figure CN121310365B_ABST
Patent Text Reader

Abstract

The application discloses a kind of data center switch's light-up method and electronic equipment, it is related to data center technical field, comprising: according to the first state code and the second state code generates initial light-up code;According to control enable signal, determine whether to enable the control function of management and control equipment, combined with initial light-up code, generate intermediate light-up code;According to system light-up control bit signal, determine the light-up state of indicator light, combined with intermediate light-up code, obtain target light-up code, and according to target light-up code, light up the indicator light of switch.It can solve the problem that the light-up scheme of data center switch cannot meet the light-up needs of server remote management controller and central processor parallel management, increase the research and development and operation and maintenance cost.The method generates intermediate light-up code considering the state of each management and control equipment, improves the accuracy of system light-up, generates target light-up code for light-up combined with light-up state requirement, enhances the reliability and stability of system light-up.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of data centers, in particular to a lighting method of a data center switch and an electronic device. BACKGROUND

[0002] The popularity of cloud computing, big data analysis and artificial intelligence applications has put forward very high requirements for data processing and storage capabilities, and the demand for data center switches, which are key devices for connecting servers, storage devices and realizing data transmission and exchange, has also increased.

[0003] The traditional system lighting scheme of the data center switch gradually exposes many problems. For the traditional case where only the server remote management controller (Baseboard Management Controller, BMC) manages the machine, the traditional lighting can still meet the lighting needs of the data center switch. For the case of CPU management, server remote management controller (Baseboard Management Controller, BMC) and CPU parallel management, the traditional lighting scheme cannot flexibly meet the lighting needs, increasing the research and development and operation and maintenance costs.

[0004] Therefore, the related art has the problem that the lighting scheme of the data center switch cannot meet the lighting needs of the server remote management controller and the central processing unit parallel management, increasing the research and development and operation and maintenance costs. SUMMARY

[0005] Therefore, the present application provides a lighting method of a data center switch and an electronic device to solve the problem that the lighting scheme of the data center switch cannot meet the lighting needs of the server remote management controller and the central processing unit parallel management, increasing the research and development and operation and maintenance costs.

[0006] In a first aspect, the present application provides a lighting method of a data center switch, the method comprising:

[0007] obtaining a first state code and a second state code, wherein the first state code is used to determine the start state of a first control device, and the second state code is used to determine the start state of a second control device;

[0008] generating an initial lighting code according to the first state code and the second state code;

[0009] generating an intermediate lighting code according to the control enable signal and the initial lighting code, wherein the control enable signal is used to determine whether to enable the control function of the first control device and the second control device;

[0010] According to the system lighting control bit signal and the intermediate lighting code, a target lighting code is obtained, and the indicator light of the switch is lit according to the target lighting code, wherein the system lighting control bit signal is used to determine the lighting state of the indicator light.

[0011] In a second aspect, the present application provides a lighting device of a data center switch, comprising:

[0012] The code acquisition module is configured to acquire a first state code and a second state code, wherein the first state code is used to determine the starting state of the first management and control device, and the second state code is used to determine the starting state of the second management and control device.

[0013] The first code generation module is configured to generate an initial lighting code according to the first state code and the second state code.

[0014] The second code generation module is configured to generate an intermediate lighting code according to a control enable signal and the initial lighting code, wherein the control enable signal is used to determine whether to enable the control function of the first management and control device and the second management and control device.

[0015] The lighting module is configured to obtain a target lighting code according to a system lighting control bit signal and the intermediate lighting code, and light the indicator light of the switch according to the target lighting code, wherein the system lighting control bit signal is used to determine the lighting state of the indicator light.

[0016] In a third aspect, the present application provides an electronic device, comprising a memory and a processor, which are communicatively connected with each other, and the memory stores computer instructions, and the processor executes the computer instructions to perform the lighting method of the data center switch according to the first aspect or any one of the corresponding embodiments thereof.

[0017] In a fourth aspect, the present application provides a computer readable storage medium, which stores computer instructions, and the computer instructions are used to make a computer execute the lighting method of the data center switch according to the first aspect or any one of the corresponding embodiments thereof.

[0018] In a fifth aspect, the present application provides a computer program product, which comprises computer instructions, and the computer instructions are used to make a computer execute the lighting method of the data center switch according to the first aspect or any one of the corresponding embodiments thereof.

[0019] According to the method, the initial lighting code is generated according to the first state code and the second state code; the control function of the management and control device is determined according to the control enable signal; the intermediate lighting code is generated in combination with the initial lighting code; the lighting state of the indicator light is determined according to the system lighting control bit signal; the target lighting code is obtained in combination with the intermediate lighting code; and the indicator light of the switch is lit according to the target lighting code. The problem that the lighting scheme of the data center switch cannot meet the lighting demand of the server remote management controller and the central processor parallel management and increases the research and development and operation and maintenance cost can be solved. When the server remote management controller and the central processor are parallel managed, the starting state is determined according to the respective state codes, the intermediate lighting code is generated in combination with the starting state and the control function of the management and control device, the state of each management and control device is considered, the accuracy of the system lighting is improved, the lighting state demand is determined through the system lighting control bit signal, the target lighting code is obtained in combination with the lighting state demand and the intermediate lighting code, and the lighting is performed, so that the reliability and stability of the system lighting are enhanced while the lighting demand is met. BRIEF DESCRIPTION OF DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the specific embodiments or the related art, the drawings needed to be used in the specific embodiments or the related art will be briefly introduced. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0021] Figure 1 is a flowchart of a lighting method of a data center switch according to an embodiment of the present application;

[0022] Figure 2 is a structural diagram of a lighting system of a data center switch according to an embodiment of the present application;

[0023] Figure 3 is a flowchart of generating a first state code according to an embodiment of the present application;

[0024] Figure 4 is a flowchart of generating a second state code according to an embodiment of the present application;

[0025] Figure 5 is a flowchart of generating an initial lighting code according to an embodiment of the present application;

[0026] Figure 6 is a flowchart of generating an intermediate lighting code according to an embodiment of the present application;

[0027] Figure 7 is a flowchart of generating a target lighting code according to an embodiment of the present application;

[0028] Figure 8 is a flowchart of indicating a pilot lamp according to a pilot lamp priority and a pilot lamp code according to the embodiment of the present application;

[0029] Figure 9 is a structural block diagram of a pilot lamp device of a data center switch according to the embodiment of the present application;

[0030] Figure 10 is a hardware structural schematic diagram of an electronic device according to the embodiment of the present application. DETAILED DESCRIPTION

[0031] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present application.

[0032] It should be noted that, in the description of the present application, the terms "comprise", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device comprising a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. The terms "first", "second" and the like in the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence.

[0033] In order for 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 drawings and specific embodiments.

[0034] In combination with the specific application environment architecture or specific hardware architecture on which the execution of the pilot lamp method of the data center switch depends, the specific application environment architecture or specific hardware architecture is described here.

[0035] With the impetus of the digital era, the data center, as the core infrastructure of the digital economy, is rapidly expanding at an unprecedented speed. With the popularity of cloud computing, big data analysis, and artificial intelligence applications, there is a high demand for data processing and storage capabilities. Data center switches, as the key devices connecting servers, storage devices, and implementing data transmission and exchange, have also seen a surge in demand. There are multiple indicator lights in data center switches, and the traditional system lighting scheme for these indicator lights gradually exposes many problems. For traditional BMC management machines, the traditional lighting can still meet the demand, but for CPU management machines, BMC and CPU parallel management machines, the traditional lighting scheme cannot combine the state information of BMC and CPU for lighting. In addition, if the system lights are needed to represent system startup, system working, power failure, temperature failure, and other information, the traditional system lighting scheme cannot determine the priority of the above information, resulting in the inability to display the most important information through the system lights in time. The traditional lighting scheme cannot meet the flexible lighting needs, thereby increasing the research and development and operation and maintenance costs.

[0036] Based on the above, the embodiment of the present application provides a lighting method for a data center switch. In order to meet the complex application scenarios, the device system light management is divided into a CPLD (CMOS Programmable Logic Device, Complementary Metal Oxide Semiconductor Programmable Logic Device) / BMC / CPU parallel lighting interface. At the same time, in order to meet the factory production needs, a test mode is added. The lighting interface supports parallel access, and the lighting behavior supports priority operation. High-priority faults can cover low-priority fault lights. The lighting scheme provides a unified configuration interface for the upper software, facilitates software unified processing, reduces software processing complexity, thereby reducing development difficulty and risk, reducing operation cost, and achieving the purpose of improving economic benefit. It can light according to the priority in the case of BMC and CPU parallel management machines, and meet various lighting needs.

[0037] According to the embodiment of the present application, a lighting method for a data center switch is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a group of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order from here.

[0038] In this embodiment, a lighting method for a data center switch is provided, Figure 1 is a flowchart of the lighting method for a data center switch according to the embodiment of the present application, as Figure 1 shown, the flow includes the following steps:

[0039] In step S101, a first state code and a second state code are acquired, wherein the first state code is used to determine the start state of the first management and control device, and the second state code is used to determine the start state of the second management and control device.

[0040] Specifically, the embodiment designs a lighting system of a data center switch based on a programmable logic device CPLD, as shown in the figure. Figure 2 As shown in the figure, the system includes an indicator light management (LED Ctrl) module, the indicator light management module includes a system indicator light management (sys_LED_ctrl) unit, and the LED (Light Emitting Diode) is a light emitting diode. In addition, the system also includes a central processing unit and a server remote management controller, the central processing unit is provided with an LPC controller (Low Pin Count Controller), and the server remote management controller is provided with an I2C controller (Inter-Integrated Circuit Controller). Correspondingly, the programmable logic device is provided with an LPC_slave_interface module, an I2C_slave_interface module, a register interface 1 and a register interface 2. The LPC_slave_interface interface module is used to parse the LPC read-write protocol and convert it into a read-write enable signal, an address signal, a write data signal and a read data signal. The I2C_slave_interface interface module is used to parse the I2C read-write protocol and convert it into a read-write enable signal, an address signal, a write data signal and a read data signal; the register interface is used to complete the register read-write function and address space division. The indicator light management module is used to complete the CPLD autonomous lighting of the system indicator light, the BMC and CPU interface lighting. The system indicator light management unit is provided with a central processing unit start state (CPU_boot_state) submodule and a server remote management controller start state (BMC_boot_state) submodule.

[0041] The first management and control device is, for example, a CPU, and the second management and control device is, for example, a BMC. The indicator light management module acquires the first state code and the second state code. The central processing unit start state submodule can determine the start state of the first management and control device according to the first state code, for example, whether the first management and control device is started, whether the first management and control device is a master device or a standby device, the start time of the first management and control device, whether the first management and control device is timed out and not started, etc. The server remote management controller start state submodule can determine the start state of the second management and control device according to the second state code, for example, whether the second management and control device is in place, whether the second management and control device is started, the start time of the second management and control device, whether the second management and control device is timed out and not started, etc.

[0042] Step S102, generating an initial lighting code according to the first state code and the second state code.

[0043] Specifically, according to the first state code and the second state code, the starting state of the first control device and the second control device is determined, and the initial lighting code is generated according to the determination result. For example, the initial lighting code is the system lighting code controlled by the CPLD, and the system lighting code is composed of CPLD_LED_code and CPLD_LED_blink. The CPLD_LED_code controls the lighting color of the indicator light, and the CPLD_LED_blink controls whether the indicator light supports flashing.

[0044] Step S103, generating an intermediate lighting code according to the control enable signal and the initial lighting code, wherein the control enable signal is used to determine whether to enable the control function of the first control device and the second control device.

[0045] Specifically, the control enable signal is, for example, BMC_sys_ctrl_reg (server remote management controller system control register) and CPU_sys_ctrl_reg (central processing unit system control register). The control enable signal is used to determine whether to enable the control function of the first control device and the second control device.

[0046] In order to meet the complex application scenarios, the device system light management is split into CPLD / BMC / CPU parallel lighting interface in this embodiment. The indicator light management module realizes three-interface mixed lighting according to the control enable signal and the initial lighting code, generates an intermediate lighting code according to the control enable signal and the initial lighting code, and manages whether the system indicator light is lit, the lighting color, and whether it flashes through the intermediate lighting code.

[0047] Step S104, obtaining a target lighting code according to the system lighting control bit signal and the intermediate lighting code, and lighting the indicator light of the switch according to the target lighting code, wherein the system lighting control bit signal is used to determine the lighting state of the indicator light.

[0048] Specifically, in order to meet the factory production needs and increase the test mode lighting, there are two modes of test mode lighting and normal mode lighting for the indicator light of the switch. The normal mode lighting uses the intermediate lighting code, and the test mode lighting uses the test register lighting code in the system lighting control bit signal (sys_LED_ctrl_reg).

[0049] The system lighting control bit signal is used to determine the lighting state of the indicator light, for example, the lighting state includes normal mode lighting or test mode lighting, whether the indicator light flashes, the lighting color of the indicator light, automatic exit test mode lighting after timeout, timeout time, and the like. According to the system lighting control bit signal and the intermediate lighting code, the target lighting code is obtained, for example, according to the system lighting control bit signal, it is determined that the current is normal mode lighting, and according to the intermediate lighting code, the target lighting code is obtained; according to the system lighting control bit signal, it is determined that the current is test mode lighting, and according to the test register lighting code in the system lighting control bit signal, the target lighting code is obtained. According to the target lighting code, the indicator light of the switch is lit, which indicator light is lit, the lighting color of the indicator light is set, and whether the indicator light flashes.

[0050] In addition, the lighting behavior of the embodiment can support priority operation, and a high-priority fault can cover a low-priority fault light. The lighting method of the embodiment can be applied to other use environments in addition to the switch field, for example, a system lighting scheme in the communication field.

[0051] The lighting method of the data center switch provided by the embodiment generates an initial lighting code according to a first state code and a second state code; determines whether to enable the control function of the management and control device according to a control enabling signal, and generates an intermediate lighting code in combination with the initial lighting code; determines the lighting state of the indicator light according to a system lighting control bit signal, obtains a target lighting code in combination with the intermediate lighting code, and lights the indicator light of the switch according to the target lighting code. When the server remote management controller and the central processing unit are managed in parallel, the start state is determined according to the respective state codes, the intermediate lighting code is generated in combination with the start state and the control function of the management and control device, and the state of each management and control device is considered, the accuracy of system lighting is improved, the lighting state demand is determined through the system lighting control bit signal, the target lighting code is obtained in combination with the lighting state demand and the intermediate lighting code, and the lighting is performed, the reliability and stability of system lighting are enhanced while meeting the lighting demand. The problem that the lighting scheme of the data center switch cannot meet the lighting demand of the parallel management of the server remote management controller and the central processing unit is solved, and the research and development and operation and maintenance costs are increased.

[0052] As an optional embodiment, the first state code and the second state code are obtained, including:

[0053] The first start completion signal, the master-slave identification signal, and the first start time signal of the first management and control device are obtained;

[0054] The in-place signal, the second start completion signal, and the second start time signal of the second management and control device are obtained;

[0055] According to the first start completion signal, the main / backup identification signal and the first start time signal, a first state code is generated;

[0056] According to the in-place signal, the second start completion signal and the second start time signal, a second state code is generated.

[0057] Specifically, the first management and control device is, for example, a CPU, and the second management and control device is, for example, a BMC. The first start completion signal, the main / backup identification signal and the first start time signal of the first management and control device are acquired. The first start completion signal is a CPU_boot_ok signal, the main / backup identification signal is a CPU_boot_sel signal, and the first start time signal is a CPU_boot_time signal. The CPU_boot_state submodule mainly judges the CPU start state based on CPU_boot_ok, CPU_boot_sel and CPU_boot_time, and then generates a CPU state code as the first state code. CPU_boot_ok identifies whether the CPU has completed starting; CPU_boot_sel mainly identifies the CPU main / backup, 0 indicating the main and 1 indicating the backup; and CPU_boot_time mainly identifies the CPU start time.

[0058] According to the first start completion signal, the main / backup identification signal and the first start time signal, a first state code is generated, for example, the first state code is a CPU state code CPU_boot_code. CPU_boot_code=3`b000 indicates that the system is starting in the main mode, CPU_boot_code=3`b001 indicates that the system is starting in the backup mode, CPU_boot_code=3`b010 indicates that the backup has not completed starting in the timeout mode, CPU_boot_code=3`b100 indicates that the system has completed starting in the main mode, and CPU_boot_code=3`b101 indicates that the system has completed starting in the backup mode.

[0059] The in-place signal, the second start completion signal and the second start time signal of the second management and control device are acquired, the in-place signal is a BMC_present_n signal, the second start completion signal is a BMC_boot_ok signal, and the second start time signal is a BMC_boot_time signal. The BMC_boot_state submodule mainly judges the BMC start state based on the BMC_present_n, the BMC_boot_ok and the BMC_boot_time, and then generates a BMC state code as the second state code. The BMC_present_n indicates whether the BMC card is in place, 0 indicating that the BMC card is in place, and 1 indicating that the BMC card is not in place; the BMC_boot_ok indicates whether the BMC is started, 0 indicating that the BMC is not started, and 1 indicating that the BMC is started; and the BMC_boot_time indicates the BMC start time, and whether the BMC is started or not can be determined.

[0060] According to the in-place signal, the second start completion signal and the second start time signal, the second state code is generated, for example, the second state code is a BMC state code BMC_boot_code, BMC_boot_code = 2`b00 indicates that the BMC is being started; BMC_boot_code = 2`b10 indicates that the BMC is not started in time; and BMC_boot_code = 2`b11 indicates that the BMC is started.

[0061] In the embodiment of the application, the start state of the first management and control device is judged according to the first start completion signal, the master-slave identification signal and the first start time signal of the first management and control device; the start state of the second management and control device is judged according to the in-place signal, the second start completion signal and the second start time signal of the second management and control device, and the first state code and the second state code are generated according to the judgment results. The light-on code is generated based on the first state code and the second state code, which improves the accuracy of system light-on, and enhances the reliability and stability of system light-on.

[0062] As an optional embodiment, the first state code is generated according to the first start completion signal, the master-slave identification signal and the first start time signal, including:

[0063] The first start completion signal is compared with a first value, the master-slave identification signal is compared with a second value, and the first start time signal is compared with a third value, to obtain a first comparison result;

[0064] A first target code value corresponding to the first comparison result is determined;

[0065] The first state code is obtained according to the first target code value.

[0066] Specifically, the first boot completion signal is the CPU_boot_ok signal, the primary / standby identification signal is the CPU_boot_sel signal, and the first boot time signal is the CPU_boot_time signal.

[0067] The first value is, for example, 1'b1, where 1'b1 represents binary 1, 1'b indicates only one binary bit, and 2'b indicates two binary bits. The following value represents the data. The second value is, for example, 1'b0. The third value is, for example, 6 minutes. The first boot completion signal is compared with the first value, the primary / standby identifier signal is compared with the second value, and the first boot time signal is compared with the third value to obtain the first comparison result. The first comparison result is, for example, CPU_boot_ok == 1'b1 and CPU_boot_sel == 1'b0, CPU_boot_ok is not equal to 1'b1, CPU_boot_sel == 1'b0, CPU_boot_time < 6min, etc.

[0068] Determine the first target encoding value corresponding to the first comparison result. For example: if the first comparison result is CPU_boot_ok == 1'b1 and CPU_boot_sel == 1'b0, the first target encoding value is 3'b100; if the first comparison result is CPU_boot_ok not equal to 1'b1, CPU_boot_sel == 1'b0, and CPU_boot_time < 6min, the first target encoding value is 3'b000; if the first comparison result is CPU_boot_ok not equal to 1'b1, CPU_boot_sel == 1'b1, and CPU_boot_time < 6min, the first target encoding value is 3'b001.

[0069] The first state code is obtained based on the first target code value. For example, the first target code value is directly used as the first state code CPU_boot_code; or the first target code value is concatenated with a pre-agreed code value, and the concatenated code value is used as the first state code CPU_boot_code.

[0070] The above process is as follows Figure 3Idle; judging whether CPU_boot_ok == 1'b1 is satisfied, in the case of satisfying CPU_boot_ok == 1'b1, checking whether the CPU is a master device or a standby device, if CPU_boot_sel == 1'b0 and CPU_boot_code == 3'b100 are satisfied, if CPU_boot_sel == 1'b0 and CPU_boot_code == 3'b101 are not satisfied. In the case of not satisfying CPU_boot_ok == 1'b1, if CPU_boot_sel == 1'b0 and CPU_boot_time < 6min, CPU_boot_code == 3'b000; if CPU_boot_sel == 1'b1 and CPU_boot_time < 6min, CPU_boot_code == 3'b001; if CPU_boot_sel == 1'b1 and CPU_boot_time > 6min, CPU_boot_code == 3'b010.

[0071] As an optional embodiment, the second state code is generated according to the in-place signal, the second boot completion signal and the second boot time signal, and includes:

[0072] The in-place signal is compared with a fourth value, the second boot completion signal is compared with a fifth value, and the second boot time signal is compared with a sixth value to obtain a second comparison result.

[0073] A second target code value corresponding to the second comparison result is determined.

[0074] The second state code is obtained according to the second target code value.

[0075] Specifically, the in-place signal is a BMC_present_n signal, the second boot completion signal is a BMC_boot_ok signal, and the second boot time signal is a BMC_boot_time signal.

[0076] The fourth value is, for example, 1'b0. The fifth value is, for example, 1'b1. The third value is, for example, 6 minutes. The in-place signal is compared with the fourth value, the second boot completion signal is compared with the fifth value, and the second boot time signal is compared with the sixth value to obtain a second comparison result. The second comparison result is, for example, BMC_present_n == 1'b0, BMC_boot_ok == 1'b1, BMC_present_n == 1'b0, BMC_boot_ok!= 1'b1, BMC_boot_time > 6min, and BMC_present_n!= 1'b0.

[0077] determining a second target encoding value corresponding to the second comparison result, for example, the second comparison result is BMC_present_n not equal to 1'b0, and the second target encoding value is 2'b11; the second comparison result is BMC_present_n == 1'b0, BMC_boot_ok == 1'b1, and the second target encoding value is 2'b11; the second comparison result is BMC_present_n == 1'b0, BMC_boot_ok not equal to 1'b1, and BMC_boot_time > 6min 2'b10.

[0078] According to the second target encoding value, a second state encoding is obtained, for example, the second target encoding value is directly taken as the second state encoding BMC_boot_code; the second target encoding value is spliced with a pre-agreed encoding value, and the spliced encoding value is taken as the second state encoding BMC_boot_code.

[0079] The above process is shown in Figure 4 The idle state is determined whether BMC_present_n == 1'b0 is satisfied, if BMC_present_n == 1'b0 is not satisfied, BMC_boot_code == 2'b11; if BMC_present_n == 1'b0 is satisfied, the BMC start state is checked; whether BMC_boot_ok == 1'b1 is satisfied is determined, if BMC_boot_ok == 1'b1 is satisfied, BMC_boot_code == 2'b11; if BMC_boot_ok == 1'b1 is not satisfied, the BMC timeout time is checked, if BMC_boot_time > 6min, BMC_boot_code == 2'b10, if BMC_boot_time ≤ 6min, BMC_boot_code == 2'b00.

[0080] As an optional embodiment, according to the first state encoding and the second state encoding, an initial lighting encoding is generated, including:

[0081] The start state encoding is generated in combination with the first state encoding and the second state encoding;

[0082] The value of the start state encoding is matched with the encoding value in the preset encoding set to obtain a first matching result, and a third target encoding value equal to the value of the start state encoding is determined according to the first matching result;

[0083] According to the first preset numerical value corresponding to the third target encoding value, a first color confirmation encoding is generated, wherein the first color confirmation encoding is used to determine the color of the indicator light;

[0084] generate a first flicker confirmation code according to the third target code value corresponding to the second preset value, wherein the first flicker confirmation code is used to determine whether the indicator light flickers or not;

[0085] generate an initial lighting code according to the first color confirmation code and the first flicker confirmation code.

[0086] Specifically, the system indicator light management unit CPLD autonomous lighting interface mainly judges the BMC and CPU startup state based on BMC_boot_code and CPU_boot_code, and then generates a system lighting code controlled by the CPLD autonomously.

[0087] generate a startup state code in combination with the first state code and the second state code, for example: the first state code is CPU_boot_code, the second state code is BMC_boot_code, in combination with (CPU_boot_code, BMC_boot_code), the first state code is 3’b001, the second state code is 2’b00, and the startup state code is generated as 5'b00_001; the first state code is 3’b101, the second state code is 2’b00, and the startup state code is generated as 5'b00_101; the first state code is 3’b000, the second state code is 2’b10, and the startup state code is generated as 5'b10_000.

[0088] The preset code set is, for example: 5'b00_000, 5'b00_100, 5'b11_000, 5'b00_001, 5'b00_101, 5'b11_001, 5'b10_000, 5'b10_001, 5'b00010, 5'b10100, 5'b10101, 5'b11101, 5'b10010, 5'b11010, 5'b11100. The state code 5'b00_000, 5'b00_100, 5'b11_000 indicates that the system is in main startup; the state code 5'b00_001, 5'b00_101, 5'b11_001, 5'b10_000, 5'b10_001 indicates that the system is in standby startup; the state code 5'b00010 indicates that the system standby has not started successfully, and the BMC is restarting. The state code 5'b10100, 5'b10101, 5'b11101 indicates that the system has not started successfully; the state code 5'b10010, 5'b11010 indicates that the system standby has started successfully; and the state code 5'b11100 indicates that the system main startup is successful.

[0089] The value of the start state code is matched with the code values in the preset code set to obtain a first matching result, and a third target code value equal to the value of the start state code is determined according to the first matching result, for example: the value of the start state code is 5'b00_000, the third target code value is 5'b00_000; the value of the start state code is 5'b00_001, the third target code value is 5'b00_001; the value of the start state code is 5'b11100, and the third target code value is 5'b11100.

[0090] The first preset numerical value corresponding to the third target code value is, for example: the third target code value is 5'b00_000, the first preset numerical value is 3'b001; the third target code value is 5'b00_001, the first preset numerical value is 3'b010; the third target code value is 5'b11100, and the first preset numerical value is 3'b001.

[0091] The second preset numerical value corresponding to the third target code value is, for example: the third target code value is 5'b00_000, the second preset numerical value is 1'b1; the third target code value is 5'b00_001, the second preset numerical value is 1'b1; the third target code value is 5'b11100, and the second preset numerical value is 1'b0.

[0092] The first preset numerical value corresponding to the third target code value is used as a first color confirmation code (CPLD_LED_code), and the CPLD_LED_code represents a CPLD self-lit code. CPLD_LED_code=3’b001 represents a green light, CPLD_LED_code=3’b010 represents a yellow light, and CPLD_LED_code=3’b100 represents a red light.

[0093] The second preset numerical value corresponding to the third target code value is used as a first flashing confirmation code (CPLD_LED_blink), wherein the CPLD_LED_blink represents whether the CPLD self-lit code flashes, CPLD_LED_blink=1’b1 represents that the flashing is supported, and CPLD_LED_blink=1’b0 represents that the flashing is not supported.

[0094] The first color confirmation code and the first flashing confirmation code are combined as an initial lighting code.

[0095] The above process is as follows Figure 5Idle state is shown; combined (CPU_boot_code, BMC_boot_code); determine whether the start state code is equal to 5'b00_000, 5'b00_100, 5'b11_000, if so, CPLD_LED_code==3'b001, CPLD_LED_blink==1'b1; if the start state code is equal to 5'b00_001, 5'b00_101, 5'b11_001, 5'b10_000, 5'b10_001, CPLD_LED_code==3'b010, CPLD_LED_blink==1'b1; if the start state code is equal to 5'b00010, CPLD_LED_code==3'b100, CPLD_LED_blink==1'b1; if the start state code is equal to 5'b10100, 5'b10101, 5'b11101, CPLD_LED_code==3'b100, CPLD_LED_blink==1'b0; if the start state code is equal to 5'b10010, 5'b11010, CPLD_LED_code==3'b010, CPLD_LED_blink==1'b0; if the start state code is equal to 5'b11100, CPLD_LED_code==3'b001, CPLD_LED_blink==1'b0; if none of the above, CPLD_LED_code remains, CPLD_LED_blink remains.

[0096] As an optional embodiment, according to the control enable signal and the initial lighting code, the intermediate lighting code is generated, comprising:

[0097] The first sub-control signal of the first control device and the second sub-control signal of the second control device are obtained in the control enable signal, wherein the first sub-control signal is used to determine whether to enable the control function of the first control device, and the second sub-control signal is used to determine whether to enable the control function of the second control device;

[0098] The first sub-control signal is compared with the seventh numerical value to obtain a third comparison result;

[0099] The second sub-control signal is compared with the eighth numerical value to obtain a fourth comparison result;

[0100] According to the third comparison result and the fourth comparison result, the fourth target code value is obtained in the first sub-control signal, the second sub-control signal, the first color confirmation code and the first flashing confirmation code;

[0101] The second color confirmation code and the second blink confirmation code are obtained according to the fourth target coding value, and an intermediate lighting code is generated according to the second color confirmation code and the second blink confirmation code.

[0102] Specifically, the first management device is, for example, a CPU, and the second management device is, for example, a BMC. The first sub-control signal of the first management device and the second sub-control signal of the second management device are obtained in the control enable signal.

[0103] The first sub-control signal of the first management device is, for example, CPU_sys_ctrl_reg, wherein the 7th data bit CPU_sys_ctrl_reg[7] of CPU_sys_ctrl_reg indicates whether CPU control is enabled, 0 indicating that CPU control is enabled, and 1 indicating that CPU control is not enabled; and the 2-0th data bit CPU_sys_ctrl_reg[2:0] of CPU_sys_ctrl_reg indicates a lighting control code.

[0104] The second sub-control signal of the second management device is, for example, BMC_sys_ctrl_reg, wherein the 7th data bit BMC_sys_ctrl_reg[7] of BMC_sys_ctrl_reg indicates whether BMC control is enabled, 0 indicating that BMC control is enabled, and 1 indicating that BMC control is not enabled; and the 2-0th data bit BMC_sys_ctrl_reg[2:0] of BMC_sys_ctrl_reg indicates a lighting control code.

[0105] The system indicator light management unit three interface mixed lighting mainly outputs a mixed lighting code as an intermediate lighting code based on BMC_sys_ctrl_reg, CPU_sys_ctrl_reg, CPLD_LED_code, and CPLD_LED_blink.

[0106] The seventh numerical value is, for example, 1’b1. The first sub-control signal is compared with the seventh numerical value to obtain a third comparison result, for example, CPU_sys_ctrl_reg[7] == 1’b1 or CPU_sys_ctrl_reg[7] not equal to 1’b1.

[0107] The eighth numerical value is, for example, 1’b1. The second sub-control signal is compared with the eighth numerical value to obtain a fourth comparison result, for example, BMC_sys_ctrl_reg[7] == 1’b1 or BMC_sys_ctrl_reg[7] not equal to 1’b1.

[0108] According to the third comparison result and the fourth comparison result, a fourth target code value is obtained from the first sub-control signal, the second sub-control signal, the first color confirmation code, and the first flicker confirmation code, for example: the third comparison result is CPU_sys_ctrl_reg[7] == 1'b1, and the fourth comparison result is BMC_sys_ctrl_reg[7] == 1'b1, and the fourth target code value includes CPLD_LED_code[2:0], CPU_sys_ctrl_reg[2:0], BMC_sys_ctrl_reg[2:0], and CPLD_LED_blink; or the third comparison result is CPU_sys_ctrl_reg[7]!= 1'b1, and the fourth comparison result is BMC_sys_ctrl_reg[7]!= 1'b1, and the fourth target code value includes CPLD_LED_code[2:0] and CPLD_LED_blink.

[0109] According to the fourth target code value, a second color confirmation code (sys_LED_code) and a second flicker confirmation code (sys_LED_blink) are obtained. The second color confirmation code and the second flicker confirmation code are combined as an intermediate lighting code.

[0110] In the embodiments of the present application, the CPU and the BMC control enable states are accurately determined, and the multi-enable combination scenarios are adapted; the multi-source lighting (CPU / BMC / CPLD) and the flicker code are integrated to generate a standardized intermediate lighting code; the system indicator light control is flexibly adapted and output is consistent, the device state accurate visualization is realized, and the state indication reliability is improved.

[0111] As an optional embodiment, according to the third comparison result and the fourth comparison result, a fourth target code value is obtained from the first sub-control signal, the second sub-control signal, the first color confirmation code, and the first flicker confirmation code, including:

[0112] According to the third comparison result and the fourth comparison result, a first target data bit in the first sub-control signal, a second target data bit in the second sub-control signal, a third target data bit in the first color confirmation code, and a fourth target data bit in the first flicker confirmation code are determined;

[0113] A first target value on the first target data bit in the first sub-control signal is determined, a second target value on the second target data bit in the second sub-control signal is determined, a third target value on the third target data bit in the first color confirmation code is determined, and a fourth target value on the fourth target data bit in the first flicker confirmation code is determined;

[0114] According to the first target value, the second target value, the third target value and the fourth target value, a fourth target encoding value is obtained.

[0115] Specifically, the third comparison result is, for example, CPU sys_ctrl_reg[7] == 1'b1, CPU sys_ctrl_reg[7] is not equal to 1'b1. The fourth comparison result is, for example, BMC sys_ctrl_reg[7] == 1'b1, BMC sys_ctrl_reg[7] is not equal to 1'b1.

[0116] According to the third comparison result and the fourth comparison result, the first target data bit in the first sub-control signal, the second target data bit in the second sub-control signal, the third target data bit in the first color confirmation encoding and the fourth target data bit in the first flicker confirmation encoding are determined, for example: the third comparison result is CPU sys_ctrl_reg[7] == 1'b1, the fourth comparison result is BMC sys_ctrl_reg[7] == 1'b1, the first target data bit is [2:0], the second target data bit is [2:0], the third target data bit is [2:0], and the fourth target data bit is all data bits of the signal; the third comparison result is CPU sys_ctrl_reg[7] == 1'b1, the fourth comparison result is BMC sys_ctrl_reg[7] is not equal to 1'b1, the first target data bit is [2:0], the second target data bit is empty, the third target data bit is [2:0], and the fourth target data bit is all data bits of the signal; the third comparison result is CPU sys_ctrl_reg[7] is not equal to 1'b1, the fourth comparison result is BMC sys_ctrl_reg[7] == 1'b1, the first target data bit is empty, the second target data bit is [2:0], the third target data bit is [2:0], and the fourth target data bit is all data bits of the signal; the third comparison result is CPU sys_ctrl_reg[7] is not equal to 1'b1, the fourth comparison result is BMC sys_ctrl_reg[7] is not equal to 1'b1, the first target data bit is empty, the second target data bit is empty, the third target data bit is [2:0], and the fourth target data bit is all data bits of the signal.

[0117] The first target value is determined in the first sub-control signal, the second target value is determined in the second target data bit, the third target value is determined in the first color confirmation code, and the fourth target value is determined in the first flash confirmation code. For example, the first target value is CPU_sys_ctrl_reg[2:0], the second target value is BMC_sys_ctrl_reg[2:0], the third target value is CPLD_LED_code[2:0], and the fourth target value is CPLD_LED_blink. The first, second, third, and fourth target values ​​are integrated to form the fourth target code value.

[0118] The above process is as follows Figure 6 As shown, in the idle state; determine whether CPU_sys_ctrl_reg[7] == 1'b1 is satisfied; if CPU_sys_ctrl_reg[7] == 1'b1 is satisfied, if BMC_sys_ctrl_reg[7] == 1'b1, sys_LED_code == CPLD_LED_code[2:0] | CPU_sys_ctrl_reg[2:0], sys_LED_blink == CPLD_LED_blink; if BMC_sys_ctrl_reg[7] is not equal to 1'b1, sys_LED_code == CPLD_LED_code[2:0] | CPU_sys_ctrl_reg[2:0] | BMC_sys_ctrl_reg[2:0], sys_LED_blink == CPLD_LED_blink; if CPU_sys_ctrl_reg[7] == 1'b1 is not satisfied, if BMC_sys_ctrl_reg[7] == 1'b1, ==1'b1, sys_LED_code == CPLD_LED_code[2:0]|| BMC_sys_ctrl_reg[2:0], sys_LED_blink== CPLD_LED_blink; if BMC_sys_ctrl_reg[7] is not equal to 1'b1, sys_LED_code == CPLD_LED_code[2:0], sys_LED_blink == CPLD_LED_blink.

[0119] As an optional embodiment, the intermediate light-up code includes a second color confirmation code and a second flashing confirmation code. Based on the system light-up control bit signal and the intermediate light-up code, the target light-up code is obtained, including:

[0120] the encoding value of the fourth data bit in the system light control bit signal as a first reference encoding value, the encoding value of the fifth data bit as a second reference encoding value, and the encoding value of the sixth data bit as a third reference encoding value;

[0121] In a case where the first reference encoding value is not equal to the ninth numerical value, a target light encoding is generated according to a third preset numerical value, a second flicker confirmation encoding, and the encoding value of the seventh data bit in the second color confirmation encoding;

[0122] In a case where the first reference encoding value is equal to the ninth numerical value, if the second reference encoding value is not equal to the tenth numerical value, a target light encoding is generated according to a fourth preset numerical value, the encoding value of the seventh data bit in the system light control bit signal, and the encoding value of the eighth data bit in the system light control bit signal;

[0123] If the second reference encoding value is equal to the tenth numerical value and the third reference encoding value is less than the eleventh numerical value, a target light encoding is generated according to a third preset numerical value, the encoding value of the seventh data bit in the system light control bit signal, and the encoding value of the eighth data bit in the system light control bit signal.

[0124] Specifically, the system light control bit signal is, for example, sys_LED_ctrl_reg, wherein sys_LED_ctrl_reg[7] represents a light module, 0 represents a normal mode light, and 1 represents a test mode light; sys_LED_ctrl_reg[6] represents a flicker control, 0 represents a constant light, and 1 represents a flicker; sys_LED_ctrl_reg[5] represents a test mode timeout automatic exit enable, 0 represents a timeout automatic exit function disabled, and 1 represents a timeout automatic exit function enabled, sys_LED_ctrl_reg[4:3] represents a timeout time, 00 represents 1 minute, 01 represents 5 minutes, 10 represents 10 minutes, and 11 represents 15 minutes; and sys_LED_ctrl_reg[2:0] represents a light color control, 001 represents green, 010 represents yellow, and 100 represents red.

[0125] The fourth data bit is, for example, 7. The fifth data bit is, for example, 5. The sixth data bit is, for example, [4:3]. The encoding value of the fourth data bit in the system light control bit signal is taken as a first reference encoding value sys_LED_ctrl_reg[7], the encoding value of the fifth data bit is taken as a second reference encoding value sys_LED_ctrl_reg[5], and the encoding value of the sixth data bit is taken as a third reference encoding value sys_LED_ctrl_reg[4:3].

[0126] The system indicator light management unit outputs a comprehensive lighting code as a target lighting code (LED_code) based on sys_LED_ctrl_reg, sys_LED_code and sys_LED_blink during the test mode lighting and normal mode lighting process. The LED_code represents a mixed lighting code. The normal mode uses a three-interface mixed lighting code, and the test mode uses a test register lighting code.

[0127] In combination Figure 7 The ninth value is, for example, 1'b1. The tenth value is, for example, 1'b1. The eleventh value is, for example, 5 seconds. The third preset value is, for example, 1'b0. The fourth preset value is, for example, 1'b1. The seventh data bit is, for example, 6. The eighth data bit is, for example, [2:0].

[0128] In the case where sys_LED_ctrl_reg[7] is not equal to 1'b1, the target lighting code (LED_code) is generated according to 1'b0, sys_LED_blink and sys_LED_code[2:0], that is, LED_code == {1'b0,sys_LED_blink,sys_LED_code[2:0]}.

[0129] In the case where sys_LED_ctrl_reg[7] is equal to 1'b1, if sys_LED_ctrl_reg[5] is not equal to 1'b1, the target lighting code is generated according to the fourth preset value 1'b1, sys_LED_ctrl_reg[6] and sys_LED_ctrl_reg[2:0], that is, LED_code == {1'b1,sys_LED_ctrl_reg[6],sys_LED_ctrl_reg[2:0]}.

[0130] If sys_LED_ctrl_reg[5] is equal to 1'b1 and sys_LED_ctrl_reg[4:3] is less than 5 seconds, the target lighting code is generated according to 1'b1, sys_LED_ctrl_reg[6] and sys_LED_ctrl_reg[2:0], that is, LED_code == {1'b1,sys_LED_ctrl_reg[6],sys_LED_ctrl_reg[2:0]}. Whether sys_LED_ctrl_reg[4:3] is less than 5 seconds can be determined by a 5-second timing counter.

[0131] In addition, if time5s_cnt>sys_LED_ctrl_reg[4:3] and sys_LED_ctrl_reg[5]<=1'b0, the step of generating the target lighting code in this embodiment is re-executed.

[0132] In the embodiment of the present application, the accurate switching of normal mode lighting and test mode lighting is realized through the system lighting control bit signal, and the flexible configuration of flickering and color is supported. The test mode supports automatic exit and multiple time length options to avoid long-term occupation of lighting resources. The scene standardized target lighting code generation logic guarantees the consistency of the indicator light output. The accurate determination of timeout is combined with the timing counter to improve the reliability of mode switching and the ease of use of the system.

[0133] As an optional embodiment, the indicator light of the switch is lit according to the target lighting code, which comprises:

[0134] According to the preset lighting priority, the value of the target lighting code is matched with a preset number of reference code values to obtain a second matching result.

[0135] According to the second matching result, a fifth target code value equal to the value of the target lighting code is determined.

[0136] The target lighting code is adjusted according to the fifth target code value, and the indicator light of the switch is lit according to the adjusted target lighting code.

[0137] Specifically, the preset lighting priority is, for example, as shown in Figure 8 The lighting priority is green light flickering, yellow light flickering, red light flickering, green light, yellow light, red light, test mode lighting flickering, test mode lighting constant, and lighting state retention.

[0138] The preset number represents a plurality, and no specific number is limited here. The preset number of reference code values are, for example, 5'b01001 for green flickering, 5'b0101x for yellow flickering, 5'b011xx for red flickering, 5'b00001 for green constant, 5'b0001x for yellow constant, 5'b001xx for red constant, 5'b11xxx for test mode flickering control, and 5'b10xxx for test mode constant control.

[0139] The color priority lighting of the system indicator light management unit is mainly based on the actual lighting code generated by LED_code.

[0140] According to the preset lighting priority, the value of the target lighting code (LED_code) is matched with a preset number of reference code values to obtain a second matching result, for example, as shown in Figure 8As shown, first, it is judged whether the LED_code is equal to 5'b01001, then whether the LED_code is equal to 5'b0101x, then whether the LED_code is equal to 5'b011xx, and finally whether the LED_code is equal to 5'b10xxx, to obtain a second matching result. The second matching result is, for example, LED_code == 5'b01001, LED_code == 5'b0101x, …, LED_code == 5'b10xxx.

[0141] According to the second matching result, a fifth target code value equal to the value of the target lighting code is determined, for example, the second matching result is LED_code == 5'b01001, and the fifth target code value is 5'b01001; the second matching result is LED_code == 5'b0101x, and the fifth target code value is 5'b0101x.

[0142] The lighting code corresponding to the fifth target code value is, for example, the fifth target code value is 5'b01001, and the corresponding lighting code is 4'd5; the fifth target code value is 5'b011xx, and the corresponding lighting code is 4'd7; the fifth target code value is 5'b0001x, and the corresponding lighting code is 4'd2; and the fifth target code value is 5'b10xxx, and the corresponding lighting code is 4'd5 / 6 / 7.

[0143] According to the lighting code corresponding to the fifth target code value, the target lighting code is adjusted to obtain an adjusted target lighting code, for example, the adjusted target lighting code is LED_code == 4'd5; the adjusted target lighting code is LED_code == 4'd1; and the adjusted target lighting code is LED_code == 4'd5 / 6 / 7, and the specific process is as shown in Figure 8 Therefore, the detailed description is omitted here. The indicator light of the switch is lit according to the adjusted target lighting code.

[0144] In the embodiments of the present application, the accurate matching of the lighting code is realized according to the preset priority, which guarantees the priority display of the fault or critical state. The mapping logic of the standardized reference code and the hardware lighting code avoids the conflict of state indication. The encoding matching process is simplified, which helps the operation and maintenance to quickly identify the device state and unify the lighting control rules.

[0145] As an optional embodiment, the specific process of the above-mentioned steps of "obtaining the first startup completion signal, the master-slave identification signal and the first startup time signal of the first controlled device" and "obtaining the in-place signal, the second startup completion signal and the second startup time signal of the second controlled device" can include steps A1 to A6.

[0146] In this embodiment, the first boot completion signal is the CPU_boot_ok signal, the primary / standby identifier signal is the CPU_boot_sel signal, and the first boot time signal is the CPU_boot_time signal. The present signal is the BMC_present_n signal, the second boot completion signal is the BMC_boot_ok signal, and the second boot time signal is the BMC_boot_time signal.

[0147] Step A1: Obtain the CPU_boot_ok signal.

[0148] Specifically, after the CPU completes boot (initializing the core, cache, and bus), the CPU datasheet locates the corresponding internal CPU register, such as the MSR or SCR register, and reads the CPU_boot_ok signal from this register. Alternatively, the CPU_boot_ok signal can be read from the BIOS POST log.

[0149] Step A2: Obtain the CPU_boot_sel signal.

[0150] Specifically, the CPU_boot_sel signal is usually a hardware strap signal or a BIOS configuration parameter. It can be obtained during boot by checking the hardware configuration, for example, by locating the DIP switch / jump corresponding to CPU Boot Selection and observing the current position (0 = primary, 1 = secondary). The CPU_boot_sel signal is generated accordingly. The CPU_boot_sel signal can also be read at the OS level.

[0151] Step A3: Obtain the CPU_boot_time signal.

[0152] Specifically, the timing start point is set to CPU power-on (when VCC core voltage is stable), and the timing end point is set to CPU_boot_ok being set. The total timing duration is obtained through timing measurement or log timing, and then the CPU_boot_time signal is generated.

[0153] Step A4: Obtain the BMC_present_n signal.

[0154] Specifically, the BMC_present_n signal is an active low signal. When the BMC card is physically present, the pin is at a low level. The BMC_present_n signal is generated by obtaining the hardware level or verifying whether the BMC is present based on the BMC communication status.

[0155] Step A5: Obtain the BMC_boot_ok signal.

[0156] Specifically, after the BMC startup is completed (firmware is loaded and the management interface is initialized), the BMC updates its state register, and the BMC_boot_ok signal is obtained by reading the state register of the BMC.

[0157] Step A6, the BMC_boot_time signal is obtained.

[0158] Specifically, the starting point of the timing is set as the power-on of the BMC (12V power supply is stable), the ending point of the timing is set as the setting of BMC_boot_ok, the total timing duration is obtained through the BMC log, timing measurement and API query, and the BMC_boot_time signal is generated.

[0159] In addition, the hardware configuration type signal (such as CPU_boot_sel and BMC_present_n) can be obtained by checking the jumper or physical connection first, and then verified through the BIOS / BMC interface; the state identification type signal (such as CPU_boot_ok and BMC_boot_ok) can be obtained through the IPMI / UEFI command first, and then verified through the hardware level; the time type signal (such as CPU_boot_time and BMC_boot_time) can be measured accurately through the timer or estimated through the log. If it is necessary to obtain signals in batches or automatically obtain signals, scripts can be developed based on the IPMI / Redfish interface to avoid manual operation.

[0160] In the embodiment of the application, the CPU and BMC startup state are accurately perceived, and a standardized state code is output. The startup fault (such as BMC absence and CPU startup timeout) is quickly located, and the troubleshooting cycle is shortened. The automatic switching of the main and standby CPUs, abnormal alarm and other automatic operations are supported. The hardware monitoring precision of the server is improved, and the stability and reliability in the startup stage are guaranteed.

[0161] In the embodiment, a data center switch lighting device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and will not be described again. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware is also possible and is conceived.

[0162] The embodiment provides a data center switch lighting device, as shown in Figure 9 , comprising:

[0163] The coding obtaining module 901 is configured to obtain a first state code and a second state code, wherein the first state code is used to determine the starting state of the first management and control device, and the second state code is used to determine the starting state of the second management and control device.

[0164] The first code generating module 902 is configured to generate an initial lighting code according to the first state code and the second state code.

[0165] The second code generating module 903 is configured to generate an intermediate lighting code according to a control enable signal and the initial lighting code, wherein the control enable signal is used to determine whether to enable the control function of the first management and control device and the second management and control device.

[0166] The lighting module 904 is configured to obtain a target lighting code according to a system lighting control bit signal and the intermediate lighting code, and light the indicator of the switch according to the target lighting code, wherein the system lighting control bit signal is used to determine the lighting state of the indicator.

[0167] Further function descriptions of the above-mentioned various modules and units are the same as those of the above-mentioned corresponding embodiments, and will not be described here again.

[0168] The lighting device of the data center switch in the embodiment is in the form of a functional unit, and the unit herein refers to an ASIC (Application Specific Integrated Circuit, Application Specific Integrated Circuit) circuit, a processor and a memory executing one or more software or fixed programs, and / or other devices that can provide the above-mentioned functions.

[0169] Figure 10 A structural schematic diagram of an electronic device provided by the embodiment of the present application is provided.

[0170] The following will be specifically described with reference to Figure 10 which shows a structural schematic diagram of an electronic device suitable for implementing the electronic device in the embodiment of the present application. The electronic device can include a processor (such as a central processor, a graphics processor, etc.) 1001, which can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 1002 or programs loaded from a storage 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the electronic device are also stored. The processor 1001, the ROM 1002, and the RAM 1003 are connected to each other through a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0171] Generally, the following devices can be connected to the I / O interface 1005: input devices 1006, including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, and the like; output devices 1007, including, for example, a liquid crystal display (LCD), a speaker, a vibrator, and the like; storage devices 1008, including, for example, a tape, a hard disk, and the like; and communication devices 1009. The communication devices 1009 can allow the electronic device to communicate wirelessly or via a wire with other devices to exchange data. Although Figure 10 An electronic device having various devices is illustrated, but it is understood that all of the illustrated devices are not required, and more or less devices can be implemented instead.

[0172] In particular, the processes described above with reference to the flowcharts can be implemented as a computer software program according to embodiments of the present application. For example, embodiments of the present application include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for executing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network through the communication devices 1009, or installed from the storage devices 1008, or installed from the ROM 1002. When the computer program is executed by the processor 1001, the above-described functions defined in the lighting method of the data center switch of embodiments of the present application are performed.

[0173] Figure 10 The electronic device illustrated is merely an example, and should not limit the functions and use range of embodiments of the present application.

[0174] Embodiments of the present application also provide a computer-readable storage medium, the above-mentioned method according to embodiments of the present application can be implemented in hardware, firmware, or as computer code that can be recorded on a storage medium, or stored in a remote storage medium or a non-transitory machine-readable storage medium and stored in a local storage medium to be downloaded through a network, so that the method described herein can be processed by such software stored on a storage medium using a general-purpose computer, a special-purpose processor, or programmable or special-purpose hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk or a solid state disk, etc.; further, the storage medium can also include a combination of the above-mentioned types of storage. It can be understood that the computer, processor, microprocessor controller or programmable hardware includes a storage component that can store or receive software or computer code, which, when accessed and executed by the computer, processor or hardware, implements the lighting method of the data center switch illustrated in the above embodiments.

[0175] Part of the present application can be applied as a computer program product, for example, computer program instructions, when executed by a computer, through the operation of the computer, can invoke or provide the method and / or technical solutions according to the present application. Those skilled in the art should understand that the form of computer program instructions in computer readable medium includes but is not limited to source files, executable files, installation package files and the like, and accordingly, the way of computer program instructions executed by computer includes but is not limited to: the computer directly executes the instructions, or the computer compiles the instructions and then executes the corresponding compiled program, or the computer reads and executes the instructions, or the computer reads and installs the instructions and then executes the corresponding installed program. Here, the computer readable medium can be any available computer readable storage medium or communication medium accessible to the computer.

[0176] Although the embodiments of the present application are described in conjunction with the drawings, various modifications and changes can be made by those skilled in the art without departing from the spirit and scope of the present application, and such modifications and changes fall within the scope defined by the appended claims.

Claims

1. A method for lighting up lights on a data center switch, characterized in that, The method includes: Obtain a first status code and a second status code, wherein the first status code is used to determine the startup status of the first control device and the second status code is used to determine the startup status of the second control device. Generate an initial lighting code based on the first state code and the second state code; The step of generating an initial lighting code based on the first state code and the second state code includes: generating a start-up state code by combining the first state code and the second state code; matching the value of the start-up state code with code values ​​in a preset code set to obtain a first matching result, and determining a third target code value that is equal to the value of the start-up state code based on the first matching result; generating a first color confirmation code based on a first preset value corresponding to the third target code value, wherein the first color confirmation code is used to determine the color of the indicator light; generating a first flashing confirmation code based on a second preset value corresponding to the third target code value, wherein the first flashing confirmation code is used to determine whether the indicator light is flashing; and generating the initial lighting code based on the first color confirmation code and the first flashing confirmation code. An intermediate lighting code is generated based on the control enable signal and the initial lighting code, wherein the control enable signal is used to determine whether to enable the control functions of the first control device and the second control device; The step of generating an intermediate lighting code based on the control activation signal and the initial lighting code includes: obtaining a first sub-control signal of the first control device and a second sub-control signal of the second control device from the control activation signal, wherein the first sub-control signal is used to determine whether to enable the control function of the first control device, and the second sub-control signal is used to determine whether to enable the control function of the second control device; comparing the first sub-control signal with a seventh value to obtain a third comparison result; comparing the second sub-control signal with an eighth value to obtain a fourth comparison result; obtaining a fourth target code value from the first sub-control signal, the second sub-control signal, the first color confirmation code, and the first flashing confirmation code based on the third comparison result and the fourth comparison result; obtaining a second color confirmation code and a second flashing confirmation code based on the fourth target code value, and generating the intermediate lighting code based on the second color confirmation code and the second flashing confirmation code; The target lighting code is obtained based on the system lighting control bit signal and the intermediate lighting code, and the indicator light of the switch is lit up according to the target lighting code. The system lighting control bit signal is used to determine the lighting status of the indicator light. The intermediate light-up code includes the second color confirmation code and the second flashing confirmation code. Obtaining the target light-up code based on the system light-up control bit signal and the intermediate light-up code includes: using the code value of the fourth data bit in the system light-up control bit signal as a first reference code value, the code value of the fifth data bit as a second reference code value, and the code value of the sixth data bit as a third reference code value; when the first reference code value equals the ninth value, generating the target light-up code based on the third preset value, the second flashing confirmation code, and the code value of the seventh data bit in the second color confirmation code. If the first reference code value is not equal to the ninth value, and the second reference code value is not equal to the tenth value, the target lighting code is generated based on the fourth preset value, the code value of the seventh data bit in the system lighting control signal, and the code value of the eighth data bit in the system lighting control signal; if the second reference code value is equal to the tenth value and the third reference code value is less than the eleventh value, the target lighting code is generated based on the third preset value, the code value of the seventh data bit in the system lighting control signal, and the code value of the eighth data bit in the system lighting control signal.

2. The method according to claim 1, characterized in that, The process of obtaining the first state code and the second state code includes: Acquire the first start-up completion signal, the primary / standby identification signal, and the first start-up time signal of the first control device; Acquire the presence signal, the second start-up completion signal, and the second start-up time signal of the second control device; The first status code is generated based on the first startup completion signal, the primary / standby identification signal, and the first startup time signal. The second status code is generated based on the in-situ signal, the second start-up completion signal, and the second start-up time signal.

3. The method according to claim 2, characterized in that, The step of generating the first status code based on the first startup completion signal, the primary / standby identifier signal, and the first startup time signal includes: The first startup completion signal is compared with the first value, the primary / standby identifier signal is compared with the second value, and the first startup time signal is compared with the third value to obtain the first comparison result; Determine the first target encoding value corresponding to the first comparison result; The first state code is obtained based on the first target code value.

4. The method according to claim 2, characterized in that, The step of generating the second status code based on the in-situ signal, the second startup completion signal, and the second startup time signal includes: The in-situ signal is compared with the fourth value, the second start-up completion signal is compared with the fifth value, and the second start-up time signal is compared with the sixth value to obtain the second comparison result; Determine the second target encoding value corresponding to the second comparison result; The second state code is obtained based on the second target code value.

5. The method according to claim 1, characterized in that, The step of obtaining a fourth target code value from the first sub-control signal, the second sub-control signal, the first color confirmation code, and the first flashing confirmation code based on the third comparison result and the fourth comparison result includes: Based on the third comparison result and the fourth comparison result, the first target data bit in the first sub-control signal, the second target data bit in the second sub-control signal, the third target data bit in the first color confirmation code, and the fourth target data bit in the first flashing confirmation code are determined. In the first sub-control signal, a first target value on the first target data bit is determined; in the second sub-control signal, a second target value on the second target data bit is determined; in the first color confirmation code, a third target value on the third target data bit is determined; and in the first flash confirmation code, a fourth target value on the fourth target data bit is determined. The fourth target code value is obtained based on the first target value, the second target value, the third target value, and the fourth target value.

6. The method according to claim 1, characterized in that, The step of illuminating the indicator lights of the switch according to the target indicator light code includes: According to the preset lighting priority, the value of the target lighting code is matched with a preset number of reference code values ​​to obtain a second matching result; Based on the second matching result, a fifth target code value that is equal to the value of the target lamp code is determined; Adjust the target light code according to the light code corresponding to the fifth target code value, and light up the indicator light of the switch according to the adjusted target light code.

7. An electronic device, characterized in that, include: A memory and a processor are communicatively connected, the memory storing computer instructions, and the processor executing the computer instructions to perform the lighting method of the data center switch according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Feiteng reinforcement computing platform state monitoring and problem positioning method

    CN116257411A