Patent ID: 11876882
Assignee: MOTORCOMM ELECTRONIC TECHNOLOGY CO., LTD.
Field: Digital communication (Electrical engineering)
Classification: CPC H | IPC H

Claim 0:
1. A method for optoelectronic matching, comprising a first optoelectronic device and a second optoelectronic device, wherein the first optoelectronic device is connected to the second optoelectronic device via optical fibers, an electrical port of the first optoelectronic device is connected to a first electrical port of a first opposite end, an electrical port of the second optoelectronic device is connected to a second electrical port of a second opposite end;
the method comprises the steps of:
S1, enabling the electrical port of the first optoelectronic device to auto-negotiate with the first electrical port to obtain an highest supported speed of the first electrical port, and the first electrical port and the opposite end establishing a connection at a current speed of the first electrical port; and enabling an electrical port of the second optoelectronic device to auto-negotiate with the second electrical port to obtain an highest supported speed of the second electrical port, and the second electrical port and the opposite end establishing a connection at a current speed of the second electrical port;
S2, encapsulating, by an optical port of the first optoelectronic device, the current speed of the first optoelectronic device and the negotiated highest supported speed of the first electrical port in transmission parameters of a transmission protocol, and sending the same to the optical port of the second optoelectronic device; encapsulating, by the optical port of the second optoelectronic device, a current speed of the second optoelectronic device and the negotiated highest supported speed of the second electrical port in the transmission parameters of the transmission protocol, and sending the same to the optical port of the first optoelectronic device;
S3, obtaining, by the first optoelectronic device and the second optoelectronic device, a target speed based on the highest supported speed of the first electrical port and the highest supported speed of the second electrical port, respectively, wherein the target speed is the greatest common divisor of the highest supported speed of the first electrical port and the highest supported speed of the second electrical port;
S4, determining whether the current speed of the first optoelectronic device and the current speed of the second optoelectronic device are equal to the target speed, respectively;
if the current speeds are equal to the target speed, the current speeds are maintained;
if the current speeds are not equal to the target speed, proceed to S5;
S5, configuring, by the first optoelectronic device and the second optoelectronic device, the speeds of its electrical port and optical port to the target speed, respectively, and then the first optoelectronic device and the first electrical port negotiating automatically, and the second optoelectronic device and the second electrical port negotiating automatically, to establish a connection.