After calling
dev.hardware_reset();
How do I know if the device is ready before starting the pipeline?