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. Is QSerialPort support for android devices is possible anyway?
Forum Updated to NodeBB v4.3 + New Features

Is QSerialPort support for android devices is possible anyway?

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 3 Posters 3.0k 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.
  • A Offline
    A Offline
    Abin
    wrote on last edited by
    #1

    Hi,

    I have an android machine with serial port. Is there a possible way to communicate to serial port in android device? It is not mentioned in document that it supports android. Also when I select android kit, I get message "Project ERROR: Unknown module(s) in QT: serialport"

    Thanks

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi,

      It is currently not supported.
      http://doc-snapshot.qt-project.org/qt5-5.4/android-support.html
      http://qt-project.org/forums/viewthread/44037/

      157

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Abin
        wrote on last edited by
        #3

        can i get any details on

        [quote author="SGaist" date="1403294716"]This class is currently implemented but root rights are needed, however an alternative implementation using java and jni is currently being explored[/quote]

        1 Reply Last reply
        0
        • p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by
          #4

          Not sure but i think you will need to build a wrapper using "qtandroidextras":http://qt-project.org/doc/qt-5/qtandroidextras-index.html over "android-serialport-api":http://code.google.com/p/android-serialport-api/
          Also https://bugreports.qt-project.org/browse/QTBUG-32672

          157

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kuzulis
            Qt Champions 2020
            wrote on last edited by
            #5

            There are the patch to enable support for Android: https://codereview.qt-project.org/#/c/84338/

            In this patch are used a wrapper of the JAVA's classes from this project: https://github.com/mik3y/usb-serial-for-android

            In this case is used the direct USB-host mode, so the root rights are not need.

            PS: But I do not test it, so I can't promise that this will work.

            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