Page 1 of 1

ATOM Lite Wifi Disconnect on specific versions

Posted: Mon Aug 10, 2020 3:38 pm
by touro1981
Hello,

I need some help with ESP-IDF in a Atom Lite. I have two version of Atom Lite and one of Stick C.

One version of Atom Lite has a label with the text "Adding Model-ATOM-2" with FCC details, the other version has a label with text "NOTE".

See Photo: https://pasteboard.co/JlJHMAW.jpg

My program, designed with ESP-IDF, works perfect in Atom Lite with label "Adding Model-ATOM-2" and "ESP32 DevKit-C" but when I use the Atom Lite with label "NOTE" or Stick C, the wifi disconnects when registering with AP. Sometimes I can get a stable connection, but after many many tries and time.


==== DETAILS ====
ESP-IDF - version: release/v4.0 - commit: 26d7fb774488adaa95253f278b5e62623cefab90
Xtensa - version: esp-2020r2-8.2.0

==== LOG ====
  1. I (19078) wifi:state: run -> init (2a0)
  2. I (19078) wifi:new:<13,0>, old:<13,2>, ap:<255,255>, sta:<13,2>, prof:1
  3. I (19078) wifi:new:<13,0>, old:<13,0>, ap:<255,255>, sta:<13,2>, prof:1
  4. D (19078) system_event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:WIFI, ssid_len:4, bssid:70:2e:01:e1:a9:16, reason:15 (4-way keying handshake timeout)
  5. D (19098) event: running post WIFI_EVENT:5 with handler 0x400dd3e0 on loop 0x3ffbed64
  6. 0x400dd3e0: handle_sta_disconnected at /esp-idf/components/tcpip_adapter/event_handlers.c:195
  7.  
  8. D (19108) tcpip_adapter: if0 start ip lost tmr: enter
  9. D (19108) tcpip_adapter: if0 start ip lost tmr: no need start because netif=0x3ffc6ca4 interval=120 ip=0
  10. D (19118) event: running post WIFI_EVENT:5 with handler 0x400d48cc on loop 0x3ffbed64
  11. 0x400d48cc: event_handler at /getting_started/station/build/../main/station_example_main.c:46
  12.  
  13. I (19128) wifi station: retry to connect to the AP
  14. I (19128) wifi station: connect to the AP fail
  15. D (21178) system_event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:WIFI, ssid_len:7, bssid:00:00:00:00:00:00, reason:205 (other reason)
  16. D (21178) event: running post WIFI_EVENT:5 with handler 0x400dd3e0 on loop 0x3ffbed64
  17. 0x400dd3e0: handle_sta_disconnected at /esp-idf/components/tcpip_adapter/event_handlers.c:195
  18.  
  19. D (21188) tcpip_adapter: if0 start ip lost tmr: enter
  20. D (21188) tcpip_adapter: if0 start ip lost tmr: no need start because netif=0x3ffc6ca4 interval=120 ip=0
  21. D (21198) event: running post WIFI_EVENT:5 with handler 0x400d48cc on loop 0x3ffbed64
  22. 0x400d48cc: event_handler at /getting_started/station/build/../main/station_example_main.c:46
  23.  
  24. I (21208) wifi station: retry to connect to the AP
  25. I (21218) wifi station: connect to the AP fail
  26. I (21568) wifi:new:<13,2>, old:<13,0>, ap:<255,255>, sta:<13,2>, prof:1
  27. I (21568) wifi:state: init -> auth (b0)
  28. I (21598) wifi:state: auth -> assoc (0)
  29. I (22598) wifi:state: assoc -> init (400)
  30. I (22598) wifi:new:<13,0>, old:<13,2>, ap:<255,255>, sta:<13,2>, prof:1
  31. D (22598) system_event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:WIFI, ssid_len:4, bssid:70:2e:01:e1:a9:16, reason:4 (assoc expire)
  32. D (22608) event: running post WIFI_EVENT:5 with handler 0x400dd3e0 on loop 0x3ffbed64
  33. 0x400dd3e0: handle_sta_disconnected at /esp-idf/components/tcpip_adapter/event_handlers.c:195
  34.  
  35. D (22618) tcpip_adapter: if0 start ip lost tmr: enter
  36. D (22618) tcpip_adapter: if0 start ip lost tmr: no need start because netif=0x3ffc6ca4 interval=120 ip=0
  37. D (22628) event: running post WIFI_EVENT:5 with handler 0x400d48cc on loop 0x3ffbed64
  38. 0x400d48cc: event_handler at /getting_started/station/build/../main/station_example_main.c:46
  39.  
  40. I (22638) wifi station: retry to connect to the AP
  41. I (22638) wifi station: connect to the AP fail
  42. D (24688) system_event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:WIFi, ssid_len:4, bssid:00:00:00:00:00:00, reason:205 (other reason)
  43. D (24688) event: running post WIFI_EVENT:5 with handler 0x400dd3e0 on loop 0x3ffbed64
  44. 0x400dd3e0: handle_sta_disconnected at /esp-idf/components/tcpip_adapter/event_handlers.c:195
  45.  
  46. D (24698) tcpip_adapter: if0 start ip lost tmr: enter
  47. D (24698) tcpip_adapter: if0 start ip lost tmr: no need start because netif=0x3ffc6ca4 interval=120 ip=0
  48. D (24708) event: running post WIFI_EVENT:5 with handler 0x400d48cc on loop 0x3ffbed64
  49. 0x400d48cc: event_handler at /getting_started/station/build/../main/station_example_main.c:46
  50. ...
Do you have any ideas to try to solve this issue?

Thanks & Regards,
Ricardo.

Re: ATOM Lite Wifi Disconnect on specific versions

Posted: Mon Aug 10, 2020 3:52 pm
by touro1981
To avoid possible conflicts with my app, I tested with Wifi Examples from ESP-IDF repo:
https://github.com/espressif/esp-idf/bl ... ple_main.c

Sorry for this missing point.