The present invention discloses a method and device for automatic mode-locking control and detection of an
optical frequency comb. First, the optimal mode-locking state of the
optical frequency comb is manually calibrated, and the power value range of the
optical frequency comb output spectrum is recorded as standard data; a
microcontroller controls and gradually increases the pump current of the pump source, and at the same time, the output light of the optical
frequency comb oscillator is divided into three paths, the first path is used for mode-locking detection, the second path is input to an
optical power meter, and the third path is used as measurement light for subsequent measurement; the first path of light is converted into an electrical
signal, the electrical
signal is amplified, mixed with a reference frequency to obtain an
error signal, the
error signal is filtered and converted into a
voltage signal, and the
microcontroller is used to detect the
error signal. The
microcontroller samples the
voltage signal to determine whether
mode locking is achieved. If
mode locking has not been achieved, the pump current continues to increase.
Mode locking is achieved when the microcontroller calculates the cumulative sum of the absolute deviations of two adjacent sampling results among multiple sampling results and finds that the sum is less than a set threshold. At this point, the microcontroller triggers
serial communication with the
optical power meter, reads the real-time power of the
optical power meter, and determines whether the current power is within the power value range based on standard data. If so, optimal mode-locked pulse
laser output is achieved. If not, the pump current needs to be reduced until the power value measured by the
optical power meter meets the calibrated optimal mode-locked power value range. This invention can achieve automatic
mode locking of the optical
frequency comb and effective detection of the post-mode locking state, ensuring that the optical
frequency comb oscillator has good spectral characteristics and
signal light quality during actual output.