So I have this issue with an USB to serial converter. On a fresh booted device it shows up as /dev/ttyUSB0 and I can connect to the serial device with
minicom -D /dev/ttyUSB0.
However, after some time (this could be minutes or hours, haven't figured out any trigger), the flow of data just stops. If I close minicom and try to start it again, I get the error
minicom: cannot open /dev/ttyUSB0: No such file or directory. The device doesn't even show up in
lsusb anymore. Unplugging / re-plugging doesn't help. I also re-soldered all the solder pads on the adapter to avoid connectivity issues but it didn't fix the issue.
The only thing that fixes the issue is to reboot my computer. Which is maximum inconvenience in most cases because I have to close and re-open all the programs I'm working in.
Any ideas what's happening here and how to fix it without closing all my open programs?
Computer hardware is a ThinkPad T14 (first gen) with AMD processor. OS is Ubuntu 21.04.