dchristl / esp32_nat_router_extended

a simple ESP32 NAT Router with some additional features
312 stars 60 forks source link

ESP32-S2 slow transfer #129

Open piotr-go opened 4 months ago

piotr-go commented 4 months ago

Hi I have 19Mb/s transfer speed on ESP32 and ESP32-C6 but only 4Mb/s on ESP32-S2. I suspect not enough RAM may be a problem. Can you enable PSRAM support for S2 ?

Soft: 7.1.1 Board: https://www.wemos.cc/en/latest/s2/s2_mini.html

Thank You

dchristl commented 3 months ago

Hello,

unfortunately I can't do that. I try to keep the code base as general as possible and ignore specifics for individual devices.
Sorry, it's not worth it and it's also extremely time consuming to support several devices and configurations when you can simply buy another (fully supported) chip for €3. I hope you understand that.

Kind Regards, Danny

piotr-go commented 3 months ago

From what I remember, you can set autodetection of PSRAM in the config.

I-hate-2FA commented 3 months ago

Can you tell me why my esp32 c6 can only do 2mbps, is there any setting that need to be adjusted, and it's only wifi 4, no wifi 6

piotr-go commented 3 months ago

My ESP32-C6 module: ESP32-C6-WROOM-1-N8 From: https://pl.aliexpress.com/item/1005006271962503.html I only set ssid and password.

My AP: MikroTik RB952Ui-5ac2nD

I-hate-2FA commented 3 months ago

source router is wifi6 and can do 100m my module is ESP32-C6-WROOM-1-N4

I-hate-2FA commented 3 months ago

do your register as wifi6 ap to client?

piotr-go commented 3 months ago

Unfortunately my AP is only Wi-Fi 4. I don't have Wi-Fi 6 AP to test.

I-hate-2FA commented 3 months ago

do your phone see repeater as wifi4 or wifi6

piotr-go commented 3 months ago

Phone also wi-fi 4, but i have wi-fi 6 (RTL8852BE) in my PC.

sudo iw wlp40s0 link Connected to xx:xx:xx:xx:xx:xx (on wlp40s0) SSID: xxx freq: 2452.0 RX: 2785081 bytes (6118 packets) TX: 271165 bytes (1652 packets) signal: -29 dBm rx bitrate: 27.0 MBit/s MCS 1 40MHz tx bitrate: 150.0 MBit/s MCS 7 40MHz short GI bss flags: short-preamble short-slot-time dtim period: 2 beacon int: 100

And after reset to defaults:

sudo iw wlp40s0 link Connected to xx:xx:xx:xx:xx:xx (on wlp40s0) SSID: ESP32_NAT_Router freq: 2412.0 RX: 82735 bytes (832 packets) TX: 20019 bytes (131 packets) signal: -55 dBm rx bitrate: 135.0 MBit/s MCS 7 40MHz tx bitrate: 135.0 MBit/s MCS 7 40MHz bss flags: short-preamble short-slot-time dtim period: 2 beacon int: 100