All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Mithran B <mithranb22@gmail.com>
Cc: kernelnewbies@kernelnewbies.org
Subject: Re: USB CDC performance test
Date: Fri, 4 Mar 2022 16:01:04 +0100	[thread overview]
Message-ID: <YiIpsPytHBEjcwyS@kroah.com> (raw)
In-Reply-To: <CAEUGTwO4UTB6J3EJ4b4j=ygdrkve6DnEQg389Oc3zgYc1hf5Sw@mail.gmail.com>

On Fri, Mar 04, 2022 at 08:06:55PM +0530, Mithran B wrote:
> On Fri, 4 Mar 2022 at 19:48, Greg KH <greg@kroah.com> wrote:
> 
> > On Fri, Mar 04, 2022 at 04:27:50PM +0530, Mithran B wrote:
> > > Hello,
> > >
> > > In Host and Gadget systems, enabled the USB CDC drivers.
> > > Then nodes are created as /dev/ttyAcm0 and /dev/ttyGs0.
> > > Then opened the nodes and write and read back the data.
> > > It is working.
> > >
> > > I want to test the performance of this interface and drivers.
> > > Do we have any utility for this?
> > > How to do the performance test?
> >
> > What exactly do you want to measure?  Determine that first before trying
> > to find a test for that.  Without knowing what you want to measure, it's
> > hard to tell you how to measure it :)
> >
> > good luck!
> >
> > greg k-h
> >
> 
> Thank you.
> I want to send the data at the rate of 5mbps from Host device to target
> device using USB CDC - ACM.
> In termios functions, how to configure this 5mbps as baud rate and USB
> payload size, i.e. packet
> size to be in 2K bytes.

There is no "baud rate" for usb cdc devices, really, as you have tried
this already, right?

Just send the data as fast as you can, with the largest chunks of data
that you have (do not send it byte by byte to the kernel), and you
should be fine.

Are you sure that your device can handle that type of data rate?  That's
almost always the limiting factor.

good luck!

greg k-h

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

  reply	other threads:[~2022-03-04 15:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-04 10:57 USB CDC performance test Mithran B
2022-03-04 14:18 ` Greg KH
2022-03-04 14:36   ` Mithran B
2022-03-04 15:01     ` Greg KH [this message]
2022-03-07  7:38       ` Mithran B
2022-03-07  7:50         ` Greg KH
2022-03-07 13:41           ` Mithran B
2022-03-04 16:13     ` Jeffrey Walton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YiIpsPytHBEjcwyS@kroah.com \
    --to=greg@kroah.com \
    --cc=kernelnewbies@kernelnewbies.org \
    --cc=mithranb22@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.