Open GoogleCodeExporter opened 9 years ago
;-) Look the same as Issue 136
First, "qDebug()<<var" to see whether the portname is right.
Then,
you can write a simple program to test the return value of:
::open("/dev/ttyUSB0" ,O_RDWR | O_NOCTTY | O_NDELAY)
to see whether it equals -1 or not.
Regards,
Debao
Original comment by dbzhang...@gmail.com
on 27 Jun 2012 at 6:23
In linux, my app only opens the port if the app is running with "root" user.
How to fix it?
I need to fix this problem...
Original comment by da...@supridatta.com.br
on 6 Aug 2012 at 9:03
[deleted comment]
maybe you should add your user to the dialout group, or whatever group your
device belongs to.
Original comment by yangyj...@gmail.com
on 14 Aug 2012 at 9:37
Yes You need to add the users to dialout group!
In debian/ubuntu you could use this:
"awk -F: '$3 > 999 {print $1}' /etc/passwd | xargs -I USERNAME sudo usermod -a
-G dialout USERNAME"
Original comment by da...@supridatta.com.br
on 6 Dec 2012 at 7:29
Original issue reported on code.google.com by
alvar...@alumnos.ubiobio.cl
on 22 Jun 2012 at 7:27