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

Yes, but they do nothing. I tried it with and without set_termios and/or
ioctl in my driver. Is it possible that I must pass the ioctl calls to the tty 
or configure the tty depending on the ioctl arguments?

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

The app (our test app) uses a ct-api.so to communicate with the serial port.
(It works fine with "normal" serial ports)

> Is it using the termios calls in glibc to set the
> serial port settings up properly?

It uses the
struct termios n_par;
..set c_[i|o|l]flag...
tcsetattr(port->PortData.Serial.Handle, TCSANOW, &n_par);

method to set up the serial port.

Is there another mailing list, where I can post questions regarding serial ports?

> 
> thanks,
> 
> greg k-h

Regards,

        Thomas




-------------------------------------------------------
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members! 
JabberConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to