How could Verify the connection and disconnection of a port COM port. What I want is that if the cable is disconnected it tells me that there is no connection and reboot unt