Closed Resultfactory closed 5 years ago
We ran the test again, now the same problem occurs after 10~ minutes, instead of the first two minutes. Also the amount of found advertisements drops from a average 6~ to 0 Any help would be appreciated.
I (548336) Wifi+BLE Crash: Last scan found 1 advertisements, Scan started event: 7
E (550336) BT: BTM_BleObserve Observe Already Active
E (550336) BT: bta_dm_ble_observe start observe failed. status=0x6
I (550336) Wifi+BLE Crash: Last scan found 11 advertisements, Scan started event: 7
E (550346) BT: btc_search_callback BLE observe complete. Num Resp 111
I (552346) Wifi+BLE Crash: Last scan found 1 advertisements, Scan started event: 7
E (554346) BT: BTM_BleObserve Observe Already Active
E (554346) BT: bta_dm_ble_observe start observe failed. status=0x6
I (554346) Wifi+BLE Crash: Last scan found 5 advertisements, Scan started event: 7
E (554356) BT: btc_search_callback BLE observe complete. Num Resp 112
I (556356) Wifi+BLE Crash: Last scan found 1 advertisements, Scan started event: 7
I (558296) wifi: bcn_timout,ap_probe_send_start
E (558356) BT: BTM_BleObserve Observe Already Active
E (558356) BT: bta_dm_ble_observe start observe failed. status=0x6
I (558356) Wifi+BLE Crash: Last scan found 0 advertisements, Scan started event: 7
E (558366) BT: btc_search_callback BLE observe complete. Num Resp 112
I (560366) Wifi+BLE Crash: Last scan found 1 advertisements, Scan started event: 7
I (560796) wifi: ap_probe_send over, resett wifi status to disassoc
I (560796) wifi: state: run -> init (1)
I (560796) wifi: n:4 0, o:4 0, ap:255 255, sta:4 0, prof:1
I (560806) wifi: pm stop, total sleep time: 0/545926861
0x40132464: tcpip_adapter_down_api at /BEASTv3/esp-idf/components/tcpip_adapter/./tcpip_adapter_lwip.c:801
D (560806) tcpip_adapter: check: local, if=0 fn=0x40132464
D (560816) tcpip_adapter: call api in lwip: ret=0x0, give sem
0x40132464: tcpip_adapter_down_api at /BEASTv3/esp-idf/components/tcpip_adapter/./tcpip_adapter_lwip.c:801
D (560816) tcpip_adapter: check: remote, if=0 fn=0x40132464
E (560826) Wifi+BLE Crash: Wifi Disconnected!
E (562366) BT: BTM_BleObserve Observe Already Active
E (562366) BT: bta_dm_ble_observe start observe failed. status=0x6
I (562366) Wifi+BLE Crash: Last scan found 0 advertisements, Scan started event: 7
E (562376) BT: btc_search_callback BLE observe complete. Num Resp 112
0x40132464: tcpip_adapter_down_api at /BEASTv3/esp-idf/components/tcpip_adapter/./tcpip_adapter_lwip.c:801
D (562506) tcpip_adapter: check: local, if=0 fn=0x40132464
D (562516) tcpip_adapter: call api in lwip: ret=0x0, give sem
0x40132464: tcpip_adapter_down_api at /BEASTv3/esp-idf/components/tcpip_adapter/./tcpip_adapter_lwip.c:801
D (562516) tcpip_adapter: check: remote, if=0 fn=0x40132464
E (562516) Wifi+BLE Crash: Wifi Disconnected!
0x40132464: tcpip_adapter_down_api at /BEASTv3/esp-idf/components/tcpip_adapter/./tcpip_adapter_lwip.c:801
D (564206) tcpip_adapter: check: local, if=0 fn=0x40132464
D (564206) tcpip_adapter: call api in lwip: ret=0x0, give sem
0x40132464: tcpip_adapter_down_api at /BEASTv3/esp-idf/components/tcpip_adapter/./tcpip_adapter_lwip.c:801
D (564206) tcpip_adapter: check: remote, if=0 fn=0x40132464
E (564216) Wifi+BLE Crash: Wifi Disconnected!
I (564376) Wifi+BLE Crash: Last scan found 1 advertisements, Scan started event: 7
0x40132464: tcpip_adapter_down_api at /BEASTv3/esp-idf/components/tcpip_adapter/./tcpip_adapter_lwip.c:801
D (565896) tcpip_adapter: check: local, if=0 fn=0x40132464
D (565896) tcpip_adapter: call api in lwip: ret=0x0, give sem
0x40132464: tcpip_adapter_down_api at /BEASTv3/esp-idf/components/tcpip_adapter/./tcpip_adapter_lwip.c:801
D (565896) tcpip_adapter: check: remote, if=0 fn=0x40132464
E (565906) Wifi+BLE Crash: Wifi Disconnected!
E (566376) BT: BTM_BleObserve Observe Already Active
E (566376) BT: bta_dm_ble_observe start observe failed. status=0x6
I (566376) Wifi+BLE Crash: Last scan found 0 advertisements, Scan started event: 7
E (566386) BT: btc_search_callback BLE observe complete. Num Resp 112
0x40132464: tcpip_adapter_down_api at /BEASTv3/esp-idf/components/tcpip_adapter/./tcpip_adapter_lwip.c:801
D (567596) tcpip_adapter: check: local, if=0 fn=0x40132464
D (567596) tcpip_adapter: call api in lwip: ret=0x0, give sem
0x40132464: tcpip_adapter_down_api at /BEASTv3/esp-idf/components/tcpip_adapter/./tcpip_adapter_lwip.c:801
D (567596) tcpip_adapter: check: remote, if=0 fn=0x40132464
E (567596) Wifi+BLE Crash: Wifi Disconnected!
I (568386) Wifi+BLE Crash: Last scan found 1 advertisements, Scan started event: 7
0x40132464: tcpip_adapter_down_api at /BEASTv3/esp-idf/components/tcpip_adapter/./tcpip_adapter_lwip.c:801
D (569286) tcpip_adapter: check: local, if=0 fn=0x40132464
We ran the test again with CONFIG_SW_COEXIST_ENABLE=y The results were very different from when we ran this test before with SW_COEXIST_ENABLE. We expected this to crash too. It has not crashed in 2 hours. This sdkconfig was used, in the test above the same SDKCONFIG was used except SW_COEXIST was disabled.
BLE scanner and Wifi work together for 12 hours, it is work fine....
@lixianyu There is a difference.
This is with CONFIG_SW_COEXIST_ENABLE=y
D (240742510) Wifi+BLE Crash: time 1499078352 I (240742510) Wifi+BLE Crash: Last scan found 1 advertisements, Scan started event: 7 E (240744510) BT: btc_search_callback BLE observe complete. Num Resp 0
D (240744510) Wifi+BLE Crash: time 1499078354 I (240744510) Wifi+BLE Crash: Last scan found 1 advertisements, Scan started event: 7 E (240746510) BT: btc_search_callback BLE observe complete. Num Resp 0
not many advertisements are found, very long uptime though. See last few 100 bytes of log
This is with CONFIG_SW_COEXIST_ENABLE disabled
D (2790109) Wifi+BLE Crash: time 1499095001 I (2792119) Wifi+BLE Crash: Last scan found 1 advertisements, Scan started event: 7 D (2792119) Wifi+BLE Crash: time 1499095003 E (2794119) BT: BTM_BleObserve Observe Already Active E (2794119) BT: bta_dm_ble_observe start observe failed. status=0x6
I (2794119) Wifi+BLE Crash: Last scan found 12 advertisements, Scan started event: 7 E (2794129) BT: btc_search_callback BLE observe complete. Num Resp 84
Wifi also goes into a disconnect loop after some time see full (Log) and (Source)
+1, identical behavior and symptoms
@Resultfactory Hi, sorry that get back to you soooooo late...... Has your issue been resolved already? Would you help share if any updates for the issue? Thanks.
We don't have any coexistence issues anymore
Thanks.
We have noticed frequent Wifi disconnects when using Bluetooth. The scan_interval and scan_window severely impacts the Wifi stability.
We are able to reproduce this problem on several devices (DOIT from aliexpress, Pycom LoPy and SiPy). If we reduce the values of scan_interval and scan_window to 0x10 the problem will occur within the first few minutes. This is part of the log when running with these settings:
When setting the values to 0x50, 0x30 respectively, this issue will occur less frequent (within hours).
We improved stability by setting the values to 0x100 and 0x30. But this is not what we want, we would like to reduce the scan_interval back to 0x50.
We need the BLE scanner to listen infinitely and Wifi should be connected 24/7.
This sample illustrates the behavior described here. We would like to know what causes the disconnects and please advise us how to prevent disconnects while scanning.