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
78 stars 21 forks source link

XZG Zigbee Firmware 20240510 #11

Closed rombrock closed 1 month ago

rombrock commented 2 months ago

Today I updated via LAN my ZigStar Lan Gateway. Device model WT32-ETH01 FW revision 20240510 HW version ESP32-D0WD The device is recognized by iobroker, but the connection is offline every 30 to 60 minutes. After a few minutes it is online again, but the adapter (zigbee.iobroker) in the iobroker remains yellow. Only after restarting the adapter will it turn green again.

rombrock commented 2 months ago

Hello everyone, I reinstalled the old firmware and the connection is now stable again. No failure for over an hour, with the new version (FW revision 20240510) there were interruptions about every 45 minutes. FW version: 0.6.10 Hardware: WT32-ETH01 ESP32 model: ESP32-D0WDQ5 I didn't change anything, no replacing the power supply.

Steltek commented 2 months ago

Chiming in: I wasn't able to get FW 20240508/20240509 to work on my ZigStar LAN PoE gateway because the LAN connection would not work. It worked once immediately after flash with DHCP, and then never again. No combination of LAN DHCP or static IP address settings would make the LAN connection come up, and I tried re-flashing the firmware multiple times. (I also wasn't able to connect it to my Wi-Fi, though that may be normal as I've never used Wi-Fi before on it.) I rolled back to the old firmware and the device started working normally again.

Hardware and previous firmware: FW version : 0.6.10 Hardware : TTGO T-Internet-POE ESP32 model : ESP32-D0WDQ5

xyzroe commented 2 months ago

Today I updated via LAN my ZigStar Lan Gateway. Device model WT32-ETH01 FW revision 20240510 HW version ESP32-D0WD The device is recognized by iobroker, but the connection is offline every 30 to 60 minutes. After a few minutes it is online again, but the adapter (zigbee.iobroker) in the iobroker remains yellow. Only after restarting the adapter will it turn green again.

  1. You mean socket connection to Zigbee module, right?
  2. How about uptime of the gateway? Does is drops to 0 after connection goes offline?
xyzroe commented 2 months ago

Chiming in: I wasn't able to get FW 20240508/20240509 to work on my ZigStar LAN PoE gateway because the LAN connection would not work. It worked once immediately after flash with DHCP, and then never again. No combination of LAN DHCP or static IP address settings would make the LAN connection come up, and I tried re-flashing the firmware multiple times. (I also wasn't able to connect it to my Wi-Fi, though that may be normal as I've never used Wi-Fi before on it.) I rolled back to the old firmware and the device started working normally again.

Hardware and previous firmware: FW version : 0.6.10 Hardware : TTGO T-Internet-POE ESP32 model : ESP32-D0WDQ5

I need a little bit more information.

  1. Right after flashing it started ok, what device model was shown in web UI?
  2. If there isn't any connection for more that 60 seconds WiFi AP will start. Than you can check the device model and lan settings.
  3. Also check device model when LAN doesn't start successfully.
Steltek commented 2 months ago

I need a little bit more information.

1. Right after flashing it started ok, what device model was shown in web UI?

2. If there isn't any connection for more that 60 seconds WiFi AP will start. Than you can check the device model and lan settings.

3. Also check device model when LAN doesn't start successfully.

Right after upgrading, no LAN connected yet, only USB:

Device model: Olimex-ESP32-POE FW revision: 20240510 HW version: ESP32-D0WD

Unplugged USB (power down) and plugged in Ethernet PoE. Device booted and took an IP from the DHCPd. Model info etc stayed the same.

Changing the network configuration to static (DHCP off, IP 192.168.1.x, gateway 192.168.1.y, DNS servers 1.1.1.1 and 8.8.8.8) and rebooting: No more LAN connection. (Orange LED on for 2-3 seconds, then green LED comes on and the orange LED is blinking for a second, back to orange LED on, .... loop. The interface on the switch side never shows a link.) The XZG... AP appears but I either can't connect to it, or get disconnected immediately after connecting. (Feels like the device is in a boot/crash loop.)

Update: Same symptoms on a non-PoE interface.

Serial/USB console output:

11303 [NetworkEvent] ETH MAC: A8:03:2A:aa:bb:cc, IP: 192.168.1.x, Mask: 255.255.255.0, Gw: 192.168.1.y, 100Mbps
21303 [NetworkEvent] ETH MAC: A8:03:2A:aa:bb:cc, IP: 192.168.1.x, Mask: 255.255.255.0, Gw: 192.168.1.y, 100Mbps
31303 [NetworkEvent] ETH MAC: A8:03:2A:aa:bb:cc, IP: 192.168.1.x, Mask: 255.255.255.0, Gw: 192.168.1.y, 100Mbps
41328 [NetworkEvent] ETH MAC: A8:03:2A:aa:bb:cc, IP: 192.168.1.x, Mask: 255.255.255.0, Gw: 192.168.1.y, 100Mbps
51383 [NetworkEvent] ETH MAC: A8:03:2A:aa:bb:cc, IP: 192.168.1.x, Mask: 255.255.255.0, Gw: 192.168.1.y, 100Mbps
61329 [NetworkEvent] ETH MAC: A8:03:2A:aa:bb:cc, IP: 192.168.1.x, Mask: 255.255.255.0, Gw: 192.168.1.y, 100Mbps
71329 [NetworkEvent] ETH MAC: A8:03:2A:aa:bb:cc, IP: 192.168.1.x, Mask: 255.255.255.0, Gw: 192.168.1.y, 100Mbps
79329 [NetworkEvent] ETH MAC: A8:03:2A:aa:bb:cc, IP: 192.168.1.x, Mask: 255.255.255.0, Gw: 192.168.1.y, 100Mbps
89328 [NetworkEvent] ETH MAC: A8:03:2A:aa:bb:cc, IP: 192.168.1.x, Mask: 255.255.255.0, Gw: 192.168.1.y, 100Mbps
105383 [NetworkEvent] ETH MAC: A8:03:2A:aa:bb:cc, IP: 192.168.1.x, Mask: 255.255.255.0, Gw: 192.168.1.y, 100Mbps
115328 [NetworkEvent] ETH MAC: A8:03:2A:aa:bb:cc, IP: 192.168.1.x, Mask: 255.255.255.0, Gw: 192.168.1.y, 100Mbps

abort() was called at PC 0x40175a4f on core 0

Backtrace: 0x400827d9:0x3ffd0680 0x4008c921:0x3ffd06a0 0x4008ff0d:0x3ffd06c0 0x40175a4f:0x3ffd0740 0x40175a96:0x3ffd0760 0x40176219:0x3ffd0780 0x40175ac8:0x3ffd07a0 0x400f1af6:0x3ffd07c0 0x400f1ba1:0x3ffd0810 0x400f1bf2:0x3ffd0860 0x400e05fb:0x3ffd08a0 0x400d9833:0x3ffd0900 0x400d98ec:0x3ffd0930 0x400e75f3:0x3ffd0a00 0x400e783c:0x3ffd0b90

ELF file SHA256: 0000000000000000

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

rst:0xc (SW_CPU_RESET),boot:0x13 (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

Update 2: After this, re-flashing the firmware does not make LAN work again. Problem with the link remains the same. Blinking sequence is the same. It is possible to get in via Wi-Fi by unplugging the LAN interface, and I can confirm the LAN settings are back to default (Ethernet Enabled, DHCP enabled), but link will no longer establish. It looks like the only way to make the LAN connection work again with DHCP is to go back to the old ZigStar GW firmware, and then to XZG.

xyzroe commented 2 months ago

The main problem is from board detecting mechanism. Just because of unplugged LAN cable during first boot. You could try to factory reset using tools page, with plugged in LAN cable. Also pay attention on device model on root page if any problems.

Steltek commented 1 month ago

I flashed version 20240519 via USB with the network (without PoE) attached. First reboot happened, and the device did not manage to connect to the network (Link on the switch did not come up, DHCP logged no request). () Factory reset did not change anything. ()

Disconnect USB and Ethernet, then plugged in Ethernet with PoE. No link, no DHCP request. () Performed factory reset. Did not change anything. ()

(*) The device remains stuck like before, the yellow Ethernet light is on for a few seconds, then the green one turns on and the yellow one blinks for a second, then the green one turns off and the yellow one stays on normally again (keeps looping like that).

Hardware in the WebUI still shows the same:

Device model: Olimex-ESP32-POE FW revision: 20240519 HW version: ESP32-D0WD

Steltek commented 1 month ago

My issue doesn't appear to match with what @rombrock reported above, so I've split it off into #16 to avoid further polluting this one.

rombrock commented 1 month ago

Today I updated via LAN my ZigStar Lan Gateway. Device model WT32-ETH01 FW revision 20240510 HW version ESP32-D0WD The device is recognized by iobroker, but the connection is offline every 30 to 60 minutes. After a few minutes it is online again, but the adapter (zigbee.iobroker) in the iobroker remains yellow. Only after restarting the adapter will it turn green again.

1. You mean socket connection to Zigbee module, right?

2. How about uptime of the gateway? Does is drops to 0 after connection goes offline?
  1. Yes, i mean socket Connection to Zigbee module
  2. Since I have reinstalled the old firmware, I cannot say anything for sure about it
xyzroe commented 1 month ago

It can be caused by two reasons: hang up Zigbee module or reboot ESP32. That's why we need to know about uptime.

rombrock commented 1 month ago

Okay, then I'll update the second Zigbee adapter to the new version and see what happens. I'll report back.

rombrock commented 1 month ago

I hope this helps a little. After 47 minutes, the Zigbee adapter lost its connection to the iobroker. The adapter (ESP32) then restarted and the connection times started again at zero. The connection to the iobroker is not established automatically. I cannot provide the raw data from the debug console as this is deleted when the adapter is restarted.

Another note: Since the Zigbee adapter did not work at the beginning after the web update, I installed the firmware via USB. Then the Zigbee adapter finally established the connection to the iobroker (green digit). My File : configHw.json { "board": "WT32-ETH01", "addr": 1, "pwrPin": 16, "mdcPin": 23, "mdiPin": 18, "phyType": 0, "clkMode": 0, "pwrAltPin": -1, "btnPin": -1, "btnPlr": 0, "uartSelPin": -1, "uartSelPlr": 0, "ledModePin": -1, "ledModePlr": 0, "ledPwrPin": -1, "ledPwrPlr": 0, "zbTxPin": 17, "zbRxPin": 5, "zbRstPin": 33, "zbBslPin": 32 }

rombrock commented 1 month ago

I left the adapter running last night and could see that the ESP32 restarted after about 45 minutes. This morning I started the adapter again and after about 45 minutes the same thing happened again, the ESP32 restarted but the connection to the iobroker was not established automatically. A restart must be performed in iobroker. Here is the current information from the debug console. 58] -> fe 00 27 00 27 [29667] <- fe 12 67 00 00 43 2c d1 26 00 4b 12 00 00 00 07 09 02 90 a0 90 a0 b8 [29670] -> fe 04 25 05 00 00 00 00 24 [29671] -> fe 04 25 05 00 00 00 00 24 [29675] <- fe 12 67 00 00 43 2c d1 26 00 4b 12 00 00 00 07 09 02 90 a0 90 a0 b8 [29680] <- fe 01 65 05 00 61 fe 0b 45 85 00 00 00 00 00 05 05 04 03 02 01 cf fe 01 65 05 00 61 [29684] -> fe 09 24 00 06 09 01 05 00 00 00 00 00 26 [29685] -> fe 09 24 00 06 09 01 05 00 00 00 00 00 26 [29689] <- fe 0b 45 85 00 00 00 00 00 05 05 04 03 02 01 cf [29694] <- fe 01 64 00 00 65 fe 01 64 00 b8 dd [29696] -> fe 09 24 00 08 04 01 05 00 00 00 00 00 25 [29697] -> fe 09 24 00 08 04 01 05 00 00 00 00 00 25 [29704] <- fe 01 64 00 00 65 fe 01 64 00 b8 dd [29708] -> fe 09 24 00 0a 04 01 05 00 00 00 00 00 27 [29709] -> fe 09 24 00 0a 04 01 05 00 00 00 00 00 27 [29715] <- fe 01 64 00 00 65 fe 01 64 00 b8 dd [29719] -> fe 11 24 00 0b 04 01 00 04 00 00 02 01 05 0a 00 02 00 05 02 05 33 [29720] -> fe 11 24 00 0b 04 01 00 04 00 00 02 01 05 0a 00 02 00 05 02 05 33 [29729] <- fe 01 64 00 00 65 fe 01 64 00 b8 dd [29732] -> fe 09 24 00 6e 04 01 05 00 00 00 00 00 43 [29733] -> fe 09 24 00 6e 04 01 05 00 00 00 00 00 43 [29739] <- fe 01 64 00 00 65 [29743] -> fe 09 24 00 0c 5e c0 05 00 00 00 00 00 ba [29744] -> fe 09 24 00 0c 5e c0 05 00 00 00 00 00 ba [29747] <- fe 01 64 00 b8 dd [29751] <- fe 01 64 00 00 65 fe 01 64 00 b8 dd [39767] | Connected client 5 from 192.168.1.75 [39768] -> ef [40768] -> fe 00 21 01 20 [40775] <- fe 02 61 01 59 06 3d [40778] -> fe 00 21 02 23 [40786] <- fe 0a 61 02 02 01 02 07 01 2a 8d 34 01 00 fc [40790] -> fe 02 21 13 82 00 b2 [40802] <- fe 02 61 13 18 00 68 [40806] -> fe 04 21 1c 82 00 00 00 bb [40828] <- fe 1a 61 1c 00 18 00 ee f4 94 8d 43 62 64 3e a9 1a 98 01 d6 2a e4 77 ee f4 94 89 13 00 00 56 [40831] -> fe 02 21 13 60 00 50 [40838] <- fe 02 61 13 01 00 71 [40841] -> fe 04 21 1c 60 00 00 00 59 [40850] <- fe 03 61 1c 00 01 55 2a [40853] -> fe 02 21 13 21 00 11 [40862] <- fe 02 61 13 74 00 04 [40865] -> fe 04 21 1c 21 00 00 00 18 [40889] <- fe 76 61 1c 00 74 29 05 02 65 0f 65 00 1e 00 00 00 01 05 01 8f 00 07 00 02 0d 02 00 00 00 19 00 00 00 00 00 00 00 00 00 00 00 90 19 08 00 00 00 00 02 0f 0f 04 00 01 00 00 00 01 00 00 00 00 00 12 4b 00 21 9f b6 32 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0f 05 00 01 3c 0a 01 00 00 00 02 00 00 00 02 [40892] -> fe 02 21 13 62 00 52 [40900] <- fe 02 61 13 10 00 60 [40903] -> fe 04 21 1c 62 00 00 00 5b [40913] <- fe 12 61 1c 00 10 01 03 05 07 09 0b 0d 0f 00 02 04 06 08 0a 0c 0d 7c [40918] -> fe 02 21 13 3a 00 0a [40927] <- fe 02 61 13 11 00 61 [40930] -> fe 04 21 1c 3a 00 00 00 03 [40944] <- fe 13 61 1c 00 11 00 01 03 05 07 09 0b 0d 0f 00 02 04 06 08 0a 0c 0d 7c [40946] -> fe 02 21 13 3b 00 0b [40955] <- fe 02 61 13 11 00 61 [40958] -> fe 04 21 1c 3b 00 00 00 02 [40972] <- fe 13 61 1c 00 11 00 01 03 05 07 09 0b 0d 0f 00 02 04 06 08 0a 0c 0d 7c [40976] -> fe 00 27 00 27 [40985] <- fe 12 67 00 00 43 2c d1 26 00 4b 12 00 00 00 07 09 02 90 a0 90 a0 b8 [40988] -> fe 04 25 05 00 00 00 00 24 [40996] <- fe 01 65 05 00 61 [41001] <- fe 11 45 85 00 00 00 00 00 0b 0c 6e 0b 0a 08 06 05 04 03 02 01 b6 [41004] -> fe 0b 24 00 0d 04 01 05 00 00 00 01 19 00 00 3a [41013] <- fe 01 64 00 00 65 [41017] -> fe 09 24 00 2f 04 01 05 00 00 00 00 00 02 [41024] <- fe 01 64 00 00 65 [41027] -> fe 09 24 00 f2 e0 a1 05 00 00 00 00 00 9b [41034] <- fe 01 64 00 00 65 [41037] -> fe 03 25 4a f2 84 0b 11 [41045] <- fe 13 65 4a 00 84 0b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 b3 [644467] | Connected client 1 from 192.168.1.75 [644619] -> ef [645641] -> fe 00 21 01 20 [645644] <- fe 02 61 01 59 06 3d [645649] -> fe 00 21 02 23 [645653] <- fe 0a 61 02 02 01 02 07 01 2a 8d 34 01 00 fc [645659] -> fe 02 21 13 82 00 b2 [645668] <- fe 02 61 13 18 00 68 [645671] -> fe 04 21 1c 82 00 00 00 bb [645690] <- fe 1a 61 1c 00 18 00 ee f4 94 8d 43 62 64 3e a9 1a 98 01 d6 2a e4 77 ee f4 94 89 13 00 00 56 [645694] -> fe 02 21 13 60 00 50 [645699] <- fe 02 61 13 01 00 71 [645704] -> fe 04 21 1c 60 00 00 00 59 [645709] <- fe 03 61 1c 00 01 55 2a [645715] -> fe 02 21 13 21 00 11 [645721] <- fe 02 61 13 74 00 04 [645725] -> fe 04 21 1c 21 00 00 00 18 [645746] <- fe 76 61 1c 00 74 29 05 02 65 0f 65 00 1e 00 00 00 01 05 01 8f 00 07 00 02 0d 02 00 00 00 19 00 00 00 00 00 00 00 00 00 00 00 90 19 08 00 00 00 00 02 0f 0f 04 00 01 00 00 00 01 00 00 00 00 00 12 4b 00 21 9f b6 32 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0f 05 00 01 3c 0a 01 00 00 00 02 00 00 00 02 [645752] -> fe 02 21 13 62 00 52 [645756] <- fe 02 61 13 10 00 60 [645759] -> fe 04 21 1c 62 00 00 00 5b [645766] <- fe 12 61 1c 00 10 01 03 05 07 09 0b 0d 0f 00 02 04 06 08 0a 0c 0d 7c [645769] -> fe 02 21 13 3a 00 0a [645775] <- fe 02 61 13 11 00 61 [645778] -> fe 04 21 1c 3a 00 00 00 03 [645788] <- fe 13 61 1c 00 11 00 01 03 05 07 09 0b 0d 0f 00 02 04 06 08 0a 0c 0d 7c [645791] -> fe 02 21 13 3b 00 0b [645797] <- fe 02 61 13 11 00 61 [645801] -> fe 04 21 1c 3b 00 00 00 02 [645810] <- fe 13 61 1c 00 11 00 01 03 05 07 09 0b 0d 0f 00 02 04 06 08 0a 0c 0d 7c [645817] -> fe 00 27 00 27 [645824] <- fe 12 67 00 00 43 2c d1 26 00 4b 12 00 00 00 07 09 02 90 a0 90 a0 b8 [645828] -> fe 04 25 05 00 00 00 00 24 [645832] <- fe 01 65 05 00 61 [645834] <- fe 14 45 85 00 00 00 00 00 0e f2 2f 0d 0c 6e 0b 0a 08 06 05 04 03 02 01 66 [645839] -> fe 03 25 4a f2 84 0b 11 [645844] <- fe 13 65 4a 00 84 0b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 b3 [645848] -> fe 04 25 05 00 00 00 00 24 [645852] <- fe 01 65 05 00 61 [645854] <- fe 14 45 85 00 00 00 00 00 0e f2 2f 0d 0c 6e 0b 0a 08 06 05 04 03 02 01 66 [645857] -> fe 00 27 00 27 [645864] <- fe 12 67 00 00 43 2c d1 26 00 4b 12 00 00 00 07 09 02 90 a0 90 a0 b8 [645868] -> fe 05 25 04 00 00 00 00 f2 d6 [645873] <- fe 01 65 04 00 60 [645875] <- fe 0e 45 84 00 00 00 00 00 08 f2 e0 a1 05 00 00 00 00 71 [645878] -> fe 05 25 04 00 00 00 00 2f 0b [645882] <- fe 01 65 04 00 60 [645884] <- fe 0e 45 84 00 00 00 00 00 08 2f 04 01 05 00 00 00 00 e8 [645887] -> fe 05 25 04 00 00 00 00 0d 29 [645891] <- fe 01 65 04 00 60 [645893] <- fe 10 45 84 00 00 00 00 00 0a 0d 04 01 05 00 00 01 19 00 00 ce [645896] -> fe 05 25 04 00 00 00 00 0c 28 [645900] <- fe 01 65 04 00 60 [645902] <- fe 0e 45 84 00 00 00 00 00 08 0c 5e c0 05 00 00 00 00 50 [645905] -> fe 05 25 04 00 00 00 00 6e 4a [645909] <- fe 01 65 04 00 60 [645911] <- fe 0e 45 84 00 00 00 00 00 08 6e 04 01 05 00 00 00 00 a9 [645914] -> fe 05 25 04 00 00 00 00 0b 2f [645918] <- fe 01 65 04 00 60 [645921] <- fe 16 45 84 00 00 00 00 00 10 0b 04 01 00 04 00 02 01 05 0a 00 02 00 05 02 05 c1 [645924] -> fe 05 25 04 00 00 00 00 0a 2e [645928] <- fe 01 65 04 00 60 [645930] <- fe 0e 45 84 00 00 00 00 00 08 0a 04 01 05 00 00 00 00 cd [645933] -> fe 05 25 04 00 00 00 00 08 2c [645937] <- fe 01 65 04 00 60 [645939] <- fe 0e 45 84 00 00 00 00 00 08 08 04 01 05 00 00 00 00 cf [645942] -> fe 05 25 04 00 00 00 00 06 22 [645946] <- fe 01 65 04 00 60 [645948] <- fe 0e 45 84 00 00 00 00 00 08 06 09 01 05 00 00 00 00 cc [645951] -> fe 05 25 04 00 00 00 00 05 21 [645957] <- fe 01 65 04 00 60 fe 0e 45 84 00 00 00 00 00 08 05 08 01 05 00 00 00 00 ce [645961] -> fe 05 25 04 00 00 00 00 04 20 [645965] <- fe 01 65 04 00 60 [645967] <- fe 0e 45 84 00 00 00 00 00 08 04 07 01 05 00 00 00 00 c0 [645970] -> fe 05 25 04 00 00 00 00 03 27 [645974] <- fe 01 65 04 00 60 [645976] <- fe 0e 45 84 00 00 00 00 00 08 03 04 01 05 00 00 00 00 c4 [645981] -> fe 05 25 04 00 00 00 00 02 26 [645985] <- fe 01 65 04 00 60 [645987] <- fe 0e 45 84 00 00 00 00 00 08 02 01 01 05 00 00 00 00 c0 [645992] -> fe 05 25 04 00 00 00 00 01 25 [645996] <- fe 01 65 04 00 60 [645998] <- fe 0e 45 84 00 00 00 00 00 08 01 04 01 05 00 00 00 00 c6 [646004] -> fe 00 25 50 75 [646009] <- fe 18 65 50 00 00 09 90 19 00 00 00 12 4b 00 21 9f b6 32 00 00 00 00 00 00 00 00 19 d7 [646028] -> fe 02 21 0f 00 00 2c [646031] <- fe 01 61 0f 00 6f

xyzroe commented 1 month ago

But you uptime doesn't drops to zero, it is only goes up. How did you detect that ESP32 restarted? It looks like Zigbee chip hangups. What Zigbee chip are you using? What firmware version?

rombrock commented 1 month ago

But your operating time doesn't go down to zero, it just goes up. How did you detect that ESP32 was restarted? The Device operating time counted from zero again.

It looks like the Zigbee chip is stuck. What Zigbee chip are you using? That's an ebyte chip.

What firmware version? FW revision 20221226

I have no problems with firmware version 06.10.

xyzroe commented 1 month ago

The Device operating time counted from zero again.

But in logs that you provide time only goes up. So I thought that way.

That's an ebyte chip.

OK.

FW revision 20221226

I have no problems with firmware version 06.10. OK. But we need to check all first.

Have you tried to use latest version of XZG ?

rombrock commented 1 month ago

I installed version 20240524 on the ESP and 20221226 on the Zigbee module. I use the same Zigbee firmware on my active adapter with FW06.10. I have the RAW data here until shortly before the crash. [1134] | [ZB] Chip: CC2652P2_other [1134] | [ZB] IEEE: 00:12:4B:00:26:D1:2C:43 [1145] | [ZB] Flash size: 352 KB [4243] | [ZB] fw: 20221226 [6672] | Local time: Fri May 24 19:03:32 2024 [47221] | Connected client 1 from 192.168.1.75 [47346] -> ef [48349] -> fe 00 21 01 20 [48353] <- fe 02 61 01 59 06 3d [48358] -> fe 00 21 02 23 [48361] <- fe 0a 61 02 02 01 02 07 01 2a 8d 34 01 00 fc [48366] -> fe 02 21 13 82 00 b2 [48372] <- fe 02 61 13 18 00 68 [48376] -> fe 04 21 1c 82 00 00 00 bb [48387] <- fe 1a 61 1c 00 18 00 ee f4 94 8d 43 62 64 3e a9 1a 98 01 d6 2a e4 77 ee f4 94 89 13 00 00 56 [48392] -> fe 02 21 13 60 00 50 [48400] <- fe 02 61 13 01 00 71 [48404] -> fe 04 21 1c 60 00 00 00 59 [48416] <- fe 03 61 1c 00 01 55 2a [48420] -> fe 02 21 13 21 00 11 [48425] <- fe 02 61 13 74 00 04 [48429] -> fe 04 21 1c 21 00 00 00 18 [48445] <- fe 76 61 1c 00 74 89 05 02 65 0f 65 00 1e 00 00 00 01 05 01 8f 00 07 00 02 0d 02 00 00 00 19 00 00 00 00 00 00 00 00 00 00 00 90 19 08 00 00 00 00 02 0f 0f 04 00 01 00 00 00 01 00 00 00 00 00 12 4b 00 21 9f b6 32 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0f 05 00 01 3c 0a 01 00 00 00 05 00 00 00 a5 [48451] -> fe 02 21 13 62 00 52 [48458] <- fe 02 61 13 10 00 60 [48463] -> fe 04 21 1c 62 00 00 00 5b [48476] <- fe 12 61 1c 00 10 01 03 05 07 09 0b 0d 0f 00 02 04 06 08 0a 0c 0d 7c [48481] -> fe 02 21 13 3a 00 0a [48489] <- fe 02 61 13 11 00 61 [48493] -> fe 04 21 1c 3a 00 00 00 03 [48508] <- fe 13 61 1c 00 11 00 01 03 05 07 09 0b 0d 0f 00 02 04 06 08 0a 0c 0d 7c [48512] -> fe 02 21 13 3b 00 0b [48520] <- fe 02 61 13 11 00 61 [48523] -> fe 04 21 1c 3b 00 00 00 02 [48575] <- fe 13 61 1c 00 11 00 01 03 05 07 09 0b 0d 0f 00 02 04 06 08 0a 0c 0d 7c [48589] -> fe 00 27 00 27 [48603] <- fe 0e 67 00 00 43 2c d1 26 00 4b 12 00 fe ff 07 00 00 ae [48607] -> fe 02 25 40 64 00 03 [51995] <- fe 01 65 40 00 24 [51997] <- fe 01 45 c0 09 8d fe 03 4f 80 0d 00 04 c5 [52001] -> fe 04 25 05 00 00 00 00 24 [52005] <- fe 01 65 05 00 61 [52008] <- fe 06 45 85 00 00 00 00 00 00 c6 [52011] -> fe 09 24 00 01 04 01 05 00 00 00 00 00 2c [52015] <- fe 01 64 00 00 65 [52019] -> fe 09 24 00 02 01 01 05 00 00 00 00 00 2a [52022] <- fe 01 64 00 00 65 [52027] -> fe 09 24 00 03 04 01 05 00 00 00 00 00 2e [52031] <- fe 01 64 00 00 65 [52035] -> fe 09 24 00 04 07 01 05 00 00 00 00 00 2a [52038] <- fe 01 64 00 00 65 [52042] -> fe 09 24 00 05 08 01 05 00 00 00 00 00 24 [52045] <- fe 01 64 00 00 65 [52050] -> fe 09 24 00 06 09 01 05 00 00 00 00 00 26 [52054] <- fe 01 64 00 00 65 [52058] -> fe 09 24 00 08 04 01 05 00 00 00 00 00 25 [52061] <- fe 01 64 00 00 65 [52065] -> fe 09 24 00 0a 04 01 05 00 00 00 00 00 27 [52068] <- fe 01 64 00 00 65 [52072] -> fe 11 24 00 0b 04 01 00 04 00 00 02 01 05 0a 00 02 00 05 02 05 33 [52076] <- fe 01 64 00 00 65 [52081] -> fe 09 24 00 6e 04 01 05 00 00 00 00 00 43 [52085] <- fe 01 64 00 00 65 [52089] -> fe 09 24 00 0c 5e c0 05 00 00 00 00 00 ba [52093] <- fe 01 64 00 00 65 [52097] -> fe 0b 24 00 0d 04 01 05 00 00 00 01 19 00 00 3a [52107] <- fe 01 64 00 00 65 [52110] -> fe 09 24 00 2f 04 01 05 00 00 00 00 00 02 [52114] <- fe 01 64 00 00 65 [52119] -> fe 09 24 00 f2 e0 a1 05 00 00 00 00 00 9b [52123] <- fe 01 64 00 00 65 [52127] -> fe 03 25 4a f2 84 0b 11 [52132] <- fe 13 65 4a 00 84 0b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 b3 [52136] -> fe 04 25 05 00 00 00 00 24 [52140] <- fe 01 65 05 00 61 [52143] <- fe 14 45 85 00 00 00 00 00 0e f2 2f 0d 0c 6e 0b 0a 08 06 05 04 03 02 01 66 [52147] -> fe 00 27 00 27 [52157] <- fe 12 67 00 00 43 2c d1 26 00 4b 12 00 00 00 07 09 02 90 a0 90 a0 b8 [52161] -> fe 05 25 04 00 00 00 00 f2 d6 [52165] <- fe 01 65 04 00 60 [52168] <- fe 0e 45 84 00 00 00 00 00 08 f2 e0 a1 05 00 00 00 00 71 [52171] -> fe 05 25 04 00 00 00 00 2f 0b [52176] <- fe 01 65 04 00 60 [52179] <- fe 0e 45 84 00 00 00 00 00 08 2f 04 01 05 00 00 00 00 e8 [52182] -> fe 05 25 04 00 00 00 00 0d 29 [52187] <- fe 01 65 04 00 60 [52190] <- fe 10 45 84 00 00 00 00 00 0a 0d 04 01 05 00 00 01 19 00 00 ce [52194] -> fe 05 25 04 00 00 00 00 0c 28 [52195] <- fe 03 4f 80 08 02 00 c6 [52198] <- fe 01 65 04 00 60 [52202] <- fe 0e 45 84 00 00 00 00 00 08 0c 5e c0 05 00 00 00 00 50 [52205] -> fe 05 25 04 00 00 00 00 6e 4a [52210] <- fe 01 65 04 00 60 [52213] <- fe 0e 45 84 00 00 00 00 00 08 6e 04 01 05 00 00 00 00 a9 [52216] -> fe 05 25 04 00 00 00 00 0b 2f [52220] <- fe 01 65 04 00 60 [52223] <- fe 16 45 84 00 00 00 00 00 10 0b 04 01 00 04 00 02 01 05 0a 00 02 00 05 02 05 c1 [52227] -> fe 05 25 04 00 00 00 00 0a 2e [52231] <- fe 01 65 04 00 60 [52234] <- fe 0e 45 84 00 00 00 00 00 08 0a 04 01 05 00 00 00 00 cd [52237] -> fe 05 25 04 00 00 00 00 08 2c [52242] <- fe 01 65 04 00 60 [52245] <- fe 0e 45 84 00 00 00 00 00 08 08 04 01 05 00 00 00 00 cf [52248] -> fe 05 25 04 00 00 00 00 06 22 [52252] <- fe 01 65 04 00 60 [52255] <- fe 0e 45 84 00 00 00 00 00 08 06 09 01 05 00 00 00 00 cc [52258] -> fe 05 25 04 00 00 00 00 05 21 [52263] <- fe 01 65 04 00 60 [52266] <- fe 0e 45 84 00 00 00 00 00 08 05 08 01 05 00 00 00 00 ce [52286] -> fe 05 25 04 00 00 00 00 04 20 [52290] <- fe 01 65 04 00 60 [52293] <- fe 0e 45 84 00 00 00 00 00 08 04 07 01 05 00 00 00 00 c0 [52296] -> fe 05 25 04 00 00 00 00 03 27 [52300] <- fe 01 65 04 00 60 [52303] <- fe 0e 45 84 00 00 00 00 00 08 03 04 01 05 00 00 00 00 c4 [52307] -> fe 05 25 04 00 00 00 00 02 26 [52311] <- fe 01 65 04 00 60 [52314] <- fe 0e 45 84 00 00 00 00 00 08 02 01 01 05 00 00 00 00 c0 [52317] -> fe 05 25 04 00 00 00 00 01 25 [52321] <- fe 01 65 04 00 60 [52324] <- fe 0e 45 84 00 00 00 00 00 08 01 04 01 05 00 00 00 00 c6 [52333] -> fe 00 25 50 75 [52338] <- fe 18 65 50 00 00 09 90 19 00 00 00 12 4b 00 21 9f b6 32 00 00 00 00 00 00 00 00 19 d7 [52354] -> fe 02 21 0f 00 00 2c [52357] <- fe 01 61 0f 00 6f

Here is the data after the restart. [1134] | [ZB] Chip: CC2652P2_other [1134] | [ZB] IEEE: 00:12:4B:00:26:D1:2C:43 [1145] | [ZB] Flash size: 352 KB [4137] | [ZB] fw: 20221226 [7196] | Local time: Fri May 24 19:44:46 2024 [15205] | Connected client 1 from 192.168.1.75 [15207] -> ef [16208] -> fe 00 21 01 20 [16212] <- fe 02 61 01 59 06 3d [16215] -> fe 00 21 02 23 [16219] <- fe 0a 61 02 02 01 02 07 01 2a 8d 34 01 00 fc [16223] -> fe 02 21 13 82 00 b2 [16229] <- fe 02 61 13 18 00 68 [16232] -> fe 04 21 1c 82 00 00 00 bb [16244] <- fe 1a 61 1c 00 18 00 ee f4 94 8d 43 62 64 3e a9 1a 98 01 d6 2a e4 77 ee f4 94 89 13 00 00 56 [16248] -> fe 02 21 13 60 00 50 [16255] <- fe 02 61 13 01 00 71 [16259] -> fe 04 21 1c 60 00 00 00 59 [16272] <- fe 03 61 1c 00 01 55 2a [16276] -> fe 02 21 13 21 00 11 [16280] <- fe 02 61 13 74 00 04 [16284] -> fe 04 21 1c 21 00 00 00 18 [16301] <- fe 76 61 1c 00 74 8a 05 02 65 0f 65 00 1e 00 00 00 01 05 01 8f 00 07 00 02 0d 02 00 00 00 19 00 00 00 00 00 00 00 00 00 00 00 90 19 08 00 00 00 00 02 0f 0f 04 00 01 00 00 00 01 00 00 00 00 00 12 4b 00 21 9f b6 32 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0f 05 00 01 3c 0a 01 00 00 00 05 00 00 00 a6 [16306] -> fe 02 21 13 62 00 52 [16314] <- fe 02 61 13 10 00 60 [16318] -> fe 04 21 1c 62 00 00 00 5b [16332] <- fe 12 61 1c 00 10 01 03 05 07 09 0b 0d 0f 00 02 04 06 08 0a 0c 0d 7c [16337] -> fe 02 21 13 3a 00 0a [16346] <- fe 02 61 13 11 00 61 [16350] -> fe 04 21 1c 3a 00 00 00 03 [16366] <- fe 13 61 1c 00 11 00 01 03 05 07 09 0b 0d 0f 00 02 04 06 08 0a 0c 0d 7c [16370] -> fe 02 21 13 3b 00 0b [16379] <- fe 02 61 13 11 00 61 [16383] -> fe 04 21 1c 3b 00 00 00 02 [16408] <- fe 13 61 1c 00 11 00 01 03 05 07 09 0b 0d 0f 00 02 04 06 08 0a 0c 0d 7c [16414] -> fe 00 27 00 27 [16423] <- fe 0e 67 00 00 43 2c d1 26 00 4b 12 00 fe ff 07 00 00 ae [16427] -> fe 02 25 40 64 00 03 [20049] <- fe 01 65 40 00 24 [20051] <- fe 01 45 c0 09 8d fe 03 4f 80 0d 00 04 c5 [20055] -> fe 04 25 05 00 00 00 00 24 [20059] <- fe 01 65 05 00 61 [20062] <- fe 06 45 85 00 00 00 00 00 00 c6 [20065] -> fe 09 24 00 01 04 01 05 00 00 00 00 00 2c [20069] <- fe 01 64 00 00 65 [20072] -> fe 09 24 00 02 01 01 05 00 00 00 00 00 2a [20076] <- fe 01 64 00 00 65 [20080] -> fe 09 24 00 03 04 01 05 00 00 00 00 00 2e [20083] <- fe 01 64 00 00 65 [20087] -> fe 09 24 00 04 07 01 05 00 00 00 00 00 2a [20090] <- fe 01 64 00 00 65 [20094] -> fe 09 24 00 05 08 01 05 00 00 00 00 00 24 [20097] <- fe 01 64 00 00 65 [20101] -> fe 09 24 00 06 09 01 05 00 00 00 00 00 26 [20104] <- fe 01 64 00 00 65 [20108] -> fe 09 24 00 08 04 01 05 00 00 00 00 00 25 [20111] <- fe 01 64 00 00 65 [20115] -> fe 09 24 00 0a 04 01 05 00 00 00 00 00 27 [20119] <- fe 01 64 00 00 65 [20123] -> fe 11 24 00 0b 04 01 00 04 00 00 02 01 05 0a 00 02 00 05 02 05 33 [20127] <- fe 01 64 00 00 65 [20131] -> fe 09 24 00 6e 04 01 05 00 00 00 00 00 43 [20134] <- fe 01 64 00 00 65 [20138] -> fe 09 24 00 0c 5e c0 05 00 00 00 00 00 ba [20142] <- fe 01 64 00 00 65 [20146] -> fe 0b 24 00 0d 04 01 05 00 00 00 01 19 00 00 3a [20161] <- fe 01 64 00 00 65 [20165] -> fe 09 24 00 2f 04 01 05 00 00 00 00 00 02 [20168] <- fe 01 64 00 00 65 [20172] -> fe 09 24 00 f2 e0 a1 05 00 00 00 00 00 9b [20176] <- fe 01 64 00 00 65 [20180] -> fe 03 25 4a f2 84 0b 11 [20185] <- fe 13 65 4a 00 84 0b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 b3 [20188] -> fe 04 25 05 00 00 00 00 24 [20192] <- fe 01 65 05 00 61 [20195] <- fe 14 45 85 00 00 00 00 00 0e f2 2f 0d 0c 6e 0b 0a 08 06 05 04 03 02 01 66 [20199] -> fe 00 27 00 27 [20209] <- fe 12 67 00 00 43 2c d1 26 00 4b 12 00 00 00 07 09 02 90 a0 90 a0 b8 [20213] -> fe 05 25 04 00 00 00 00 f2 d6 [20217] <- fe 01 65 04 00 60 [20220] <- fe 0e 45 84 00 00 00 00 00 08 f2 e0 a1 05 00 00 00 00 71 [20223] -> fe 05 25 04 00 00 00 00 2f 0b [20227] <- fe 01 65 04 00 60 [20230] <- fe 0e 45 84 00 00 00 00 00 08 2f 04 01 05 00 00 00 00 e8 [20233] -> fe 05 25 04 00 00 00 00 0d 29 [20238] <- fe 01 65 04 00 60 [20241] <- fe 10 45 84 00 00 00 00 00 0a 0d 04 01 05 00 00 01 19 00 00 ce [20245] -> fe 05 25 04 00 00 00 00 0c 28 [20248] <- fe 03 4f 80 08 02 00 c6 [20251] <- fe 01 65 04 00 60 fe 0e 45 84 00 00 00 00 00 08 0c 5e c0 05 00 00 00 00 50 [20256] -> fe 05 25 04 00 00 00 00 6e 4a [20260] <- fe 01 65 04 00 60 [20263] <- fe 0e 45 84 00 00 00 00 00 08 6e 04 01 05 00 00 00 00 a9 [20268] -> fe 05 25 04 00 00 00 00 0b 2f [20272] <- fe 01 65 04 00 60 [20275] <- fe 16 45 84 00 00 00 00 00 10 0b 04 01 00 04 00 02 01 05 0a 00 02 00 05 02 05 c1 [20278] -> fe 05 25 04 00 00 00 00 0a 2e [20282] <- fe 01 65 04 00 60 [20285] <- fe 0e 45 84 00 00 00 00 00 08 0a 04 01 05 00 00 00 00 cd [20288] -> fe 05 25 04 00 00 00 00 08 2c [20292] <- fe 01 65 04 00 60 [20295] <- fe 0e 45 84 00 00 00 00 00 08 08 04 01 05 00 00 00 00 cf [20298] -> fe 05 25 04 00 00 00 00 06 22 [20303] <- fe 01 65 04 00 60 [20306] <- fe 0e 45 84 00 00 00 00 00 08 06 09 01 05 00 00 00 00 cc [20309] -> fe 05 25 04 00 00 00 00 05 21 [20314] <- fe 01 65 04 00 60 [20317] <- fe 0e 45 84 00 00 00 00 00 08 05 08 01 05 00 00 00 00 ce [20320] -> fe 05 25 04 00 00 00 00 04 20 [20325] <- fe 01 65 04 00 60 [20328] <- fe 0e 45 84 00 00 00 00 00 08 04 07 01 05 00 00 00 00 c0 [20331] -> fe 05 25 04 00 00 00 00 03 27 [20336] <- fe 01 65 04 00 60 [20339] <- fe 0e 45 84 00 00 00 00 00 08 03 04 01 05 00 00 00 00 c4 [20343] -> fe 05 25 04 00 00 00 00 02 26 [20347] <- fe 01 65 04 00 60 [20350] <- fe 0e 45 84 00 00 00 00 00 08 02 01 01 05 00 00 00 00 c0 [20354] -> fe 05 25 04 00 00 00 00 01 25 [20358] <- fe 01 65 04 00 60 [20361] <- fe 0e 45 84 00 00 00 00 00 08 01 04 01 05 00 00 00 00 c6 [20369] -> fe 02 21 0f 00 00 2c [20373] <- fe 01 61 0f 00 6f

xyzroe commented 1 month ago

Do you keep your tab with web UI open continuously?

rombrock commented 1 month ago

Yes, the tab is permanently open.

When the failure occurs, 5 devices are shown as connected. But since it is a test environment, it can actually only be one device. Then in iobroker we noticed that the RAM usage was no longer 130 MB but had gone up to over 600 MB.

xyzroe commented 1 month ago

It looks like some problems with iobroker. It's the first report about the socket connections count is wrong.

xyzroe commented 1 month ago

I have no other ideas at the moment.

rombrock commented 1 month ago

That's not a problem at the moment. My active Zigbee LAN adapter is currently still running on the old version.