Method and equipment for improving receiving and reporting monitoring power range of optical module

文档序号:861000 发布日期:2021-03-16 浏览:5次 中文

阅读说明:本技术 提高光模块接收上报监控功率范围的方法及设备 (Method and equipment for improving receiving and reporting monitoring power range of optical module ) 是由 陈梦磊 吴天书 杨现文 李林科 张健 于 2020-10-30 设计创作,主要内容包括:本发明实施例提供了一种提高光模块接收上报监控功率范围的方法及设备。所述方法包括:对第一引脚及第二引脚进行电压采样;若采样电压低于预设阈值,则采用第一引脚的采样电压及第一校准系数上报监控功率。本发明实施例提供的提高光模块接收上报监控功率范围的方法及设备,通过对两个引脚进行分别采样及分别监控,可以有效扩大光模块接收上报监控功率的范围以及监控精度。(The embodiment of the invention provides a method and equipment for improving the receiving and reporting monitoring power range of an optical module. The method comprises the following steps: carrying out voltage sampling on the first pin and the second pin; and if the sampling voltage is lower than the preset threshold value, reporting the monitoring power by adopting the sampling voltage of the first pin and the first calibration coefficient. The method and the device for improving the range of the monitoring power received and reported by the optical module provided by the embodiment of the invention can effectively expand the range of the monitoring power received and reported by the optical module and the monitoring precision by respectively sampling and monitoring the two pins.)

1. A method for improving the receiving and reporting monitoring power range of an optical module is characterized by comprising the following steps:

carrying out voltage sampling on the first pin and the second pin;

and if the sampling voltage is lower than the preset threshold value, reporting the monitoring power by adopting the sampling voltage of the first pin and the first calibration coefficient.

2. The method of claim 1, further comprising: and if the sampling voltage is smaller than the preset threshold value, reporting the monitoring power by adopting the sampling voltage of the second pin and a second calibration coefficient.

3. The method as claimed in claim 1, wherein the first pin is an RX POWER pin.

4. The method as claimed in claim 1, wherein the second pin is RX POWER1 pin.

5. The method as claimed in claim 1, wherein the reporting of the monitoring power by using the sampling voltage of the first pin and the first calibration coefficient includes: and correcting the sampling voltage of the first pin by adopting a first calibration coefficient, performing analog-to-digital conversion on the corrected sampling voltage of the first pin, and reporting the received first optical power as monitoring power.

6. The method as claimed in claim 2, wherein the reporting the monitoring power by using the sampling voltage of the second pin and the second calibration factor comprises: and correcting the sampling voltage of the second pin by adopting a second calibration coefficient, performing analog-to-digital conversion on the corrected sampling voltage of the second pin, and reporting the received second optical power as the monitoring power.

7. A device for improving the receiving and reporting monitoring power range of an optical module is characterized by comprising:

the sampling module is used for sampling voltage of the first pin and the second pin;

and the power reporting module is used for reporting the monitoring power by adopting the sampling voltage of the first pin and the first calibration coefficient if the sampling voltage is lower than the preset threshold value.

8. An electronic device, comprising:

at least one processor, at least one memory, and a communication interface; wherein the content of the first and second substances,

the processor, the memory and the communication interface are communicated with each other;

the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 6.

9. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1 to 6.

Technical Field

The embodiment of the invention relates to the technical field of optical modules, in particular to a method and equipment for improving the receiving and reporting monitoring power range of an optical module.

Background

The conventional receiving and monitoring of the optical module adopts single-point sampling test, so that the receiving and reporting monitoring range of the optical module is smaller and the monitoring precision under small light is lower. Therefore, developing a method and apparatus for increasing the reported monitoring power range of the optical module can effectively overcome the above-mentioned drawbacks in the related art, and is an urgent technical problem to be solved in the industry.

Disclosure of Invention

In view of the above problems in the prior art, embodiments of the present invention provide a method and an apparatus for increasing a received and reported monitoring power range of an optical module.

In a first aspect, an embodiment of the present invention provides a method for increasing a received and reported monitoring power range of an optical module, including: carrying out voltage sampling on the first pin and the second pin; and if the sampling voltage is lower than the preset threshold value, reporting the monitoring power by adopting the sampling voltage of the first pin and the first calibration coefficient.

On the basis of the content of the above method embodiment, the method for improving the receiving and reporting monitoring power range of the optical module provided in the embodiment of the present invention further includes: and if the sampling voltage is smaller than the preset threshold value, reporting the monitoring power by adopting the sampling voltage of the second pin and a second calibration coefficient.

On the basis of the content of the above method embodiment, in the method for improving the receiving and reporting monitoring POWER range of the optical module provided in the embodiment of the present invention, the first pin is an RX POWER pin.

On the basis of the content of the above method embodiment, in the method for improving the monitoring POWER range reported and received by the optical module provided in the embodiment of the present invention, the second pin is an RX POWER1 pin.

On the basis of the content of the above method embodiment, the method for improving the monitoring power range reported by the optical module in the embodiment of the present invention, where the reporting of the monitoring power by using the sampling voltage of the first pin and the first calibration coefficient includes: and correcting the sampling voltage of the first pin by adopting a first calibration coefficient, performing analog-to-digital conversion on the corrected sampling voltage of the first pin, and reporting the received first optical power as monitoring power.

On the basis of the content of the foregoing method embodiment, the method for increasing the monitoring power range reported by the optical module in the embodiment of the present invention, where the reporting of the monitoring power by using the sampling voltage of the second pin and the second calibration coefficient includes: and correcting the sampling voltage of the second pin by adopting a second calibration coefficient, performing analog-to-digital conversion on the corrected sampling voltage of the second pin, and reporting the received second optical power as the monitoring power.

In a second aspect, an embodiment of the present invention provides an apparatus for increasing a received and reported monitoring power range of an optical module, including:

the sampling module is used for sampling voltage of the first pin and the second pin;

and the power reporting module is used for reporting the monitoring power by adopting the sampling voltage of the first pin and the first calibration coefficient if the sampling voltage is lower than the preset threshold value.

In a third aspect, an embodiment of the present invention provides an electronic device, including:

at least one processor; and

at least one memory communicatively coupled to the processor, wherein:

the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the method for improving the receiving and reporting monitoring power range of the optical module provided by any one of the various implementation manners of the first aspect.

In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium, where the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions enable a computer to execute the method for improving the received reported monitoring power range of an optical module, provided in any one of the various implementation manners of the first aspect.

The method and the device for improving the range of the monitoring power received and reported by the optical module provided by the embodiment of the invention can effectively expand the range of the monitoring power received and reported by the optical module and the monitoring precision by respectively sampling and monitoring the two pins.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description will be given below to the drawings required for the description of the embodiments or the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.

Fig. 1 is a flowchart of a method for increasing a received and reported monitoring power range of an optical module according to an embodiment of the present invention;

FIG. 2 is a schematic diagram of a general flow chart provided by an embodiment of the present invention;

FIG. 3 is a schematic diagram of the general control principle provided by the embodiment of the present invention;

fig. 4 is a schematic structural diagram of an apparatus for increasing a received and reported monitoring power range of an optical module according to an embodiment of the present invention;

fig. 5 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. In addition, technical features of various embodiments or individual embodiments provided by the present invention may be arbitrarily combined with each other to form a feasible technical solution, and such combination is not limited by the sequence of steps and/or the structural composition mode, but must be realized by a person skilled in the art, and when the technical solution combination is contradictory or cannot be realized, such a technical solution combination should not be considered to exist and is not within the protection scope of the present invention.

An embodiment of the present invention provides a method for increasing a monitoring power range reported by an optical module, referring to fig. 1, where the method includes: carrying out voltage sampling on the first pin and the second pin; and if the sampling voltage is lower than the preset threshold value, reporting the monitoring power by adopting the sampling voltage of the first pin and the first calibration coefficient.

Based on the content of the foregoing method embodiment, as an optional embodiment, the method for improving the monitoring power range reported by the optical module in the embodiment of the present invention further includes: and if the sampling voltage is smaller than the preset threshold value, reporting the monitoring power by adopting the sampling voltage of the second pin and a second calibration coefficient.

Based on the content of the foregoing method embodiment, as an optional embodiment, in the method for improving the monitoring POWER range reported by the optical module in the embodiment of the present invention, the first pin is an RX POWER pin.

Based on the content of the foregoing method embodiment, as an optional embodiment, in the method for improving the monitoring POWER range reported by the optical module in the embodiment of the present invention, the second pin is an RX POWER1 pin.

Based on the content of the foregoing method embodiment, as an optional embodiment, the method for improving the monitoring power range reported by the optical module in the embodiment of the present invention includes that reporting the monitoring power by using the sampling voltage of the first pin and the first calibration coefficient includes: and correcting the sampling voltage of the first pin by adopting a first calibration coefficient, performing analog-to-digital conversion on the corrected sampling voltage of the first pin, and reporting the received first optical power as monitoring power.

Based on the content of the foregoing method embodiment, as an optional embodiment, the method for increasing the range of monitoring power received and reported by an optical module according to the embodiment of the present invention, where the reporting of the monitoring power by using the sampling voltage of the second pin and the second calibration coefficient includes: and correcting the sampling voltage of the second pin by adopting a second calibration coefficient, performing analog-to-digital conversion on the corrected sampling voltage of the second pin, and reporting the received second optical power as the monitoring power.

Specifically, MCUs P0.1 and P0.2 sample the voltage of RX POWER and RX POWER1 pins, respectively; judging the sampling voltage, and if the sampling voltage is lower than a preset threshold value (the preset threshold value can be any value from 0 volt to 2.4 volts), reporting the external POWER by using the sampling value of RX POWER and a first set of calibration coefficients; when the voltage is larger than the preset threshold value, the external POWER is reported by using the sampling value of RX POWER1 and a second set of calibration coefficient. Referring to fig. 2, after receiving light, the ROSA performs photoelectric conversion, the converted current generates a potential difference through a ground resistor, the MCU performs voltage sampling and determines a sampling voltage interval, and the MCU performs AD conversion on the sampling voltage and reports the received light power. The used MCU reference voltage is 2.4V, and the sampling AD is 14 bits; the ROSA response was 0.7 mA/W.

Firstly, the maximum monitoring optical power can be covered by using a 500 ohm sampling resistor

Using a sampling resistor of 1 kilo ohm, even using the RX POWER point in fig. 3, the maximum sampling current is 2.4V/1k Ω ═ 2.4mA, and the corresponding limit received optical POWER is 2.4mA/0.7mA ═ 3.42W ═ 5.34 dBm; when a sampling resistor of 500 ohms is used, even at RX POWER1 point in fig. 3, the maximum sampling current is 2.4/500 Ω -4.8 mA, and the corresponding limit received optical POWER is 4.8mA/0.7 mA-8.36 dBm; (the max-8dBm requirement can now be met).

Secondly, the monitoring precision under low light can be improved by using a 1 kiloohm sampling resistor;

calculating a calibration coefficient

② reporting the theoretical receiving under different resistances when the light is at-30 dBm

The AD value can jump because the sampling value is easily interfered by the outside under the condition of small sampling value;

the sampling precision can be greatly reduced (exceeding the range of 3 dB) under the condition of small light by using a small resistor; and the segmented sampling can perfectly cover the upper limit of the large light and the precision of the small light, thereby solving the problem that the monitoring range of the module for receiving and reporting is too narrow.

The method for improving the range of the monitoring power received and reported by the optical module provided by the embodiment of the invention can effectively expand the range and the monitoring precision of the monitoring power received and reported by the optical module by respectively sampling and monitoring the two pins.

The implementation basis of the various embodiments of the present invention is realized by programmed processing performed by a device having a processor function. Therefore, in engineering practice, the technical solutions and functions thereof of the embodiments of the present invention can be packaged into various modules. Based on this practical situation, on the basis of the foregoing embodiments, an embodiment of the present invention provides a device for increasing a received and reported monitoring power range of an optical module, where the device is configured to execute a method for increasing a received and reported monitoring power range of an optical module in the foregoing method embodiment. Referring to fig. 4, the apparatus includes:

the sampling module is used for sampling voltage of the first pin and the second pin;

and the power reporting module is used for reporting the monitoring power by adopting the sampling voltage of the first pin and the first calibration coefficient if the sampling voltage is lower than the preset threshold value.

The device for improving the range of the monitoring power received and reported by the optical module provided by the embodiment of the invention adopts various modules in fig. 4, and can effectively expand the range of the monitoring power received and reported by the optical module and the monitoring precision by respectively sampling and monitoring two pins.

It should be noted that, the apparatus in the apparatus embodiment provided by the present invention may be used for implementing methods in other method embodiments provided by the present invention, except that corresponding function modules are provided, and the principle of the apparatus embodiment provided by the present invention is basically the same as that of the apparatus embodiment provided by the present invention, so long as a person skilled in the art obtains corresponding technical means by combining technical features on the basis of the apparatus embodiment described above, and obtains a technical solution formed by these technical means, on the premise of ensuring that the technical solution has practicability, the apparatus in the apparatus embodiment described above may be modified, so as to obtain a corresponding apparatus class embodiment, which is used for implementing methods in other method class embodiments. For example:

based on the content of the foregoing device embodiment, as an optional embodiment, the device for improving the range of monitoring power reported by the optical module in the embodiment of the present invention further includes: and the second module is used for reporting the monitoring power by adopting the sampling voltage of the second pin and a second calibration coefficient if the sampling voltage is smaller than the preset threshold value.

Based on the content of the foregoing device embodiment, as an optional embodiment, the device for improving the range of monitoring power reported by the optical module in the embodiment of the present invention further includes: and the third module is used for correcting the sampling voltage of the first pin by adopting the first calibration coefficient, performing analog-to-digital conversion on the corrected sampling voltage of the first pin, and reporting the received first optical power as the monitoring power.

Based on the content of the foregoing device embodiment, as an optional embodiment, the device for improving the range of monitoring power reported by the optical module in the embodiment of the present invention further includes: and the fourth module is used for correcting the sampling voltage of the second pin by adopting a second calibration coefficient, performing analog-to-digital conversion on the corrected sampling voltage of the second pin, and reporting the received second optical power as the monitoring power.

The method of the embodiment of the invention is realized by depending on the electronic equipment, so that the related electronic equipment is necessarily introduced. To this end, an embodiment of the present invention provides an electronic apparatus, as shown in fig. 5, including: at least one processor (processor)501, a communication Interface (Communications Interface)504, at least one memory (memory)502 and a communication bus 503, wherein the at least one processor 501, the communication Interface 504 and the at least one memory 502 are in communication with each other through the communication bus 503. The at least one processor 501 may invoke logic instructions in the at least one memory 502 to perform all or a portion of the steps of the methods provided by the various method embodiments described above.

Furthermore, the logic instructions in the at least one memory 502 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the method embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.

Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.

The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. Based on this recognition, each block in the flowchart or block diagrams may represent a module, a program segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

In this patent, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:高精度光纤传输延迟定位装置及延迟定位方法

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!