Multi-interface optical fiber relay equipment and data stream fusion method thereof
By designing a multi-interface fiber relay device and its data flow fusion method, the shortcomings of the existing technology in multi-bus compatibility, signal transmission delay and transmission signal continuity are solved, and data transmission effect that is flexible to adapt to the low-latency and high bandwidth utilization of multi-bus is achieved.
Patent Information
- Application Number
- CN202510209906.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-25
- Publication Date
- 2025-06-03
AI Technical Summary
The prior art has shortcomings in multibus compatibility, signal transmission delay and transmission signal continuity, and it is difficult to meet the high requirements of complex simulation and testing systems for data transmission.
A multi-interface fiber relay device and its data flow fusion method are designed. By dividing bus data into low-speed signals and high-speed signals, processing and fusing them separately, transmitting them through optical fibers, virtual channel allocation and first-come and first-come arbitration methods are used to realize real-time and continuous signal transmission.
It realizes the characteristics of flexible adaptation to multiple buses, has the characteristics of low latency and high bandwidth utilization, and can have better performance in bus signal burst transmission. The system processing delay is less than 5μs and the bandwidth utilization is 78.3%.
Smart Images

Figure CN120090708A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer data processing, and particularly relates to a multi-interface optical fiber relay device and a data stream fusion method thereof. Background Art
[0002] In the research and development of modern industrial products and subsequent use and maintenance processes, the support of semi-physical simulation systems and corresponding test systems is indispensable. Semi-physical simulation systems and test systems often have multiple bus interfaces, and each module in the system uses different bus interfaces according to its implemented functions. With the continuous progress of technology, the complexity and functional integration of simulation and test objects have been significantly improved. To meet their design and test requirements, multiple simulation computers and test devices often need to work together. This poses relatively high requirements for the remote transmission of various bus signals. If direct data communication is carried out using buses such as serial ports and LVDS, it is difficult to meet the required transmission distance, transmission rate, and bit error rate requirements.
[0003] As an information transmission medium, optical fiber has the advantages of high speed, large capacity, low transmission loss, and being unaffected by electromagnetic interference. Therefore, the prior art uses optical fiber as the transmission medium to convert various bus signals into optical fiber signals for long-distance transmission. However, the prior art either cannot achieve unified transmission of multiple buses, wasting optical fiber bandwidth; or there are problems such as large signal delay and discontinuous signals during transmission. Summary of the Invention
[0004] The present invention aims to solve the deficiencies in the multi-bus compatibility ability, signal transmission delay, and continuous transmission of signals in the prior art, and further proposes a multi-interface optical fiber relay device and a data stream fusion method thereof.
[0005] The technical solution adopted by the present invention to solve the above problems is as follows:
[0006] A data stream fusion method for a multi-interface optical fiber relay device includes a transmitting part and a receiving part of the optical fiber relay device. The processing steps of the transmitting part of the optical fiber relay device are as follows:
[0007] Divide the bus data into low-speed signals and high-speed signals according to the rate, corresponding to stream data and frame data respectively;
[0008] Allocate each stream data to the corresponding virtual channel for caching, group the frame data, and perform arbitration and caching according to the first-come-first-served principle;
[0009] Perform data fusion and recombination on the stream data and frame data to obtain a fused data stream;
[0010] Then transmit the fused data stream to the optical fiber transceiver module;
[0011] The processing steps of the receiving part of the optical fiber relay device are as follows:
[0012] Obtain the received fusion data stream from the optical fiber transceiver module;
[0013] Perform data distribution processing on the fusion data stream, disassemble to obtain stream data and frame data;
[0014] Perform channel allocation on the stream data to restore low-speed signal data, and perform deframing processing on the frame data to restore high-speed signal data;
[0015] Transmit the restored signal to each bus sending module.
[0016] Furthermore, the low-speed signal stream data is realized through virtual channel allocation, and at most 16 different stream data can be supported for simultaneous transmission.
[0017] Furthermore, the frame structure of the frame data transmission includes 1-byte frame header, 1-byte ID number, and 10-byte data segment.
[0018] Furthermore, the frame structure of the fusion data stream transmission includes 6-byte frame data transmission part and 2-byte stream data transmission part. The frame data transmission part is responsible for transmitting the framed frame data; the stream data transmission part is divided into 16 virtual channels, and at most 16 different stream data can be supported for simultaneous transmission.
[0019] A multi-interface optical fiber relay device includes:
[0020] An optical module, which is used to realize the conversion between optical and electrical signals and transmit data through a single-mode optical fiber;
[0021] An FPGA minimum system, including an FPGA chip and the peripheral circuits required for the normal operation of the FPGA chip; it is used to realize all the logical functions required by the multi-interface optical fiber relay device;
[0022] A bus transceiver hardware circuit module, including the transceiver circuits of various external buses, such as RS422, RS485, general I / O, LVDS, CameraLink, etc., which is used to realize the receiving and sending functions of the external bus interface.
[0023] Furthermore, the logical program running in the FPGA minimum system includes:
[0024] A low-speed signal low-latency processing module, including a sampling / reconstruction module and a FIFO. The sampling / reconstruction module realizes the digital sampling and reconstruction of the low-speed signal; the FIFO realizes the caching of data;
[0025] A high-speed signal low-latency processing module for protocol control and caching of high-speed signals; it includes a SelectIO protocol control module, an LVDS protocol transceiver control module, and a FIFO. The SelectIO protocol control module is responsible for implementing the transceiver function of CameraLink signals; the LVDS protocol transceiver control module is responsible for the transceiver function of LVDS signals; the FIFO realizes the caching of data.
[0026] A data stream fusion module for realizing virtual channel allocation, data framing / deframing, data arbitration, data fusion, and data distribution.
[0027] A GTX high-speed transceiver module for controlling an optical module to perform optical fiber data transmission.
[0028] Further, the optical module is in the form of SFP, implemented using the Aurora 64 / 66B protocol, and the line rate is 10 Gbps.
[0029] The beneficial effects of the present invention are as follows:
[0030] 1. The method proposed by the present invention has the characteristic of being flexibly adaptable to multiple buses. Compared with the existing technology, the signal fusion method is more flexible and can automatically adapt to changes in the number and type of bus signals.
[0031] 2. The method proposed by the present invention has the characteristic of being adaptable to burst transmission. Compared with the existing technology, since the signal arbitration method is first-come-first-served instead of fixed-cycle transmission, the signal fusion method is more flexible and has better performance in terms of adaptability to burst transmission of bus signals.
[0032] 3. The method proposed by the present invention has the characteristics of low latency and high bandwidth utilization rate, and can realize real-time and continuous transmission of signals. By adopting the method of the present invention, the system processing latency is less than 5 μs, and the bandwidth utilization rate is 78.3%. Description of the Drawings
[0033] Figure 1 It is a schematic diagram of the signal flow direction and module composition of the present invention;
[0034] Figure 2 It is a schematic diagram of the fusion data transmission process and frame structure proposed by the present invention;
[0035] Figure 3 It is a schematic diagram of the specific steps of the data stream fusion method of the multi-interface optical fiber relay device proposed by the present invention;
[0036] Figure 4 It is an application schematic diagram of a specific embodiment of the present invention;
[0037] Figure 5 It is a logic design block diagram of a specific embodiment of the present invention. Detailed implementation mode
[0038] Detailed implementation mode 1: In the data stream fusion method of a multi-interface optical fiber relay device described in this implementation mode, the implementation method is to divide the data received by the front-end bus interface into low-speed signals (such as RS422, RS485, general I / O, etc.) and high-speed signals (such as LVDS, CameraLink, etc.) according to the bus transmission rate, and perform signal fusion in the low-speed signal stream mode and the high-speed signal frame mode and transmit through optical fiber. To achieve the above functional characteristics, the main structure of this method is as Figure 1 shown.
[0039] The virtual channel allocation part realizes the virtual channel allocation function for the streaming data, the data arbitration part realizes the arbitration for frame data transmission, the data framing and deframing part realizes the framing and deframing of frame data, and the data fusion and distribution part realizes the data fusion of frame data and streaming data and the data splitting of the fused data stream. Moreover, this method designs a dedicated transmission frame structure and data fusion structure, as Figure 2 shown. The frame data transmission frame structure consists of 1 byte of frame header, 1 byte of ID number, and 10 bytes of data segment.
[0040] The fused data stream transmission frame structure consists of 6 bytes of frame data transmission part and 2 bytes of streaming data transmission part. The frame data transmission part is responsible for transmitting the framed frame data; the streaming data transmission part is divided into 16 virtual channels, and at most 16 different streaming data are supported to be transmitted simultaneously.
[0041] As Figure 3 shown, the specific steps of the data stream fusion method described in this implementation mode include the optical fiber relay device sending part and the optical fiber relay device receiving part. The processing steps of the optical fiber relay device sending part are as follows:
[0042] Divide the bus data into low-speed signals and high-speed signals according to the rate, corresponding to streaming data and frame data respectively;
[0043] Allocate each streaming data to the corresponding virtual channel for caching, frame the frame data, and perform arbitration and caching according to the principle of first come first served;
[0044] Perform data fusion and recombination on the streaming data and frame data to obtain a fused data stream;
[0045] Then transmit the fused data stream to the optical fiber transceiver module;
[0046] The processing steps of the optical fiber relay device receiving part are as follows:
[0047] Obtain the received fused data stream from the optical fiber transceiver module;
[0048] Perform data distribution processing on the fused data stream, and disassemble it to obtain stream data and frame data;
[0049] Perform channel allocation on the stream data to restore the low-speed signal data, and perform deframing processing on the frame data to restore the high-speed signal data;
[0050] Transmit the restored signal to each bus sending module.
[0051] Specific Embodiment 2: As Figure 4 shown, the multi-interface optical fiber relay device described in this embodiment is located at one end of the communication interaction and communicates with another serial communication relay device located at the other end of the communication interaction. The multi-interface optical fiber relay device includes:
[0052] An optical module, which is in the form of SFP, realizes the conversion between optical and electrical signals, and transmits data through a single-mode optical fiber;
[0053] An FPGA minimum system, which includes an FPGA chip and the peripheral circuits required for the normal operation of the FPGA chip, and realizes all the logical functions required by the multi-interface optical fiber relay device;
[0054] A bus transceiver hardware circuit, which includes transceiver circuits for various external buses, such as RS422, RS485, general I / O, LVDS, CameraLink, etc., and is responsible for realizing the receiving and sending functions of the external bus interface.
[0055] As Figure 5 shown, the logical design of the FPGA minimum system includes:
[0056] A low-speed signal low-latency processing module: The low-speed signal low-latency processing module is composed of a sampling / reconstruction module and a FIFO. The sampling / reconstruction module realizes the digital sampling and reconstruction of the low-speed signal; the FIFO realizes the caching of data.
[0057] A high-speed signal low-latency processing module: The high-speed signal low-latency processing module includes a SelectIO protocol control module, an LVDS protocol transceiver control module, and a FIFO. The SelectIO protocol control module is responsible for realizing the receiving and sending functions of the CameraLink signal; the LVDS protocol transceiver control module is responsible for the receiving and sending functions of the LVDS signal; the FIFO realizes the caching of data.
[0058] A data stream fusion module: The data stream fusion module realizes the fusion and recombination function of multi-bus data streams based on the method proposed in the present invention, including virtual channel allocation, data framing / deframing, data arbitration, data fusion, and data distribution.
[0059] GTX High-Speed Transceiver: The GTX high-speed transceiver is responsible for controlling the optical module to perform fiber-optic data transmission. It is implemented using the Aurora 64 / 66B protocol and has a line rate of 10 Gbps.
[0060] The above are only the preferred embodiments of the present invention and do not impose any formal limitations on the present invention. Although the present invention has been disclosed above in preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some changes or modifications to equivalent embodiments by using the disclosed technical content within the scope of the technical solution of the present invention. However, as long as it does not depart from the content of the technical solution of the present invention and is based on the technical essence of the present invention, any simple modifications, equivalent replacements, and improvements made to the above embodiments still fall within the scope of protection of the technical solution of the present invention.
Claims
1. A data stream fusion method for a multi-interface optical fiber relay device, characterized in that: It includes a fiber optic relay device sending part and a fiber optic relay device receiving part, and the fiber optic relay device sending part processes the following steps: The bus data is divided into low-speed signals and high-speed signals according to the rate, corresponding to stream data and frame data respectively; Allocate each stream data to the corresponding virtual channel for buffering, group the frame data and arbitrate and buffer them according to the first-come-first-served principle; The stream data and the frame data are fused and reorganized to obtain a fused data stream; Then transmit the fused data stream to the optical fiber transceiver module; The receiving part of the optical fiber relay device processes as follows: Obtaining a received fused data stream from the optical fiber transceiver module; Perform data distribution processing on the fused data stream and disassemble it to obtain stream data and frame data; Channel allocation is performed on stream data to recover low-speed signal data, and frame data is de-framed to recover high-speed signal data; The recovery signal is transmitted to each bus sending module.
2. The data stream fusion method of a multi-interface optical fiber relay device according to claim 1, characterized in that: The frame data transmission part is responsible for transmitting the frame data after framing; the stream data transmission part is divided into 16 virtual channels, supporting the simultaneous transmission of 16 different stream data at most.
3. A multi-interface optical fiber relay device, characterized in that: The device comprises: Optical module, used to realize photoelectric signal conversion and transmit data through single-mode optical fiber; FPGA minimum system, used to implement all logic functions required for multi-interface fiber-optic relay equipment; The bus transceiver hardware circuit module is used to realize the external bus interface receiving and sending functions.
4. A multi-interface optical fiber relay device according to claim 3, characterized in that: The logic programs running in the FPGA minimum system include: Low-speed signal low-latency processing module, used for sampling / reconstruction and caching of low-speed signals; High-speed signal low-latency processing module, used for protocol control and caching of high-speed signals; Data stream fusion module, used to realize virtual channel allocation, data framing / deframing, data arbitration, data fusion and data distribution; GTX high-speed transceiver module is used to control the optical module for optical fiber data transmission.
5. A multi-interface optical fiber relay device according to claim 4, characterized in that: The optical module is in SFP form, implemented using the Aurora 64 / 66B protocol, and has a line rate of 10 Gbps.