On Fri, Jun 21, 2002 at 12:33:11PM +0200, Thomas Wahrenbruch wrote:
> Hi all,
> 
> in my driver for our usb-serial converter I want to pass the received data 
> back.
> But after every
> tty_insert_flip_char(tty, data[i], 0);
> call, my write method is called with data[i] or something else (0x5E, 0x40, 
> 0x41 mostly).
> 
> What could be the reason for this?
> Who calls my write method?

As I said before in private email, I have seen this before with some tty
drivers I've written.  But it does not happen when using a serial
program (like minicom) but only when using "cat".  Have you implemented
any set_termios or ioctl callbacks in your driver yet?

> Is there a tty or anything-else-layer between the usb_serial driver and the
> application which communicates with /dev/ttyUSBx?

The data is getting looped back from the tty layer itself.  I've traced
it pretty deep into there, but didn't spend the time to really find out
why it was happening.

> (The app doesn't receive the data)

What kind of app?  Is it using the termios calls in glibc to set the
serial port settings up properly?

thanks,

greg k-h


-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to