Init the device_type