Transfer Files from Qt Creator to External USB Port
-
@Jimit-Rupani
you can useQStorageInfo::mountedVolumes
. Connected USB-Drives should be part of that list.foreach (const QStorageInfo &storage, QStorageInfo::mountedVolumes()) { if (storage.isValid() && storage.isReady()) { if (!storage.isReadOnly()) { // ... } } }
@J.Hilk I did and it solved my problem. thank you for the help!!
-
@J.Hilk I did and it solved my problem. thank you for the help!!
@Jimit-Rupani Maybe libusb could help you: http://libusb.sourceforge.net/api-1.0/hotplug.html
-
@Jimit-Rupani Maybe libusb could help you: http://libusb.sourceforge.net/api-1.0/hotplug.html
@jsulm I have already try that all I got is just P.Id and V.id of pen drive. but I am not able to transfer the data from the machine. our project will deploy in a machine and from there it has to transfer data from machine to USB connected to it's port. from above solution, i am able to transfer data from PC to ps's USB port. But it's not working with the device. and thank you for the suggestions.
-
Hi,
What are you running on that device of yours ?
-
@SGaist It's a device from toradex which is using light weight linux. it'a titration device.
-
What distribution is your "light weight linux" ?
-
@SGaist yup it's light weight and we don't have console also in that devices Linux.
-
What are you using for device handling with your distribution ?
-
@SGaist sorry i didn't get you?
-
What service/library/etc. are you using on your target to handle devices that you connect to it through USB (e.g. udev) ?