ESP32 STATION 正接AP时候发生了PANIC然后重启了

Moderator: ESP_Bob

ttxs1002004
Posts: 14
Joined: Thu Apr 22, 2021 7:09 pm

ESP32 STATION 正接AP时候发生了PANIC然后重启了

Postby ttxs1002004 » Thu Apr 22, 2021 7:27 pm

用蓝牙发送了SSID和password给ESP32,
ESP32断开,重新用新SSID和PASSSWORD连接AP,这时候,发生了Panic, 然后重启了!导致没法给蓝牙客户端(手机APP,发送配网信息反馈结果,因为重启后蓝牙就断了)。
为什么?
IDF 版本: release/v4.3

[0;32mI (01:47:38.564) BOBO_BT: GATT_WRITE_EVT, conn_id 0, trans_id 1, handle 42[0m
[0;32mI (01:47:38.644) BOBO_BT: GATT_WRITE_EVT, conn_id 0, trans_id 2, handle 42[0m
[0;32mI (01:47:38.804) BOBO_BT: ESP_GATTS_EXEC_WRITE_EVT[0m
[0;32mI (01:47:38.806) BOBO_BT: 48 4f 4e 47 4d 49 4e 59 4f 4e 47 2d 57 4f 52 4b [0m
[0;33mW (01:47:38.813) BOBO_BT: BT Config net!
[0m
[0;33mW (01:47:38.818) BOBO_BT: SSID is:HONGMINYONG-WORK,PASSWORD is HHXX
[0m
I (1965217) wifi:flush txq
I (1965218) wifi:stop sw txq
I (1965220) wifi:lmac stop hw txq
I (1965223) wifi:Deinit lldesc rx mblock:10
[0;33mW (01:47:38.841) BOBO_NET_MODULE: bobo_net_module has stoped.
[0m
[0;33mW (01:47:38.931) BOBO_MAIN_MANAGER: start bobo_net_module.[0m
[0;33mW (01:47:38.931) BOBO_MAIN_MANAGER: bobo_net_module has started.
[0m
[0;33mW (01:47:38.933) BOBO_NET_MODULE: bobo net module has started.
[0m
[0;33mW (01:47:38.933) BOBO_MAIN_MANAGER: restart bobo_net_module to make use of new ssid.
[0m
E (1965322) wifi:I (1965333) wifi:timeout when WiFi un-init, type=4wifi driver task: 3ffd82b4, prio:23, stack:6656, core=0

I (1965371) wifi:wifi firmware version: 1865b55
I (1965371) wifi:wifi certification version: v7.0
I (1965371) wifi:config NVS flash: enabled
I (1965373) wifi:config nano formating: disabled
I (1965377) wifi:Init data frame dynamic rx buffer num: 32
I (1965382) wifi:Init management frame dynamic rx buffer num: 32
I (1965388) wifi:Init management short buffer num: 32
I (1965393) wifi:Init dynamic tx buffer num: 32
I (1965397) wifi:Init static rx buffer size: 1600
I (1965401) wifi:Init static rx buffer num: 10
I (1965405) wifi:Init dynamic rx buffer num: 32
[0;32mI (01:47:39.022) wifi_init: rx ba win: 6[0m
[0;32mI (01:47:39.025) wifi_init: tcpip mbox: 32[0m
[0;32mI (01:47:39.030) wifi_init: udp mbox: 6[0m
[0;32mI (01:47:39.035) wifi_init: tcp mbox: 6[0m
[0;32mI (01:47:39.039) wifi_init: tcp tx win: 5744[0m
[0;32mI (01:47:39.044) wifi_init: tcp rx win: 5744[0m
[0;32mI (01:47:39.049) wifi_init: tcp mss: 1440[0m
[0;32mI (01:47:39.054) wifi_init: WiFi IRAM OP enabled[0m
[0;32mI (01:47:39.059) wifi_init: WiFi RX IRAM OP enabled[0m
I (1965470) wifi:mode : sta (c4:dd:57:60:e9:00)
[0;33mW (01:47:39.083) BOBO_CONNECT: Connecting to SSID: HONGMINYONG-WORK ,Passord: HHXX ...[0m
[0;33mW (01:47:39.084) BOBO_CONNECT: Connecting to HONGMINYONG-WORK...[0m
[0;32mI (01:47:39.085) BOBO_CONNECT: Wi-Fi started, connect AP...[0m
[0;33mW (01:47:39.091) BOBO_CONNECT: Waiting for IP(s)[0m
gSpO2Pulse is: 0

gSpO2Val is: 0

Bed status is: Off bed.

No SpO2Det!

gSpO2Pulse is: 0

gSpO2Val is: 0

Bed status is: Off bed.

I (1968626) wifi:new:<6,1>, old:<1,0>, ap:<255,255>, sta:<6,1>, prof:1
I (1970044) wifi:state: init -> auth (b0)
I (1970051) wifi:state: auth -> assoc (0)
I (1970060) wifi:state: assoc -> run (10)
I (1970072) wifi:connected with HONGMINYONG-WORK, aid = 1, channel 6, 40U, bssid = 08:10:78:1c:1d:6d
I (1970072) wifi:security: WPA2-PSK, phy: bgn, rssi: -26
I (1970075) wifi:pm start, type: 1

Guru Meditation Error: Core 0 panic'ed (InstructionFetchError). Exception was unhandled.

Core 0 register dump:
PC : 0x3ffdd460 PS : 0x00060330 A0 : 0x800e3588 A1 : 0x3ffd8020
A2 : 0x3ffdd448 A3 : 0x3ffe50ea A4 : 0x0000003c A5 : 0x3ffe5058
A6 : 0x00006d1d A7 : 0x00000000 A8 : 0x801a0c38 A9 : 0x00000046
A10 : 0x3ffdd460 A11 : 0x3ffe50ea A12 : 0x0000003c A13 : 0x3ffe5058
A14 : 0x3ffe49f8 A15 : 0xffffffff SAR : 0x00000010 EXCCAUSE: 0x00000002
EXCVADDR: 0x3ffdd460 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0xffffffff

Backtrace:0x3ffdd45d:0x3ffd8020 |<-CORRUPTED


ELF file SHA256: 0378ad4d1717246e

Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x1b (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:2
load:0x3fff0030,len:4
load:0x3fff0034,len:7104
ho 0 tail 12 room 4
load:0x40078000,len:13212
load:0x40080400,len:4568
entry 0x400806f4
[0;32mI (31) boot: ESP-IDF v4.2 2nd stage bootloader[0m
[0;32mI (31) boot: compile time 11:00:59[0m
[0;32mI (31) boot: chip revision: 3[0m
[0;32mI (34) boot_comm: chip revision: 3, min. bootloader chip revision: 0[0m
[0;32mI (41) boot.esp32: SPI Speed : 40MHz[0m
[0;32mI (45) boot.esp32: SPI Mode : DIO[0m
[0;32mI (50) boot.esp32: SPI Flash Size : 8MB[0m
[0;32mI (54) boot: Enabling RNG early entropy source...[0m
[0;32mI (60) boot: Partition Table:[0m
[0;32mI (63) boot: ## Label Usage Type ST Offset Length[0m
[0;32mI (71) boot: 0 nvs WiFi data 01 02 00009000 00004000[0m
[0;32mI (78) boot: 1 otadata OTA data 01 00 0000d000 00002000[0m
[0;32mI (86) boot: 2 phy_init RF data 01 01 0000f000 00001000[0m
[0;32mI (93) boot: 3 factory factory app 00 00 00010000 00200000[0m
[0;32mI (101) boot: 4 ota0 OTA app 00 10 00210000 00200000[0m
[0;32mI (108) boot: 5 bobo_data WiFi data 01 02 00410000 003f0000[0m
[0;32mI (116) boot: End of partition table[0m
[0;32mI (120) boot: Defaulting to factory image[0m
[0;32mI (125) boot_comm: chip revision: 3, min. application chip revision: 0[0m
[0;32mI (132) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x30034 (196660) map[0m
[0;32mI (216) esp_image: segment 1: paddr=0x0004005c vaddr=0x3ffbdb60 size=0x044c0 ( 17600) load[0m
[0;32mI (223) esp_image: segment 2: paddr=0x00044524 vaddr=0x40080000 size=0x00404 ( 1028) load[0m
[0;32mI (224) esp_image: segment 3: paddr=0x00044930 vaddr=0x40080404 size=0x0b6e8 ( 46824) load[0m
[0;32mI (252) esp_image: segment 4: paddr=0x00050020 vaddr=0x400d0020 size=0xd51c0 (872896) map[0m
[0;32mI (585) esp_image: segment 5: paddr=0x001251e8 vaddr=0x4008baec size=0x1355c ( 79196) load[0m
[0;32mI (636) boot: Loaded app from partition at offset 0x10000[0m
[0;32mI (636) boot: Disabling RNG early entropy source...[0m
[0;32mI (637) cpu_start: Pro cpu up.[0m

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: ESP32 STATION 正接AP时候发生了PANIC然后重启了

Postby ESP_Gargamel » Fri Apr 23, 2021 1:14 am

用的参考例程还是自己的写的?是否必现?从 backtrace 上看,状态为 CORRUPTED,所以是否是某 task 的 stack 太小了?可以排查一下。
以下信息请酌情提供:
1、可复现问题的工程
2、build 目录下的 elf 文件

ttxs1002004
Posts: 14
Joined: Thu Apr 22, 2021 7:09 pm

Re: ESP32 STATION 正接AP时候发生了PANIC然后重启了

Postby ttxs1002004 » Fri Apr 23, 2021 7:26 am

偶然出现。
商业项目,不好提供代码。
我每次重新配网都彻底的deinit wifi,然后在init,不仅仅是断开重连,有问题吗?

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: ESP32 STATION 正接AP时候发生了PANIC然后重启了

Postby ESP_Gargamel » Fri Apr 23, 2021 8:09 am

1、你可以反汇编看一下 A0 : 0x800e3588,即 0x400e3588 地址的汇编,这个地址即你挂掉函数的返回地址,但可能你 stack 都破坏了,不一定完全正确,可以看一下;
2、重新配网的话,可以是先 esp_wifi_restore,再 esp_restart,两者之间可能还会有你自己的逻辑;
3、你可以简化你的代码,找一个能复现问题的最小工程,不需要完整工程;

ttxs1002004
Posts: 14
Joined: Thu Apr 22, 2021 7:09 pm

Re: ESP32 STATION 正接AP时候发生了PANIC然后重启了

Postby ttxs1002004 » Fri Apr 23, 2021 9:46 pm

Thank u very much.

the task is too busy maybe.

give some time so every task of mine can idle a while, it seemed that the panic vanish.

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: ESP32 STATION 正接AP时候发生了PANIC然后重启了

Postby ESP_Gargamel » Sun Apr 25, 2021 1:28 am

建议有时间还是再查一下,毕竟是商业项目,产品上出问题就比较麻烦。可以先按我之前说的方式查一下 A0 地址,另外,可以看一下是否有结构体内的函数指针未初始化。

ttxs1002004
Posts: 14
Joined: Thu Apr 22, 2021 7:09 pm

Re: ESP32 STATION 正接AP时候发生了PANIC然后重启了

Postby ttxs1002004 » Sun Apr 25, 2021 5:35 am

多谢!!建议很赞!!

我现在只初始化一次WIFI,然后没有有效SSID/PASSWORD就不启动WIFI控制器,有了(不论是否能够连接上)都连接,然后连不上就重试5次,然后过20秒在重新连接(重试5次)。只是调用ESP_DISCONNECT和ESP_CONNECT。因为我们的产品是移动的,如果用户换地方了,原来的WIFI AP肯定连不上了。
我故意用错的SSID/PASSWORD(用蓝牙提供的),然后让其长期运行测试(此期间没有在用蓝牙,蓝牙是断的),在测试的5小时内,出现3次PANIC重启,如下面日志,为什么会这样?有什么建议?多谢!!!
其中1次如下,大约80分钟后又来一次,大约60分钟后又来一次。
正常工作时候,2秒1K数据上传没发现,但是没有链接WIFI,因此不会上传,APP应该更IDLE,但是却出现了TASK WDT触发现象!!
我的代码无法上传时候会备份采集数据到一个专用分区,会不会分区操作代码优先级太高,导致蓝牙task wdt触发?

[0;33mW (13:01:27.394) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 1,[0m
[0;33mW (13:01:30.532) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 2,[0m
[0;33mW (13:01:33.672) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 3,[0m
[0;33mW (13:01:36.811) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 4,[0m
[0;33mW (13:01:39.948) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 5,[0m
[0;31mE (13:01:43.084) BOBO_CONNECT: Report BOBO_NET_MODULE WIFI Can't Successfully Connected AP![0m
[0;31mE (13:01:43.085) BOBO_NET_MODULE: Delay 20 Second to reconnect.[0m
[0;33mW (13:02:04.090) BOBO_CONNECT: Connecting to SSID: ÷Þ¥wifiKš“ewifi
ð ,Passord: .[0m
[0;33mW (13:02:07.233) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 1,[0m
[0;33mW (13:02:10.370) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 2,[0m
[0;33mW (13:02:13.509) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 3,[0m
[0;33mW (13:02:16.649) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 4,[0m
[0;33mW (13:02:19.790) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 5,[0m
[0;31mE (13:02:22.926) BOBO_CONNECT: Report BOBO_NET_MODULE WIFI Can't Successfully Connected AP![0m
[0;31mE (13:02:22.927) BOBO_NET_MODULE: Delay 20 Second to reconnect.[0m
[0;31mE (13876904) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:[0m
[0;31mE (13876904) task_wdt: - IDLE0 (CPU 0)[0m
[0;31mE (13876904) task_wdt: Tasks currently running:[0m
[0;31mE (13876904) task_wdt: CPU 0: btController[0m
[0;31mE (13876904) task_wdt: CPU 1: IDLE1[0m
[0;31mE (13876904) task_wdt: Print CPU 0 (current core) backtrace[0m


Backtrace:0x400D5308:0x3FFBE370 0x40082A41:0x3FFBE390 0x4013D480:0x3FFB5E80 0x4013DA2D:0x3FFB5EA0 0x40090922:0x3FFB5ED0

[0;31mE (13876904) task_wdt: Print CPU 1 backtrace[0m


Backtrace:0x40081CC3:0x3FFBE970 0x40082A41:0x3FFBE990 0x4000BFED:0x3FFBC410 0x40090B85:0x3FFBC420 0x400D554C:0x3FFBC440 0x400D5557:0x3FFBC470 0x400D5695:0x3FFBC490 0x400912B1:0x3FFBC4B0 0x40090922:0x3FFBC4D0

[0;31mE (13881904) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:[0m
[0;31mE (13881904) task_wdt: - IDLE0 (CPU 0)[0m
[0;31mE (13881904) task_wdt: Tasks currently running:[0m
[0;31mE (13881904) task_wdt: CPU 0: btController[0m
[0;31mE (13881904) task_wdt: CPU 1: IDLE1[0m
[0;31mE (13881904) task_wdt: Print CPU 0 (current core) backtrace[0m


Backtrace:0x400D5308:0x3FFBE370 0x40082A41:0x3FFBE390 0x4013D480:0x3FFB5E80 0x4013DA2D:0x3FFB5EA0 0x40090922:0x3FFB5ED0

[0;31mE (13881904) task_wdt: Print CPU 1 backtrace[0m


Backtrace:0x40081CC3:0x3FFBE970 0x40082A41:0x3FFBE990 0x4000BFED:0x3FFBC410 0x40090B85:0x3FFBC420 0x400D554C:0x3FFBC440 0x400D5557:0x3FFBC470 0x400D5695:0x3FFBC490 0x400912B1:0x3FFBC4B0 0x40090922:0x3FFBC4D0

[0;31mE (13886904) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:[0m
[0;31mE (13886904) task_wdt: - IDLE0 (CPU 0)[0m
[0;31mE (13886904) task_wdt: Tasks currently running:[0m
[0;31mE (13886904) task_wdt: CPU 0: btController[0m
[0;31mE (13886904) task_wdt: CPU 1: IDLE1[0m
[0;31mE (13886904) task_wdt: Print CPU 0 (current core) backtrace[0m


Backtrace:0x400D5308:0x3FFBE370 0x40082A41:0x3FFBE390 0x4013D480:0x3FFB5E80 0x4013DA2D:0x3FFB5EA0 0x40090922:0x3FFB5ED0

[0;31mE (13886904) task_wdt: Print CPU 1 backtrace[0m


Backtrace:0x40081CC3:0x3FFBE970 0x40082A41:0x3FFBE990 0x4000BFED:0x3FFBC410 0x40090B85:0x3FFBC420 0x400D554C:0x3FFBC440 0x400D5557:0x3FFBC470 0x400D5695:0x3FFBC490 0x400912B1:0x3FFBC4B0 0x40090922:0x3FFBC4D0

[0;31mE (13891904) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:[0m
[0;31mE (13891904) task_wdt: - IDLE0 (CPU 0)[0m
[0;31mE (13891904) task_wdt: Tasks currently running:[0m
[0;31mE (13891904) task_wdt: CPU 0: btController[0m
[0;31mE (13891904) task_wdt: CPU 1: IDLE1[0m
[0;31mE (13891904) task_wdt: Print CPU 0 (current core) backtrace[0m


Backtrace:0x400D5308:0x3FFBE370 0x40082A41:0x3FFBE390 0x4013D480:0x3FFB5E80 0x4013DA2D:0x3FFB5EA0 0x40090922:0x3FFB5ED0

[0;31mE (13891904) task_wdt: Print CPU 1 backtrace[0m


Backtrace:0x40081CC3:0x3FFBE970 0x40082A41:0x3FFBE990 0x4000BFED:0x3FFBC410 0x40090B85:0x3FFBC420 0x400D554C:0x3FFBC440 0x400D5557:0x3FFBC470 0x400D5695:0x3FFBC490 0x400912B1:0x3FFBC4B0 0x40090922:0x3FFBC4D0

ASSERT_PARAM(-218959118 0), in arch_main.c at line 343
Guru Meditation Error: Core 0 panic'ed (Interrupt wdt timeout on CPU0).

Core 0 register dump:
PC : 0x40085399 PS : 0x00060034 A0 : 0x8013d04c A1 : 0x3ffbe260
A2 : 0x00000001 A3 : 0x00000000 A4 : 0x60008048 A5 : 0x00000000
A6 : 0x00000004 A7 : 0x3ffbdbe4 A8 : 0x80085394 A9 : 0x3ffbe240
A10 : 0x00000000 A11 : 0x00000037 A12 : 0x00000014 A13 : 0xffffffff
A14 : 0x00000000 A15 : 0xfffffffc SAR : 0x00000004 EXCCAUSE: 0x00000005
EXCVADDR: 0x00000000 LBEG : 0x400852cc LEND : 0x400852d3 LCOUNT : 0x00000000
Core 0 was running in ISR context:
EPC1 : 0x401a50e7 EPC2 : 0x00000000 EPC3 : 0x00000000 EPC4 : 0x40085399

Backtrace:0x40085396:0x3ffbe260 0x4013d049:0x3ffbe280 0x40019fb5:0x3ffbe2a0 0x40046683:0x3ffbe2d0 0x40047515:0x3ffbe2f0 0x400884e9:0x3ffbe310 0x4008813d:0x3ffbe330 0x4008a82a:0x3ffbe350 0x4008b91b:0x3ffbe370 0x40082a41:0x3ffbe390 0x4013d480:0x3ffb5e80 0x4013da2d:0x3ffb5ea0 0x40090922:0x3ffb5ed0
Core 1 register dump:
PC : 0x401a147a PS : 0x00060a34 A0 : 0x800d56a9 A1 : 0x3ffbc470
A2 : 0x00000000 A3 : 0x00000001 A4 : 0x00000014 A5 : 0x000000a5
A6 : 0x000000a5 A7 : 0x00060023 A8 : 0x800d555a A9 : 0x3ffbc440
A10 : 0x00000000 A11 : 0x00000000 A12 : 0x00000014 A13 : 0x000000a5
A14 : 0x000000a5 A15 : 0x00060023 SAR : 0x00000000 EXCCAUSE: 0x00000005
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000

Backtrace:0x401a1477:0x3ffbc470 0x400d56a6:0x3ffbc490 0x400912b1:0x3ffbc4b0 0x40090922:0x3ffbc4d0


ELF file SHA256: 646e284f9d887c6c

Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x1b (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:2
load:0x3fff0030,len:4
load:0x3fff0034,len:7104
ho 0 tail 12 room 4
load:0x40078000,len:13212
load:0x40080400,len:4568
entry 0x400806f4
[0;32mI (31) boot: ESP-IDF v4.2 2nd stage bootloader[0m
[0;32mI (31) boot: compile time 02:33:09[0m
[0;32mI (31) boot: chip revision: 3[0m
[0;32mI (34) boot_comm: chip revision: 3, min. bootloader chip revision: 0[0m
[0;32mI (41) boot.esp32: SPI Speed : 40MHz[0m
[0;32mI (45) boot.esp32: SPI Mode : DIO[0m
[0;32mI (50) boot.esp32: SPI Flash Size : 8MB[0m
[0;32mI (54) boot: Enabling RNG early entropy source...[0m
[0;32mI (60) boot: Partition Table:[0m
[0;32mI (63) boot: ## Label Usage Type ST Offset Length[0m
[0;32mI (71) boot: 0 nvs WiFi data 01 02 00009000 00004000[0m
[0;32mI (78) boot: 1 otadata OTA data 01 00 0000d000 00002000[0m
[0;32mI (86) boot: 2 phy_init RF data 01 01 0000f000 00001000[0m
[0;32mI (93) boot: 3 factory factory app 00 00 00010000 00200000[0m
[0;32mI (101) boot: 4 ota0 OTA app 00 10 00210000 00200000[0m
[0;32mI (108) boot: 5 bobo_data WiFi data 01 02 00410000 003f0000[0m
[0;32mI (116) boot: End of partition table[0m
[0;32mI (120) boot: Defaulting to factory image[0m
[0;32mI (125) boot_comm: chip revision: 3, min. application chip revision: 0[0m
[0;32mI (132) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x30174 (196980) map[0m
[0;32mI (216) esp_image: segment 1: paddr=0x0004019c vaddr=0x3ffbdb60 size=0x044c0 ( 17600) load[0m
[0;32mI (223) esp_image: segment 2: paddr=0x00044664 vaddr=0x40080000 size=0x00404 ( 1028) load[0m
[0;32mI (224) esp_image: segment 3: paddr=0x00044a70 vaddr=0x40080404 size=0x0b5a8 ( 46504) load[0m
[0;32mI (252) esp_image: segment 4: paddr=0x00050020 vaddr=0x400d0020 size=0xd521c (872988) map[0m
[0;32mI (585) esp_image: segment 5: paddr=0x00125244 vaddr=0x4008b9ac size=0x1369c ( 79516) load[0m
[0;32mI (636) boot: Loaded app from partition at offset 0x10000[0m
[0;32mI (636) boot: Disabling RNG early entropy source...[0m
[0;32mI (637) cpu_start: Pro cpu up.[0m
[0;32mI (640) cpu_start: Application information:[0m
[0;32mI (645) cpu_start: Project name: bobo_esp32[0m
[0;32mI (650) cpu_start: App version: 1.01[0m
[0;32mI (655) cpu_start: Compile time: Apr 24 2021 02:33:08[0m
[0;32mI (661) cpu_start: ELF file SHA256: 646e284f9d887c6c...[0m
[0;32mI (667) cpu_start: ESP-IDF: v4.2[0m
[0;32mI (672) cpu_start: Starting app cpu, entry point is 0x40081a10[0m
[0;32mI (663) cpu_start: App cpu up.[0m
[0;32mI (683) heap_init: Initializing. RAM available for dynamic allocation:[0m
[0;32mI (689) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM[0m
[0;32mI (695) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM[0m
[0;32mI (702) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM[0m
[0;32mI (708) heap_init: At 3FFD4B78 len 0000B488 (45 KiB): DRAM[0m
[0;32mI (714) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM[0m
[0;32mI (720) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM[0m
[0;32mI (727) heap_init: At 4009F048 len 00000FB8 (3 KiB): IRAM[0m
[0;32mI (733) cpu_start: Pro cpu start user code[0m
[0;32mI (772) spi_flash: detected chip: generic[0m
[0;32mI (772) spi_flash: flash io: dio[0m
[0;32mI (772) cpu_start: Starting scheduler on PRO CPU.[0m
[0;32mI (0) cpu_start: Starting scheduler on APP CPU.[0m
I (877) wifi:wifi driver task: 3ffd89d0, prio:23, stack:6656, core=0
[0;32mI (09:07:51.865) system_api: Base MAC address is not set[0m
[0;32mI (09:07:51.866) system_api: read default base MAC address from EFUSE[0m
I (907) wifi:wifi firmware version: 1865b55
I (907) wifi:wifi certification version: v7.0
I (907) wifi:config NVS flash: enabled
I (907) wifi:config nano formating: disabled
I (912) wifi:Init data frame dynamic rx buffer num: 32
I (916) wifi:Init management frame dynamic rx buffer num: 32
I (922) wifi:Init management short buffer num: 32
I (926) wifi:Init dynamic tx buffer num: 32
I (930) wifi:Init static rx buffer size: 1600
I (934) wifi:Init static rx buffer num: 10
I (938) wifi:Init dynamic rx buffer num: 32
[0;32mI (09:07:51.930) wifi_init: rx ba win: 6[0m
[0;32mI (09:07:51.934) wifi_init: tcpip mbox: 32[0m
[0;32mI (09:07:51.938) wifi_init: udp mbox: 6[0m
[0;32mI (09:07:51.943) wifi_init: tcp mbox: 6[0m
[0;32mI (09:07:51.947) wifi_init: tcp tx win: 5744[0m
[0;32mI (09:07:51.952) wifi_init: tcp rx win: 5744[0m
[0;32mI (09:07:51.957) wifi_init: tcp mss: 1440[0m
[0;32mI (09:07:51.962) wifi_init: WiFi IRAM OP enabled[0m
[0;32mI (09:07:51.967) wifi_init: WiFi RX IRAM OP enabled[0m
[0;33mW (09:07:51.974) BOBO_MAIN_MANAGER: bobo_esp app started
[0m
[0;33mW (09:07:51.982) BOBO_MAIN_MANAGER: SSID is:÷Þ¥wifiKš“ewifi
ð, Password is:
[0m
[0;33mW (09:07:51.987) BOBO_MAIN_MANAGER: start bobo_net_module.[0m
[0;33mW (09:07:51.993) BOBO_NET_MODULE: bobo net module has started.
[0m
[0;33mW (09:07:52.001) BOBO_CONNECT: Connecting to SSID: ÷Þ¥wifiKš“ewifi
ð ,Passord: .[0m
[0;32mI (1124) phy: phy_version: 4500, 0cd6843, Sep 17 2020, 15:37:07, 0, 0[0m
I (1126) wifi:mode : sta (c4:dd:57:60:e9:00)
[0;33mW (09:07:52.116) BOBO_MAIN_MANAGER: bobo_net_module has started.
[0m
[0;32mI (09:07:52.117) BOBO_CONNECT: Wi-Fi started, connect AP...[0m
[0;32mI (09:07:52.129) BTDM_INIT: BT controller compile version [3723d5b][0m
[0;32mI (09:07:52.486) BOBO_BT: REGISTER_APP_EVT, status 0, app_id 0
[0m
[0;33mW (1502) BT_BTM: BTM_BleWriteAdvData, Partial data write into ADV[0m
[0;33mW (1507) BT_BTM: BTM_BleWriteScanRsp, Partial data write into ADV[0m
[0;32mI (09:07:52.497) gpio: GPIO[0]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 [0m
[0;32mI (09:07:52.501) BOBO_BT: CREATE_SERVICE_EVT, status 0, service_handle 40
[0m
[0;32mI (09:07:52.506) gpio: GPIO[4]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 [0m
[0;32mI (09:07:52.524) gpio: GPIO[5]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 [0m
[0;32mI (09:07:52.534) BOBO_BT: SERVICE_START_EVT, status 0, service_handle 40
[0m
[0;32mI (09:07:52.534) gpio: GPIO[14]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 [0m
[0;32mI (09:07:52.542) BOBO_BT: ADD_CHAR_EVT, status 0, attr_handle 42, service_handle 40
[0m
[0;32mI (09:07:52.551) gpio: GPIO[18]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 [0m
[0;32mI (09:07:52.570) gpio: GPIO[19]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 [0m
[0;32mI (09:07:52.580) gpio: GPIO[25]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 [0m
[0;32mI (09:07:52.590) gpio: GPIO[26]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 [0m
[0;32mI (09:07:52.600) gpio: GPIO[27]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 [0m
[0;32mI (09:07:52.610) gpio: GPIO[33]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 [0m
[0;32mI (09:07:52.621) gpio: GPIO[12]| InputEn: 1| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 [0m
[0;32mI (09:07:52.631) gpio: GPIO[23]| InputEn: 1| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 [0m
[0;32mI (09:07:52.641) gpio: GPIO[22]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 [0m
[0;32mI (09:07:52.651) gpio: GPIO[32]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 [0m
[0;32mI (09:07:52.664) RX8025T: Write OK[0m
[0;32mI (09:07:52.665) BOBO_ADC: eFuse Two Point: NOT supported
[0m
[0;32mI (09:07:52.671) BOBO_ADC: eFuse Vref: Supported
[0m
[0;32mI (09:07:52.677) BOBO_ADC: Characterized using eFuse Vref
[0m
[0;32mI (09:07:52.683) BOBO_ADC: Start of Adc timer.
[0m
0x49 0x02 0x13 0x40 0x24 0x04 0x21

[0;32mI (13:02:49.000) BOBO_MAIN_TASK: Start Time is: [2021-04-24 13:02:49]

[0m
[0;32mI (13:02:49.014) BOBO_MAIN_TASK: START_LIGHT_CONTROL!

[0m
[0;32mI (13:02:49.014) BOBO_MAIN_TASK: LIGHT CONTROL FIRMWARE VERSION IS: 2

[0m
[0;32mI (13:02:49.020) BOBO_MAIN_TASK: LIGHT CONTROL FIRMWARE KEY TIMEOUT IS: 3000

[0m
[0;32mI (13:02:49.028) BOBO_MAIN_TASK: boot_id=0XBBFFFFFFFFFFFFFF

[0m
[0;33mW (13:02:51.358) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 1,[0m
[0;33mW (13:02:54.498) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 2,[0m
[0;33mW (13:02:57.634) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 3,[0m
[0;33mW (13:03:00.772) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 4,[0m
[0;33mW (13:03:03.910) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 5,[0m
[0;31mE (13:03:07.048) BOBO_CONNECT: Report BOBO_NET_MODULE WIFI Can't Successfully Connected AP![0m
[0;31mE (13:03:07.049) BOBO_NET_MODULE: Delay 20 Second to reconnect.[0m
[0;33mW (13:03:28.102) BOBO_CONNECT: Connecting to SSID: ÷Þ¥wifiKš“ewifi
ð ,Passord: .[0m
[0;33mW (13:03:31.243) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 1,[0m
[0;33mW (13:03:34.380) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 2,[0m
[0;33mW (13:03:37.518) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 3,[0m
[0;33mW (13:03:40.655) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 4,[0m
[0;33mW (13:03:43.795) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 5,[0m
[0;31mE (13:03:46.930) BOBO_CONNECT: Report BOBO_NET_MODULE WIFI Can't Successfully Connected AP![0m
[0;31mE (13:03:46.931) BOBO_NET_MODULE: Delay 20 Second to reconnect.[0m
[0;33mW (13:04:07.935) BOBO_CONNECT: Connecting to SSID: ÷Þ¥wifiKš“ewifi
ð ,Passord: .[0m
[0;33mW (13:04:11.077) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 1,[0m
[0;33mW (13:04:14.215) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 2,[0m
[0;33mW (13:04:17.353) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 3,[0m
[0;33mW (13:04:20.489) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 4,[0m
[0;33mW (13:04:23.653) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 5,[0m
[0;31mE (13:04:26.790) BOBO_CONNECT: Report BOBO_NET_MODULE WIFI Can't Successfully Connected AP![0m
[0;31mE (13:04:26.791) BOBO_NET_MODULE: Delay 20 Second to reconnect.[0m
[0;33mW (13:04:47.855) BOBO_CONNECT: Connecting to SSID: ÷Þ¥wifiKš“ewifi
ð ,Passord: .[0m
[0;33mW (13:04:50.995) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 1,[0m
[0;33mW (13:04:54.133) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 2,[0m
[0;33mW (13:04:57.273) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 3,[0m
[0;33mW (13:05:00.411) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 4,[0m
[0;33mW (13:05:03.548) BOBO_CONNECT: Wi-Fi disconnected,retry to connect to the AP,restart 5,[0m
[0;31mE (13:05:06.685) BOBO_CONNECT: Report BOBO_NET_MODULE WIFI Can't Successfully Connected AP![0m
[0;31mE (13:05:06.686) BOBO_NET_MODULE: Delay 20 Second to reconnect.[0m
[0;33mW (13:05:27.690) BOBO_CONNECT: Connecting to SSID: ÷Þ¥wifiKš“ewifi
ð ,Passord: .[0m

ttxs1002004
Posts: 14
Joined: Thu Apr 22, 2021 7:09 pm

Re: ESP32 STATION 正接AP时候发生了PANIC然后重启了

Postby ttxs1002004 » Sun Apr 25, 2021 5:48 am

因为可能用户配网后换地方了,原来AP连不上了,而又没有配置新地方的AP,于是就会WIFI断开。如果用户忘记配网,固件应该也能正常工作,就是我测测试的目的。否则用户一旦想起配网,却不能配网(蓝牙,也就是固件疯了),就是大问题了。我上一贴子日志显示,长期连不上会重启的!尽管重启时间很短,也不影响产品功能,但是是个隐患,我希望消灭所有已知隐患。

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: ESP32 STATION 正接AP时候发生了PANIC然后重启了

Postby ESP_Gargamel » Sun Apr 25, 2021 6:23 am

1、产品正常工作时,会有蓝牙功能吗?还是蓝牙只用来配网?如果只是用来配网,那能否修改流程?在配过网之后就关闭蓝牙,重启的情况也不用开启蓝牙。如果到了一个新的环境,连不上网络,需要复位,重新进入配网模式。
2、能否解析一下 crash 时候 backtrace?看一下 call stack。

ttxs1002004
Posts: 14
Joined: Thu Apr 22, 2021 7:09 pm

Re: ESP32 STATION 正接AP时候发生了PANIC然后重启了

Postby ttxs1002004 » Sun Apr 25, 2021 6:37 am

蓝牙始终开着,这样用户可以随时配网。我测试,连续配网,都不会出错。
另外,这样不用专门切换到配网模式,用户体验应该更好。

日志上显示,显示连续3此BTC TASK WDT触发,然后发狂,大约1秒后重启。

BT代码基于你们DEMO BLE服务器代码,增加我呢逻辑(读,写,执行写的具体动作:用写/执行写的数据作为配网SSID/PASSWORD,重新连接WIFI,成功后响应以“OK”给GATT客户端。不配网情况下,读蓝牙特征即可知道是否WIFI连接OK。只有一个特征。

Who is online

Users browsing this forum: No registered users and 33 guests