USB plug/unplug many times, I'd like to use same no "/dev/bus/usb/"
-
Hi.
When my pc connect a usb device, I can see making a folder "/dev/bus/usb/002/002".
Then disconnect one, this folder is gone.
Next, reconnect one, I can see making a new folder "/dev/bus/usb/002/003".I'd like to use the same folder like "/dev/bus/usb/002/002" when I plug/unplug it many times.
Is it possible?
Perhaps I should clear something?Thanks.
-
This has nothing to do with Qt, better look for help on some Linux-specific forum.
The
/dev
folder is under complete control of the operating system. You should not try to change how it works! Instead, if you need to talk to such USB device, use common libraries (likelibusb
) and always search for your device using it's device ID, not path.