[lkml]   [2007]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: serial flow control appears broken
Maciej W. Rozycki wrote:

>On Fri, 27 Jul 2007, Lee Howard wrote:
>>Okay, so let's say we've got a loop around a blocking read on the modem file
>> for (;;) {
>> read some data from modem
>> process data from modem
>> if (end-of-data detected) break;
>> }
>>Are you suggesting that the application should be using deasserting RTS after
>>the read and asserting it before?
> It certainly could -- you were asking how it would know. ;-)

So, to test... I put this in the application before every read:

int flags;
ioctl(modemFd, TIOCMGET, &flags);
flags |= TIOCM_RTS;
ioctl(modemFd, TIOCMSET, &flags);

and this after:

int flags;
ioctl(modemFd, TIOCMGET, &flags);
flags &= ~TIOCM_RTS;
ioctl(modemFd, TIOCMSET, &flags);

Now I can see the RTS light blink on the modem (and during heavy
communication it merely "dims" depending on the amount of delay in the

However, it does not help. Data still goes missing.



To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2007-08-04 20:21    [W:0.139 / U:0.620 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site