[go: up one dir, main page]

CN109495728B - Optical fiber transmission system and transmission method - Google Patents

Optical fiber transmission system and transmission method Download PDF

Info

Publication number
CN109495728B
CN109495728B CN201811602238.6A CN201811602238A CN109495728B CN 109495728 B CN109495728 B CN 109495728B CN 201811602238 A CN201811602238 A CN 201811602238A CN 109495728 B CN109495728 B CN 109495728B
Authority
CN
China
Prior art keywords
signal
module
main controller
signals
optical fiber
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201811602238.6A
Other languages
Chinese (zh)
Other versions
CN109495728A (en
Inventor
周渝人
年伦
耿爱辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changchun Institute of Optics Fine Mechanics and Physics of CAS
Original Assignee
Changchun Institute of Optics Fine Mechanics and Physics of CAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changchun Institute of Optics Fine Mechanics and Physics of CAS filed Critical Changchun Institute of Optics Fine Mechanics and Physics of CAS
Priority to CN201811602238.6A priority Critical patent/CN109495728B/en
Publication of CN109495728A publication Critical patent/CN109495728A/en
Application granted granted Critical
Publication of CN109495728B publication Critical patent/CN109495728B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/22Adaptations for optical transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/25Arrangements specific to fibre transmission
    • H04B10/2589Bidirectional transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/189Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Optical Communication System (AREA)
  • Studio Devices (AREA)

Abstract

本发明提供一种光纤传输系统及光纤传输方法,该系统包括光纤传输介质、发送装置和接收装置,发送装置用于将符合Camera Link协议中Base模式下的数据信号和SerTFG串行通信信号进行下行传输编码,以获取第一下行信号;发送装置还用于将第一上行信号进行对称解码。接收装置既用于对第一下行信号进行对称解码,还用于将符合Camera Link协议中Base模式下的相机控制信号和SerTC串行通信信号进行上行传输编码,以获取第一上行信号;第一下行信号与第一上行信号通过光纤传输介质传输。本发明的光纤传输系统,其通用性好,远距离传输能力强,抗干扰能力高,安装使用方便,误码率低。

Figure 201811602238

The invention provides an optical fiber transmission system and an optical fiber transmission method. The system includes an optical fiber transmission medium, a sending device and a receiving device. The sending device is used for downlinking a data signal and a SerTFG serial communication signal conforming to the Base mode in the Camera Link protocol. The transmission coding is used to obtain the first downlink signal; the sending device is further configured to symmetrically decode the first uplink signal. The receiving device is not only used to symmetrically decode the first downlink signal, but also to perform uplink transmission coding on the camera control signal and the SerTC serial communication signal in the Base mode in the Camera Link protocol, so as to obtain the first uplink signal; The downlink signal and the first uplink signal are transmitted through the optical fiber transmission medium. The optical fiber transmission system of the invention has good versatility, strong long-distance transmission capability, high anti-interference capability, convenient installation and use, and low bit error rate.

Figure 201811602238

Description

一种光纤传输系统及传输方法Optical fiber transmission system and transmission method

技术领域technical field

本发明涉及光纤传输技术领域,尤其涉及一种光纤传输系统及传输方法。The invention relates to the technical field of optical fiber transmission, and in particular, to an optical fiber transmission system and a transmission method.

背景技术Background technique

现有技术中的Camera Link协议与光纤通信结合存在瑕疵,以现有技术中的基于标准Base模式Camera Link接口的光纤传输系统为例,该光纤传输系统要么只能传输一种特定型号的相机的图像数据,要么只能传输固定分辨率、固定帧频的一类相机的图像数据,要么只能传输Camera Link协议中的部分图像数据,而协议中的控制信号和异步通讯信号要另外单独传输,要么只能传输一种固定波特率的异步通信信号。也是正因为现有技术中基于标准Base模式Camera Link接口的光纤传输系统只能择一进行数据传输,所以,基于标准Base模式Camera Link接口的光纤传输系统尽管实现了图像数据的传输,但是产品通用性能、综合性性能特别差。There is a flaw in the combination of the Camera Link protocol and optical fiber communication in the prior art. Taking the optical fiber transmission system based on the standard Base mode Camera Link interface in the prior art as an example, the optical fiber transmission system can only transmit the data of a specific type of camera. Image data can either only transmit image data of a type of camera with a fixed resolution and fixed frame rate, or can only transmit part of the image data in the Camera Link protocol, and the control signals and asynchronous communication signals in the protocol must be transmitted separately. Either only a fixed baud rate asynchronous communication signal can be transmitted. It is also because the optical fiber transmission system based on the standard Base mode Camera Link interface in the prior art can only select one for data transmission. Therefore, although the optical fiber transmission system based on the standard Base mode Camera Link interface realizes the transmission of image data, the products are universal. Performance and comprehensive performance are particularly poor.

进一步,如果想要解决工业领域的复杂电磁环境下的高带宽信号的远距离传输问题,那么就必须需要多个辅助系统与基于标准Base模式Camera Link接口的光纤传输系统一同参与工作,这将很大程度上增加信号传输的成本及复杂程度。Further, if you want to solve the problem of long-distance transmission of high-bandwidth signals in complex electromagnetic environments in the industrial field, then multiple auxiliary systems must be required to work together with the optical fiber transmission system based on the standard Base mode Camera Link interface, which will be very important. It greatly increases the cost and complexity of signal transmission.

发明内容SUMMARY OF THE INVENTION

为解决基于标准Base模式Camera Link接口的光纤传输产品通用性能差以及综合性性能差的问题,本发明提供一种光纤传输系统,其包括光纤传输介质,其还包括:In order to solve the problems of poor general performance and poor comprehensive performance of optical fiber transmission products based on the standard Base mode Camera Link interface, the present invention provides an optical fiber transmission system, which includes an optical fiber transmission medium, and also includes:

发送装置,用于将符合Camera Link协议中Base模式下的数据信号和SerTFG串行通信信号进行下行传输编码,以获取第一下行信号;所述发送装置还用于将第一上行信号进行对称解码;The sending device is used to perform downlink transmission coding on the data signal and the SerTFG serial communication signal in the Base mode in the Camera Link protocol to obtain the first downlink signal; the sending device is also used to symmetric the first uplink signal decoding;

接收装置,既用于对所述第一下行信号进行对称解码,还用于将符合Camera Link协议中Base模式下的相机控制信号和SerTC串行通信信号进行上行传输编码,以获取所述第一上行信号;The receiving device is not only used to symmetrically decode the first downlink signal, but also used to perform uplink transmission coding on the camera control signal and the SerTC serial communication signal in the Base mode in the Camera Link protocol, so as to obtain the first downlink signal. an uplink signal;

所述第一下行信号与所述第一上行信号通过所述光纤传输介质传输。The first downlink signal and the first uplink signal are transmitted through the optical fiber transmission medium.

较佳地,所述发送装置包括相互连接的第一主控制器和第一光电转换模块;Preferably, the sending device includes a first main controller and a first photoelectric conversion module connected to each other;

所述第一主控制器用于对符合Camera Link协议中Base模式下的下行的数据信号和SerTFG串行通信信号中的指定行为进行协议编码,以获取第一协议包,所示指定行为包括帧开始、帧结束、帧有效、帧消隐、行开始、行结束、行有效和行消隐状态中的一种或多种;所述第一主控制器通过其内部集成的第一GTX收发器对所述第一协议包插入K码,所述第一GTX收发器对插入K码后的第一协议包进行8B/10B编码,以获得下行差分信号;所述下行差分信号由所述第一主控制器传输至所述第一光电转换模块;The first main controller is used to perform protocol coding on the downlink data signal in the Base mode in the Camera Link protocol and the designated behavior in the SerTFG serial communication signal to obtain the first protocol packet, and the designated behavior includes the frame start. , one or more of frame end, frame valid, frame blanking, line start, line end, line valid and line blanking states; the first main controller communicates with the first GTX transceiver integrated in it. The K code is inserted into the first protocol packet, and the first GTX transceiver performs 8B/10B encoding on the first protocol packet after the K code is inserted to obtain a downlink differential signal; the downlink differential signal is transmitted by the first host. The controller transmits to the first photoelectric conversion module;

所述第一主控制器还通过其内部集成的第一GTX收发器对上行差分信号进行对称解码,以从第二协议包中获取上行的相机控制信号和SerTC串行通信信号。The first main controller also symmetrically decodes the upstream differential signal through the first GTX transceiver integrated therein, so as to obtain the upstream camera control signal and the SerTC serial communication signal from the second protocol packet.

较佳地,所述发送装置包括依次连接的输入模块、解码模块、所述第一主控制器和所述第一光电转换模块;Preferably, the sending device includes an input module, a decoding module, the first main controller and the first photoelectric conversion module connected in sequence;

所述输入模块设置在工业相机和所述解码模块之间,所述输入模块用于将来自所述工业相机的LVDS信号下行传输;The input module is arranged between the industrial camera and the decoding module, and the input module is used for downlink transmission of the LVDS signal from the industrial camera;

所述解码模块设置在所述输入模块和所述第一主控制器之间,所述解码模块用于将来自所述工业相机的LVDS信号转化为符合Camera Link协议中Base模式下的数据信号和SerTFG串行通信信号,并继续将该信号下行传输至所述第一主控制器;The decoding module is arranged between the input module and the first main controller, and the decoding module is used to convert the LVDS signal from the industrial camera into a data signal and a Base mode conforming to the Camera Link protocol. SerTFG serial communication signal, and continue to downlink the signal to the first main controller;

所述解码模块还将对来自所述第一主控制器的上行的相机控制信号和SerTC串行通信信号进行第一LVDS编码,所述解码模块将经由第一LVDS编码后的信号传输至所述输入模块,所述输入模块能够继续将经由第一LVDS编码后的信号传递给所述工业相机。The decoding module will also perform the first LVDS encoding on the upstream camera control signal and the SerTC serial communication signal from the first main controller, and the decoding module will transmit the encoded signal via the first LVDS to the An input module, the input module can continue to transmit the signal encoded by the first LVDS to the industrial camera.

较佳地,所述接收装置包括相互连接的第二主控制器和第二光电转换模块;Preferably, the receiving device includes a second main controller and a second photoelectric conversion module connected to each other;

所述第二光电转换模块用于将源自所述发送装置的光信号转化回下行差分信号,并输送给所述第二主控制器;所述第二光电转换模块还用于将所述第二主控制器产生的上行差分信号转化为向发送装置发送的光信号;The second photoelectric conversion module is used to convert the optical signal from the sending device back to a downlink differential signal, and send it to the second main controller; the second photoelectric conversion module is also used to convert the first The uplink differential signal generated by the two main controllers is converted into an optical signal sent to the transmitting device;

所述第二主控制器用于对符合Camera Link协议中Base模式下的上行的相机控制信号和SerTC串行通信信号进行自定义协议编码,以获取第三协议包;所述第二主控制器通过其内部集成的第二GTX收发器对第三协议包进行8B/10B编码,以获得上行差分信号;The second main controller is used to perform self-defined protocol encoding on the upstream camera control signal and SerTC serial communication signal in the Base mode in the Camera Link protocol, so as to obtain the third protocol package; the second main controller passes the Its internal integrated second GTX transceiver performs 8B/10B encoding on the third protocol packet to obtain uplink differential signals;

所述第二主控制器还通过所述第二GTX收发器对来自所述发送装置的下行差分信号进行对称解码,以获取下行的数据信号和SerTFG串行通信信号。The second main controller also symmetrically decodes the downlink differential signal from the sending device through the second GTX transceiver to obtain downlink data signals and SerTFG serial communication signals.

较佳地,所述接收装置包括依次连接的输出模块、编码模块、所述第二主控制器和所述第二光电转换模块;Preferably, the receiving device comprises an output module, an encoding module, the second main controller and the second photoelectric conversion module connected in sequence;

所述输出模块设置在所述编码模块和图像采集设备之间,所述输出模块用于将来自将所述编码模块的第二LVDS编码信号下行传输给所述图像采集设备;所述输出模块还用于将来自所述图像采集设备的上行的LVDS信号上行传递给所述编码模块;The output module is arranged between the encoding module and the image acquisition device, and the output module is used for downlink transmission of the second LVDS encoded signal from the encoding module to the image acquisition device; the output module also for transmitting the upstream LVDS signal from the image acquisition device to the encoding module;

所述编码模块设置在所述输出模块和所述第二主控制器之间,所述编码模块用于将来自所述图像采集设备的上行的LVDS信号转化为符合Camera Link协议中Base模式下的上行的相机控制信号和SerTC串行通信信号,并继续将该信号上行传输至所述第二主控制器;The encoding module is arranged between the output module and the second main controller, and the encoding module is used to convert the upstream LVDS signal from the image acquisition device into a signal that conforms to the Base mode in the Camera Link protocol. The upstream camera control signal and the SerTC serial communication signal, and continue to transmit the signal upstream to the second main controller;

所述编码模块还对来自所述第二主控制器的下行的数据信号和SerTFG串行通信信号进行第二LVDS编码,所述编码模块将经由第二LVDS编码的信号传输至所述输出模块。The encoding module also performs second LVDS encoding on the downstream data signal and the SerTFG serial communication signal from the second main controller, and the encoding module transmits the signal via the second LVDS encoding to the output module.

较佳地,所述符合Camera Link协议中Base模式下的数据信号包括28bits的数据信号,所述28bits的数据信号包括4bits视频控制信号和24bits图像数据信号,所述4bits视频控制信号分别为FVAL信号、LVAL信号、DVAL信号和SPARE信号;所述24bits图像数据信号为PORTA信号、PORTB信号和PORTC信号,所述24bits图像数据信号通过3个端口传输。Preferably, the data signal conforming to the Base mode in the Camera Link protocol includes a 28bits data signal, the 28bits data signal includes a 4bits video control signal and a 24bits image data signal, and the 4bits video control signal is an FVAL signal respectively. , LVAL signal, DVAL signal and SPARE signal; the 24bits image data signal is PORTA signal, PORTB signal and PORTC signal, and the 24bits image data signal is transmitted through 3 ports.

较佳地,所述发送装置和所述接收装置上均设有光电转换模块,所述光电转换模块包括带有SFP或SFP+接口的收发一体光纤模块;所述光纤传输介质为单模或多模光纤。Preferably, both the transmitting device and the receiving device are provided with a photoelectric conversion module, and the photoelectric conversion module includes a transceiver integrated optical fiber module with an SFP or SFP+ interface; the optical fiber transmission medium is single-mode or multi-mode. optical fiber.

较佳地,Preferably,

所述发送装置和所述接收装置上分别设有第一主控制器和第二控制器,所述第一主控制器和所述第二控制器为XC7K70T/XC7A50T主控芯片,还可以是Xilinx公司的7系列FPGA;The transmitting device and the receiving device are respectively provided with a first main controller and a second controller, and the first main controller and the second controller are XC7K70T/XC7A50T main control chips, and may also be Xilinx The company's 7 series FPGA;

所述发送装置上的解码模块为DS90CR288A解码芯片,所述接收装置上的编码模块为DS90CR287编码芯片。The decoding module on the sending device is a DS90CR288A decoding chip, and the encoding module on the receiving device is a DS90CR287 encoding chip.

本发明还提供一种光纤传输方法,其特征在于,其包括上行传输和下行传输,所述下行传输包括以下步骤:The present invention also provides a kind of optical fiber transmission method, it is characterized in that, it comprises uplink transmission and downlink transmission, and described downlink transmission comprises the following steps:

步骤S1,对符合Camera Link协议中Base模式下的下行的数据信号和SerTFG串行通信信号进行自定义协议编码,以获取第一协议包;Step S1, carry out self-defined protocol encoding to the downlink data signal and SerTFG serial communication signal in the Base mode in the Camera Link protocol to obtain the first protocol packet;

步骤S2,对所述第一协议包插入K码,再进行8B/10B编码,以获得下行的1lane高速差分信号,进而所述下行的1lane高速差分信号转换成光信号传输;Step S2, inserting the K code into the first protocol packet, and then performing 8B/10B encoding to obtain a downlink 1lane high-speed differential signal, and then the downlink 1lane high-speed differential signal is converted into optical signal transmission;

步骤S3,将光信号按照与步骤S1至步骤S2相对称的解码方式解码;Step S3, decoding the optical signal according to a decoding method symmetric to steps S1 to S2;

所述上行传输包括以下步骤:The uplink transmission includes the following steps:

步骤S4,对符合Camera Link协议中Base模式下的上行的相机控制信号和SerTC串行通信信号进行自定义协议编码,以获取第三协议包;Step S4, performing self-defined protocol encoding on the upstream camera control signal and the SerTC serial communication signal in the Base mode in the Camera Link protocol to obtain a third protocol packet;

步骤S5,对第三协议包进行8B/10B编码,以获得上行的1lane高速差分信号,进而将所述上行的1lane高速差分信号转换成光信号传输;Step S5, 8B/10B encoding is performed on the third protocol packet to obtain an upstream 1lane high-speed differential signal, and then the upstream 1lane high-speed differential signal is converted into an optical signal for transmission;

步骤S6,将光信号按照与步骤S4至步骤S5相对称的解码方式解码。In step S6, the optical signal is decoded according to a decoding method symmetric to steps S4 to S5.

较佳地,所述自定以协议编码过程是对信号进行帧开始、帧结束、帧有效、帧消隐、行开始、行结束、行有效和行消隐状态中的一种或几张进行自定义协议编码过程。Preferably, the self-defined protocol encoding process is to perform one or more of frame start, frame end, frame valid, frame blanking, line start, line end, line valid and line blanking states on the signal. Customize the protocol encoding process.

与现有技术比较本发明的有益效果在于:Compared with the prior art, the beneficial effects of the present invention are:

本发明提供一种光纤传输系统和光纤传输方法,其中通过下行传输编码过程能够对Camera Link协议Base模式下的任意分辨率和帧频的图像数据进行自适应编码,从而增加了该系统的通用性。进一步,通过上行传输编码过程能够对Camera Link协议Base模式下的任意波形的相机控制信号和任意波特率的SerTC进行自适应编码,这样也扩展了系统的通用性。加之,该系统通过光纤传输,所以该系统的远距离传输能力强,抗干扰能力高,安装使用方便,误码率低于10E-12,满足工业级的-45℃~85℃工作温度要求。The present invention provides an optical fiber transmission system and an optical fiber transmission method, wherein the image data of any resolution and frame frequency under the Base mode of the Camera Link protocol can be adaptively encoded through the downlink transmission encoding process, thereby increasing the versatility of the system . Further, through the upstream transmission encoding process, the camera control signal of the arbitrary waveform and the SerTC of the arbitrary baud rate in the Base mode of the Camera Link protocol can be adaptively encoded, which also expands the versatility of the system. In addition, the system transmits through optical fiber, so the system has strong long-distance transmission ability, high anti-interference ability, easy installation and use, and the bit error rate is lower than 10E-12, which meets the industrial-grade operating temperature requirements of -45℃~85℃.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only for the present application. In some embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.

图1为本发明实施例中光纤传输系统的结构示意图;1 is a schematic structural diagram of an optical fiber transmission system in an embodiment of the present invention;

图2为本发明实施例中光纤传输系统的发送装置的结构示意图;2 is a schematic structural diagram of a sending device of an optical fiber transmission system in an embodiment of the present invention;

图3为本发明实施例中光纤传输系统的接收装置的结构示意图;3 is a schematic structural diagram of a receiving device of an optical fiber transmission system in an embodiment of the present invention;

图4为本发明实施例中光纤传输方法的流程图。FIG. 4 is a flowchart of an optical fiber transmission method in an embodiment of the present invention.

附图标记:Reference number:

发送装置1、光纤传输介质2、接收装置3、电源装置4、光纤传输系统10、输入模块11、解码模块12、第一主控制器13、第一光电转换模块15、第一GTX收发器16、输出模块31、编码模块32、第二主控制器33、第二光电转换模块35、第二GTX收发器36、工业相机100和图像采集设备200。Sending device 1, optical fiber transmission medium 2, receiving device 3, power supply device 4, optical fiber transmission system 10, input module 11, decoding module 12, first main controller 13, first photoelectric conversion module 15, first GTX transceiver 16 , an output module 31 , an encoding module 32 , a second main controller 33 , a second photoelectric conversion module 35 , a second GTX transceiver 36 , an industrial camera 100 and an image acquisition device 200 .

具体实施方式Detailed ways

以下结合附图,对本发明上述的和另外的技术特征和优点作更详细的说明。The above and other technical features and advantages of the present invention will be described in more detail below with reference to the accompanying drawings.

在本发明的描述中,需要理解的是,术语“中心”、“纵向”、“横向”、“长度”、“宽度”、“厚度”、“上”、“下”、“前”、“后”、“左”、“右”、“竖直”、“水平”、“顶”、“底”“内”、“外”、“顺时针”、“逆时针”、“轴向”、“径向”、“周向”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", " Rear, Left, Right, Vertical, Horizontal, Top, Bottom, Inner, Outer, Clockwise, Counterclockwise, Axial, The orientation or positional relationship indicated by "radial direction", "circumferential direction", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present invention, rather than indicating or implying that the indicated device or element must have a specific orientation, construction and operation in a particular orientation, and therefore should not be construed as a limitation of the present invention.

此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本发明的描述中,“多个”的含义是至少两个,除非另有明确具体的限定。In addition, the terms "first" and "second" are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implying the number of indicated technical features. Thus, a feature delimited with "first", "second" may expressly or implicitly include at least one of that feature. In the description of the present invention, "plurality" means at least two unless expressly and specifically defined otherwise.

在本发明中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”、“固定”等术语应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或成一体;可以是机械连接,也可以是电连接或彼此可通讯;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系,除非另有明确的限定。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明中的具体含义。In the present invention, unless otherwise expressly specified and limited, the terms "installed", "connected", "connected", "fixed" and other terms should be understood in a broad sense, for example, it may be a fixed connection or a detachable connection , or integrated; it can be a mechanical connection or an electrical connection or can communicate with each other; it can be directly connected or indirectly connected through an intermediate medium, it can be the internal connection of two components or the interaction relationship between the two components, unless otherwise expressly qualified. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific situations.

在本发明中,除非另有明确的规定和限定,第一特征在第二特征“上”或“下”可以是第一和第二特征直接接触,或第一和第二特征通过中间媒介间接接触。而且,第一特征在第二特征“之上”、“上方”和“上面”可是第一特征在第二特征正上方或斜上方,或仅仅表示第一特征水平高度高于第二特征。第一特征在第二特征“之下”、“下方”和“下面”可以是第一特征在第二特征正下方或斜下方,或仅仅表示第一特征水平高度小于第二特征。In the present invention, unless otherwise expressly specified and limited, a first feature "on" or "under" a second feature may be in direct contact between the first and second features, or the first and second features indirectly through an intermediary touch. Also, the first feature being "above", "over" and "above" the second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is level higher than the second feature. The first feature being "below", "below" and "below" the second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature has a lower level than the second feature.

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, description with reference to the terms "one embodiment," "some embodiments," "example," "specific example," or "some examples", etc., mean specific features described in connection with the embodiment or example , structure, material or feature is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, those skilled in the art may combine and combine the different embodiments or examples described in this specification, as well as the features of the different embodiments or examples, without conflicting each other.

实施例Example

图1为本发明实施例中光纤传输系统的结构示意图;图2为本发明实施例中光纤传输系统的发射装置的结构示意图;图3为本发明实施例中光纤传输系统的接收装置的结构示意图。FIG. 1 is a schematic structural diagram of an optical fiber transmission system in an embodiment of the present invention; FIG. 2 is a structural schematic diagram of a transmitting device of an optical fiber transmission system in an embodiment of the present invention; FIG. 3 is a schematic structural diagram of a receiving device of the optical fiber transmission system in an embodiment of the present invention .

如图1至图3所示,本发明实施例1中提供了一种光纤传输系统10,该光纤传输系统10是基于标准Base模式Camera Link接口的光纤传输系统,该光纤传输系统10通过光纤远距离传输源自标准Base模式Camera Link接口的图像数据,此举规避了Camera Link数据线无法实现图像数据的远距离传输的问题。As shown in FIG. 1 to FIG. 3, Embodiment 1 of the present invention provides an optical fiber transmission system 10. The optical fiber transmission system 10 is an optical fiber transmission system based on a standard Base mode Camera Link interface. The distance transmission comes from the image data of the standard Base mode Camera Link interface, which avoids the problem that the Camera Link data line cannot realize the long-distance transmission of image data.

该光纤传输系统10包括发送装置1、光纤传输介质2和接收装置3,发送装置1和接收装置3上分别设有光电转换模块,光纤传输介质2通过两方的光电转换模块将发送装置1与接收装置3二者连接。The optical fiber transmission system 10 includes a transmitting device 1, an optical fiber transmission medium 2 and a receiving device 3. The transmitting device 1 and the receiving device 3 are respectively provided with photoelectric conversion modules. The receiving device 3 is connected to both.

本发明实施例中:由发送装置1向接收装置3方向传输的信号称为下行传输信号,与之相反的传输方向的信号为上行传输信号。In this embodiment of the present invention, the signal transmitted in the direction from the transmitting device 1 to the receiving device 3 is called the downlink transmission signal, and the signal in the opposite transmission direction is the uplink transmission signal.

本发明实施例1中提供了一种光纤传输系统10对图像数据的传输距离与所选择使用的光电转换模块功率正相关。图像数据传输距离可达千米级。该光纤传输系统10的光纤通信速率最高可达6.6Gbps,通信误码率低于10E-12。Embodiment 1 of the present invention provides an optical fiber transmission system 10 that transmits image data to a distance that is positively correlated with the power of the photoelectric conversion module selected for use. Image data transmission distance can reach kilometer level. The optical fiber communication rate of the optical fiber transmission system 10 is up to 6.6 Gbps, and the communication bit error rate is lower than 10E-12.

优选地,发送装置1为基于标准Base模式Camera Link协议的发送装置,接收装置3为基于标准Base模式Camera Link协议的接收装置;Preferably, the sending device 1 is a sending device based on the standard Base mode Camera Link protocol, and the receiving device 3 is a receiving device based on the standard Base mode Camera Link protocol;

光纤传输介质2使用LC接口的单模/多模光纤(但不仅限于LC接口的单多模光纤),使用LC接口的单模/多模光纤的有益效果是:由于LC接口的单模/多模光纤是使用模块化插孔闩锁机理制成的,所以其适用于连接SFP模块,且操作方便,传输效果好。Optical fiber transmission medium 2 uses single-mode/multi-mode fiber with LC interface (but not limited to single-mode fiber with LC interface), and the beneficial effect of using single-mode/multi-mode fiber with LC interface is: Modular fiber is made using the modular jack latch mechanism, so it is suitable for connecting SFP modules, and it is easy to operate and has a good transmission effect.

发送装置1和接收装置3均采用4至14V直流电源供电,有利于电源装置协同供电,减少电能损耗。Both the transmitting device 1 and the receiving device 3 are powered by a 4 to 14V DC power supply, which is conducive to the coordinated power supply of the power supply devices and reduces power consumption.

进一步,本发明实施例1中提供了一种光纤传输系统10,还包括电源装置4,电源装置4将源自直流供电端供给的4至14V电压进行电压变换后驱动对应有源元件。本实施例中,电源装置4优选为LTM6446电源模块(但不仅限于该型号电源模块)。Further, Embodiment 1 of the present invention provides an optical fiber transmission system 10, which further includes a power supply device 4, and the power supply device 4 converts the 4 to 14V voltage supplied from the DC power supply terminal to drive the corresponding active element. In this embodiment, the power supply device 4 is preferably an LTM6446 power supply module (but not limited to this type of power supply module).

在具体说明本发明实施例1中提供的一种光纤传输系统之前,有必要介绍CameraLink标准的部分内容,尤其是在Base模式下的Camera Link协议的工作原理。Before specifically describing the optical fiber transmission system provided in Embodiment 1 of the present invention, it is necessary to introduce some contents of the CameraLink standard, especially the working principle of the CameraLink protocol in the Base mode.

在Camera Link标准的Base模式下,信号至少包括:相机控制信号、串行通信信号和视频数据信号。以下逐一介绍信号类型和传输方式:In the Base mode of the Camera Link standard, the signals at least include: camera control signals, serial communication signals and video data signals. The following describes the signal types and transmission methods one by one:

相机控制信号camera control signal

Base模式下的Camera Link协议中涉及了4bits的相机控制信号,这4bit的相机控制信号被定义为相机的输入信号和图像采集卡的输出信号。一般情况是这些信号命名及相关信息如下表1所述:The Camera Link protocol in Base mode involves a 4-bit camera control signal, which is defined as the input signal of the camera and the output signal of the frame grabber. In general, these signal names and related information are described in Table 1 below:

Figure BDA0001922792280000081
Figure BDA0001922792280000081

Figure BDA0001922792280000091
Figure BDA0001922792280000091

表1Table 1

2、串行通信信号2. Serial communication signal

Base模式下的Camera Link协议中涉及了2bits的串行通信信号,这2bits的串行通信信号用来实现相机与图像采集卡之间的异步串行通信控制。其通信格式为1个起始位、8个数据位、1个停止位、去奇偶校验位和握手位。The Camera Link protocol in Base mode involves a 2bits serial communication signal, which is used to realize asynchronous serial communication control between the camera and the image acquisition card. Its communication format is 1 start bit, 8 data bits, 1 stop bit, parity check bit and handshake bit.

这2bits的串行通信信号也可称为2bits的异步通信信号,其具体信息详见下表表2。The 2bits serial communication signal may also be called a 2bits asynchronous communication signal, and its specific information is shown in Table 2 below.

信号名称Signal name 信号流向signal flow SerTFGSerTFG 相机串行输出端至图像采集卡串行输入端Camera serial output to frame grabber serial input SerTCSerTC 图像采集卡串行输出端至相机串行输入端Frame grabber serial output to camera serial input

表2Table 2

3、视频数据信号3. Video data signal

视频数据信号部分是Camera Link协议的核心,视频数据信号主要包括5对差分信号,即X0-和X0+、X1-和X1+、X2-和X2+、X3-和X3+、Xclk-和Xclk+。The video data signal part is the core of the Camera Link protocol. The video data signal mainly includes 5 pairs of differential signals, namely X0- and X0+, X1- and X1+, X2- and X2+, X3- and X3+, Xclk- and Xclk+.

视频发送端将28bits的数据信号和1个时钟信号,按7:1的比例将数据转换成5对差分信号,接收端在将5对差分信号转换成28bits的数据信号和1个时钟信号。The video sending end converts the 28bits data signal and 1 clock signal into 5 pairs of differential signals according to the ratio of 7:1, and the receiving end converts the 5 pairs of differential signals into 28bits data signal and 1 clock signal.

在Base模式下,28bits的数据信号中包括4bits视频控制信号和24bits图像数据信号。28bits的图像数据信号按照独立功能进行分类可以分为FVAL信号、LVAL信号、DVAL信号、SPARE信号、PORTA信号、PORTB信号、PORTC信号。In Base mode, the 28bits data signal includes 4bits video control signal and 24bits image data signal. The 28bits image data signal can be classified into FVAL signal, LVAL signal, DVAL signal, SPARE signal, PORTA signal, PORTB signal, PORTC signal according to the independent function classification.

其中4bits视频控制信号分为FVAL信号、LVAL信号、DVAL信号、SPARE信号,这4bits视频控制信号,其具体信息详见下表表3:Among them, the 4bits video control signal is divided into FVAL signal, LVAL signal, DVAL signal, SPARE signal. For the 4bits video control signal, the specific information is shown in Table 3 below:

Figure BDA0001922792280000092
Figure BDA0001922792280000092

Figure BDA0001922792280000101
Figure BDA0001922792280000101

表3table 3

其中,另外24bits数据通过Base模式下开放的3个端口传输,3个端口分别为A端口、B端口和C端口,也称PORTA、PORTB和PORTC,每个端口传送8bits数据。Among them, the other 24bits data is transmitted through the 3 ports opened in the Base mode, the 3 ports are A port, B port and C port, also called PORTA, PORTB and PORTC, each port transmits 8bits data.

在介绍Base模式下的Camera Link协议的工作原理后,具体阐述本发明实施例1中提供的一种光纤传输系统10的组成及工作原理:After introducing the working principle of the Camera Link protocol in the Base mode, the composition and working principle of an optical fiber transmission system 10 provided in Embodiment 1 of the present invention are described in detail:

所述发送装置1包括依次连接的输入模块11、解码模块12、第一主控制器13和第一光电转换模块15。所述发送装置1中的有源元件通过电源装置4取电。The sending device 1 includes an input module 11 , a decoding module 12 , a first main controller 13 and a first photoelectric conversion module 15 which are connected in sequence. The active elements in the transmitting device 1 are powered by the power supply device 4 .

依次经由输入模块11、解码模块12、第一主控制器13和第一光电转换模块15的传输信号属于下行传输信号。依次经由第一光电转换模块15、第一主控制器13、解码模块12和输入模块11的传输信号属于上行传输信号。The transmission signal passing through the input module 11 , the decoding module 12 , the first main controller 13 and the first photoelectric conversion module 15 in sequence belongs to the downlink transmission signal. The transmission signal passing through the first photoelectric conversion module 15 , the first main controller 13 , the decoding module 12 and the input module 11 in sequence belongs to the uplink transmission signal.

输入模块11采用Camera Link协议Base模式下的标准MDR26连接器,输入模块11接收来自工业相机100的LVDS信号并将该信号传递至解码模块12,输入模块11还接收来自解码模块12的相机控制信号和异步通信LVDS信号并将该信号传递至工业相机100。The input module 11 adopts the standard MDR26 connector in the Base mode of the Camera Link protocol. The input module 11 receives the LVDS signal from the industrial camera 100 and transmits the signal to the decoding module 12 . The input module 11 also receives the camera control signal from the decoding module 12 . and asynchronously communicate LVDS signals and deliver the signals to the industrial camera 100 .

如图1所示解码模块12接收来自输入模块11的工业相机100图像LVDS信号,并进行1:7差分串并解码,以得到28bits的数据信号和1bit的SerTFG串行通信信号。28bits的数据信号中包括4bits控制信号和24bits图像数据信号。解码模块12将28bits的数据信号和1bit的SerTFG串行通信信号输出到第一主控制器13中,解码模块12还接收来自第一主控制器13的相机控制信号和SerTC串行通信信号,解码模块12将来自第一主控制器13的相机控制信号和SerTC串行通信信号进行LVDS编码后传输给输入模块11。优选地,解码模块12为解码芯片DS90CR288A。As shown in FIG. 1 , the decoding module 12 receives the image LVDS signal of the industrial camera 100 from the input module 11 and performs 1:7 differential serial-parallel decoding to obtain a 28-bit data signal and a 1-bit SerTFG serial communication signal. The 28bits data signal includes 4bits control signal and 24bits image data signal. The decoding module 12 outputs the 28bits data signal and the 1bit SerTFG serial communication signal to the first main controller 13, the decoding module 12 also receives the camera control signal and the SerTC serial communication signal from the first main controller 13, decodes the The module 12 performs LVDS encoding on the camera control signal and the SerTC serial communication signal from the first main controller 13 and transmits it to the input module 11 . Preferably, the decoding module 12 is a decoding chip DS90CR288A.

第一主控制器13将接收到的来自解码模块12的28bits的数据信号和1bit的SerTFG串行通信信号进行信号处理,进行帧开始、帧结束、帧有效、帧消隐、行开始、行结束、行有效、行消隐状态的自定义协议编码,然后将编码后的第一协议包输入到第一主控制器13内部集成的第一GTX收发器16硬核IP的TX Gearbox输入端,并自动插入K码,再进行8B/10B编码后通过第一GTX收发器16的LVDS输出口TXP/N输出给第一光电转换模块15,输出给第一光电转换模块15的是1lane的高速差分信号;同时第一主控制器13的第一GTX收发器16的输入口RXP/N接收来自第一光电转换模块15输出的LVDS信号,进行8B/10B解码后由第一GTX收发器16中的RX Gearbox输出符合自定义协议的数据包,最后通过自定义协议解码模块把并行的相机控制信号和SerTC串行通信信号从第二协议包中解码出来,并输出给解码模块12;第一主控制器13优选为FPGA主控器,进一步,第一主控制器13优选为XC7K70T/XC7A50T主控芯片。The first main controller 13 performs signal processing on the received 28bits data signal from the decoding module 12 and the 1bit SerTFG serial communication signal, and performs frame start, frame end, frame valid, frame blanking, line start, line end , line-valid, line-blanking state custom protocol encoding, and then input the encoded first protocol packet to the TX Gearbox input end of the first GTX transceiver 16 hard-core IP integrated in the first main controller 13, and The K code is automatically inserted, and after 8B/10B encoding is performed, it is output to the first photoelectric conversion module 15 through the LVDS output port TXP/N of the first GTX transceiver 16, and the output to the first photoelectric conversion module 15 is 1lane high-speed differential signal At the same time, the input port RXP/N of the first GTX transceiver 16 of the first main controller 13 receives the LVDS signal output from the first photoelectric conversion module 15, and after 8B/10B decoding, the RX in the first GTX transceiver 16 is decoded. Gearbox outputs data packets conforming to the custom protocol, and finally decodes the parallel camera control signal and SerTC serial communication signal from the second protocol packet through the custom protocol decoding module, and outputs them to the decoding module 12; the first main controller 13 is preferably an FPGA main controller, and further, the first main controller 13 is preferably an XC7K70T/XC7A50T main control chip.

第一光电转换模块15执行电信号与光信号之间的相互转化,使得第一主控制器13输出的信号能够变成光信号,继而传输到接收装置3。第一光电转换模块15也可将来自接收装置3的光信号转换为电信号。第一光电转换模块15优选为通用的3.125Gbps的单纤双向光纤模块。第一光电转换模块15优选为SFP+接口光纤模块。The first photoelectric conversion module 15 performs mutual conversion between the electrical signal and the optical signal, so that the signal output by the first main controller 13 can be converted into an optical signal, which is then transmitted to the receiving device 3 . The first photoelectric conversion module 15 can also convert the optical signal from the receiving device 3 into an electrical signal. The first photoelectric conversion module 15 is preferably a general 3.125Gbps single-fiber bidirectional optical fiber module. The first photoelectric conversion module 15 is preferably an SFP+ interface optical fiber module.

所述接收装置3包括依次连接的输出模块31、编码模块32、第二主控制器33和第二光电转换模块35。接收装置3中的有源元件通过电源装置4取电。The receiving device 3 includes an output module 31 , an encoding module 32 , a second main controller 33 and a second photoelectric conversion module 35 which are connected in sequence. The active elements in the receiving device 3 are powered by the power supply device 4 .

依次经由输出模块31、编码模块32、第二主控制器33和第二光电转换模块35的传输信号属于下行传输信号。依次经由第二光电转换模块35、第二主控制器33、编码模块32和输出模块31的传输信号属于上行传输信号。The transmission signal passing through the output module 31 , the encoding module 32 , the second main controller 33 and the second photoelectric conversion module 35 in sequence belongs to the downlink transmission signal. The transmission signal passing through the second photoelectric conversion module 35 , the second main controller 33 , the encoding module 32 and the output module 31 in sequence belongs to the uplink transmission signal.

输出模块31采用Camera Link协议Base模式下的标准MDR26连接器,输出模块31接收来自编码模块32的LVDS编码信号并输出给后端图像采集设备200;输出模块31接收来自图像采集设备200的对工业相机100的相机控制信号和异步通信LVDS信号,并将信号传递给编码模块32。The output module 31 adopts the standard MDR26 connector in the Base mode of the Camera Link protocol. The output module 31 receives the LVDS encoded signal from the encoding module 32 and outputs it to the back-end image acquisition device 200; The camera control signal and the LVDS signal of the camera 100 are asynchronously communicated, and the signal is passed to the encoding module 32 .

编码模块32接收来自第二主控制器33的符合相机时序的并行信号,即28bits的数据信号,编码模块32还接收1bit的SerTFG串行通信信号,编码模块32将两种信号进行7:1的差分串行编码,以得到符合Camera Link协议Base模式的LVDS信号,并将该信号输出给输出模块31。编码模块3接收来自输出模块31的相机控制信号和通信信号后进行LVDS到LVTT的串并解码,以获得相机控制信号(CC1-CC4)和SerTC串行通信信号,编码模块3再将相机控制信号(CC1-CC4)和SerTC串行通信信号输送至第二主控制器33。优选地,编码模块32为编码芯片DS90CR287。The encoding module 32 receives a parallel signal from the second main controller 33 that conforms to the camera timing, that is, a 28-bit data signal, and the encoding module 32 also receives a 1-bit SerTFG serial communication signal. Differential serial encoding is performed to obtain an LVDS signal conforming to the Base mode of the Camera Link protocol, and the signal is output to the output module 31 . The encoding module 3 receives the camera control signal and the communication signal from the output module 31 and performs serial-parallel decoding from LVDS to LVTT to obtain the camera control signal (CC1-CC4) and the SerTC serial communication signal. (CC1-CC4) and SerTC serial communication signals are sent to the second main controller 33. Preferably, the encoding module 32 is an encoding chip DS90CR287.

第二主控制器33接收来自编码模块32的相机控制信号和SerTC串行通信信号,并对其进行自定义协议编码,再将编码后的第三协议包发送给第二主控制器33上第二GTX收发器36内的TX Gearbox,第三协议包在TX Gearbox内部进行8B/10B编码后再通过TXP/N口输出给第二光电转换模块35;同时,第二主控制器33上第二GTX收发器36的输入口RXP/N接收来自第二光电转换模块35输出的LVDS信号,再将其进行8B/10B解码后由第二GTX收发器36上的RX Gearbox输出符合自定义协议的第四协议包,第二主控制器33中的自定义解码模块对第四协议包中的图像中帧开始、帧结束、帧有效、帧消隐、行开始、行结束、行有效、行消隐状态进行解码,从而得到并行的28bit图像数据和1bit的SerTFG串行通信信号,第二主控制器33将28bit图像数据和1bit的SerTFG串行通信信号传递给编码模块32。28bits的数据信号中包括4bits视频控制信号和24bits图像数据信号。28bits的图像数据信号按照独立功能进行分类可以分为FVAL信号、LVAL信号、DVAL信号、SPARE信号、PORTA信号、PORTB信号、PORTC信号。第二主控制器33优选为FPGA主控器,进一步,第二主控制器33优选为XC7K70T/XC7A50T主控芯片。The second main controller 33 receives the camera control signal and the SerTC serial communication signal from the encoding module 32 , encodes them with a custom protocol, and then sends the encoded third protocol packet to the second main controller 33 . In the TX Gearbox in the two GTX transceivers 36, the third protocol packet is 8B/10B encoded inside the TX Gearbox and then output to the second photoelectric conversion module 35 through the TXP/N port; The input port RXP/N of the GTX transceiver 36 receives the LVDS signal output from the second photoelectric conversion module 35, and after 8B/10B decoding, the RX Gearbox on the second GTX transceiver 36 outputs the first LVDS signal conforming to the custom protocol. Four protocol packets, the user-defined decoding module in the second main controller 33 can detect the frame start, frame end, frame valid, frame blanking, line start, line end, line valid, and line blanking in the image in the fourth protocol packet The second main controller 33 transmits the 28-bit image data and the 1-bit SerTFG serial communication signal to the encoding module 32. The 28-bit data signal includes 4bits video control signal and 24bits image data signal. The 28bits image data signal can be classified into FVAL signal, LVAL signal, DVAL signal, SPARE signal, PORTA signal, PORTB signal, PORTC signal according to the independent function classification. The second main controller 33 is preferably an FPGA main controller, and further, the second main controller 33 is preferably an XC7K70T/XC7A50T main control chip.

第二光电转换模块35执行电信号与光信号之间的相互转化,第二光电转换模块35将来自发送装置1的光信号转换为1lane的高速差分电信号,并输送给第二主控制器33。第二光电转换模块35将来自第二主控制器33的电信号转化为光信号传递给发送装置1。第二光电转换模块35优选为通用的3.125Gbps的单纤双向光纤模块。第二光电转换模块35优选为SFP+接口光纤模块。The second photoelectric conversion module 35 performs mutual conversion between the electrical signal and the optical signal. The second photoelectric conversion module 35 converts the optical signal from the transmitting device 1 into a high-speed differential electrical signal of 1 lane, and sends it to the second main controller 33 . The second photoelectric conversion module 35 converts the electrical signal from the second main controller 33 into an optical signal and transmits it to the sending device 1 . The second photoelectric conversion module 35 is preferably a general 3.125Gbps single-fiber bidirectional optical fiber module. The second photoelectric conversion module 35 is preferably an SFP+ interface optical fiber module.

本发明实施例中,发送装置1对Camera Link协议Base模式下的任意分辨率和帧频的图像数据均可自适应编码,在第一主控制器13内对数据重新组合,使之适应第一GTX收发器的输入格式要求并能够自动插入k码,最大限度提高有效传输带宽;In the embodiment of the present invention, the sending device 1 can adaptively encode image data of any resolution and frame rate in the Base mode of the Camera Link protocol, and recombine the data in the first main controller 13 to make it suitable for the first main controller 13. The input format of the GTX transceiver requires and can automatically insert the k code to maximize the effective transmission bandwidth;

对接收装置3发送过来的相机控制信号和异步通讯信号可进行自定义解码,可实现任意波特率下的异步通讯。The camera control signal and the asynchronous communication signal sent by the receiving device 3 can be decoded by self-definition, and asynchronous communication at any baud rate can be realized.

接收装置3对发送装置1发送过来的光信号进行光电转换后进入第二主控制器33,经过第二GTX收发器后得到自定义协议的图像数据,在第二主控制器33内部解码后就得到了与发送装置1输入图像完全相同分辨率、帧频、位宽的图像数据,并通过编码芯片输出到图像采集设备200;同时,接收装置3将收到的来自图像采集设备200的相机控制信号和异步通讯信号进行自定义编码,经第二GTX收发器的8B/10B编码后发送给光纤模块进行光电转换,通过光纤传输给发送装置1,可实现任意通讯波特率下的双向通讯。The receiving device 3 performs photoelectric conversion on the optical signal sent by the transmitting device 1 and then enters the second main controller 33. After passing through the second GTX transceiver, the image data of the custom protocol is obtained. The image data with the same resolution, frame rate and bit width as the input image of the sending device 1 is obtained, and is output to the image acquisition device 200 through the coding chip; at the same time, the receiving device 3 controls the received camera from the image acquisition device 200. The signal and the asynchronous communication signal are self-coded and sent to the optical fiber module for photoelectric conversion after being encoded by the 8B/10B of the second GTX transceiver, and transmitted to the sending device 1 through the optical fiber, which can realize two-way communication at any communication baud rate.

光纤传输介质2使用单根LC接口(但不仅限于该种类型和数量)的光纤即可完成双向通讯。The optical fiber transmission medium 2 can complete bidirectional communication by using a single optical fiber with an LC interface (but not limited to this type and quantity).

发送装置1和接收装置3采用紧凑型设计,体积小,方便安装。发送装置1和接收装置3的主体部分尺寸为:其宽为40mm,其长为110mm,其高为15mm。The transmitting device 1 and the receiving device 3 are of compact design, small in size, and easy to install. The dimensions of the main body of the transmitting device 1 and the receiving device 3 are as follows: the width is 40 mm, the length is 110 mm, and the height is 15 mm.

图4为本发明实施例中光纤传输方法的流程图。如图4所示,本发明还提供一种光纤传输方法,其包括上行传输和下行传输,所述下行传输包括以下步骤:FIG. 4 is a flowchart of an optical fiber transmission method in an embodiment of the present invention. As shown in Figure 4, the present invention also provides a kind of optical fiber transmission method, it comprises uplink transmission and downlink transmission, and described downlink transmission comprises the following steps:

步骤S1,对符合Camera Link协议中Base模式下的下行的数据信号和SerTFG串行通信信号进行自定义协议编码,以获取第一协议包;Step S1, carry out self-defined protocol encoding to the downlink data signal and SerTFG serial communication signal in the Base mode in the Camera Link protocol to obtain the first protocol packet;

步骤S2,对所述第一协议包插入K码,再进行8B/10B编码,以获得下行的1lane高速差分信号,进而所述下行的1lane高速差分信号转换成光信号传输;Step S2, inserting the K code into the first protocol packet, and then performing 8B/10B encoding to obtain a downlink 1lane high-speed differential signal, and then the downlink 1lane high-speed differential signal is converted into optical signal transmission;

步骤S3,将光信号按照与步骤S1至步骤S2相对称的解码方式解码;Step S3, decoding the optical signal according to a decoding method symmetric to steps S1 to S2;

所述上行传输包括以下步骤:The uplink transmission includes the following steps:

步骤S4,对符合Camera Link协议中Base模式下的上行的相机控制信号和SerTC串行通信信号进行自定义协议编码,以获取第三协议包;Step S4, performing self-defined protocol encoding on the upstream camera control signal and the SerTC serial communication signal in the Base mode in the Camera Link protocol to obtain a third protocol packet;

步骤S5,对第三协议包进行8B/10B编码,以获得上行的1lane高速差分信号,进而将所述上行的1lane高速差分信号转换成光信号传输;Step S5, 8B/10B encoding is performed on the third protocol packet to obtain an upstream 1lane high-speed differential signal, and then the upstream 1lane high-speed differential signal is converted into an optical signal for transmission;

步骤S6,将光信号按照与步骤S4至步骤S5相对称的解码方式解码。In step S6, the optical signal is decoded according to a decoding method symmetric to steps S4 to S5.

所述自定以协议编码过程是对信号进行帧开始、帧结束、帧有效、帧消隐、行开始、行结束、行有效和行消隐状态中的一种或几张进行自定义协议编码过程。The self-defined protocol encoding process is to perform self-defined protocol encoding on one or more of the frame start, frame end, frame valid, frame blanking, line start, line end, line valid and line blanking states of the signal. process.

下行传输28bits的数据信号和1bit的SerTFG串行通信信号,其原理为:Downlink transmission of 28bits data signal and 1bit SerTFG serial communication signal, the principle is:

步骤S11中,具体地,将28bits的数据信号和1bit的SerTFG串行通信信号进行信号处理,进行帧开始、帧结束、帧有效、帧消隐、行开始、行结束、行有效和行消隐状态的一种或几种进行自定义协议编码。In step S11, specifically, the 28bits data signal and the 1bit SerTFG serial communication signal are subjected to signal processing to perform frame start, frame end, frame valid, frame blanking, line start, line end, line valid and line blanking. One or more of the states are encoded in a custom protocol.

步骤S12中,继续将编码后的第一协议包下行传输,再自动插入K码,进而进行8B/10B编码后通过收发器输出给第一光电转换模块,输出给第一光电转换模块15的是1lane的高速差分信号。In step S12, continue to downlink the encoded first protocol packet, and then automatically insert the K code, and then perform 8B/10B encoding and output to the first photoelectric conversion module through the transceiver, and the output to the first photoelectric conversion module 15 is: 1lane high-speed differential signaling.

步骤S13,对称解码以还原出与步骤S1中相同的28bits的数据信号和1bit的SerTFG串行通信信号。Step S13, symmetrical decoding to restore the same 28-bit data signal and 1-bit SerTFG serial communication signal as in step S1.

上行传输相机控制信号和SerTC串行通信信号,其原理为:Uplink transmission of camera control signal and SerTC serial communication signal, the principle is as follows:

步骤S14,具体地,将相机控制信号和SerTC串行通信信号进行自定义协议编码。Step S14, specifically, the camera control signal and the SerTC serial communication signal are encoded with a custom protocol.

步骤S15,继续将编码后的第三协议包进行8B/10B编码后输出给第二光电转换模块35;进而将所述上行的1lane高速差分信号转换成光信号传输。Step S15, continue to perform 8B/10B encoding on the encoded third protocol packet and output it to the second photoelectric conversion module 35; and then convert the upstream 1lane high-speed differential signal into an optical signal for transmission.

步骤S16,对称解码以还原出与步骤S4中相同的相机控制信号和SerTC串行通信信号。Step S16, symmetrical decoding to restore the same camera control signal and SerTC serial communication signal as in step S4.

本发明提供的一种光纤传输方法的有益效果在于:The beneficial effects of the optical fiber transmission method provided by the present invention are:

1、通过该方法对Camera Link协议Base模式下的任意分辨率和帧频的图像数据均可自适应编码,然后再插入K码,这样能够最大限度提高有效传输带宽。1. Through this method, the image data of any resolution and frame rate in the Base mode of the Camera Link protocol can be adaptively encoded, and then K code is inserted, which can maximize the effective transmission bandwidth.

2、利用光纤传输,噪声干扰小,传输速率高。2. Using optical fiber transmission, the noise interference is small and the transmission rate is high.

3、通过该方法对发送过来的相机控制信号和异步通讯信号可进行自定义解码,可实现任意波特率下的异步通讯。3. By this method, the camera control signal and asynchronous communication signal sent over can be decoded by self-definition, and asynchronous communication at any baud rate can be realized.

以上仅为本发明的较佳实施例,对本发明而言仅仅是说明性的,而非限制性的。本发明中各部件的结构和连接方式等都是可以有所变化的,凡是在本发明技术方案的基础上进行的等同变换和改进,均不应排除在本发明的保护范围之外。The above are only preferred embodiments of the present invention, which are merely illustrative rather than restrictive for the present invention. The structure and connection mode of each component in the present invention can be changed to some extent, and all equivalent transformations and improvements made on the basis of the technical solutions of the present invention should not be excluded from the protection scope of the present invention.

Claims (5)

1. An optical fiber transmission system comprising an optical fiber transmission medium, characterized in that it further comprises:
the device comprises a transmitting device, a receiving device and a transmitting device, wherein the transmitting device is used for carrying out downlink transmission coding on a data signal and a SerTFG serial communication signal which accord with a Base mode in a Camera L ink protocol to obtain a first downlink signal;
the receiving device is used for carrying out symmetrical decoding on the first downlink signal and also carrying out uplink transmission coding on a Camera control signal and a SerTC serial communication signal which conform to the Base mode in the Camera L ink protocol so as to obtain a first uplink signal;
the first downlink signal and the first uplink signal are transmitted through the optical fiber transmission medium;
the transmitting device comprises a first main controller and a first photoelectric conversion module which are connected with each other;
the first master controller is used for carrying out protocol coding on the data signals of the downlink and the SerTFG serial communication signals in the Base mode in the Camera L ink protocol to obtain a first protocol packet, wherein the customized behaviors comprise one or more of a frame start state, a frame end state, a frame effective state, a frame blanking state, a line start state, a line end state, a line effective state and a line blanking state;
the first main controller inserts a K code into the first protocol packet through a first GTX transceiver integrated in the first main controller, and the first GTX transceiver performs 8B/10B coding on the first protocol packet inserted with the K code to obtain a downlink differential signal; the downlink differential signal is transmitted to the first photoelectric conversion module by the first main controller;
the first main controller further symmetrically decodes the uplink differential signal through a first GTX transceiver integrated therein to acquire an uplink camera control signal and a SerTC serial communication signal from a second protocol packet;
the transmitting device comprises an input module, a decoding module, the first main controller and the first photoelectric conversion module which are connected in sequence;
the input module is arranged between the industrial camera and the decoding module, and is used for transmitting L VDS signals from the industrial camera in a downstream mode;
the decoding module is arranged between the input module and the first main controller, and is used for converting L VDS signals from the industrial Camera into data signals and SerTFG serial communication signals in a Base mode in accordance with Camera L ink protocol and continuing to transmit the signals downstream to the first main controller;
the decoding module further first L VDS encoding upstream camera control signals and SerTC serial communication signals from the first master controller, the decoding module transmitting signals encoded via a first L VDS to the input module, the input module being capable of continuing to pass signals encoded via a first L VDS to the industrial camera;
the receiving device comprises a second main controller and a second photoelectric conversion module which are connected with each other;
the second photoelectric conversion module is used for converting the optical signal from the sending device back to a downlink differential signal and transmitting the downlink differential signal to the second main controller; the second photoelectric conversion module is further configured to convert the uplink differential signal generated by the second main controller into an optical signal sent to a sending device;
the second main controller is used for carrying out self-defined protocol coding on an uplink Camera control signal and a SerTC serial communication signal which accord with a Base mode in a Camera L ink protocol to obtain a third protocol packet, and the second main controller carries out 8B/10B coding on the third protocol packet through a second GTX transceiver integrated in the second main controller to obtain an uplink differential signal;
the second main controller further symmetrically decodes the downlink differential signal from the transmitting device through the second GTX transceiver to obtain a downlink data signal and a SerTFG serial communication signal;
the receiving device comprises an output module, a coding module, the second main controller and the second photoelectric conversion module which are connected in sequence;
the output module is arranged between the coding module and the image acquisition equipment, and is used for transmitting the second L VDS coding signal from the coding module to the image acquisition equipment in a downlink manner;
the encoding module is arranged between the output module and the second main controller, and is used for converting an upstream L VDS signal from the image acquisition equipment into an upstream Camera control signal and a SerTC serial communication signal which are in accordance with a Base mode in a Camera L ink protocol, and continuously transmitting the signals to the second main controller;
the encoding module also second L VDS encodes the downstream data signals and SerTFG serial communication signals from the second master controller, the encoding module transmitting signals encoded via a second L VDS to the output module.
2. The optical fiber transmission system according to claim 1, wherein the data signals conforming to the Base mode of the Camera L ink protocol include 28bits of data signals, the 28bits of data signals include 4bits of video control signals and 24bits of image data signals, the 4bits of video control signals are FVA L signals, L VA L signals, DVA L signals and SPARE signals, respectively, the 24bits of image data signals are PORTA signals, PORTB signals and PORTC signals, and the 24bits of image data signals are transmitted through 3 ports.
3. An optical fiber transmission system according to claim 1, wherein each of the transmitting device and the receiving device is provided with a photoelectric conversion module, and the photoelectric conversion module comprises a transceiver-integrated optical fiber module with SFP or SFP + interface; the optical fiber transmission medium is a single-mode or multi-mode optical fiber.
4. An optical fiber transmission system according to claim 1, wherein the transmitting device and the receiving device are respectively provided with a first main controller and a second main controller, and the first main controller and the second main controller are XC7K70T/XC7a50T main control chips;
the decoding module on the transmitting device is a DS90CR288A decoding chip, and the encoding module on the receiving device is a DS90CR287 encoding chip.
5. An optical fiber transmission method applied to the optical fiber transmission system according to any one of claims 1 to 4, comprising a downstream transmission and an upstream transmission, wherein the downstream transmission comprises the following steps:
step S1, carrying out self-defined protocol coding on the downlink data signal and the SerTFG serial communication signal in the Base mode in the Camera L ink protocol to obtain a first protocol packet;
step S2, inserting K codes into the first protocol packet, and then carrying out 8B/10B coding to obtain a downlink 1lane high-speed differential signal, and further converting the downlink 1lane high-speed differential signal into an optical signal for transmission;
step S3, decoding the optical signal in a symmetrical decoding manner to the steps S1 to S2;
the uplink transmission comprises the following steps:
step S4, carrying out self-defined protocol coding on the Camera control signal and the SerTC serial communication signal which are in the uplink and accord with the Base mode in the Camera L ink protocol to obtain a third protocol packet;
step S5, 8B/10B coding is carried out on the third protocol packet to obtain the uplink 1lane high-speed differential signal, and then the uplink 1lane high-speed differential signal is converted into an optical signal for transmission;
step S6, decoding the optical signal in a symmetrical decoding manner to the steps S4 to S5;
the self-defined protocol coding process is a self-defined protocol coding process for one or more of the states of frame start, frame end, frame valid, frame blanking, line start, line end, line valid and line blanking of the signal.
CN201811602238.6A 2018-12-26 2018-12-26 Optical fiber transmission system and transmission method Expired - Fee Related CN109495728B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811602238.6A CN109495728B (en) 2018-12-26 2018-12-26 Optical fiber transmission system and transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811602238.6A CN109495728B (en) 2018-12-26 2018-12-26 Optical fiber transmission system and transmission method

Publications (2)

Publication Number Publication Date
CN109495728A CN109495728A (en) 2019-03-19
CN109495728B true CN109495728B (en) 2020-07-17

Family

ID=65712345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811602238.6A Expired - Fee Related CN109495728B (en) 2018-12-26 2018-12-26 Optical fiber transmission system and transmission method

Country Status (1)

Country Link
CN (1) CN109495728B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110176960B (en) * 2019-06-27 2023-11-17 成都光创联科技有限公司 Novel single-fiber bidirectional multichannel input optical module
CN112995614B (en) * 2019-12-13 2023-04-18 中国船舶重工集团公司第七0九研究所 Video fiber communication protocol architecture based on FPGA and method and system for checking retransmission
CN111464799B (en) * 2020-03-04 2021-07-02 西安电子科技大学 A real-time transmission system of images between boards based on optical fiber

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102244543A (en) * 2011-06-13 2011-11-16 中国科学院长春光学精密机械与物理研究所 Digital optical terminal with Base-mode Camera Link interface
CN104618697A (en) * 2015-01-28 2015-05-13 中国科学院光电技术研究所 FPGA-based full-configuration Camera link optical fiber real-time image optical transceiver
CN106664385A (en) * 2014-07-23 2017-05-10 株式会社藤仓 Image transmission/reception system, active cable monitoring method, active cable control method, image transmission device, image reception device, and active cable
CN107426551A (en) * 2016-05-24 2017-12-01 中国科学院长春光学精密机械与物理研究所 A kind of syntype Cameralink digital picture optical transmitter and receiver receiving terminals and transmitting terminal based on FPGA

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130265399A1 (en) * 2012-04-10 2013-10-10 California Institute Of Technology Robotic adaptive optics and laser systems and methods for correcting atmospheric distortion
CN102833546B (en) * 2012-08-21 2015-03-04 中国科学院光电技术研究所 High-speed image compression method and device based on wavelet sub-band interleaving optimal quantization
CN103595924B (en) * 2013-06-18 2016-08-10 南京理工大学 A cameralink-based image fusion system and its method
CN104660470A (en) * 2015-03-03 2015-05-27 北京华力创通科技股份有限公司 Device and method for detecting Rapid IO bus protocol
CN104754303B (en) * 2015-03-24 2017-10-03 中国科学院长春光学精密机械与物理研究所 Multi-channel Transmission System and transmission method with high bandwidth, strong anti-interference
CN106230509A (en) * 2016-08-10 2016-12-14 武汉虹信通信技术有限责任公司 A kind of method and system utilizing ten thousand mbit ethernet transmission wireless signals
CN206461622U (en) * 2017-02-21 2017-09-01 广西师范大学 A kind of OCDMA local side light R-T units based on GTX
CN107800481A (en) * 2017-09-11 2018-03-13 中国电子科技集团公司第四十研究所 A kind of high-speed digitization Fiber isolation transmitting device and method
CN107888567B (en) * 2017-10-23 2020-08-04 浙江大华技术股份有限公司 Method and device for transmitting composite multimedia signal
CN108900244B (en) * 2018-06-27 2021-02-26 电子科技大学 A method for monitoring and testing FC optical interface data and related data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102244543A (en) * 2011-06-13 2011-11-16 中国科学院长春光学精密机械与物理研究所 Digital optical terminal with Base-mode Camera Link interface
CN106664385A (en) * 2014-07-23 2017-05-10 株式会社藤仓 Image transmission/reception system, active cable monitoring method, active cable control method, image transmission device, image reception device, and active cable
CN104618697A (en) * 2015-01-28 2015-05-13 中国科学院光电技术研究所 FPGA-based full-configuration Camera link optical fiber real-time image optical transceiver
CN107426551A (en) * 2016-05-24 2017-12-01 中国科学院长春光学精密机械与物理研究所 A kind of syntype Cameralink digital picture optical transmitter and receiver receiving terminals and transmitting terminal based on FPGA

Also Published As

Publication number Publication date
CN109495728A (en) 2019-03-19

Similar Documents

Publication Publication Date Title
CN109495728B (en) Optical fiber transmission system and transmission method
JP5789269B2 (en) Video management and control of home multimedia network
CN101039148B (en) Optical module and method and network equipment for supporting GE optical connector and FE optical connector
CN112865880B (en) System and method for one-way data transmission through optical port
US12174779B2 (en) FPGA-based USB 3.0/3.1 control system
CN113765582A (en) System and method for realizing one-way transmission data of domestic-design redundant optical port
CN109257513A (en) A kind of remote sensing images Transmission system and method based on SerDes
CN101226672A (en) Communication control alarm device
CN107288624A (en) A kind of underground high speed data bus device suitable for acoustic logging instrument
US9071373B2 (en) Multiplexed serial media independent interface
CN110708119A (en) Multi-path 1553B bus optical fiber relay device and method
CN214256489U (en) Interactive mixed light cascade matrix
CN101359963B (en) Dual Ethernet optical fiber transceiver, transceiving method and system
CN201467138U (en) A Dual Mode Communication Controller Based on Dynamic Channel Estimation
CN117640902A (en) Signal extension device
CN216565179U (en) Hundred-million visible light one-way network card of PCIe interface
CN203166928U (en) Two-way optical transmit-receive one-piece module based on SFP encapsulation
CN100518140C (en) SPI4II interface remote transmission realizing method and apparatus
CN104243037A (en) Fiber optical Ethernet communication interface for magnetic resonance imaging system
CN210111996U (en) Device for realizing communication between PLC carrier module and wireless communication module
CN202331445U (en) High-speed data transmission device
CN103179012A (en) FlexRay network node adopting iCoupler magnetic isolation protecting measures
CN203761405U (en) Transmitting and receiving integrated optical module and optical communication system
CN101211329A (en) Serial port connecting circuit
CN201689889U (en) Cascade circuit for physical layer of Ethernet

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200717