espressif / esp-now

A connectionless Wi-Fi communication protocol
Apache License 2.0
486 stars 91 forks source link

ESP long range mode persists on flash, erase, and reset!!! (AEGHB-34) #37

Closed zachtos closed 1 year ago

zachtos commented 2 years ago

I spent 2 weeks struggling to figure out that ESP32 if you turn on long range mode, it will break your wifi, even after your erase the chip and put new firmware on that is not in long range mode. It will persist on power cycle, I feel this is NOT OBVIOUS!!!! it needs to be addressed in the manual or fixed.

WiFi.mode(WIFI_STA);
esp_wifi_set_protocol( WIFI_IF_STA, WIFI_PROTOCOL_LR ); //this will double range but half packet rate

and to fix the problem, even after turn off/on, before you attempt to use wifi again, you MUST do this

WiFi.disconnect(true); //required to change modes
WiFi.mode(WIFI_STA);
esp_wifi_set_protocol(WIFI_IF_STA, WIFI_PROTOCOL_11B | WIFI_PROTOCOL_11G | WIFI_PROTOCOL_11N);
LaserTagMods commented 2 years ago

Have had this same issue, did not find a solution online to this and the above was also necessary to fix the issue. Almost tossed a couple of units due to this problem thinking they burned up till the same though from above came to mind to change out the protocol manually in my code on the off chance the chip had some burned in settings.

please update the manual to prevent others from having the same issue.

thanks!

LJYSP commented 2 years ago

@zachtos @LaserTagMods Please test with IDF espnow example and enable ESPNOW_ENABLE_LONG_RANGE, idf.py menuconfig-> Example Configuration ->Enable Long Range ->y.

lhespress commented 1 year ago

@zachtos @LaserTagMods Any update about this?

lhespress commented 1 year ago

@zachtos Closing this issue since there has been no update on this. Please feel free to reopen if required.

fritzlb commented 11 months ago

Thank you so much for this info! I couldn’t figure out why suddenly my WiFi stopped working after testing esp-now, but this solves it.