Detecting if USBUART is connected | Cypress Semiconductor
Detecting if USBUART is connected
Hi, when my program starts it checks to see if a PC is trying to talk to it over the USBUART components. Presently I just do a delay for a few seconds and wait for incoming data. If I don't hear any, I boot the rest of the software. This is kind of a waste though since it waits. In most cases the board won't be connected to a PC. Is there a way to detect if a USB cable is connected or if there is a clinet on the other end?