I have an application with multiple ESP32's connected with ESPNOW to a master device that also connects to wifi. This all works great. I am now trying to add BLE functionality to the mix (for all devices).
In the wifi + espnow setup, esp_wifi_set_ps is set to WIFI_PS_NONE. When I remove this, most of the espnow transmissions get lost.
In the wifi + espnow + ble setup, I get 'Error! Should enable WiFi modem sleep when both WiFi and Bluetooth are enabled!!!!!!'.
Have not been able to find a definitive answer on whether these will work together but it doesn't look like it. Any input?
Will ESPNOW + WIFI + BLE work simultaneously
Re: Will ESPNOW + WIFI + BLE work simultaneously
Set wifi mode (esp_wifi_set_mode) to WIFI_MODE_APSTA from WIFI_MODE_STA. This resulted in the error going away and seems like espnow packet loss has gone away. So all 3 services are now running simultaneously.
Haven't looked at the ramifications of making this change yet.f
Haven't looked at the ramifications of making this change yet.f
Re: Will ESPNOW + WIFI + BLE work simultaneously
Hi there,rwel59 wrote: ↑Wed Sep 22, 2021 1:54 pmSet wifi mode (esp_wifi_set_mode) to WIFI_MODE_APSTA from WIFI_MODE_STA. This resulted in the error going away and seems like espnow packet loss has gone away. So all 3 services are now running simultaneously.
Haven't looked at the ramifications of making this change yet.f
I now it is an old topic, but I do have the same problem here...
Using ESP-IDF v4.4.1
"coexist: [1089473] Error! Should enable WiFi modem sleep when both WiFi and Bluetooth"
I have:
- mode set to WIFI_MODE_APSTA
- Bluetooth enabled
- ESPNOW: tried peer->ifidx = WIFI_IF_STA; and peer->ifidx = WIFI_IF_AP
I hope I can get some help here
Best regards from Germany!
Florian
Re: Will ESPNOW + WIFI + BLE work simultaneously
I also want to get answers
Re: Will ESPNOW + WIFI + BLE work simultaneously
Would you be willing to share a code snippled of your configuration, where the setup works?rwel59 wrote: ↑Wed Sep 22, 2021 1:54 pmSet wifi mode (esp_wifi_set_mode) to WIFI_MODE_APSTA from WIFI_MODE_STA. This resulted in the error going away and seems like espnow packet loss has gone away. So all 3 services are now running simultaneously.
Haven't looked at the ramifications of making this change yet.f
That would be super great
Re: Will ESPNOW + WIFI + BLE work simultaneously
Did no one else get this to work?
This is the last puzzle peace of my project
I really don't know what else to try.
This is the last puzzle peace of my project
I really don't know what else to try.
Re: Will ESPNOW + WIFI + BLE work simultaneously
I have found many tutorials online where they used both WIFI and ESP-NOW simultaneously with Arduino IDE. In this tutorial, they are receiving data from other esp devices over esp-now and sending to a web server with WiFi in STA mode. https://microcontrollerslab.com/esp32-e ... eb-server/
I create ESP32 tutorials and Projects using ESP-IDF https://esp32tutorials.com/
Re: Will ESPNOW + WIFI + BLE work simultaneously
Hi There,Momin786 wrote: ↑Wed Jul 13, 2022 5:39 amI have found many tutorials online where they used both WIFI and ESP-NOW simultaneously with Arduino IDE. In this tutorial, they are receiving data from other esp devices over esp-now and sending to a web server with WiFi in STA mode. https://microcontrollerslab.com/esp32-e ... eb-server/
thank you This is not a problem to make it work. the main problem is all three together. I sadly finally found this Dokument:
https://docs.espressif.com/projects/esp ... exist.html
where it says that ESPNOW is not compatible with BLE.....
The wired thing is that I am pretty sure that I did have that running together (BLE+ESPNOW).
Adding another ESP would be soo much more complex in many ways
Re: Will ESPNOW + WIFI + BLE work simultaneously
no it doesn't (it's a confusing table, but read the fine-print at the bottom) - it says espnow and ble and wifi (STA mode only) can all co-exist and are stable.where it says that ESPNOW is not compatible with BLE.....
Who is online
Users browsing this forum: MicroController and 172 guests