decoding device_id