Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved How to access usb name in debian from QT

    General and Desktop
    6
    15
    1021
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • qt_ankit_developer
      qt_ankit_developer 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.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        What exactly did you try ?

        libusb can be a solution.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 2
        • qt_ankit_developer
          qt_ankit_developer last edited by

          Hi,
          which class in qt is to be used to scan pen drive name using libusb

          1 Reply Last reply Reply Quote 0
          • qt_ankit_developer
            qt_ankit_developer last edited by

            How i can scan active pen drive name connected in raspberry pi running on (Debian based OS) .

            1 Reply Last reply Reply Quote 0
            • Christian Ehrlicher
              Christian Ehrlicher Lifetime Qt Champion last edited by

              @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.

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              qt_ankit_developer 1 Reply Last reply Reply Quote 2
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                Hi,

                A possible other solution could be KDE's Solid framework.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply Reply Quote 3
                • qt_ankit_developer
                  qt_ankit_developer @Christian Ehrlicher 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.

                  jsulm 1 Reply Last reply Reply Quote 0
                  • jsulm
                    jsulm Lifetime Qt Champion @qt_ankit_developer last edited by

                    @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

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    qt_ankit_developer 1 Reply Last reply Reply Quote 4
                    • qt_ankit_developer
                      qt_ankit_developer @jsulm last edited by

                      @jsulm
                      Hi,
                      In this libusb file descriptor give information about vendor id but I need USB name.

                      jsulm aha_1980 2 Replies Last reply Reply Quote 0
                      • jsulm
                        jsulm Lifetime Qt Champion @qt_ankit_developer last edited by

                        @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/

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply Reply Quote 1
                        • aha_1980
                          aha_1980 Lifetime Qt Champion @qt_ankit_developer last edited by

                          @qt_ankit_developer

                          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

                          Qt has to stay free or it will die.

                          qt_ankit_developer 1 Reply Last reply Reply Quote 2
                          • qt_ankit_developer
                            qt_ankit_developer @aha_1980 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 .

                            mrjj 1 Reply Last reply Reply Quote 0
                            • mrjj
                              mrjj Lifetime Qt Champion @qt_ankit_developer last edited by

                              @qt_ankit_developer

                              why not just update to Qt5.4 then.
                              It should just work since its such a minor jump in version.

                              qt_ankit_developer 1 Reply Last reply Reply Quote 0
                              • qt_ankit_developer
                                qt_ankit_developer @mrjj 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 1 Reply Last reply Reply Quote 0
                                • mrjj
                                  mrjj Lifetime Qt Champion @qt_ankit_developer last edited by

                                  Hi
                                  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 Reply Last reply Reply Quote 2
                                  • First post
                                    Last post