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. Qt-usb-HID device
Forum Updated to NodeBB v4.3 + New Features

Qt-usb-HID device

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 3 Posters 2.5k Views 1 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.
  • Y Offline
    Y Offline
    yamu
    wrote on last edited by yamu
    #1

    Hi everyone.. I have STM32 board. Can you tell me how to open and read the device from HID Usb device in qt..

    QtFCQ 1 Reply Last reply
    0
    • Y yamu

      Hi everyone.. I have STM32 board. Can you tell me how to open and read the device from HID Usb device in qt..

      QtFCQ Offline
      QtFCQ Offline
      QtFC
      wrote on last edited by
      #2

      @yamu

      I don't know if this will help:
      https://doc.qt.io/qt-5/qtserialport-index.html

      There is something on Github:
      https://github.com/fpoussin/QtUsb

      Similar question:
      https://forum.qt.io/topic/105016/usb-communication-in-qt/6

      Y 1 Reply Last reply
      1
      • Kent-DorfmanK Offline
        Kent-DorfmanK Offline
        Kent-Dorfman
        wrote on last edited by
        #3

        FWIW I've always prefered the event interface, which commonly presents under /dev/input/eventXX

        and /dev/input/by-id lists what the kernel can find as plugged and available devices.

        I light my way forward with the fires of all the bridges I've burned behind me.

        Y 1 Reply Last reply
        0
        • QtFCQ QtFC

          @yamu

          I don't know if this will help:
          https://doc.qt.io/qt-5/qtserialport-index.html

          There is something on Github:
          https://github.com/fpoussin/QtUsb

          Similar question:
          https://forum.qt.io/topic/105016/usb-communication-in-qt/6

          Y Offline
          Y Offline
          yamu
          wrote on last edited by
          #4

          @QtFC

          Thx for ur rply sir. This one for serialport module. But I am asking usb HID.
          https://doc.qt.io/qt-5/qtserialport-index.html

          I already tried this one. It is not worked for me.
          https://github.com/fpoussin/QtUsb

          1 Reply Last reply
          0
          • Kent-DorfmanK Kent-Dorfman

            FWIW I've always prefered the event interface, which commonly presents under /dev/input/eventXX

            and /dev/input/by-id lists what the kernel can find as plugged and available devices.

            Y Offline
            Y Offline
            yamu
            wrote on last edited by
            #5

            @Kent-Dorfman

            Thx for ur reply sir. I am working in windows environment. But u r mentioning linux .

            Kent-DorfmanK 1 Reply Last reply
            0
            • Y yamu

              @Kent-Dorfman

              Thx for ur reply sir. I am working in windows environment. But u r mentioning linux .

              Kent-DorfmanK Offline
              Kent-DorfmanK Offline
              Kent-Dorfman
              wrote on last edited by
              #6

              @yamu said in Qt-usb-HID device:

              Thx for ur reply sir. I am working in windows environment. But u r mentioning linux .

              When you mention STM32 I assume embedded linux.

              I light my way forward with the fires of all the bridges I've burned behind me.

              Y 1 Reply Last reply
              0
              • Kent-DorfmanK Kent-Dorfman

                @yamu said in Qt-usb-HID device:

                Thx for ur reply sir. I am working in windows environment. But u r mentioning linux .

                When you mention STM32 I assume embedded linux.

                Y Offline
                Y Offline
                yamu
                wrote on last edited by
                #7

                @Kent-Dorfman said in Qt-usb-HID device:

                assume embedded linux.

                sorry sir. This is my mistake. can you tell me solution for windows enviroment.

                1 Reply Last reply
                0
                • Kent-DorfmanK Offline
                  Kent-DorfmanK Offline
                  Kent-Dorfman
                  wrote on last edited by
                  #8

                  Solly...I no speak windoze. I run away screaming when anyone asks me to use a windoze machine.

                  The concepts are the same though. USB provides a standard set of operations/endpoints for HID compliant devices. and you don't mention what the HID device is. Chances are Qt is going to expect a higher level abstraction to support the device: joystick, mouse, keyboard, etc. and not provide direct access to the HID layer.

                  I light my way forward with the fires of all the bridges I've burned behind me.

                  1 Reply Last reply
                  0
                  • Y Offline
                    Y Offline
                    yamu
                    wrote on last edited by yamu
                    #9

                    Hi All,
                    Do you have any idea about libusb. I want to use in windows environment. If you know means, plz explain in step by step. becoz i am new to this concepts. I having STM32 board. I want to read the board in USB HID device via. Jus i wanna open and read the hex value and output to the qt creator.

                    1 Reply Last reply
                    0

                    • Login

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