Page 1 of 1
Requirements for ESP-NOW version 2.0?
Posted: Sat Jan 04, 2025 7:57 pm
by robiwan
Using ESP-IDF v5.2.3 with an ESP32-S3 I have a working setup with ESP-NOW:
I (1638) ESPNOW_RECEIVER: Initializing ESP-NOW...
I (1648) ESPNOW: espnow [version: 1.0] init
so I can only send 250 bytes max per packet.
What is required to have access to ESP-NOW version 2.0 ??
Re: Requirements for ESP-NOW version 2.0?
Posted: Sat Jan 04, 2025 9:12 pm
by robiwan
Ok, using ESP-IDF v5.4 I can get:
I (1641) ESPNOW_RECEIVER: Initializing ESP-NOW...
I (1651) ESPNOW: espnow [version: 2.0] init
But I can't find a description of the packet structure for v2.0 ? The only thing hinting of more than 250 bytes here:
https://docs.espressif.com/projects/esp ... p_now.html
is the "More data" bit, just before version. But nothing about how the "More data" should be structured.
Help?
Re: Requirements for ESP-NOW version 2.0?
Posted: Sat Jan 04, 2025 9:28 pm
by robiwan
Oh, I get it now. For > 250 bytes, you set the "More data" bit and just add another "vendor-specific element frame" up to a maximum count of 6 such elements. Always, the last element has the "More data" bit set to zero.
Re: Requirements for ESP-NOW version 2.0?
Posted: Fri Apr 04, 2025 4:14 pm
by FerriteGiantESP
Did you get this fully working? Are you still calling esp_now_send() but with the new larger allowed length? Or are you having to manually construct the payload, or...?
Do you know, does this actually end up more efficiently transmitting large amounts of data?
Re: Requirements for ESP-NOW version 2.0?
Posted: Sat Apr 05, 2025 8:49 am
by robiwan
Yes, I got this working. Building on my own version of
https://github.com/thomasfla/Linux-ESPNOW, I did a test running with 1024 bytes per packet, and I could easily get 10+ Mbps (with 50+ Mbps WLAN connection).
The main limit for how fast you can transfer data will be the WLAN connection speed, ultimately.
Re: Requirements for ESP-NOW version 2.0?
Posted: Sun Apr 06, 2025 3:33 am
by Bugzee
So you are just calling esp_now_send() with a larger payload?
Re: Requirements for ESP-NOW version 2.0?
Posted: Sun Apr 06, 2025 3:01 pm
by robiwan
My particular project only uses ESP32 as a receiver, however, yes, with ESP-NOW 2.0, the payload in esp_now_send should accept up to 1490 bytes per the documentation. I think I need to go to ISP-IDF v5.4 for this, at least that is what I am using now.
Re: Requirements for ESP-NOW version 2.0?
Posted: Tue Apr 08, 2025 11:42 am
by nopnop2002
In ESPNOW V2, CONFIG_ESPNOW_SEND_LEN has a maximum of 1470.
https://github.com/espressif/esp-idf/bl ... C5-L353C46