Page 1 of 1

ESP NOW how improve distance transmission?

Posted: Sat Feb 10, 2024 9:15 pm
by gpezzella
Hi
After some test I have notice that distance transmission is not 1km as declared but about 200m.
There is some setting that I can do for mprove distance?

Thanks

Re: ESP NOW how improve distance transmission?

Posted: Sat Feb 10, 2024 10:53 pm
by lbernstone
I don't believe ESP-NOW claims any sort of range. You might get 200m in an open area.
Perhaps you mean LR (low rate) mode?

Re: ESP NOW how improve distance transmission?

Posted: Sun Feb 11, 2024 8:30 am
by gpezzella
From your link:

The Espressif-specific ESP-NOW protocol and Long Range mode, which supports up to 1 km of data traffic

Re: ESP NOW how improve distance transmission?

Posted: Sun Feb 11, 2024 12:07 pm
by lbernstone
Those are two different features. There should be another bullet point. Would you like the documentation fixed (along with the English language), or would you like to have long distance transmission?

Re: ESP NOW how improve distance transmission?

Posted: Sun Feb 11, 2024 12:34 pm
by gpezzella
Hi
I would improve if possible distance transmission
I'm use this example:
https://espressif-docs.readthedocs-host ... spnow.html

Can I activate LR MODE in that example?

Thanks

Re: ESP NOW how improve distance transmission?

Posted: Sun Feb 11, 2024 3:11 pm
by lbernstone
esp_now_init() is an opaque function hidden in the blob, but you may be able to copy this example with only the LR mode available.
Note that arduino does not have CONFIG_ESPNOW_ENABLE_LONG_RANGE set, so you would need to compile your own sdk.
If you just want to test the range, you can use this example. Make sure to call WiFi.enableLongRange(true) on both the AP and STA before calling WiFi.begin.

Re: ESP NOW how improve distance transmission?

Posted: Sun Feb 11, 2024 8:14 pm
by gpezzella
Hi
Recompile is too complicated...
I'm in searching in function for set power transmission or something similar to this.

Why LR is not enabled in Arduino???

Re: ESP NOW how improve distance transmission?

Posted: Sun Feb 11, 2024 9:52 pm
by lbernstone
You are almost certain to lose some packets on a long distance signal. TCP is resilient to packet loss. I'd go with that instead of having to write error routines myself.