USB Serial starts going slow if buffer on PC is not emptied
I was testing some code that writes to a ILI9341ILI9341Displays, touch panels and LEDs… shows on my screen. I have used and programmed a few different types of SPI screens( ili9341 , st7735) using Python very successfully and these parallel screens have many of the…View in hardware catalog display and also sends the same debug information to Serial.
I left it doing a soak test and after about sending several thousand chars to the serial without the serial console being open, I get a strange effect where Serial.print seems to start taking a noticeable amount of time to write something like “Sending ….” ( around 250ms)
If I open the Serial monitor, the issue goes away, but if I close the serial monitor and wait a for a few more thousand characters to be sent, the problem comes back.
I’ve written a test program yet to investigate what the issue is, but there does appear to be a problem.
The only other test I did so far is to run my test rig from a USB PSU and in this case there isn’t an issue.
i.e I’t only seems to occur if there is USB host.
