⚠️ Forum Maintenance: Feb 6th, 8am - 14pm (UTC+2)

Need advice, QT app communicating with android service

  • 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.

  • Lifetime Qt Champion

    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)

  • 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)

  • Lifetime Qt Champion

    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.

  • 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.

Log in to reply