CN109889272A - The method and system of a kind of optical module and its automatic compatible low rate - Google Patents

The method and system of a kind of optical module and its automatic compatible low rate Download PDF

Info

Publication number
CN109889272A
CN109889272A CN201910119743.3A CN201910119743A CN109889272A CN 109889272 A CN109889272 A CN 109889272A CN 201910119743 A CN201910119743 A CN 201910119743A CN 109889272 A CN109889272 A CN 109889272A
Authority
CN
China
Prior art keywords
rate
optical module
automatically
foot
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.)
Granted
Application number
CN201910119743.3A
Other languages
Chinese (zh)
Other versions
CN109889272B (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

Landscapes

  • Optical Communication System (AREA)

Abstract

The invention discloses a kind of methods that optical module is compatible with low rate automatically, are applied in MCU, comprising: automatic to read the level value that the selection of hardware rate receives foot and the selection of hardware rate sends foot;The automatic receiving velocity software register value and transmission rate software register value obtained in host;When any one among level value the two numerical value that receiving velocity software register value and the selection of hardware rate receive foot is equal to the first level value, the receiving velocity of optical module is chosen for high-speed automatically, is otherwise chosen for low rate;When any one among level value the two numerical value that transmission rate software register value and the selection of hardware rate send foot is equal to the first level value, the transmission rate of optical module is chosen for high-speed automatically, is otherwise chosen for low rate.Using the scheme of the application, the switching of optical module rate is carried out with can be convenient.Disclosed herein as well is a kind of optical module and its systems of automatic compatible low rate, have corresponding effect.

Description

The method and system of a kind of optical module and its automatic compatible low rate
Technical field
The present invention relates to technical field of photo communication, more particularly to a kind of optical module and its method of automatic compatible low rate And system.
Background technique
Optical module is that the opto-electronic device of progress photoelectricity and electro-optic conversion can be generally divided into SFP according to the difference of encapsulation Optical module, SFP+ optical module, SFF optical module etc..
In general, same optical module only supports a kind of rate of fixation, and with the continuous development of customer service, in many fields In conjunction, customer service may need to use to two kinds of traffic rates, referred to as high traffic rate and low communication rate.In order into The switching of row traffic rate, user usually requires the optical module of purchase high-speed and the optical module of low rate, when needing to carry out When traffic rate switches, original optical module is dismantled lower and replaces with new optical module.But due to needing to buy two The optical module of kind traffic rate, so that the business realizing higher cost of user.And with the development of optical module, also occur simultaneously Support the optical module inside chip of high-speed and low rate, still, user needs to pass through relevant parameter when carrying out rate switching Adjustment device is connect with the relevant pins of optical module inside chip, then is set manually to the relevant parameter of optical module inside chip Adjustment is set, it is complicated for operation and also higher to the technical requirement of user.
It is current this field in conclusion user how to be made to can be convenient the switching that optical module rate is effectively performed Technical staff's technical problem urgently to be solved.
Summary of the invention
The object of the present invention is to provide a kind of optical module and its methods and system of automatic compatible low rate, have to facilitate Effect ground carries out the switching of optical module rate.
In order to solve the above technical problems, the invention provides the following technical scheme:
A kind of method that optical module is compatible with low rate automatically, applied in the MCU of optical module, comprising:
It is automatic to read the level value that the selection of hardware rate receives foot and the selection of hardware rate sends foot;Wherein, described hard The selection of part rate receives foot and hardware rate selection sends foot and connect with host;
By the communication bus being connect with the host, obtain automatically the receiving velocity software register value in the host with And transmission rate software register value;
When the receiving velocity software register value and hardware rate selection receive foot level value the two numerical value it In any one be equal to the first level value when, the receiving velocity of optical module is chosen for high-speed automatically, otherwise automatically by institute The receiving velocity for stating optical module is chosen for low rate;
When the transmission rate software register value and hardware rate selection send foot level value the two numerical value it In any one be equal to first level value when, the transmission rate of the optical module is chosen for high-speed automatically, otherwise Automatically the transmission rate of the optical module is chosen for low rate.
Preferably, first level value is 1.
Preferably, first level value is 0.
It is preferably, described that the receiving velocity of optical module is chosen for high-speed automatically, comprising:
By automatically opening the CDR of the data reception module in the optical module, the receiving velocity of optical module is chosen For high-speed;
It is described that the receiving velocity of the optical module is chosen for low rate automatically, comprising:
By automatically closing the CDR of the data reception module, the receiving velocity of the optical module is chosen for low speed Rate.
Preferably, the communication bus is I2C communication bus, and the hardware rate selects to receive foot to be the optical module RS0 foot, the hardware rate select to send foot as the RS1 foot of the optical module.
Preferably, further includes:
When the transmission rate of the receiving velocity and the optical module of judging the optical module is not identical, Xiang Suoshu host Send prompt information.
A kind of system that optical module is compatible with low rate automatically, applied in the MCU of optical module, comprising:
Hardware numerical value obtains module, and for reading automatically, the selection of hardware rate receives foot and the selection of hardware rate sends foot Level value;Wherein, the hardware rate selection receives foot and hardware rate selection sends foot and connect with host;
Software numerical value obtains module and is obtained in the host automatically for the communication bus by connecting with the host Receiving velocity software register value and transmission rate software register value;
Receiving velocity chooses module, for receiving foot when the receiving velocity software register value and hardware rate selection Level value the two numerical value among any one when being equal to the first level value, the receiving velocity of optical module is chosen for automatically Otherwise the receiving velocity of the optical module is chosen for low rate automatically by high-speed;
Transmission rate chooses module, for sending foot when the transmission rate software register value and hardware rate selection Level value the two numerical value among any one when being equal to first level value, automatically by the transmission speed of the optical module Rate is chosen for high-speed, and the transmission rate of the optical module is otherwise chosen for low rate automatically.
Preferably, first level value is 1.
Preferably, further includes:
Prompt information output module, for the transmission speed when the receiving velocity and the optical module of judging the optical module When rate is not identical, Xiang Suoshu host sends prompt information.
A kind of optical module is performed the step for the method for realizing that optical module described in any of the above embodiments is compatible with low rate automatically Suddenly.
Using technical solution provided by the embodiment of the present invention, applied in the MCU of optical module, comprising: automatic to read firmly The selection of part rate receives foot and the selection of hardware rate sends the level value of foot;Wherein, the selection of hardware rate receives foot and hard The selection of part rate sends foot and connect with host;By the communication bus being connect with host, the automatic reception speed obtained in host Rate software register value and transmission rate software register value;When receiving velocity software register value and the selection of hardware rate receive foot Among the two numerical value of level value any one be equal to the first level value when, the receiving velocity of optical module is chosen for height automatically Otherwise the receiving velocity of optical module is chosen for low rate automatically by rate;When transmission rate software register value and hardware rate select When selecting any one among the two numerical value of the level value of transmission foot equal to the first level value, automatically by the transmission speed of optical module Rate is chosen for high-speed, and the transmission rate of optical module is otherwise chosen for low rate automatically.
In the scheme of the application, foot and hardware rate selection hair are received since MCU can read the selection of hardware rate automatically The level value of foot is sent, and the receiving velocity software register value in host and transmission rate software register value can be obtained automatically, Therefore when user needs to carry out reception/transmission rate switching of optical module, it is only necessary to carry out receiving/transmission rate on host Selection, MCU can select numerical value and software register value according to hardware rate, automatically determine out connecing for optical module and transmit/receive The height of transmission rate is arranged automatically in turn, so that user can be convenient the switching that optical module rate is effectively performed.Simultaneously as The application is to select the level value for receiving foot and receiving velocity software register value to determine optical module in conjunction with hardware rate Receiving velocity selects the level value for sending foot and transmission rate software register value to determine optical module in conjunction with hardware rate Transmission rate, and the business of user is usually only to change in client use environment under the mode for operating in high-speed It just needs to operate under low rate mode in small part occasion, therefore, the mode of this kind of software and hardware combining judgement is conducive to improve Serious forgiveness avoids the problem that leading to data value transmitting error due to interference etc. and causing.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is compatible with the implementation flow chart of the method for low rate for optical module a kind of in the present invention automatically;
Fig. 2 is the wiring schematic diagram in specific embodiment a kind of in the present invention between MCU and host;
Fig. 3 is compatible with the structural schematic diagram of the system of low rate for optical module a kind of in the present invention automatically.
Specific embodiment
Core of the invention is to provide a kind of method that optical module is compatible with low rate automatically, user can be convenient effectively into The switching of row optical module rate.
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description The present invention is described in further detail.Obviously, described embodiments are only a part of the embodiments of the present invention, rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Referring to FIG. 1, Fig. 1 is compatible with the implementation flow chart of the method for low rate for optical module a kind of in the present invention automatically, it should Method is applied in the MCU (Micro controller Unit, micro-control unit) of optical module, may comprise steps of:
Step S101: automatic to read the level value that the selection of hardware rate receives foot and the selection of hardware rate sends foot;Its In, the selection of hardware rate receives foot and the selection of hardware rate sends foot and connect with host.
Wiring schematic diagram between MCU and subscriber's main station can be found in Fig. 2, and in Fig. 2, the RS0 foot of the MCU of optical module is made It selects to receive foot for hardware rate, the RS1 foot of MCU is selected to send foot as hardware rate.It should be pointed out that in view of existing Some RS0 feet and RS1 foot are usually idle state, therefore it is selected to be used for the scheme of the application, in other embodiments, Other pins can be chosen to implement the scheme of the application according to actual needs.
When user needs to carry out the rate switching of optical module, it is only necessary to which sending relevant rate selection instruction to host is Can, for example, user clicks " receiving velocity is height " this option shown on host, host can get corresponding reception Rate chooses instruction, and then selects the level value for receiving foot to be set to the first level value hardware rate, while also by receiving velocity Software register value is set as the first level value.Correspondingly, user clicks " transmission rate is height " this option, host can be obtained It chooses and instructs to corresponding transmission rate, and then select the level value for sending foot to be set to the first level value hardware rate, simultaneously Also transmission rate software register value is set as the first level value.
The voltage that the selection of hardware rate receives on foot can be high level, be also possible to low level, when being high level, i.e., firmly Part rate selects to receive the level value of foot to be 1, and when being low level, hardware rate selects to receive the level value of foot to be 0.Correspondingly, It may be 1 or 0 that the selection of hardware rate, which sends the level value of foot,.
Step S102: by the communication bus being connect with host, the automatic receiving velocity software register value obtained in host And transmission rate software register value.
Under normal circumstances, MCU is obtained receiving velocity software register value and the selection of hardware rate receive the level value of foot It is identical, that is to say, that when user carries out the switching of the receiving velocity of optical module, such as user selects optical mode in host side The receiving velocity of block is high-speed, and receiving velocity software register value selects the level value for receiving foot just can be equal to hardware rate First level value.Correspondingly, such as user selects the receiving velocity of optical module for low rate in host side, receiving velocity software is posted The level value for depositing value and hardware rate selection reception foot just will do it switching, such as be equal to second electrical level value.
Certainly, under normal circumstances, MCU is obtained transmission rate software register value and the selection of hardware rate send the electricity of foot Level values are also identical.
Receiving velocity software register value in host is commonly stored in register Byte 110, and in bit3, transmission rate is soft Part register value is commonly stored in register Byte 118, in bit 3.Communication bus can also carry out according to actual needs setting and It chooses, such as can be as shown in Figure 2, communication bus is chosen for widely used I2C (Inter-Integrated Circuit, twin wire universal serial bus) communication bus.
Step S103: when receiving velocity software register value and the selection of hardware rate receive foot level value the two numerical value it In any one be equal to the first level value when, the receiving velocity of optical module is chosen for high-speed automatically, otherwise automatically by light The receiving velocity of module is chosen for low rate.
MCU can judge that receiving velocity software register value and the selection of hardware rate receive the level value of foot simultaneously, such as front Description, under normal circumstances, receiving velocity software register value and hardware rate selection receive foot level value be it is identical, i.e., The first level value can be equal to or be not equal to the first level value.
The application is it is considered that the business of user is usually under the mode for operating in high-speed, only in client use environment It changes etc. and just to need to operate under low rate mode in small parts occasion.I.e. customer service usually requires that the reception of optical module is fast Rate and transmission rate are high-speed, and the application just combines the selection of hardware rate and the selection of software rate, compared to using single One digit rate selection mode is conducive to avoid interfering, and improves serious forgiveness.
Specifically, under non-failure conditions, when receiving velocity is chosen for high-speed by user, the deposit of receiving velocity software Value and hardware rate select the level value for receiving foot can be for equal to the first level value.If leading to hardware due to interference etc. The level value that rate selection receives foot has occurred exception or receiving velocity software register value in transmittance process and sends out in transmittance process Exception has been given birth to, just will appear receiving velocity software register value and the selection of hardware rate receives among the level value of foot, only one Numerical value is equal to the case where the first level value.Since customer service is usually under the mode for operating in high-speed, MCU judgement When any one among the two numerical value is equal to the first level value out, the receiving velocity of optical module is just chosen for high speed automatically Rate just has bigger probability to meet the desired receiving velocity of user in this way, therefore also just improves serious forgiveness.
Further, it when the first level value is preset as 1 or is preset as 0, and can be set according to actual needs, To further improve serious forgiveness.
Specifically, when the first level value is preset as 1, it will usually apply: hardware rate receives pin and is easy to appear electricity The empty low or receiving velocity software register value in position is easy to cause register value to be become from 1 due to interference etc. in transmittance process In 0 occasion.As can be seen that under non-failure conditions, when receiving velocity is chosen for high-speed by user, receiving velocity software Register value and hardware rate select to receive the level value of foot be 1, but if there are a data exceptions in the two, such as by In interference result in software rate selection communication abnormality, the receiving velocity software register value that MCU is got be 0, the numerical value 0 with The level value 1 that the selection of hardware rate receives foot is different, MCU can logic or by way of carry out operation, i.e. numerical value 0 and numerical value 1 is used as or the input terminal of door, obtains a result as numerical value 1, meeting the first level value is 1, MCU just automatically by the reception of optical module Rate is chosen for high-speed.That is, receiving velocity software register value and hardware rate selection receive foot level value this two Among a numerical value any one be 1 when, the receiving velocity of optical module can be chosen for high-speed automatically by MCU.
The level value that receiving velocity software register value and the selection of hardware rate receive foot is not identical, i.e., one of them is 0, separately One is 1, this illustrates at least one data, and there are mistakes.In this kind of embodiment, it is contemplated that it is frequent that hardware rate receives pin Appearance potential void is low, is also easy to cause numerical value to be become by 1 due to interference etc. in the transmittance process of receiving velocity software register value It is 0, therefore, when this error situation occurs, one in 2 data when being equal to the first level value 1, MCU just thinks user's phase The receiving velocity of prestige is high-speed, the receiving velocity of optical module will be chosen for high-speed automatically.That is, being directed to hardware Rate receives pin and is easy to appear that current potential void is low or receiving velocity software register value is in transmittance process, is easy due to interference Etc. reasons cause register value from 1 become 0 occasion, set 1 for the first level value in this kind of embodiment, the optical mode selected The receiving velocity of block has bigger probability to meet the desired receiving velocity of user, can also further increase failure tolerant rate.
In addition it is also necessary to which explanation, receives the level value of foot different from receiving velocity when the selection of hardware rate has occurred The case where software register value, MCU can also send fault cues information to host, so that user can notice the feelings in time Condition.
In another embodiment, the first level value is set as 0.Would generally apply: hardware rate receives pin and holds Easy appearance potential virtual height or receiving velocity software register value are easy to cause to deposit due to interference etc. in transmittance process In the occasion that value becomes 1 from 0.Specifically, receiving velocity software register value and the selection of hardware rate receive the level value not phase of foot Together, i.e., one of them be 0, one of them is 1, in this kind of embodiment, as long as MCU judge it is any one in the two numerical value A is 0, i.e., any value is equal to the first level value 0, the receiving velocity of optical module will be chosen for high-speed automatically.
For example, user selects the receiving velocity of optical module for high-speed on host, in this kind of embodiment, in positive reason Under condition, receiving velocity software register value and hardware rate select to receive the level value of foot be 0.In case of abnormal conditions, Such as since hardware rate selects the current potential virtual height of reception foot, the hardware rate selection for causing MCU to receive receives the level of foot Value is 1, and since receiving velocity software register value is correct numerical value 0, the receiving velocity of optical module can be still chosen for by MCU automatically High-speed, the receiving velocity for yet avoiding optical module caused by the hardware rate selection frequent current potential virtual height of foot do not meet user It is expected that the case where, improve serious forgiveness.
Step S104: when transmission rate software register value and the selection of hardware rate send foot level value the two numerical value it In any one be equal to the first level value when, the transmission rate of optical module is chosen for high-speed automatically, otherwise automatically by light The transmission rate of module is chosen for low rate.
Step S104 is referred to the associated description in step S103, is not described in more detail here.
It should be pointed out that in practical applications, the first level value is usually preset as 1, i.e., in practical applications, due to dry The case where reasons such as disturbing, the numerical value 1 in software communication or hardware communications is caused to become numerical value 0 is more universal, by the first level Value setting 1 is conducive to improve serious forgiveness.
It should also be noted that, in general, selection of the user for the transmission rate of optical module, meeting and its for The selection of the receiving velocity of optical module is identical, i.e., transmission rate and receiving velocity can be chosen for high-speed simultaneously by user, or Transmission rate and receiving velocity are chosen for low rate simultaneously.But in small part occasion, can also there be transmission rate and be chosen for The case where high-speed, receiving velocity is chosen for low rate or transmission rate are chosen for low rate, and receiving velocity is chosen for height Rate, the application can be supported.
Using technical solution provided by the embodiment of the present invention, applied in the MCU of optical module, comprising: automatic to read firmly The selection of part rate receives foot and the selection of hardware rate sends the level value of foot;Wherein, the selection of hardware rate receives foot and hard The selection of part rate sends foot and connect with host;By the communication bus being connect with host, the automatic reception speed obtained in host Rate software register value and transmission rate software register value;When receiving velocity software register value and the selection of hardware rate receive foot Among the two numerical value of level value any one be equal to the first level value when, the receiving velocity of optical module is chosen for height automatically Otherwise the receiving velocity of optical module is chosen for low rate automatically by rate;When transmission rate software register value and hardware rate select When selecting any one among the two numerical value of the level value of transmission foot equal to the first level value, automatically by the transmission speed of optical module Rate is chosen for high-speed, and the transmission rate of optical module is otherwise chosen for low rate automatically.
In the scheme of the application, foot and hardware rate selection hair are received since MCU can read the selection of hardware rate automatically The level value of foot is sent, and the receiving velocity software register value in host and transmission rate software register value can be obtained automatically, Therefore when user needs to carry out reception/transmission rate switching of optical module, it is only necessary to carry out receiving/transmission rate on host Selection, MCU can select numerical value and software register value according to hardware rate, automatically determine out connecing for optical module and transmit/receive The height of transmission rate is arranged automatically in turn, so that user can be convenient the switching that optical module rate is effectively performed.Simultaneously as The application is to select the level value for receiving foot and receiving velocity software register value to determine optical module in conjunction with hardware rate Receiving velocity selects the level value for sending foot and transmission rate software register value to determine optical module in conjunction with hardware rate Transmission rate, and the business of user is usually only to change in client use environment under the mode for operating in high-speed It just needs to operate under low rate mode in small part occasion, therefore, the mode of this kind of software and hardware combining judgement is conducive to improve Serious forgiveness avoids the problem that leading to data value transmitting error due to interference etc. and causing.
In a kind of specific embodiment of the invention, the receiving velocity of optical module is chosen for by automatic in step S103 High-speed, comprising:
By automatically opening the CDR of the data reception module in optical module, the receiving velocity of optical module is chosen for height Rate.
Correspondingly, the receiving velocity of optical module is chosen for low rate by automatic in step S103, comprising:
By automatically closing the CDR of data reception module, the receiving velocity of optical module is chosen for low rate.
MCU, can be by controlling inside optical module in the switching of the receiving velocity and transmission rate that carry out optical module The unlatching and closing of the CDR of chip is realized.MCU opens the CDR of the data reception module in optical module inside chip, just The receiving velocity of optical module can be chosen for high-speed, the CDR of the data reception module is closed, it can be by optical module Receiving velocity is chosen for low rate.
Certainly, MCU opens the CDR of the data transmission blocks in optical module inside chip, can be by the hair of optical module Transmission rate is chosen for high-speed, and the CDR of the data transmission blocks is closed, can be chosen for the transmission rate of optical module low Rate.
In a kind of specific embodiment of the invention, further includes:
When the transmission rate of the receiving velocity and optical module of judging optical module is not identical, prompt letter is sent to host Breath.
Such as description above, during practical application, user by the transmission rate of optical module and would generally connect simultaneously It receives rate and is chosen for high-speed, or transmission rate and receiving velocity are chosen for low rate simultaneously.But in small part occasion, Also there can be user and transmission rate is chosen for high-speed, the case where receiving velocity is chosen for low rate, or speed will be sent The case where rate is chosen for low rate, and receiving velocity is chosen for high-speed.
In this kind of embodiment of the application, the receiving velocity of optical module and the transmission rate of optical module are judged as MCU When not identical, prompt information can be sent to host, so that user notices the situation.Such as user needs light simultaneously sometimes The transmission rate and receiving velocity of module are switched to low rate from high-speed, but in operation, have merely clicked the hair of optical module Transmission rate is set as the option of low rate, this kind of embodiment prompts user, facilitates user and carries out secondary-confirmation.
In addition, MCU can not also allow for the transmission rate of optical module and receiving velocity to be arranged in some embodiments For different rates.Specifically, when MCU detects that user carries out the speed adjust of optical module, if it is judged that light adjusted The transmission rate of module and receiving velocity difference, just remain rate conditions before this without change.Such embodiment Although reducing user for the using flexible of optical module, the maloperation of user can be held to a certain extent Mistake is especially easy to appear operation error in user, really and does not set the transmission rate of optical module and receiving velocity to not In the occasion of the demand of same rate, this kind of embodiment is more applicable in.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of optical modules to be compatible with low rate automatically System can correspond to each other reference with above.
Fig. 3 is seen, the structural schematic diagram of the system of low rate is compatible with automatically for optical module a kind of in the present invention, is applied to In the MCU of optical module, comprising:
Hardware numerical value obtains module 301, receives foot and hardware rate selection hair for reading the selection of hardware rate automatically Send the level value of foot;Wherein, the selection of hardware rate receives foot and the selection of hardware rate sends foot and connect with host;
Software numerical value obtains module 302, for the communication bus by being connect with host, the automatic reception obtained in host Rate software register value and transmission rate software register value;
Receiving velocity chooses module 303, for the electricity when receiving velocity software register value and hardware rate selection reception foot Among the two numerical value of level values any one be equal to the first level value when, automatically by the receiving velocity of optical module be chosen for high speed Otherwise the receiving velocity of optical module is chosen for low rate automatically by rate;
Transmission rate chooses module 304, for the electricity when transmission rate software register value and hardware rate selection transmission foot Among the two numerical value of level values any one be equal to the first level value when, automatically by the transmission rate of optical module be chosen for high speed Otherwise the transmission rate of optical module is chosen for low rate automatically by rate.
In a kind of specific embodiment of the invention, the first level value is 1.
In a kind of specific embodiment of the invention, the first level value is 0.
In a kind of specific embodiment of the invention, receiving velocity chooses module 303, is specifically used for:
It is any among level value the two numerical value that receiving velocity software register value and the selection of hardware rate receive foot One when being equal to the first level value, by automatically opening the CDR of the data reception module in optical module, by the reception of optical module Rate is chosen for high-speed, and otherwise by automatically closing the CDR of data reception module, the receiving velocity of optical module is chosen for Low rate.
In a kind of specific embodiment of the invention, communication bus is I2C communication bus, and the selection of hardware rate receives foot For the RS0 foot of optical module, hardware rate selects to send foot as the RS1 foot of optical module.
In a kind of specific embodiment of the invention, further includes:
Prompt information output module, for when judge optical module receiving velocity and optical module transmission rate it is not identical When, prompt information is sent to host.
Corresponding to above method and system embodiment, the embodiment of the invention also provides a kind of optical modules, are performed The step of optical module in any of the above-described embodiment is compatible with the method for low rate automatically, herein not repeated explanation may be implemented.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to one Entity or operation are distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation There are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to contain Lid non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
Used herein a specific example illustrates the principle and implementation of the invention, and above embodiments are said It is bright to be merely used to help understand technical solution of the present invention and its core concept.It should be pointed out that for the common of the art , without departing from the principle of the present invention, can be with several improvements and modifications are made to the present invention for technical staff, these Improvement and modification are also fallen within the protection scope of the claims of the present invention.

Claims (10)

1. a kind of method that optical module is compatible with low rate automatically, which is characterized in that applied in the MCU of optical module, comprising:
It is automatic to read the level value that the selection of hardware rate receives foot and the selection of hardware rate sends foot;Wherein, the hardware speed Rate selection receives foot and hardware rate selection sends foot and connect with host;
By the communication bus connecting with the host, receiving velocity software register value and the hair in the host are obtained automatically Transmission rate software register value;
When the receiving velocity software register value and hardware rate selection receive among the two numerical value of the level value of foot When any one is equal to the first level value, the receiving velocity of optical module is chosen for high-speed automatically, otherwise automatically by the light The receiving velocity of module is chosen for low rate;
When the transmission rate software register value and hardware rate selection are sent among the two numerical value of the level value of foot When any one is equal to first level value, the transmission rate of the optical module is chosen for high-speed automatically, otherwise automatically The transmission rate of the optical module is chosen for low rate.
2. the method that optical module according to claim 1 is compatible with low rate automatically, which is characterized in that first level value It is 1.
3. the method that optical module according to claim 1 is compatible with low rate automatically, which is characterized in that first level value It is 0.
4. the method that optical module according to claim 1 is compatible with low rate automatically, which is characterized in that described automatically by optical mode The receiving velocity of block is chosen for high-speed, comprising:
By automatically opening the CDR of the data reception module in the optical module, the receiving velocity of optical module is chosen for height Rate;
It is described that the receiving velocity of the optical module is chosen for low rate automatically, comprising:
By automatically closing the CDR of the data reception module, the receiving velocity of the optical module is chosen for low rate.
5. the method that optical module according to claim 1 is compatible with low rate automatically, which is characterized in that the communication bus is I2C communication bus, the hardware rate select to receive foot as the RS0 foot of the optical module, and the hardware rate selection sends foot For the RS1 foot of the optical module.
6. the method that optical module according to any one of claims 1 to 5 is compatible with low rate automatically, which is characterized in that also wrap It includes:
When the transmission rate of the receiving velocity and the optical module of judging the optical module is not identical, Xiang Suoshu host is sent Prompt information.
7. the system that a kind of optical module is compatible with low rate automatically, which is characterized in that applied in the MCU of optical module, comprising:
Hardware numerical value obtains module, for reading the electricity that the selection of hardware rate receives foot and the selection of hardware rate sends foot automatically Level values;Wherein, the hardware rate selection receives foot and hardware rate selection sends foot and connect with host;
Software numerical value obtains module and obtains connecing in the host automatically for the communication bus by connecting with the host Receive rate software register value and transmission rate software register value;
Receiving velocity chooses module, for the electricity when the receiving velocity software register value and hardware rate selection reception foot Among the two numerical value of level values any one be equal to the first level value when, automatically by the receiving velocity of optical module be chosen for high speed Otherwise the receiving velocity of the optical module is chosen for low rate automatically by rate;
Transmission rate chooses module, for the electricity when the transmission rate software register value and hardware rate selection transmission foot When any one among the two numerical value of level values is equal to first level value, the transmission rate of the optical module is selected automatically It is taken as high-speed, the transmission rate of the optical module is otherwise chosen for low rate automatically.
8. the system that optical module according to claim 7 is compatible with low rate automatically, which is characterized in that first level value It is 1.
9. the system that optical module according to claim 7 or 8 is compatible with low rate automatically, which is characterized in that further include:
Prompt information output module, for when judge the optical module receiving velocity and the optical module transmission rate not When identical, Xiang Suoshu host sends prompt information.
10. a kind of optical module, which is characterized in that it is automatic to be performed realization such as optical module as claimed in any one of claims 1 to 6 The step of method of compatible low rate.
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 true CN109889272A (en) 2019-06-14
CN109889272B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114157360A (en) * 2020-09-08 2022-03-08 佳必琪国际股份有限公司 Optical module and signal processing method thereof

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090232516A1 (en) * 2008-03-17 2009-09-17 Kengo Hirano Optical transmission apparatus, optical transmission system, apparatus control method, and recording medium on which program for the apparatus is recorded
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

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090232516A1 (en) * 2008-03-17 2009-09-17 Kengo Hirano Optical transmission apparatus, optical transmission system, apparatus control method, and recording medium on which program for the apparatus is recorded
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光收发一体模块的研究与设计", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114157360A (en) * 2020-09-08 2022-03-08 佳必琪国际股份有限公司 Optical module and signal processing method thereof

Also Published As

Publication number Publication date
CN109889272B (en) 2022-02-15

Similar Documents

Publication Publication Date Title
CN103095855B (en) I2C communication interface unit
CN1674547A (en) Optical/electric interface module space multiplexing method and apparatus used for Ethernet SFP interface
CN109889272A (en) The method and system of a kind of optical module and its automatic compatible low rate
CN103793003A (en) Exchange plate and blade server
CN112630903B (en) Active optical cable based on Type-C interface
WO2021107454A1 (en) System and method for using topology map for multicloud or hybrid cloud
US6847652B1 (en) Bus control module for a multi-stage clock distribution scheme in a signaling server
WO2006071409A2 (en) Multiple rate optical transponder
CN116261067A (en) Method and device for processing Ethernet optical link fault
CN115580365A (en) Clock signal transmission method, device, equipment and medium
CN101931467A (en) External optical fiber Bypass equipment and optical signal channel switching method
CN105991455A (en) Business exchange system and business exchange method
CN101626311A (en) Bypass control module and device and method for managing network
Cisco Installing the CSC-FCI and CSC-C2FCI FDDI Cards and Appliques
Cisco Installing the CSC-FCI and CSC-C2FCI FDDI Cards and Appliques
Cisco Installing the CSC-FCI and CSC-C2FCI FDDI Cards and Appliques
Cisco Installing the CSC-FCI and CSC-C2FCI FDDI Cards and Appliques
Cisco Installing the CSC-FCI and CSC-C2FCI FDDI Cards and Appliques
Cisco Installing the CSC-FCI and CSC-C2FCI FDDI Cards and Appliques
Cisco Installing the CSC-FCI and CSC-C2FCI FDDI Cards and Appliques
Cisco Installing the CSC-FCI and CSC-C2FCI FDDI Cards and Appliques
Cisco Installing the CSC-FCI and CSC-C2FCI FDDI Cards and Appliques
Cisco Installing and Upgrading the CSC-C2FCIT FDDI Card and Appliques
Cisco Installing and Upgrading the CSC-C2FCIT FDDI Card and Appliques
Cisco Installing and Upgrading the CSC-C2FCIT FDDI Card and Appliques

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