P
P
Pavel K2016-02-28 22:44:28
Android
Pavel K, 2016-02-28 22:44:28

How to make QSerialPort work under Android?

Greetings!
In general, subject.
In QSerialPortInfo::availablePorts()the com port, it seems to be there, called ttyHSL0
But when you try to open it in the log:

Failed to load the library: udev, supported version(s): 1 and 0
The following directories are not readable or writable for detaling with lock files
/var/lock
/etc/locks
/var/spool/locks
/var/spool/uucp
/tmp
/var/tmp
/var/lock/lockdev
/run/lock
/data/local/tmp
Failed to create a lock file for opening the device

I understand that he needs root rights?
How can you do without them, maybe you will advise the Kuku library (there is usb-serial-for-android, which does not require root, but it is in Java)?
You just need to control the arduino (PS usb host shield is suitable, but it eats too much, the main project does not fit) =)
Android 5.1.1

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Cyril, 2016-02-29
@argz

Maybe this thread will help?
https://forum.qt.io/topic/41857/solved-qserialport...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question