[SOLVED] How to detect USB devices
Unsolved
General and Desktop
-
My aim is to save a txt file from my Qt app to an external device (SD card, USB pendrive...). The app is created for an embedded system.
My problem is: how detect which USB device is connected when I inserted a USB pen, in such a way that I can save my file in it?
Which is the best method using Qt? -
@alsa
Does your eLinux mount newly attached storage devices automatically to a mount point or does it only create a device file?I had the same task on eLinux as well. My system did create the device file only (busybox with mdev). I used a QFileSystemWatcher to detect changes in /dev, ie. attached sdan and acted on that with mounting/unmounting the device.