This application claims the benefit of Chinese Patent Application No. 201210471553.6, filed on Nov. 20, 2012, which is incorporated herein by reference in its entirety.
The present invention relates to the field of optical communication, and in particular, to a method and algorithm for stabilizing the output state of an optical transceiver.
A clock and data recovery (CDR) chip is utilized to capture a clock signal from a received data signal. Data recovery includes regenerating the data signal utilizing a phase-comparison circuit to make sure that the clock signal is in phase synchronization with the data signal. CDR chips are widely used in optical transceivers, telecommunications and wireless products. Generally, CDR chips are used in small form-factor (SFF) modules based on the Lucent optical connector (LC) to replace discrete optical devices for the extraction of clock and recovery data. Rx_lol and mod_nr represent two state flag bits of the CDR chip. When there is no data input to the CDR chip, the state flag bit of rx_lol continuously varies between “0” and “1”. As a result, the optical transceiver state bit of rx_lol is unstable. Because rx_lol is a trigger signal for mod_nr, the state bit of mod_nr also becomes unstable, thereby resulting in an unstable output display status of the optical transceiver that will influence the estimation of the working condition of the optical transceiver.
The present invention is intended to provide a method and algorithm for stabilizing the output state of an optical transceiver, thereby avoiding an unstable output state of the optical transceiver due to an unstable output state of a CDR chip when there is no data input to the CDR chip.
To implement the objective(s) of the present invention, one or more technical proposals are provided below.
A method for stabilizing the output state of an optical transceiver generally comprises (a) comparing a signal quality monitor (SQM) register value with a predetermined threshold; when the SQM register value is less than or equal to the predetermined threshold, the method proceeds to step (b), otherwise it ends; and (b) reading and determining a first state bit value of the CDR chip; when the first state bit value of the CDR chip reaches a low logic level at least 3 times, a microcontroller unit (MCU) converts the state bit values of the first state bit and a second state bit into low logic level values; otherwise, the state bit values of the first and second state bits are converted into high logic level values. Preferably, the predetermined threshold equals zero.
According to various embodiments of the present invention, the first state bit represents or indicates a receiver loss of data or loss of lock status (e.g., whether data is being received or may have been lost by the optical transceiver, or whether the CDR chip has lost a locked status in its clock recovery circuit; e.g., a rx_lol or rx_los bit), the second state bit represents or indicates that the optical transceiver module is not ready for use or operations (e.g., a mod_nr bit), and the predetermined time may vary between 100 and 200 ms, and in one example, may be 150 ms.
Relative to the prior art, the method of the present invention advantageously provides that when the SQM register value is less than or equal to the predetermined threshold (that is, there is no data input to the CDR chip), the MCU will keep the state bit values of the first and second state bits of the optical transceiver at low or high logic level values to stabilize the first and second state bits of the optical transceiver. Therefore, the output state of the optical transceiver is stabilized, and unstable output states of the optical transceiver due to the changing of the state bit values of the first and second state bits are avoided.
The technical proposal(s) of embodiments of the present invention will be fully and clearly described in conjunction with the following embodiments. It will be understood that the descriptions are not intended to limit the invention to these embodiments. On the contrary, the invention is intended to cover alternatives, modifications and equivalents that may be included within the spirit and scope of the invention as defined by the appended claims. Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. However, it will be readily apparent to one skilled in the art that the present invention may be practiced without these specific details. In other instances, well-known methods, procedures, components, and circuits have not been described in detail so as not to unnecessarily obscure aspects of the present invention. The embodiments described here are only used to explain, rather than limit, the invention.
In accordance with the present invention, a method for stabilizing the output state of an optical transceiver may comprise comparing a register value (e.g., a signal quality monitor [SQM] register value) from a CDR chip with a predetermined threshold (if the predetermined threshold is represented by the international reference alphabet [IRA], the IRA value may equal 0×00) in an optical transceiver; and reading and/or determining the first and second state bit numerical values (e.g., of rx_lol and mod_nr) of the CDR chip when the register value is less than or equal to the predetermined threshold (e.g., 0×00). The register (e.g., the SQM register) is a register of the CDR chip. The value of the SQM register will be equal to zero (i.e., 0×00) when there is no data input to the CDR chip. Therefore, the predetermined threshold must be set to zero to ensure stable output state of the optical transceiver when there is no data input to the CDR chip.
The values of the first and second state bits may be read and/or determined within 150 ms. If the first state bit value of the CDR chip reaches a low logic level (e.g., a binary zero) at least 3 times at least within a predetermined time period (e.g., 150 ms), the MCU converts the state bit values of the first and second state bits to low logic level value (e.g., a binary “0”). Otherwise, the MCU converts the state bit values of the first and second state bits to a high logic level value (e.g., a binary “1”). The first state bit may comprise a receiver loss of lock bit (e.g., rx_lol), and the second state bit may comprise a “module not ready” bit (e.g., mod_nr).
The first state bit value of the CDR chip toggles between “0” and“1” when there is no data input to the CDR chip. When the receiver is not receiving data, the first state bit value of the CDR chip generally reaches a low logic level at least 3 times within a time period of between 100 and 200 ms. The shorter the time spent reading the state bit values of the first state bit, the closer one approaches the validity of the value of the first state bit. However, another effect of a shorter read time is a greater influence on the visibility of the state bit value of the first state bit. Therefore, the time for reading the state bit values of the first state bit of the CDR chip may preferably be set to 150 ms.
In the method or algorithm for stabilizing the output state of an optical transceiver in accordance with the present invention, the MCU keeps the state bit values of the first and second state bits of an optical transceiver at low or high logic level values when the SQM register value is less or equal to the predetermined threshold, thereby stabilizing the state bit values of the first and second state bits of the optical transceiver. That is, the receiver data in the first and second status bit are stabilized when there is no data input to the CDR chip. In such a way, unstable output states of the optical transceiver due to toggling or changing of the state bit numerical values of the first and second state bits can be eliminated, thereby avoiding unstable output display statuses of the optical transceiver that will influence the estimation of the working condition of the optical transceiver.
The foregoing descriptions of specific embodiments of the present invention have been presented for purposes of illustration and description. They are not intended to be exhaustive or to limit the invention to the precise forms disclosed, and obviously many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and its practical application, to thereby enable others skilled in the art to best utilize the invention and various embodiments with various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the claims appended hereto and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
201210471553.6 | Nov 2012 | CN | national |