Bluetooth wifi coexistence problem

lewishe
Posts: 2
Joined: Thu Sep 27, 2018 9:17 am

Bluetooth wifi coexistence problem

Postby lewishe » Thu Sep 27, 2018 10:54 am

I added the wifi startup code to the play_bt_music_example in the original adf, but I didn't operate the wifi. When I connected the Bluetooth to start playing, after waiting for 5 seconds, the cpu was reset by wdt, when I removed the wifi-related function. Everything is normal, here is the error message:

Code: Select all



I (53310) wifi: bcn_timout,ap_probe_send_start
I (55820) wifi: ap_probe_send over, resett wifi status to disassoc
I (55820) wifi: state: run -> init (1)
I (55820) wifi: pm stop, total sleep time: 0/51217950

I (55820) wifi: n:6 0, o:6 1, ap:255 255, sta:6 1, prof:1
W (55830) PERIPH_WIFI: Wi-Fi disconnected from SSID xinyuan, auto-reconnect enabled, reconnect after 30000 ms
I (55840) BLUETOOTH_EXAMPLE:  [10] heap_caps_get_free_size : 4181884
E (58530) BT: Pkt dropped

E (65800) BT: Pkt dropped

E (71460) BT: Pkt dropped

E (78380) BT: Pkt dropped

E (85650) BT: Pkt dropped

ASSERT_PARAM(8192 0), in rwbt.c at line 265
Guru Meditation Error: Core  0 panic'ed (Interrupt wdt timeout on CPU0)
Register dump:
PC      : 0x400883f6  PS      : 0x00060034  A0      : 0x8008b38c  A1      : 0x3ffc05b0
0x400883f6: r_assert_param at ??:?

A2      : 0x00000001  A3      : 0x00000000  A4      : 0x00000000  A5      : 0x60008054
A6      : 0x3ffc1028  A7      : 0x60008050  A8      : 0x800883f1  A9      : 0x3ffc0590
A10     : 0x00000004  A11     : 0x00000000  A12     : 0x6000804c  A13     : 0xffffffff
A14     : 0x00000000  A15     : 0xfffffffc  SAR     : 0x00000004  EXCCAUSE: 0x00000005
EXCVADDR: 0x00000000  LBEG    : 0x40088329  LEND    : 0x40088330  LCOUNT  : 0x00000000
0x40088329: r_assert_param at ??:?

0x40088330: r_assert_param at ??:?


Backtrace: 0x400883f6:0x3ffc05b0 0x4008b389:0x3ffc05d0 0x4008b623:0x3ffc05f0 0x400860e9:0x3ffc0610 0x400d20cf:0x00000000
0x400883f6: r_assert_param at ??:?

0x4008b389: r_rwbt_isr at ??:?

0x4008b623: r_rwbtdm_isr_wrapper at intc.c:?

0x400860e9: _xt_lowint1 at D:/ESP32/esp-adf/esp-idf/components/freertos/xtensa_vectors.S:1105

0x400d20cf: esp_vApplicationIdleHook at D:/ESP32/esp-adf/esp-idf/components/esp32/freertos_hooks.c:85


Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x3f (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0xf7,wp_drv:0xfe91fed3
mode:SLOW_RD, clock div:1
cmd len -1
ets_main.c 371
ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x3f (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:5864
load:0x40078000,len:0
ho 12 tail 0 room 4
load:0x40078000,len:15536
entry 0x40078ff4



I checked the adf getting started guide, I have already opened the PSRAM support relatively, I believe this is not a problem of insufficient memory, it should be related to the opening of wifi, when I turn on wifi, Bluetooth connection, wifi will be disconnected.

ESP_Tianhao
Posts: 22
Joined: Thu Jan 05, 2017 10:46 am

Re: Bluetooth wifi coexistence problem

Postby ESP_Tianhao » Mon Oct 22, 2018 9:53 am

lewishe wrote:I added the wifi startup code to the play_bt_music_example in the original adf, but I didn't operate the wifi. When I connected the Bluetooth to start playing, after waiting for 5 seconds, the cpu was reset by wdt, when I removed the wifi-related function. Everything is normal, here is the error message:

Code: Select all



I (53310) wifi: bcn_timout,ap_probe_send_start
I (55820) wifi: ap_probe_send over, resett wifi status to disassoc
I (55820) wifi: state: run -> init (1)
I (55820) wifi: pm stop, total sleep time: 0/51217950

I (55820) wifi: n:6 0, o:6 1, ap:255 255, sta:6 1, prof:1
W (55830) PERIPH_WIFI: Wi-Fi disconnected from SSID xinyuan, auto-reconnect enabled, reconnect after 30000 ms
I (55840) BLUETOOTH_EXAMPLE:  [10] heap_caps_get_free_size : 4181884
E (58530) BT: Pkt dropped

E (65800) BT: Pkt dropped

E (71460) BT: Pkt dropped

E (78380) BT: Pkt dropped

E (85650) BT: Pkt dropped

ASSERT_PARAM(8192 0), in rwbt.c at line 265
Guru Meditation Error: Core  0 panic'ed (Interrupt wdt timeout on CPU0)
Register dump:
PC      : 0x400883f6  PS      : 0x00060034  A0      : 0x8008b38c  A1      : 0x3ffc05b0
0x400883f6: r_assert_param at ??:?

A2      : 0x00000001  A3      : 0x00000000  A4      : 0x00000000  A5      : 0x60008054
A6      : 0x3ffc1028  A7      : 0x60008050  A8      : 0x800883f1  A9      : 0x3ffc0590
A10     : 0x00000004  A11     : 0x00000000  A12     : 0x6000804c  A13     : 0xffffffff
A14     : 0x00000000  A15     : 0xfffffffc  SAR     : 0x00000004  EXCCAUSE: 0x00000005
EXCVADDR: 0x00000000  LBEG    : 0x40088329  LEND    : 0x40088330  LCOUNT  : 0x00000000
0x40088329: r_assert_param at ??:?

0x40088330: r_assert_param at ??:?


Backtrace: 0x400883f6:0x3ffc05b0 0x4008b389:0x3ffc05d0 0x4008b623:0x3ffc05f0 0x400860e9:0x3ffc0610 0x400d20cf:0x00000000
0x400883f6: r_assert_param at ??:?

0x4008b389: r_rwbt_isr at ??:?

0x4008b623: r_rwbtdm_isr_wrapper at intc.c:?

0x400860e9: _xt_lowint1 at D:/ESP32/esp-adf/esp-idf/components/freertos/xtensa_vectors.S:1105

0x400d20cf: esp_vApplicationIdleHook at D:/ESP32/esp-adf/esp-idf/components/esp32/freertos_hooks.c:85


Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x3f (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0xf7,wp_drv:0xfe91fed3
mode:SLOW_RD, clock div:1
cmd len -1
ets_main.c 371
ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x3f (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:5864
load:0x40078000,len:0
ho 12 tail 0 room 4
load:0x40078000,len:15536
entry 0x40078ff4



I checked the adf getting started guide, I have already opened the PSRAM support relatively, I believe this is not a problem of insufficient memory, it should be related to the opening of wifi, when I turn on wifi, Bluetooth connection, wifi will be disconnected.



Hi, lewishe
From the error, It seems the IDF version which you used is very old. Could your tell me your IDF version and the complete log? Besides, could you check if the submodule is updated? Thanks.

chegewara
Posts: 483
Joined: Wed Jun 14, 2017 9:00 pm

Re: Bluetooth wifi coexistence problem

Postby chegewara » Mon Oct 22, 2018 5:01 pm

Still this can be related to lack of heap. Try this to see how much heap you have and if you are using spiram at all:

Code: Select all

   heap_caps_print_heap_info(MALLOC_CAP_INTERNAL);
   heap_caps_print_heap_info(MALLOC_CAP_SPIRAM);


About 2 weeks ago ive got similar issue with ble + wifi coex (dont remember exact logs) and i fixed it with better handling heap usage.

Who is online

Users browsing this forum: No registered users and 2 guests