The invention discloses an optical
interconnection device and method supporting an MIPI CSI-2 protocol D-
PHY interface, and belongs to the technical field of high-speed
serial communication. The device comprises a first D-
PHY interface unit, a second D-
PHY interface unit, a packaging / unpackaging mapping unit, a
bidirectional communication link, a first I2C interface unit and a second I2C interface unit. A
communication link adopts an
optical fiber or a photoelectric composite cable, uplink data is subjected to electric-optical conversion and then is subjected to single-
fiber / double-
fiber transmission, downlink control signals are transmitted back through the
optical fiber or the cable, and
remote power supply is synchronously realized. The encapsulation mapping unit encapsulates the multi-channel video
stream and the state information of the uplink
communication link into a single-channel high-speed
serial code stream, and the de-encapsulation mapping unit recovers the original protocol multi-channel video
data stream and the state information of the uplink
communication link; and selectable level
adaptation units at the two ends of the link complete
signal matching. According to the invention, the long-distance and low-error-code transmission of the camera of the D-PHY interface of the MIPI CSI-2 protocol is realized, the state of an
interconnection link can be monitored in real time, the anti-EMI performance is strong, the
cascade connection of multiple cameras can be supported, the weight of a wire harness is effectively reduced, the vehicle regulation environment requirements of-40 DEG C to + 125 DEG C are met, the problems of
high bandwidth, long distance, multi-device
interconnection and the like are solved, and the device is suitable for the scenes of vehicle-mounted ADAS, industrial vision and the like.