The invention relates to the technical field of
solid state disks, in particular to a
solid state disk ID and hardware state synchronization method, a controller, a
system and a medium. Comprising the following steps: S1, before a
system enters a dormant state, acquiring and persistently storing initial identification information of NVMe equipment by a driving layer; s2, after the
system is awakened from the dormant state, executing multiple rounds of identifier query operation on the NVMe equipment; s3, calculating an identifier change rate based on a multi-round query result and the initial identifier information, and if the identifier change rate is lower than a first preset threshold value, judging that the interference is temporary interference, and maintaining an equipment link; if the identifier change rate is higher than a first preset threshold value, entering a step S4; and S4, acquiring real-time state parameters of the
physical layer of the NVMe equipment, verifying the real-time state parameters, recovering the link if the real-time state parameters pass the
verification, and resetting the NVMe equipment if the real-time state parameters do not pass the
verification. Compared with the prior art, through state analysis,
cross validation and joint judgment, the misjudgment rate caused by instantaneous change of the ID of the equipment is remarkably reduced.