Method of recognizing state of optical module in ONU (Optical Network Unit) and ONU

The invention discloses a method of recognizing the state of an optical module in an ONU (Optical Network Unit). The method comprises steps: the current recognition cycle for the optical module state is acquired, and the optical module state in the last recognition cycle is acquired; the current recognition cycle is divided at equal intervals to form at least two sub cycles; in each sub cycle of the current recognition cycle, parameters of the optical module are acquired; and according to the number of sub cycles for successively and successfully acquiring the parameters of the optical module and the acquired optical module state in the last recognition cycle, the optical module state in the current recognition cycle is determined. Meanwhile, the invention also discloses an ONU.