usb ncm ethernet speed option

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

usb ncm ethernet speed option

Postby chegewara » Tue Oct 01, 2024 4:26 am

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/

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: usb ncm ethernet speed option

Postby chegewara » Tue Oct 01, 2024 8:24 am

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.

DrMickeyLauer
Posts: 168
Joined: Sun May 22, 2022 2:42 pm

Re: usb ncm ethernet speed option

Postby DrMickeyLauer » Wed Oct 02, 2024 1:43 pm

That's amazing. How can we pester Espressif to sync their port with upstream?

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: usb ncm ethernet speed option

Postby chegewara » Thu Oct 03, 2024 9:37 pm

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.

DrMickeyLauer
Posts: 168
Joined: Sun May 22, 2022 2:42 pm

Re: usb ncm ethernet speed option

Postby DrMickeyLauer » Mon Oct 07, 2024 11:49 am

Oh, ok, in that case it might not be a high priority issue.

username
Posts: 537
Joined: Thu May 03, 2018 1:18 pm

Re: usb ncm ethernet speed option

Postby username » Tue Oct 08, 2024 3:45 am

This is very cool! Thanks for sharing.

Who is online

Users browsing this forum: No registered users and 96 guests