EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

Data loss in USB to Serial conversion(cp2101)

Started by pratibha_275 July 21, 2009
Hi!

I have used USB to Serial Converter(cp2101) with my at91SAM9260 module.
i am using the ttyUSB0 port at baudrate of 9600bps.i have set CTSRTS check but still i am missing the data.it seems CTS/RTS is not working.can anybody tell where i am wrong?

Pratibha,

Try to look at the USB2 serial driver and find out whether the requests
pertaining to CTS/RTS are handled in the driver.

Regards
T.V.R.Prasad

On Tue, Jul 21, 2009 at 6:00 PM, pratibha_275 wrote:

> Hi!
>
> I have used USB to Serial Converter(cp2101) with my at91SAM9260 module.
> i am using the ttyUSB0 port at baudrate of 9600bps.i have set CTSRTS check
> but still i am missing the data.it seems CTS/RTS is not working.can
> anybody tell where i am wrong?
>
>
>
Yes, I have made the changes for that in my usb-serial.c like this

usb_serial_tty_driver->init_termios.c_cflag = B9600 | CRTSCTS | CS8 | CREAD HUPCL | CLOCAL;

CRTSCTS was not there, I have added it to enable CTS check.
but still the data loss is same. no change.

--- In A..., vishnu Tadepalli wrote:
>
> Pratibha,
>
> Try to look at the USB2 serial driver and find out whether the requests
> pertaining to CTS/RTS are handled in the driver.
>
> Regards
> T.V.R.Prasad
>
> On Tue, Jul 21, 2009 at 6:00 PM, pratibha_275 wrote:
>
> >
> >
> > Hi!
> >
> > I have used USB to Serial Converter(cp2101) with my at91SAM9260 module.
> > i am using the ttyUSB0 port at baudrate of 9600bps.i have set CTSRTS check
> > but still i am missing the data.it seems CTS/RTS is not working.can
> > anybody tell where i am wrong?
> >
> >
>

Adding that flag will have little effect if that request is not processed at
the gadget.why don't you try software flow control using XON/XOFF.

Regards
T.V.R.Prasad

On Wed, Jul 22, 2009 at 12:18 PM, pratibha_275 wrote:

> Yes, I have made the changes for that in my usb-serial.c like this
>
> usb_serial_tty_driver->init_termios.c_cflag = B9600 | CRTSCTS | CS8 | CREAD
> HUPCL | CLOCAL;
>
> CRTSCTS was not there, I have added it to enable CTS check.
> but still the data loss is same. no change.
> --- In A... , vishnu
> Tadepalli wrote:
> >
> > Pratibha,
> >
> > Try to look at the USB2 serial driver and find out whether the requests
> > pertaining to CTS/RTS are handled in the driver.
> >
> > Regards
> > T.V.R.Prasad
> >
> >
> >
> > On Tue, Jul 21, 2009 at 6:00 PM, pratibha_275 wrote:
> >
> > >
> > >
> > > Hi!
> > >
> > > I have used USB to Serial Converter(cp2101) with my at91SAM9260 module.
> > > i am using the ttyUSB0 port at baudrate of 9600bps.i have set CTSRTS
> check
> > > but still i am missing the data.it seems CTS/RTS is not working.can
> > > anybody tell where i am wrong?
> > >
> > >
> > >
> >
>

The 2024 Embedded Online Conference