Detection of new energy battery cabinet