Fwd: USB - Generic Serial device : Unable to read more than 4095 bytes

2015-08-17 Thread arun k
Hi, Regarding the above issue, I was checking the USB- Generic driver, And I tried the following things and found my data loss issue is fixed. change point >> In usb_serial_probe() function in usb-serial.c /* set up the endpoint information */ for (i = 0; i < num_bulk_in; ++i

Re: USB - Generic Serial device : Unable to read more than 4095 bytes

2015-08-07 Thread Greg KH
On Fri, Aug 07, 2015 at 07:26:15PM +0900, arun k wrote: > Hi, > > I am stuck with the above issue, > I have some doubts regarding USB - Generic driver > 1. Could you please explain me why USB - Generic driver is slow ? Because it was designed that way, it is not for high-speed data throughput at

Re: USB - Generic Serial device : Unable to read more than 4095 bytes

2015-08-07 Thread Peter Hurley
On 08/06/2015 02:42 AM, arun k wrote: > / # lsusb -v > Bus 002 Device 006: ID 045b:0218 > Bus 001 Device 001: ID 1d6b:0002 > Bus 002 Device 001: ID 1d6b:0001 > Bus 003 Device 001: ID 1d6b:0002 > Bus 004 Device 001: ID 1d6b:0003 > > In this my device is > Bus 002 Device 006: ID 045b:0218 I have no

Re: USB - Generic Serial device : Unable to read more than 4095 bytes

2015-08-07 Thread arun k
Hi, I am stuck with the above issue, I have some doubts regarding USB - Generic driver 1. Could you please explain me why USB - Generic driver is slow ? 2. Now I am try to study USB - Generic driver implementation , I am confused with the function usb_serial_generic_read_bulk_callback() , could yo

Re: USB - Generic Serial device : Unable to read more than 4095 bytes

2015-08-05 Thread Peter Hurley
On 08/04/2015 11:57 PM, arun k wrote: >> Ok, but does the sending device know how to process in-band software flow >> control >> and is it set up to respond properly? > > I am not sure about this. I need to check this. > >> Also, I doubt software flow control is going to work @ 4Mbaud line rate.

Fwd: USB - Generic Serial device : Unable to read more than 4095 bytes

2015-08-04 Thread arun k
-- Forwarded message -- From: arun k Date: Wed, Aug 5, 2015 at 12:57 PM Subject: Re: USB - Generic Serial device : Unable to read more than 4095 bytes To: Peter Hurley Cc: Greg KH , linux-usb@vger.kernel.org > Ok, but does the sending device know how to process in-band softw

Re: USB - Generic Serial device : Unable to read more than 4095 bytes

2015-08-04 Thread Peter Hurley
On 08/04/2015 10:00 PM, arun k wrote: > I enabled software flow control like below > > tty.c_iflag |= (IXON | IXOFF | IXANY); Ok, but does the sending device know how to process in-band software flow control and is it set up to respond properly? Also, I doubt software flow control is going to w

Re: USB - Generic Serial device : Unable to read more than 4095 bytes

2015-08-04 Thread arun k
I enabled software flow control like below tty.c_iflag |= (IXON | IXOFF | IXANY); But I still having the data loss issue. Regards Arun On Wed, Aug 5, 2015 at 12:59 AM, Peter Hurley wrote: > On 08/03/2015 10:47 PM, arun k wrote: >> Thank you for the reply >> The tty layer is limiting you,

Re: USB - Generic Serial device : Unable to read more than 4095 bytes

2015-08-04 Thread Peter Hurley
On 08/03/2015 10:47 PM, arun k wrote: > Thank you for the reply > >>> The tty layer is limiting you, just keep reading in a loop until you >>> run out of data, you should not ever expect to read a specific number of >>> bytes from a tty device at a time, the read call will tell you the >>> number

Fwd: USB - Generic Serial device : Unable to read more than 4095 bytes

2015-08-03 Thread arun k
Thank you for the reply >> The tty layer is limiting you, just keep reading in a loop until you >> run out of data, you should not ever expect to read a specific number of >> bytes from a tty device at a time, the read call will tell you the >> number that was read properly. I tried this method b

Re: USB - Generic Serial device : Unable to read more than 4095 bytes

2015-08-03 Thread Greg KH
On Mon, Aug 03, 2015 at 04:44:07PM +0900, arun k wrote: > Hi , > > I have a trouble with using usb serial generic device. > I am using USB - Generic Serial driver for communicating with my usb > device and my embedded device. Please don't use the "generic" driver, it's slow and not the best to u

Re: USB - Generic Serial device : Unable to read more than 4095 bytes

2015-08-03 Thread Peter Hurley
On 08/03/2015 03:44 AM, arun k wrote: > Hi , > > I have a trouble with using usb serial generic device. > I am using USB - Generic Serial driver for communicating with my usb > device and my embedded device. > My usb device sending data at a rate of 409600 bytes/sec, and in host > side applicatio

USB - Generic Serial device : Unable to read more than 4095 bytes

2015-08-03 Thread arun k
Hi , I have a trouble with using usb serial generic device. I am using USB - Generic Serial driver for communicating with my usb device and my embedded device. My usb device sending data at a rate of 409600 bytes/sec, and in host side application I tried to read 16384 bytes in one read. But the r