It looks like the patch has been applied in 2.8p2 or did I miss something?
owfs' module/owlib/src/c/ow_com.c
// Set to non-canonical mode, and no RTS/CTS handshaking
newSerialTio.c_iflag &= ~(BRKINT | ICRNL | IGNCR | INLCR | INPCK |
ISTRIP | IXON | IXOFF | PARMRK);
newSerialTio.c_iflag |= IGNBRK | IGNPAR;
newSerialTio.c_oflag &= ~(OPOST);
switch( in->flow_control ) {
case flow_hard:
newSerialTio.c_cflag &= ~(CSIZE | HUPCL | PARENB);
newSerialTio.c_cflag |= (CRTSCTS | CLOCAL | CS8 | CREAD);
break ;
case flow_none:
newSerialTio.c_cflag &= ~(CRTSCTS | CSIZE | HUPCL | PARENB);
newSerialTio.c_cflag |= (CLOCAL | CS8 | CREAD);
break ;
case flow_soft:
default:
LEVEL_DEBUG("Unsupported COM port flow control");
return -ENOTSUP ;
}
newSerialTio.c_lflag &= ~(ECHO | ECHOE | ECHOK | ECHONL | ICANON |
IEXTEN | ISIG);
newSerialTio.c_cc[VMIN] = 0;
newSerialTio.c_cc[VTIME] = 3;
I will try with debug. Thanks
On 10/28/2010 10:05 PM, Marcus Priesch wrote:
Hi William,
then this whole thing sounds to me like a kernel issue - 2.8p2 tries
three times before it gives up, 2times without rts and then one time
with rts turned on ... however this didnt work for me either.
if you are running from source you could give my patch a try - also it
would be helpful to first compile owfs with debug enabled and send the
output (with --debug) of e.g. owserver to the list ...
there was also a second problem - besides the rts problem that the
serial buffer wasnt flushed often enough and thus the LinkUSB detection
failed - both is fixed in my patch ... and documented in my email ... ;)
paul (and all other devs): would it help to submit patches/bug reports
directly into the sourceforge trackers instead of posting to the
list ?!?!
greets,
m.
Am Donnerstag, den 28.10.2010, 19:12 -1000 schrieb William Brown:
Just started getting this since I switched to Ubuntu 10.4, is it related
to this rts/cts problem or is there another reason for the timeout?
Running owfs 2.8p2 but timeout was also in owfs 2.7p38. Ubuntu 9.10 and
owfs 2.7p38 were ok.
Oct 28 18:20:36 Irry OWFS[859]: CONNECT: ow_com_read.c:COM_read(72)
Timeout error (read) serial port: /dev/ttyUSB0
On 10/28/2010 04:18 AM, Marcus Priesch wrote:
Hi there,
also LinuUSB detection and communication is currently not working
out-of-the box ... i posted a patch for 2.8p2.
it is related to enabling rts/cts handshake - but maybe this is
dependent on the kernel version running (and the ftdi driver) ?!?! - for
me it only works when i enable rts/cts - but i assume it worked before
without ... otherwise it wouldnt be as it is ... or ?!?
see
http://sourceforge.net/mailarchive/message.php?msg_name=1287595146.2032.7.camel%40pr-laptop
greets,
m.
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps& games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps& games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps& games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers