Internet access LED serial transmission display method based on CPLD and FPGA

Through the CPLD and FPGA chips, the serial transmission and display of the network port LED status is realized, which solves the problems of complex wiring and poor reliability in the traditional network port LED indication method, and improves the simplicity and reliability of the system.

CN119071175APending Publication Date: 2024-12-03NEXCOM CHINA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411101835.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The traditional network port LED status indication method requires a large number of interconnected cables and connectors, resulting in complex wiring and large PCB space, affecting system reliability and maintenance difficulty.

Method used

Using the network port LED serial transmission and display method based on CPLD and FPGA, digital filtering and encoding processing are performed by collecting network port PHY or NIC output signals, and data is transmitted using the I2C interface, simplifying wiring and driving LED display, reducing the number of connectors and Signal contacts.

Benefits of technology

It reduces wiring complexity, improves system reliability and flexibility, simplifies LED status indication, strong adaptability, and avoids the messy and reliability problems of traditional parallel solutions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071175A_ABST
    Figure CN119071175A_ABST
Patent Text Reader

Abstract

The invention discloses a CPLD (Complex Programmable Logic Device) and FPGA (Field Programmable Gate Array)-based network port LED (Light Emitting Diode) serial transmission display method, which comprises the following steps of: collecting PHY (Physical Layer) or NIC (Network Interface Controller) LED or Swich output signals of a mainboard network port, filtering out high-frequency interference through a digital filtering algorithm, then carrying out internal coding processing to increase frame synchronization signals, check codes and control characters so as to ensure the reliability and robustness of channel transmission, and finally, carrying out internal coding processing on the frame synchronization signals, the check codes and the control characters; the method comprises the following steps: receiving I2C data, sending the I2C data to a lower computer through an I2C interface, decoding a corresponding load and calculating a CRC check code of the load by the lower computer through the received I2C data according to defined synchronous header information, judging a transmission state, decoding a corresponding network port state, and driving a corresponding LED (Light Emitting Diode) to complete the indication requirement of the network port state. The defects in the prior art can be overcome, the requirement for the number of board end connector pins can be reduced, the PCB layout wiring space of the connector and signals is effectively reduced, and the reliability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a multi-network port pull-out display method for a mainboard system, in particular to a network port LED serial transmission display method based on CPLD and FPGA. Background Art

[0002] In network devices such as switching or network security, it is necessary to indicate the LED status of the network port, such as the connection rate of 10Gbps, 1Gbps, 100Mbps and 10Mbps, as well as the link and active status of the network port. The traditional way is to integrate it into the RJ45 connector, but since most RJ45 connectors are on the back of the chassis, it is not convenient for operation and maintenance and observation. The usual practice is to pull the cable to the front of the chassis. Since a network port rate display requires 3 LED control signals, the number of interconnected cables for LED display in the chassis is huge for multi-port devices. For example, a 24-port network port indication requires at least 74 interconnected cables. In addition, connectors need to be reserved on the motherboard and LED display board for connection. The pin spacing of commonly used connectors is usually 2.0mm. The required connectors are large in size and number, and a large amount of PCB area is occupied, which brings great challenges to the layout and wiring of the motherboard. Due to the complexity of the interconnection signals and the large number of cable contacts, it also brings challenges to system reliability and maintenance. A method and technology that can reduce the complexity of interconnection cables, facilitate layout and wiring, and effectively increase system reliability is needed. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide a network port LED serial transmission display method based on CPLD and FPGA, which can solve the shortcomings of the prior art, reduce the demand for the number of board-side connector pins, effectively reduce the PCB layout and wiring space of the connector and signal, and improve reliability.

[0004] In order to solve the above technical problems, the technical solutions adopted by the present invention are as follows.

[0005] A network port LED serial transmission display method based on CPLD and FPGA includes the following steps:

[0006] The output signal of the mainboard network port PHY or NIC LED or Switch is collected, and the high-frequency interference is filtered out by the digital filtering algorithm. Then, the internal encoding processing is performed to add the frame synchronization signal and the check code and the control character to ensure the reliability and robustness of the channel transmission. Then, it is sent to the lower computer through the I2C interface. The lower computer then decodes the corresponding payload and calculates the CRC check code of the payload based on the defined synchronization header information through the received I2C data, determines the transmission status, decodes the corresponding network port status, and drives the corresponding LED to complete the indication requirements of the network port status.

[0007] Preferably, a CPLD or FPGA chip is used to collect the output signal of the mainboard network port PHY or NIC LED or Switch, and high-frequency interference is filtered out through a digital filtering algorithm, and then internal encoding processing is performed to increase the frame synchronization signal and check code.

[0008] Preferably, the digital filtering algorithm for filtering out high-frequency interference includes the following steps:

[0009] A low-pass filter is selected, and a cutoff frequency and an attenuation rate are preset for the low-pass filter; a signal fluctuation characteristic analyzer is respectively set at the input and output ends of the low-pass filter, and different fluctuation characteristics of the signal before and after the low-pass filter are analyzed according to the two signal fluctuation characteristic analyzers, so as to adjust the cutoff frequency and the attenuation rate of the low-pass filter in real time.

[0010] Preferably, the signal fluctuation characteristic analyzer calculates the frequency distribution probability of the high-frequency interference signal contained in the signal and the signal strength of different frequencies to obtain the frequency distribution probability change function and the signal strength change function; takes the inflection point of the frequency distribution probability change function as the reference point, adjusts the cutoff frequency of the low-pass filter to minimize the frequency deviation of the reference point, and then adjusts the attenuation rate of the low-pass filter so that the average value of the signal strength change is negatively correlated with the integral of the frequency distribution probability change function.

[0011] Preferably, the cutoff frequency and attenuation rate of the low-pass filter are adjusted by a multi-round adjustment method.

[0012] The beneficial effects brought about by adopting the above technical scheme are: compared with the traditional network port LED directly driven by PHY and NIC, the present invention adopts an out-of-band coding transmission method, transparent transmission, no need to change the network card driver, convenient porting to different platforms, flexible adaptation, easy porting and promotion. The present invention avoids the conventional parallel scheme using large-pin connectors to cause messy chassis interconnection wiring and poor reliability. Due to the simplified wiring, the wiring inside the chassis is simple, and the tolerance to ESD and EMS is improved. Due to the reduction of signal contacts, the system reliability is improved. By simplifying the interconnection scheme, the number of board-end connectors is avoided, and the end-to-end interconnection cost has certain advantages. In order to ensure the accuracy of LED display information, the present invention specifically provides a digital filtering algorithm to filter out high-frequency interference. By setting a signal fluctuation feature analyzer to analyze the signal volatility, the real-time adjustment of the low-pass filter parameters is achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 It is a system logic diagram of the present invention.

[0014] Figure 2 It is the internal logic diagram of the CPLD or FPGA chip used in the present invention. DETAILED DESCRIPTION

[0015] Reference Figure 1-2 The present invention connects the network port status LED signal of PHY or NIC or Switch or the serial LED output of PHY chip / switch chip to CPLD chip at the hardware level, and then CPLD encodes the parallel input LED signal from PHY or switch through network port LED input circuit or switch serial LED input circuit and CPLD / FPGA I2C master circuit, or receives PHY or Switch serial LED input data and sends it to slave I2C interface circuit of lower-level light board. Control information from CPU management circuit to CPLD / FPGA chip is transmitted through I2C slave circuit, and network port status is obtained in out-of-band manner or LED test command is issued during production test. Slave MCU or CPLD chip receives I2C data sent by upper-level computer, parses corresponding network port LED status through custom protocol, and drives corresponding LED display.

[0016] After the host system is powered on, the PHY, switch or NIC chip, and CPLD / FPGA chip start working. If the network port PHY, NIC or switch of the host system is a parallel LED output, the CPLD / FPGA chip samples the LED of the network port through the sampling module. The sampled data is filtered through the digital filtering algorithm to filter out high-frequency interference and output to the internal FIFO circuit for rate matching and status indication. Then the data is encoded through the encoding module and finally output to the data / status register module for storage for use and query by the sending module. If the network port PHY or switch chip is output through serialLED, the CPLD / FPGA receives the corresponding LED data frame through the LED serial interface logic, decodes it through the serial LED decoding module, and the decoded data is processed and output to the data / status register for storage for use and query by the downstream sending module. The output control module calculates the CRC value of the transmitted data according to the state of the data status register, adds the frame synchronization header, CRC value and control characters, and outputs the framed data to the output I2C interface circuit module. The slave I2C interface circuit receives data from the host computer, decodes the useful data field and CRC value through synchronization information, and compares it with the locally calculated CRC value to determine whether the received data is correct. The slave decodes the data and drives the corresponding LED to display the corresponding port status.

[0017] The digital filtering algorithm to filter out high frequency interference includes the following steps:

[0018] A low-pass filter is selected, and a cutoff frequency and attenuation rate are preset for the low-pass filter; a signal fluctuation characteristic analyzer is set at the input and output ends of the low-pass filter respectively, and the different fluctuation characteristics of the signal before and after the low-pass filter are analyzed according to the two signal fluctuation characteristic analyzers. The signal fluctuation characteristic analyzer calculates the frequency distribution probability of the high-frequency interference signal contained in the signal and the signal strength of different frequencies to obtain the frequency distribution probability change function and the signal strength change function; the inflection point of the frequency distribution probability change function is taken as the reference point, and the cutoff frequency of the low-pass filter is adjusted to minimize the frequency deviation of the reference point, and then the attenuation rate of the low-pass filter is adjusted so that the average value of the signal strength change is negatively correlated with the integral of the frequency distribution probability change function. The cutoff frequency and attenuation rate of the low-pass filter are adjusted in real time according to the analysis results. The frequency deviation of the inflection point of the frequency distribution probability change function characterizes the change amplitude of the signals in different frequency bands in the signal, so that the frequency deviation of the inflection point of the frequency distribution probability change function is used as the adjustment reference, and the cutoff frequency can be accurately adjusted. By maintaining a negative correlation between the average value of the signal strength change and the integral of the frequency distribution probability change function, the signal strength can be unaffected by the change of the signal frequency, thereby ensuring stable signal output.

[0019] The cutoff frequency and attenuation rate of the low-pass filter are adjusted in multiple rounds. First, the cutoff frequency is adjusted once according to the frequency deviation of the reference point, and then the attenuation rate is adjusted according to the adjusted result and the average value of the signal strength change. Then the above process is repeated to gradually approach the optimal result. By gradually approaching the optimal solution through multiple rounds of adjustments, the mutual interference between the changes in the cutoff frequency and the attenuation rate can be reduced, thereby improving the filtering accuracy.

[0020] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments. The above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.

Claims

1. A network port LED serial transmission display method based on CPLD and FPGA, characterized in that The following steps are involved: The output signal of the mainboard network port PHY or NIC LED or Switch is collected, and the high-frequency interference is filtered out by the digital filtering algorithm. Then, the internal encoding processing is performed to add the frame synchronization signal and the check code and the control character to ensure the reliability and robustness of the channel transmission. Then, it is sent to the lower computer through the I2C interface. The lower computer then decodes the corresponding payload and calculates the CRC check code of the payload based on the defined synchronization header information through the received I2C data, determines the transmission status, decodes the corresponding network port status, and drives the corresponding LED to complete the indication requirements of the network port status.

2. The network port LED serial transmission display method based on CPLD and FPGA according to claim 1 is characterized in that: Use CPLD or FPGA chip to collect the output signal of the mainboard network port PHY or NIC LED or Switch, and filter out high-frequency interference through digital filtering algorithm, and then perform internal encoding processing to add frame synchronization signal and check code.

3. The network port LED serial transmission display method based on CPLD and FPGA according to claim 2 is characterized in that: The digital filtering algorithm to filter out high frequency interference includes the following steps: A low-pass filter is selected, and a cutoff frequency and an attenuation rate are preset for the low-pass filter; a signal fluctuation characteristic analyzer is respectively set at the input and output ends of the low-pass filter, and different fluctuation characteristics of the signal before and after the low-pass filter are analyzed according to the two signal fluctuation characteristic analyzers, so as to adjust the cutoff frequency and the attenuation rate of the low-pass filter in real time.

4. The network port LED serial transmission display method based on CPLD and FPGA according to claim 3 is characterized in that: The signal fluctuation characteristic analyzer calculates the frequency distribution probability of the high-frequency interference signal contained in the signal and the signal strength of different frequencies to obtain the frequency distribution probability change function and the signal strength change function; takes the inflection point of the frequency distribution probability change function as the reference point, adjusts the cutoff frequency of the low-pass filter to minimize the frequency deviation of the reference point, and then adjusts the attenuation rate of the low-pass filter to make the average value of the signal strength change and the integral of the frequency distribution probability change function have a linear negative correlation.

5. The network port LED serial transmission display method based on CPLD and FPGA according to claim 4 is characterized in that: The cutoff frequency and attenuation rate of the low-pass filter are adjusted by a multi-round adjustment method.