Is QSerialPort support for android devices is possible anyway?
-
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
-
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/ -
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 -
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.