ATOM Lite



  • 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 ====
    I (19078) wifi:state: run -> init (2a0)
    I (19078) wifi:new:<13,0>, old:<13,2>, ap:<255,255>, sta:<13,2>, prof:1
    I (19078) wifi:new:<13,0>, old:<13,0>, ap:<255,255>, sta:<13,2>, prof:1
    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)
    D (19098) event: running post WIFI_EVENT:5 with handler 0x400dd3e0 on loop 0x3ffbed64
    0x400dd3e0: handle_sta_disconnected at /esp-idf/components/tcpip_adapter/event_handlers.c:195

    D (19108) tcpip_adapter: if0 start ip lost tmr: enter
    D (19108) tcpip_adapter: if0 start ip lost tmr: no need start because netif=0x3ffc6ca4 interval=120 ip=0
    D (19118) event: running post WIFI_EVENT:5 with handler 0x400d48cc on loop 0x3ffbed64
    0x400d48cc: event_handler at /getting_started/station/build/../main/station_example_main.c:46

    I (19128) wifi station: retry to connect to the AP
    I (19128) wifi station: connect to the AP fail
    D (21178) system_event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:WIFI, ssid_len:7, bssid:00:00:00:00:00:00, reason:205 (other reason)
    D (21178) event: running post WIFI_EVENT:5 with handler 0x400dd3e0 on loop 0x3ffbed64
    0x400dd3e0: handle_sta_disconnected at /esp-idf/components/tcpip_adapter/event_handlers.c:195

    D (21188) tcpip_adapter: if0 start ip lost tmr: enter
    D (21188) tcpip_adapter: if0 start ip lost tmr: no need start because netif=0x3ffc6ca4 interval=120 ip=0
    D (21198) event: running post WIFI_EVENT:5 with handler 0x400d48cc on loop 0x3ffbed64
    0x400d48cc: event_handler at /getting_started/station/build/../main/station_example_main.c:46

    I (21208) wifi station: retry to connect to the AP
    I (21218) wifi station: connect to the AP fail
    I (21568) wifi:new:<13,2>, old:<13,0>, ap:<255,255>, sta:<13,2>, prof:1
    I (21568) wifi:state: init -> auth (b0)
    I (21598) wifi:state: auth -> assoc (0)
    I (22598) wifi:state: assoc -> init (400)
    I (22598) wifi:new:<13,0>, old:<13,2>, ap:<255,255>, sta:<13,2>, prof:1
    D (22598) system_event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:WIFI, ssid_len:4, bssid:70:2e:01:e1:a9:16, reason:4 (assoc expire)
    D (22608) event: running post WIFI_EVENT:5 with handler 0x400dd3e0 on loop 0x3ffbed64
    0x400dd3e0: handle_sta_disconnected at /esp-idf/components/tcpip_adapter/event_handlers.c:195

    D (22618) tcpip_adapter: if0 start ip lost tmr: enter
    D (22618) tcpip_adapter: if0 start ip lost tmr: no need start because netif=0x3ffc6ca4 interval=120 ip=0
    D (22628) event: running post WIFI_EVENT:5 with handler 0x400d48cc on loop 0x3ffbed64
    0x400d48cc: event_handler at /getting_started/station/build/../main/station_example_main.c:46

    I (22638) wifi station: retry to connect to the AP
    I (22638) wifi station: connect to the AP fail
    D (24688) system_event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:WIFi, ssid_len:4, bssid:00:00:00:00:00:00, reason:205 (other reason)
    D (24688) event: running post WIFI_EVENT:5 with handler 0x400dd3e0 on loop 0x3ffbed64
    0x400dd3e0: handle_sta_disconnected at /esp-idf/components/tcpip_adapter/event_handlers.c:195

    D (24698) tcpip_adapter: if0 start ip lost tmr: enter
    D (24698) tcpip_adapter: if0 start ip lost tmr: no need start because netif=0x3ffc6ca4 interval=120 ip=0
    D (24708) event: running post WIFI_EVENT:5 with handler 0x400d48cc on loop 0x3ffbed64
    0x400d48cc: event_handler at /getting_started/station/build/../main/station_example_main.c:46
    ...

    Do you have any ideas to try to solve this issue?

    Thanks & Regards,
    Ricardo.



  • To avoid possible conflicts with my app, I tested with Wifi Examples from ESP-IDF repo:
    https://github.com/espressif/esp-idf/blob/master/examples/wifi/getting_started/station/main/station_example_main.c

    Sorry for this missing point.