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?
Print and Ctrl-C stops being responsive - USB in timeout
-
- Posts: 16
- Joined: Wed Jun 08, 2022 1:05 pm
Re: Print and Ctrl-C stops being responsive - USB in timeout
Do you see any messages when your system stops? Like "Device is Busy - can't perform this action now.
Please wait or cancel current work and try again!" or anything like this?
Please wait or cancel current work and try again!" or anything like this?