Page 1 of 1

Add DM9051 to ESP32-S2 and run eth2ap but get poor network performance

Posted: Sat Mar 20, 2021 3:14 pm
by josright123
After build, flash and monitor the eth2ap example.
The ESP32-S2+DM9051 can accept and establish the connection from the WiFi station.
While the WiFi station execute a Browser to visit a web-site,
It was difficult to view a whole page since the bandwidth look very low.
How can we fix the bandwidth low issue?

Re: Add DM9051 to ESP32-S2 and run eth2ap but get poor network performance

Posted: Mon Mar 22, 2021 3:05 am
by ESP_Sprite
Well, you're using a cheap IoT module plus a SPI ethernet chip as effectively a wireless access point, you should set your expectations accordingly. Specifically, the DM9051 chip is run at single-line SPI at 36MHz; that bus is only physically capable of pushing at most 36MBit/sec through it, and that is without any protocol overhead.

If you want to optimize things, you probably can do it a bit by tweaking the SPI frequency (it's a menuconfig option) and possibly looking into the code of the example itself; it seems to assume that Ethernet is faster than WiFi which is not necessarily the case in your situation. But I'd start out by doing some proper network analysis (what is the actual bandwidth, which packets get dropped, etc) instead of going by 'it feels slow'.