PHY initialization method, system, equipment and medium

文档序号:1819661 发布日期:2021-11-09 浏览:26次 中文

阅读说明:本技术 一种phy初始化方法、系统、设备以及介质 (PHY initialization method, system, equipment and medium ) 是由 李奇 张连聘 侯绍铮 于 2021-07-25 设计创作,主要内容包括:本发明公开了一种PHY初始化方法,包括以下步骤:检测光模块的在位状态;响应于检测到光模块处于在位状态,控制PHY打开与所述光模块对应的信号发送器;判断所述光模块是否处于丢失状态;响应于所述光模块未处于丢失状态,控制PHY打开与所述光模块对应的信号接收器,并检测所述PHY中的PCS层是否生成预设报告;响应于没有生成预设报告,关闭所述信号接收器并重新检测光模块是否处于丢失状态。本发明还公开了一种系统、计算机设备以及可读存储介质。本发明提出的方案通过识别光模块的在位信号与丢失信号(LOS信号),定义一套PHY初始化流程,用于规避因光模块接口上的光模块插拔或光模块上的光纤插拔、松动而导致接口出现异常误码、功能异常情况。(The invention discloses a PHY initialization method, which comprises the following steps: detecting the on-position state of the optical module; in response to detecting that a light module is in an in-place state, controlling a PHY to turn on a signal transmitter corresponding to the light module; judging whether the optical module is in a lost state or not; responding to the fact that the optical module is not in a lost state, controlling a PHY (physical layer) to open a signal receiver corresponding to the optical module, and detecting whether a PCS (process control system) layer in the PHY generates a preset report or not; in response to no preset report being generated, the signal receiver is turned off and it is redetected whether the light module is in a lost state. The invention also discloses a system, a computer device and a readable storage medium. The scheme provided by the invention defines a set of PHY initialization flow by identifying the in-situ signal and the LOSs signal (LOS signal) of the optical module, and is used for avoiding the situations of abnormal error codes and abnormal functions of the interface caused by the plugging and unplugging of the optical module on the interface of the optical module or the plugging and unplugging of the optical fiber on the optical module.)

1. A PHY initialization method, comprising the steps of:

detecting the on-position state of the optical module;

in response to detecting that a light module is in an in-place state, controlling a PHY to turn on a signal transmitter corresponding to the light module;

judging whether the optical module is in a lost state or not;

responding to the fact that the optical module is not in a lost state, controlling a PHY (physical layer) to open a signal receiver corresponding to the optical module, and detecting whether a PCS (process control system) layer in the PHY generates a preset report or not;

in response to no preset report being generated, the signal receiver is turned off and it is redetected whether the light module is in a lost state.

2. The method of claim 1, further comprising:

and responding to the optical module being in the loss state, and detecting whether the optical module is in the loss state again every preset time period until the optical module is not in the loss state.

3. The method of claim 1, further comprising:

and controlling the PHY to close a signal transmitter and a signal receiver corresponding to the optical module in response to detecting that the optical module is changed from an on-bit state to an off-bit state.

4. The method of claim 1, wherein detecting an in-place status of a light module, further comprises:

detecting the level of an in-place pin of the optical module;

and confirming that the optical module is detected to be in the in-place state in response to the times of continuously detecting that the level of the in-place pin is the low level for a preset number of times.

5. The method of claim 1, wherein determining whether the optical module is in a lost state further comprises:

detecting a first register of the optical module;

and judging whether the optical module is in a lost state or not according to the value of the first register.

6. The method of claim 1, wherein determining whether the optical module is in a lost state further comprises:

acquiring DDM information in the optical module;

and judging whether the optical module is in a loss state or not based on the optical power in the DDM information.

7. The method of claim 1, wherein detecting whether a preset report is generated by a PCS layer in the PHY, further comprises:

detecting whether the PCS layer generates a connection establishment report.

8. A PHY initialization system, comprising:

the first detection module is configured to detect the in-place state of the optical module;

a control module configured to control the PHY to turn on a signal transmitter corresponding to the optical module in response to detecting that the optical module is in an in-place state;

the judging module is configured to judge whether the optical module is in a lost state;

the second detection module is used for responding to the fact that the optical module is not in a lost state, controlling the PHY to open a signal receiver corresponding to the optical module, and detecting whether a PCS layer in the PHY generates a preset report or not;

a processing module configured to turn off the signal receiver and re-detect whether the optical module is in a lost state in response to no preset report being generated.

9. A computer device, comprising:

at least one processor; and

memory storing a computer program operable on the processor, wherein the processor executes the program to perform the steps of the method according to any of claims 1-7.

10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, is adapted to carry out the steps of the method according to any one of claims 1 to 7.

Technical Field

The present invention relates to the field of initialization, and in particular, to a PHY initialization method, system, device, and storage medium.

Background

With the improvement of the requirements on the communication rate and the transmission distance, there are more and more scenes using optical fibers as transmission media in a computer network, and meanwhile, an optical module is also required to receive optical signals, and after optical/electrical signal conversion, electrical signals are sent to the PHY through an optical module interface. The optical module is usually independent from the optical module interface as a module, and the optical module is connected to the optical module interface and can be hot-plugged. When the optical module is inserted into the optical module interface, the PHY connected to the other end of the optical module interface and the optical signal connected to the optical module also need to operate in a correct state, and the link can be correctly connected.

In the prior art, the optical module can be pulled out from the optical module interface at any time, and the optical fiber can also be pulled out from the optical module at any time, which means that for the optical signal receiving end of the optical module, the optical signal is unstable, and the unstable optical signal can cause the electrical signal sent by the optical module to the optical module interface and the PHY signal to be unstable. An error may be generated after the unstable electrical signal is received by the PHY chip, so that the PHY chip considers that an error occurs on the communication link or the Serdes receiver inside the PHY chip is abnormal, and stays in an error state.

Therefore, before and after the optical fiber or the optical module is plugged, the optical module interface and the PHY chip do not take specific logic actions, and the Serdes transmitter and the receiver connected to the optical module interface and the optical module on the PHY chip are always in a working state, so that the abnormality of plugging and unplugging the optical module and the optical fiber to the local interface and the interface opposite-end interface cannot be avoided. The abnormality may cause errors on the PHY chip or the PHY may fail to communicate properly.

Disclosure of Invention

In view of the above, in order to overcome at least one aspect of the above problems, an embodiment of the present invention provides a PHY initialization method, including:

detecting the on-position state of the optical module;

in response to detecting that a light module is in an in-place state, controlling a PHY to turn on a signal transmitter corresponding to the light module;

judging whether the optical module is in a lost state or not;

responding to the fact that the optical module is not in a lost state, controlling a PHY (physical layer) to open a signal receiver corresponding to the optical module, and detecting whether a PCS (process control system) layer in the PHY generates a preset report or not;

in response to no preset report being generated, the signal receiver is turned off and it is redetected whether the light module is in a lost state.

In some embodiments, further comprising:

responding to the fact that the optical module is in the loss state, detecting whether the optical module is in the loss state again every preset time period until the optical module is not in the loss state.

In some embodiments, further comprising:

and controlling the PHY to close a signal transmitter and a signal receiver corresponding to the optical module in response to detecting that the optical module is changed from an on-bit state to an off-bit state.

In some embodiments, detecting an in-place status of a light module further comprises:

detecting the level of an in-place pin of the optical module;

and confirming that the optical module is detected to be in the in-place state in response to the times of continuously detecting that the level of the in-place pin is the low level for a preset number of times.

In some embodiments, determining whether the light module is in a lost state further comprises:

detecting a first register of the optical module;

and judging whether the optical module is in a lost state or not according to the value of the first register.

In some embodiments, determining whether the light module is in a lost state further comprises:

acquiring DDM information in the optical module;

and judging whether the optical module is in a loss state or not based on the optical power in the DDM information.

In some embodiments, detecting whether a preset report is generated by a PCS layer in the PHY further comprises:

detecting whether the PCS layer generates a connection establishment report.

Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides a PHY initialization system, including:

the first detection module is configured to detect the in-place state of the optical module;

a control module configured to control the PHY to turn on a signal transmitter corresponding to the optical module in response to detecting that the optical module is in an in-place state;

the judging module is configured to judge whether the optical module is in a lost state;

a second detection module configured to control the PHY to turn on a signal receiver corresponding to the optical module in response to the optical module not being in a lost state, and detect whether a PCS layer in the PHY generates a preset report;

a processing module configured to turn off the signal receiver and re-detect whether the optical module is in a lost state in response to no preset report being generated.

Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides a computer apparatus, including:

at least one processor; and

a memory storing a computer program operable on the processor, wherein the processor executes the program to perform the steps of:

detecting the on-position state of the optical module;

in response to detecting that a light module is in an in-place state, controlling a PHY to turn on a signal transmitter corresponding to the light module;

judging whether the optical module is in a lost state or not;

responding to the fact that the optical module is not in a lost state, controlling a PHY (physical layer) to open a signal receiver corresponding to the optical module, and detecting whether a PCS (process control system) layer in the PHY generates a preset report or not;

in response to no preset report being generated, the signal receiver is turned off and it is redetected whether the light module is in a lost state.

In some embodiments, further comprising:

responding to the fact that the optical module is in the loss state, detecting whether the optical module is in the loss state again every preset time period until the optical module is not in the loss state.

In some embodiments, further comprising:

and controlling the PHY to close a signal transmitter and a signal receiver corresponding to the optical module in response to detecting that the optical module is changed from an on-bit state to an off-bit state.

In some embodiments, detecting an in-place status of a light module further comprises:

detecting the level of an in-place pin of the optical module;

and confirming that the optical module is detected to be in the in-place state in response to the times of continuously detecting that the level of the in-place pin is the low level for a preset number of times.

In some embodiments, determining whether the light module is in a lost state further comprises:

detecting a first register of the optical module;

and judging whether the optical module is in a lost state or not according to the value of the first register.

In some embodiments, determining whether the light module is in a lost state further comprises:

acquiring DDM information in the optical module;

and judging whether the optical module is in a loss state or not based on the optical power in the DDM information.

In some embodiments, detecting whether a preset report is generated by a PCS layer in the PHY further comprises:

detecting whether the PCS layer generates a connection establishment report.

Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides a computer-readable storage medium storing a computer program which, when executed by a processor, performs the steps of:

detecting the on-position state of the optical module;

in response to detecting that a light module is in an in-place state, controlling a PHY to turn on a signal transmitter corresponding to the light module;

judging whether the optical module is in a lost state or not;

responding to the fact that the optical module is not in a lost state, controlling a PHY (physical layer) to open a signal receiver corresponding to the optical module, and detecting whether a PCS (process control system) layer in the PHY generates a preset report or not;

in response to no preset report being generated, the signal receiver is turned off and it is redetected whether the light module is in a lost state.

In some embodiments, further comprising:

responding to the fact that the optical module is in the loss state, detecting whether the optical module is in the loss state again every preset time period until the optical module is not in the loss state.

In some embodiments, further comprising:

and controlling the PHY to close a signal transmitter and a signal receiver corresponding to the optical module in response to detecting that the optical module is changed from an on-bit state to an off-bit state.

In some embodiments, detecting an in-place status of a light module further comprises:

detecting the level of an in-place pin of the optical module;

and confirming that the optical module is detected to be in the in-place state in response to the times of continuously detecting that the level of the in-place pin is the low level for a preset number of times.

In some embodiments, determining whether the light module is in a lost state further comprises:

detecting a first register of the optical module;

and judging whether the optical module is in a lost state or not according to the value of the first register.

In some embodiments, determining whether the light module is in a lost state further comprises:

acquiring DDM information in the optical module;

and judging whether the optical module is in a loss state or not based on the optical power in the DDM information.

In some embodiments, detecting whether a preset report is generated by a PCS layer in the PHY further comprises:

detecting whether the PCS layer generates a connection establishment report.

The invention has one of the following beneficial technical effects: the scheme provided by the invention defines a set of PHY initialization flow by identifying the in-situ signal and the LOSs signal (LOS signal) of the optical module, and is used for avoiding the situations of abnormal error codes and abnormal functions of the interface caused by the plugging and unplugging of the optical module on the interface of the optical module or the plugging and unplugging of the optical fiber on the optical module.

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, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.

Fig. 1 is a flowchart illustrating a PHY initialization method according to an embodiment of the present invention;

fig. 2 is a schematic diagram of a connection structure between a PHY and an optical module interface according to an embodiment of the present invention;

fig. 3 is a flow chart of a PHY initialization method according to an embodiment of the present invention; (ii) a

Fig. 4 is a schematic structural diagram of a PHY initialization system according to an embodiment of the present invention;

FIG. 5 is a schematic structural diagram of a computer device provided in an embodiment of the present invention;

fig. 6 is a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.

It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.

In the embodiment of the present invention, LOS refers to Lost of Signal, and a Signal or register in the optical module is used to indicate that the optical module does not receive an optical Signal at this time; PCS refers to Physical Coding Sublayer, here defined in IEEE 802.3; PMA refers to Physical Medium Attachment, here the Physical media Attachment sublayer defined in IEEE 802.3; PHY is a Physical layer defined in IEEE802.3, includes sublayers such as PCS and PMA, and is a Physical layer in a device in a communication link, and realizes a function of transmitting and receiving signals on a communication medium. DDM refers to Digital Diagnostic Monitoring, and Digital Diagnostic function is defined by SFF-8472.

According to an aspect of the present invention, an embodiment of the present invention provides a PHY initialization method, as shown in fig. 1, which may include the steps of:

s1, detecting the on-position state of the optical module;

s2, in response to the fact that the optical module is detected to be in the in-place state, controlling the PHY to turn on a signal transmitter corresponding to the optical module;

s3, judging whether the optical module is in a lost state;

s4, responding to the optical module not being in the loss state, controlling the PHY to open a signal receiver corresponding to the optical module, and detecting whether a PCS layer in the PHY generates a preset report;

and S5, responding to the condition that no preset report is generated, turning off the signal receiver and re-detecting whether the optical module is in a loss state.

The scheme provided by the invention defines a set of PHY initialization flow by identifying the in-situ signal and the LOSs signal (LOS signal) of the optical module, and is used for avoiding the situations of abnormal error codes and abnormal functions of the interface caused by the plugging and unplugging of the optical module on the interface of the optical module or the plugging and unplugging of the optical fiber on the optical module.

In some embodiments, as shown in FIG. 2, the optical module includes an LOS register and physical in-place signal pins. When the optical module is inserted into the optical module interface, the on-site signal on the optical module interface is driven to a low level by the optical module. After the device is started, the controller detects the presence signal on the optical module interface in a fixed period, and judges whether the optical module is accessed, and if the controller detects that the presence state of the optical module is changed from "not in place" (corresponding to the high level of the presence signal) to "in place" (corresponding to the low level of the signal), the controller needs to execute an initialization action. If the controller detects that the on-position signal is changed from on-position to off-position, the closing action is required to be executed. The act of detecting the presence signal is therefore always performed after the device has been started.

In some embodiments, further comprising:

responding to the fact that the optical module is in the loss state, detecting whether the optical module is in the loss state again every preset time period until the optical module is not in the loss state.

In some embodiments, further comprising:

and controlling the PHY to close a signal transmitter and a signal receiver corresponding to the optical module in response to detecting that the optical module is changed from an on-bit state to an off-bit state.

In some embodiments, detecting an in-place status of a light module further comprises:

detecting the level of an in-place pin of the optical module;

and confirming that the optical module is detected to be in the in-place state in response to the times of continuously detecting that the level of the in-place pin is the low level for a preset number of times.

In some embodiments, determining whether the light module is in a lost state further comprises:

detecting a first register of the optical module;

and judging whether the optical module is in a lost state or not according to the value of the first register.

In some embodiments, determining whether the light module is in a lost state further comprises:

acquiring DDM information in the optical module;

and judging whether the optical module is in a loss state or not based on the optical power in the DDM information.

In some embodiments, detecting whether a preset report is generated by a PCS layer in the PHY further comprises:

detecting whether the PCS layer generates a connection establishment report.

Specifically, as shown in fig. 3, when it is detected that the optical module is changed from the non-live state to the live state, the optical module that needs to perform the reset operation according to the protocol standard is reset. And then the controller turns on a signal transmitter corresponding to the PHY chip and the optical module and transmits a signal to the optical module. The controller judges whether the optical module is in an LOS state at the moment, if not, the controller enters the next step, the electric signal receiver of the PHY chip is turned on to prepare to receive the electric signal converted from the optical signal from the optical module, if the optical module is still in the LOS state, the controller waits for time t2 to detect whether the optical module is in the LOS state again, and the steps are repeated until the LOS state is released. If the LOS state is released, after waiting t1, it is detected whether the physical layer chip reports that the link connection is established (i.e., link up), and if the link connection is reported to be established, the controller may consider the port link up at this time to notify the program using the optical module interface that the optical module interface can normally communicate. If the PCS in the PHY does not report linkup or does not report HI-BER or Fault state defined in IEEE802.3, the electric signal receiver of the optical module corresponding to the PHY chip is closed, and the LOS state is detected again.

The LOS state can access the LOS register of the optical module through the LOS pin or the I2C bus of the optical module, and for the optical module supporting DDM information acquisition, the received optical power in DDM information in the optical module can be preferably accessed through the I2C bus to perform judgment, the judgment standard can be a predefined value, or an LOS optical power early warning value recorded in the DDM information of the optical module, and when the received optical power in the DDM information is smaller than a preset value or an early warning value, the LOS state is judged. These registers for DDM information are defined by the optical module standard.

And after the optical module is detected to be changed from the in-position to the out-of-position, the receiver and the transmitter corresponding to the PHY and the optical module are turned off.

For the detection of the on-bit signal, the controller may repeatedly detect the on-bit signal, each time the detection interval is t3, and if the on-bit signal is detected to be in the "on-bit" (low) state 3 times or other times defined, the on-bit signal is considered to be in the on-bit state, otherwise, the on-bit state is not detected.

The scheme provided by the invention defines a set of PHY initialization flow by identifying the in-situ signal and the LOSs signal (LOS signal) of the optical module, and is used for avoiding the situations of abnormal error codes and abnormal functions of the interface caused by the plugging and unplugging of the optical module on the interface of the optical module or the plugging and unplugging of the optical fiber on the optical module.

Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides a PHY initialization system 400, as shown in fig. 4, including:

a first detection module 401 configured to detect an in-place state of a light module;

a control module 402 configured to control the PHY to turn on a signal transmitter corresponding to a light module in response to detecting that the light module is in a presence state;

a determining module 403 configured to determine whether the optical module is in a lost state;

a second detection module 404, configured to, in response to that the optical module is not in a lost state, control the PHY to turn on a signal receiver corresponding to the optical module, and detect whether a preset report is generated by a PCS layer in the PHY;

a processing module 405 configured to turn off the signal receiver and re-detect whether a light module is in a lost state in response to no preset report being generated.

The scheme provided by the invention defines a set of PHY initialization flow by identifying the in-situ signal and the LOSs signal (LOS signal) of the optical module, and is used for avoiding the situations of abnormal error codes and abnormal functions of the interface caused by the plugging and unplugging of the optical module on the interface of the optical module or the plugging and unplugging of the optical fiber on the optical module.

In some embodiments, further comprising:

responding to the fact that the optical module is in the loss state, detecting whether the optical module is in the loss state again every preset time period until the optical module is not in the loss state.

In some embodiments, further comprising:

and controlling the PHY to close a signal transmitter and a signal receiver corresponding to the optical module in response to detecting that the optical module is changed from an on-bit state to an off-bit state.

In some embodiments, detecting an in-place status of a light module further comprises:

detecting the level of an in-place pin of the optical module;

and confirming that the optical module is detected to be in the in-place state in response to the times of continuously detecting that the level of the in-place pin is the low level for a preset number of times.

In some embodiments, determining whether the light module is in a lost state further comprises:

detecting a first register of the optical module;

and judging whether the optical module is in a lost state or not according to the value of the first register.

In some embodiments, determining whether the light module is in a lost state further comprises:

acquiring DDM information in the optical module;

and judging whether the optical module is in a loss state or not based on the optical power in the DDM information.

In some embodiments, detecting whether a preset report is generated by a PCS layer in the PHY further comprises:

detecting whether the PCS layer generates a connection establishment report.

The scheme provided by the invention defines a set of PHY initialization flow by identifying the in-situ signal and the LOSs signal (LOS signal) of the optical module, and is used for avoiding the situations of abnormal error codes and abnormal functions of the interface caused by the plugging and unplugging of the optical module on the interface of the optical module or the plugging and unplugging of the optical fiber on the optical module.

Based on the same inventive concept, according to another aspect of the present invention, as shown in fig. 5, an embodiment of the present invention further provides a computer apparatus 501, comprising:

at least one processor 520; and

a memory 510, the memory 510 storing a computer program 511 executable on the processor, the processor 520 executing the program to perform the steps of:

s1, detecting the on-position state of the optical module;

s2, in response to the fact that the optical module is detected to be in the in-place state, controlling the PHY to turn on a signal transmitter corresponding to the optical module;

s3, judging whether the optical module is in a lost state;

s4, responding to the optical module not being in the loss state, controlling the PHY to open a signal receiver corresponding to the optical module, and detecting whether a PCS layer in the PHY generates a preset report;

and S5, responding to the condition that no preset report is generated, turning off the signal receiver and re-detecting whether the optical module is in a loss state.

The scheme provided by the invention defines a set of PHY initialization flow by identifying the in-situ signal and the LOSs signal (LOS signal) of the optical module, and is used for avoiding the situations of abnormal error codes and abnormal functions of the interface caused by the plugging and unplugging of the optical module on the interface of the optical module or the plugging and unplugging of the optical fiber on the optical module.

In some embodiments, further comprising:

responding to the fact that the optical module is in the loss state, detecting whether the optical module is in the loss state again every preset time period until the optical module is not in the loss state.

In some embodiments, further comprising:

and controlling the PHY to close a signal transmitter and a signal receiver corresponding to the optical module in response to detecting that the optical module is changed from an on-bit state to an off-bit state.

In some embodiments, detecting an in-place status of a light module further comprises:

detecting the level of an in-place pin of the optical module;

and confirming that the optical module is detected to be in the in-place state in response to the times of continuously detecting that the level of the in-place pin is the low level for a preset number of times.

In some embodiments, determining whether the light module is in a lost state further comprises:

detecting a first register of the optical module;

and judging whether the optical module is in a lost state or not according to the value of the first register.

In some embodiments, determining whether the light module is in a lost state further comprises:

acquiring DDM information in the optical module;

and judging whether the optical module is in a loss state or not based on the optical power in the DDM information.

In some embodiments, detecting whether a preset report is generated by a PCS layer in the PHY further comprises:

detecting whether the PCS layer generates a connection establishment report.

The scheme provided by the invention defines a set of PHY initialization flow by identifying the in-situ signal and the LOSs signal (LOS signal) of the optical module, and is used for avoiding the situations of abnormal error codes and abnormal functions of the interface caused by the plugging and unplugging of the optical module on the interface of the optical module or the plugging and unplugging of the optical fiber on the optical module.

Based on the same inventive concept, according to another aspect of the present invention, as shown in fig. 6, an embodiment of the present invention further provides a computer-readable storage medium 601, where the computer-readable storage medium 601 stores computer program instructions 610, and the computer program instructions 610, when executed by a processor, perform the following steps:

s1, detecting the on-position state of the optical module;

s2, in response to the fact that the optical module is detected to be in the in-place state, controlling the PHY to turn on a signal transmitter corresponding to the optical module;

s3, judging whether the optical module is in a lost state;

s4, responding to the optical module not being in the loss state, controlling the PHY to open a signal receiver corresponding to the optical module, and detecting whether a PCS layer in the PHY generates a preset report;

and S5, responding to the condition that no preset report is generated, turning off the signal receiver and re-detecting whether the optical module is in a loss state.

The scheme provided by the invention defines a set of PHY initialization flow by identifying the in-situ signal and the LOSs signal (LOS signal) of the optical module, and is used for avoiding the situations of abnormal error codes and abnormal functions of the interface caused by the plugging and unplugging of the optical module on the interface of the optical module or the plugging and unplugging of the optical fiber on the optical module.

In some embodiments, further comprising:

responding to the fact that the optical module is in the loss state, detecting whether the optical module is in the loss state again every preset time period until the optical module is not in the loss state.

In some embodiments, further comprising:

and controlling the PHY to close a signal transmitter and a signal receiver corresponding to the optical module in response to detecting that the optical module is changed from an on-bit state to an off-bit state.

In some embodiments, detecting an in-place status of a light module further comprises:

detecting the level of an in-place pin of the optical module;

and confirming that the optical module is detected to be in the in-place state in response to the times of continuously detecting that the level of the in-place pin is the low level for a preset number of times.

In some embodiments, determining whether the light module is in a lost state further comprises:

detecting a first register of the optical module;

and judging whether the optical module is in a lost state or not according to the value of the first register.

In some embodiments, determining whether the light module is in a lost state further comprises:

acquiring DDM information in the optical module;

and judging whether the optical module is in a loss state or not based on the optical power in the DDM information.

In some embodiments, detecting whether a preset report is generated by a PCS layer in the PHY further comprises:

detecting whether the PCS layer generates a connection establishment report.

The scheme provided by the invention defines a set of PHY initialization flow by identifying the in-situ signal and the LOSs signal (LOS signal) of the optical module, and is used for avoiding the situations of abnormal error codes and abnormal functions of the interface caused by the plugging and unplugging of the optical module on the interface of the optical module or the plugging and unplugging of the optical fiber on the optical module.

Finally, it should be noted that, as will be understood by those skilled in the art, all or part of the processes of the methods of the above embodiments may be implemented by a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above.

Further, it should be appreciated that the computer-readable storage media (e.g., memory) herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory.

Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. 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 disclosed embodiments of the present invention.

The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.

It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.

The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.

It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.

Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:光模块及信号收发方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!