-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Is there any interest in USB CDC-NCM driver? #71451
Comments
Hi @rgrr! We appreciate you submitting your first issue for our open-source project. 🌟 Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙 |
@rgrr did you target the next USB stack or the current one? |
The linked code is using the old stack, so the code would have to be not just rewriten to match the style guide, but also ported to the device-next stack. |
yes, I know that. I also would not consider the driver as "ready", it is currently more in "experimental". Is there any doc about the interfaces of the new USB stack? |
Trying to port to the next USB stack. Therefor I want to use the zperf sample as test environment. Unfortunately this does not start the interface when doing
log output:
Is this supposed to work out of the box? If not, how to make it run? |
If anyone wants to inspect: #72310. This version of the NCM driver uses usb-next and is kept very simple: only one datagram for RX/TX. Nevertheless it produces errors with iperf (monitored with Wireshark) and my knowledge seems to be a little bit too limited to understand this fully. The code does more or less ECM (but packed into NCM) and generates errors which does ECM not. The code has also been more or less taken from my TinyUSB NCM driver which does not have those problems. Confuses me... |
Problem with iperf has been resolved by setting It is not clear to me, if this has something to do with the host driver or whatelse. Nevertheless it is now working. Would be great, if someone could do performance measurements other than nRF52840. I'm doing my benchmarking with
or
Performance with the nRF52840 is poor: around 1MBit/s (but that's the case for ECM as well) |
Before I waste my time issuing a PR: is there any interest in an CDC-NCM driver for Zephyr? As far as I understand #42066 it should be.
Some time ago I made a bigger rewrite of the NCM driver for TinyUSB and offered it to the project (hathach/tinyusb#2227). Til now this PR has not been merged.
I'm not complaining... so another approach: I adopted this driver to Zephyr. You can check the current status here: https://github.com/rgrr/ncs-games/tree/zperf/ncm-start/zperf/src/netusb
If you are interested in it, I will rewrite it according to your style guide and create a PR. If not, would also be nice to hear that.
The text was updated successfully, but these errors were encountered: