Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Generic HID on Android device

Generic HID on Android device

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 3 Posters 1.1k Views
  • 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.
  • M Offline
    M Offline
    MartinD
    wrote on last edited by
    #1

    Hi,
    I want to read and write generic HID USB device on Android in my Qt 5.11 app. What are the options?

    1. Any API that can directly interface with generic HID USB device?
    2. libusb? Is it possible to use it in Qt app for Android?
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What device are you targeting ?
      What kind of device do you want to communicate with ?

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

      M 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        What device are you targeting ?
        What kind of device do you want to communicate with ?

        M Offline
        M Offline
        MartinD
        wrote on last edited by
        #3

        @sgaist

        I want to connect USB device designed by myself (it is USB generic HID device - one interrupt in and one interrupt out endpoint) to some Android tablet - I haven't chosen one yet. Some cheap one probably...

        J.HilkJ 1 Reply Last reply
        0
        • M MartinD

          @sgaist

          I want to connect USB device designed by myself (it is USB generic HID device - one interrupt in and one interrupt out endpoint) to some Android tablet - I haven't chosen one yet. Some cheap one probably...

          J.HilkJ Online
          J.HilkJ Online
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          hi @martind ,
          as far as I know, USB devices is not something that is supported out of the box for Qt on Android

          Taking a quick look at the Android developer page, I found the class UsbDevice
          https://developer.android.com/reference/android/hardware/usb/UsbDevice

          So it should be possible, as long as your USBDevice itself is registered in the OS.

          My guess is you'll have to write some native code to access it correctly.


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          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