<div dir="ltr"><div dir="ltr"><br></div><div dir="ltr"><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 7 Mar 2022 at 13:20, Greg KH <<a href="mailto:greg@kroah.com" target="_blank">greg@kroah.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, Mar 07, 2022 at 01:08:28PM +0530, Mithran B wrote:<br>
> On Fri, 4 Mar 2022 at 20:31, Greg KH <<a href="mailto:greg@kroah.com" target="_blank">greg@kroah.com</a>> wrote:<br>
> <br>
> > On Fri, Mar 04, 2022 at 08:06:55PM +0530, Mithran B wrote:<br>
> > > On Fri, 4 Mar 2022 at 19:48, Greg KH <<a href="mailto:greg@kroah.com" target="_blank">greg@kroah.com</a>> wrote:<br>
> > ><br>
> > > > On Fri, Mar 04, 2022 at 04:27:50PM +0530, Mithran B wrote:<br>
> > > > > Hello,<br>
> > > > ><br>
> > > > > In Host and Gadget systems, enabled the USB CDC drivers.<br>
> > > > > Then nodes are created as /dev/ttyAcm0 and /dev/ttyGs0.<br>
> > > > > Then opened the nodes and write and read back the data.<br>
> > > > > It is working.<br>
> > > > ><br>
> > > > > I want to test the performance of this interface and drivers.<br>
> > > > > Do we have any utility for this?<br>
> > > > > How to do the performance test?<br>
> > > ><br>
> > > > What exactly do you want to measure? Determine that first before<br>
> > trying<br>
> > > > to find a test for that. Without knowing what you want to measure,<br>
> > it's<br>
> > > > hard to tell you how to measure it :)<br>
> > > ><br>
> > > > good luck!<br>
> > > ><br>
> > > > greg k-h<br>
> > > ><br>
> > ><br>
> > > Thank you.<br>
> > > I want to send the data at the rate of 5mbps from Host device to target<br>
> > > device using USB CDC - ACM.<br>
> > > In termios functions, how to configure this 5mbps as baud rate and USB<br>
> > > payload size, i.e. packet<br>
> > > size to be in 2K bytes.<br>
> ><br>
> > There is no "baud rate" for usb cdc devices, really, as you have tried<br>
> > this already, right?<br>
> ><br>
> > Just send the data as fast as you can, with the largest chunks of data<br>
> > that you have (do not send it byte by byte to the kernel), and you<br>
> > should be fine.<br>
> ><br>
> > Are you sure that your device can handle that type of data rate? That's<br>
> > almost always the limiting factor.<br>
> ><br>
> > good luck!<br>
> ><br>
> > greg k-h<br>
> ><br>
> <br>
> In USB CDC, any software flow control mechanism is implemented?<br>
<br>
The specification is public on the <a href="http://usb.org" rel="noreferrer" target="_blank">usb.org</a> web site, if you are curious.<br>
There is no need for "flow control" like you are used to for older<br>
serial connections with USB, the way USB works handles it automatically<br>
(the host drives the connection, if the device is full, it tells the<br>
host to wait automatically).<br>
<br>
> Any hardware flow control mechanism there?<br>
<br>
Other than the normal USB flow control mechanism? No, why would there<br>
be?<br>
<br>
> How to enable this software flow control mechanism in kernel device drivers?<br>
<br>
what software flow control?<br>
<br>
> Any other information related to this is good for us.<br>
<br>
For whom? What exactly have you tried and what were the results?<br>
<br>
thanks,<br>
<br>
greg k-h<br></blockquote><div><br></div><div>Thank you. I got the details. </div></div></div>