Detect if USB serial/JTAG port is connected to host computer
Posted: Wed Dec 28, 2022 3:31 pm
I need to detect whether my ESP32-S3 is connected to a host computer running a terminal program before I start a console on the ESP32. When the ESP32 resets, it may not be connected to anything, it may be connected to a USB cable for charging or there may be a host computer that wants to talk to it. If I just start the console it blocks until a terminal is connected (no good!). I saw on github that @chipweinberger was looking to do something similar, but I don't see that it was resolved.
Does anyone have an idea of a simple way to check if a host computer is connected?
Thanks so much for any help!
Does anyone have an idea of a simple way to check if a host computer is connected?
Thanks so much for any help!