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. How to communicate with FTDI with Qt Android
Forum Updated to NodeBB v4.3 + New Features

How to communicate with FTDI with Qt Android

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
ftdiandroid
10 Posts 5 Posters 1.7k 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.
  • K Offline
    K Offline
    Kyeiv
    wrote on last edited by Kyeiv
    #1

    Hello,
    i ran through some threads here and stackoverflow, most of them was very partial info and messy, so I am asking myself. What is the best/easiest way to read/write data from/to device connected to Qt Android app by FTDI?

    @edit it's about FTDI via USB/serial interface

    Pablo J. RoginaP raven-worxR 2 Replies Last reply
    0
    • K Kyeiv

      Hello,
      i ran through some threads here and stackoverflow, most of them was very partial info and messy, so I am asking myself. What is the best/easiest way to read/write data from/to device connected to Qt Android app by FTDI?

      @edit it's about FTDI via USB/serial interface

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @Kyeiv you haven't stated what FTDI product.
      Have you checked FTDI forums for assistance?

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1
      • K Kyeiv

        Hello,
        i ran through some threads here and stackoverflow, most of them was very partial info and messy, so I am asking myself. What is the best/easiest way to read/write data from/to device connected to Qt Android app by FTDI?

        @edit it's about FTDI via USB/serial interface

        raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by
        #3

        @Kyeiv
        i assume you mean FTDI via USB/serial interface?
        IIRC serial ports are only accessible in Android when the device is rooted.

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        K 1 Reply Last reply
        0
        • raven-worxR raven-worx

          @Kyeiv
          i assume you mean FTDI via USB/serial interface?
          IIRC serial ports are only accessible in Android when the device is rooted.

          K Offline
          K Offline
          Kyeiv
          wrote on last edited by
          #4

          @raven-worx so there's no c++ way to handle without rooting?

          J.HilkJ 1 Reply Last reply
          0
          • K Kyeiv

            @raven-worx so there's no c++ way to handle without rooting?

            J.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on last edited by J.Hilk
            #5

            @Kyeiv so is no java way without rooting either
            Apparently outdated information, that I had


            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.

            Pablo J. RoginaP 1 Reply Last reply
            0
            • J.HilkJ J.Hilk

              @Kyeiv so is no java way without rooting either
              Apparently outdated information, that I had

              Pablo J. RoginaP Offline
              Pablo J. RoginaP Offline
              Pablo J. Rogina
              wrote on last edited by
              #6

              @J-Hilk said in How to communicate with FTDI with Qt Android:

              so is no java way without rooting either

              Not that I have tried, but FTDI support Java example page says:

              This native JAVA driver does not require the Android platform to be rooted and may be used with Android version 3.2 onwards.

              so at some point a JNI approach from Qt Android app could be feasible

              @Kyeiv you still haven't clarified what FTDI product you're using...

              Upvote the answer(s) that helped you solve the issue
              Use "Topic Tools" button to mark your post as Solved
              Add screenshots via postimage.org
              Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

              J.HilkJ 1 Reply Last reply
              3
              • Pablo J. RoginaP Pablo J. Rogina

                @J-Hilk said in How to communicate with FTDI with Qt Android:

                so is no java way without rooting either

                Not that I have tried, but FTDI support Java example page says:

                This native JAVA driver does not require the Android platform to be rooted and may be used with Android version 3.2 onwards.

                so at some point a JNI approach from Qt Android app could be feasible

                @Kyeiv you still haven't clarified what FTDI product you're using...

                J.HilkJ Offline
                J.HilkJ Offline
                J.Hilk
                Moderators
                wrote on last edited by
                #7

                @Pablo-J-Rogina
                I'll be damned, you learn something new every day 👍


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

                  That API use the USB host JAVA API. It has nothing with the serial port API. ;) ... AFAIK, you can use this USB API for any USB device if you know the communication protocol trough the USB end-points for the device.

                  K 1 Reply Last reply
                  1
                  • K kuzulis

                    That API use the USB host JAVA API. It has nothing with the serial port API. ;) ... AFAIK, you can use this USB API for any USB device if you know the communication protocol trough the USB end-points for the device.

                    K Offline
                    K Offline
                    Kyeiv
                    wrote on last edited by
                    #9

                    @kuzulis so you suggest that normal usb api will be enough? i do not see any ftdi configurations for this API.

                    K 1 Reply Last reply
                    0
                    • K Kyeiv

                      @kuzulis so you suggest that normal usb api will be enough? i do not see any ftdi configurations for this API.

                      K Offline
                      K Offline
                      kuzulis
                      Qt Champions 2020
                      wrote on last edited by kuzulis
                      #10

                      @Kyeiv ,

                      I think yes, because a lot time ago, a mr. Mike Goza tried to add the QtSerialPort support to android (for FTDI, CP, PL and other chips): https://codereview.qt-project.org/c/qt/qtserialport/+/83480 (but unsuccessfull). There are used the USB API, directly.

                      But, you can take the FTDI example provided by @Pablo-J-Rogina , if it will be simpler.

                      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