Unsolved Sending data through usb connection?
-
I am new to Qt. Is there any way to create an app which sends strings of data from desktop to android through usb connection? The desktop acts as a server and the android acts as a client. I am using Qt 5.12.1. Thanks in advance.
-
-
@SGaist No, I just mean that the desktop will send data to the android device through serial port connection, just like a server will send data to the client. Is there any way to do it in Qt?
-
What exactly do you want to achieve with these strings ?
-
@SGaist Just need to display these data on the android device. I already have bluetooth option set up but I would like another option(serial port connection) set up too.
-
@HaoXiang
IIRC Android doen't allow to open serial ports, at least not without root access -
@raven-worxI I was thinking using usb port for android and serial port for desktop because I am using a usb cable to send data.
Is there any other way to send data using a usb cable? -
@HaoXiang if you can set up a network connection over USB, then all network protocols are possible.
Regards
-
@HaoXiang I don't think it is possible out of the box, usually, phones are very restricted on what they allow to transfer between pc and phone via USB.
For obvious security reasons. If your root your phone(on android) than yes that should be possible.
Should, but I personally wouldn't know howIf you're simply looking for an alternative to bluetooth, why not use WLAN and TCP/UDP sockets?