The invention provides a switching
type safety control method and device for a wind
turbine generator set under
replay attack. The method comprises the steps of establishing a wind
turbine generator dynamical model based on a wind
turbine generator operation mechanism and a
physical structure; according to the
replay attack characteristics, establishing a
replay attack model aiming at the measured value of the wind turbine generator
rotor speed sensor; setting a
lower limit of a
detection threshold value, designing a dynamic
detector with an updated threshold value, and judging whether a replay
attack exists or not; based on the
Lyapunov stability theory, a rotor rotating speed state estimator and a switching
type safety controller are designed, and normal operation and expected rotor rotating speed output performance of the wind turbine generator under the replay
attack are achieved. According to the method, an
effective solution is provided for the
attack and defense problem of the wind turbine generator set under the nonlinear characteristic, normal operation of the wind turbine generator set can be ensured, malicious influences of replay attacks in the wind turbine generator set are relieved, and the
power output performance of the wind turbine generator set is improved.