CN109889272B - Optical module and method and system for automatically compatible low rate thereof - Google Patents

Optical module and method and system for automatically compatible low rate thereof Download PDF

Info

Publication number
CN109889272B
CN109889272B CN201910119743.3A CN201910119743A CN109889272B CN 109889272 B CN109889272 B CN 109889272B CN 201910119743 A CN201910119743 A CN 201910119743A CN 109889272 B CN109889272 B CN 109889272B
Authority
CN
China
Prior art keywords
rate
optical module
receiving
sending
hardware
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.)
Active
Application number
CN201910119743.3A
Other languages
Chinese (zh)
Other versions
CN109889272A (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.)
Dongguan Mentech Optical and Magnetic Co Ltd
Original Assignee
Dongguan Mentech Optical and Magnetic Co Ltd
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 Dongguan Mentech Optical and Magnetic Co Ltd filed Critical Dongguan Mentech Optical and Magnetic Co Ltd
Priority to CN201910119743.3A priority Critical patent/CN109889272B/en
Publication of CN109889272A publication Critical patent/CN109889272A/en
Application granted granted Critical
Publication of CN109889272B publication Critical patent/CN109889272B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Optical Communication System (AREA)

Abstract

The invention discloses a method for automatically compatible low speed of an optical module, which is applied to MCU and comprises the following steps: automatically reading the level values of a hardware rate selection receiving pin and a hardware rate selection sending pin; automatically acquiring a receiving rate software register value and a sending rate software register value in a host; when any one of two values of a register value of receiving rate software and a level value of a hardware rate selection receiving pin is equal to a first level value, automatically selecting the receiving rate of the optical module as a high rate, or else, selecting the receiving rate as a low rate; when any one of the two values of the sending rate software register value and the level value of the hardware rate selection sending pin is equal to the first level value, the sending rate of the optical module is automatically selected to be high rate, otherwise, the sending rate is selected to be low rate. By applying the scheme of the application, the switching of the optical module rate can be conveniently carried out. The application also discloses an optical module and a system for the optical module to be automatically compatible with low speed, and the optical module and the system have corresponding effects.

Description

Optical module and method and system for automatically compatible low rate thereof
Technical Field
The invention relates to the technical field of optical communication, in particular to an optical module and a method and a system for automatically compatible low rate of the optical module.
Background
Optical modules are optoelectronic devices that perform photoelectric and electro-optical conversion, and are generally classified into SFP optical modules, SFP + optical modules, SFF optical modules, and the like, depending on the package.
Generally, the same optical module only supports one fixed rate, and as user traffic is continuously developed, in many occasions, the user traffic may need to use two communication rates, namely, a high communication rate and a low communication rate. In order to enable switching of communication rates, a user generally needs to purchase a high-rate optical module and a low-rate optical module, and when switching of communication rates is required, the original optical module may be removed and replaced with a new optical module. However, since optical modules with two communication rates need to be purchased, the service implementation cost of the user is high. However, when a user switches the speed, the user needs to connect the related parameter adjusting device with the related pin of the optical module internal chip, and then manually set and adjust the related parameter of the optical module internal chip, which is complex to operate and has high technical requirements on the user.
In summary, how to enable a user to conveniently and effectively switch the speed of an optical module is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide an optical module and a method and a system for automatically compatible with low speed so as to conveniently and effectively switch the speed of the optical module.
In order to solve the technical problems, the invention provides the following technical scheme:
a method for automatic compatibility of low rate of optical module is applied to MCU of optical module, including:
automatically reading level values of a hardware rate selection receiving pin and a hardware rate selection sending pin; the hardware rate selection receiving pin and the hardware rate selection sending pin are both connected with a host;
automatically acquiring a receiving rate software register value and a sending rate software register value in the host through a communication bus connected with the host;
when any one of the two values of the register value of the receiving rate software and the level value of the hardware rate selection receiving pin is equal to a first level value, automatically selecting the receiving rate of the optical module as a high rate, or else, automatically selecting the receiving rate of the optical module as a low rate;
and when any one of the two values of the sending rate software register value and the level value of the hardware rate selection sending pin is equal to the first level value, automatically selecting the sending rate of the optical module as a high rate, or automatically selecting the sending rate of the optical module as a low rate.
Preferably, the first level value is 1.
Preferably, the first level value is 0.
Preferably, the automatically selecting the receiving rate of the optical module as a high rate includes:
automatically opening a CDR of a data receiving module in the optical module, and selecting the receiving rate of the optical module as a high rate;
the automatically selecting the receiving rate of the optical module as a low rate includes:
and automatically closing the CDR of the data receiving module, and selecting the receiving rate of the optical module as a low rate.
Preferably, the communication bus is an I2C communication bus, the hardware rate selection receiving pin is an RS0 pin of the optical module, and the hardware rate selection transmitting pin is an RS1 pin of the optical module.
Preferably, the method further comprises the following steps:
and when the receiving rate of the optical module is judged to be different from the sending rate of the optical module, sending prompt information to the host.
A system for automatic compatibility of low speed of optical module is applied to MCU of optical module, including:
the hardware value acquisition module is used for automatically reading the level values of the hardware rate selection receiving pin and the hardware rate selection sending pin; the hardware rate selection receiving pin and the hardware rate selection sending pin are both connected with a host;
the software numerical value acquisition module is used for automatically acquiring a receiving rate software register value and a sending rate software register value in the host through a communication bus connected with the host;
a receiving rate selecting module, configured to automatically select a receiving rate of an optical module as a high rate when any one of two values, that is, a register value of the receiving rate software and a level value of the hardware rate selection receiving pin is equal to a first level value, or automatically select the receiving rate of the optical module as a low rate;
and the sending rate selection module is used for automatically selecting the sending rate of the optical module as a high rate when any one of the two values of the sending rate software register value and the level value of the hardware rate selection sending pin is equal to the first level value, or automatically selecting the sending rate of the optical module as a low rate.
Preferably, the first level value is 1.
Preferably, the method further comprises the following steps:
and the prompt information output module is used for sending prompt information to the host when judging that the receiving rate of the optical module is different from the sending rate of the optical module.
A light module which when executed performs the steps of the method of any of the above claims for automatic compatibility with low rates.
The technical scheme provided by the embodiment of the invention is applied to the MCU of the optical module, and comprises the following steps: automatically reading level values of a hardware rate selection receiving pin and a hardware rate selection sending pin; the hardware rate selection receiving pin and the hardware rate selection sending pin are both connected with the host; automatically acquiring a receiving rate software register value and a sending rate software register value in a host through a communication bus connected with the host; when any one of two values of a register value of the receiving rate software and a level value of a hardware rate selection receiving pin is equal to a first level value, automatically selecting the receiving rate of the optical module as a high rate, or automatically selecting the receiving rate of the optical module as a low rate; when any one of the two values of the register value of the sending rate software and the level value of the hardware rate selection sending pin is equal to the first level value, the sending rate of the optical module is automatically selected as a high rate, otherwise, the sending rate of the optical module is automatically selected as a low rate.
In the scheme of the application, because the MCU can automatically read the level values of the hardware rate selection receiving pin and the hardware rate selection sending pin and can automatically acquire the receiving rate software register value and the sending rate software register value in the host, when a user needs to switch the receiving/sending rate of the optical module, the user only needs to select the receiving/sending rate on the host, and the MCU can automatically determine the receiving/sending rate of the optical module according to the hardware rate selection value and the software register value and then automatically set, so that the user can conveniently and effectively switch the rate of the optical module. Meanwhile, the receiving rate of the optical module is determined by combining the level value of the hardware rate selection receiving pin and the receiving rate software register value, the sending rate of the optical module is determined by combining the level value of the hardware rate selection sending pin and the sending rate software register value, and the service of a user usually runs in a high-rate mode and only needs to run in a low-rate mode in a few occasions such as changes of the using environment of a client and the like.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating an implementation of a method for automatically compatible low-rate optical modules according to the present invention;
FIG. 2 is a schematic diagram of the connection between the MCU and the host according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an optical module auto-compatible low-rate system according to the present invention.
Detailed Description
The core of the invention is to provide a method for automatically compatible low speed of the optical module, so that a user can conveniently and effectively switch the speed of the optical module.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating an implementation of a method for an optical module to automatically accommodate a low rate, where the method is applied to an MCU (Micro controller Unit) of the optical module, and may include the following steps:
step S101: automatically reading level values of a hardware rate selection receiving pin and a hardware rate selection sending pin; the hardware rate selection receiving pin and the hardware rate selection sending pin are both connected with the host.
Referring to fig. 2, in fig. 2, an RS0 pin of the MCU of the optical module is used as a hardware rate selection receiving pin, and an RS1 pin of the MCU is used as a hardware rate selection transmitting pin. It should be noted that, considering that the existing RS0 pin and RS1 pin are usually idle, they are selected for the solution of the present application, and in other embodiments, other pins may be selected according to actual needs to implement the solution of the present application.
When a user needs to perform rate switching of the optical module, the user only needs to send a related rate selection instruction to the host, for example, the user clicks an option of "receiving rate is high" displayed on the host, the host can obtain the corresponding receiving rate selection instruction, and then the level value of the hardware rate selection receiving pin is set as the first level value, and meanwhile, the receiving rate software register value is also set as the first level value. Correspondingly, when the user clicks the option of 'sending rate is high', the host can acquire the corresponding sending rate selection instruction, and then the level value of the hardware rate selection sending pin is set as the first level value, and meanwhile, the sending rate software register value is set as the first level value.
The voltage of the hardware rate selective receiving pin may be high level or low level, and when the voltage is high level, that is, the level value of the hardware rate selective receiving pin is 1, and when the voltage is low level, the level value of the hardware rate selective receiving pin is 0. Accordingly, the level value of the hardware rate selection transmit pin may be 1 or 0.
Step S102: and automatically acquiring the receiving rate software register value and the sending rate software register value in the host through a communication bus connected with the host.
Under normal conditions, the receiving rate software register value obtained by the MCU is the same as the level value of the hardware rate selection receiving pin, that is, when the user switches the receiving rate of the optical module, for example, the receiving rate of the optical module selected by the user at the host end is a high rate, the receiving rate software register value and the level value of the hardware rate selection receiving pin are both equal to the first level value. Accordingly, for example, when the user selects the receiving rate of the optical module to be a low rate at the host, the receiving rate software register value and the level value of the hardware rate selection receiving pin are both switched, for example, both are equal to the second level value.
Of course, under normal conditions, the sending rate software register value obtained by the MCU is the same as the level value of the hardware rate selection sending pin.
The receive rate software register values in the host are typically stored in the registers Byte 110, bit3, and the transmit rate software register values are typically stored in the registers Byte 118, bit 3. The communication bus may also be set and selected according to actual needs, for example, as shown in fig. 2, the communication bus may be selected as an Inter-Integrated Circuit (I2C) communication bus which is widely used.
Step S103: when any one of the two values of the register value of the receiving rate software and the level value of the hardware rate selection receiving pin is equal to the first level value, the receiving rate of the optical module is automatically selected as a high rate, otherwise, the receiving rate of the optical module is automatically selected as a low rate.
The MCU will simultaneously determine the level values of the receiving rate software register value and the hardware rate selective receiving pin, as described above, under normal conditions, the level values of the receiving rate software register value and the hardware rate selective receiving pin are the same, i.e. both will be equal to the first level value or not equal to the first level value.
The application considers that the user's service is usually operated in a high-rate mode, and only in a few occasions, such as a change in the usage environment of the client, the service needs to be operated in a low-rate mode. That is, the user service usually requires that the receiving rate and the sending rate of the optical module are high rates, and the application combines the hardware rate selection and the software rate selection, so that the method is beneficial to avoiding interference and improving the fault-tolerant rate compared with a single number rate selection mode.
Specifically, in the case of no failure, when the user selects the receiving rate as the high rate, both the level value of the receiving rate software register value and the level value of the hardware rate selection receiving pin are equal to the first level value. If the level value of the hardware rate selection receiving pin is abnormal in the transmission process due to interference or the like, or the receiving rate software register value is abnormal in the transmission process, only one value of the receiving rate software register value and the level value of the hardware rate selection receiving pin is equal to the first level value. Since the user service usually operates in a high-rate mode, when the MCU determines that any one of the two values is equal to the first level value, the receiving rate of the optical module is automatically selected to be a high rate, so that there is a higher probability that the receiving rate of the optical module meets the user's expectation, thereby improving the fault tolerance.
Further, when the first level value is preset to 1 or 0, the first level value may be set according to actual needs, so as to further improve the fault tolerance.
Specifically, when the first level value is preset to 1, it is generally applied to: the hardware rate receiving pin is easy to have potential virtual low, or the receiving rate software register value is easy to be changed from 1 to 0 in the transmission process due to interference and other reasons. It can be seen that, under the condition of no fault, when the user selects the receiving rate as the high rate, the level values of the software register value of the receiving rate and the receiving pin of the hardware rate selection are both 1, but if one of the two has data abnormality, for example, communication abnormality of the software rate selection due to interference, the software register value of the receiving rate obtained by the MCU is 0, the value 0 is different from the level value 1 of the receiving pin of the hardware rate selection, the MCU can perform operation in a logical or manner, that is, the value 0 and the value 1 are both used as the input ends of the or gate, the result is the value 1, which is in line with the first level value of 1, and the MCU automatically selects the receiving rate of the optical module as the high rate. That is, when any one of the two values, i.e. the register value of the receiving rate software and the level value of the hardware rate selecting receiving pin, is 1, the MCU will automatically select the receiving rate of the optical module as a high rate.
The receiving rate software register value and the hardware rate selection receiving pin have different level values, namely one is 0 and the other is 1, which indicates that at least one data has an error. In this embodiment, it is considered that the hardware rate receiving pin frequently has a low potential, and the value is easily changed from 1 to 0 due to interference and other reasons in the transmission process of the receiving rate software register value, so that when such an error occurs, and when one of the 2 data is equal to the first level value 1, the MCU considers that the receiving rate expected by the user is a high rate, and the receiving rate of the optical module is automatically selected as the high rate. That is to say, for the situation that the potential at the hardware rate receiving pin is likely to be low, or the register value of the receiving rate software is likely to be changed from 1 to 0 due to interference or the like during the transmission process, in this embodiment, the first level value is set to 1, and the receiving rate of the selected optical module has a greater probability of meeting the receiving rate expected by the user, so that the fault tolerance rate can be further improved.
In addition, it should be noted that, when a situation occurs that the level value of the hardware rate selection receiving pin is different from the receiving rate software register value, the MCU may also send a fault notification message to the host, so that the user can notice the situation in time.
In another embodiment, the first level value is set to 0. This will generally apply to: the hardware rate receiving pin is easy to have potential virtual high, or the receiving rate software register value is easy to be changed from 0 to 1 in the transmission process due to interference and other reasons. Specifically, the receiving rate software register value and the hardware rate selecting receiving pin have different level values, i.e. one of them is 0 and one of them is 1, in this embodiment, as long as the MCU determines that any one of the two values is 0, i.e. any one value is equal to the first level value 0, the receiving rate of the optical module will be automatically selected as the high rate.
For example, the user selects the receiving rate of the optical module on the host as a high rate, and in this embodiment, both the receiving rate software register value and the level value of the hardware rate selection receiving pin are 0 under normal conditions. If an abnormal condition occurs, for example, the level value of the hardware rate selection receiving pin received by the MCU is 1 due to the virtual high potential of the hardware rate selection receiving pin, and the receiving rate of the optical module is still automatically selected to be a high rate due to the correct value 0 of the receiving rate software register value, which avoids the situation that the receiving rate of the optical module does not meet the user's expectations due to the frequent virtual high potential of the hardware rate selection pin, and improves the fault tolerance.
Step S104: when any one of the two values of the register value of the sending rate software and the level value of the hardware rate selection sending pin is equal to the first level value, the sending rate of the optical module is automatically selected as a high rate, otherwise, the sending rate of the optical module is automatically selected as a low rate.
Step S104 may refer to the related description in step S103, and will not be described herein.
It should be noted that, in practical applications, the first level value is usually preset to be 1, that is, in practical applications, due to interference and the like, it is more common that the value 1 in software communication or hardware communication is changed to be 0, and setting the first level value to be 1 is beneficial to improving the fault tolerance rate.
It should be noted that, in a general case, the user may select the sending rate of the optical module as the same as the user selects the receiving rate of the optical module, that is, the user may select the sending rate and the receiving rate as a high rate at the same time, or select the sending rate and the receiving rate as a low rate at the same time. However, in a small number of occasions, the case where the sending rate is selected as the high rate and the receiving rate is selected as the low rate may also exist, or the case where the sending rate is selected as the low rate and the receiving rate is selected as the high rate may also exist.
The technical scheme provided by the embodiment of the invention is applied to the MCU of the optical module, and comprises the following steps: automatically reading level values of a hardware rate selection receiving pin and a hardware rate selection sending pin; the hardware rate selection receiving pin and the hardware rate selection sending pin are both connected with the host; automatically acquiring a receiving rate software register value and a sending rate software register value in a host through a communication bus connected with the host; when any one of two values of a register value of the receiving rate software and a level value of a hardware rate selection receiving pin is equal to a first level value, automatically selecting the receiving rate of the optical module as a high rate, or automatically selecting the receiving rate of the optical module as a low rate; when any one of the two values of the register value of the sending rate software and the level value of the hardware rate selection sending pin is equal to the first level value, the sending rate of the optical module is automatically selected as a high rate, otherwise, the sending rate of the optical module is automatically selected as a low rate.
In the scheme of the application, because the MCU can automatically read the level values of the hardware rate selection receiving pin and the hardware rate selection sending pin and can automatically acquire the receiving rate software register value and the sending rate software register value in the host, when a user needs to switch the receiving/sending rate of the optical module, the user only needs to select the receiving/sending rate on the host, and the MCU can automatically determine the receiving/sending rate of the optical module according to the hardware rate selection value and the software register value and then automatically set, so that the user can conveniently and effectively switch the rate of the optical module. Meanwhile, the receiving rate of the optical module is determined by combining the level value of the hardware rate selection receiving pin and the receiving rate software register value, the sending rate of the optical module is determined by combining the level value of the hardware rate selection sending pin and the sending rate software register value, and the service of a user usually runs in a high-rate mode and only needs to run in a low-rate mode in a few occasions such as changes of the using environment of a client and the like.
In an embodiment of the present invention, the automatically selecting the receiving rate of the optical module as a high rate in step S103 includes:
the CDR of the data receiving module in the optical module is automatically opened, and the receiving rate of the optical module is selected to be high rate.
Correspondingly, the step S103 of automatically selecting the receiving rate of the optical module as the low rate includes:
the CDR of the data receiving module is automatically closed, and the receiving rate of the optical module is selected to be low.
The MCU can control the opening and closing of the CDR of the internal chip of the optical module when switching the receiving rate and the sending rate of the optical module. The MCU opens the CDR of the data receiving module in the chip in the optical module, so that the receiving rate of the optical module can be selected as a high rate, and the CDR of the data receiving module is closed, so that the receiving rate of the optical module can be selected as a low rate.
Of course, the MCU opens the CDR of the data transmission module in the chip inside the optical module, so that the transmission rate of the optical module can be set to a high rate, and closes the CDR of the data transmission module, so that the transmission rate of the optical module can be set to a low rate.
In one embodiment of the present invention, the method further comprises:
and when the receiving rate of the optical module is judged to be different from the sending rate of the optical module, sending prompt information to the host.
As described above, in practical applications, a user usually selects the sending rate and the receiving rate of the optical module as high rates at the same time, or selects the sending rate and the receiving rate as low rates at the same time. However, in a few occasions, there may be a case where the user selects the sending rate as a high rate and the receiving rate as a low rate, or a case where the user selects the sending rate as a low rate and the receiving rate as a high rate.
In this embodiment of the application, when the MCU determines that the receiving rate of the optical module is different from the sending rate of the optical module, the MCU sends a prompt message to the host, so that the user can notice the situation. For example, sometimes a user needs to switch the transmission rate and the reception rate of the optical module from a high rate to a low rate at the same time, but only clicks an option of setting the transmission rate of the optical module to the low rate during operation.
In some embodiments, the MCU may not set the transmission rate and the reception rate of the optical module to different rates. Specifically, when the MCU detects that the user is performing rate adjustment on the optical module, if it is determined that the transmission rate and the reception rate of the adjusted optical module are different, the previous rate state is maintained without being changed. Although the implementation mode reduces the flexibility of the user for using the optical module, the implementation mode can carry out fault tolerance on the misoperation of the user to a certain extent, and is particularly suitable for occasions that the user is easy to have misoperation and does not have the requirement of setting the sending rate and the receiving rate of the optical module to different rates.
Corresponding to the above method embodiment, the embodiment of the present invention further provides a system for automatically compatible with a low rate optical module, which can be referred to in correspondence with the above.
Referring to fig. 3, a schematic structural diagram of a system for automatically enabling an optical module to be compatible with a low rate in the present invention is shown, and the system is applied to an MCU of the optical module, and includes:
a hardware value obtaining module 301, configured to automatically read level values of a hardware rate selection receiving pin and a hardware rate selection sending pin; the hardware rate selection receiving pin and the hardware rate selection sending pin are both connected with the host;
a software value obtaining module 302, configured to automatically obtain a receiving rate software register value and a sending rate software register value in a host through a communication bus connected to the host;
a receiving rate selecting module 303, configured to automatically select the receiving rate of the optical module as a high rate when any one of two values, namely a receiving rate software register value and a level value of a hardware rate selection receiving pin, is equal to a first level value, and otherwise, automatically select the receiving rate of the optical module as a low rate;
a sending rate selecting module 304, configured to automatically select the sending rate of the optical module as a high rate when any one of the two values, that is, the sending rate software register value and the level value of the hardware rate selecting sending pin, is equal to the first level value, and otherwise, automatically select the sending rate of the optical module as a low rate.
In one embodiment of the present invention, the first level value is 1.
In one embodiment of the present invention, the first level value is 0.
In an embodiment of the present invention, the receiving rate selecting module 303 is specifically configured to:
when any one of the two values of the register value of the receiving rate software and the level value of the hardware rate selection receiving pin is equal to the first level value, the CDR of the data receiving module in the optical module is automatically opened, the receiving rate of the optical module is selected to be high rate, otherwise, the CDR of the data receiving module is automatically closed, and the receiving rate of the optical module is selected to be low rate.
In a specific embodiment of the present invention, the communication bus is an I2C communication bus, the hardware rate selection receiving pin is an RS0 pin of the optical module, and the hardware rate selection transmitting pin is an RS1 pin of the optical module.
In one embodiment of the present invention, the method further comprises:
and the prompt information output module is used for sending prompt information to the host when judging that the receiving rate of the optical module is different from the sending rate of the optical module.
Corresponding to the above method and system embodiments, the present invention further provides an optical module, which when executed, can implement the steps of the method for automatically enabling the optical module to be compatible with a low rate in any of the above embodiments, and the description is not repeated here.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The principle and the implementation of the present invention are explained in the present application by using specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (10)

1. A method for automatic compatibility of low rate of optical module is applied in MCU of optical module, including:
automatically reading level values of a hardware rate selection receiving pin and a hardware rate selection sending pin; the hardware rate selection receiving pin and the hardware rate selection sending pin are both connected with a host;
automatically acquiring a receiving rate software register value and a sending rate software register value in the host through a communication bus connected with the host;
when any one of the two values of the register value of the receiving rate software and the level value of the hardware rate selection receiving pin is equal to a first level value, automatically selecting the receiving rate of the optical module as a high rate, or else, automatically selecting the receiving rate of the optical module as a low rate;
when any one of the two values of the sending rate software register value and the level value of the hardware rate selection sending pin is equal to the first level value, automatically selecting the sending rate of the optical module as a high rate, or automatically selecting the sending rate of the optical module as a low rate;
when a host receives a receiving rate selection instruction indicating that the receiving rate is high, the host sets the level value of the hardware rate selection receiving pin as a first level value and sets the receiving rate software register value as the first level value; when the host receives a sending rate selection instruction indicating that the sending rate is high, the level value of the hardware rate selection sending pin is set as a first level value, and the sending rate software register value is set as the first level value.
2. The optical module as claimed in claim 1, wherein the first level value is 1.
3. The optical module as claimed in claim 1, wherein the first level value is 0.
4. The method for automatically compatiblizing a low rate by an optical module according to claim 1, wherein the automatically selecting a receiving rate of the optical module as a high rate comprises:
automatically opening a CDR of a data receiving module in the optical module, and selecting the receiving rate of the optical module as a high rate;
the automatically selecting the receiving rate of the optical module as a low rate includes:
and automatically closing the CDR of the data receiving module, and selecting the receiving rate of the optical module as a low rate.
5. The method for optical module auto-compatibility to low speed as claimed in claim 1, wherein said communication bus is an I2C communication bus, said hardware speed selection receiving pin is RS0 pin of said optical module, and said hardware speed selection sending pin is RS1 pin of said optical module.
6. The method for automatically compatible low rate of optical module according to any of claims 1 to 5, further comprising:
and when the receiving rate of the optical module is judged to be different from the sending rate of the optical module, sending prompt information to the host.
7. A system for automatic compatibility of a low rate of an optical module is applied to an MCU of the optical module, and comprises:
the hardware value acquisition module is used for automatically reading the level values of the hardware rate selection receiving pin and the hardware rate selection sending pin; the hardware rate selection receiving pin and the hardware rate selection sending pin are both connected with a host;
the software numerical value acquisition module is used for automatically acquiring a receiving rate software register value and a sending rate software register value in the host through a communication bus connected with the host;
a receiving rate selecting module, configured to automatically select a receiving rate of an optical module as a high rate when any one of two values, that is, a register value of the receiving rate software and a level value of the hardware rate selection receiving pin is equal to a first level value, or automatically select the receiving rate of the optical module as a low rate;
a sending rate selecting module, configured to automatically select a sending rate of the optical module as a high rate when any one of two values, that is, the sending rate software register value and the level value of the hardware rate selection sending pin is equal to the first level value, or automatically select the sending rate of the optical module as a low rate;
when a host receives a receiving rate selection instruction indicating that the receiving rate is high, the host sets the level value of the hardware rate selection receiving pin as a first level value and sets the receiving rate software register value as the first level value; when the host receives a sending rate selection instruction indicating that the sending rate is high, the level value of the hardware rate selection sending pin is set as a first level value, and the sending rate software register value is set as the first level value.
8. The optical module auto-compatible low rate system of claim 7, wherein the first level value is 1.
9. The optical module auto-compatible low rate system according to claim 7 or 8, further comprising:
and the prompt information output module is used for sending prompt information to the host when judging that the receiving rate of the optical module is different from the sending rate of the optical module.
10. A light module, characterized by the steps when executed of implementing the method for light module auto-compatibility to low rates according to any of claims 1 to 6.
CN201910119743.3A 2019-02-18 2019-02-18 Optical module and method and system for automatically compatible low rate thereof Active CN109889272B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910119743.3A CN109889272B (en) 2019-02-18 2019-02-18 Optical module and method and system for automatically compatible low rate thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910119743.3A CN109889272B (en) 2019-02-18 2019-02-18 Optical module and method and system for automatically compatible low rate thereof

Publications (2)

Publication Number Publication Date
CN109889272A CN109889272A (en) 2019-06-14
CN109889272B true CN109889272B (en) 2022-02-15

Family

ID=66928262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910119743.3A Active CN109889272B (en) 2019-02-18 2019-02-18 Optical module and method and system for automatically compatible low rate thereof

Country Status (1)

Country Link
CN (1) CN109889272B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114157360B (en) * 2020-09-08 2023-07-25 佳必琪国际股份有限公司 Signal processing method of optical module

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023345A (en) * 2009-09-10 2011-04-20 华为技术有限公司 Optical module, equipment main board and passive optical network equipment
CN102694603A (en) * 2012-05-14 2012-09-26 中兴通讯股份有限公司 Method and device for integrating interfaces of optical modules with different speed rates
CN102761370A (en) * 2012-06-28 2012-10-31 武汉电信器件有限公司 100G CFP (Computer Forms Printer) optical module capable of supporting various rates
CN103152103A (en) * 2013-02-19 2013-06-12 青岛海信宽带多媒体技术有限公司 Optical module and adaptive regulation method for rate mode of clock and data recovery (CDR) chip of optical module
CN203522747U (en) * 2013-09-22 2014-04-02 武汉恒泰通技术有限公司 High-speed TTL optical module compatible with ultra-low-speed
CN105323008A (en) * 2014-07-04 2016-02-10 中兴通讯股份有限公司 Optical transceiver module and working parameter configuration method and device thereof
CN106911388A (en) * 2015-12-22 2017-06-30 杭州华为企业通信技术有限公司 The method and apparatus of self-adaptative adjustment different rates device port
CN208433971U (en) * 2018-06-21 2019-01-25 武汉意谷光电科技有限公司 A kind of 56G BIDI 40km SFP-DD optical module

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5136132B2 (en) * 2008-03-17 2013-02-06 日本電気株式会社 Optical transmission apparatus, optical transmission system, apparatus control method, and apparatus program

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023345A (en) * 2009-09-10 2011-04-20 华为技术有限公司 Optical module, equipment main board and passive optical network equipment
CN102694603A (en) * 2012-05-14 2012-09-26 中兴通讯股份有限公司 Method and device for integrating interfaces of optical modules with different speed rates
CN102761370A (en) * 2012-06-28 2012-10-31 武汉电信器件有限公司 100G CFP (Computer Forms Printer) optical module capable of supporting various rates
CN103152103A (en) * 2013-02-19 2013-06-12 青岛海信宽带多媒体技术有限公司 Optical module and adaptive regulation method for rate mode of clock and data recovery (CDR) chip of optical module
CN203522747U (en) * 2013-09-22 2014-04-02 武汉恒泰通技术有限公司 High-speed TTL optical module compatible with ultra-low-speed
CN105323008A (en) * 2014-07-04 2016-02-10 中兴通讯股份有限公司 Optical transceiver module and working parameter configuration method and device thereof
CN106911388A (en) * 2015-12-22 2017-06-30 杭州华为企业通信技术有限公司 The method and apparatus of self-adaptative adjustment different rates device port
CN208433971U (en) * 2018-06-21 2019-01-25 武汉意谷光电科技有限公司 A kind of 56G BIDI 40km SFP-DD optical module

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
40Gbps CFP光收发一体模块的研究与设计;陈燕;《中国优秀硕士学位论文全文数据库 信息科技辑》;20160815;全文 *

Also Published As

Publication number Publication date
CN109889272A (en) 2019-06-14

Similar Documents

Publication Publication Date Title
US20220292035A1 (en) Equalization Time Configuration Method, Chip, and Communications System
US20140149617A1 (en) I2c bus structure and device availability query method
TWI535251B (en) Method and system for low-latency networking
CN108804313B (en) Method and device for remotely debugging program and server
CN111835569B (en) Self-adaptive method, system and storage medium for optical port speed and mode
CN109889272B (en) Optical module and method and system for automatically compatible low rate thereof
US7353300B2 (en) Apparatus to improve the firmware efficiency for a multiframe serial interface
CN108595356B (en) Hard disk backboard compatible with RSSD hard disk and NVMe hard disk and method
EP3213474A1 (en) Simultaneous edge toggling immunity circuit for multi-mode bus
CN110008165B (en) NTB link management method, system and related device
US9549230B2 (en) Optics device port configuration system
WO2020150863A1 (en) Optical communication module testing method and apparatus and terminal device
CN203537496U (en) Camera with multi-aperture drive circuit, and multi-aperture drive control circuit
WO2013154558A1 (en) Reconfiguration of an optical connection infrastructure
CN111757051B (en) Data transmission method, intelligent terminal and radar system
CN108965382A (en) A kind of document transmission method based on BMC, device, equipment and medium
CN113778796A (en) Method for monitoring serial port communication through USB
US7849209B2 (en) System and method for link rate negotiation
JP3997106B2 (en) Data transmission rate arbitration method and optical communication apparatus
KR20200129333A (en) Method for assigning different addresses on a plurality of slave devices using I2C communication protocol and a device for the same
CN206892854U (en) A kind of mainboard of raising PCIE data channel utilization rates
US20050135382A1 (en) Connection management system
US7788418B2 (en) Measurement or protective device with independent software modules
KR20210045200A (en) Computer program for driving DDS data conversion and transmission device
CN108429741A (en) A kind of method and system for realizing NCSI agreements

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