How to access usb name in debian from QT
-
wrote on 22 Nov 2019, 11:48 last edited by
Hi all!
I'm trying to create a GUI based application which provide information of connected USB device in my raspberry pi board(OS-Linux/Debian ). I have tried a lot of things using directory modification method, not getting proper result.
please help me for better approach to get usb device name in linux in qt gui. -
Hi,
What exactly did you try ?
libusb can be a solution.
-
wrote on 23 Nov 2019, 09:51 last edited by
Hi,
which class in qt is to be used to scan pen drive name using libusb -
wrote on 23 Nov 2019, 10:06 last edited by
How i can scan active pen drive name connected in raspberry pi running on (Debian based OS) .
-
@qt_ankit_developer said in How to access usb name in debian from QT:
which class in qt is to be used to scan pen drive name using libusb
None, you have to use libusb directly.
-
Hi,
A possible other solution could be KDE's Solid framework.
-
@qt_ankit_developer said in How to access usb name in debian from QT:
which class in qt is to be used to scan pen drive name using libusb
None, you have to use libusb directly.
wrote on 26 Nov 2019, 11:31 last edited by@Christian-Ehrlicher
Hi,
I am trying to write code to get name of USB devices from libusb library.
Is their any example code to get USB device name from libusb library. -
@Christian-Ehrlicher
Hi,
I am trying to write code to get name of USB devices from libusb library.
Is their any example code to get USB device name from libusb library.@qt_ankit_developer said in How to access usb name in debian from QT:
Is their any example code to get USB device name from libusb library.
https://stackoverflow.com/questions/14722083/how-to-use-libusb-and-libusb-get-device-descriptor
-
@qt_ankit_developer said in How to access usb name in debian from QT:
Is their any example code to get USB device name from libusb library.
https://stackoverflow.com/questions/14722083/how-to-use-libusb-and-libusb-get-device-descriptor
wrote on 27 Nov 2019, 04:22 last edited by@jsulm
Hi,
In this libusb file descriptor give information about vendor id but I need USB name. -
@jsulm
Hi,
In this libusb file descriptor give information about vendor id but I need USB name.@qt_ankit_developer I don't know. This now has nothing to do with Qt. Search on the Internet. Something I found: https://sourceforge.net/p/libusb/mailman/message/34503180/
-
@jsulm
Hi,
In this libusb file descriptor give information about vendor id but I need USB name.Are you by chance talking about flash memory drives and want to get their mountpoint?
Then https://doc.qt.io/qt-5/qstorageinfo.html might be of help.
Regards
-
Are you by chance talking about flash memory drives and want to get their mountpoint?
Then https://doc.qt.io/qt-5/qstorageinfo.html might be of help.
Regards
wrote on 29 Nov 2019, 06:03 last edited by@aha_1980
Hi,
I am also trying to include QStorage class by this class is integrated in qt after qt 5.4 but my qt version is qt 5.3.2 thats why i am not able to include this class in my qt project.
suggest me another method to find out usb flash name.
thanks . -
@aha_1980
Hi,
I am also trying to include QStorage class by this class is integrated in qt after qt 5.4 but my qt version is qt 5.3.2 thats why i am not able to include this class in my qt project.
suggest me another method to find out usb flash name.
thanks .why not just update to Qt5.4 then.
It should just work since its such a minor jump in version. -
why not just update to Qt5.4 then.
It should just work since its such a minor jump in version.wrote on 29 Nov 2019, 10:20 last edited by@mrjj
Hi,
if u know that command which directly upgrade 5.3.2 to 5.4 .share with me.
i also want to upgrade my qt -
@mrjj
Hi,
if u know that command which directly upgrade 5.3.2 to 5.4 .share with me.
i also want to upgrade my qtHi
Well it's so old that the maintenance tool does not have it.In any case, its not really upgrading. Its either replace 5.3.2 or
concurrent 5.4 installed.
You can download installer from
https://download.qt.io/archive/qt/5.4/5.4.2/Make sure to backup your Debian
so its easy to go back if something
should go broke.
1/15