This is not a PIO problem rather a plea for help from Linux gurus.
Plugging in any Wemos D1 Mini (running a blinky type program) into my PC running Mint 18 is fine for say 30-40 seconds.
I can ioctl /dev/ttyUSBx and see the messages from Serial.printf as expected with cat < /dev/ttyUSBx (or PIO monitor).
Then the led starts blinking erratically and comms stops for a while. This behaviour stops any uploading or monitoring within PIO obviously.
If I plug the Wemos into a Raspberry PI (ch341 driver) this crazy behaviour does not happen. It all works perfectly. Forever.
Putting a scope on the Wemos Rx pin, the difference is that the PC sends all kinds of stuff to the Wemos when you plug it in whereas the Rpi doesn’t. Debugging the PC driver (ch34x) shows something is periodically trying to probe /dev/ttyUSBx, changing baud rate then sending single characters.
What is doing this? It’s not the usual suspects (ModemManager or brltty) and nothing shows up as holding /dev/ttyUSBx open. So I’m thinking it must be a daemon process somewhere. How to find it?
What is really annoying is that I did tons of development on the PC 3 years ago and it never exhibited this behaviour.
Any ideas gratefully rx’d!