espressif / esp-hosted

Hosted Solution (Linux/MCU) with ESP32 (Wi-Fi + BT + BLE)
Other
705 stars 167 forks source link

Very low transfer speed for ESP32-C6 with ESP_HOSTED_FG #493

Open MarsTechHAN opened 1 month ago

MarsTechHAN commented 1 month ago

Checklist

How often does this bug occurs?

always

Expected behavior

I am currently set the ESP32-C6 to SDIO mode with low SDIO frequency (20Mhz), the module is an official ESP32-C6-MINI1 on a custom board with a Linux host. The kernel version of the linux is too old to use the ESP_HOSTED_NG.

Actual behavior (suspected bug)

We are happly about everything ESP_HOSTED_FG provided, but the transfer speed is very slow. We were expecting something aroung 10Mbps, but it only runs to ~2Mhz unidirectional, no matter TCP or UDP, send or receive.

esp32-c6 startup:

image

wifi signal strength:

image

iperf result:

image

Error logs or terminal output

No response

Steps to reproduce the behavior

Build with main branch and IDF. Commit: ce00ca53189ffd52455dd5426d54f9be6fae1871

Project release version

FG-0.0.6.0.0

System architecture

other (details in Additional context)

Operating system

Linux

Operating system version

Cortex-A7, Custom rootfs and kernel, Linux Kernel 3.10.0

Shell

Bash

Additional context

ESP_IDF Config: https://gist.github.com/MarsTechHAN/e47461dd75386a06eedb0de12c2c6251

mantriyogesh commented 1 month ago

Hello @MarsTechHAN ,

The transport layer for FG and NG are similar. So as you get FG working, it would be better to get sdio optimization.

Can you please click a photo of your setup?

Also, what is bare transport throughout you get in either direction?