Requirements for ESP-NOW version 2.0?

robiwan
Posts: 46
Joined: Sat Dec 07, 2024 11:36 am

Requirements for ESP-NOW version 2.0?

Postby robiwan » Sat Jan 04, 2025 7:57 pm

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 ??

robiwan
Posts: 46
Joined: Sat Dec 07, 2024 11:36 am

Re: Requirements for ESP-NOW version 2.0?

Postby robiwan » Sat Jan 04, 2025 9:12 pm

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?

robiwan
Posts: 46
Joined: Sat Dec 07, 2024 11:36 am

Re: Requirements for ESP-NOW version 2.0?

Postby robiwan » Sat Jan 04, 2025 9:28 pm

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.

FerriteGiantESP
Posts: 1
Joined: Fri Apr 04, 2025 4:07 pm

Re: Requirements for ESP-NOW version 2.0?

Postby FerriteGiantESP » Fri Apr 04, 2025 4:14 pm

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?

robiwan
Posts: 46
Joined: Sat Dec 07, 2024 11:36 am

Re: Requirements for ESP-NOW version 2.0?

Postby robiwan » Sat Apr 05, 2025 8:49 am

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.

Bugzee
Posts: 2
Joined: Fri Apr 04, 2025 5:23 am

Re: Requirements for ESP-NOW version 2.0?

Postby Bugzee » Sun Apr 06, 2025 3:33 am

So you are just calling esp_now_send() with a larger payload?

robiwan
Posts: 46
Joined: Sat Dec 07, 2024 11:36 am

Re: Requirements for ESP-NOW version 2.0?

Postby robiwan » Sun Apr 06, 2025 3:01 pm

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.

nopnop2002
Posts: 347
Joined: Thu Oct 03, 2019 10:52 pm
Contact:

Re: Requirements for ESP-NOW version 2.0?

Postby nopnop2002 » Tue Apr 08, 2025 11:42 am

In ESPNOW V2, CONFIG_ESPNOW_SEND_LEN has a maximum of 1470.

https://github.com/espressif/esp-idf/bl ... C5-L353C46

Who is online

Users browsing this forum: Applebot and 5 guests