I have a couple of older TEMPer USB-to-Serial Thermometers that depend
on this module, so Michael Stevens comment (#12) about the behaviour was
very helpful for me...

The programs the TEMPer's depend on (TEMPer.c and temper-read-temp
(temper-read-temp, part of temper-tools-1.0 from roaringpenguin.com)
both block on the serial port open bit (I guess they don't do the DCD
properly)...  Here's what the change looks like now that it works again.

-       fd = open(MODEMDEVICE, O_RDWR | O_NOCTTY );
+       fd = open(MODEMDEVICE, O_RDWR | O_NOCTTY | O_NONBLOCK ); // O_NONBLOCK: 
In Linux 2.6+ serial ports became able to block, we don't want that here.

-- 
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

Reply via email to