CN-116319596-B - Optical fiber data transmission system and method
Abstract
The invention provides an optical fiber data transmission system and method, wherein the system comprises an optical fiber transmission line, a first optical fiber data transmission sub-board and a second optical fiber data transmission sub-board, the first optical fiber data transmission sub-board comprises an FPGA and a high-speed serial transceiver, the FPGA comprises a data receiving module, a data selecting module and a data encoding module, the data receiving module acquires first data to be transmitted and transmits the first data to be transmitted to the data selecting module, the data selecting module transmits the first data to be transmitted to the data encoding module according to a preset data transmission priority from high to low, the data encoding module encodes the first data to be transmitted to obtain first encoded data, the first encoded data is transmitted to the high-speed serial transceiver, and the high-speed serial transceiver transmits the first encoded data to the second optical fiber data transmission sub-board through the optical fiber transmission line. The invention reduces the transmission delay of the first synchronous pulse signal and has stable delay.
Inventors
- WANG CHENG
- Xing Zengqi
- HUANG QIUYUAN
- ZHOU PENG
Assignees
- 武汉普赛斯仪表有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20230220
Claims (8)
- 1. The optical fiber data transmission system is characterized by comprising an optical fiber transmission line, a first optical fiber data transmission sub-board and a second optical fiber data transmission sub-board, wherein the first optical fiber data transmission sub-board and the second optical fiber data transmission sub-board are connected at two ends of the optical fiber transmission line, the first optical fiber data transmission sub-board comprises a field programmable logic gate array and a high-speed serial transceiver, and the field programmable logic gate array comprises a data receiving module, a data selecting module and a data encoding module; The data receiving module is configured to obtain first data to be transmitted, and transmit the first data to be transmitted to the data selecting module, where the first data to be transmitted is at least one of a first synchronization pulse signal, first byte data, and a first control command; The data selection module is configured to transmit the first synchronization pulse signal, the first byte data and the first control command to the data encoding module according to a sequence from high to low of data transmission priority based on a preset data transmission priority, where the data transmission priority of the first synchronization pulse signal is higher than the data transmission priority of the first control command, and the data transmission priority of the first control command is higher than the data transmission priority of the first byte data; The data encoding module is configured to encode the first synchronization pulse signal, the first byte data, and the first control command to obtain first encoded data, and transmit the first encoded data to the high-speed serial transceiver; the high-speed serial transceiver is used for transmitting the first coded data to the second optical fiber data transmission daughter board through the optical fiber transmission line.
- 2. The fiber optic data transmission system of claim 1, wherein the field programmable gate array further comprises a data decoding module and a data output module; the high-speed serial transceiver is further configured to transmit second encoded data generated by the second optical fiber data transmission sub-board to the data decoding module; The data decoding module is used for decoding the second encoded data to obtain second decoded data, and transmitting the second decoded data to the data output module; The data output module is configured to generate and output second data to be transmitted based on the second decoded data, where the second data to be transmitted is at least one of a second synchronization pulse signal, second byte data, and a second control command.
- 3. The optical fiber data transmission system according to claim 1, wherein the data receiving module comprises a pulse acquisition encoding sub-module, a data transmitting sub-module, and a control command encoding sub-module; The pulse acquisition encoding sub-module is used for acquiring an initial synchronous pulse signal, encoding the initial synchronous pulse signal to acquire a first synchronous pulse signal, and transmitting the first synchronous pulse signal to the data selection module; the data transmission submodule is used for receiving and storing the first byte data and transmitting the first byte data to the data selection module; The control command encoding submodule is used for receiving an initial control command, encoding the initial control command according to a preset encoding protocol, obtaining a first control command, storing the first control command and transmitting the first control command to the data selection module.
- 4. The fiber optic data transmission system of claim 2, wherein the data decoding module comprises a data decoding sub-module and a data parsing sub-module; The data decoding sub-module is used for decoding the second encoded data to obtain second preliminary decoded data; The data analysis submodule is used for analyzing the second decoding data to obtain the second decoding data, and the second decoding data comprises second pulse decoding data, second byte data and second control command decoding data.
- 5. The optical fiber data transmission system according to claim 4, wherein the data output module comprises a pulse signal output sub-module, a byte data output sub-module, and a control command output sub-module; the pulse signal output sub-module is used for receiving the second pulse decoding data, generating the second synchronous pulse signal according to the second pulse decoding data and outputting the second synchronous pulse signal; the byte data output sub-module is used for caching and outputting the second byte data; The control command output submodule is used for decoding the second control command decoding data according to a preset decoding protocol to obtain the second control command, and caching and outputting the second control command.
- 6. The fiber optic data transmission system of claim 5, wherein the pulse signal output submodule includes a pulse decoding submodule and a pulse generating submodule; The pulse decoding sub-module is used for receiving the second pulse decoding data and decoding the second pulse decoding data to obtain the second synchronous pulse signal; the pulse generation submodule is used for outputting the second synchronous pulse signal.
- 7. The fiber optic data transmission system of claim 2, wherein the first fiber optic data transmission sub-board further comprises an optical module coupled between the high-speed serial transceiver and the fiber optic transmission line, the optical module configured to photoelectrically convert the first encoded data and the second encoded data.
- 8. The optical fiber data transmission method is characterized by being applied to a first optical fiber data transmission sub-board, and comprises the following steps: acquiring first data to be transmitted, wherein the first data to be transmitted is at least one of a first synchronous pulse signal, first byte data and a first control command; Transmitting the first synchronization pulse signal, the first byte data and the first control command according to the sequence from high to low of the data transmission priority based on the preset data transmission priority, wherein the data transmission priority of the first synchronization pulse signal is higher than that of the first control command, and the data transmission priority of the first control command is higher than that of the first byte data; encoding the first synchronization pulse signal, the first byte data and the first control command to obtain first encoded data; Transmitting the first coded data to a second optical fiber data transmission sub-board through an optical fiber transmission line; receiving second coded data generated by a second optical fiber data transmission sub-board; decoding the second encoded data to obtain second decoded data; And generating and outputting second data to be transmitted based on the second decoded data, wherein the second data to be transmitted is at least one of a second synchronous pulse signal, second byte data and a second control command.
Description
Optical fiber data transmission system and method Technical Field The invention relates to the technical field of data transmission, in particular to an optical fiber data transmission system and method. Background In the field of modern data transmission, the data to be transmitted comprises data (e.g. byte data) with a relatively large and continuous data volume and data (e.g. sync pulse signals) with a relatively small and discontinuous data volume and high burstiness, and the two types of data have different requirements for the data transmission system, wherein the data with the relatively large and continuous data volume requires the data transmission system to have the capability of high data bandwidth transmission. Data with small data volume, non-continuity and high burstiness require that the data transmission system can respond in time after receiving the data, the data is transmitted to the receiving end in the shortest time, and the transmission delay is not changed by the influence of other factors. The existing solution is to directly use a serial data interface (SERIAL PERIPHERAL INTERFACE, SPI) to carry out data communication, but the method has the technical problems that when the two types of data exist simultaneously, the transmission delay of the synchronous pulse signal is increased due to the transmission of a large amount of continuous data, namely, the low and stable transmission delay of the synchronous pulse signal cannot be ensured. Disclosure of Invention In view of the foregoing, it is necessary to provide an optical fiber data transmission system and method for solving the technical problems in the prior art that the transmission delay of the synchronization pulse signal cannot be guaranteed to be low and the delay is stable. In one aspect, the invention provides an optical fiber data transmission system, which comprises an optical fiber transmission line, and a first optical fiber data transmission sub-board and a second optical fiber data transmission sub-board which are connected at two ends of the optical fiber transmission line, wherein the first optical fiber data transmission sub-board comprises a field programmable logic gate array and a high-speed serial transceiver, and the field programmable logic gate array comprises a data receiving module, a data selecting module and a data encoding module; The data receiving module is configured to obtain first data to be transmitted, and transmit the first data to be transmitted to the data selecting module, where the first data to be transmitted is at least one of a first synchronization pulse signal, first byte data, and a first control command; the data selection module is used for transmitting the first synchronous pulse signal, the first byte data and the first control command to the data encoding module according to the sequence from high to low of the data transmission priority based on the preset data transmission priority; The data encoding module is configured to encode the first synchronization pulse signal, the first byte data, and the first control command to obtain first encoded data, and transmit the first encoded data to the high-speed serial transceiver; the high-speed serial transceiver is used for transmitting the first coded data to the second optical fiber data transmission daughter board through the optical fiber transmission line. In some possible implementations, the first synchronization pulse signal has a higher data transmission priority than the first control command, and the first control command has a higher data transmission priority than the first byte data. In some possible implementations, the field programmable gate array further includes a data decoding module and a data output module; the high-speed serial transceiver is further configured to transmit second encoded data generated by the second optical fiber data transmission sub-board to the data decoding module; The data decoding module is used for decoding the second encoded data to obtain second decoded data, and transmitting the second decoded data to the data output module; The data output module is configured to generate and output second data to be transmitted based on the second decoded data, where the second data to be transmitted is at least one of a second synchronization pulse signal, second byte data, and a second control command. In some possible implementations, the data receiving module includes a pulse acquisition encoding submodule, a data sending submodule, and a control command encoding submodule; The pulse acquisition encoding sub-module is used for acquiring an initial synchronous pulse signal, encoding the initial synchronous pulse signal to acquire a first synchronous pulse signal, and transmitting the first synchronous pulse signal to the data selection module; the data transmission submodule is used for receiving and storing the first byte data and transmitting the first byte data to the data selection module; The