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

josright123
Posts: 3
Joined: Sat Mar 20, 2021 1:28 pm

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

Postby josright123 » Sat Mar 20, 2021 3:14 pm

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?

ESP_Sprite
Posts: 9582
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Mon Mar 22, 2021 3:05 am

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'.

Who is online

Users browsing this forum: Baidu [Spider] and 231 guests