The device for lighting the equipment

CN117615032BActive Publication Date: 2026-08-14INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-17
Publication Date
2026-08-14

AI Technical Summary

Technical Problem

[0005]本申请实施例提供了一种设备的点灯的装置,以至少解决相关技术中,点灯的装置对设备的兼容性较差等问题

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117615032B_ABST
    Figure CN117615032B_ABST
Patent Text Reader

Abstract

This application discloses a device for lighting up a device. The device includes: a conversion board, N parsing boards, and L signal light groups. The conversion board is used to identify the target device type of the currently connected target device, receive an initial port code stream from the target device according to the target code stream transmission protocol corresponding to the target device type, and convert the initial port code stream into a target port code stream that meets the target format. Each of the N parsing boards is used to perform a parsing operation matching the target format on the received target port code stream to obtain the corresponding lighting code pattern. Each of the L signal light groups is used to perform a corresponding lighting operation to indicate the port status of the corresponding service port on the target device. By adopting the above technical solution, the problem of poor device compatibility of lighting devices in related technologies is solved, thereby achieving the technical effect of improving the device compatibility of lighting devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computers, and more specifically, to a device for lighting a lamp. Background Technology

[0002] Switches are important devices in the data processing stage. Switches have numerous service ports for data transmission, and the port status information of each service port on a switch can usually be visually represented by indicator lights.

[0003] In related technologies, switching chips in switches are typically used to send port status information of each service port of the switch to the lighting device. Different switches have different models of switching chips, different transmission ports on different models of switching chips, and different transmission protocols and transmission links for transmitting port status information to the lighting device. For example, some switching chips use two sets of lines to send port status information, while others use six sets of lines. The way port status information is sent is completely different. Existing lighting devices cannot simultaneously adapt to and be compatible with different switching chips, and therefore cannot achieve lighting for different devices.

[0004] There is still no effective solution to the problem of poor compatibility of lighting devices with other equipment in related technologies. Summary of the Invention

[0005] This application provides a device for lighting a device, which at least solves the problem of poor compatibility of lighting devices with devices in related technologies.

[0006] According to one embodiment of the present application, a device for lighting a device is provided, comprising: a conversion board, N parsing boards, and L signal light groups, wherein the input terminal of the conversion board is connected to the target device, the input terminal of each of the N parsing boards is connected to the output terminal of the conversion board, and the L signal light groups are respectively connected to the output terminals of the N parsing boards, where N and L are positive integers greater than or equal to 1;

[0007] The conversion board is used to identify the target device type of the currently connected target device, receive an initial port stream from the target device according to the target stream transmission protocol corresponding to the target device type, and convert the initial port stream into a target port stream that meets the target format. The stream transmission protocol is used to indicate the method of transmitting port streams between the device of the corresponding device type and the conversion board. The port stream includes multiple serial status codes, which are used to indicate the current port status of the corresponding service port on the corresponding device.

[0008] Each of the N parsing boards is used to perform a parsing operation matching the target format on the received target port code stream to obtain the corresponding light-up code pattern, wherein the light-up code pattern is used to control the corresponding signal light group to perform the corresponding light-up operation;

[0009] Each of the L signal light groups is used to perform a corresponding lighting operation to indicate the port status of the corresponding service port on the target device.

[0010] Optionally, the conversion board includes: a stream format conversion module, wherein the stream format conversion module is deployed on the conversion board, and the stream format conversion module stores corresponding device types and stream transmission protocols;

[0011] The conversion board is used to identify the target device type of the currently connected target device;

[0012] The bitstream format conversion module is used to obtain the target bitstream transmission protocol corresponding to the target device type from the corresponding device types and bitstream transmission protocols; receive the initial port bitstream from the target device according to the target bitstream transmission protocol, and convert the initial port bitstream into a target port bitstream that meets the target format.

[0013] Optionally, the bitstream format conversion module is configured to receive the initial port bitstream from the target device according to the target bitstream transmission protocol, sequentially perform an identification operation on each initial status code in the initial port bitstream to obtain the current port status of each of the M corresponding service ports on the target device; and simultaneously convert the identified port status into the corresponding target status code that satisfies the target format to obtain the target port bitstream, wherein the initial status code and the target status code with a corresponding relationship are used to represent the same port status of the same service port on the target device, and M is a positive integer greater than or equal to 1 and less than or equal to L.

[0014] Optionally, the target device includes M service ports, and each service port includes P port channels, wherein,

[0015] The initial port code stream includes M serial initial status code sequences. Each of the M initial status code sequences includes P groups of initial status codes. The i-th initial status code sequence in the M initial status code sequences represents the port status of the i-th service port among the M service ports on the target device. Each of the P groups of initial status codes includes R initial status codes. The i-th initial status code sequence includes P*R initial status codes to represent the first port status, second port status, third port status, and fourth port status of the i-th service port. The first port status is used to represent the first port status of the i-th service port. The port rate, the second port state is used to indicate the port mode of the i-th service port, the port mode of the i-th service port is used to indicate the division method of P port channels in the i-th service port, the third port state is used to indicate whether there is port traffic in the i-th service port, and the fourth port state is used to indicate whether the i-th service port is connected, wherein the port state includes the first port state, the second port state, the third port state and the fourth port state, P is a positive integer greater than or equal to 2, R is a positive integer greater than or equal to 4, and i is a positive integer greater than or equal to 1 and less than or equal to M;

[0016] The target port code stream includes M serial target status code sequences. Each of the M target status code sequences includes P groups of target status codes. The j-th target status code sequence in the M target status code sequences is used to represent the port status of the j-th service port among the M service ports on the target device. Each of the P groups of target status codes includes T target status codes. The j-th target status code sequence includes P*T target status codes used to represent the first port status, the second port status, the third port status, and the fourth port status of the j-th service port. T is a positive integer greater than or equal to 4, and j is a positive integer greater than or equal to 1 and less than or equal to M.

[0017] Optionally, if the target device includes M service ports, the k-th parsing board among the N parsing boards includes: a serial data parsing module, a U... k One port parsing module and one service indicator module, wherein each of the parsing boards contains a U k Each of the port parsing modules is connected in parallel between the serial data parsing module and the service lighting module. Each parsing board is connected to a portion of the L signal light groups through the service lighting module. k is a positive integer greater than or equal to 1 and less than or equal to N. The number of port parsing modules in the N parsing boards is greater than or equal to M, and M is a positive integer greater than or equal to 1 and less than or equal to L.

[0018] The serial data parsing module in the kth parsing board is used to perform a bitstream interception operation on the received target port bitstream to obtain the kth port bitstream segment to be parsed by the kth parsing board. The kth port bitstream segment represents U among the M service ports on the target device. k The port status of each of the aforementioned service ports;

[0019] The k-th parsing board in U k The port parsing module is used to perform a parsing operation on the k-th port bitstream segment to match the target format, and obtain U. k The parsed light-up code pattern for each of the aforementioned service ports is then sent to the service light-up module.

[0020] The service lighting module is used to control the corresponding signal light group to perform the corresponding lighting operation according to the received lighting code pattern.

[0021] Optionally, in the k-th parsing board, U k The port parsing module is configured to obtain the target status code sequence of the corresponding service port from the k-th port code stream segment; identify the port status of the corresponding service port according to the target status code sequence; and determine the indicator code pattern of each service port according to the port status of each service port. The target status code sequence includes multiple target status codes to represent the first port status, second port status, third port status, and fourth port status of the corresponding service port. The first port status represents the port rate of the corresponding service port, the second port status represents the port mode of the corresponding service port, the port mode indicates the division method of port channels in the corresponding service port, the third port status indicates whether there is port traffic in the corresponding service port, and the fourth port status indicates whether the corresponding service port is connected. The port status includes the first port status, the second port status, the third port status, and the fourth port status.

[0022] Optionally, in the k-th parsing board, U k The port resolution module is used for:

[0023] When the second port state indicates that the corresponding service port is in the first port mode and the fourth port state indicates that the corresponding service port is not connected, the indicator light pattern of the service port is determined to be a first value; when the second port state indicates that the corresponding service port is in the first port mode, the fourth port state indicates that the corresponding service port is connected, and the third port state indicates that the corresponding service port has no port traffic, the indicator light pattern of the service port is determined to be a second value; when the second port state indicates that the corresponding service port is in the first port mode, the fourth port state indicates that the corresponding service port is connected, and the third port state indicates that the corresponding service port has port traffic, the indicator light pattern of the service port is determined to be a third value; wherein, the first port mode is used to indicate that the port channels in the corresponding service port are divided into a group.

[0024] When the second port state indicates that the port mode of the corresponding service port is the second port mode and the fourth port state indicates that the corresponding service port is not connected, the indicator light pattern of the service port is determined to be a first value; when the second port state indicates that the port mode of the corresponding service port is the first port mode, the fourth port state indicates that the corresponding service port is connected, and the third port state indicates that there is no port traffic on the corresponding service port, the indicator light pattern of the service port is determined to be a fourth value; when the second port state indicates that the port mode of the corresponding service port is the first port mode, the fourth port state indicates that the corresponding service port is connected, and the third port state indicates that there is port traffic on the corresponding service port, the indicator light pattern of the service port is determined to be a fifth value; wherein, the second port mode is used to indicate that the port channels in the corresponding service port are divided into multiple groups.

[0025] Optionally, the service lighting module is used to convert the received lighting code into a voltage signal with corresponding signal parameters and send the voltage signal to the corresponding signal light group after receiving the lighting code. The signal parameters are used to indicate the change mode of the voltage signal.

[0026] Optionally, each of the L signal light groups includes a first color light and a second color light, wherein the first color light and the second color light emit different colors, and each signal light group is used to control the emission mode of the first color light and the second color light according to the received voltage signal.

[0027] Optionally, each of the L signal light groups includes a first color light and a second color light, wherein the first color light and the second color light emit different colors. When the voltage signal is high, each signal light group controls the first color light to emit the first color light; when the voltage signal is low, it controls the second color light to emit the second color light; and when the voltage signal is in a high-impedance state, the first color light and the second color light are prohibited from emitting light.

[0028] In this embodiment, the device for lighting a device is characterized by comprising: a conversion board, N parsing boards, and L signal light groups, wherein the input terminal of the conversion board is connected to the target device, the input terminal of each of the N parsing boards is connected to the output terminal of the conversion board, and the L signal light groups are respectively connected to the output terminals of the N parsing boards, where N and L are positive integers greater than or equal to 1; the conversion board is used to identify the target device type of the currently connected target device, receive an initial port code stream from the target device according to the target code stream transmission protocol corresponding to the target device type, and convert the initial port code stream into a target port code stream that meets the target format, wherein the code stream transmission protocol is used to indicate the method of transmitting port code streams between the device of the corresponding device type and the conversion board, and the port code stream includes multiple serial status codes, which are used to indicate the current port status of the corresponding service port on the corresponding device; each of the N parsing boards is used to interface with... The received target port bitstream undergoes a parsing operation matching the target format to obtain the corresponding lighting code pattern. This lighting code pattern controls the corresponding signal light group to perform the corresponding lighting operation. Each of the L signal light groups performs a corresponding lighting operation to indicate the port status of the corresponding service port on the target device. That is, when connecting to different target devices, the lighting device can identify the target device type through a conversion board, receive the initial port bitstream from the target device according to the target bitstream transmission protocol corresponding to the target device type, convert the initial port bitstream into a target port bitstream that meets the target format, and then send the target port bitstream to N parsing boards for parsing to obtain the lighting code pattern. The lighting code pattern is then used to control the corresponding signal light group to perform the corresponding lighting operation. Therefore, the lighting device proposed in this application can be compatible with and adaptable to target devices of different device types to achieve device lighting. By adopting the above technical solution, the problem of poor device compatibility in related technologies is solved, achieving the technical effect of improving the device's compatibility with devices. Attached Figure Description

[0029] Figure 1 This is a schematic diagram of a lighting device according to an embodiment of this application;

[0030] Figure 2 This is a schematic diagram of the service port configuration of a target device according to an embodiment of this application;

[0031] Figure 3 This is a schematic diagram of the initial port bitstream of a 400G service port according to an embodiment of this application;

[0032] Figure 4 This is a schematic diagram of the target port bitstream of a 400G service port according to an embodiment of this application;

[0033] Figure 5 This is a schematic diagram illustrating the determination of a lamp-lighting code according to an embodiment of this application;

[0034] Figure 6 This is a schematic diagram of a traffic light assembly according to an embodiment of this application;

[0035] Figure 7 This is a schematic diagram showing the correspondence between voltage signals and lamp-lighting operations according to an embodiment of this application. Detailed Implementation

[0036] The embodiments of this application will be described in detail below with reference to the accompanying drawings and examples.

[0037] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0038] The terms used in the embodiments of this application are explained as follows:

[0039] Mac: Media Access Control, a sublayer protocol for media access control.

[0040] CPLD: CMOS Programmable Logic Device;

[0041] 400Gbps: Gigabits Per Second;

[0042] 200G: 200 Gigabits Per Second;

[0043] 100G: 100 Gigabits Per Second;

[0044] 25G: 25 Gigabits Per Second;

[0045] LED: Light Emitting Diode.

[0046] This embodiment provides a device for lighting up a device, comprising: a conversion board, N parsing boards, and L signal light groups. The input terminal of the conversion board is connected to a target device. The input terminal of each of the N parsing boards is connected to the output terminal of the conversion board. The L signal light groups are respectively connected to the output terminals of the N parsing boards. N and L are positive integers greater than or equal to 1. The conversion board is used to identify the target device type of the currently connected target device, receive an initial port stream from the target device according to the target stream transmission protocol corresponding to the target device type, and convert the initial port stream into a target port stream that meets the target format. The port code stream includes a code stream transmission protocol used to indicate the method of transmitting the port code stream between a device of a corresponding device type and the conversion board. The port code stream includes multiple serial status codes, which are used to indicate the current port status of the corresponding service port on the corresponding device. Each of the N parsing boards is used to perform a parsing operation matching the target format on the received target port code stream to obtain a corresponding lighting code pattern, wherein the lighting code pattern is used to control the corresponding signal light group to perform the corresponding lighting operation. Each of the L signal light groups is used to perform the corresponding lighting operation to indicate the port status of the corresponding service port on the target device.

[0047] Optionally, in this embodiment, the target device can be, but is not limited to, any device that requires lighting. Lighting requirements typically refer to the presence of multiple ports on the target device, requiring different indicator lights to represent the status of the corresponding ports. For example, the target device could be a server, a switch, or similar equipment. Taking a switch as an example, a switch has 128 service ports. To visually represent the current port status of each service port through lighting, the switch can transmit the port status information of all 128 service ports to the lighting device via its built-in switching chip and transmission interface. The lighting device then performs the corresponding lighting operation based on the received port status information.

[0048] Optionally, in this embodiment, the lighting device proposed in this application can achieve the technical effect of improving the compatibility of the lighting device with the device. Therefore, the model of the target device can be disregarded. The target device can be any one of the N device models in the first type of device, such as any one of the N device models (switch device model A, switch device model B, switch device model C) in the switch type of device. That is, the lighting device achieves compatibility with different device models in the same type of device. In addition, the target device can be any one of M different types of devices. For example, the target device can be any one of the switch type devices (switch device model A, switch device model B, switch device model C) and the server type devices (server device model A, server device model B, server device model C). That is, the lighting device achieves compatibility with different types of devices.

[0049] Optionally, in this embodiment, Figure 1 This is a schematic diagram of a lighting device according to an embodiment of this application, such as... Figure 1 As shown, the device for lighting the lamps includes: a conversion board ( Figure 1 (shown as CPLD1), N parsing boards ( Figure 1 The image shows three analytical boards, corresponding to CPLD2, CPLD3, and CPLD4 respectively, and L signal light groups. Figure 1 The image shows 128 traffic light groups; for example, the 44th traffic light group is... Figure 1 (shown as "LED44"), wherein the input terminal of the conversion board is connected to the target device (shown as a Switch (chip) in the figure), the input terminal of each of the N parsing boards is connected to the output terminal of the conversion board, and the L signal light groups are respectively connected to the output terminals of the N parsing boards.

[0050] As mentioned above, taking a switch as the target device as an example, the switch has 128 service ports. In order to intuitively display the current port status of each service port by lighting up lights, the switch can transmit the port status information of the 128 service ports on the switch to the lighting device through the built-in switching chip and the transmission interface. The lighting device then performs the corresponding lighting operation based on the received port status information. Figure 1 The switch shown in the document may be, but is not limited to, the aforementioned switching chip. This application considers the switching chip as part of the overall switch structure. Figure 1 The image does not show the connection between the switch and the light-emitting device, but only illustrates the connection method via the switch chip. Figure 1The switch shown connects to the lighting device via a serial lighting module. The serial lighting module uses six wire interfaces (led_clk, led_fram, led_dat0, led_dat1, led_dat2, and led_dat3). Figure 1 The Switch model shown transmits data (initial port stream) between lighting devices via a 6-wire interface. Other Switch models can also transmit data between lighting devices via 2-wire interfaces (led_clk and led_dat0). The target stream transmission protocol for the 6-wire interface is as follows: led_clk is the clock line, used to indicate the timing logic of data transmission; led_fram is the frame period signal line, used to indicate the start and duration of a transmission; led_dat0, led_dat1, led_dat2, and led_dat3 are data transmission lines used to transmit data. Clearly, the 6-wire interface can transmit 4 bits of data at a time via led_dat0, led_dat1, led_dat2, and led_dat3. For the 2-wire interface, 1 bit of data can be transmitted at a time via led_dat0. The above describes the transmission links for different wire interfaces. The following describes the form of the initial port stream sent by the target device:

[0051] I. Before introducing the format of the initial port bitstream, let's first explain the format of the service ports on the target device:

[0052] Using the switch as the target device, Figure 2 This is a schematic diagram of the service port configuration of a target device according to an embodiment of this application, such as... Figure 2 As shown, the switch includes 128 (for example only) 400G service ports (400G port 0 to 400G port 127), and further... Figure 3 This is a schematic diagram of the initial port bitstream of a 400G service port according to an embodiment of this application, as shown below. Figure 3As shown, the 400G service port supports port modes such as 1*800G, 1*400G, 2*200G, and 4*100G. The 400G service port consists of 4 lanes (port channels). Each lane consists of 5 bits: link, act, res, speed0, and speed1. speed0 and speed1 represent the port speed; for example, 00 (speed0 and speed1 are both 0) indicates Lane 100G, 01 indicates Lane 50G, 10 indicates Lane 25G, and 11 indicates Lane 10G. res indicates whether the lane port is split, act indicates whether there is traffic on the port, and link indicates whether the port is connected. It's important to note that res indicates whether the lane port is split, and whether the lane port is split is a representation of the service port's port mode. For example, a service port supports port modes such as 1*800G, 1*400G, 2*200G, and 4*100G. The 1*800G and 1*400G port modes do not split the lane port, while the 2*200G and 4*100G port modes do split the lane port.

[0053] II. Explanation of the format of the initial port bitstream:

[0054] like Figure 2 and Figure 3 As shown, the switch includes 128 service ports, each service port includes 4 lanes, and each lane includes 5 bits. The switch can send data frames to the lighting device in real time to transmit the current port status information of the 128 service ports on the switch. After receiving the data frames, the lighting device controls the 128 signal light groups to perform lighting operations according to the current port status information of the 128 service ports carried in the data frames, expressing the current port status of the 128 service ports (including: port speed, port mode, presence of port traffic, and whether the service port is connected). Figure 3As shown, each service port includes 4 lanes, and each lane corresponds to 5 bits. Therefore, expressing the port status of a service port requires 4*5 bits, while expressing the status of 128 service ports on the switch requires 128*4*5 bits, that is, the data frame is 128*4*5 bits. As mentioned above, the 6 sets of line interfaces of the switching chip can transmit 4 bits of data at a time through led_dat0, led_dat1, led_dat2, and led_dat3. For the two-line interface, one bit of data can be transmitted at a time through led_dat0. Therefore, for the same 128*4*5-bit data frame, the six-line interface needs to transmit 128*5 times, and the two-line interface needs to transmit 128*4*5 times. The transmission lines and transmission protocols are different in the two processes, but the initial port code stream transmitted to the conversion board is a complete 128*4*5-bit. Each bit is a status code, and 4*5 status codes represent the port status of a service port. The initial port code stream includes multiple serial status codes, which express the port status of 128 service ports in a certain order.

[0055] III. Description of the target port bitstream format:

[0056] The conversion board is used to convert the initial port bitstream into a target port bitstream that meets the target format. Figure 4 This is a schematic diagram of the target port bitstream of a 400G service port according to an embodiment of this application, as shown below. Figure 4 As shown, the same 400G service port supports port configurations such as 1*800G, 1*400G, 2*200G, and 4*100G. A 400G service port consists of 4 lanes. The difference is that each lane corresponds to 3 bits: link, act, and res. Link indicates whether the service port is connected, act indicates whether the service port has port traffic, and res is special, consisting of 4 bits: {res3, res2, res1, res0}. res0 indicates whether the port is split (corresponding to the port mode mentioned above, i.e., whether the lane port is split), res1 indicates whether the port is slowed down, and res2 and res3 are reserved to express more port statuses of the service port, such as port bandwidth, port data frame transmission stuttering rate, etc. Furthermore, in 1*800G and 1*400G port modes, port information is filled in Lane0; in 2*200G port modes, port information is filled in Lane0 and Lane1; and in 4*100G port modes, port information is filled in Lane0, Lane1, Lane2, and Lane3.

[0057] As an optional solution, the conversion board includes: a stream format conversion module, wherein the stream format conversion module is deployed on the conversion board, and the stream format conversion module stores corresponding device types and stream transmission protocols; the conversion board is used to identify the target device type of the currently connected target device; the stream format conversion module is used to obtain the target stream transmission protocol corresponding to the target device type from the corresponding device types and stream transmission protocols; receive an initial port stream from the target device according to the target stream transmission protocol, and convert the initial port stream into a target port stream that meets the target format.

[0058] Optionally, in this embodiment, such as Figure 1 As shown, the conversion board CPLD1 includes a stream format conversion module. This module stores corresponding device types and stream transmission protocols. The conversion board is used to identify the target device type of the currently connected target device; specifically, it's to determine whether the interface used for transmitting port status information between the target device and the lighting device is a 6-wire interface or a 2-wire interface. As mentioned above, the 6-wire and 2-wire interfaces are completely different in terms of transmission link and transmission protocol. The 6-wire interface of the switching chip can transmit 4 bits of data at a time through led_dat0, led_dat1, led_dat2, and led_dat3. For a two-line interface, one bit of data can be transmitted at a time via led_dat0. The lighting device in this application identifies the target device type of the currently connected target device and determines the timing logic of each status code in the initial port stream, thus correctly receiving the initial port stream. This is something that lighting devices in related technologies lack. Related lighting devices do not have a conversion board; their internal hardware can only match one type of interface, such as a two-line interface. When the switch has six-line interfaces, the lighting device cannot correctly identify it, let alone correctly obtain the initial port stream, making subsequent lighting control operations impossible. However, the lighting device in this application, when detecting a two-line interface connection, can use the transmission protocol corresponding to the two-line interface to receive the initial port stream. If it changes to a six-line interface, it can use the transmission protocol corresponding to the six-line interface to receive the initial port stream, thereby improving the lighting device's compatibility with different devices.

[0059] Optionally, in this embodiment, if it is necessary to be compatible with more interfaces, such as 8 sets of line interfaces, it is only necessary to update the corresponding device types and code stream transmission protocols stored on the code stream format conversion module, which can further improve the technical effect of the lighting device's compatibility with devices.

[0060] As an optional solution, the bitstream format conversion module is used to receive the initial port bitstream from the target device according to the target bitstream transmission protocol, sequentially perform an identification operation on each initial status code in the initial port bitstream to obtain the current port status of each of the M corresponding service ports on the target device; and simultaneously convert the identified port status into the corresponding target status code that meets the target format to obtain the target port bitstream, wherein the initial status code and the target status code with a corresponding relationship are used to represent the same port status of the same service port on the target device, and M is a positive integer greater than or equal to 1 and less than or equal to L.

[0061] Optionally, in this embodiment, the initial port code stream transmitted to the conversion board mentioned above is a complete 128*4*5 bit, with each bit representing a status code. 4*5 status codes represent the port status of one service port. The initial port code stream includes multiple serial status codes, which sequentially express the port status of 128 service ports in a certain order. An identification operation is performed on each initial status code in the initial port code stream to obtain the current port status (represented by 4*5 initial status codes) of each of the M (e.g., 128) service ports on the target device. The initial status codes are link, act, res, speed0, and speed1, and the target status codes are link, act, and res. The meanings of each initial and target status code have been described above and will not be repeated. There is some overlap in the port statuses expressed by the initial and target status codes. For example, both the initial status code "link" and the target status code "link" indicate whether the port is connected. Specifically, the range of port status types allowed by the target status code needs to cover the range of port status types allowed by the initial status code. The above-mentioned "perform recognition operations on each initial status code in the initial port code stream in sequence to obtain the current port status of each of the M service ports on the target device; and simultaneously convert the recognized port status into the corresponding target status code that meets the target format" can be understood as the process of recognizing the initial status code to obtain the port status, and then translating (converting) the port status into the corresponding target status code.

[0062] As an optional scheme, the target device includes M service ports, each service port including P port channels. The initial port code stream includes M serial initial status code sequences. Each of the M initial status code sequences includes P groups of initial status codes. The i-th initial status code sequence in the M initial status code sequences represents the port status of the i-th service port among the M service ports on the target device. Each of the P groups of initial status codes includes R initial status codes. The i-th initial status code sequence includes P*R initial status codes used to represent the first port status, second port status, third port status, and fourth port status of the i-th service port. The first port state is used to represent the port rate of the i-th service port, the second port state is used to represent the port mode of the i-th service port, the port mode of the i-th service port is used to indicate the division method of P port channels in the i-th service port, the third port state is used to represent whether there is port traffic in the i-th service port, and the fourth port state is used to represent whether the i-th service port is connected. The port states include the first port state, the second port state, the third port state, and the fourth port state. P is a positive integer greater than or equal to 2, R is a positive integer greater than or equal to 4, and i is a positive integer greater than or equal to 1 and less than or equal to M.

[0063] The target port code stream includes M serial target status code sequences. Each of the M target status code sequences includes P groups of target status codes. The j-th target status code sequence in the M target status code sequences is used to represent the port status of the j-th service port among the M service ports on the target device. Each of the P groups of target status codes includes T target status codes. The j-th target status code sequence includes P*T target status codes used to represent the first port status, the second port status, the third port status, and the fourth port status of the j-th service port. T is a positive integer greater than or equal to 4, and j is a positive integer greater than or equal to 1 and less than or equal to M.

[0064] Optionally, in this embodiment, with Figure 2 and Figure 3For example, the target device includes M (e.g., 128) service ports, and each service port includes P (e.g., 4) port channels. The initial port code stream includes M serial initial status code sequences. For example, the initial port code stream includes 128*4*5 initial status codes. These 128*4*5 initial status codes are divided into 128 sequences in order, resulting in 128 initial status code sequences. Each of the 128 initial status code sequences includes 4 groups of initial status codes. The i-th initial status code sequence in the 128 initial status code sequences (e.g., ...) is... The 44th initial status code sequence is used to represent the port status of the i-th service port (e.g., the 44th service port) among the M service ports on the target device. Each of the P initial status codes includes R (e.g., 5) initial status codes. The i-th initial status code sequence includes P*R initial status codes used to represent the first port status (indicating port rate), the second port status (indicating whether the lane port is split), the third port status (indicating whether the port has traffic), and the fourth port status (indicating whether the port is connected) of the i-th service port.

[0065] As an optional solution, when the target device includes M service ports, the k-th parsing board among the N parsing boards includes: a serial data parsing module, a U... k One port parsing module and one service indicator module, wherein each of the parsing boards contains a U k Each of the port parsing modules is connected in parallel between the serial data parsing module and the service lighting module. Each parsing board is connected to a portion of the L signal light groups through the service lighting module. k is a positive integer greater than or equal to 1 and less than or equal to N. The number of port parsing modules in the N parsing boards is greater than or equal to M, and M is a positive integer greater than or equal to 1 and less than or equal to L.

[0066] The serial data parsing module in the kth parsing board is used to perform a bitstream interception operation on the received target port bitstream to obtain the kth port bitstream segment to be parsed by the kth parsing board. The kth port bitstream segment represents U among the M service ports on the target device. k The port status of each of the aforementioned service ports;

[0067] The k-th parsing board in U k The port parsing module is used to perform a parsing operation on the k-th port bitstream segment to match the target format, and obtain U. k The parsed light-up code pattern for each of the aforementioned service ports is then sent to the service light-up module.

[0068] The service lighting module is used to control the corresponding signal light group to perform the corresponding lighting operation according to the received lighting code pattern.

[0069] Optionally, in this embodiment, Figure 1 The text illustrates the case where M is 128 and N is 3, meaning the target device has 128 service ports. The k-th parsing board among the three parsing boards includes: a serial data parsing module, a U... k Port resolution module ( Figure 1 (The example shown is a 400G port resolution module) and a service indicator module, where k takes values ​​of 1, 2, and 3. When k is 1, U... k When U takes the value 44 and k takes the value 2, k When U takes the value 44 and k takes the value 3, k Value 40, 3 U k The sum is 128, meaning that each of the 128 port parsing modules corresponds to parsing a target status code sequence for one of the 128 service ports. This demonstrates a one-to-one extreme case, where it is only necessary to ensure that the number of port parsing modules in the N parsing boards is greater than M. This ensures a certain degree of redundancy in the number of port parsing modules, allowing them to take over promptly when some fail.

[0070] Optionally, in this embodiment, the serial data parsing module in the kth parsing board is used to perform a bitstream interception operation on the received target port bitstream to obtain the kth port bitstream segment to be parsed by the kth parsing board. It can be seen that the serial data parsing module is equivalent to a task acquisition module, acquiring the port bitstream segment to be parsed by the corresponding parsing board. For example, as mentioned above, the initial port bitstream includes 128*4*5 initial status codes. These 128*4*5 initial status codes are divided into 128 sequences in order, and each initial status code in the 128 initial status code sequences is converted into a target status code, resulting in 128 target status code sequences. The first parsing board (CP) The serial data parsing module in the second parsing board (CPLD2) is used to acquire the port code stream segment to which CPLD2 will perform the parsing operation, which may include the 1st to 44th target status code sequences out of 128 target status code sequences. The serial data parsing module in the third parsing board (CPLD4) is used to acquire the port code stream segment to which CPLD3 will perform the parsing operation, which may include the 45th to 88th target status code sequences out of 128 target status code sequences.

[0071] As an optional solution, the U in the k-th parsing board k The port parsing module is configured to obtain the target status code sequence of the corresponding service port from the k-th port code stream segment; identify the port status of the corresponding service port according to the target status code sequence; and determine the indicator code pattern of each service port according to the port status of each service port. The target status code sequence includes multiple target status codes to represent the first port status, second port status, third port status, and fourth port status of the corresponding service port. The first port status represents the port rate of the corresponding service port, the second port status represents the port mode of the corresponding service port, the port mode indicates the division method of port channels in the corresponding service port, the third port status indicates whether there is port traffic in the corresponding service port, and the fourth port status indicates whether the corresponding service port is connected. The port status includes the first port status, the second port status, the third port status, and the fourth port status.

[0072] Optionally, in this embodiment, the initial port code stream mentioned above includes 128*4*5 initial status codes. The 128*4*5 initial status codes are divided into 128 sequences in order to obtain 128 initial status code sequences. Each initial status code in the 128 initial status code sequences is converted into a target status code to obtain 128 target status code sequences. The initial status code sequences and target status code sequences with corresponding relationships represent the port status of the same service port.

[0073] Optionally, in this embodiment, U in the kth parsing board k The port parsing module is used to obtain the target status code sequence of the corresponding service port from the k-th port bitstream segment; for example... Figure 1 The first parsing board contains 44 port parsing modules, which are used to obtain the 44 target status code sequences (the first to the 44th target status code sequences) of the corresponding 44 service ports from the first port code stream segment.

[0074] As an optional solution, the U in the k-th parsing board k The port resolution module is used for:

[0075] When the second port state indicates that the corresponding service port is in the first port mode and the fourth port state indicates that the corresponding service port is not connected, the indicator light pattern of the service port is determined to be a first value; when the second port state indicates that the corresponding service port is in the first port mode, the fourth port state indicates that the corresponding service port is connected, and the third port state indicates that the corresponding service port has no port traffic, the indicator light pattern of the service port is determined to be a second value; when the second port state indicates that the corresponding service port is in the first port mode, the fourth port state indicates that the corresponding service port is connected, and the third port state indicates that the corresponding service port has port traffic, the indicator light pattern of the service port is determined to be a third value; wherein, the first port mode is used to indicate that the port channels in the corresponding service port are divided into a group.

[0076] When the second port state indicates that the port mode of the corresponding service port is the second port mode and the fourth port state indicates that the corresponding service port is not connected, the indicator light pattern of the service port is determined to be a first value; when the second port state indicates that the port mode of the corresponding service port is the first port mode, the fourth port state indicates that the corresponding service port is connected, and the third port state indicates that there is no port traffic on the corresponding service port, the indicator light pattern of the service port is determined to be a fourth value; when the second port state indicates that the port mode of the corresponding service port is the first port mode, the fourth port state indicates that the corresponding service port is connected, and the third port state indicates that there is port traffic on the corresponding service port, the indicator light pattern of the service port is determined to be a fifth value; wherein, the second port mode is used to indicate that the port channels in the corresponding service port are divided into multiple groups.

[0077] Optionally, in this embodiment, Figure 5 This is a schematic diagram illustrating the determination of a lighting code according to an embodiment of this application, such as... Figure 5 As shown, the port resolution module is used to determine the LED code pattern of each service port based on the port status corresponding to each service port. Specific methods may include, but are not limited to, the following:

[0078] 1. When the port parsing module is idle, it outputs the LED light code 0 by default;

[0079] 2. When the second port state indicates that the port mode of the corresponding service port is the first port mode (the first port mode is used to indicate that the port channels in the corresponding service port are divided into a group, i.e., 1*400G (or 1*800G) port mode) and the fourth port state indicates that the corresponding service port is not connected (i.e., all channels are not linked), the indicator light pattern of the service port is determined to be the first value (i.e., 0).

[0080] 3. When the second port state indicates that the port mode of the corresponding service port is the first port mode, the fourth port state indicates that the corresponding service port is connected (i.e., the channel is partially or completely linked), and the third port state indicates that the corresponding service port has no port traffic (i.e., the channel act is 0), the LED code of the service port is determined to be the second value (i.e., 1).

[0081] 4. When the second port state indicates that the port mode of the corresponding service port is the first port mode, the fourth port state indicates that the corresponding service port is connected, and the third port state indicates that the corresponding service port has port traffic (i.e., the channel act is not 0), the LED code of the service port is determined to be the third value (i.e., 2).

[0082] 5. When the second port state indicates that the port mode of the corresponding service port is the second port mode (the first port mode is used to indicate that the port channel in the corresponding service port is divided into multiple groups, i.e., 2*200G (or 4*100G) port mode) and the fourth port state indicates that the corresponding service port is not connected (i.e., all channels are not linked), the indicator light pattern of the service port is determined to be the first value (i.e., 0).

[0083] 6. When the second port state indicates that the port mode of the corresponding service port is the second port mode, the fourth port state indicates that the corresponding service port is connected (i.e., the channel is partially or completely linked), and the third port state indicates that the corresponding service port has no port traffic (i.e., the channel act is 0), the light code of the service port is determined to be the second value (i.e., 3).

[0084] 7. When the second port state indicates that the port mode of the corresponding service port is the second port mode, the fourth port state indicates that the corresponding service port is connected, and the third port state indicates that the corresponding service port has port traffic (i.e., the channel act is not 0), the LED code of the service port is determined to be the third value (i.e., 4).

[0085] As an optional solution, the service lighting module is used to convert the received lighting code into a voltage signal with corresponding signal parameters and send the voltage signal to the corresponding signal light group, wherein the signal parameters are used to indicate the change mode of the voltage signal.

[0086] As an optional solution, each of the L signal light groups includes a first color light and a second color light, wherein the first color light and the second color light emit different colors, and each signal light group is used to control the emission mode of the first color light and the second color light according to the received voltage signal.

[0087] As an optional solution, each of the L signal light groups includes a first color light and a second color light, wherein the first color light and the second color light emit different colors. When the voltage signal is high, each signal light group controls the first color light to emit the first color light; when the voltage signal is low, it controls the second color light to emit the second color light; and when the voltage signal is in a high-impedance state, the first color light and the second color light are prohibited from emitting light.

[0088] Optionally, in this embodiment, traditional dual-color LED lighting occupies two pins. To enable lighting on more ports, more I / O logic devices are needed. This application proposes a single-pin (pixel) controlled red-green dual-color LED lighting method. Figure 6 This is a schematic diagram of a traffic light assembly according to an embodiment of this application, such as... Figure 6 As shown, the signal light group can achieve red and green dual-color lighting controlled by a single pin. The signal light group includes a first color light ( Figure 6 (shown as G in the middle) and second color light ( Figure 6 (shown as R in the diagram), where the first color lamp emits green light and the second color lamp emits red light. The lamps are activated by a single pin cpld_ctrl at position 4. The green lamp is lit when cpld_ctrl outputs a low level; the red lamp is lit when cpld_ctrl outputs a high level; and the red and green lamps are off when cpld_ctrl outputs a high impedance state.

[0089] Based on the above principle, the service lighting module can send voltage signals corresponding to the signal light group's signal parameters according to the corresponding lighting code and lighting operation to control the corresponding signal light group to perform the corresponding lighting operation, including: green light flashing at 4Hz, green light, red light flashing at 4Hz, red light, yellow light flashing at 4Hz, and yellow light. Figure 7 This is a schematic diagram illustrating the correspondence between voltage signals and lamp-lighting operations according to embodiments of this application, as shown below. Figure 7As shown, when the green light is on, the CPLD only needs to control cpld_ctrl to output a low level; when the green light is flashing, the CPLD needs to control cpld_ctrl to output a 10Hz signal (high impedance during high level, 0 during low level); when the red light is on, the CPLD only needs to control cpld_ctrl to output a high level; when the red light is flashing, the CPLD needs to control cpld_ctrl to output a 10Hz signal (1 during high level, high impedance during low level); when the yellow light is on, the CPLD needs to control cpld_ctrl to output a 50Hz signal (high level during high level, low level during low level); when the yellow light is flashing, the CPLD needs to control cpld_ctrl to output a 10Hz signal (50Hz square wave during high level, high impedance during low level). The business lighting module encodes and controls the above 6 colors to output different lighting signals via cpld_ctrl. Here, 0 represents off; 1 represents green; 2 represents green light flashing at 4Hz; 3 represents yellow; and 4 represents yellow light flashing at 4Hz.

[0090] The device for lighting up equipment proposed in this application supports port lighting functionality when service ports are split and configured for reduced speed. It enhances support for lighting up service ports across various service port configurations and topologies. For different manufacturers' switching chips, only the bitstream format conversion module needs adjustment to adapt to their lighting requirements. Subsequent modules only need to be tailored to the required number of control ports, eliminating the need for redesign. The upper-layer driver requires only minor adjustments, reducing development complexity and design difficulty, lowering development risks, and improving reliability, thus saving costs. Besides its application in the switching field, it also has reference value for other usage environments, such as service port lighting in the communications field.

[0091] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.

[0092] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.

Claims

1. A device for lighting a device, characterized in that, include: The system comprises a conversion board, N parsing boards, and L signal light groups. The input terminal of the conversion board is connected to the target device, the input terminal of each of the N parsing boards is connected to the output terminal of the conversion board, and the L signal light groups are respectively connected to the output terminals of the N parsing boards. N and L are positive integers greater than or equal to 1. The conversion board is used to identify the target device type of the currently connected target device, receive an initial port stream from the target device according to the target stream transmission protocol corresponding to the target device type, and convert the initial port stream into a target port stream that meets the target format. The stream transmission protocol is used to indicate the method of transmitting port streams between the device of the corresponding device type and the conversion board. The port stream includes multiple serial status codes, which are used to indicate the current port status of the corresponding service port on the corresponding device. Each of the N parsing boards is used to perform a parsing operation matching the target format on the received target port code stream to obtain the corresponding light-up code pattern, wherein the light-up code pattern is used to control the corresponding signal light group to perform the corresponding light-up operation; Each of the L signal light groups is used to perform a corresponding lighting operation to indicate the port status of the corresponding service port on the target device.

2. The apparatus according to claim 1, characterized in that, The conversion board includes: a stream format conversion module, wherein the stream format conversion module is deployed on the conversion board, and the stream format conversion module stores corresponding device types and stream transmission protocols; The conversion board is used to identify the target device type of the currently connected target device; The bitstream format conversion module is used to obtain the target bitstream transmission protocol corresponding to the target device type from the corresponding device types and bitstream transmission protocols; receive the initial port bitstream from the target device according to the target bitstream transmission protocol, and convert the initial port bitstream into a target port bitstream that meets the target format.

3. The apparatus according to claim 2, characterized in that, The stream format conversion module is used to receive the initial port stream from the target device according to the target stream transmission protocol, and sequentially perform an identification operation on each initial status code in the initial port stream to obtain the current port status of each of the M service ports on the target device. Simultaneously, the identified port status is sequentially converted into the corresponding target status code that meets the target format to obtain the target port code stream. The initial status code and the target status code, which have a corresponding relationship, are used to represent the same port status of the same service port on the target device, and M is a positive integer greater than or equal to 1 and less than or equal to L.

4. The apparatus according to claim 3, characterized in that, The target device includes M service ports, and each service port includes P port channels, wherein, The initial port code stream includes M serial initial status code sequences. Each of the M initial status code sequences includes P groups of initial status codes. The i-th initial status code sequence in the M initial status code sequences represents the port status of the i-th service port among the M service ports on the target device. Each of the P groups of initial status codes includes R initial status codes. The i-th initial status code sequence includes P*R initial status codes to represent the first port status, second port status, third port status, and fourth port status of the i-th service port. The first port status is used to represent the first port status of the i-th service port. The port rate, the second port state is used to indicate the port mode of the i-th service port, the port mode of the i-th service port is used to indicate the division method of P port channels in the i-th service port, the third port state is used to indicate whether there is port traffic in the i-th service port, and the fourth port state is used to indicate whether the i-th service port is connected, wherein the port state includes the first port state, the second port state, the third port state and the fourth port state, P is a positive integer greater than or equal to 2, R is a positive integer greater than or equal to 4, and i is a positive integer greater than or equal to 1 and less than or equal to M; The target port code stream includes M serial target status code sequences. Each of the M target status code sequences includes P groups of target status codes. The j-th target status code sequence in the M target status code sequences is used to represent the port status of the j-th service port among the M service ports on the target device. Each of the P groups of target status codes includes T target status codes. The j-th target status code sequence includes P*T target status codes used to represent the first port status, the second port status, the third port status, and the fourth port status of the j-th service port. T is a positive integer greater than or equal to 4, and j is a positive integer greater than or equal to 1 and less than or equal to M.

5. The apparatus according to claim 1, characterized in that, In the case that the target device includes M service ports, the k-th parsing board among the N parsing boards includes: a serial data parsing module, U... k One port parsing module and one service indicator module, wherein each of the parsing boards contains a U k Each of the port parsing modules is connected in parallel between the serial data parsing module and the service lighting module. Each parsing board is connected to a portion of the L signal light groups through the service lighting module. k is a positive integer greater than or equal to 1 and less than or equal to N. The number of port parsing modules in the N parsing boards is greater than or equal to M, and M is a positive integer greater than or equal to 1 and less than or equal to L. The serial data parsing module in the kth parsing board is used to perform a bitstream interception operation on the received target port bitstream to obtain the kth port bitstream segment to be parsed by the kth parsing board. The kth port bitstream segment represents U among the M service ports on the target device. k The port status of each of the aforementioned service ports; The k-th parsing board in U k The port parsing module is used to perform a parsing operation on the k-th port bitstream segment to match the target format, and obtain U. k The parsed light-up code pattern for each of the aforementioned service ports is then sent to the service light-up module. The service lighting module is used to control the corresponding signal light group to perform the corresponding lighting operation according to the received lighting code pattern.

6. The apparatus according to claim 5, characterized in that, The k-th parsing board in U k The port parsing module is used to obtain the target status code sequence of the corresponding service port from the k-th port code stream segment; The port status of the corresponding service port is identified according to the target status code sequence, and the indicator light pattern of each service port is determined according to the port status of each service port. The target status code sequence includes multiple target status codes to represent the first port status, second port status, third port status, and fourth port status of the corresponding service port. The first port status is used to represent the port rate of the corresponding service port, the second port status is used to represent the port mode of the corresponding service port, the port mode is used to indicate the division method of port channels in the corresponding service port, the third port status is used to indicate whether there is port traffic in the corresponding service port, and the fourth port status is used to indicate whether the corresponding service port is connected. The port status includes the first port status, the second port status, the third port status, and the fourth port status.

7. The apparatus according to claim 6, characterized in that, The k-th parsing board in U k The port resolution module is used for: When the second port state indicates that the port mode of the corresponding service port is the first port mode and the fourth port state indicates that the corresponding service port is not connected, the light-up code of the service port is determined to be the first value. When the second port state indicates that the port mode of the corresponding service port is the first port mode, the fourth port state indicates that the corresponding service port is connected, and the third port state indicates that the corresponding service port has no port traffic, the indicator light pattern of the service port is determined to be a second value; when the second port state indicates that the port mode of the corresponding service port is the first port mode, the fourth port state indicates that the corresponding service port is connected, and the third port state indicates that the corresponding service port has port traffic, the indicator light pattern of the service port is determined to be a third value; wherein, the first port mode is used to indicate that the port channels in the corresponding service port are divided into a group. When the second port state indicates that the port mode of the corresponding service port is the second port mode and the fourth port state indicates that the corresponding service port is not connected, the indicator light pattern of the service port is determined to be a first value; when the second port state indicates that the port mode of the corresponding service port is the first port mode, the fourth port state indicates that the corresponding service port is connected, and the third port state indicates that there is no port traffic on the corresponding service port, the indicator light pattern of the service port is determined to be a fourth value; when the second port state indicates that the port mode of the corresponding service port is the first port mode, the fourth port state indicates that the corresponding service port is connected, and the third port state indicates that there is port traffic on the corresponding service port, the indicator light pattern of the service port is determined to be a fifth value; wherein, the second port mode is used to indicate that the port channels in the corresponding service port are divided into multiple groups.

8. The apparatus according to claim 7, characterized in that, The service lighting module is used to convert the received lighting code into a voltage signal with corresponding signal parameters and send the voltage signal to the corresponding signal light group. The signal parameters are used to indicate the change mode of the voltage signal.

9. The apparatus according to claim 8, characterized in that, Each of the L signal light groups includes a first color light and a second color light, wherein the first color light and the second color light emit different colors, and each signal light group is used to control the emission mode of the first color light and the second color light according to the received voltage signal.

10. The apparatus according to claim 9, characterized in that, Each of the L signal light groups includes a first color light and a second color light, wherein the first color light and the second color light emit different colors. When the voltage signal is high, each signal light group controls the first color light to emit the first color light; when the voltage signal is low, it controls the second color light to emit the second color light; and when the voltage signal is in a high-impedance state, the first color light and the second color light are prohibited from emitting light.

Citation Information

Patent Citations

  • NVME hard disk management system and method based on unloading card

    CN111198831A

  • Control system lights a lamp

    CN207118040U