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?
Data loss in USB to Serial conversion(cp2101)
Started by ●July 21, 2009
Reply by ●July 21, 20092009-07-21
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?
>
>
>
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?
>
>
>
Reply by ●July 22, 20092009-07-22
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?
> >
> >
>
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?
> >
> >
>
Reply by ●July 22, 20092009-07-22
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 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?
> > >
> > >
> > >
> >
>