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. USB serial port with Android
Forum Updated to NodeBB v4.3 + New Features

USB serial port with Android

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 3 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.
  • X Offline
    X Offline
    xargs1
    wrote on last edited by
    #1

    I have a Qt Quick app that uses QSerialPort to talk to a USB CDC device. I'd like to run this app on Android, but my understanding is that QSerialPort is not supported on non-rooted Android devices (and it does not function on the Android devices I've tried).

    Is there any other solution for USB access in Qt 5.9.2? I've looked at libusb, but its support on Android requires initialization via the Java APIs.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @kuzulis can you take a look please ?

      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
      0
      • K Offline
        K Offline
        kuzulis
        Qt Champions 2020
        wrote on last edited by kuzulis
        #3

        As I know, it is possible to use only the JAVA code, e.g. to use the USB in OTG mode. As I remenber, a long ago, was provided a patch with this feature: https://codereview.qt-project.org/#/c/84338/ but, was not merged by some reasons. So, you can look there and take a JAVA code.

        PS: AFAIK nobody tested that patch (I'm not tested exactly). :)

        1 Reply Last reply
        3

        • Login

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