Comment 24 for bug 661321

Revision history for this message
Stefan (steffel) wrote :

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.