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. Need advice, QT app communicating with android service
Forum Updated to NodeBB v4.3 + New Features

Need advice, QT app communicating with android service

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 2 Posters 1.7k 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.
  • P Offline
    P Offline
    P_Rein
    wrote on last edited by
    #1

    Hello,
    I am working with some people that have made an app in QT that communicates with a device through serial port (they look for tty files in /dev/). Their software works fine on a PC with linux. They want to port it on a tablet, the only problem they seem to have is the serial interface. Since most tablets don't have RS232 on them .. they want to use USB communication. After several days of tests the only way I could imagine things working is this : A service written in java works with the USB host (I have this working by now) and "translates" it to another protocol that QT apps can handle. For some reason android, when given a CDC device, doesn't create a tty file in /dev/ and I found out QT doesn't handle USB host yet.
    I need some advice on what should my service send/receive data to, so that their app can be rewritten to use instead of tty-s. We are thinking of using a socket, but since I am fairly new to linux, android and qt I have the sense my decision might not be the best one.
    Thank you.

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

      Hi and welcome to devnet,

      I'd recommend asking this on the Android-development mailing list. You'll find there Qt for android developers/maintainers. (this forum is more user oriented)

      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
      • P Offline
        P Offline
        P_Rein
        wrote on last edited by
        #3

        Thank you SGaist, I posted it in the google group android-qt. I hope you meant that by "mailing list".

        Just out of curiousity, what do you mean with user oriented ? Arent qt users .. developers ? I see some of the questions in "Mobile and Embedded" are about developing android applications with qt, so is mine.
        I might have made the question unclear.

        Simplified : what is a reliable way for a qt app to communicate with a running service ? (both the service and qt app written by us)

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

          Yes, that one.

          I meant that most people here develop with Qt so are Qt users. I've guided you to places where you can find the guys that actually develop/maintain Qt.

          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
          • P Offline
            P Offline
            P_Rein
            wrote on last edited by
            #5

            Ok, my mistake.
            I thought my question could be answered by people that develop apps with Qt (which I falsely referred to as "Qt developers").

            Thanks again.

            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