<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 4 Mar 2022 at 20:31, Greg KH <<a href="mailto:greg@kroah.com">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 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 trying<br>
> > to find a test for that. Without knowing what you want to measure, 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></blockquote><div><br></div><div>In USB CDC, any software flow control mechanism is implemented?</div><div>Any hardware flow control mechanism there? </div><div>How to enable this software flow control mechanism in kernel device drivers?</div><div>Any other information related to this is good for us.</div><div><br></div><div>-Thanks. </div></div></div>