decode deviceid