Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to access usb name in debian from QT
Forum Updated to NodeBB v4.3 + New Features

How to access usb name in debian from QT

Scheduled Pinned Locked Moved Unsolved General and Desktop
15 Posts 6 Posters 1.9k Views 2 Watching
  • 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_developerQ Offline
    qt_ankit_developerQ Offline
    qt_ankit_developer
    wrote on last edited by
    #1

    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
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      2
      • qt_ankit_developerQ Offline
        qt_ankit_developerQ Offline
        qt_ankit_developer
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • qt_ankit_developerQ Offline
          qt_ankit_developerQ Offline
          qt_ankit_developer
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • Christian EhrlicherC Online
            Christian EhrlicherC Online
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @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_developerQ 1 Reply Last reply
            2
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              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
              3
              • Christian EhrlicherC Christian Ehrlicher

                @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_ankit_developerQ Offline
                qt_ankit_developerQ Offline
                qt_ankit_developer
                wrote on last edited by
                #7

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

                jsulmJ 1 Reply Last reply
                0
                • qt_ankit_developerQ qt_ankit_developer

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

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @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_developerQ 1 Reply Last reply
                  4
                  • jsulmJ jsulm

                    @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_developerQ Offline
                    qt_ankit_developerQ Offline
                    qt_ankit_developer
                    wrote on last edited by
                    #9

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

                    jsulmJ aha_1980A 2 Replies Last reply
                    0
                    • qt_ankit_developerQ qt_ankit_developer

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

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @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
                      1
                      • qt_ankit_developerQ qt_ankit_developer

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

                        aha_1980A Offline
                        aha_1980A Offline
                        aha_1980
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        @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_developerQ 1 Reply Last reply
                        2
                        • aha_1980A aha_1980

                          @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_ankit_developerQ Offline
                          qt_ankit_developerQ Offline
                          qt_ankit_developer
                          wrote on last edited by
                          #12

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

                          mrjjM 1 Reply Last reply
                          0
                          • qt_ankit_developerQ qt_ankit_developer

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

                            mrjjM Offline
                            mrjjM Offline
                            mrjj
                            Lifetime Qt Champion
                            wrote on last edited by
                            #13

                            @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_developerQ 1 Reply Last reply
                            0
                            • mrjjM mrjj

                              @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_developerQ Offline
                              qt_ankit_developerQ Offline
                              qt_ankit_developer
                              wrote on last edited by
                              #14

                              @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

                              mrjjM 1 Reply Last reply
                              0
                              • qt_ankit_developerQ qt_ankit_developer

                                @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

                                mrjjM Offline
                                mrjjM Offline
                                mrjj
                                Lifetime Qt Champion
                                wrote on last edited by
                                #15

                                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
                                2

                                • Login

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • Users
                                • Groups
                                • Search
                                • Get Qt Extensions
                                • Unsolved