The invention discloses an
optical frequency comb automatic
mode locking control and detection method and device, and the method comprises the steps: firstly, manually calibrating the optimal
mode locking state of an
optical frequency comb, and recording the power value range of an output spectrum of the
optical frequency comb as standard data; the
microcontroller controls and gradually increases the pumping current of the pumping source, the light output by the optical
frequency comb oscillator is divided into three paths, the first path is used for mode-locked detection, the second path is input into the
optical power meter, and the third path is used as measuring light for subsequent measurement; the first path of light is converted into an
electric signal, the
electric signal is amplified and then subjected to
frequency mixing and
phase discrimination with reference frequency to obtain an
error signal, the
error signal is filtered and then converted into a
voltage signal, and the
microcontroller samples the
voltage signal and judges whether
mode locking exists; if the mode locking state is not reached, continuing to increase the pumping current, and when the
microcontroller calculates that the accumulated sum of absolute deviations of two adjacent sampling results in multiple sampling results is smaller than a set threshold value, completing mode locking; at the moment, the microcontroller triggers
serial port communication with the
optical power meter, reads the real-time power of the
optical power meter, judges whether the current power is within a power value range or not according to standard data, and completes the optimal mode-locked pulse
laser output if the current power is within the power value range; and if not, the pumping current needs to be reduced until the power value measured by the
optical power meter conforms to the calibrated optimal mode-locking power value range. Automatic mode locking of the optical
frequency comb and effective detection of the state after mode locking can be achieved, and it is guaranteed that the optical
frequency comb oscillator has good spectral characteristics and
signal light quality in the actual output process.