Print and Ctrl-C stops being responsive - USB in timeout
Posted: Fri Jun 17, 2022 5:57 am
I have a project using an RPi PICO that uses the hardware UART to connect to a modem. I need to communicate a lot using the uart, e.g. during the setup phase. In order to be able to follow this setup, I'm printing to the terminal (standard REPL over CDC-USB UART) and I also keep a log in a file. I see that the config continues in the logfile, but sometimes, not always/not always at the same point, printing stops. If that happens, the USB connection has a timeout. Can't break anymore too. Happens in Thonny and in PuTTy.
I've added extra sleep, helps a bit but not enough/always. Is there a better way to do this? What can I do to prevent the serial USB port to go in timeout?
I've added extra sleep, helps a bit but not enough/always. Is there a better way to do this? What can I do to prevent the serial USB port to go in timeout?