Device ID recognition