Hello Sir,
ESPNOW Sample Code: https://github.com/espressif/esp-idf/tr ... ifi/espnow
SmartConfig Sample Code: https://github.com/espressif/esp-idf/tr ... art_config
1. Converted ESP32 to station mode (ESPNOW broadcasting the data)
2. Now started SmartConfig process for sharing SSID and password to ESP32 via mobile app. (ESPNOW broadcasting the data)
3. Once the SmartConfig process is completed successfully and ESP32 is connected to the nearby router successfully after then ESPNOW stopped broadcasting the data.
While debugging the code, I got to know that the below condition is not satisfied and execution not going into the while loop.
https://github.com/espressif/esp-idf/bl ... ple_main.c
while (xQueueReceive(s_example_espnow_queue, &evt, portMAX_DELAY) == pdTRUE)
{
}
Please help as I invested lots of time in that.
Thanks
ESPNOW stopped working after ESP32 Connected to AP Successfully using SmartConfig Example
Re: ESPNOW stopped working after ESP32 Connected to AP Successfully using SmartConfig Example
WiFi channel will change to match the router so espnow channel will also changeOnce the SmartConfig process is completed successfully and ESP32 is connected to the nearby router successfully after then ESPNOW stopped broadcasting the data.
Re: ESPNOW stopped working after ESP32 Connected to AP Successfully using SmartConfig Example
Thank you very much for the reply. what channel should I set to start the espnow data?
I tried with below channels but its not working
peer->channel = 0;
peer->channel = 1;
peer->channel = 5;
below are the logs which I got from the terminal. could you pls help to check?
I (40835) wifi: station: ce:fc:8c:13:60:64 leave, AID = 1, bss_flags is 658547, bss:0x3ffba318
I (40835) wifi: new:<1,0>, old:<1,1>, ap:<1,1>, sta:<255,255>, prof:1
W (40835) wifi:<ba-del>idx
I (40835) header_file: station ce:fc:8c:13:60:64 leave, AID=1
E (40845) espnow_example: Error occurred during receiving: errno 113
I (40885) wifi:flush txq
I (40885) wifi:stop sw txq
I (40885) wifi:lmac stop hw txq
I (40885) wifi:Deinit lldesc rx mblock:10
I (41905) wifi:wifi driver task: 3ffb9d90, prio:23, stack:6656, core=0
I (41915) wifi:wifi firmware version: 7cb53e4
I (41915) wifi:wifi certification version: v7.0
I (41915) wifi:config NVS flash: enabled
I (41915) wifi:config nano formating: disabled
I (41925) wifi:Init data frame dynamic rx buffer num: 32
I (41925) wifi:Init management frame dynamic rx buffer num: 32
I (41935) wifi:Init management short buffer num: 32
I (41935) wifi:Init dynamic tx buffer num: 32
I (41945) wifi:Init static rx buffer size: 2212
I (41945) wifi:Init static rx buffer num: 10
I (41945) wifi:Init dynamic rx buffer num: 32
E (43525) espnow_example: TCP Server =>Error occurred during sending: errno 9
I (46135) wifi:ic_enable_sniffer
I (46145) smartconfig: Start to find channel...
I (46145) espnow_example: Scan done
I (68145) smartconfig: TYPE: ESPTOUCH
I (68145) smartconfig: T|AP MAC: d8:32:14:8e:0b:31
I (68145) smartconfig: Found channel on 5-1. Start to get ssid and password...
I (68145) espnow_example: Found channel
I (70805) smartconfig: T|pswd: kunjan@123
I (70805) smartconfig: T|ssid: AnandRaman
I (70805) smartconfig: T|bssid: d8:32:14:8e:0b:31
I (70805) wifi:ic_disable_sniffer
I (70805) espnow_example: Got SSID and password
I (70815) espnow_example: SSID:AnandRaman
I (70815) espnow_example: PASSWORD:kunjan@123
I (70835) wifi:new:<5,1>, old:<5,1>, ap:<255,255>, sta:<5,1>, prof:1
I (70835) wifi:state: init -> auth (b0)
I (70865) wifi:state: auth -> assoc (0)
I (70865) wifi:state: assoc -> run (10)
I (70885) wifi:connected with AnandRaman, aid = 8, channel 5, 40U, bssid = d8:32:14:8e:0b:31
I (70885) wifi:security: WPA2-PSK, phy: bgn, rssi: -60
I (70895) wifi:pm start, type: 1
I (70905) wifi:AP's beacon interval = 102400 us, DTIM period = 1
I (72005) ESPNOW: espnow [version: 1.0] init
Sir, pls reply with your possible answer. It will save my days...
I tried with below channels but its not working
peer->channel = 0;
peer->channel = 1;
peer->channel = 5;
below are the logs which I got from the terminal. could you pls help to check?
I (40835) wifi: station: ce:fc:8c:13:60:64 leave, AID = 1, bss_flags is 658547, bss:0x3ffba318
I (40835) wifi: new:<1,0>, old:<1,1>, ap:<1,1>, sta:<255,255>, prof:1
W (40835) wifi:<ba-del>idx
I (40835) header_file: station ce:fc:8c:13:60:64 leave, AID=1
E (40845) espnow_example: Error occurred during receiving: errno 113
I (40885) wifi:flush txq
I (40885) wifi:stop sw txq
I (40885) wifi:lmac stop hw txq
I (40885) wifi:Deinit lldesc rx mblock:10
I (41905) wifi:wifi driver task: 3ffb9d90, prio:23, stack:6656, core=0
I (41915) wifi:wifi firmware version: 7cb53e4
I (41915) wifi:wifi certification version: v7.0
I (41915) wifi:config NVS flash: enabled
I (41915) wifi:config nano formating: disabled
I (41925) wifi:Init data frame dynamic rx buffer num: 32
I (41925) wifi:Init management frame dynamic rx buffer num: 32
I (41935) wifi:Init management short buffer num: 32
I (41935) wifi:Init dynamic tx buffer num: 32
I (41945) wifi:Init static rx buffer size: 2212
I (41945) wifi:Init static rx buffer num: 10
I (41945) wifi:Init dynamic rx buffer num: 32
E (43525) espnow_example: TCP Server =>Error occurred during sending: errno 9
I (46135) wifi:ic_enable_sniffer
I (46145) smartconfig: Start to find channel...
I (46145) espnow_example: Scan done
I (68145) smartconfig: TYPE: ESPTOUCH
I (68145) smartconfig: T|AP MAC: d8:32:14:8e:0b:31
I (68145) smartconfig: Found channel on 5-1. Start to get ssid and password...
I (68145) espnow_example: Found channel
I (70805) smartconfig: T|pswd: kunjan@123
I (70805) smartconfig: T|ssid: AnandRaman
I (70805) smartconfig: T|bssid: d8:32:14:8e:0b:31
I (70805) wifi:ic_disable_sniffer
I (70805) espnow_example: Got SSID and password
I (70815) espnow_example: SSID:AnandRaman
I (70815) espnow_example: PASSWORD:kunjan@123
I (70835) wifi:new:<5,1>, old:<5,1>, ap:<255,255>, sta:<5,1>, prof:1
I (70835) wifi:state: init -> auth (b0)
I (70865) wifi:state: auth -> assoc (0)
I (70865) wifi:state: assoc -> run (10)
I (70885) wifi:connected with AnandRaman, aid = 8, channel 5, 40U, bssid = d8:32:14:8e:0b:31
I (70885) wifi:security: WPA2-PSK, phy: bgn, rssi: -60
I (70895) wifi:pm start, type: 1
I (70905) wifi:AP's beacon interval = 102400 us, DTIM period = 1
I (72005) ESPNOW: espnow [version: 1.0] init
Sir, pls reply with your possible answer. It will save my days...
Who is online
Users browsing this forum: Baidu [Spider], Google [Bot] and 207 guests