We have 12.04 and experienced this problem.
Usage with gtkterm - no problem, communication ok.
With blocking usage, it blocked (sometimes) on open using:
fd = open("/dev/ttyUSB0", O_RDWR | O_NOCTTY | O_SYNC );
or
fd = open("/dev/ttyUSB0", O_RDWR | O_NOCTTY );
After hours of testing we found out that those lines (directly executed
afterwards) solves the problem ... strange:
fd = open("/dev/ttyUSB0", O_RDWR | O_NOCTTY | O_NONBLOCK);
fcntl(fd, F_SETFL, 0); //restore normal (blocking) behavior
Now we can read and write as under 10.10. We hope that helps other
developers.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/661321
Title:
Opening /dev/ttyUSB0 hangs, pl2303.ko module
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/661321/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs