Page 1 of 1

usb ncm ethernet speed option

Posted: Tue Oct 01, 2024 4:26 am
by chegewara
Hi,
i found this cool example which stripped down allow to implement IP over USB or TCP/IP over USB protocol and to serve http server on esp32 (P4) without external radio featured chip.
https://github.com/espressif/esp-idf/tr ... rk/sta2eth
I think it is cool feature which let us to implement simple http server with OTA functionality or even some small websocket server if needed (i will try to publish some example code soon). In theory, with more effort it should be possible to run ftp server and few other protocols too.


For now i have question for people with better knowledge. How i can change ethernet speed, because now my linux can see it as 10Mb and with USB HS we can easily make use of 100Mb connection.

Thanks

PS i think we (espressif community) dont want to be worse than that
https://www.segger.com/products/connect ... -over-usb/

Re: usb ncm ethernet speed option

Posted: Tue Oct 01, 2024 8:24 am
by chegewara
Ok, i have answered from tinyusb users on github.
Looks like espressif tinyusb port is a bit outdated and is having hardcoded speed to 10mb/s.

https://github.com/hathach/tinyusb/disc ... t-10804879

After applying the fix it is now 480mb/s reported on linux.

Re: usb ncm ethernet speed option

Posted: Wed Oct 02, 2024 1:43 pm
by DrMickeyLauer
That's amazing. How can we pester Espressif to sync their port with upstream?

Re: usb ncm ethernet speed option

Posted: Thu Oct 03, 2024 9:37 pm
by chegewara
Actually this is only "cosmetic" change and does not impact transfer speed.
In fact no matter what speed OS is detecting (10mbit or 480mbit) performance is the same, at least on linux with iperf test.
In both cases it is over 35mbit/s.

Re: usb ncm ethernet speed option

Posted: Mon Oct 07, 2024 11:49 am
by DrMickeyLauer
Oh, ok, in that case it might not be a high priority issue.

Re: usb ncm ethernet speed option

Posted: Tue Oct 08, 2024 3:45 am
by username
This is very cool! Thanks for sharing.