Esp-Now throughput

Javier
Posts: 4
Joined: Thu Aug 08, 2019 1:17 pm

Esp-Now throughput

Postby Javier » Mon Oct 21, 2019 9:13 pm

I'm trying to achieve a continuous (and reliable) transmision at 768kbp with Esp-Now, but I cannot get any more than 512kbps.
1) Is this an intrinsic limitation of the protocol?
2) Is there any way to increase the throughput?
ESP_NOW_MAX_DATA_LEN is set to 250 in esp_now.h, and changing this value doesn't seems to make any effect.
3) Is there any way to increase the packet size?

I will apreciate any pointer into the right direction.
Many thanks!

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Esp-Now throughput

Postby WiFive » Tue Oct 22, 2019 2:30 am


Javier
Posts: 4
Joined: Thu Aug 08, 2019 1:17 pm

Re: Esp-Now throughput

Postby Javier » Tue Oct 22, 2019 7:53 pm

Excellent! Thank you for the data!

zhangyanjiao
Posts: 34
Joined: Mon Aug 28, 2017 3:27 am

Re: Esp-Now throughput

Postby zhangyanjiao » Fri Nov 22, 2019 8:15 am

@Javier
The default ESP-NOW bit rate is 1 Mbps. You can use the workaround as @WiFive mentioned, call `esp_wifi_internal_set_fix_rate()` to set the reasonable rate.

liuzhifu
Posts: 39
Joined: Tue Dec 13, 2016 2:18 am

Re: Esp-Now throughput

Postby liuzhifu » Wed Apr 01, 2020 9:40 am

If you want to use esp_wifi_internal_set_fix_rate, please disable WiFi AMPDU TX by:

make menuconfig => components => Wi-Fi => Disable TX AMPDU.

Who is online

Users browsing this forum: Google [Bot] and 174 guests