Re: usb-serial FTDI timing issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 20 Jul 2009, Alan Cox wrote:

> >         tcsetattr(fd, TCSANOW, &options);
> > 
> > 
> > So I guess I did?
> 
> That all looks good, so the kernel won't be adding/removing any bytes (or
> echoing stuff back from the device at the device)

It looks like Stefan forgot to clear INLCR, IGNCR, ICRNL, IXON, and 
IXOFF from options.c_iflag.  The ICRNL bit in particular would cause 
the problem he's seeing.

In fact, the best approach would probably be to call cfmakeraw().

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux