Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thoughts about increasing CDC transfer speed. #2706

Closed
1 task done
kwagyeman opened this issue Jul 10, 2024 · 0 comments
Closed
1 task done

Thoughts about increasing CDC transfer speed. #2706

kwagyeman opened this issue Jul 10, 2024 · 0 comments

Comments

@kwagyeman
Copy link

Related area

CDC Transfer Speed

Hardware specification

imxrt

Is your feature request related to a problem?

Hi, we currently use TinyUSB on the IMXRT for USB CDC.

One of the things I noticed with our USB sniffer with USB HS is that many packets are NACKed.

image

In the example above, each 1-2 poll is a NACK. This is wasting USB bandwidth. Ideally, we'd want to have the data ready for USB before it needs it.

image

However, there's very little time to setup the data buffer before the USB controller needs the next one. Like 400ns.

Any thoughts on how this could be improved? Right now we are getting a callback via USB-CDC to prepare the data and memcpy it into a buffer. If this callback were executed before the host needed the data then this would improve our bandwidth.

Not sure how this could be done.

Describe the solution you'd like

Just opening a discussion on how to improve this. We are not bottlenecked by it right now.

openmv/openmv#2261

I have checked existing issues, dicussion and documentation

  • I confirm I have checked existing issues, dicussion and documentation.
Repository owner locked and limited conversation to collaborators Jul 10, 2024
@HiFiPhile HiFiPhile converted this issue into discussion #2707 Jul 10, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

1 participant