OK making little progress.
Receiver can receive espnow messages in AP mode.
But I can't get sender module to send/transmit messages in AP mode. It needs to be in AP mode + STA and STA must be connected to active working AP (like home wifi router). It works with problems as described before if connected to Fake AP.
can you please try communicating between 2 modules without connecting to home central wifi router. Both modules in AP mode.
I need to be able to use modules to communicate using espnow in a stand alone mode. NO connections to other active Access Points (AP).
I think it can work in AP+STA mode but only if STA is active and NOT connected and not trying to connect to real or fake AP?
ESPNOW Unstable in AP+STA mixed mode
Re: ESPNOW Unstable in AP+STA mixed mode
Please make sure to do hard reset of modules after changing AP and STA modes.
- cicciocb
- Site Admin
- Posts: 2060
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 439 times
- Been thanked: 1358 times
- Contact:
- cicciocb
- Site Admin
- Posts: 2060
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 439 times
- Been thanked: 1358 times
- Contact:
- cicciocb
- Site Admin
- Posts: 2060
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 439 times
- Been thanked: 1358 times
- Contact:
Re: ESPNOW Unstable in AP+STA mixed mode
OK, I fixed the ESPNOW, it is now working properly.
I just re-uploaded the 1.52.8 with the fix inside, I also updated the change log to track the modification.
In fact the messages were always sent to the (internal) STA interface so, when the module was in AP mode, the messages were sent to the wrong interface.
Now the selection is automatic or can be forced manually using 2 extra parameters (see below):
I just re-uploaded the 1.52.8 with the fix inside, I also updated the change log to track the modification.
In fact the messages were always sent to the (internal) STA interface so, when the module was in AP mode, the messages were sent to the wrong interface.
Now the selection is automatic or can be forced manually using 2 extra parameters (see below):
Code: [Local Link Removed for Guests]
Annex32 Change Log
Version 1.52.8
- Fixed the IP address in the config page not working for the AP mode
- Updated the AsyncTCP library to the mathieucarbou v3.0.2
- Fixed the ESPNOW not working properly in AP MODE
- Implemented 2 extra optional parameters on the function ESPNOW.ADD_PEER
- ESPNOW.ADD_PEER(MAX_addr$ [,interface] [,channel])
where interface is 0 = AUTO (default), 1=STA, 2=AP
and channel is any valid channel numbers or 0 = current channel (default)
Re: ESPNOW Unstable in AP+STA mixed mode
Thank You Francesco.
You are a Legend.
Much appreciated.
Enjoy more beer money.
You are a Legend.
Much appreciated.
Enjoy more beer money.
Re: ESPNOW Unstable in AP+STA mixed mode
Have started testing with new firmware containing fix for EspNow as per Cicciocb post above.
Two standard Esp32 modules, both set in AP mode in Config settings.
One using sender Basic example code and another as receiver.
Everything looks and is performing as expected.
Once again Thank You Francesco.
Two standard Esp32 modules, both set in AP mode in Config settings.
One using sender Basic example code and another as receiver.
Everything looks and is performing as expected.
Once again Thank You Francesco.
- cicciocb
- Site Admin
- Posts: 2060
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 439 times
- Been thanked: 1358 times
- Contact:
Re: ESPNOW Unstable in AP+STA mixed mode
Hi Tony_A, thanks for your feedback and your support.
I'm happy that this works for you and I think is a big benefit for the whole community.
I'm happy that this works for you and I think is a big benefit for the whole community.