The invention discloses a method for detecting and correcting an
infrared communication carrier frequency of an
electric energy meter. The method comprises the following steps: S1, firstly, initializing the
electric energy meter after the
electric energy meter is electrified; s2, configuring a PWM
clock frequency through an MCU of the electric energy meter; s3, performing register setting; s4, starting the electric energy meter to output PWM square
waves; s5, the hand-held detection terminal performs frequency sampling detection on the
square wave output by the electric energy meter; s6, calculating a measured
square wave frequency value; s7, correcting a frequency division coefficient K value; and S8, communicating with an MCU (Microprogrammed
Control Unit) in the electric energy meter through a data
communication interface of the handheld detection terminal. According to the method, the square
waves output by the electric energy meter are regularly measured and corrected through the handheld detection terminal, the stability and reliability of
infrared communication are guaranteed, it is also guaranteed that
infrared communication is carried out at the optimal frequency performance, the
management efficiency of
electric power operation and maintenance is improved, and meanwhile the
energy consumption is reduced. And the problems of
infrared communication failure and short
infrared communication distance caused by infrared carrier
center frequency deviation are avoided.