Allowed checking device connected state.

Also setup for auto-reset for programming.