Device integrity/connection test

You can use this script for instance.
Just comment out all unneeded checks: