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.
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 ); dev/ttyUSB0" , O_RDWR | O_NOCTTY );
or
fd = open("/
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.