Impressive Ethernet bandwith using ESP32

hwmaier
Posts: 31
Joined: Sun May 28, 2017 7:30 am

Impressive Ethernet bandwith using ESP32

Postby hwmaier » Thu Jun 01, 2017 12:06 am

I just like to share that I have the ESP-WROOM32 running with Ethernet at impressive speeds. Running benchmarks using jperf can achieve a throughput of almost 10MBytes/s using 4 concurrent threads:
image.png
image.png (19.96 KiB) Viewed 56674 times
I think getting 10MBytes/s which is 80Mbit/s on a 100 MBit/s Ethernet link is as good as it gets.

Note: Clockspeed was set to 240 MHz and lwip setting SYS_LIGHTWEIGHT_PROT set to 0. The latter setting is not recommended for normal operation. If SYS_LIGHTWEIGHT_PROT is set to default of 1, bandwidth is around 7 MBytes/s as shown below:
image2.png
image2.png (28.8 KiB) Viewed 56674 times

milkolik
Posts: 11
Joined: Thu Mar 03, 2022 10:48 pm

Re: Impressive Ethernet bandwith using ESP32

Postby milkolik » Thu Mar 03, 2022 10:51 pm

Very impressive!

What ethernet configuration are you using?

ESP32 internal MAC + external PHY?

External MAC + PHY?

I am trying to get ethernet working on my ESP32 with a ENC28J60 using the ESP IDF examples code but pings are only successful a small percentage of the time. I'd love to get your results so any info really helps!

Thank you!

hwmaier
Posts: 31
Joined: Sun May 28, 2017 7:30 am

Re: Impressive Ethernet bandwith using ESP32

Postby hwmaier » Fri Mar 04, 2022 9:26 am

ESP32 internal MAC + external PHY. You won't achieve those transfer speeds with external MACs.

milkolik
Posts: 11
Joined: Thu Mar 03, 2022 10:48 pm

Re: Impressive Ethernet bandwith using ESP32

Postby milkolik » Fri Mar 11, 2022 11:03 pm

Thank you!

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Re: Impressive Ethernet bandwith using ESP32

Postby Deouss » Tue Mar 15, 2022 3:04 pm

I was playing once with TCP transfers and I could achieve 7-11Mb/sec on second non-wifi core single thread.
Unfortunately you need to implement a blocking socket on client side - I couldn't manage to make stuff work with non-blocking async sokets

MikeMyhre
Posts: 54
Joined: Sat Nov 05, 2022 3:32 am

Re: Impressive Ethernet bandwith using ESP32

Postby MikeMyhre » Mon Dec 11, 2023 4:52 am

milkolik wrote:
Fri Mar 11, 2022 11:03 pm
Thank you!
What hardware chip are you using for the PHY part?
Have you tried 1000 MHZ parts?
I have a project where I need about 60 MHz transfer rate am are not sure what parts will accomplish this.

Thanks

Mike

Who is online

Users browsing this forum: No registered users and 142 guests