How do you clear any memory Linux has of a USB device?
When I plug in several USB devices, I notice that Linux seems to "remember" them and remount them to the same locations in
For example, I have a few Arduinos that, when connected, appear as
/dev/ttyACM2. If I disconnect them all and then reconnect the second, it re-appears as
/dev/ttyACM1 instead of
/dev/ttyACM0, even though it's now the only device connected.
How do I clear whatever mechanism is remembering that the second device mounts as
/dev/ttyACM1? The only way I've found to clear this is to reboot, but that's too disruptive to my system. I've tried restarting
udev, but that had no effect.
I'm attempting to debug a problem where, after an Arduino is re-connected to the USB host, its serial connection sporadically hangs and drops off. After a fresh reboot, the Arduino's serial connection works perfectly, so my theory is there's some bug in my computer's USB driver that's remembering some aspect of the old connection, and it's trying to re-use this for the new connection, causing it to fail.