ESP32 ADF连接WIFI的同时,播放蓝牙音乐死机问题

liming_leo
Posts: 2
Joined: Mon Mar 11, 2019 3:03 am

ESP32 ADF连接WIFI的同时,播放蓝牙音乐死机问题

Postby liming_leo » Mon Mar 11, 2019 3:18 am

整合官方蓝牙播放例子esp-adf\examples\player\pipeline_bt_sink
WIFI连接路由例子: esp-adf\esp-idf\examples\wifi\simple_wifi
先初始化WIFI,修改官方SSID和PASSWD,连上WIFI . 然后初始化蓝牙,手机连上蓝牙,并播放音乐。
播放几个小时后(时间不固定),系统死掉(或者蓝牙断开,再也无法用手机连上,必须重启设备)如下Log:
[0m
ASSERT_PARAM(1024 0), in rwbt.c at line 311
Guru Meditation Error: Core 0 panic'ed (Interrupt wdt timeout on CPU0)
Core 0 register dump:
PC : 0x400847c1 PS : 0x00060034 A0 : 0x80088a64 A1 : 0x3ffc05b0
A2 : 0x00000001 A3 : 0x00000000 A4 : 0x00000000 A5 : 0x60008054
A6 : 0x3ffc1028 A7 : 0x60008050 A8 : 0x800847c1 A9 : 0x3ffc0590
A10 : 0x00000004 A11 : 0x00000000 A12 : 0x6000804c A13 : 0xffffffff
A14 : 0x00000000 A15 : 0xfffffffc SAR : 0x00000004 EXCCAUSE: 0x00000005
EXCVADDR: 0x00000000 LBEG : 0x400846f9 LEND : 0x40084700 LCOUNT : 0x00000000
Core 0 was running in ISR context:
EPC1 : 0x4019cc52 EPC2 : 0x4019cc52 EPC3 : 0x00000000 EPC4 : 0x400847c1

Backtrace: 0x400847c1:0x3ffc05b0 0x40088a61:0x3ffc05d0 0x40089153:0x3ffc05f0 0x40082695:0x3ffc0610 0x4019cc4f:0x00000000

Core 1 register dump:
PC : 0x4019cc52 PS : 0x00060234 A0 : 0x800924e6 A1 : 0x3ffdafc0
A2 : 0x00000008 A3 : 0x00000001 A4 : 0x00000000 A5 : 0x3ffda900
A6 : 0x00000000 A7 : 0x00000001 A8 : 0x3ffc4c28 A9 : 0x3ffc4bec
A10 : 0x00000000 A11 : 0x80000001 A12 : 0x00000000 A13 : 0x00000001
A14 : 0x00060021 A15 : 0x00000000 SAR : 0x00000000 EXCCAUSE: 0x00000005
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000

Backtrace: 0x4019cc52:0x3ffdafc0 0x400924e3:0x3ffdafe0
Rebooting...
[0;32mI (10) boot: ESP-IDF v3.1.1-6-g2aa9a2118 2nd stage bootloader[0m
[0;32mI (11) boot: compile time 11:46:14[0m
[0;32mI (20) boot: Enabling RNG early entropy source...[0m
[0;32mI (20) boot: SPI Speed : 40MHz[0m
[0;32mI (20) boot: SPI Mode : DIO[0m
[0;32mI (23) boot: SPI Flash Size : 4MB[0m
[0;32mI (27) boot: Partition Table:[0m
[0;32mI (31) boot: ## Label Usage Type ST Offset Length[0m
[0;32mI (38) boot: 0 nvs WiFi data 01 02 00009000 00004000[0m
[0;32mI (46) boot: 1 otadata OTA data 01 00 0000d000 00002000[0m
[0;32mI (53) boot: 2 phy_init RF data 01 01 0000f000 00001000[0m
[0;32mI (61) boot: 3 ota_0 OTA app 00 10 00010000 00190000[0m
[0;32mI (68) boot: 4 ota_1 OTA app 00 11 001a0000 00190000[0m
[0;32mI (76) boot: 5 storage Unknown data 01 82 00330000 000d0000[0m
[0;32mI (83) boot: End of partition table[0m
#[0;##pu_?[0;pu_?[0;pu_?[0;pu_?[0;pu_?[0;pu_?[0;pu_?[0;pu_?[0;pu_?[0;pu_?[0;31mE (3358) boot: OTA app partition slot 0 is not bootable[0m
[0;31mE (3363) esp_image: image at 0x1a0000 has invalid magic byte[0m
[0;33mW (3370) esp_image: image at 0x1a0000 has invalid SPI mode 255[0m
[0;33mW (3376) esp_image: image at 0x1a0000 has invalid SPI size 15[0m
[0;31mE (3383) boot: OTA app partition slot 1 is not bootable[0m
[0;31mE (3389) boot: No bootable app partitions in the partition table[0m
Fatal exception (29): StoreProhibited
epc1=0x40080391, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000006, depc=0x00000000
Attachments
wifi_test.c
(5.07 KiB) Downloaded 1369 times
play_bt_music_example.c
(8.41 KiB) Downloaded 1302 times

huang黄
Posts: 5
Joined: Thu Dec 06, 2018 7:15 am

Re: ESP32 ADF连接WIFI的同时,播放蓝牙音乐死机问题

Postby huang黄 » Fri May 31, 2019 9:06 am

hi 你的问题解决了吗?我下载进去esp-adf\examples\player\pipeline_bt_sink 但手机搜索不到蓝牙设备名

这又是什么鬼
Posts: 2
Joined: Mon Aug 05, 2019 12:52 am

Re: ESP32 ADF连接WIFI的同时,播放蓝牙音乐死机问题

Postby 这又是什么鬼 » Fri Aug 16, 2019 7:18 am

E (313) BLUETOOTH_SERVICE: /home/yc111/esp/esp-adf/components/bluetooth_service/bluetooth_service.c:438 (bluetooth_service_start): enable controller failed
我的启动不了蓝牙服务,不知道怎么回事

esp-xiaodong
Posts: 3
Joined: Tue Jun 04, 2019 2:34 am

Re: ESP32 ADF连接WIFI的同时,播放蓝牙音乐死机问题

Postby esp-xiaodong » Tue Oct 08, 2019 2:24 am

1. reboot看起来是core0 wdt timeout了。可以通过menuconfige esp32-specific->task watchdog timeout period的时间,默认是5s,可以改为8s。还有wifi和bt并存,可以将bt放到core1上,在menuconfig bluetooth里面,将controller和bluedroid都放到core1上面。
2. 异常断开,原因会有很多,需要给出断开时候的log才能判断。
3 .断开后连不上,可以检查下你断开时候的处理,需要esp_bt_gap_set_scan_mode(ESP_BT_SCAN_MODE_CONNECTABLE_DISCOVERABLE); 这个处理。

Who is online

Users browsing this forum: No registered users and 5 guests