xyzroe / XZG

Unifies the best innovations from previous Zigbee gateway projects into a single, comprehensive solution
https://xzg.xyzroe.cc/
GNU General Public License v3.0
96 stars 21 forks source link

Unexpected reboot of esp32 #88

Open yzwudong opened 1 month ago

yzwudong commented 1 month ago

Describe the bug Sometimes the device auto reboot. log is here: ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x12 (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:184 load:0x40078000,len:12736 load:0x40080400,len:2716 entry 0x40080594 1146 [printLogMsg] [ZB] Chip: CC2652P7 1147 [printLogMsg] [ZB] IEEE: 00:12:4B:00:2A:7B:4D:01 1147 [zbHwCheck] modeCfg ffc1b9fd 1157 [zbHwCheck] bslCfg c50ffec5 1158 [printLogMsg] [ZB] Flash size: 704 KB 1724 [setup] Config: { "network-config": { "wifiEnbl": false, "wifiSsid": "", "wifiPass": "", "wifiDhcp": true, "wifiIp": "::", "wifiMask": "255.255.255.0", "wifiGate": "::", "wifiDns1": "1.1.1.1", "wifiDns2": "8.8.8.8", "wifiPwr": 78, "wifiMode": 1, "ethEnbl": true, "ethDhcp": true, "ethIp": "::", "ethMask": "255.255.255.0", "ethGate": "::", "ethDns1": "1.1.1.1", "ethDns2": "8.8.8.8" }, "vpn-config": { "wgEnable": false, "wgLocalIP": "::", "wgLocalSubnet": "255.255.255.0", "wgLocalPort": 33333, "wgLocalGateway": "0.0.0.0", "wgLocalPrivKey": "", "wgEndAddr": "", "wgEndPubKey": "", "wgEndPort": 0, "wgAllowedIP": "0.0.0.0", "wgAllowedMask": "0.0.0.0", "wgMakeDefault": true, "wgPreSharedKey": "", "hnEnable": false, "hnJoinCode": "", "hnHostName": "XZG-B196", "hnDashUrl": "default" }, "mqtt-config": { "enable": false, "server": "", "port": 1883, "user": "", "pass": "", "topic": "XZG-B196", "updateInt": 60, "discovery": true, "reconnectInt": 15 }, "system-config": { "disableWeb": false, "webAuth": false, "webUser": "", "webPass": "", "fwEnabled": false, "fwIp": "0.0.0.0", "serialSpeed": 115200, "socketPort": 6638, "tempOffset": 13, "disableLedUSB": false, "disableLedPwr": false, "refreshLogs": 1, "hostname": "XZG", "timeZone": "Europe/Berlin", "ntpServ1": "pool.ntp.org", "ntpServ2": "time.google.com", "nightMode": false, "startHour": "23:00", "endHour": "07:00", "workMode": 0, "zbRole": 0, "zbFw": "?", "updHour": "01:00", "updDays": "", "autoIns": false } } 1880 [setup] VARS: { "system-vars": { "hwBtnIs": true, "hwLedUsbIs": true, "hwLedPwrIs": true, "hwZigbeeIs": true, "connectedClients": 0, "socketTime": 0, "connectedEther": false, "apStarted": false, "wifiWebSetupInProgress": false, "vpnWgInit": false, "vpnWgConnect": false, "vpnWgPeerIp": "::", "vpnWgCheckTimeKey": 0, "vpnHnInit": false, "mqttConn": false, "mqttReconnectTime": 0, "mqttHeartbeatTime": 0, "disableLeds": false, "zbFlashing": false, "deviceId": "XZG-B196", "espUpdAvail": false, "zbUpdAvail": false } } 1942 [setupCoordinatorMode] Network 3628 [mDNS_start] mDNS responder started on XZG.local 3642 [printNVSFreeSpace] Total: 630, Used: 111, Free: 519 4473 [NetworkEvent] ETH MAC: 10:06:1C:BB:82:17, IP: 192.168.0.46, Mask: 255.255.255.0, Gw: 192.168.0.1, DNS: 192.168.0.1, 100Mbps 4485 [printLogMsg] [DNS] Saved ETH - 192.168.0.1 5624 [printLogMsg] [Time] Wed Jul 10 15:24:44 2024 5624 [printLogMsg] [UPD_CHK] cron 43 0 1 15413 [printLogMsg] [ZB] FW: Unknown! Check serial speed! 15413 [setup] [ESP] FW: 20240710 15413 [setup] Load cfg ZBC03P 16176 [setup] done **Guru Meditation Error: Core 0 panic'ed (Unhandled debug exception). Debug exception reason: Stack canary watchpoint triggered (update Web Task) Core 0 register dump: PC : 0x40084cd5 PS : 0x00060736 A0 : 0x3ffda3a0 A1 : 0x3ffda2e0
A2 : 0x00000000 A3 : 0x00060723 A4 : 0x00060720 A5 : 0x3ffcc370
A6 : 0x3ffdae3c A7 : 0x00000002 A8 : 0x3ffc8514 A9 : 0x00000001
A10 : 0x00000000 A11 : 0x00060723 A12 : 0x00000001 A13 : 0x3ffda4af
A14 : 0x3ffb7fc8 A15 : 0x3ffbc9f0 SAR : 0x0000001c EXCCAUSE: 0x00000001
EXCVADDR: 0x00000000 LBEG : 0x4008a24d LEND : 0x4008a25d LCOUNT : 0xfffffffb

Backtrace: 0x40084cd2:0x3ffda2e0 0x3ffda39d:0x3ffda3b0 |<-CORRUPTED ELF file SHA256: 0000000000000000

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

Device information { "board": "ZBC03P", "addr": 1, "pwrPin": -1, "mdcPin": 23, "mdiPin": 18, "phyType": 0, "clkMode": 3, "btnPin": 34, "btnPlr": 1, "uartSelPin": 13, "uartSelPlr": 1, "ledModePin": 4, "ledModePlr": 1, "ledPwrPin": 14, "ledPwrPlr": 1, "zbTxPin": 5, "zbRxPin": 16, "zbRstPin": 33, "zbBslPin": 32 }

xyzroe commented 1 month ago

What board you're using?

yzwudong commented 1 month ago

//// "workMode": 0, "zbRole": 0, "zbFw": "?",
///// This issue occurs after a failed role switch

xyzroe commented 1 month ago

ESP won't reboot if it couldn't detect Zigbee version. But I asked you some question. If you need help - provide information.

xyzroe commented 1 month ago

@yzwudong will you provide any additional information?

codinv commented 6 days ago

I have the same problem device HMG-01 Plus board HG POE Plus 20240901-171255 552