Gateway average optical power and extinction ratio parameter debugging method based on dual closed-loop mode
By analyzing and sorting historical data, optimizing setting parameters, combining APC and AERC modes, and using the step method and slope method, the problem of low efficiency in debugging the gateway extinction ratio in double closed-loop mode was solved and production efficiency was improved.
Patent Information
- Application Number
- CN202211489685.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-25
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-11-25
AI Technical Summary
In double-closed-loop mode, the traditional dichotomy debugging method results in low gateway extinction ratio debugging efficiency, which requires multiple use of the oscilloscope, affecting production capacity.
Through statistical analysis of historical debugging data, the optimal and suboptimal setting parameters are sorted and prioritized to reduce the number of oscilloscope occupations. The APC and AERC modes are combined with the step method and slope method to debug the average optical power and extinction ratio.
It significantly reduces the number of debugging, improves efficiency, saves oscilloscope resources, and is suitable for mass production.
Smart Images

Figure CN115865730B
Abstract
Description
Technical Field
[0001] The invention relates to a gateway parameter debugging technology, and in particular to a gateway average optical power and extinction ratio parameter debugging method based on a double closed-loop mode. Background Art
[0002] BOB (BOSA on Board) is a "break-the-whole-into-parts" technical solution and production process. The BOB solution makes the circuit board design of home terminals more flexible, helps to reduce the size of the terminal, and has better cost advantages than optical modules. BOB technology is widely used in EPON / GPON / XGPON FTTH terminals, and has basically replaced the independent optical module solution, becoming the preferred solution for integrated optical devices in FTTH terminals. The BOB technical solution uses packaged BOSA devices (including optical receiving module TOSA and optical transmitting module ROSA) to integrate driver chips and data storage chips on the printed circuit board. The data storage chip can be selected from EEPROM or FLASH.
[0003] In the production process of gateway products based on the BOB solution, due to the poor consistency of luminous efficiency caused by the physical characteristics of BOSA devices and the packaging process, it is necessary to adjust the parameters in the laser control circuit to control the average optical power Pavg and extinction ratio (ER) at the transmitting end within a certain range, so that the light emission performance and energy efficiency meet the technical requirements.
[0004] The current mainstream BOSA driving solutions have begun to support dual closed-loop mode. The so-called dual closed-loop refers to the optical power closed-loop and the extinction ratio closed-loop, also known as APC (Automatic Power Control) and AERC (Automatic Extinction Ratio Control). The basic principle of laser light emission is to apply a bias current Ibias to the laser. When Ibias exceeds the threshold current Ith, the laser will be stimulated to emit light. The light-emitting power of the same laser is proportional to the bias current. In APC mode, a target monitoring current Itarget is set, and the driver chip automatically adjusts Ibias so that the actual monitoring current value is consistent with Itarget. In AERC mode, a target extinction ratio value is set, and the driver chip automatically sets the modulation current Imod to ensure that the extinction ratio is maintained near the target extinction ratio. The dual closed-loop mode simplifies the focus on environmental variables and can make the laser device work more stably. However, in the dual closed-loop mode, using the traditional binary debugging method, the average number of DUT measurements using the oscilloscope is more than 4 times. Assuming 3 seconds each time, it takes more than 12 seconds to complete the debugging of the extinction ratio ER of a single DUT (device under test), which will seriously affect production capacity. Therefore, to improve efficiency, the number of times the oscilloscope is occupied must be reduced. Summary of the invention
[0005] The technical problem to be solved by the present invention is to propose a gateway average optical power and extinction ratio parameter debugging method based on a dual closed-loop mode, thereby reducing the number of times an oscilloscope is occupied and improving the debugging efficiency.
[0006] The technical solution adopted by the present invention to solve the above technical problems is:
[0007] The method for debugging the average optical power and extinction ratio parameters of a gateway based on a dual closed-loop mode includes the following steps:
[0008] S1. Statistics are collected on the setting parameters of the target average optical power and the target extinction ratio of the gateways in the same batch as the gateway to be debugged in the historical debugging stored in the database, and the probability of occurrence of each setting parameter debugged to the target average optical power and the probability of occurrence of each setting parameter debugged to the target extinction ratio are obtained respectively; and the setting parameters debugged to the target average optical power and the setting parameters debugged to the target extinction ratio are sorted from large to small according to the probability of occurrence;
[0009] S2. Debug the average transmitted optical power of the gateway to be debugged to the set average optical power range [Pmin, Pmax], where Pmin is the set lower limit average optical power value and Pmax is the set upper limit average optical power value, including steps S21-S214:
[0010] S21, setting the optical transmitter of the gateway to be debugged to APC (automatic power control) mode;
[0011] S22, according to the ranking of the setting parameters adjusted to the target average optical power in step S1, select the first and second first setting parameters, which are recorded as APC_SET1 and APC_SET2 respectively;
[0012] S23, setting APC_SET1 to the driver chip of the gateway to be debugged;
[0013] S24, obtaining the current actual average optical power value P1 of the gateway to be debugged;
[0014] S25, judging whether the current actual average optical power value P1 is within the set average optical power range [Pmin, Pmax], if so, proceeding to step S214; otherwise, proceeding to step S26;
[0015] S26, setting APC_SET2 to the driver chip of the gateway to be debugged;
[0016] S27, obtaining the current actual average optical power value P2 of the gateway to be debugged;
[0017] S28, determine whether the current actual average optical power value P2 is within the set average optical power range [Pmin, Pmax], if so, proceed to step S214; otherwise, proceed to step S29;
[0018] S29, calculating the correspondence between the actual average optical power value and the setting parameter based on APC_SET1, APC_SET2, P1 and P2, and calculating the setting parameter value APC_SET3 according to the correspondence in combination with the target average optical power;
[0019] S210, setting APC_SET3 to the driver chip of the gateway to be debugged;
[0020] S211, obtaining the current actual average optical power value P3 of the gateway to be debugged;
[0021] S212, determine whether the current actual average optical power value P3 is within the set average optical power range [Pmin, Pmax], if so, proceed to step S214; otherwise, proceed to step S213;
[0022] S213, adjusting APC_SET3 by a step method until the corresponding actual average optical power value is within the set average optical power range [Pmin, Pmax], and then proceeding to step S214;
[0023] S214, saving the setting parameters that satisfy the actual average optical power value being within the set average optical power range [Pmin, Pmax] in a database;
[0024] S3, adjusting the extinction ratio of the gateway to be debugged to a preset extinction ratio range [ERmin, ERmax], wherein ERmin is a set lower limit extinction ratio value, and ERmax is a set upper limit extinction ratio value, including steps S31-S310:
[0025] S31, setting the optical transmitter of the gateway to be debugged to AERC (automatic extinction ratio control) mode;
[0026] S32, according to the ranking of the setting parameters adjusted to the target extinction ratio in step S1, select the first and second first setting parameters, which are recorded as TARGET_ER_SET1 and TARGET_ER_SET2 respectively;
[0027] S33, setting TARGET_ER_SET1 to the driver chip of the gateway to be debugged;
[0028] S34, obtaining the current actual extinction ratio ER1 of the gateway to be debugged;
[0029] S35, judging whether the current actual extinction ratio ER1 is within the set extinction ratio range [ERmin, ERmax], if so, proceeding to step S310; otherwise, proceeding to step S36;
[0030] S36, setting TARGET_ER_SET2 to the driver chip of the gateway to be debugged;
[0031] S37, obtaining the current actual extinction ratio ER2 of the gateway to be debugged;
[0032] S38, judging whether the current actual extinction ratio ER2 is within the set extinction ratio range [ERmin, ERmax], if so, proceeding to step S310; otherwise, proceeding to step S39;
[0033] S39, using the slope method or the dichotomy method to adjust and debug the setting parameters to the target extinction ratio until the corresponding actual extinction ratio value is within the set extinction ratio range [ERmin, ERmax], and then proceeding to step S310;
[0034] S310, saving the setting parameters that satisfy the actual extinction ratio value within the set extinction ratio range [ERmin, ERmax] in a database.
[0035] Further, in step S1, the setting parameters of the target average optical power and the target extinction ratio of the gateways in the same batch as the gateway to be debugged in the historical debugging stored in the database are respectively debugged to obtain the probability of each setting parameter being debugged to the target average optical power and the probability of each setting parameter being debugged to the target extinction ratio, specifically including:
[0036] By statistics, the number of occurrences of each setting parameter in the database that is debugged to the target average optical power is obtained. i And the total number of times n that all setting parameters are adjusted to the target average optical power, then the probability of each setting parameter being adjusted to the target average optical power = a i / n, where a i The number of times the setting parameters for the i-th debugging to the target average optical power appear;
[0037] By statistics, the number of occurrences of each setting parameter in the database that is debugged to the target extinction ratio is obtained. i And the total number of times all setting parameters that are adjusted to the target extinction ratio appear is m, then the probability of each setting parameter being adjusted to the target extinction ratio appearing is b i / m, where b i The number of times the setting parameters for the i-th adjustment to the target extinction ratio appear.
[0038] Further, in step S29, the corresponding relationship between the actual average optical power value and the setting parameter is calculated based on APC_SET1, APC_SET2, P1 and P2, and the setting parameter value APC_SET3 is calculated according to the corresponding relationship in combination with the target average optical power, specifically including:
[0039] Convert P1 and P2 to P1_mw and P2_mw respectively:
[0040] P1_mw=1mw*10 P1 / 10 ;
[0041] P2_mw=1mw*10 P2 / 10 ;
[0042] Based on (APC_SET1, P1_mw) and (APC_SET2, P2_mw) as known numbers, substitute into the relationship equation y=cx+d between the actual average optical power and the setting parameters to solve c and d, thereby determining the corresponding relationship between the actual average optical power value and the setting parameters;
[0043] Target average optical power Pt = (Pmin + Pmax) / 2, and convert Pt to Pt_mw:
[0044] Pt_mw01mw*10 Pt / 10
[0045] Substitute Pt_mw as the y value into the relationship equation y=cx+d and solve to obtain the x value, which is the setting parameter value APC_SET3.
[0046] Further, in step S213, the step method is used to adjust APC_SET3, specifically including:
[0047] If the current actual average optical power value P3 is less than Pmin, the APC_SET3 value is increased according to the preset step interval, and the current actual average optical power value is measured to obtain a new P3, and then the relationship between the new P3 and Pmin is compared; if the new P3 is still less than Pmin, the APC_SET3 value is further increased according to the preset step interval;
[0048] If the current actual average optical power value P3 is greater than Pmax, the APC_SET3 value is reduced according to the preset step interval, and the current actual average optical power value is measured to obtain a new P3, and then the relationship between the new P3 and Pmax is compared; if the new P3 is still greater than Pmax, the APC_SET3 value is further reduced according to the preset step interval;
[0049] The same process is repeated until an APC_SET3 value is obtained that satisfies the actual average optical power value within the set average optical power range [Pmin, Pmax].
[0050] The beneficial effects of the present invention are:
[0051] Through statistical analysis of historical debugging parameters, the optimal setting parameters and suboptimal setting parameters that can debug the average optical power to the target average optical power, as well as the optimal setting parameters and suboptimal setting parameters that can debug the extinction ratio to the target extinction ratio are obtained. Debugging is performed with the optimal setting parameters first. If the target value cannot be adjusted, debugging is performed with the suboptimal setting parameters. In the case of batch equipment debugging in mass production, a considerable proportion of the optimal setting parameters and the suboptimal setting parameters can be directly adjusted to the target value, which can reduce the number of debugging times, thereby saving the number of times the oscilloscope's resources are occupied, and thus improving debugging efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 This is a statistical chart of the distribution of TARGET_ER_SET quantity;
[0053] Figure 2 It is a percentage chart sorted by the number of occurrences of TARGET_ER_SET values;
[0054] Figure 3 The figure is a structural block diagram of a debugging system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0055] The present invention aims to propose a gateway average optical power and extinction ratio parameter debugging method based on a dual closed-loop mode, which reduces the number of times the oscilloscope is occupied, thereby improving the debugging efficiency. Through statistical observation of debugging results of multiple batches with more than 100,000 data, it is found that the TARGET_ER_SET register value required to debug the extinction ratio ER to the target extinction ratio value has obvious normal distribution characteristics, such as Figure 1 This is because the performance characteristics of the devices used in the batch have normal distribution characteristics. The limited number of TARGET_ER_SET register values are counted according to the number of records, sorted from most to least, and their percentage of occurrence is calculated to obtain Figure 2 Data shown.
[0056] The TARGET_ER_SET values from large to small probability are called DAC1, DAC2…DACn. It can be concluded that, taking this batch of data as an example, when the initial value is set to DAC1, the probability of adjusting the extinction ratio ER to the target extinction ratio value is about 36%, that is, there is a 36% chance of directly hitting it, in other words, there is a 36% chance of passing it by measuring ER once; when it is set to DAC1, the probability of failing the ER measurement is about 64%. If TARGET_ER_SET is set to DAC2, there is a 24% probability of passing the measurement by measuring ER once. On the whole, the probability of adjusting to the target value by measuring ER twice is 60%, that is, the probability of hitting it by measuring ER twice reaches 60%. This ratio is very considerable in mass production, which can greatly reduce the time occupied by the oscilloscope.
[0057] Based on the above, the solution provided by the present invention obtains the optimal setting parameters and suboptimal setting parameters that can adjust the average optical power to the target average optical power, as well as the optimal setting parameters and suboptimal setting parameters that can adjust the extinction ratio to the target extinction ratio through statistical analysis of historical debugging parameters. Debugging is performed with the optimal setting parameters first. If the target value cannot be adjusted, debugging is performed with the suboptimal setting parameters.
[0058] Example:
[0059] The test environment first constructed in this embodiment is as follows Figure 3 As shown, the optical power meter and the oscilloscope are used to measure the transmission power and extinction ratio of the laser of the gateway respectively, and communicate with the computer / ATE as the test terminal, and the computer / ATE can read the data from the database.
[0060] Using the built test environment, after the gateway is powered on, the laser of the gateway is set to the long-lighting mode, and the method for debugging the average optical power and extinction ratio parameters of the gateway is as follows:
[0061] S1. Statistics are collected on the setting parameters of the target average optical power and the target extinction ratio of the gateways in the same batch as the gateway to be debugged in the historical debugging stored in the database, and the probability of occurrence of each setting parameter debugged to the target average optical power and the probability of occurrence of each setting parameter debugged to the target extinction ratio are obtained respectively; and the setting parameters debugged to the target average optical power and the setting parameters debugged to the target extinction ratio are sorted from large to small according to the probability of occurrence;
[0062] It should be noted that when commissioning begins, there is no data in the database or the amount of data is small. In this case, a suitable value can be set as the initial value through the configuration file. When the amount of data in the database reaches an available threshold, the statistical value in the database is used as the initial value.
[0063] S2. Debug the average transmitted optical power of the gateway to be debugged to the set average optical power range [Pmin, Pmax], where Pmin is the set lower limit average optical power value and Pmax is the set upper limit average optical power value, including steps S21-S214:
[0064] S21, setting the optical transmitter of the gateway to be debugged to APC (automatic power control) mode;
[0065] S22, according to the ranking of the setting parameters adjusted to the target average optical power in step S1, select the first and second first setting parameters, which are recorded as APC_SET1 and APC_SET2 respectively;
[0066] In this step, the computer counts the optimal setting parameters (the number of this setting parameter is the largest among all setting parameters) and the suboptimal setting parameters (the number of this setting parameter is the second largest among all setting parameters) from the database. If the database does not contain the statistical value of the average optical power setting parameter or the statistical value does not meet the quantity limit requirement, the optimal setting parameter and the suboptimal setting parameter are set as the configured default values.
[0067] S23, setting APC_SET1 to the driver chip of the gateway to be debugged;
[0068] S24, the computer automatically reads the current actual average optical power value P1 of the gateway to be debugged from the optical power meter;
[0069] S25, judging whether the current actual average optical power value P1 is within the set average optical power range [Pmin, Pmax], if so, proceeding to step S214; otherwise, proceeding to step S26;
[0070] S26, setting APC_SET2 to the driver chip of the gateway to be debugged;
[0071] S27, the computer automatically reads the current actual average optical power value P2 of the gateway to be debugged from the optical power meter;
[0072] S28, determine whether the current actual average optical power value P2 is within the set average optical power range [Pmin, Pmax], if so, proceed to step S214; otherwise, proceed to step S29;
[0073] S29. Since the APC_SET value is proportional to the optical power and satisfies the relationship y=cx+d, to determine the specific relationship, it is necessary to first determine the values of c and d in the relationship. In this embodiment, based on (APC_SET1, P1_mw) and (APC_SET2, P2_mw) as known numbers, y=cx+d is substituted to solve c and d, thereby determining the corresponding relationship between the actual average optical power value and the setting parameter;
[0074] Among them, P1_mw and P2_mw refer to the optical power in mw, which are converted from P1 and P2. The optical power unit of P1 and P2 is dBm, and the conversion method to P1_mw and P2_mw is:
[0075] P1_mw=1mw*10 P1 / 10 ;
[0076] P2_mw=1mw*10 P2 / 10 .
[0077] After determining the values of c and d, the relationship between the APC_SET value and the optical power is determined by converting the target average optical power Pt = (Pmin + Pmax) / 2 into Pt_mw:
[0078] Pt_mw=1mw*10 Pt / 10
[0079] Then, Pt_mw is substituted as the y value into the relationship equation y=cx+d, and the x value is obtained by solving, which is the solved setting parameter value APC_SET3.
[0080] S210, setting APC_SET3 to the driver chip of the gateway to be debugged;
[0081] S211, obtaining the current actual average optical power value P3 of the gateway to be debugged;
[0082] S212, determine whether the current actual average optical power value P3 is within the set average optical power range [Pmin, Pmax], if so, proceed to step S214; otherwise, proceed to step S213;
[0083] S213, adjusting APC_SET3 by a step method until the corresponding actual average optical power value is within the set average optical power range [Pmin, Pmax], and then proceeding to step S214;
[0084] Specifically, if the current actual average optical power value P3 is less than Pmin, the APC_SET3 value is increased according to the preset step interval, and then the current actual average optical power value is measured to obtain a new P3, and then the relationship between the new P3 and Pmin is compared; if the new P3 is still less than Pmin, the APC_SET3 value is further increased according to the preset step interval;
[0085] If the current actual average optical power value P3 is greater than Pmax, the APC_SET3 value is reduced according to the preset step interval, and the current actual average optical power value is measured to obtain a new P3, and then the relationship between the new P3 and Pmax is compared; if the new P3 is still greater than Pmax, the APC_SET3 value is further reduced according to the preset step interval;
[0086] The same process is repeated until an APC_SET3 value is obtained that satisfies the actual average optical power value within the set average optical power range [Pmin, Pmax].
[0087] S214, saving the setting parameters that satisfy the actual average optical power value being within the set average optical power range [Pmin, Pmax] in a database;
[0088] S3, adjusting the extinction ratio of the gateway to be debugged to a preset extinction ratio range [ERmin, ERmax], wherein ERmin is a set lower limit extinction ratio value, and ERmax is a set upper limit extinction ratio value, including steps S31-S310:
[0089] S31, setting the optical transmitter of the gateway to be debugged to AERC (automatic extinction ratio control) mode;
[0090] S32, according to the ranking of the various setting parameters debugged to the target extinction ratio in step S1, select the setting parameters with the highest and second highest ranking, and record them as TARGET_ER_SET1 and TARGET_ER_SET2 respectively; similarly, if there is no statistical value of the extinction ratio setting parameter in the database or the statistical value does not meet the quantity restriction requirement, set the optimal setting parameter and the suboptimal setting parameter as the configured default values;
[0091] S33, setting TARGET_ER_SET1 to the driver chip of the gateway to be debugged;
[0092] S34, the computer reads the current actual extinction ratio ER1 of the gateway to be debugged through an oscilloscope;
[0093] S35, judging whether the current actual extinction ratio ER1 is within the set extinction ratio range [ERmin, ERmax], if so, proceeding to step S310; otherwise, proceeding to step S36;
[0094] S36, setting TARGET_ER_SET2 to the driver chip of the gateway to be debugged;
[0095] S37, the computer reads the current actual extinction ratio ER2 of the gateway to be debugged through an oscilloscope;
[0096] S38, judging whether the current actual extinction ratio ER2 is within the set extinction ratio range [ERmin, ERmax], if so, proceeding to step S310; otherwise, proceeding to step S39;
[0097] S39. Since TARGET_ER_SET is proportional to the ER value, and the range of TARGET_ER_SET to be adjusted is generally small, the common slope method or dichotomy method can be used to adjust and debug the setting parameters of the target extinction ratio until the corresponding actual extinction ratio value is within the set extinction ratio range [ERmin, ERmax], and then enter step S310;
[0098] S310, saving the setting parameters that satisfy the actual extinction ratio value within the set extinction ratio range [ERmin, ERmax] in a database.
[0099] The above-mentioned gateway average optical power and extinction ratio parameter debugging scheme in this embodiment is particularly suitable for large production batches. The more data volume and the higher the device consistency, the higher the one-time hit rate. It is worth noting that for BOSA devices with too discrete consistency, the efficiency of this method will be reduced, but it is still applicable.
[0100] Finally, it should be noted that the above embodiments are only preferred implementations and are not intended to limit the present invention. It should be pointed out that for those skilled in the art, several modifications, equivalent replacements, improvements, etc. can be made without departing from the scope of the present invention and the scope of protection of the claims, and all of these should be included in the protection scope of the present invention.
Claims
1. A gateway average optical power and extinction ratio parameter debugging method based on a dual closed-loop mode, characterized in that: Includes steps: S1. Statistics are collected on the setting parameters of the target average optical power and the target extinction ratio of the gateways in the same batch as the gateway to be debugged in the historical debugging stored in the database, and the probability of each setting parameter being debugged to the target average optical power and the probability of each setting parameter being debugged to the target extinction ratio are obtained respectively; And sorting the various setting parameters adjusted to the target average optical power and the various setting parameters adjusted to the target extinction ratio respectively according to the probability of occurrence from large to small; S2. Debug the average transmitted optical power of the gateway to be debugged to the set average optical power range [Pmin, Pmax], where Pmin is the set lower limit average optical power value and Pmax is the set upper limit average optical power value, including steps S21-S214: S21, setting the optical transmitter of the gateway to be debugged to APC mode; S22, according to the ranking of the setting parameters adjusted to the target average optical power in step S1, select the first and second first setting parameters, which are recorded as APC_SET1 and APC_SET2 respectively; S23, setting APC_SET1 to the driver chip of the gateway to be debugged; S24, obtaining the current actual average optical power value P1 of the gateway to be debugged; S25, judging whether the current actual average optical power value P1 is within the set average optical power range [Pmin, Pmax], if so, proceeding to step S214; otherwise, proceeding to step S26; S26, setting APC_SET2 to the driver chip of the gateway to be debugged; S27, obtaining the current actual average optical power value P2 of the gateway to be debugged; S28, determine whether the current actual average optical power value P2 is within the set average optical power range [Pmin, Pmax], if so, proceed to step S214; otherwise, proceed to step S29; S29, calculating the correspondence between the actual average optical power value and the setting parameter based on APC_SET1, APC_SET2, P1 and P2, and calculating the setting parameter value APC_SET3 according to the correspondence in combination with the target average optical power; S210, setting APC_SET3 to the driver chip of the gateway to be debugged; S211, obtaining the current actual average optical power value P3 of the gateway to be debugged; S212, determine whether the current actual average optical power value P3 is within the set average optical power range [Pmin, Pmax], if so, proceed to step S214; otherwise, proceed to step S213; S213, adjusting APC_SET3 by a step method until the corresponding actual average optical power value is within the set average optical power range [Pmin, Pmax], and then proceeding to step S214; S214, saving the setting parameters that satisfy the actual average optical power value being within the set average optical power range [Pmin, Pmax] in a database; S3, adjusting the extinction ratio of the gateway to be debugged to a preset extinction ratio range [ERmin, ERmax], wherein ERmin is a set lower limit extinction ratio value, and ERmax is a set upper limit extinction ratio value, including steps S31-S310: S31, setting the optical transmitter of the gateway to be debugged to AERC mode; S32, according to the ranking of the setting parameters adjusted to the target extinction ratio in step S1, select the first and second first setting parameters, which are recorded as TARGET_ER_SET1 and TARGET_ER_SET2 respectively; S33, setting TARGET_ER_SET1 to the driver chip of the gateway to be debugged; S34, obtaining the current actual extinction ratio ER1 of the gateway to be debugged; S35, judging whether the current actual extinction ratio ER1 is within the set extinction ratio range [ERmin, ERmax], if so, proceeding to step S310; otherwise, proceeding to step S36; S36, setting TARGET_ER_SET2 to the driver chip of the gateway to be debugged; S37, obtaining the current actual extinction ratio ER2 of the gateway to be debugged; S38, judging whether the current actual extinction ratio ER2 is within the set extinction ratio range [ERmin, ERmax], if so, proceeding to step S310; otherwise, proceeding to step S39; S39, using the slope method or the dichotomy method to adjust and debug the setting parameters to the target extinction ratio until the corresponding actual extinction ratio value is within the set extinction ratio range [ERmin, ERmax], and then proceeding to step S310; S310, saving the setting parameters that satisfy the actual extinction ratio value within the set extinction ratio range [ERmin, ERmax] in a database.
2. The gateway average optical power and extinction ratio parameter debugging method based on the dual closed-loop mode as claimed in claim 1, characterized in that: In step S1, the setting parameters of the target average optical power and the target extinction ratio of the gateways in the same batch as the gateway to be debugged in the historical debugging stored in the database are respectively debugged to obtain the probability of each setting parameter being debugged to the target average optical power and the probability of each setting parameter being debugged to the target extinction ratio, which specifically includes: By statistics, the number of occurrences of each setting parameter in the database that is debugged to the target average optical power is obtained. i And the total number of times n that all setting parameters are adjusted to the target average optical power, then the probability of each setting parameter being adjusted to the target average optical power = a i / n, where a i The number of times the setting parameters for the i-th debugging to the target average optical power appear; By statistics, the number of occurrences of each setting parameter in the database that is debugged to the target extinction ratio is obtained. i And the total number of times all setting parameters that are adjusted to the target extinction ratio appear is m, then the probability of each setting parameter being adjusted to the target extinction ratio appearing is b i / m, where b i The number of times the setting parameters for the i-th adjustment to the target extinction ratio appear.
3. The gateway average optical power and extinction ratio parameter debugging method based on the dual closed-loop mode as claimed in claim 1 or 2, characterized in that: In step S29, the corresponding relationship between the actual average optical power value and the setting parameter is calculated based on APC_SET1, APC_SET2, P1 and P2, and the setting parameter value APC_SET3 is calculated according to the corresponding relationship in combination with the target average optical power, specifically including: Convert P1 and P2 to P1_mw and P2_mw respectively: P1_mw=1mw*10 P1 / 10 ; P2_mw=1mw*10 P2 / 10 ; Based on (APC_SET1, P1_mw) and (APC_SET2, P2_mw) as known numbers, substitute into the relationship equation y=cx+d between the actual average optical power and the setting parameters to solve c and d, thereby determining the corresponding relationship between the actual average optical power value and the setting parameters; Target average optical power Pt = (Pmin + Pmax) / 2, and convert Pt to Pt_mw: Pt_mw=1mw*10 Pt / 10 Substitute Pt_mw as the y value into the relationship equation y=cx+d and solve to obtain the x value, which is the setting parameter value APC_SET3.
4. The gateway average optical power and extinction ratio parameter debugging method based on the dual closed-loop mode as claimed in claim 3 is characterized in that: In step S213, the step method is used to adjust APC_SET3, specifically including: If the current actual average optical power value P3 is less than Pmin, the APC_SET3 value is increased according to the preset step interval, and the current actual average optical power value is measured to obtain a new P3, and then the relationship between the new P3 and Pmin is compared; if the new P3 is still less than Pmin, the APC_SET3 value is further increased according to the preset step interval; If the current actual average optical power value P3 is greater than Pmax, the APC_SET3 value is reduced according to the preset step interval, and the current actual average optical power value is measured to obtain a new P3, and then the relationship between the new P3 and Pmax is compared; if the new P3 is still greater than Pmax, the APC_SET3 value is further reduced according to the preset step interval; The same process is repeated until an APC_SET3 value is obtained that satisfies the actual average optical power value within the set average optical power range [Pmin, Pmax].
