CN113438021B - Calibration method and device for optical power detection, electronic device and storage medium - Google Patents

Calibration method and device for optical power detection, electronic device and storage medium Download PDF

Info

Publication number
CN113438021B
CN113438021B CN202110857407.6A CN202110857407A CN113438021B CN 113438021 B CN113438021 B CN 113438021B CN 202110857407 A CN202110857407 A CN 202110857407A CN 113438021 B CN113438021 B CN 113438021B
Authority
CN
China
Prior art keywords
value
power
sampling
linear function
adc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110857407.6A
Other languages
Chinese (zh)
Other versions
CN113438021A (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.)
Accelink Technologies Co Ltd
Original Assignee
Accelink Technologies 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 Accelink Technologies Co Ltd filed Critical Accelink Technologies Co Ltd
Priority to CN202110857407.6A priority Critical patent/CN113438021B/en
Publication of CN113438021A publication Critical patent/CN113438021A/en
Application granted granted Critical
Publication of CN113438021B publication Critical patent/CN113438021B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/079Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
    • H04B10/0795Performance monitoring; Measurement of transmission parameters
    • H04B10/07955Monitoring or measuring power

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)

Abstract

The present disclosure provides a calibration method and apparatus for optical power detection, an electronic device and a storage medium, wherein the method includes: acquiring a first sampling value of an optical signal when a photoelectric converter works in a linear region; wherein the first sampling value comprises: actual power values and ADC values for a plurality of sampling points; determining a first linear function according to the first sampling value; acquiring a second sampling value; wherein the second sampling value comprises: actual power values and ADC values for at least one sample point; substituting the ADC value into the first linear function to obtain an output power value; obtaining a correction power according to the difference between the output power value and the actual power value; performing function fitting according to the correction power, the first sampling value and the second sampling value to obtain a second linear function; the second linear function is used for correcting the reported power value of the sampling point of the photoelectric converter; the method enlarges the detection range and improves the detection precision.

Description

Calibration method and device for optical power detection, electronic device and storage medium
Technical Field
The present disclosure relates to the field of optical communications technologies, and in particular, to a calibration method and apparatus for optical power detection, an electronic device, and a storage medium.
Background
With the development of information technology, the optical power detection is required to meet the requirements of large detection range and high precision in the technical field of optical communication, and the existing calibration device for optical power detection has the disadvantages of complex algorithm, large calculation amount and low precision, and cannot meet the requirements of large detection range and high precision in the technical field of optical communication.
Therefore, a device which can perform calibration on optical power reporting and has the advantages of large detection range, simple algorithm, small calculation amount and high precision is needed.
Disclosure of Invention
The disclosure provides a calibration method and device for optical power detection, an electronic device and a storage medium.
A first aspect of the present disclosure provides a method for scaling optical power detection, the method comprising:
acquiring a first sampling value of an optical signal when a photoelectric converter works in a linear region; wherein the first sample value comprises: actual power values and ADC values for a plurality of sampling points;
determining a first linear function according to the first sampling value;
acquiring a second sampling value; wherein the second sample value comprises: actual power values and ADC values for at least one sample point;
substituting the ADC value into the first linear function to obtain an output power value;
obtaining a correction power according to the difference value between the output power value and the actual power value;
performing function fitting according to the correction power, the first sampling value and the second sampling value to obtain a second linear function; and the second linear function is used for correcting the reported power value of the sampling point of the photoelectric converter.
Optionally, the determining a first linear function according to the first sample value includes:
according to the first sampling value, a first coefficient of a first linear function relation and a first offset value of a power value are determined.
Optionally, the obtaining a correction power according to a difference between the output power value and the actual power value includes:
subtracting the difference value between the actual power values according to the output power values to obtain thermal noise compensation values;
and obtaining the correction power according to the thermal noise compensation value.
Optionally, the method further includes:
correcting the reported power value of the sampling point of the photoelectric converter according to the second linear function, the ADC value of the sampling point of the photoelectric converter and the thermal noise compensation value;
and reporting the corrected reported power value of the sampling point of the photoelectric converter to a memory.
Optionally, the method further comprises:
verifying the calibration precision according to the actual power values and reported power values of a plurality of sampling points at least including the highest sampling point and the lowest sampling point when the photoelectric converter works in a linear region;
and if the calibration precision meets a preset condition that the calibration precision is lower than a precision threshold, uploading the second linear function and the thermal noise compensation value to a server and/or a storage unit.
According to a second aspect of the present disclosure, there is provided a calibration apparatus for optical power detection, the apparatus comprising:
the first acquisition module is used for acquiring a first sampling value of an optical signal when the photoelectric converter works in a linear region; wherein the first sample value comprises: actual power values and ADC values for a plurality of sampling points;
a first determining module, configured to determine a first linear function according to the first sampling value;
the second acquisition module is used for acquiring a second sampling value; wherein the second sample value comprises: actual power values and ADC values for at least one sample point;
the second determining module is used for substituting the ADC value into the first linear function to obtain an output power value;
a third determining module, configured to obtain a correction power according to a difference between the output power value and the actual power value;
the fourth determining module is used for performing function fitting according to the correction power, the first sampling value and the second sampling value to obtain a second linear function; and the second linear function is used for correcting the reported power value of the sampling point of the photoelectric converter.
Optionally, the first determining module is further configured to:
according to the first sampling value, a first coefficient of a first linear function relation and a first offset value of the power value are determined.
Optionally, the third determining module is further configured to:
subtracting the difference value between the actual power values according to the output power values to obtain thermal noise compensation values;
and obtaining the correction power according to the thermal noise compensation value.
According to a third aspect of the present disclosure, there is provided an electronic apparatus comprising:
a memory;
and the processor is connected with the memory and used for executing the instructions by the computer stored in the memory, so that the steps in the calibration method for optical power detection provided by the first aspect can be realized.
According to a fourth aspect of the present disclosure, there is provided a storage medium storing computer-executable instructions; the computer executable instructions, when executed by a processor, can implement the steps of the calibration method for optical power detection provided by the first aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: in an embodiment of the present disclosure, the method at least includes: acquiring a first sampling value of an optical signal when a photoelectric converter works in a linear region; determining a first linear function according to the first sampling value; acquiring a second sampling value; wherein the second sample value comprises: actual power values and ADC values for at least one sample point; substituting the ADC value into the first linear function to obtain an output power value; obtaining a correction power according to the difference value between the output power value and the actual power value; performing function fitting according to the correction power, the first sampling value and the second sampling value to obtain a second linear function; the second linear function is used for correcting the reported power value of the sampling point of the photoelectric converter; determining a first linear function according to a first sampling value of an optical signal when the photoelectric converter works in a linear region; and carrying out function fitting according to the correction power, the first sampling value and the second sampling value to obtain a second linear function, so that the reporting power of the sampling point of the photoelectric converter can be calibrated and calibrated by utilizing the first sampling value of the photoelectric converter working in a linear region.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
FIG. 1 is a flow diagram illustrating a method for scaling optical power detection in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating a method for scaling optical power detection in accordance with an exemplary embodiment;
FIG. 3 is a flowchart illustrating a method for scaling optical power detection in accordance with an exemplary embodiment;
FIG. 4 is a flowchart illustrating a method for scaling optical power detection in accordance with an exemplary embodiment;
FIG. 5 is a flowchart illustrating a method for scaling optical power detection in accordance with an exemplary embodiment;
FIG. 6 is a schematic diagram illustrating an exemplary embodiment of a calibration apparatus for optical power detection;
fig. 7 is a schematic structural diagram illustrating a calibration apparatus for optical power detection according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with embodiments of the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the disclosed embodiments, as detailed in the attached application.
The embodiment of the present disclosure provides a calibration method for optical power detection, which is shown in fig. 1 and includes:
step S101, acquiring a first sampling value of an optical signal when a photoelectric converter works in a linear region; wherein the first sample value comprises: actual power values and ADC values for a plurality of sampling points;
step S102, determining a first linear function according to the first sampling value;
step S103, acquiring a second sampling value; wherein the second sample value comprises: actual power values and ADC values for at least one sample point;
step S104, substituting the ADC value into the first linear function to obtain an output power value;
step S105, obtaining a correction power according to the difference value between the output power value and the actual power value;
step S106, performing function fitting according to the correction power, the first sampling value and the second sampling value to obtain a second linear function; and the second linear function is used for correcting the reported power value of the sampling point of the photoelectric converter.
In the embodiment of the present disclosure, in step S101, a first sample value of an optical signal when a photoelectric converter operates in a linear region is obtained; wherein the first sample value comprises: actual power values and ADC values for a plurality of sample points. Here, the plurality of sampling points used in the first sampling value are sampling points at an equal logarithmic power value interval of the actual power value in the form of logarithmic power.
In the embodiment of the present disclosure, among the plurality of sampling points in step S101, the sampling point with the lowest optical power needs to be greater than-40 dBm. The plurality of sampling points are in a linear region, and a fitting formula of the linear region can be obtained through the plurality of sampling points in the linear region.
In the embodiment of the present disclosure, in step S102, a first linear function is determined according to the first sampling value. I.e. the first linear function is determined by the actual power values and ADC values at a plurality of sampling points in the linear region. In the linear region, for the detected light power more than-40 dBm, the influence of noise interference on the linearity of the sampling point is very small, and the actual power value and ADC value of at least 3 points are adopted to determine the first linear function.
In the disclosed embodiment, the first linear function is a linear function,such as: PdBm ═ K 0 *ADC+B 0 ,K 0 、B 0 Is a constant, K, contained in a linear function 0 Is the first coefficient of the ADC value, B 0 A first offset value (also referred to as the intercept) of PdBm.
In the embodiment of the present disclosure, in step S103, a second sampling value is obtained; wherein the second sample value comprises: actual power values and ADC values for at least one sample point. Sampling points in a nonlinear area are adopted as the second sampling values; when the power of the sampling point in the nonlinear area is lower than-40 dBm, the power is small, noise interference can cause poor linearity, the sampling point is in the nonlinear area, and the error is large, so that the thermal noise causing the error can be obtained only by selecting the actual power value and the ADC value of at least one sampling point in the nonlinear area.
In this embodiment of the disclosure, in step S104, an output power value is obtained by substituting the ADC value into the first linear function. And substituting the ADC value of the second sampling value into the first linear function to obtain a theoretical output power value.
In this embodiment of the present disclosure, in step S104, a correction power is obtained according to a difference between the output power value and the actual power value. According to the difference value between the output power value and the actual power value, a thermal noise error can be obtained, and then the first linear function is corrected according to the thermal noise error.
In the embodiment of the present disclosure, in step S105, a correction power is obtained according to a difference between the output power value and the actual power value. Specifically, a thermal noise error value is obtained according to a difference between the output power value and the actual power value, and the actual power value is corrected according to the thermal noise error value to obtain corrected power.
In the embodiment of the present disclosure, in step S106, performing function fitting according to the correction power, the first sampling value, and the second sampling value to obtain a second linear function; and the second linear function is used for correcting the reported power value of the sampling point of the photoelectric converter. I.e. according to the corrected power, firstSampling value and second sampling value to obtain second coefficient K of ADC of second linear function 1 And a second offset value B 1 (ii) a Wherein the second coefficient K1 is equal to the first coefficient K 0 . Second offset value B 1 Dependent on the first offset value B 0 And a thermal noise error value.
In step 106, in the embodiment of the present disclosure, function fitting is performed according to the corrected powers PdBm _ offset of the plurality of sampling points, the ADC value of the first sampling value, and the ADC value of the second sampling value, so as to obtain constant values K1 and B1 of the second linear function. Wherein, K1 is the second coefficient of the ADC, and B1 is the second offset value of the correction power value.
In the embodiment of the disclosure, since the sampling point of the linear region is not interfered by the thermal noise, and the sampling point of the nonlinear region is interfered by the thermal noise, according to the first sampling value when the photoelectric converter operates in the linear region and the second sampling value when the photoelectric converter operates in the nonlinear region, the thermal noise error value received when the photoelectric converter operates in the nonlinear region can be determined, and thus, according to the determined thermal noise error value, the fitting formula in the linear region is calibrated to obtain the second linear function.
In the embodiment of the disclosure, the first linear function is calibrated by using the actual power value and the ADC value of at least one sampling point included in the second sampling value of the photoelectric converter when operating in the nonlinear region, so as to obtain the second linear function, and the second linear function may be used to determine the reported power value of the photoelectric converter operating in the sampling point of the nonlinear region. Therefore, no matter the power measuring device works in a linear region or a nonlinear region, a more accurate reported power value can be obtained, and the accuracy is improved while the requirement of a detection range is met.
In the embodiment of the present disclosure, as shown in fig. 2, the step S102 includes:
step S1021, according to the first sampling value, a first coefficient of the first linear function relation and a first offset value of the power value are determined.
In the embodiment of the present disclosure, in step S1021, the first linear function relation is:
PdBm=K 0 *ADC+B 0 equation 1.1
In the above equation 1.1, K 0 Is the first coefficient of the ADC, B 0 Is the first offset value for power value PdBm.
In the embodiment of the present disclosure, a plurality of the plurality of sampling points is greater than or equal to 2 by the first sampling value, that is, the actual power value and the ADC value of the plurality of sampling points.
In one embodiment, K is determined by selecting the real power values PdBm and ADC of at least 3 samples operating in the linear region 0 、B 0 The value of (c).
In the embodiment of the present disclosure, a fitting formula PdBm ═ K of a linear region may be utilized 0 *ADC+B 0 And calibrating the thermal noise error of the sampling point of the nonlinear area.
In the embodiment of the present disclosure, as shown in fig. 3, the step S105 includes:
step S1051, subtracting the difference value between the actual power values according to the output power values to obtain a thermal noise compensation value;
and step S1052, obtaining the correction power according to the thermal noise compensation value.
In the embodiment of the present disclosure, in step S1051, the output power value of the optical signal of the at least one sampling point when the photoelectric converter operates in the nonlinear region is determined according to the ADC value of the at least one sampling point in the second sampling value and the first linear function. Specifically, the ADC value of at least one sampling point when operating in the nonlinear region is substituted into the above equation 1.1, and the output power value thereof can be calculated.
In the embodiment of the present disclosure, in step S1051, the thermal noise compensation value is obtained as follows: the actual power value and the theoretical power value are both in a logarithmic power PdBm form, and the logarithmic power PdBm form of the actual power value and the theoretical power value is converted into a non-logarithmic PmW power form; and calculating a thermal noise compensation value PmW _ offset PmW0-P mW4 according to the difference between the actual power value P mW4 in the form of non-logarithmic PmW power and the theoretical power value PmW 0.
In the embodiment of the present disclosure, a conversion formula for converting the logarithmic power PdBm form of the actual power value and the theoretical power value into the non-logarithmic PmW power form is as follows:
PmWx=10 (PdBmx/10) equation 1.2
In the above equation 1.2, x represents the xth sampling point, and takes the value of 1, 2, 3 · · x. PmWx represents the PmW power version of the power at the xth sample point; PdBmx represents the log power PdBm form of the x-th sample point.
In the embodiment of the present disclosure, in step S1052, the corrected power values PdBm _ offset of the plurality of sampling points when the optical-to-electrical converter operates in the linear region are determined according to the thermal noise compensation value PmW _ offset; the calculation formula of the corrected power value PdBm _ offset is as follows:
PdBm_offsetx=10*LOG(10 (PdBmx/10) + PmW _ offset) equation 1.3
In step 106, in the embodiment of the present disclosure, function fitting is performed according to the corrected powers PdBm _ offset of the plurality of sampling points, the ADC value of the first sampling value, and the ADC value of the second sampling value, so as to obtain constant values K1 and B1 of the second linear function. Where K1 is the second coefficient of the ADC and B1 is the second offset of the correction power value.
In the embodiment of the disclosure, the thermal noise compensation value can be calculated through the sampling point of the nonlinear region, and then the first linear function is corrected according to the thermal noise compensation value to obtain the second linear function. The sampling parameters of the sampling points in the nonlinear region are mainly interfered by thermal noise, so that the degree of the thermal noise interference of the sampling points can be obtained by calculating the theoretical power value of the nonlinear region through the actual power of the sampling points of the photoelectric converter working in the nonlinear region and the first linear function. In this way, the constant values K1, B1 of the corrected second linear function can be obtained.
In the embodiment of the present disclosure, as shown in fig. 4, the step S106 includes:
step S1061, correcting the reported power value of the sampling point of the photoelectric converter according to the second linear function, the ADC value of the sampling point of the photoelectric converter and the thermal noise compensation value;
and step S1062, reporting the corrected reported power value of the sampling point of the photoelectric converter to a memory.
In the embodiment of the present disclosure, according to the constants K1 and B1 of the second linear function and the thermal noise compensation value Pmw _ offset, the software reported power PdBm _ Report with thermal noise compensation is obtained:
PdBm_Reportx=10*LOG(10 ((ADCx*K1+B1)/10-PmW_offset) ) Equation 1.4
In the above formula 1.4, the thermal noise compensation value needs to be eliminated, so as to correct the correction power obtained by adding the thermal noise compensation value to the formula 1.3, and obtain the reported power value PdBm _ report.
In the embodiment of the present disclosure, constants K1 and B1 of the second linear function and the thermal noise compensation value Pmw _ offset are reported to a memory, such as an eeprom (electrically Erasable Programmable read only memory).
In the embodiment of the disclosure, the values of K1 and B1 are different at different temperatures, and only two sets of calibration parameters need to be determined at normal temperature (e.g., 25 ℃ -a ℃ to 25 ℃ + a ℃) and at high temperature (e.g., typical high temperature 55 ℃ -B ℃ to 55 ℃ + B ℃) in different application scenarios, so that the requirement of logarithmic detection in the full temperature range can be completed. A set of calibration parameters can be shared at normal temperature (25-A ℃ to 25 + A ℃) and low temperature (-5-D ℃ to-5 + D ℃).
In the embodiment of the present disclosure, the value of a may be a value smaller than 25, such as 1, 2, 3, 4, 5 … …, for example, a value smaller than 5; the value of B may be 1, 2, 3, 4, 5 … …, etc. which is less than 25, for example, less than 10; the value of D may be 1, 2, 3, 4, 5 … …, etc. which is less than 10, for example, less than 5; of course, the value of A, B, D can be an integer or a decimal, and the value of a does not make the normal temperature out of the normal temperature range, the value of B does not make the high temperature out of the high temperature range, and the value of D does not make the low temperature out of the low temperature range. In the embodiment of the disclosure, the calculation of K1 and B1 is already obtained from the corrected power value with the thermal noise compensation value, and the reported power value needs to be eliminated from the thermal noise compensation value. Therefore, the reporting precision can be improved in a larger temperature range.
In the embodiment of the present disclosure, as shown in fig. 5, the method further includes:
step S107, verifying the calibration precision according to the actual power values and reported power values of a plurality of sampling points of at least the highest sampling point and the lowest sampling point of the photoelectric converter working in the linear region;
and S108, if the calibration precision meets a preset condition that the calibration precision is lower than a precision threshold, uploading the second linear function and the thermal noise compensation value to a server and/or a storage unit.
In the embodiment of the present disclosure, in step S107, the accuracy of the calibration needs to be calculated for the calibrated second linear function and the thermal noise compensation value. Therefore, the difference between the actual power value PdBmx and the reported power value PdBm _ offset of the highest sampling point and the lowest sampling point included in the linear region of the photoelectric converter needs to be sampled to determine the scaling accuracy.
In the embodiment of the present disclosure, in step S107, if the calibration accuracy satisfies the preset condition that is lower than the accuracy threshold, the constant values K1 and B1 of the second linear function and the thermal noise compensation value are uploaded to the server and/or the storage unit. The voltage values corresponding to different sampling points are different, the precision requirement is also different, the lower the voltage value is, namely the lower the sampling point in the linear region is, the lower the precision threshold requirement is, and the larger the precision threshold is.
In one embodiment, the scaling accuracy requirement of the highest sampling point is ± 0.25dB, and the scaling accuracy requirement is satisfied if the difference between the actual power value PdBmx and the reported power value PdBm _ offset is less than ± 0.25 dB.
In an embodiment, the scaling accuracy requirement of the lowest sampling point is ± 0.8dB, and the scaling accuracy requirement is satisfied if the difference between the actual power value PdBmx and the reported power value PdBm _ offset is less than ± 0.8 dB.
In the embodiment of the present disclosure, the second coefficient sets K1 and B1 and the thermal noise compensation value PmW _ offset that satisfy the scaling accuracy requirement are uploaded to the server and the storage unit. Therefore, the calibration accuracy of the second coefficient sets K1 and B1 and the thermal noise compensation value PmW _ offset can be improved, and the accuracy of the reported power value can be improved.
In the embodiment of the present disclosure, referring to fig. 6, a calibration apparatus 200 for optical power detection is provided, where the apparatus 200 includes:
the first acquisition module 201 is used for acquiring a first sampling value of an optical signal when the photoelectric converter works in a linear region; wherein the first sample value comprises: actual power values and ADC values for a plurality of sampling points;
a first determining module 202, configured to determine a first linear function according to the first sampling value;
a second obtaining module 203, configured to obtain a second sample value; wherein the second sample value comprises: actual power values and ADC values for at least one sample point;
a second determining module 204, configured to substitute the ADC value into the first linear function to obtain an output power value;
a third determining module 205, configured to obtain a correction power according to a difference between the output power value and the actual power value;
a fourth determining module 206, configured to perform function fitting according to the correction power, the first sampling value, and the second sampling value to obtain a second linear function; and the second linear function is used for correcting the reported power value of the sampling point of the photoelectric converter.
In an embodiment of the present disclosure, the first determining module 202 is further configured to: according to the first sampling value, a first coefficient of a first linear function relation and a first offset value of the power value are determined.
In an embodiment of the present disclosure, the third determining module 205 is further configured to: subtracting the difference value between the actual power values according to the output power values to obtain thermal noise compensation values;
and obtaining the correction power according to the thermal noise compensation value.
In connection with the above embodiments, the following examples are provided:
example 1 a calibration method for optical power detection.
Relates to an optical communication device, in particular to the field of optical fiber amplification such as EDFA (erbium doped fiber amplifier) and Raman, and the like, and particularly relates to the field of optical power detection which can require a larger detection range and higher detection precision.
With the development of information technology, the requirement for optical power detection in the field of optical communication is higher and higher, the detection range is required to be larger than 60dB, the detection accuracy also reaches +/-1 dB in a low-power section, and for the detection field of large dynamics and high accuracy, a new scheme for power reporting and calibration needs to be explored. The application requirements of OA products such as EDFA, Raman and the like are met.
The technical idea provided by the invention is to provide a calibration method in a logarithmic optical power detection scheme, which has the advantages of simple control algorithm, small calculated amount and high calibration precision.
In order to solve the above technical problem, the present invention provides a calibration method in a logarithmic optical power detection scheme, which comprises five modules: the device comprises an optical/electrical conversion module, an ADC (analog to digital converter) sampling module, a data processing module, a noise calibration module and a power reporting module. The method comprises the following specific steps:
and 1.0, selecting the following four points for sampling and fitting the calibration data. The light power entering the PD is ensured to be larger than-40 dBm at the point of PdBm3, and the light power of PdBm4 is smaller than-40 dBm. And (4) realizing equidistant sampling at sampling points 1-3. As shown in table 1 below.
Sampling point Power point (dBm) ADC value
1 (PdBm1) ADC1
2 (PdBm2) ADC2
3 (PdBm3) ADC3
4 (PdBm4) ADC4
TABLE 1
Step 1.1, fit calculate linear region KB values.
Logarithmic amplification is more than-40 dBm in incident light, noise interference has very little influence on the linearity of the light, so that power and ADC (analog to digital converter) values of three sampling points 1, 2 and 3 are selected to fit a KB value of a linear region: k0, B0.
Step 1.2, substituting ADC4 into the linear relationship by K0, B0:
PdBm0=ADC4*K0+B0,
calculating the logarithmic power PdBm0 of P0, and converting PdBm0 into mW power:
PmW0=10 (PdBm0/10)
convert log power PdBm4 for sample point 4 to mW power:
PmW4=10 (PdBm4/10)
thus, the thermal noise is calculated: PmW _ offset PmW0-PdBm 4.
And step 1.3, compensating the thermal noise, and recalculating the linear relation between the power actually entering the front end of the ADC and the ADC.
Through the calculated Poffset (mW), the 'corrected reported power' PdBm _ offset (x is 1, 2, 3, 4) is calculated.
PdBm_offsetx=10*LOG(10 (PdBmx/10) +PmW_offset)
To illustrate the relevant calculation, assume that the light entering the PD photoelectric converter is as shown in table 2 below:
Figure GDA0003685658450000131
TABLE 2
Fitting a linear relation again according to the 'corrected reported power' PdBm _ offset and ADCx (x is 1-4) calculated in the table 2 to find a KB value: k1, B1.
In the above table 2, since the thermal noise compensation value PmW _ offset is added, the power values of the sample point 3 and the sample point 4, which are in the nonlinear region, are moved upward, and can be in the linear region. Therefore, a first linear function of the thermal noise compensation value and the linear region can be obtained, a sampling point in the nonlinear region is found, and a second linear function which can take the linear region and the nonlinear region into account is established.
In the embodiment of the disclosure, the sampling point with large logarithmic power value in the linear region is less interfered by thermal noise, even can be ignored, so that the first linear function is easily obtained; the sampling points with small logarithmic power values in the nonlinear region are greatly interfered by thermal noise, so that a linear function is not easy to obtain. A second linear function that can calculate the non-linear region can be obtained from the first linear function of the sampling points of the linear region.
Step 1.4, calculating the reporting power PdBm _ Report of the software with thermal noise compensation:
PdBm_Reportx=10*LOG(10 ((ADCx*K1+B1)/10-PmW_offset) )
the K1, B1 and PmW _ offset calculated above are written into the corresponding addresses of the EEPROM by software.
Step 1.5, verifying the calibration data.
After the above calibration is completed, the calibration data is verified. Inputting four different power points and judging the calibration precision. As shown in table 3 below. The power point here is a plurality of sampling points 1, 2, 3, 4 including the highest sampling point 1 and the lowest sampling point 4 in the linear region.
Sampling point Actual power Reporting power Calibration accuracy requirement
1 (PdBm1) PdBm_offset1 -0.25~+0.25dB
2 (PdBm2) PdBm_offset2 -0.25~+0.25dB
3 (PdBm3) PdBm_offset3 -0.4~+0.4dB
4 (PdBm4) PdBm_offset4 -0.8~+0.8dB
TABLE 3
After all of the above scaling and checking are completed, the scaled K1, B1, and PmW _ offset are uploaded to the server and storage unit.
Example 2: a calibration device for optical power detection is disclosed, which is shown in fig. 7, and comprises an optical/electrical conversion module, an ADC sampling module, a data processing module, a noise calibration module and a power reporting module. The optical/electric conversion module converts the optical power in the optical system into an analog electric signal; the ADC sampling module converts the analog electric signal into an analog digital signal; the data processing module performs linear fitting on the converted digital signal; the noise calibration module calculates the thermal noise of the detection circuit at different temperatures according to the difference value of the actual incident light power and the theoretical incident light power on the basis of linear fitting; the power reporting module corrects the reported power into the actual incident light power in a certain compensation mode according to the calculated (scaled) noise at different temperatures.
Through calibration and calibration of the collected data, the deviation between the reported data and the actual detection power is reduced, and the power reporting precision in the full-temperature range is improved.
Example 3: a method for scaling optical power detection, applied to the scaling apparatus for optical power detection of example 2, the method comprising:
3.1 sampling 4 points of input optical power PdBm, wherein the first three points can be sampled at equal intervals, the optical power of the third point is larger than-40 dBm, and the power of the fourth point is the minimum optical power. After the incident light signal passes through the logarithm conversion circuit, the incident light signal is converted into an incident light detection voltage signal Vin, ADC sampling is carried out, a high-power section (the first three points) of input light power and the corresponding ADC are subjected to linear fitting, and a linear relation formula 1 between the light power of the light detection circuit and the sampling ADC is calculated: PdBm ═ K × ADC + B.
3.2 in the data processing module, the lowest optical power actually collected is substituted into equation 1. And calculating theoretical power PdBm 0.
3.3 according to the calculated theoretical power PdBm0, converting the theoretical power PdBm0 into an mw value Pmw0, and simultaneously, converting the optical power PdBm4 of the actual minimum incident light into an mw value Pwm 4. Calculating the thermal noise: poffset ═ Pmw0-Pwm 4.
3.4 suppose that the thermal noise of the log optical power detection module is constant, i.e. Poffset, at the same temperature, and the influence of this noise on all the acquisition points is the same. And converting the light power of 4 power points actually input to the light/electricity conversion module into mw, wherein Pwmax (x is 1-4). The corrected mw power is calculated as Pmwbx ═ Pwmax + Poffset. And then converting Pmwbx into logarithmic power PdBmb.
And (3) re-fitting a linear relation formula 2 according to the corrected PdBmb and the original ADC:
PdBmb — K1 ADC + B1, K1 and B1 were calculated.
3.5 when reporting power calculation, substituting the acquired ADC value into the following formula 3: PdBm _ Reportx 10 LOG (10^ ((ADCx K1+ B1)/10) -Poffset)
And calculating the reporting power.
3.6 only need high temperature (typical high temperature 55 ℃) under normal temperature (25 ℃) and different application scenes. Two sets of calibration parameters are determined, and the requirement of logarithmic detection in the full temperature range can be met. The normal temperature and the low temperature (-5 ℃) can share a set of calibration parameters.
In an embodiment of the present disclosure, there is provided an electronic device including:
a processor;
a memory for storing processor-executable instructions;
when the processor is used for running the computer service, the steps in the calibration method for optical power detection are realized.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a readable storage medium of a computer, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: a mobile storage device, 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.
In an embodiment of the present disclosure, a storage medium is provided, and the storage medium has computer-executable instructions, which are executed by a processor to implement the steps in the feedback method described above.
Alternatively, the integrated unit according to the embodiment of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several 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 methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various media capable of storing program codes.
The above description is only for the specific embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present disclosure, and shall cover the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. A method for scaling optical power detection, the method comprising:
acquiring a first sampling value of an optical signal when a photoelectric converter works in a linear region; wherein the first sample value comprises: actual power values and ADC values for a plurality of sampling points;
determining a first linear function according to the first sampling value;
acquiring a second sampling value of the optical signal when the photoelectric converter works in a nonlinear area; wherein the second sample value comprises: actual power values and ADC values for at least one sample point;
substituting the ADC value of the second sampling value into the first linear function to obtain an output power value;
obtaining a correction power according to a difference value between the output power value and the actual power value of the second sampling value;
performing function fitting according to the correction power, the first sampling value and the second sampling value to obtain a second linear function; and the second linear function is used for correcting the reported power value of the sampling point of the photoelectric converter.
2. The method for scaling an optical power probe of claim 1, wherein said determining a first linear function based on said first sampled value comprises:
determining a first coefficient of a first linear function relation and a first offset value of a power value according to the first sampling value; wherein the first coefficient is a coefficient of an ADC value of the first sample value; the power value is an actual power value of the first sampling value.
3. The method for scaling optical power detection according to claim 1, wherein said deriving a modified power based on a difference between said output power value and said actual power value of said second sampled value comprises:
obtaining a thermal noise compensation value according to the difference value between the actual power value of the second sampling value and the output power value;
and obtaining the correction power according to the thermal noise compensation value.
4. The method for scaling optical power detection according to claim 3, further comprising:
correcting the reported power value of the sampling point of the photoelectric converter according to the second linear function, the ADC value of the sampling point of the photoelectric converter and the thermal noise compensation value; wherein, ADC value of sampling point of the photoelectric converter comprises: an ADC value of the first sample value and the second sample value;
and reporting the corrected reported power value of the sampling point of the photoelectric converter to a memory.
5. The method for scaling the optical power detection according to claim 1 or 4, wherein the method further comprises:
verifying the calibration precision according to the actual power values and reported power values of a plurality of sampling points at least including the highest sampling point and the lowest sampling point when the photoelectric converter works in a linear region;
and if the calibration precision meets a preset condition that the calibration precision is lower than a precision threshold, uploading the second linear function and the thermal noise compensation value to a server and/or a storage unit.
6. A calibration apparatus for optical power detection, the apparatus comprising:
the first acquisition module is used for acquiring a first sampling value of an optical signal when the photoelectric converter works in a linear region; wherein the first sample value comprises: actual power values and ADC values for a plurality of sampling points;
a first determining module, configured to determine a first linear function according to the first sampling value;
the second acquisition module is used for acquiring a second sampling value of the optical signal when the photoelectric converter works in the nonlinear region; wherein the second sample value comprises: actual power values and ADC values for at least one sample point;
the second determining module is used for substituting the ADC value of the second sampling value into the first linear function to obtain an output power value;
a third determining module, configured to obtain a correction power according to a difference between the output power value and the actual power value of the second sampling value;
the fourth determining module is used for performing function fitting according to the correction power, the first sampling value and the second sampling value to obtain a second linear function; and the second linear function is used for correcting the reported power value of the sampling point of the photoelectric converter.
7. The optical power detection scaling device of claim 6, wherein the first determining module is further configured to:
determining a first coefficient of a first linear function relation and a first offset value of a power value according to the first sampling value; wherein the first coefficient is a coefficient of an ADC value of the first sampling value; the power value is the actual power value of the first sampling value.
8. The scaling apparatus for optical power detection according to claim 6, wherein the third determining module is further configured to:
obtaining a thermal noise compensation value according to the difference value between the actual power value of the second sampling value and the output power value;
and obtaining the correction power according to the thermal noise compensation value.
9. An electronic device, characterized in that the electronic device comprises:
a memory;
a processor coupled to the memory for executing the instructions by a computer stored in the memory, the processor being capable of implementing the method of any of claims 1 to 5.
10. A storage medium having stored thereon computer-executable instructions; the computer-executable instructions, when executed by a processor, are capable of implementing the method of any one of claims 1 to 5.
CN202110857407.6A 2021-07-28 2021-07-28 Calibration method and device for optical power detection, electronic device and storage medium Active CN113438021B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110857407.6A CN113438021B (en) 2021-07-28 2021-07-28 Calibration method and device for optical power detection, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110857407.6A CN113438021B (en) 2021-07-28 2021-07-28 Calibration method and device for optical power detection, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN113438021A CN113438021A (en) 2021-09-24
CN113438021B true CN113438021B (en) 2022-09-09

Family

ID=77762282

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110857407.6A Active CN113438021B (en) 2021-07-28 2021-07-28 Calibration method and device for optical power detection, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN113438021B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114389690B (en) * 2022-01-12 2024-04-12 青岛海信宽带多媒体技术有限公司 Optical module and optical power abnormality judgment and correction method thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988418A (en) * 2005-12-23 2007-06-27 中兴通讯股份有限公司 Method for automatic scaling light module
CN112104417A (en) * 2020-08-14 2020-12-18 武汉光迅科技股份有限公司 Optical power detection and parameter calibration method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5088271B2 (en) * 2008-08-19 2012-12-05 富士通株式会社 Distortion compensator, optical receiver, control method thereof, and optical transmission system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988418A (en) * 2005-12-23 2007-06-27 中兴通讯股份有限公司 Method for automatic scaling light module
CN112104417A (en) * 2020-08-14 2020-12-18 武汉光迅科技股份有限公司 Optical power detection and parameter calibration method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113438021A (en) 2021-09-24

Similar Documents

Publication Publication Date Title
CN112104417B (en) Optical power detection and parameter calibration method and device, electronic equipment and storage medium
CN113438021B (en) Calibration method and device for optical power detection, electronic device and storage medium
CN110213794B (en) Temperature adjusting method and device, terminal equipment and storage medium
CN102150362A (en) Adaptive digital predistortion of complex modulated waveform using peak and RMS voltage feedback from the output of a power amplifier
CN110413475B (en) Method and device for correcting server power consumption measured value
CN101451885A (en) Optical power measurement method
US20170207776A1 (en) Method for controlling operation of moving average filter
WO2017197078A1 (en) Trans-impedance amplifier with increased dynamic range
US9297694B2 (en) Correction device and correction method for light reception power monitor
CN113686434B (en) Temperature simulation compensation method and system for photoelectric detection device
US6952135B2 (en) Method and apparatus for controlling an amplifier
CN114268378B (en) Automatic gain control circuit, optical receiver, and optical communication system
JP5605568B2 (en) Overpower detection device and wireless communication device
CN112367116A (en) Calibration method and device for optical power, electronic equipment and storage medium
CN114826394B (en) High-precision large-dynamic-range optical channel attenuation detection system and method
KR20090085283A (en) Apparatus and method of compensating the error of analog to digital converter
CN101141204A (en) Optical amplifier gain control method and device for optical transmission system
WO2019241907A1 (en) Gain control method and raman optical fibre amplifier
CN102594448A (en) Extinction ratio measurement device
KR100919547B1 (en) Method and apparatus for controlling the power of a power amplifier
KR100417114B1 (en) Apparatus and method to measure high frequency power
WO2023246114A1 (en) Power calibration method, wireless communication device and storage medium
KR101281634B1 (en) Signal measurement apparatus and control method thereof
CN111678594B (en) Logarithmic calibration method for response linearity of laser power tester
JP2005214849A (en) Automatic gain control circuit

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