A data acquisition method and device for optical power detection tester

By using an integrated ball in the photodetector to homogenize the optical signal, combined with the dynamic adjustment of the amplification and filtering circuits and digital signal processing, the accuracy and adaptability problems of traditional photodetectors in optical power measurement are solved, achieving a more efficient Optical power test.

CN117419804BActive Publication Date: 2024-08-27SHENZHEN NOKOXIN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311515437.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-15
Publication Date
2024-08-27
Estimated Expiration
2043-11-15

AI Technical Summary

Technical Problem

Traditional photodetectors are susceptible to uneven light distribution and noise interference when measuring optical power, resulting in low signal accuracy, poor dynamic range, lack of adaptability, and limited overall performance.

Method used

Integrated balls are used to homogenize optical signals, and signal quality is improved through amplification circuits and filter circuits. Signal amplitude and dynamic factors are monitored in real time, amplification and filtering parameters are adjusted, and digital signal processing technology is combined for analog-to-digital conversion and analysis.

Benefits of technology

It improves the accuracy and dynamic range adaptability of optical power measurement, enhances the integrity of data collection and processing, and achieves more reliable test results and system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117419804B
    Figure CN117419804B
Patent Text Reader

Abstract

The present invention provides a data acquisition method and device for an optical power detection tester, which relates to the technical field of optical power detection. The method includes: an amplifier circuit amplifies an electrical signal, and a filter circuit filters the amplified electrical signal to obtain a pre-processed electrical signal; the amplitude of the pre-processed electrical signal is monitored in real time, and a dynamic factor in the current state is obtained. When the amplitude of the pre-processed electrical signal is greater than the real-time dynamic factor, the amplification factor of the amplifier circuit and the filtering parameter of the filter circuit are adjusted until the amplitude of the pre-processed electrical signal is less than or equal to the real-time dynamic factor; the pre-processed electrical signal is input into an analog-to-digital converter for analog-to-digital conversion to obtain a digital signal; the digital signal is processed and analyzed to obtain an optical power test value. The present invention can improve the accuracy and dynamic range adaptability of optical power measurement and enhance the integrity of data acquisition and processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of optical power detection, and in particular to a data acquisition method and device for an optical power detection tester. Background Art

[0002] Traditional photodetectors directly receive incident light for photoelectric conversion when in use. This direct measurement method may be affected by uneven light distribution. In addition, the weak electrical signal after photoelectric conversion is directly converted from analog to digital, which is easily interfered by noise. Among them, the collected signal may contain a lot of noise. Since there is no real-time adjustment of the amplification factor and filtering parameters based on the signal amplitude, the adaptability to the signal dynamic range is poor.

[0003] Therefore, this traditional data collection method has low accuracy, poor adaptability to changes in light intensity, does not utilize digital signal processing technology for complex analysis, and has limited overall performance. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a data acquisition method and device for an optical power detection tester. By using an integrated sphere to obtain a uniform reflected light signal, adding an amplification circuit to increase the signal amplitude, adding a filtering circuit to reduce noise, and adjusting the amplification factor and filtering parameters to adapt to the signal dynamic range, the accuracy of optical power measurement and the adaptability of the dynamic range can be improved, and the integrity of data acquisition and processing can be enhanced.

[0005] In order to solve the above technical problems, the technical solution of the present invention is as follows:

[0006] In a first aspect, a method for collecting data of an optical power detection tester is provided, the method comprising:

[0007] The incident light signal is transmitted to the integrating sphere. After multiple reflections in the integrating sphere, the incident light signal is evenly distributed on the inner wall of the integrating sphere and output from the collection port on the wall of the integrating sphere to obtain a reflected light signal.

[0008] The photodetector performs photoelectric conversion on the reflected light signal to output an electrical signal;

[0009] The amplifier circuit amplifies the electrical signal, and the filter circuit filters the amplified electrical signal to obtain a preprocessed electrical signal;

[0010] Monitor the amplitude of the preprocessed electrical signal in real time and obtain the dynamic factor in the current state. When the amplitude of the preprocessed electrical signal is greater than the real-time dynamic factor, adjust the amplification factor of the amplifier circuit and the filtering parameter of the filtering circuit until the amplitude of the preprocessed electrical signal is less than or equal to the real-time dynamic factor.

[0011] Inputting the preprocessed electrical signal into an analog-to-digital converter for analog-to-digital conversion to obtain a digital signal;

[0012] The digital signal is processed and analyzed to obtain an optical power test value.

[0013] Furthermore, the photodetector performs photoelectric conversion on the reflected light signal to output an electrical signal, including:

[0014] Acquire a reflected light signal, and preprocess the reflected light signal to obtain a preprocessed light signal;

[0015] The pre-processed light signal enters the photodetector and passes through the window material to illuminate the light-sensitive surface of the photodetector, causing the semiconductor material to generate photo-generated carriers to form a photocurrent.

[0016] The photocurrent forms an output electrical signal in an external circuit.

[0017] Furthermore, the amplifier circuit amplifies the electrical signal, and the filter circuit filters the amplified electrical signal to obtain a preprocessed electrical signal, including:

[0018] Preliminarily amplifying the electrical signal to obtain a first amplified signal;

[0019] filtering the first amplified signal to obtain a first filtered signal;

[0020] Amplifying the filtered signal again to obtain a second amplified signal;

[0021] filtering and denoising the second amplified signal again to obtain a second filtered signal;

[0022] The amplification factor of the second filtered signal is adjusted through an automatic gain control circuit to obtain an analog signal; the analog-to-digital converter samples and quantizes the analog signal to output a pre-processed electrical signal.

[0023] Furthermore, the amplitude of the pre-processed electrical signal is monitored in real time, and the dynamic factors under the current state are obtained, including:

[0024] Obtain historical photodetector response characteristics, amplifier circuit parameters, and ambient light changes;

[0025] According to the historical response characteristics of the photodetector, the parameters of the amplifier circuit and the change factors of the ambient light, a prediction model between the dynamic factor and the response characteristics of the photodetector, the parameters of the amplifier circuit and the change factors of the ambient light is established;

[0026] Obtain real-time photodetector response characteristics, amplifier circuit parameters, and ambient light changes;

[0027] The real-time response characteristics of the photodetector, the parameters of the amplifying circuit and the changes in the ambient light are input into the prediction model for calculation to obtain the real-time dynamic factor.

[0028] Furthermore, based on the historical response characteristics of the photodetector, the parameters of the amplifier circuit, and the change factors of the ambient light, a prediction model between the dynamic factor and the response characteristics of the photodetector, the parameters of the amplifier circuit, and the change factors of the ambient light is established, including:

[0029] Obtain historical response data of the photodetector under different response characteristic parameters, historical output data of the amplifier circuit under different amplification parameters, and historical response data under different ambient light conditions;

[0030] Preprocessing the historical response data of the photodetector under different response characteristic parameters, the historical output data of the amplifier circuit under different amplification parameters, and the historical response data under different ambient light conditions to obtain preprocessed data;

[0031] Extracting key features affecting dynamic factors from the preprocessed data;

[0032] According to the key features and based on the neural network, the network structure of the prediction model is constructed;

[0033] The preprocessed data is divided into a training data set and a validation data set, and the prediction model is trained with the training data set to learn the nonlinear mapping relationship between input features and dynamic factors. The performance of the prediction model is evaluated using the validation data set, and the prediction model is adjusted according to the performance of the prediction model to obtain the final prediction model.

[0034] Furthermore, key features affecting dynamic factors are extracted from the preprocessed data, including:

[0035] Analyze the preprocessed data to obtain the distribution and correlation of each variable;

[0036] Through correlation analysis, variables related to dynamic factors are obtained;

[0037] The importance of the variables is calculated, and based on the importance of the variables, key features that affect the dynamic factors are determined.

[0038] Furthermore, the preprocessed electrical signal is input into an analog-to-digital converter for analog-to-digital conversion to obtain a digital signal, including:

[0039] After amplification and filtering, the preprocessed electrical signal enters the sample-and-hold circuit, which latches the amplitude of the electrical signal at the sampling moment;

[0040] The sampling clock generates a timed sampling pulse signal to control the sample-and-hold circuit to perform sampling;

[0041] The voltage signal latched by the sample and hold circuit enters the analog-to-digital converter, which converts the voltage amplitude into a digital quantity and outputs a digital signal.

[0042] In a second aspect, a data acquisition device for an optical power detection tester includes:

[0043] The acquisition module is used to transmit the incident light signal to the integrating sphere. After multiple reflections in the integrating sphere, the incident light signal is evenly distributed on the inner wall of the integrating sphere and output from the collection port on the wall of the integrating sphere to obtain a reflected light signal; the photoelectric detector performs photoelectric conversion on the reflected light signal to output an electrical signal; the amplifier circuit amplifies the electrical signal, and the filter circuit filters the amplified electrical signal to obtain a pre-processed electrical signal;

[0044] The processing module is used to monitor the amplitude of the preprocessed electrical signal in real time and obtain the dynamic factor in the current state. When the amplitude of the preprocessed electrical signal is greater than the real-time dynamic factor, the amplification factor of the amplifier circuit and the filtering parameter of the filtering circuit are adjusted until the amplitude of the preprocessed electrical signal is less than or equal to the real-time dynamic factor; the preprocessed electrical signal is input into an analog-to-digital converter for analog-to-digital conversion to obtain a digital signal; the digital signal is processed and analyzed to obtain an optical power test value.

[0045] According to a third aspect, a computing device includes:

[0046] one or more processors;

[0047] The storage device is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the above method.

[0048] In a fourth aspect, a computer-readable storage medium stores a program, and the program implements the above method when executed by a processor.

[0049] The above solution of the present invention includes at least the following beneficial effects:

[0050] The above scheme of the present invention uses an integrated sphere to obtain a uniform reflected light signal, which is beneficial to improving the accuracy of the test and will not be affected by uneven light distribution. The amplifier circuit can amplify weak current signals and improve the signal-to-noise ratio of subsequent processing. The filter circuit can filter out noise to make the obtained signal clearer. The signal amplitude is monitored in real time and the amplification factor and filter parameters are adjusted to dynamically adapt to signal changes and expand the dynamic measurement range of the system. Digital signal processing is used to improve the accuracy of the test through processing and analysis in the digital domain. Through the digital acquisition of analog signals, accurate control of the signal can be achieved, closed-loop control is formed, and system stability is improved. The present invention can improve the accuracy, dynamic range and stability of optical power testing, realize digital and intelligent control, and obtain more reliable test results. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 It is a flow chart of a data acquisition method of an optical power detection tester provided in an embodiment of the present invention.

[0052] Figure 2 It is a schematic diagram of a data acquisition device of an optical power detection tester provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0053] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0054] like Figure 1 As shown, an embodiment of the present invention provides a data acquisition method for an optical power detection tester, the method comprising:

[0055] Step 11, transmitting the incident light signal to the integrating sphere, after multiple reflections in the integrating sphere, the incident light signal is evenly distributed on the inner wall of the integrating sphere, and output from the collection port on the wall of the integrating sphere to obtain a reflected light signal;

[0056] Step 12, the photodetector performs photoelectric conversion on the reflected light signal to output an electrical signal;

[0057] Step 13, the amplifier circuit amplifies the electrical signal, and the filter circuit filters the amplified electrical signal to obtain a preprocessed electrical signal;

[0058] Step 14, real-time monitoring of the amplitude of the preprocessed electrical signal, and obtaining the dynamic factor in the current state, when the amplitude of the preprocessed electrical signal is greater than the real-time dynamic factor, adjusting the amplification factor of the amplifier circuit and the filtering parameters of the filtering circuit until the amplitude of the preprocessed electrical signal is less than or equal to the real-time dynamic factor;

[0059] Step 15, inputting the preprocessed electrical signal into an analog-to-digital converter for analog-to-digital conversion to obtain a digital signal;

[0060] Step 16: Process and analyze the digital signal to obtain an optical power test value.

[0061] In the embodiment of the present invention, a uniform reflected light signal can be obtained by using an integrated sphere, which is conducive to improving the accuracy of the test and will not be affected by uneven light distribution. The amplifier circuit can amplify the weak electric signal and improve the signal-to-noise ratio of subsequent processing. The filter circuit can filter out noise to make the obtained signal clearer. The signal amplitude is monitored in real time and the amplification factor and filter parameters are adjusted to dynamically adapt to signal changes and expand the dynamic measurement range of the system. The digital signal processing method is used to improve the accuracy of the test through processing and analysis in the digital domain. Through the digital acquisition of analog signals, accurate control of the signal can be achieved, closed-loop control is formed, and system stability is improved. The present invention can improve the accuracy, dynamic range and stability of optical power testing, realize digital and intelligent control, and obtain more reliable test results.

[0062] In another preferred embodiment of the present invention, in the above step 11, the source of the incident light signal is a tunable laser, and lasers of different wavelengths can be selected as the incident light signal to test the response of light of different wavelengths. The incident light is adjusted in intensity by an optical attenuator, and then coupled into the integrating sphere through an optical fiber or a light-collecting lens. The attenuator and the coupling system can adjust the intensity and direction of the incident light. The inner wall of the integrating sphere is coated with diffuse reflection materials, namely Spectralon and Barium sulfate. Spectralon is a high-reflectivity white reflection standard made of polytetrafluoroethylene (PTFE), and Barium sulfate (barium sulfate) is an inorganic compound with a high degree of whiteness and optical opacity. The two materials cover different areas. Multiple collection ports are set up on the integrated ball. Each collection port is equipped with an independent photodetector for collecting reflected light signals at the same time. The photodetector is a wide-band photodiode. It is also equipped with a monochrome photodiode for detecting light of different wavelengths. The collection port can adjust the area size through the mechanical system to adapt to the collection of light signals of different intensities. A CCD camera for monitoring is also set in the integrated ball to monitor the distribution of reflected light in the ball in real time. All system parameters can be uniformly controlled by a computer to automatically complete adjustment and collection. Through the above design, precise control of light signal collection under different light sources and wavelengths can be achieved to obtain richer and more reliable test data.

[0063] In a preferred embodiment of the present invention, the above step 12 may include:

[0064] Step 121, acquiring a reflected light signal, and preprocessing the reflected light signal to obtain a preprocessed light signal;

[0065] Step 122, the pre-processed light signal enters the photodetector, passes through the window material and irradiates the light sensitive surface of the photodetector, so that the semiconductor material generates a photo-generated carrier effect to form a photocurrent;

[0066] In step 123, the photocurrent forms an output electrical signal in an external circuit.

[0067] In another preferred embodiment of the present invention, preprocessing of the reflected light signal can improve the signal-to-noise ratio of subsequent conversion, which is beneficial to improving the test accuracy; the photodetector converts the incident light into an electrical signal through the photovoltaic effect, and the window material can selectively transmit light of a specific wavelength, thereby realizing testing of different bands; the electrical signal formed after the photoelectric conversion needs to be collected and processed in an external circuit.

[0068] In another preferred embodiment of the present invention, in the above step 121, the incident light signal is assumed to be I in ( λ ,t ),in, λ represents the wavelength of the optical signal, t Represents time, the transmission function of the reflected light signal through the optical system H optic ( λ ) and then we get I refl ( λ , t )= H optic ( λ )× I in ( λ , t ); reflected light signal I refl ( λ , t ) first passes through a bandpass filter, and the transfer function is H BPF ( λ , w 1 ), remove the high frequency noise and get I BPF ( λ , t )= H BPF( λ , w 1 )× I refl ( λ , t ),in, w 1 is the bandwidth weight parameter of the bandpass filter, w 1 The calculation formula is: ,in, f c is the center frequency of the filter, f h and f l are the high cutoff frequency and low cutoff frequency of the filter respectively; the filtered optical signal then passes through the automatic gain amplifier, and the gain control function is G ( t , w 2 ), and obtain the amplified optical signal ,in, w 2 is the gain weight parameter of the amplifier, w 2 The calculation formula is: ,in, G max and G min are the maximum and minimum gains of the amplifier, I max and I min is the maximum and minimum intensity of the optical signal; finally, the optical signal passes through a low-pass filter, and the transfer function is H LPF ( λ , w 3 ), and obtain the preprocessed optical signal: I pre ( λ , t )= H LPF ( λ , w 3 )* I amp ( λ , t ) ,in, w 3 is the weight coefficient of the low-pass filter.

[0069] In another preferred embodiment of the present invention, in the above step 122, the pre-processed optical signal I pre ( λ , t ) passes through a focusing lens and is focused on the window of a photodetector. The window material of a photodetector is generally made of semiconductor materials such as silicon or germanium, and has a certain wavelength selectivity, allowing light of a specific wavelength band to enter the photosensitive surface. The light entering the window is irradiated on the PN junction photosensitive surface of the photodetector, and the energy of the light is absorbed by the photosensitive surface material. When the energy of the photon is greater than the bandgap width, it will excite the electrons in the photosensitive surface material to transition to the conduction band, and at the same time generate holes in the valence band. Under the action of the built-in electric field of the PN junction, electrons and holes move in opposite directions to form a photocurrent. The stronger the light intensity, the more photons are absorbed, the more electrons are excited, and the greater the photocurrent generated. By measuring the size of the photocurrent, the intensity of the incident light can be inferred and the light-to-electricity conversion can be completed. By controlling the wavelength and polarization state of the incident light and repeating the above process, the photoelectric response under different conditions can be tested.

[0070] In another preferred embodiment of the present invention, in the above step 123, the photocurrent in the photodetector is transmitted to the external circuit through the wire inside the detector. In the external circuit, the photocurrent is first converted into a voltage signal, and then the voltage signal is pre-amplified to obtain a voltage signal with a larger amplitude. The pre-amplified voltage signal is filtered, and then the filtered voltage signal is programmed to be amplified, that is, the amplification factor is adjusted according to the signal amplitude to adapt to the dynamic range of the signal, and finally the amplified voltage signal is converted from analog to digital to obtain a digitally quantized output electrical signal.

[0071] In a preferred embodiment of the present invention, the above step 13 may include:

[0072] Step 131, preliminarily amplifying the electrical signal to obtain a first amplified signal;

[0073] Step 132, filtering the first amplified signal to obtain a first filtered signal;

[0074] Step 133, amplifying the filtered signal again to obtain a second amplified signal;

[0075] Step 134, filtering and denoising the second amplified signal again to obtain a second filtered signal;

[0076] Step 135, adjusting the amplification factor of the second filtered signal through an automatic gain control circuit to obtain an analog signal; the analog-to-digital converter samples and quantizes the analog signal to output a preprocessed electrical signal.

[0077] In the embodiments of the present invention, distortion can be prevented when amplifying the primary signal. A small pre-amplification is performed first, and then a large amplification is performed, which can improve the amplification quality. Multi-stage filtering can more effectively remove noise, first filtering out high-frequency noise, and then filtering out low-frequency noise, which can make the signal clearer. Automatic gain control can dynamically adjust the amplification factor, expand the dynamic measurement range of the system, and adapt to optical signals of different intensities. Digital acquisition of analog signals can achieve high precision and improve the flexibility of testing. Multi-stage amplification and filtering form a closed-loop control, which can improve the stability and anti-interference ability of the system.

[0078] In another preferred embodiment of the present invention, in the above step 131, the electrical signal is I ( t ), and perform preliminary magnification with a magnification factor of G 1 , and obtain the first amplified signal I 1 ( t ), I 1 ( t )=G 1 × I ( t ), where the magnification G 1 The calculation formula is: ,in, G 0 is the initial magnification, I 0 is the specified reference signal current value, w 4 is the weight coefficient of the amplification factor. I ( t ) changes, the magnification G 1 It will be adjusted accordingly to achieve automatic gain control, where the adjustment range of the amplification factor is also limited to a range: G 1min ≤ G 1 ≤ G 1max ,in, G 1min and G 1max They are the minimum and maximum values ​​of the amplification factor respectively. Through automatic gain control, the adaptability of the amplifier circuit to changes in the input signal can be improved and the measurement range can be expanded.

[0079] In another preferred embodiment of the present invention, in the above step 132, according to the first amplified signal I 1 ( t ), filter processing is performed, and the filter transfer function is H ( f , w 5 ), and obtain the first filtered signal I 2 ( t ),in, I 2 ( t )= H ( f , w 5 )× I 1 ( t ),in, H ( f , w 5 ) represents the transfer function of the bandpass filter, f is the frequency, w 5is the weight coefficient of the filter bandwidth, where ,in, is the center frequency of the filter, and They are the high cutoff frequency and low cutoff frequency of the filter, respectively, by adjusting the weight coefficient w 5 , the bandwidth of the filter can be changed to optimize the filtering effect and provide the best signal bandwidth, where the bandwidth of the filter is also limited to a range: B min ≤ w 5 ×( - )≤ B max ,in, B min and B max are the minimum and maximum values ​​of the filter bandwidth respectively.

[0080] In another preferred embodiment of the present invention, in the above step 133, the first filtered signal is assumed to be I 2 ( t ), and then amplify it for the second time, with the magnification of G 2 , and obtain the second amplified signal I 3 ( t ),in, I 3 ( t )=G2× I 2 ( t ), where the magnification G 2 The calculation formula is: ,in, G 0 is the initial magnification, I 0 is the specified reference signal current value, w 6 is the weight coefficient of the second amplification. I 2 ( t ) changes, the magnification G 2 will be adjusted accordingly to achieve automatic gain control, the weight coefficient w 3 Determines the sensitivity of the amplification factor to changes in the input signal, where the adjustment range of the amplification factor is limited to a range: G2min ≤ G 2 ≤ G 2max ,in, G 2min and G 2max They are the minimum and maximum values ​​of the amplification factor respectively. Through automatic gain control, the adaptability of the amplifier circuit to changes in the input signal can be improved and the measurement range can be expanded.

[0081] In another preferred embodiment of the present invention, in the above step 134, the second amplified signal is assumed to be I 3 ( t ), perform the second filtering, the filter transfer function is H 1 ( f 1 , w 7 ), and obtain the second filtered signal I 4 ( t ),in, I 4 ( t )= H 1 ( f 1 , w 7 )× I 3 ( t ),in, H 1 ( f 1 , w 7 ) represents the transfer function of the low-pass filter, f 1 is the frequency, w 7 is the weight coefficient of the filter cutoff frequency, calculated as follows: ,in, is the cutoff frequency of the filter, is The low-frequency cutoff frequency of the filter is adjusted by adjusting the weight coefficient w 7 , the filter cutoff frequency can be changed to optimize the filtering effect and provide the best signal frequency band. The filter cutoff frequency is also limited to a range: F min ≤ w 7 × ≤F max ,in, F min and F max They are the minimum and maximum values ​​of the filter cutoff frequency respectively. The weight coefficient optimizes the filtering performance, and the cutoff frequency limit can prevent the filtering frequency band from being too large or too small.

[0082] In another preferred embodiment of the present invention, in the above step 135, the second filtered signal is assumed to be I 4 ( t ), the amplification factor is adjusted by the automatic gain control circuit G 3 , get the analog signal I 5 ( t ),in, I 5 ( t )= G 3 × I 4 ( t ), where the magnification G 3 The calculation formula is: ,in, G 0 is the initial magnification, I 0 is the specified reference signal current value, w 8 is the weight coefficient of the third amplification. I 4 ( t ) changes, the magnification G 3 will be adjusted accordingly to achieve automatic gain control, the weight coefficient w 8 Determines the sensitivity of the amplification factor to changes in the input signal. The adjustment range of the amplification factor is limited to a range: G 3min ≤ G 3 ≤ G 3max , the analog-to-digital converter converts the analog signal I 5 ( t ) for sampling, and the sampling interval is T s , output digital quantized pre-processed electrical signal I 6 [ k ],in,I 6 [ k ]= Q ( I 5 ( kT s )),in, Q represents the quantization function, k It is a discrete time sample index. Through automatic gain control, it can improve the adaptability of the amplifier circuit to input signal changes and expand the measurement range. The weight coefficient and amplification factor range are used to optimize the control effect. Digital processing can improve measurement accuracy.

[0083] In a preferred embodiment of the present invention, the above step 14 may include:

[0084] Step 141, obtaining historical response characteristics of the photodetector, parameters of the amplifier circuit, and changes in ambient light;

[0085] Step 142, establishing a prediction model between the dynamic factor and the response characteristics of the photodetector, the parameters of the amplifier circuit, and the change factors of the ambient light according to the historical response characteristics of the photodetector, the parameters of the amplifier circuit, and the change factors of the ambient light;

[0086] Step 143, obtaining real-time response characteristics of the photodetector, parameters of the amplifier circuit, and changes in ambient light;

[0087] Step 144, inputting the real-time response characteristics of the photodetector, the parameters of the amplifier circuit, and the change of the ambient light into the prediction model for calculation to obtain the real-time dynamic factor.

[0088] In an embodiment of the present invention, historical data is obtained to provide training samples for establishing a prediction model. The prediction model is established to learn the relationship between the parameters of the photoelectric conversion system and realize intelligent prediction of dynamic factors. Real-time data is obtained to provide input for the prediction model to realize evaluation of the current state. The prediction model is used to perform calculations to realize real-time updating of the dynamic factors. The prediction model is established to realize closed-loop control of the dynamic factors and can adapt to changes in the parameters of the photoelectric conversion system. The prediction model comprehensively considers multiple factors, and the prediction results are more accurate and reliable.

[0089] In another preferred embodiment of the present invention, in the above step 141, the response characteristic function of the photodetector is assumed to be R ( t , λ ),in, t Indicates time, λ represents the wavelength of the optical signal, and the gain function of the amplifier circuit is G 4 (t , I 4 ),in, I 4 represents the input light intensity, and the ambient light intensity is ,in, θ and Represents the direction angle of the light, then the historical data can be expressed as: R ( t 1 , λ 1) , R ( t 2 , λ 2 ), …, R ( t n , λ n ); G ( t 1 , I 1 ), G ( t 2 , I 2 ), …, G ( t n , I n ); , , …, ,in, n is the number; for each sample, define the weight vector ω i ,in, ω i =[ ω 9 R i , ω 10 G i , ω 11 L i ]; the weight parameter calculation formula is: ω 9 R i = f 2 ( t i , λ i), ω 10 G i = f 2 ( t i , I i ), ,in, f 2 is a weight function. The weight vector represents the importance of each sample data. Through the weight function, unimportant historical data can be filtered out.

[0090] In a preferred embodiment of the present invention, the above step 142 may include:

[0091] Step 1421, obtaining historical response data of the photodetector under different response characteristic parameters, historical output data of the amplifier circuit under different amplification parameters, and historical response data under different ambient light conditions;

[0092] Step 1422, preprocessing the historical response data of the photodetector under different response characteristic parameters, the historical output data of the amplifier circuit under different amplification parameters, and the historical response data under different ambient light conditions to obtain preprocessed data;

[0093] Step 1423, extracting key features affecting dynamic factors from the preprocessed data;

[0094] Step 1424, constructing a network structure of a prediction model based on the key features and the neural network;

[0095] Step 1425, divide the preprocessed data into a training data set and a validation data set, and use the training data set to train the prediction model to learn the nonlinear mapping relationship between the input features and the dynamic factors, use the validation data set to evaluate the performance of the prediction model, and adjust the prediction model according to the performance of the prediction model to obtain the final prediction model.

[0096] In the embodiment of the present invention, historical data under different conditions are obtained and preprocessed, which can improve the effect of subsequent feature extraction. Through feature extraction, the most important features can be selected, the dimensionality of the data can be reduced, and the model efficiency can be improved. Based on the neural network, a network structure for constructing a prediction model can be established to improve the prediction accuracy. The use of training sets and validation sets can effectively avoid overfitting and improve the generalization ability of the prediction model. By evaluating and adjusting the prediction model parameters, a prediction model with the best performance can be obtained. The present invention can obtain an efficient and accurate prediction model, and the prediction model can realize real-time updating of dynamic factors to adapt to changes in the photoelectric conversion system.

[0097] In another preferred embodiment of the present invention, in the above step 1424, the pre-processed data is assumed to be X The key features extracted are x 1 , x 2 , …, x a ; The prediction model structure based on neural network is: z = f 3 ( W 1x + b 1 ), T a = f 3 ( W 2z + b 2 ),in, W 1 and W 2 is the weight matrix, b 1 and b 2 is the bias vector, f 3 is the activation function, z is the hidden layer output, T a is the dynamic factor of prediction, a is the number of key features, and the weight matrix is ​​added L 1 Regularization term: ,in, MSE is the mean square error loss function, Ttrue is the true threshold, and μ yes L 1 Regularization coefficient, L 1 Regularization can make the weight matrix sparse, achieve the effect of feature selection, and improve the generalization ability of the prediction model. By constructing the network structure and designing regular terms, a prediction model that is sensitive to key features can be obtained, thereby improving the effect of dynamic factor prediction.

[0098] In another preferred embodiment of the present invention, in the above step 1425, the pre-processed data set is D ={( x 1 , y 1 ),( x2 , y 2 ),…,( x i , y i )},in, x i is the key feature of the input, y i is the corresponding true dynamic factor, then the data set D Divide into training data sets in proportion D train and validation dataset D val , train the prediction model F 3 ( x ; θ 1 ), learning input x To output y The mapping relationship is: ,in, L 2 is the loss function, R 2 is the regularization term, is the regularization coefficient. Based on the validation set, and through Evaluate the performance of the prediction model based on E val Adjusting the parameters of the prediction model θ 1 , repeat the training and validation process until the optimal prediction model is obtained; weight parameter λ Control the regularization strength to adjust the complexity of the prediction model and prevent overfitting.

[0099] In a preferred embodiment of the present invention, the above step 1423 may include:

[0100] Step 14231, analyzing the preprocessed data to obtain the distribution and correlation of each variable;

[0101] Step 14232, obtaining variables related to the dynamic factors through correlation analysis;

[0102] Step 14233, calculate the importance of the variables, and determine the key features that affect the dynamic factors based on the importance of the variables.

[0103] In the embodiment of the present invention, by analyzing the distribution and correlation of variables, the overall situation of the data can be understood. Through correlation analysis, the variables with the strongest dynamic factor relationship with the target variable can be found. By calculating the importance of the variables, the predictive ability of each variable to the target can be quantified. The key features are selected according to the importance. The combination of correlation analysis and importance calculation can find the best features from different angles. The selected key features are more refined and effective, which is conducive to building a prediction model, removing redundant and irrelevant variables, and improving the efficiency of model training and prediction. On the whole, the feature subset with the greatest effect on target prediction can be obtained, and an efficient and accurate prediction model can be established. The decomposed feature selection process can effectively analyze complex data and select the best features.

[0104] In another preferred embodiment of the present invention, in the above step 14231, according to the preprocessed data X ; Analyze the distribution of variables, for each variable x i Calculate the mean μ i and standard deviation σ i ,in, ; ; Among them, the sample weight , N a is the sample size, x ij It is j The sample i variables, k 0 is a parameter, x 0 is the threshold value, e is a natural constant; calculate the effect of each variable on the target y Correlation coefficient r i ,in, ,in, μ y is the target variable y The mean of the variables, where the variable weight v i = a 0 ∣ r i ∣+(1- a 0 ), a 0 is the weight coefficient.

[0105] In another preferred embodiment of the present invention, in the above step 14232, the variables are sorted according to the absolute value of the correlation coefficient |r|, and the variables with an absolute value |r| greater than the dynamic factor are selected. τ The variables are used as candidate related variables. In the above step 14233, the random forest algorithm is used to sort the candidate related variables based on feature importance, and the candidate variables are added in sequence to observe the prediction effect of the model, and the feature subset with the best prediction effect is selected. Then, correlation analysis is performed on the selected feature subset, redundant features are removed, and finally the key feature set is determined.

[0106] In a preferred embodiment of the present invention, the above step 15 may include:

[0107] Step 151, the pre-processed electrical signal enters a sample-and-hold circuit after being amplified and filtered, and the sample-and-hold circuit latches the amplitude of the electrical signal at the sampling moment;

[0108] Step 152, the sampling clock generates a timing sampling pulse signal to control the sample-and-hold circuit to perform sampling;

[0109] Step 153, the voltage signal latched by the sampling and holding circuit enters the analog-to-digital converter, and the analog-to-digital converter converts the voltage amplitude into a digital quantity and outputs a digital signal.

[0110] In the embodiment of the present invention, the sample-and-hold circuit can accurately capture the amplitude of the analog signal at the sampling moment to prevent the signal from changing during the sampling process. The sampling clock provides a stable time reference for sampling, so that the sampling is evenly distributed in time, which is conducive to correctly restoring the original signal. The analog-to-digital conversion discretizes the analog signal into a digital quantity, which can realize the digital processing of the continuous signal. The digital quantized signal will not attenuate, and the sampling error can be detected and corrected by error checking. The digital signal can be directly input into the computer for storage, display, analysis and processing. The analog signal processing and the digital signal processing system are organically combined to give play to their respective advantages.

[0111] In another preferred embodiment of the present invention, in the above step 151, the pre-processed analog electrical signal first enters the input end of the sampling and holding circuit. The sampling and holding circuit includes a sampling switch and a holding capacitor. The sampling switch is in a disconnected state by default. When the sampling clock sends a sampling pulse, the sampling switch is instantly closed. At this time, the voltage at the input end is charged to the holding capacitor. After the sampling is completed, the switch is disconnected again, and the holding capacitor maintains the voltage amplitude at the sampling moment. In the above step 152, the sampling clock includes a crystal oscillator, a frequency division counter and other circuits, which can generate accurate timing pulses. The sampling clock sends a sampling pulse to the sampling and holding circuit to trigger the sampling action. In the above step 153, the analog-to-digital converter receives the analog voltage signal from the sampling and holding circuit. The analog-to-digital converter quantizes the voltage amplitude into a digital quantity according to a preset quantization accuracy. The quantized data is encoded and parallel-serial converted to output a digital quantization signal. The quantization accuracy of the analog-to-digital converter directly affects the quality of the digital signal.

[0112] like Figure 2 As shown, an embodiment of the present invention further provides an optical power detection tester data acquisition device 20, comprising:

[0113] The acquisition module 21 is used to transmit the incident light signal to the integrating sphere. After multiple reflections in the integrating sphere, the incident light signal is evenly distributed on the inner wall of the integrating sphere and output from the collection port on the wall of the integrating sphere to obtain a reflected light signal; the photoelectric detector performs photoelectric conversion on the reflected light signal to output an electrical signal; the amplifier circuit amplifies the electrical signal, and the filter circuit filters the amplified electrical signal to obtain a pre-processed electrical signal;

[0114] The processing module 22 is used to monitor the amplitude of the preprocessed electrical signal in real time and obtain the dynamic factor under the current state. When the amplitude of the preprocessed electrical signal is greater than the real-time dynamic factor, the amplification factor of the amplifier circuit and the filtering parameter of the filtering circuit are adjusted until the amplitude of the preprocessed electrical signal is less than or equal to the real-time dynamic factor; the preprocessed electrical signal is input into an analog-to-digital converter for analog-to-digital conversion to obtain a digital signal; the digital signal is processed and analyzed to obtain an optical power test value.

[0115] Optionally, the photodetector performs photoelectric conversion on the reflected light signal to output an electrical signal, including:

[0116] Acquire a reflected light signal, and preprocess the reflected light signal to obtain a preprocessed light signal;

[0117] The pre-processed light signal enters the photodetector and passes through the window material to illuminate the light-sensitive surface of the photodetector, causing the semiconductor material to generate photo-generated carriers to form a photocurrent.

[0118] The photocurrent forms an output electrical signal in an external circuit.

[0119] Optionally, the amplifying circuit amplifies the electrical signal, and the filtering circuit filters the amplified electrical signal to obtain a preprocessed electrical signal, including:

[0120] Preliminarily amplifying the electrical signal to obtain a first amplified signal;

[0121] filtering the first amplified signal to obtain a first filtered signal;

[0122] Amplifying the filtered signal again to obtain a second amplified signal;

[0123] filtering and denoising the second amplified signal again to obtain a second filtered signal;

[0124] The amplification factor of the second filtered signal is adjusted through an automatic gain control circuit to obtain an analog signal; the analog-to-digital converter samples and quantizes the analog signal to output a pre-processed electrical signal.

[0125] Optionally, the amplitude of the preprocessed electrical signal is monitored in real time, and the dynamic factors in the current state are obtained, including:

[0126] Obtain historical photodetector response characteristics, amplifier circuit parameters, and ambient light changes;

[0127] According to the historical response characteristics of the photodetector, the parameters of the amplifier circuit and the change factors of the ambient light, a prediction model between the dynamic factor and the response characteristics of the photodetector, the parameters of the amplifier circuit and the change factors of the ambient light is established;

[0128] Obtain real-time photodetector response characteristics, amplifier circuit parameters, and ambient light changes;

[0129] The real-time response characteristics of the photodetector, the parameters of the amplifying circuit and the changes in the ambient light are input into the prediction model for calculation to obtain the real-time dynamic factor.

[0130] Optionally, based on historical response characteristics of the photodetector, parameters of the amplifier circuit, and change factors of the ambient light, a prediction model between the dynamic factor and the response characteristics of the photodetector, parameters of the amplifier circuit, and change factors of the ambient light is established, including:

[0131] Obtain historical response data of the photodetector under different response characteristic parameters, historical output data of the amplifier circuit under different amplification parameters, and historical response data under different ambient light conditions;

[0132] Preprocessing the historical response data of the photodetector under different response characteristic parameters, the historical output data of the amplifier circuit under different amplification parameters, and the historical response data under different ambient light conditions to obtain preprocessed data;

[0133] Extracting key features affecting dynamic factors from the preprocessed data;

[0134] According to the key features and based on the neural network, the network structure of the prediction model is constructed;

[0135] The preprocessed data is divided into a training data set and a validation data set, and the prediction model is trained with the training data set to learn the nonlinear mapping relationship between input features and dynamic factors. The performance of the prediction model is evaluated using the validation data set, and the prediction model is adjusted according to the performance of the prediction model to obtain the final prediction model.

[0136] Optionally, extracting key features affecting dynamic factors from the preprocessed data includes:

[0137] Analyze the preprocessed data to obtain the distribution and correlation of each variable;

[0138] Through correlation analysis, variables related to dynamic factors are obtained;

[0139] The importance of the variables is calculated, and based on the importance of the variables, key features that affect the dynamic factors are determined.

[0140] Optionally, the preprocessed electrical signal is input into an analog-to-digital converter for analog-to-digital conversion to obtain a digital signal, including:

[0141] After amplification and filtering, the preprocessed electrical signal enters the sample-and-hold circuit, which latches the amplitude of the electrical signal at the sampling moment;

[0142] The sampling clock generates a timed sampling pulse signal to control the sample-and-hold circuit to perform sampling;

[0143] The voltage signal latched by the sample and hold circuit enters the analog-to-digital converter, which converts the voltage amplitude into a digital quantity and outputs a digital signal.

[0144] It should be noted that the device is a device corresponding to the above method, and all implementation methods in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.

[0145] The embodiment of the present invention further provides a computing device, comprising: a processor, a memory storing a computer program, wherein when the computer program is executed by the processor, the method described above is executed. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.

[0146] The embodiment of the present invention also provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the method described above. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.

[0147] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0148] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0149] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0150] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0151] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0152] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.

[0153] In addition, it should be pointed out that in the apparatus and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. Moreover, the steps of performing the above series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order, and some steps can be performed in parallel or independently of each other. For those of ordinary skill in the art, it is understandable that all or any steps or components of the method and apparatus of the present invention can be implemented in hardware, firmware, software or a combination thereof in any computing device (including processors, storage media, etc.) or a network of computing devices, which can be achieved by those of ordinary skill in the art using their basic programming skills after reading the description of the present invention.

[0154] Therefore, the purpose of the present invention can also be achieved by running a program or a group of programs on any computing device. The computing device can be a well-known general device. Therefore, the purpose of the present invention can also be achieved by simply providing a program product containing a program code that implements the method or device. That is to say, such a program product also constitutes the present invention, and the storage medium storing such a program product also constitutes the present invention. Obviously, the storage medium can be any well-known storage medium or any storage medium developed in the future. It should also be pointed out that in the device and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. In addition, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order. Some steps can be performed in parallel or independently of each other.

[0155] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A data acquisition method for an optical power detection tester, characterized in that: The method comprises: The incident light signal is transmitted to the integrating sphere. After multiple reflections in the integrating sphere, the incident light signal is evenly distributed on the inner wall of the integrating sphere and output from the collection port on the wall of the integrating sphere to obtain a reflected light signal. The photodetector performs photoelectric conversion on the reflected light signal to output an electrical signal; The amplifier circuit amplifies the electrical signal, and the filter circuit filters the amplified electrical signal to obtain a preprocessed electrical signal; Monitor the amplitude of the preprocessed electrical signal in real time and obtain the dynamic factor in the current state. When the amplitude of the preprocessed electrical signal is greater than the real-time dynamic factor, adjust the amplification factor of the amplifier circuit and the filtering parameter of the filtering circuit until the amplitude of the preprocessed electrical signal is less than or equal to the real-time dynamic factor. Inputting the preprocessed electrical signal into an analog-to-digital converter for analog-to-digital conversion to obtain a digital signal; Processing and analyzing the digital signal to obtain an optical power test value; The photodetector performs photoelectric conversion on the reflected light signal to output an electrical signal, including: Acquire a reflected light signal, and preprocess the reflected light signal to obtain a preprocessed light signal; The pre-processed light signal enters the photodetector and passes through the window material to illuminate the light-sensitive surface of the photodetector, causing the semiconductor material to generate photo-generated carriers to form a photocurrent. The photocurrent forms an output electrical signal in an external circuit; The amplifier circuit amplifies the electrical signal, and the filter circuit filters the amplified electrical signal to obtain a preprocessed electrical signal, including: Preliminarily amplifying the electrical signal to obtain a first amplified signal; filtering the first amplified signal to obtain a first filtered signal; Amplifying the filtered signal again to obtain a second amplified signal; filtering and denoising the second amplified signal again to obtain a second filtered signal; The amplification factor of the second filtered signal is adjusted by an automatic gain control circuit to obtain an analog signal; the analog-to-digital converter samples and quantizes the analog signal to output a preprocessed electrical signal; Real-time monitoring of the amplitude of the pre-processed electrical signal and acquisition of dynamic factors in the current state, including: Obtain historical photodetector response characteristics, amplifier circuit parameters, and ambient light changes; According to the historical response characteristics of the photodetector, the parameters of the amplifier circuit and the change factors of the ambient light, a prediction model between the dynamic factor and the response characteristics of the photodetector, the parameters of the amplifier circuit and the change factors of the ambient light is established; Obtain real-time photodetector response characteristics, amplifier circuit parameters, and ambient light changes; Inputting the real-time response characteristics of the photodetector, the parameters of the amplifier circuit, and the change of the ambient light into the prediction model for calculation to obtain the real-time dynamic factor; According to the historical response characteristics of the photodetector, the parameters of the amplifier circuit and the change factors of the ambient light, a prediction model between the dynamic factor and the response characteristics of the photodetector, the parameters of the amplifier circuit and the change factors of the ambient light is established, including: Obtain historical response data of the photodetector under different response characteristic parameters, historical output data of the amplifier circuit under different amplification parameters, and historical response data under different ambient light conditions; Preprocessing the historical response data of the photodetector under different response characteristic parameters, the historical output data of the amplifier circuit under different amplification parameters, and the historical response data under different ambient light conditions to obtain preprocessed data; Extracting key features affecting dynamic factors from the preprocessed data; According to the key features and based on the neural network, the network structure of the prediction model is constructed; The preprocessed data is divided into a training data set and a validation data set, and the prediction model is trained with the training data set to learn the nonlinear mapping relationship between the input features and the dynamic factors, the performance of the prediction model is evaluated using the validation data set, and the prediction model is adjusted according to the performance of the prediction model to obtain a final prediction model; The key features affecting dynamic factors are extracted from the preprocessed data, including: Analyze the preprocessed data to obtain the distribution and correlation of each variable; Through correlation analysis, variables related to dynamic factors are obtained; Calculating the importance of the variables and, based on the importance of the variables, determining the key features that affect the dynamic factors; Inputting the preprocessed electrical signal into an analog-to-digital converter for analog-to-digital conversion to obtain a digital signal, including: After amplification and filtering, the preprocessed electrical signal enters the sample-and-hold circuit, which latches the amplitude of the electrical signal at the sampling moment; The sampling clock generates a timed sampling pulse signal to control the sample-and-hold circuit to perform sampling; The voltage signal latched by the sample and hold circuit enters the analog-to-digital converter, which converts the voltage amplitude into a digital quantity and outputs a digital signal.

2. An optical power detection tester data acquisition device, characterized in that: include: The acquisition module is used to transmit the incident light signal to the integrating sphere. After multiple reflections in the integrating sphere, the incident light signal is evenly distributed on the inner wall of the integrating sphere and output from the collection port on the wall of the integrating sphere to obtain the reflected light signal. The photoelectric detector performs photoelectric conversion on the reflected light signal to output an electrical signal; the amplifier circuit amplifies the electrical signal, and the filter circuit filters the amplified electrical signal to obtain a pre-processed electrical signal; The photodetector performs photoelectric conversion on the reflected light signal to output an electrical signal, including: obtaining the reflected light signal, and preprocessing the reflected light signal to obtain a preprocessed light signal; the preprocessed light signal enters the photodetector, and passes through the window material to illuminate the light-sensitive surface of the photodetector, so that the semiconductor material undergoes a photogenerated carrier effect to form a photocurrent; the photocurrent forms an output electrical signal in an external circuit; the amplifier circuit amplifies the electrical signal, and the filter circuit filters the amplified electrical signal to obtain a preprocessed electrical signal, including: preliminarily amplifying the electrical signal to obtain a first amplified signal; filtering the first amplified signal to obtain a first filtered signal; amplifying the filtered signal again to obtain a second amplified signal; filtering and denoising the second amplified signal again to obtain a second filtered signal; adjusting the amplification factor of the second filtered signal through an automatic gain control circuit to obtain an analog signal; the analog-to-digital converter samples and quantizes the analog signal to output the preprocessed electrical signal; The processing module is used to monitor the amplitude of the preprocessed electrical signal in real time and obtain the dynamic factor in the current state. When the amplitude of the preprocessed electrical signal is greater than the real-time dynamic factor, the amplification factor of the amplifier circuit and the filtering parameter of the filtering circuit are adjusted until the amplitude of the preprocessed electrical signal is less than or equal to the real-time dynamic factor; the preprocessed electrical signal is input to an analog-to-digital converter for analog-to-digital conversion to obtain a digital signal; the digital signal is processed and analyzed to obtain an optical power test value; the amplitude of the preprocessed electrical signal is monitored in real time, and the dynamic factor in the current state is obtained, including: obtaining the historical response characteristics of the photoelectric detector, the parameters of the amplifier circuit, and the change of the ambient light; according to the historical response characteristics of the photoelectric detector, the parameters of the amplifier circuit, and the change of the ambient light, ... the optical power test value; the preprocessed electrical signal is monitored in real time, and the dynamic factor in the current state is obtained, including: obtaining the historical response characteristics of the photoelectric detector, the parameters of the amplifier circuit, and the change of the ambient light; according to the historical response characteristics of the photoelectric detector, the parameters of the amplifier circuit, and the change of the ambient light, the preprocessed electrical signal is input to an analog-to-digital converter for analog-to-digital conversion to obtain a digital signal; the digital signal is processed and analyzed to obtain the optical and the changing factors of ambient light, establish a prediction model between the dynamic factor and the response characteristics of the photodetector, the parameters of the amplifying circuit and the changing factors of ambient light; obtain the real-time response characteristics of the photodetector, the parameters of the amplifying circuit and the changes in ambient light; input the real-time response characteristics of the photodetector, the parameters of the amplifying circuit and the changes in ambient light into the prediction model for calculation to obtain the real-time dynamic factor; according to the historical response characteristics of the photodetector, the parameters of the amplifying circuit and the changing factors of ambient light, establish a prediction model between the dynamic factor and the response characteristics of the photodetector, the parameters of the amplifying circuit and the changing factors of ambient light, including: obtaining the historical response data of the photodetector under different response characteristic parameters, The historical output data of the amplifier circuit under different amplification parameters and the historical response data under different ambient light conditions are preprocessed to obtain preprocessed data; the key features affecting the dynamic factors are extracted from the preprocessed data; according to the key features and based on the neural network, the network structure of the prediction model is constructed; the preprocessed data is divided into a training data set and a verification data set, and the prediction model is trained with the training data set to learn the nonlinear mapping relationship between the input features and the dynamic factors, and the verification data set is used to evaluate the performance of the prediction model, and the prediction model is used according to the prediction model. The prediction model is adjusted according to the performance of the prediction model to obtain the final prediction model; the key features affecting the dynamic factors are extracted from the preprocessed data, including: analyzing the preprocessed data to obtain the distribution and correlation of each variable; obtaining the variables related to the dynamic factors through correlation analysis; calculating the importance of the variables, and determining the key features affecting the dynamic factors according to the importance of the variables; inputting the preprocessed electrical signal into an analog-to-digital converter for analog-to-digital conversion to obtain a digital signal, including: the preprocessed electrical signal enters a sampling and holding circuit after being amplified and filtered, and the sampling and holding circuit latches the amplitude of the electrical signal at the sampling moment; the sampling clock generates a timed sampling pulse signal to control the sampling and holding circuit to perform sampling;The voltage signal latched by the sampling and holding circuit enters the analog-to-digital converter, which converts the voltage amplitude into a digital quantity and outputs a digital signal. ; 3. A computing device, characterized in that: include: one or more processors; A storage device, used for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method as claimed in claim 1.

4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program, which implements the method according to claim 1 when executed by a processor.