I get back this thread because I have some problems related to "bcn_timout,ap_probe_send_start" of wifi.
From what I have understood is caused by unavailable RAM.
I have added a debug when wifi_event_handler reports a disconnection from router.
I print out the available heap (I used two function but the result is the same for both of them).
Code: Select all
I (2591815) wifi: bcn_timout,ap_probe_send_start
I (2594319) wifi: ap_probe_send over, resett wifi status to disassoc
I (2594319) wifi: state: run -> init (100)
I (2594320) wifi: pm stop, total sleep time: 1226295175 us / 2548155021 us
I (2594325) wifi: n:7 0, o:7 2, ap:255 255, sta:7 2, prof:1
D (2594331) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:Network-f8d111744bb5, ssid_len:20, bssid:f8:d1:11:74:4b:b5, reason:200
I (2594343) wifi: free Heap:9396,9396
I (2594451) wifi: n:7 2, o:7 0, ap:255 255, sta:7 2, prof:1
I (2594452) wifi: state: init -> auth (b0)
I (2594455) wifi: state: auth -> assoc (0)
I (2594461) wifi: state: assoc -> run (10)
I (2594473) wifi: connected with Network-f8d111744bb5, channel 7
I (2594473) wifi: pm start, type: 1
D (2594474) event: SYSTEM_EVENT_STA_CONNECTED, ssid:Network-f8d111744bb5, ssid_len:20, bssid:f8:d1:11:74:4b:b5, channel:7, authmode:3
20/09/18,10:39:11,WiFi disconnected: Network-f8d111744bb5
D (2598027) event: SYSTEM_EVENT_STA_GOT_IP, ip:10.0.0.13, mask:255.255.255.0, gw:10.0.0.1
I (2598028) event: sta ip: 10.0.0.13, mask: 255.255.255.0, gw: 10.0.0.1
20/09/18,10:39:15,WiFi connected: Network-f8d111744bb5
I (2724681) wifi: bcn_timout,ap_probe_send_start
I (2727184) wifi: ap_probe_send over, resett wifi status to disassoc
I (2727185) wifi: state: run -> init (100)
I (2727186) wifi: pm stop, total sleep time: 60230941 us / 132751135 us
I (2727190) wifi: n:7 0, o:7 2, ap:255 255, sta:7 2, prof:1
D (2727197) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:Network-f8d111744bb5, ssid_len:20, bssid:f8:d1:11:74:4b:b5, reason:200
I (2727208) wifi: free Heap:8880,8880
I (2727330) wifi: n:7 2, o:7 0, ap:255 255, sta:7 2, prof:1
I (2727332) wifi: state: init -> auth (b0)
I (2727335) wifi: state: auth -> assoc (0)
I (2727340) wifi: state: assoc -> run (10)
I (2727355) wifi: connected with Network-f8d111744bb5, channel 7
I (2727356) wifi: pm start, type: 1
D (2727356) event: SYSTEM_EVENT_STA_CONNECTED, ssid:Network-f8d111744bb5, ssid_len:20, bssid:f8:d1:11:74:4b:b5, channel:7, authmode:3
20/09/18,10:41:24,WiFi disconnected: Network-f8d111744bb5
D (2731030) event: SYSTEM_EVENT_STA_GOT_IP, ip:10.0.0.13, mask:255.255.255.0, gw:10.0.0.1
I (2731031) event: sta ip: 10.0.0.13, mask: 255.255.255.0, gw: 10.0.0.1
20/09/18,10:41:28,WiFi connected: Network-f8d111744bb5
I (2738086) wifi: bcn_timout,ap_probe_send_start
I (2740589) wifi: ap_probe_send over, resett wifi status to disassoc
I (2740589) wifi: state: run -> init (100)
I (2740590) wifi: pm stop, total sleep time: 2120249 us / 13235152 us
I (2740594) wifi: n:7 0, o:7 2, ap:255 255, sta:7 2, prof:1
D (2740601) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:Network-f8d111744bb5, ssid_len:20, bssid:f8:d1:11:74:4b:b5, reason:200
I (2740612) wifi: free Heap:8880,8880
I (2740721) wifi: n:7 2, o:7 0, ap:255 255, sta:7 2, prof:1
I (2740723) wifi: state: init -> auth (b0)
I (2740726) wifi: state: auth -> assoc (0)
I (2740731) wifi: state: assoc -> run (10)
I (2740743) wifi: connected with Network-f8d111744bb5, channel 7
I (2740744) wifi: pm start, type: 1
D (2740745) event: SYSTEM_EVENT_STA_CONNECTED, ssid:Network-f8d111744bb5, ssid_len:20, bssid:f8:d1:11:74:4b:b5, channel:7, authmode:3
20/09/18,10:41:37,WiFi disconnected: Network-f8d111744bb5
D (2744534) event: SYSTEM_EVENT_STA_GOT_IP, ip:10.0.0.13, mask:255.255.255.0, gw:10.0.0.1
I (2744535) event: sta ip: 10.0.0.13, mask: 255.255.255.0, gw: 10.0.0.1
20/09/18,10:41:41,WiFi connected: Network-f8d111744bb5
I (3374020) wifi: bcn_timout,ap_probe_send_start
I (3376523) wifi: ap_probe_send over, resett wifi status to disassoc
I (3376524) wifi: state: run -> init (100)
I (3376524) wifi: pm stop, total sleep time: 307966061 us / 636075279 us
I (3376529) wifi: n:7 0, o:7 2, ap:255 255, sta:7 2, prof:1
D (3376536) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:Network-f8d111744bb5, ssid_len:20, bssid:f8:d1:11:74:4b:b5, reason:200
I (3376547) wifi: free Heap:4904,4904
I (3376660) wifi: n:7 2, o:7 0, ap:255 255, sta:7 2, prof:1
I (3376662) wifi: state: init -> auth (b0)
I (3376665) wifi: state: auth -> assoc (0)
I (3376672) wifi: state: assoc -> run (10)
I (3376684) wifi: connected with Network-f8d111744bb5, channel 7
I (3376685) wifi: pm start, type: 1
D (3376686) event: SYSTEM_EVENT_STA_CONNECTED, ssid:Network-f8d111744bb5, ssid_len:20, bssid:f8:d1:11:74:4b:b5, channel:7, authmode:3
20/09/18,10:52:13,WiFi disconnected: Network-f8d111744bb5
D (3380538) event: SYSTEM_EVENT_STA_GOT_IP, ip:10.0.0.13, mask:255.255.255.0, gw:10.0.0.1
I (3380539) event: sta ip: 10.0.0.13, mask: 255.255.255.0, gw: 10.0.0.1
20/09/18,10:52:18,WiFi connected: Network-f8d111744bb5
I (3387011) wifi: bcn_timout,ap_probe_send_start
I (3389514) wifi: ap_probe_send over, resett wifi status to disassoc
I (3389515) wifi: state: run -> init (100)
I (3389516) wifi: pm stop, total sleep time: 1949685 us / 12830407 us
I (3389520) wifi: n:7 0, o:7 2, ap:255 255, sta:7 2, prof:1
D (3389526) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:Network-f8d111744bb5, ssid_len:20, bssid:f8:d1:11:74:4b:b5, reason:200
I (3389537) wifi: free Heap:5168,5168
I (3389645) wifi: n:7 2, o:7 0, ap:255 255, sta:7 2, prof:1
I (3389647) wifi: state: init -> auth (b0)
I (3389650) wifi: state: auth -> assoc (0)
I (3389655) wifi: state: assoc -> run (10)
I (3389667) wifi: connected with Network-f8d111744bb5, channel 7
I (3389668) wifi: pm start, type: 1
D (3389669) event: SYSTEM_EVENT_STA_CONNECTED, ssid:Network-f8d111744bb5, ssid_len:20, bssid:f8:d1:11:74:4b:b5, channel:7, authmode:3
20/09/18,10:52:27,WiFi disconnected: Network-f8d111744bb5
D (3393040) event: SYSTEM_EVENT_STA_GOT_IP, ip:10.0.0.13, mask:255.255.255.0, gw:10.0.0.1
I (3393041) event: sta ip: 10.0.0.13, mask: 255.255.255.0, gw: 10.0.0.1
20/09/18,10:52:30,WiFi connected: Network-f8d111744bb5
I (3399488) wifi: bcn_timout,ap_probe_send_start
I (3401991) wifi: ap_probe_send over, resett wifi status to disassoc
I (3401992) wifi: state: run -> init (100)
I (3401993) wifi: pm stop, total sleep time: 1568556 us / 12328699 us
I (3401997) wifi: n:7 0, o:7 2, ap:255 255, sta:7 2, prof:1
D (3402003) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:Network-f8d111744bb5, ssid_len:20, bssid:f8:d1:11:74:4b:b5, reason:200
I (3402015) wifi: free Heap:5100,5100
I (3402138) wifi: n:7 2, o:7 0, ap:255 255, sta:7 2, prof:1
I (3402140) wifi: state: init -> auth (b0)
I (3402143) wifi: state: auth -> assoc (0)
I (3402148) wifi: state: assoc -> run (10)
I (3402166) wifi: connected with Network-f8d111744bb5, channel 7
I (3402167) wifi: pm start, type: 1
D (3402168) event: SYSTEM_EVENT_STA_CONNECTED, ssid:Network-f8d111744bb5, ssid_len:20, bssid:f8:d1:11:74:4b:b5, channel:7, authmode:3
20/09/18,10:52:39,WiFi disconnected: Network-f8d111744bb5
D (3406043) event: SYSTEM_EVENT_STA_GOT_IP, ip:10.0.0.13, mask:255.255.255.0, gw:10.0.0.1
I (3406043) event: sta ip: 10.0.0.13, mask: 255.255.255.0, gw: 10.0.0.1
20/09/18,10:52:43,WiFi connected: Network-f8d111744bb5
I (3412479) wifi: bcn_timout,ap_probe_send_start
I (3414982) wifi: ap_probe_send over, resett wifi status to disassoc
I (3414983) wifi: state: run -> init (100)
I (3414984) wifi: pm stop, total sleep time: 1824874 us / 12826577 us
I (3414988) wifi: n:7 0, o:7 2, ap:255 255, sta:7 2, prof:1
D (3414994) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:Network-f8d111744bb5, ssid_len:20, bssid:f8:d1:11:74:4b:b5, reason:200
I (3415005) wifi: free Heap:5036,5036
I (3415115) wifi: n:7 2, o:7 0, ap:255 255, sta:7 2, prof:1
I (3415117) wifi: state: init -> auth (b0)
20/09/18,10:52:52,WiFi disconnected: Network-f8d111744bb5
I (3415371) wifi: state: auth -> assoc (0)
I (3415377) wifi: state: assoc -> run (10)
I (3422400) wifi: bcn_timout,ap_probe_send_start
I (3424891) wifi: ap_probe_send over, resett wifi status to disassoc
I (3424891) wifi: state: run -> init (100)
I (3424892) wifi: n:7 0, o:7 2, ap:255 255, sta:7 2, prof:1
D (3424897) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:Network-f8d111744bb5, ssid_len:20, bssid:f8:d1:11:74:4b:b5, reason:200
I (3424907) wifi: free Heap:5016,5016
D (3427312) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:Network-f8d111744bb5, ssid_len:20, bssid:00:00:00:00:00:00, reason:201
I (3427313) wifi: free Heap:5064,5064
I (3427437) wifi: n:7 2, o:7 0, ap:255 255, sta:7 2, prof:1
I (3427439) wifi: state: init -> auth (b0)
I (3427442) wifi: state: auth -> assoc (0)
I (3427447) wifi: state: assoc -> run (10)
I (3427459) wifi: connected with Network-f8d111744bb5, channel 7
I (3427460) wifi: pm start, type: 1
D (3427460) event: SYSTEM_EVENT_STA_CONNECTED, ssid:Network-f8d111744bb5, ssid_len:20, bssid:f8:d1:11:74:4b:b5, channel:7, authmode:3
D (3431044) event: SYSTEM_EVENT_STA_GOT_IP, ip:10.0.0.13, mask:255.255.255.0, gw:10.0.0.1
I (3431045) event: sta ip: 10.0.0.13, mask: 255.255.255.0, gw: 10.0.0.1
20/09/18,10:53:08,WiFi connected: Network-f8d111744bb5
I (3437627) wifi: bcn_timout,ap_probe_send_start
I (3440130) wifi: ap_probe_send over, resett wifi status to disassoc
I (3440130) wifi: state: run -> init (100)
I (3440131) wifi: pm stop, total sleep time: 1743335 us / 12678126 us
I (3440135) wifi: n:7 0, o:7 2, ap:255 255, sta:7 2, prof:1
D (3440142) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:Network-f8d111744bb5, ssid_len:20, bssid:f8:d1:11:74:4b:b5, reason:200
I (3440153) wifi: free Heap:4628,4628
I (3440276) wifi: n:7 2, o:7 0, ap:255 255, sta:7 2, prof:1
I (3440278) wifi: state: init -> auth (b0)
I (3440281) wifi: state: auth -> assoc (0)
I (3440286) wifi: state: assoc -> run (10)
I (3440298) wifi: connected with Network-f8d111744bb5, channel 7
I (3440299) wifi: pm start, type: 1
D (3440300) event: SYSTEM_EVENT_STA_CONNECTED, ssid:Network-f8d111744bb5, ssid_len:20, bssid:f8:d1:11:74:4b:b5, channel:7, authmode:3
20/09/18,10:53:17,WiFi disconnected: Network-f8d111744bb5
I (3449274) wifi: bcn_timout,ap_probe_send_start
I (3451777) wifi: ap_probe_send over, resett wifi status to disassoc
I (3451778) wifi: state: run -> init (100)
I (3451778) wifi: pm stop, total sleep time: 1354519 us / 11479296 us
I (3451783) wifi: n:7 0, o:7 2, ap:255 255, sta:7 2, prof:1
D (3451789) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:Network-f8d111744bb5, ssid_len:20, bssid:f8:d1:11:74:4b:b5, reason:200
I (3451800) wifi: free Heap:4656,4656
I (3451924) wifi: n:7 2, o:7 0, ap:255 255, sta:7 2, prof:1
I (3451926) wifi: state: init -> auth (b0)
I (3451928) wifi: state: auth -> assoc (0)
I (3451934) wifi: state: assoc -> run (10)
I (3451946) wifi: connected with Network-f8d111744bb5, channel 7
I (3451946) wifi: pm start, type: 1
D (3451947) event: SYSTEM_EVENT_STA_CONNECTED, ssid:Network-f8d111744bb5, ssid_len:20, bssid:f8:d1:11:74:4b:b5, channel:7, authmode:3
D (3455550) event: SYSTEM_EVENT_STA_GOT_IP, ip:10.0.0.13, mask:255.255.255.0, gw:10.0.0.1
I (3455551) event: sta ip: 10.0.0.13, mask: 255.255.255.0, gw: 10.0.0.1
20/09/18,10:53:33,WiFi connected: Network-f8d111744bb5
W (3513598) wifi: alloc eb len=24 type=3 fail, heap:576
W (3513598) wifi: m f null
I (3522978) wifi: bcn_timout,ap_probe_send_start
I (3525481) wifi: ap_probe_send over, resett wifi status to disassoc
I (3525481) wifi: state: run -> init (100)
I (3525482) wifi: pm stop, total sleep time: 28236878 us / 73560144 us
I (3525486) wifi: n:7 0, o:7 2, ap:255 255, sta:7 2, prof:1
D (3525493) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:Network-f8d111744bb5, ssid_len:20, bssid:f8:d1:11:74:4b:b5, reason:200
I (3525503) wifi: free Heap:2888,2888
20/09/18,10:54:43,WiFi disconnected: Network-f8d111744bb5
D (3527907) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:Network-f8d111744bb5, ssid_len:20, bssid:00:00:00:00:00:00, reason:201
I (3527909) wifi: free Heap:2888,2888
D (3530325) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:Network-f8d111744bb5, ssid_len:20, bssid:00:00:00:00:00:00, reason:201
I (3530326) wifi: free Heap:2888,2888
D (3532743) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:Network-f8d111744bb5, ssid_len:20, bssid:00:00:00:00:00:00, reason:201
I (3532744) wifi: free Heap:2888,2888
D (3535160) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:Network-f8d111744bb5, ssid_len:20, bssid:00:00:00:00:00:00, reason:201
I (3535161) wifi: free Heap:2888,2888
D (3537578) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:Network-f8d111744bb5, ssid_len:20, bssid:00:00:00:00:00:00, reason:201
I (3537579) wifi: free Heap:2888,2888
D (3537623) event: SYSTEM_EVENT_STA_STOP
I (3537624) wifi: flush txq
I (3537624) wifi: stop sw txq
I (3537625) wifi: lmac stop hw txq
abort() was called at PC 0x4015253d on core 0
Backtrace: 0x40095fac:0x3ffe9330 0x4009614f:0x3ffe9350 0x4015253d:0x3ffe9370 0x4015d8de:0x3ffe93a0 0x4015d97a:0x3ffe93d0 0x4015dc6a:0x3ffe9400 0x4015dde2:0x3ffe9430 0x4008d178:0x3ffe9450
Entering gdb stub now.
$T0b#e6
Why the free heap is getting lower and lower and device got stuck? I'm using esp-idf v3.1