Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zigbee: problem with battery powered devices after power off/on #10612

Open
1 task done
michapr opened this issue Nov 17, 2024 · 38 comments
Open
1 task done

Zigbee: problem with battery powered devices after power off/on #10612

michapr opened this issue Nov 17, 2024 · 38 comments
Assignees
Labels
Chip: ESP32-C6 Issue is related to support of ESP32-C6 Chip Status: In Progress Issue is in progress

Comments

@michapr
Copy link

michapr commented Nov 17, 2024

Board

ESP32C6

Device Description

DevKit

Hardware Configuration

No external connections, only modul.

Version

latest development Release Candidate (RC-X)

IDE Name

Arduino IDE

Operating System

Windows 11

Flash frequency

80MHz

PSRAM enabled

no

Upload speed

921600

Description

Using Zigbee2MQTT battery powered device will be recognized and values will be reported as expected.
After power on/off device (remove power) the device will not more join and send values to the network and reboots regularly.

Have seen that this is happen only for battery powered devices.

If adding some delay after Zigbee.addEndpoint(&zbTempSensor); and after Zigbee.begin(); device will not reboot, but will also not join again / report values (some other debug messages).

Sketch

example Zigbee_Temperature_Sensor.ino modified:

static void temp_sensor_value_update(void *arg) {
  for (;;) {
    // Read temperature sensor value
    float tsens_value = temperatureRead();
    log_v("Temperature sensor value: %.2f°C", tsens_value);
    // Update temperature value in Temperature sensor EP
    zbTempSensor.setTemperature(tsens_value);
    zbTempSensor.setHumidity(tsens_value);
    delay(1000);
  }
}

....
  // Optional: set Zigbee device name and model
  zbTempSensor.setManufacturerAndModel("Espressif", "ZigbeeTempSensor");

  zbTempSensor.setPowerSource(ZB_POWER_SOURCE_BATTERY, 100);
  zbTempSensor.addHumiditySensor(0, 100, 1);

  // Set minimum and maximum temperature measurement value (10-50°C is default range for chip temperature measurement)
  zbTempSensor.setMinMaxValue(10, 50);
....

Debug Message

=========== Before Setup Start ===========
Chip Info:
------------------------------------------
  Model             : ESP32-C6
  Package           : 1
  Revision          : 0.01
  Cores             : 1
  CPU Frequency     : 160 MHz
  XTAL Frequency    : 40 MHz
  Features Bitfield : 0x00000052
  Embedded Flash    : No
  Embedded PSRAM    : No
  2.4GHz WiFi       : Yes
  Classic BT        : No
  BT Low Energy     : Yes
  IEEE 802.15.4     : Yes
------------------------------------------
INTERNAL Memory Info:
------------------------------------------
  Total Size        :   445324 B ( 434.9 KB)
  Free Bytes        :   414112 B ( 404.4 KB)
  Allocated Bytes   :    24260 B (  23.7 KB)
  Minimum Free Bytes:   409300 B ( 399.7 KB)
  Largest Free Block:   376820 B ( 368.0 KB)
------------------------------------------
Flash Info:
------------------------------------------
  Chip Size         :  4194304 B (4 MB)
  Block Size        :    65536 B (  64.0 KB)
  Sector Size       :     4096 B (   4.0 KB)
  Page Size         :      256 B (   0.2 KB)
  Bus Speed         : 40 MHz
  Bus Mode          : QIO
------------------------------------------
Partitions Info:
------------------------------------------
                nvs : addr: 0x00009000, size:    20.0 KB, type: DATA, subtype: NVS
            otadata : addr: 0x0000E000, size:     8.0 KB, type: DATA, subtype: OTA
               app0 : addr: 0x00010000, size:  1280.0 KB, type:  APP, subtype: OTA_0
               app1 : addr: 0x00150000, size:  1280.0 KB, type:  APP, subtype: OTA_1
             spiffs : addr: 0x00290000, size:  1388.0 KB, type: DATA, subtype: SPIFFS
         zb_storage : addr: 0x003EB000, size:    16.0 KB, type: DATA, subtype: FAT
             zb_fct : addr: 0x003EF000, size:     4.0 KB, type: DATA, subtype: FAT
           coredump : addr: 0x003F0000, size:    64.0 KB, type: DATA, subtype: COREDUMP
------------------------------------------
Software Info:
------------------------------------------
  Compile Date/Time : Nov 16 2024 21:10:20
  Compile Host OS   : windows
  ESP-IDF Version   : v5.3.1-638-ga0f798cfc4-dirty
  Arduino Version   : 3.1.0
------------------------------------------
Board Info:
------------------------------------------
  Arduino Board     : ESP32C6_DEV
  Arduino Variant   : esp32c6
  Arduino FQBN      : esp32:esp32:esp32c6:UploadSpeed=921600,CDCOnBoot=cdc,CPUFreq=160,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=zigbee,DebugLevel=verbose,EraseFlash=all,JTAGAdapter=default,ZigbeeMode=ed
============ Before Setup End ============
[   990][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 12 already has type USB_DM (38) with bus 0x4081155c
[   991][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 13 already has type USB_DP (39) with bus 0x4081155c
[   991][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4200348e
[   992][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type GPIO (1) with bus 0xa
[   993][D][ZigbeeCore.cpp:66] addEndpoint(): Endpoint: 10, Device ID: 0x0302
[   993][D][ZigbeeCore.cpp:103] zigbeeInit(): Initialize Zigbee stack
[  1028][D][ZigbeeCore.cpp:110] zigbeeInit(): Register all Zigbee EPs in list
[  1030][I][ZigbeeCore.cpp:118] zigbeeInit(): List of registered Zigbee EPs:
[  1030][I][ZigbeeCore.cpp:120] zigbeeInit(): Device type: Temperature Sensor, Endpoint: 10, Device ID: 0x0302
Zigbee stack assertion failed common/zb_error_indication.c:8
abort() was called at PC 0x42012b5d on core 0
Core  0 register dump:
MEPC    : 0x40801588  RA      : 0x40807ffc  SP      : 0x40824220  GP      : 0x4080f824
TP      : 0x408243b0  T0      : 0x37363534  T1      : 0x7271706f  T2      : 0x33323130
S0/FP   : 0x4082424c  S1      : 0x4082424c  A0      : 0x40824258  A1      : 0x4082423a
A2      : 0x00000000  A3      : 0x40824285  A4      : 0x00000001  A5      : 0x40816000
A6      : 0x00000000  A7      : 0x76757473  S2      : 0x00000000  S3      : 0x4081365c
S4      : 0x00000001  S5      : 0x00000000  S6      : 0x00000000  S7      : 0x00000000
S8      : 0x00000000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000
T3      : 0x6e6d6c6b  T4      : 0x6a696867  T5      : 0x66656463  T6      : 0x62613938
MSTATUS : 0x00001881  MTVEC   : 0x40800001  MCAUSE  : 0x00000007  MTVAL   : 0x00000000
MHARTID : 0x00000000

Stack memory:
40824220: 0x00000000 0x00000000 0x40824238 0x4080dea6 0x00000000 0x00000000 0x00000030 0x40810e00
40824240: 0x4082424c 0x40810e1c 0x40824238 0x31303234 0x64356232 0x00000000 0x726f6261 0x20292874
40824260: 0x20736177 0x6c6c6163 0x61206465 0x43502074 0x34783020 0x32313032 0x20643562 0x63206e6f
40824280: 0x2065726f 0x00000030 0x00000000 0x5c9fa1b1 0x0000002f 0x40813a48 0x42075e69 0x42012b60
408242a0: 0x00000bd6 0x00000000 0x00000000 0x00000051 0x00000000 0x00000000 0x000000fe 0x420374f8
408242c0: 0x00000000 0x40813a48 0x40824320 0x42013ed6 0x00000000 0x00000000 0x00000ac0 0x0000001f
408242e0: 0x00000019 0x001f0040 0x00000000 0x00000000 0x000f0002 0x00000000 0x00000000 0x00000000
40824300: 0x0000001f 0x00000010 0x40813a48 0x420159e6 0x00000000 0x00000000 0x00000000 0x00000000
40824320: 0x00000019 0x001f0040 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x4202bd84
40824340: 0x00000000 0x00000000 0x00000000 0x4202c10e 0x00000000 0x00000000 0x00000000 0x42009084
40824360: 0x00000000 0x00000000 0x00000000 0x4200090c 0x00000000 0x00000000 0x00000000 0x408092b8
40824380: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
408243a0: 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xbaad5678 0x00058251 0x408169c4
408243c0: 0x408169c4 0xfc031e0c 0x78849b34 0x30c832a9 0x9d9c5b2a 0xae36ed22 0xadd31283 0xecb1fcf5
408243e0: 0x7c32a028 0x2d446289 0xe2cffffd 0x711286e4 0xe66f0bce 0x82719d97 0x7645118a 0x130cd72f
40824400: 0x8c12a31c 0x7158b14d 0x8a3fb378 0x9e867233 0x66837636 0xe997fc45 0x330036ca 0x0a0a8952
40824420: 0xc024d6f7 0xff7c0bb3 0xfb6f2de7 0x378053c9 0xec565c7f 0x7e9c383f 0xaad1000d 0x04923695
40824440: 0xeb226082 0xd2808128 0x384ef7ae 0xfd399651 0x2d15af93 0x244ab39b 0xa0f9c680 0x436558df
40824460: 0x053a2b45 0xf23ac453 0xba7fb0b1 0xf068200a 0x4539f116 0x1712f8c7 0x0666cf28 0x7344999c
40824480: 0xd9cd50c1 0xd032329a 0x963c700b 0x167d9b9d 0x39809846 0x53548e10 0x8a1a132c 0x793164ac
408244a0: 0x06065915 0x0109a3a0 0xe565e7e9 0x8d7fffef 0x5fcf1039 0xd80dcd7d 0xa1228c21 0x0b311ccc
408244c0: 0xd8709c0d 0x2cec1457 0xb87cd0f7 0x5b756ef5 0xd98cefbe 0xffff653f 0x891a1046 0x1a8284e1
408244e0: 0x4037cdc3 0x31c19682 0x2dbe8ffd 0x294cb0b3 0xb6e1bcf5 0x4afe2c80 0xc19ca484 0x6000aba2
40824500: 0xb43bd81c 0x407e7d43 0x1deca8ae 0xa89a607b 0x74976fa9 0xaa3bfa1a 0x0b9000b4 0x14a83808
40824520: 0x830eb325 0x092140d5 0xdbe5cddf 0xba4fd1ad 0xeef9a462 0x7e268f92 0x94995434 0x2cbaa2dc
40824540: 0xbe382aa4 0xaaa71779 0x6c1dd7f3 0xf5a629c4 0xfeedbf7e 0xf7f6df1f 0x281e284a 0x5f147465
40824560: 0x51c3c99c 0x16b20c02 0x233a567e 0x5d493983 0xd11ef234 0xf7fc57bb 0xcec44ee9 0x8024372a
40824580: 0x02410490 0x41922360 0xe2e2ecfd 0x0543feb7 0xda2039e6 0xfa72cff9 0xd6d01951 0x2c4b020d
408245a0: 0x0081cb07 0x05140fa4 0xfed2fd8b 0xe73f7a6f 0xe7dbf128 0xe6dc0622 0x4c651164 0x627c4962
408245c0: 0xd82de23e 0x246307be 0x8178f7f9 0xc137f57b 0x8ff857ec 0x435fefe0 0x3a0791b7 0x51f6b636
408245e0: 0x26cd3c8b 0x2ee16160 0x51e99b82 0x38b9a5b0 0xfecfa861 0xfb2567bd 0x1490ee9f 0x2d76ef80
40824600: 0x0a64f0e1 0x3b290665 0xcdf33fa8 0xf9ed4e27 0xbd850fbf 0x00762f2e 0x0849ca10 0xcd048484



ELF file SHA256: 5542d8f16

Rebooting...
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0xc (SW_CPU),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x4001975a
SPIWP:0xee
mode:DIO, clock div:2
load:0x40875720,len:0x1190
load:0x4086c110,len:0xd98
load:0x4086e610,len:0x2e84
entry 0x4086c110
[     0][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x42005dce
[    12][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x42005d92
[    23][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x42005d56
[    34][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x42005d1a
[    46][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x42005dce
[    57][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x42005d92
[    68][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x42005d56
[    80][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x42005d1a
[    91][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DM (38) successfully set to 0x420025c0
[   102][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DP (39) successfully set to 0x420025c0
[   114][V][ZigbeeEP.cpp:18] ZigbeeEP(): Endpoint: 10
[   131][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 17 successfully set to type UART_RX (2) with bus 0x4080f0fc
[   141][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 16 successfully set to type UART_TX (3) with bus 0x4080f0fc
[   152][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 12 successfully set to type USB_DM (38) with bus 0x4081155c
[   163][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 13 successfully set to type USB_DP (39) with bus 0x4081155c
=========== Before Setup Start ===========
Chip Info:
------------------------------------------
  Model             : ESP32-C6
  Package           : 1
  Revision          : 0.01
  Cores             : 1
  CPU Frequency     : 160 MHz
  XTAL Frequency    : 40 MHz
  Features Bitfield : 0x00000052
  Embedded Flash    : No
  Embedded PSRAM    : No
  2.4GHz WiFi       : Yes
  Classic BT        : No
  BT Low Energy     : Yes
  IEEE 802.15.4     : Yes
------------------------------------------
INTERNAL Memory Info:
------------------------------------------
  Total Size        :   445324 B ( 434.9 KB)
  Free Bytes        :   409124 B ( 399.5 KB)
  Allocated Bytes   :    29216 B (  28.5 KB)
  Minimum Free Bytes:   409124 B ( 399.5 KB)
  Largest Free Block:   376820 B ( 368.0 KB)
------------------------------------------
Flash Info:
------------------------------------------
  Chip Size         :  4194304 B (4 MB)
  Block Size        :    65536 B (  64.0 KB)
  Sector Size       :     4096 B (   4.0 KB)
  Page Size         :      256 B (   0.2 KB)
  Bus Speed         : 40 MHz
  Bus Mode          : QIO
------------------------------------------
Partitions Info:
------------------------------------------
                nvs : addr: 0x00009000, size:    20.0 KB, type: DATA, subtype: NVS
            otadata : addr: 0x0000E000, size:     8.0 KB, type: DATA, subtype: OTA
               app0 : addr: 0x00010000, size:  1280.0 KB, type:  APP, subtype: OTA_0
               app1 : addr: 0x00150000, size:  1280.0 KB, type:  APP, subtype: OTA_1
             spiffs : addr: 0x00290000, size:  1388.0 KB, type: DATA, subtype: SPIFFS
         zb_storage : addr: 0x003EB000, size:    16.0 KB, type: DATA, subtype: FAT
             zb_fct : addr: 0x003EF000, size:     4.0 KB, type: DATA, subtype: FAT
           coredump : addr: 0x003F0000, size:    64.0 KB, type: DATA, subtype: COREDUMP
------------------------------------------
Software Info:
------------------------------------------
  Compile Date/Time : Nov 16 2024 21:10:20
  Compile Host OS   : windows
  ESP-IDF Version   : v5.3.1-638-ga0f798cfc4-dirty
  Arduino Version   : 3.1.0
------------------------------------------
Board Info:
------------------------------------------
  Arduino Board     : ESP32C6_DEV
  Arduino Variant   : esp32c6
  Arduino FQBN      : esp32:esp32:esp32c6:UploadSpeed=921600,CDCOnBoot=cdc,CPUFreq=160,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=zigbee,DebugLevel=verbose,EraseFlash=all,JTAGAdapter=default,ZigbeeMode=ed
============ Before Setup End ============
[   286][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 12 already has type USB_DM (38) with bus 0x4081155c
[   287][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 13 already has type USB_DP (39) with bus 0x4081155c
[   287][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4200348e
[   288][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type GPIO (1) with bus 0xa
[   289][D][ZigbeeCore.cpp:66] addEndpoint(): Endpoint: 10, Device ID: 0x0302
[   289][D][ZigbeeCore.cpp:103] zigbeeInit(): Initialize Zigbee stack
[   325][D][ZigbeeCore.cpp:110] zigbeeInit(): Register all Zigbee EPs in list
[   326][I][ZigbeeCore.cpp:118] zigbeeInit(): List of registered Zigbee EPs:
[   327][I][ZigbeeCore.cpp:120] zigbeeInit(): Device type: Temperature Sensor, Endpoint: 10, Device ID: 0x0302
[   424][V][ZigbeeCore.cpp:301] esp_zb_app_signal_handler(): ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL
[   425][I][ZigbeeCore.cpp:191] esp_zb_app_signal_handler(): Zigbee stack initialized
[  1336][V][Zigbee_Temperature_Sensor.ino:45] temp_sensor_value_update(): Temperature sensor value: 24.00°C
[  1336][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  1337][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2400
[  1337][V][ZigbeeTempSensor.cpp:107] setHumidity(): Updating humidity sensor value...
[  1338][D][ZigbeeTempSensor.cpp:109] setHumidity(): Setting humidity to 2400
=========== After Setup Start ============
INTERNAL Memory Info:
------------------------------------------
  Total Size        :   445324 B ( 434.9 KB)
  Free Bytes        :   384116 B ( 375.1 KB)
  Allocated Bytes   :    53280 B (  52.0 KB)
  Minimum Free Bytes:   383988 B ( 375.0 KB)
  Largest Free Block:   352244 B ( 344.0 KB)
------------------------------------------
GPIO Info:
------------------------------------------
  GPIO : BUS_TYPE[bus/unit][chan]
  --------------------------------------
     9 : GPIO
    12 : USB_DM
    13 : USB_DP
    16 : UART_TX[0]
    17 : UART_RX[0]
============ After Setup End =============
[  2338][V][Zigbee_Temperature_Sensor.ino:45] temp_sensor_value_update(): Temperature sensor value: 25.00°C
[  2339][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  2339][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2500
[  2340][V][ZigbeeTempSensor.cpp:107] setHumidity(): Updating humidity sensor value...
[  2340][D][ZigbeeTempSensor.cpp:109] setHumidity(): Setting humidity to 2500
[  3340][V][Zigbee_Temperature_Sensor.ino:45] temp_sensor_value_update(): Temperature sensor value: 26.00°C
[  3341][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  3341][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2600
[  3342][V][ZigbeeTempSensor.cpp:107] setHumidity(): Updating humidity sensor value...
[  3342][D][ZigbeeTempSensor.cpp:109] setHumidity(): Setting humidity to 2600
[  4342][V][Zigbee_Temperature_Sensor.ino:45] temp_sensor_value_update(): Temperature sensor value: 26.00°C
[  4343][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  4343][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2600
[  4343][V][ZigbeeTempSensor.cpp:107] setHumidity(): Updating humidity sensor value...
[  4344][D][ZigbeeTempSensor.cpp:109] setHumidity(): Setting humidity to 2600
[  5344][V][Zigbee_Temperature_Sensor.ino:45] temp_sensor_value_update(): Temperature sensor value: 27.00°C
[  5345][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  5345][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2700
[  5346][V][ZigbeeTempSensor.cpp:107] setHumidity(): Updating humidity sensor value...
[  5346][D][ZigbeeTempSensor.cpp:109] setHumidity(): Setting humidity to 2700
[  6346][V][Zigbee_Temperature_Sensor.ino:45] temp_sensor_value_update(): Temperature sensor value: 27.00°C
[  6347][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  6347][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2700
[  6348][V][ZigbeeTempSensor.cpp:107] setHumidity(): Updating humidity sensor value...
[  6348][D][ZigbeeTempSensor.cpp:109] setHumidity(): Setting humidity to 2700
[  7348][V][Zigbee_Temperature_Sensor.ino:45] temp_sensor_value_update(): Temperature sensor value: 28.00°C
[  7349][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  7349][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2800
[  7350][V][ZigbeeTempSensor.cpp:107] setHumidity(): Updating humidity sensor value...
[  7350][D][ZigbeeTempSensor.cpp:109] setHumidity(): Setting humidity to 2800
[  8350][V][Zigbee_Temperature_Sensor.ino:45] temp_sensor_value_update(): Temperature sensor value: 28.00°C
[  8351][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  8351][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2800
[  8352][V][ZigbeeTempSensor.cpp:107] setHumidity(): Updating humidity sensor value...
[  8352][D][ZigbeeTempSensor.cpp:109] setHumidity(): Setting humidity to 2800
[  9352][V][Zigbee_Temperature_Sensor.ino:45] temp_sensor_value_update(): Temperature sensor value: 28.00°C
[  9353][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  9353][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2800
[  9354][V][ZigbeeTempSensor.cpp:107] setHumidity(): Updating humidity sensor value...
[  9354][D][ZigbeeTempSensor.cpp:109] setHumidity(): Setting humidity to 2800
[ 10354][V][Zigbee_Temperature_Sensor.ino:45] temp_sensor_value_update(): Temperature sensor value: 29.00°C
[ 10355][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[ 10355][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2900
[ 10356][V][ZigbeeTempSensor.cpp:107] setHumidity(): Updating humidity sensor value...
[ 10356][D][ZigbeeTempSensor.cpp:109] setHumidity(): Setting humidity to 2900
[ 11356][V][Zigbee_Temperature_Sensor.ino:45] temp_sensor_value_update(): Temperature sensor value: 29.00°C
[ 11357][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[ 11357][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2900
[ 11358][V][ZigbeeTempSensor.cpp:107] setHumidity(): Updating humidity sensor value...
[ 11358][D][ZigbeeTempSensor.cpp:109] setHumidity(): Setting humidity to 2900
[ 12358][V][Zigbee_Temperature_Sensor.ino:45] temp_sensor_value_update(): Temperature sensor value: 29.00°C
[ 12359][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[ 12359][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2900
[ 12360][V][ZigbeeTempSensor.cpp:107] setHumidity(): Updating humidity sensor value...
[ 12360][D][ZigbeeTempSensor.cpp:109] setHumidity(): Setting humidity to 2900
[ 12772ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0xc (SW_CPU),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x4001975a
SPIWP:0xee
mode:DIO, clock div:2
load:0x40875720,len:0x1190
load:0x4086c110,len:0xd98
load:0x4086e610,len:0x2e84
entry 0x4086c110
[     0][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x42005dce
[    12][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x42005d92
[    23][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x42005d56
[    34][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x42005d1a
[    46][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x42005dce
[    57][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x42005d92
[    68][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x42005d56
[    80][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x42005d1a
[    91][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DM (38) successfully set to 0x420025c0
[   102][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DP (39) successfully set to 0x420025c0
[   114][V][ZigbeeEP.cpp:18] ZigbeeEP(): Endpoint: 10
[   131][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 17 successfully set to type UART_RX (2) with bus 0x4080f0fc
[   141][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 16 successfully set to type UART_TX (3) with bus 0x4080f0fc
[   152][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 12 successfully set to type USB_DM (38) with bus 0x4081155c
[   163][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 13 successfully set to type USB_DP (39) with bus 0x4081155c
=========== Before Setup Start ===========
Chip Info:
------------------------------------------
  Model             : ESP32-C6
  Package           : 1
  Revision          : 0.01
  Cores             : 1
  CPU Frequency     : 160 MHz
  XTAL Frequency    : 40 MHz
  Features Bitfield : 0x00000052
  Embedded Flash    : No
  Embedded PSRAM    : No
  2.4GHz WiFi       : Yes
  Classic BT        : No
  BT Low Energy     : Yes
  IEEE 802.15.4     : Yes
------------------------------------------
INTERNAL Memory Info:
------------------------------------------
  Total Size        :   445324 B ( 434.9 KB)
  Free Bytes        :   409124 B ( 399.5 KB)
  Allocated Bytes   :    29216 B (  28.5 KB)
  Minimum Free Bytes:   409124 B ( 399.5 KB)
  Largest Free Block:   376820 B ( 368.0 KB)
------------------------------------------
Flash Info:
------------------------------------------
  Chip Size         :  4194304 B (4 MB)
  Block Size        :    65536 B (  64.0 KB)
  Sector Size       :     4096 B (   4.0 KB)
  Page Size         :      256 B (   0.2 KB)
  Bus Speed         : 40 MHz
  Bus Mode          : QIO
------------------------------------------
Partitions Info:
------------------------------------------
                nvs : addr: 0x00009000, size:    20.0 KB, type: DATA, subtype: NVS
            otadata : addr: 0x0000E000, size:     8.0 KB, type: DATA, subtype: OTA
               app0 : addr: 0x00010000, size:  1280.0 KB, type:  APP, subtype: OTA_0
               app1 : addr: 0x00150000, size:  1280.0 KB, type:  APP, subtype: OTA_1
             spiffs : addr: 0x00290000, size:  1388.0 KB, type: DATA, subtype: SPIFFS
         zb_storage : addr: 0x003EB000, size:    16.0 KB, type: DATA, subtype: FAT
             zb_fct : addr: 0x003EF000, size:     4.0 KB, type: DATA, subtype: FAT
           coredump : addr: 0x003F0000, size:    64.0 KB, type: DATA, subtype: COREDUMP
------------------------------------------
Software Info:
------------------------------------------
  Compile Date/Time : Nov 16 2024 21:10:20
  Compile Host OS   : windows
  ESP-IDF Version   : v5.3.1-638-ga0f798cfc4-dirty
  Arduino Version   : 3.1.0
------------------------------------------
Board Info:
------------------------------------------
  Arduino Board     : ESP32C6_DEV
  Arduino Variant   : esp32c6
  Arduino FQBN      : esp32:esp32:esp32c6:UploadSpeed=921600,CDCOnBoot=cdc,CPUFreq=160,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=zigbee,DebugLevel=verbose,EraseFlash=all,JTAGAdapter=default,ZigbeeMode=ed
============ Before Setup End ============
[   286][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 12 already has type USB_DM (38) with bus 0x4081155c
[   287][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 13 already has type USB_DP (39) with bus 0x4081155c
[   287][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4200348e
[   288][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type GPIO (1) with bus 0xa
[   289][D][ZigbeeCore.cpp:66] addEndpoint(): Endpoint: 10, Device ID: 0x0302
[   289][D][ZigbeeCore.cpp:103] zigbeeInit(): Initialize Zigbee stack
[   337][D][ZigbeeCore.cpp:110] zigbeeInit(): Register all Zigbee EPs in list
[   339][I][ZigbeeCore.cpp:118] zigbeeInit(): List of registered Zigbee EPs:
[   339][I][ZigbeeCore.cpp:120] zigbeeInit(): Device type: Temperature Sensor, Endpoint: 10, Device ID: 0x0302
Zigbee stack assertion failed common/
abort() was called at PC 0x42012b5d on core 0
Core  0 register dump:
MEPC    : 0x40801588  RA      : 0x40807ffc  SP      : 0x40824490  GP      : 0x4080f824
TP      : 0x40824620  T0      : 0x37363534  T1      : 0x7271706f  T2      : 0x33323130
S0/FP   : 0x408244bc  S1      : 0x408244bc  A0      : 0x408244c8  A1      : 0x408244aa
A2      : 0x00000000  A3      : 0x408244f5  A4      : 0x00000001  A5      : 0x40816000
A6      : 0x00000000  A7      : 0x76757473  S2      : 0x00000000  S3      : 0x40813658
S4      : 0x00000002  S5      : 0x00000000  S6      : 0x00000000  S7      : 0x00000000
S8      : 0x00000000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000
T3      : 0x6e6d6c6b  T4      : 0x6a696867  T5      : 0x66656463  T6      : 0x62613938
MSTATUS : 0x00001881  MTVEC   : 0x40800001  MCAUSE  : 0x00000007  MTVAL   : 0x00000000
MHARTID : 0x00000000

Stack memory:
40824490: 0x00000000 0x00000000 0x408244a8 0x4080dea6 0x00000000 0x00000000 0x00000030 0x40810e00
408244b0: 0x408244bc 0x40810e1c 0x408244a8 0x31303234 0x64356232 0x00000000 0x726f6261 0x20292874
408244d0: 0x20736177 0x6c6c6163 0x61206465 0x43502074 0x34783020 0x32313032 0x20643562 0x63206e6f
408244f0: 0x2065726f 0x00000030 0x00000000 0x7bf1811f 0x0000002f 0x40813a48 0x42075e69 0x42012b60
40824510: 0x0000cbb3 0x00000000 0x00000000 0x00000051 0x00000000 0x00000000 0x000000fe 0x420374f8
40824530: 0x00000000 0x40813a48 0x40824590 0x42013ed6 0x00000000 0x00000000 0x00000840 0x0001001f
40824550: 0x00000026 0x001f0040 0x00000000 0x00000000 0x00160003 0x00000002 0x00000000 0x00000000
40824570: 0x0000001f 0x00000010 0x40813a48 0x420159e6 0x00000000 0x00000000 0x00000000 0x00000000
40824590: 0x00000026 0x001f0040 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x4202bd84
408245b0: 0x00000000 0x00000000 0x00000000 0x4202c10e 0x00000000 0x00000000 0x00000000 0x42009084
408245d0: 0x00000000 0x00000000 0x00000000 0x4200090c 0x00000000 0x00000000 0x00000000 0x408092b8
408245f0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
40824610: 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xbaad5678
40824630: 0x00057fd9 0x408169c4 0x408169c4 0x00000000 0x00000000 0x00000000 0xffffffff 0x7fefffff
40824650: 0x00000000 0x3fe00000 0x403d0000 0x00000000 0x00000000 0x3fc00000 0x00000000 0x40300000
40824670: 0x00000000 0x4004e20c 0x00000000 0x00000000 0x00000000 0x00000000 0xffffffff 0x40824b18
40824690: 0x00000000 0x3fe00000 0x00000000 0xa5a5a5a5 0x00000005 0x00000000 0x00000000 0x40300000
408246b0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x408246cc 0x00000000 0x00000000 0x42071778
408246d0: 0x00000002 0x4082476c 0x00000004 0x4082476b 0x00000005 0x00000000 0x00000002 0x00000000
408246f0: 0xa5a5a5a5 0xa5a5a5a5 0x4081999c 0xa5a5a5a5 0x4082470c 0x00000000 0x00000000 0x420701fc
40824710: 0x00000005 0x40819998 0x00000002 0x4004e20c 0x00000001 0x4081999a 0x00000002 0xa5a5a5a5
40824730: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
40824750: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x31a5a5a5 0x30303932
40824770: 0xffffffff 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
40824790: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x31a5a5a5 0x35343332
408247b0: 0xffffffff 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
408247d0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
408247f0: 0x00003048 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x42071627 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
40824810: 0x0000006d 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x42071704 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
40824830: 0x00000b54 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x4207018c 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
40824850: 0x0000002d 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x420701ac 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
40824870: 0x00000000 0x403d0000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5



ELF file SHA256: 5542d8f16

Other Steps to Reproduce

Removing from esp_zb_task(void *pvParameters) in ZigbeeCore.cpp the workaround device will join and report values after power off/on (without described delay device will reboot before stable work 2-3 times...) :

static void esp_zb_task(void *pvParameters) {
  /* initialize Zigbee stack */
  ESP_ERROR_CHECK(esp_zb_start(false));

  //NOTE: This is a workaround to make battery powered devices to be discovered as battery powered
  if (((zigbee_role_t)Zigbee.getRole() == ZIGBEE_END_DEVICE) && edBatteryPowered) {
   // zb_set_ed_node_descriptor(0, 0, 0);    <<<=====
  }

  esp_zb_stack_main_loop();
}

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@michapr michapr added the Status: Awaiting triage Issue is waiting for triage label Nov 17, 2024
@michapr michapr changed the title problem with battery powered devices after power off/on Zigbee: problem with battery powered devices after power off/on Nov 17, 2024
@P-R-O-C-H-Y
Copy link
Member

Hi @michapr, Thanks for the report. I will take a look and try to reproduce.

@P-R-O-C-H-Y P-R-O-C-H-Y added Status: Test needed Issue needs testing Status: In Progress Issue is in progress and removed Status: Awaiting triage Issue is waiting for triage labels Nov 18, 2024
@michapr
Copy link
Author

michapr commented Nov 18, 2024

Today have seen that my "solution" is not working stable - after some time reporting stop with error:
[6548110][V][ZigbeeCore.cpp:301] esp_zb_app_signal_handler(): ZDO signal: ZDO Device Unavailable (0x3c), status: ESP_OK

log looks like:

[6547533][V][Zigbee_Temperature_Sensor.ino:45] temp_sensor_value_update(): Temperature sensor value: 31.00°C
[6547534][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[6547534][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 3100
[6547535][V][ZigbeeTempSensor.cpp:107] setHumidity(): Updating humidity sensor value...
[6547535][D][ZigbeeTempSensor.cpp:109] setHumidity(): Setting humidity to 3100
[6548110][V][ZigbeeCore.cpp:301] esp_zb_app_signal_handler(): ZDO signal: ZDO Device Unavailable (0x3c), status: ESP_OK
[6548535][V][Zigbee_Temperature_Sensor.ino:45] temp_sensor_value_update(): Temperature sensor value: 31.00°C
[6548536][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[6548536][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 3100
[6548537][V][ZigbeeTempSensor.cpp:107] setHumidity(): Updating humidity sensor value...
[6548537][D][ZigbeeTempSensor.cpp:109] setHumidity(): Setting humidity to 3100
[6549537][V][Zigbee_Temperature_Sensor.ino:45] temp_sensor_value_update(): Temperature sensor value: 31.00°C

And - in the morning the device after power on (with changed code) was still rebooting again for some time - then was starting reporting.
So, is not stable...

Thanks for checking!

@P-R-O-C-H-Y
Copy link
Member

I was able to reproduce it with C6, however with ESP32-H2 there is no issue. Will continue in the investigation.

btw. the message esp_zb_app_signal_handler(): ZDO signal: ZDO Device Unavailable (0x3c), status: ESP_OK happened to me when I removed the device from the HomeAssistant but I did not reset the device to factory setting, so its still trying to send data to the network. I will also check that later :)

@P-R-O-C-H-Y
Copy link
Member

As the example with/without selecting power source works on H2, I assume there must be some error in the esp-zigbee-sdk for C6. It may take more time to fix. I will keep this issue updated when I get any news.

@P-R-O-C-H-Y P-R-O-C-H-Y added the Chip: ESP32-C6 Issue is related to support of ESP32-C6 Chip label Nov 18, 2024
@P-R-O-C-H-Y P-R-O-C-H-Y removed the Status: Test needed Issue needs testing label Nov 19, 2024
@P-R-O-C-H-Y
Copy link
Member

P-R-O-C-H-Y commented Nov 19, 2024

Hi @michapr, can you test please with the changes from this PR #10623 ?Thanks, it will help a lot :)

@michapr
Copy link
Author

michapr commented Nov 19, 2024

Have changed the lines in lib files - but no changes in original Temperature sample code (after power off / on - no reporting more)

=========== Before Setup Start ===========
Chip Info:
------------------------------------------
  Model             : ESP32-C6
  Package           : 1
  Revision          : 0.01
  Cores             : 1
  CPU Frequency     : 160 MHz
  XTAL Frequency    : 40 MHz
  Features Bitfield : 0x00000052
  Embedded Flash    : No
  Embedded PSRAM    : No
  2.4GHz WiFi       : Yes
  Classic BT        : No
  BT Low Energy     : Yes
  IEEE 802.15.4     : Yes
------------------------------------------
INTERNAL Memory Info:
------------------------------------------
  Total Size        :   445324 B ( 434.9 KB)
  Free Bytes        :   413968 B ( 404.3 KB)
  Allocated Bytes   :    24388 B (  23.8 KB)
  Minimum Free Bytes:   409156 B ( 399.6 KB)
  Largest Free Block:   376820 B ( 368.0 KB)
------------------------------------------
Flash Info:
------------------------------------------
  Chip Size         :  4194304 B (4 MB)
  Block Size        :    65536 B (  64.0 KB)
  Sector Size       :     4096 B (   4.0 KB)
  Page Size         :      256 B (   0.2 KB)
  Bus Speed         : 40 MHz
  Bus Mode          : QIO
------------------------------------------
Partitions Info:
------------------------------------------
                nvs : addr: 0x00009000, size:    20.0 KB, type: DATA, subtype: NVS
            otadata : addr: 0x0000E000, size:     8.0 KB, type: DATA, subtype: OTA
               app0 : addr: 0x00010000, size:  1280.0 KB, type:  APP, subtype: OTA_0
               app1 : addr: 0x00150000, size:  1280.0 KB, type:  APP, subtype: OTA_1
             spiffs : addr: 0x00290000, size:  1388.0 KB, type: DATA, subtype: SPIFFS
         zb_storage : addr: 0x003EB000, size:    16.0 KB, type: DATA, subtype: FAT
             zb_fct : addr: 0x003EF000, size:     4.0 KB, type: DATA, subtype: FAT
           coredump : addr: 0x003F0000, size:    64.0 KB, type: DATA, subtype: COREDUMP
------------------------------------------
Software Info:
------------------------------------------
  Compile Date/Time : Nov 19 2024 14:37:54
  Compile Host OS   : windows
  ESP-IDF Version   : v5.3.1-638-ga0f798cfc4-dirty
  Arduino Version   : 3.1.0
------------------------------------------
Board Info:
------------------------------------------
  Arduino Board     : ESP32C6_DEV
  Arduino Variant   : esp32c6
  Arduino FQBN      : esp32:esp32:esp32c6:UploadSpeed=921600,CDCOnBoot=cdc,CPUFreq=160,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=zigbee,DebugLevel=verbose,EraseFlash=all,JTAGAdapter=default,ZigbeeMode=ed
============ Before Setup End ============
[   939][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 12 already has type USB_DM (38) with bus 0x4081155c
[   940][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 13 already has type USB_DP (39) with bus 0x4081155c
[   940][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x42003216
[   941][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type GPIO (1) with bus 0xa
[   942][D][ZigbeeCore.cpp:66] addEndpoint(): Endpoint: 10, Device ID: 0x0302
[   942][D][ZigbeeCore.cpp:103] zigbeeInit(): Initialize Zigbee stack
[   978][D][ZigbeeCore.cpp:110] zigbeeInit(): Register all Zigbee EPs in list
[   980][I][ZigbeeCore.cpp:118] zigbeeInit(): List of registered Zigbee EPs:
[   980][I][ZigbeeCore.cpp:120] zigbeeInit(): Device type: Temperature Sensor, Endpoint: 10, Device ID: 0x0302
[   986][V][Zigbee_Temperature_Sensor.ino:45] temp_sensor_value_update(): Temperature sensor value: 20.00°C
[   986][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[   987][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2000
[   988][V][ZigbeeCore.cpp:301] esp_zb_app_signal_handler(): ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL
[   989][I][ZigbeeCore.cpp:191] esp_zb_app_signal_handler(): Zigbee stack initialized
=========== After Setup Start ============
INTERNAL Memory Info:
------------------------------------------
  Total Size        :   445324 B ( 434.9 KB)
  Free Bytes        :   384372 B ( 375.4 KB)
  Allocated Bytes   :    53152 B (  51.9 KB)
  Minimum Free Bytes:   384336 B ( 375.3 KB)
  Largest Free Block:   352244 B ( 344.0 KB)
------------------------------------------
GPIO Info:
------------------------------------------
  GPIO : BUS_TYPE[bus/unit][chan]
  --------------------------------------
     9 : GPIO
    12 : USB_DM
    13 : USB_DP
    16 : UART_TX[0]
    17 : UART_RX[0]
============ After Setup End =============
[  1987][V][Zigbee_Temperature_Sensor.ino:45] temp_sensor_value_update(): Temperature sensor value: 22.00°C
[  1988][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  1988][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2200
[  2988][V][Zigbee_Temperature_Sensor.ino:45] temp_sensor_value_update(): Temperature sensor value: 23.00°C
[  2989][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  2989][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2300
[  3316][E][ZigbeeCore.cpp:219] esp_zb_app_signal_handler(): Failed to initialize Zigbee stack (status: ESP_FAIL)
[  3989][V][Zigbee_Temperature_Sensor.ino:45] temp_sensor_value_update(): Temperature sensor value: 24.00°C
[  3990][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  3990][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2400
[  4990][V][Zigbee_Temperature_Sensor.ino:45] temp_sensor_value_update(): Temperature sensor value: 25.00°C
[  4991][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  4991][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2500
[  5991][V][Zigbee_Temperature_Sensor.ino:45] temp_sensor_value_update(): Temperature sensor value: 25.00°C
[  5992][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  5992][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2500
[  6992][V][Zigbee_Temperature_Sensor.ino:45] temp_sensor_value_update(): Temperature sensor value: 26.00°C
[  6993][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  6993][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2600
[  7993][V][Zigbee_Temperature_Sensor.ino:45] temp_sensor_value_update(): Temperature sensor value: 26.00°C
[  7994][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  7994][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2600
[  8994][V][Zigbee_Temperature_Sensor.ino:45] temp_sensor_value_update(): Temperature sensor value: 26.00°C
[  8995][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  8995][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2600
[  9995][V][Zigbee_Temperature_Sensor.ino:45] temp_sensor_value_update(): Temperature sensor value: 27.00°C
[  9996][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  9996][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2700
[ 10996][V][Zigbee_Temperature_Sensor.ino:45] temp_sensor_value_update(): Temperature sensor value: 27.00°C
[ 10997][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[ 10997][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2700
[ 11997][V][Zigbee_Temperature_Sensor.ino:45] temp_sensor_value_update(): Temperature sensor value: 27.00°C
[ 11998][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[ 11998][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2700
[ 12998][V][Zigbee_Temperature_Sensor.ino:45] temp_sensor_value_update(): Temperature sensor value: 28.00°C
[ 12999][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...

@P-R-O-C-H-Y
Copy link
Member

I assume you removed the device from your system and do a factory reset.

@michapr
Copy link
Author

michapr commented Nov 19, 2024

I removed, erased flash while programming, restarted Zigbee2MQTT (in database it is deleted, nothing more in memory) - so it should be new device...

@P-R-O-C-H-Y
Copy link
Member

Time to time that happens to me also, but lets say 1 out of 10 times.
For you its every single reboot?

@P-R-O-C-H-Y
Copy link
Member

P-R-O-C-H-Y commented Nov 19, 2024

Can you try to flash other ESP32C6/H2 with Thermostat example and try to connect to that one? To check if its related to the Zigbee2MQTT?

@P-R-O-C-H-Y
Copy link
Member

P-R-O-C-H-Y commented Nov 19, 2024

I have installed the Zigbee2MQTT add-on in my HomeAssistant.
Adding the device was fine, event I am getting message that device is not supported, due to manufacturer/name.
The temperature reporting is fine with the changes from the PR.
But After reboot the device is correctly started again. No crash reboots on my side.

@michapr
Copy link
Author

michapr commented Nov 19, 2024

Yes,... I have tried several times, the device is not reporting values more after power off/on...

I do not have a second ESP32C6 in this time, wanted to test at first how Zigbee is working with ESP32 ;)
All other work with ESP32 last time was with BLE and LoRaWAN devices ....

As far as I understood the thermostat sample is not an end device, but is waiting for any other temperature sensor device right?

In my Zigbee2MQTT installation are 14 other devices connected, sensors, plugs and thermostats (valves) - they do not have such problems, so I hope, that Z2M installation is not the problem.

As I wrote, the color_dimmable_light is working fine, even after power off/on.

Any other idea?

@P-R-O-C-H-Y
Copy link
Member

Does the board reboots after the stack fails to initialize? That's the behavior I added to reset the board after
[ 3316][E][ZigbeeCore.cpp:219] esp_zb_app_signal_handler(): Failed to initialize Zigbee stack (status: ESP_FAIL)

I am really not sure what is happening on your side, this is not happening to me. I will try to investigate more but its hard when I am not able to replicate it.

@P-R-O-C-H-Y
Copy link
Member

IF you can try to sniff the packets going between the coordinator and the ESP that can help.

@michapr
Copy link
Author

michapr commented Nov 19, 2024

No, board does not reboot in my case (with temperature sketch). It only does not report more values - looks like does not join again.

What I just have tried - I added again a dely between some lines:

  // Set tolerance for temperature measurement in °C (lowest possible value is 0.01°C)
  zbTempSensor.setTolerance(1);
 delay(500);
  // Add endpoint to Zigbee Core
  Zigbee.addEndpoint(&zbTempSensor);
delay(500);
  // When all EPs are registered, start Zigbee in End Device mode
  Zigbee.begin();
delay(500);
  // Start Temperature sensor reading task
  xTaskCreate(temp_sensor_value_update, "temp_sensor_update", 2048, NULL, 10, NULL);
delay(500);

Now it "can happen" that device is reporting value after power off/on.

If not reporting - I do not see any packets in Z2M debug log from the device.

@michapr
Copy link
Author

michapr commented Nov 19, 2024

looks like with this settings (delay) device is reporting after power off/on every time:

  // Set tolerance for temperature measurement in °C (lowest possible value is 0.01°C)
  zbTempSensor.setTolerance(1);
 delay(500);
  // Add endpoint to Zigbee Core
  Zigbee.addEndpoint(&zbTempSensor);
delay(500);
  // When all EPs are registered, start Zigbee in End Device mode
  Zigbee.begin();
delay(1000);
  // Start Temperature sensor reading task
  xTaskCreate(temp_sensor_value_update, "temp_sensor_update", 2048, NULL, 10, NULL);
delay(1000);

Not sure at what place it is right/needed - maybe you have an idea ;)

@P-R-O-C-H-Y
Copy link
Member

Can you just add a bigger delay after the Zigbee.begin() Add like 2000-5000 ms. The other delays are not relevant from my point of view.

@michapr
Copy link
Author

michapr commented Nov 19, 2024

add a bigger delay after the Zigbee.begin()

this did not help at all - up to 5000ms (removed other delays)

Maybe that reporting starts before the stack was initialized?
I hope I will find tomorrow time to make more experiments with delays...

@michapr
Copy link
Author

michapr commented Nov 21, 2024

ok,.... have two different debug logs - one for working, second for not working device.
Have used the previous delay settings (500/500/1000/1000)
Device was powered off/on in every case.

Difference is after the "After Setup End" section - maybe you know why there can be different result??

NOT WORKING:

=========== Before Setup Start ===========
Chip Info:
------------------------------------------
  Model             : ESP32-C6
  Package           : 1
  Revision          : 0.01
  Cores             : 1
  CPU Frequency     : 160 MHz
  XTAL Frequency    : 40 MHz
  Features Bitfield : 0x00000052
  Embedded Flash    : No
  Embedded PSRAM    : No
  2.4GHz WiFi       : Yes
  Classic BT        : No
  BT Low Energy     : Yes
  IEEE 802.15.4     : Yes
------------------------------------------
INTERNAL Memory Info:
------------------------------------------
  Total Size        :   445324 B ( 434.9 KB)
  Free Bytes        :   413824 B ( 404.1 KB)
  Allocated Bytes   :    24516 B (  23.9 KB)
  Minimum Free Bytes:   409012 B ( 399.4 KB)
  Largest Free Block:   376820 B ( 368.0 KB)
------------------------------------------
Flash Info:
------------------------------------------
  Chip Size         :  4194304 B (4 MB)
  Block Size        :    65536 B (  64.0 KB)
  Sector Size       :     4096 B (   4.0 KB)
  Page Size         :      256 B (   0.2 KB)
  Bus Speed         : 40 MHz
  Bus Mode          : QIO
------------------------------------------
Partitions Info:
------------------------------------------
                nvs : addr: 0x00009000, size:    20.0 KB, type: DATA, subtype: NVS
            otadata : addr: 0x0000E000, size:     8.0 KB, type: DATA, subtype: OTA
               app0 : addr: 0x00010000, size:  1280.0 KB, type:  APP, subtype: OTA_0
               app1 : addr: 0x00150000, size:  1280.0 KB, type:  APP, subtype: OTA_1
             spiffs : addr: 0x00290000, size:  1388.0 KB, type: DATA, subtype: SPIFFS
         zb_storage : addr: 0x003EB000, size:    16.0 KB, type: DATA, subtype: FAT
             zb_fct : addr: 0x003EF000, size:     4.0 KB, type: DATA, subtype: FAT
           coredump : addr: 0x003F0000, size:    64.0 KB, type: DATA, subtype: COREDUMP
------------------------------------------
Software Info:
------------------------------------------
  Compile Date/Time : Nov 19 2024 14:37:54
  Compile Host OS   : windows
  ESP-IDF Version   : v5.3.1-638-ga0f798cfc4-dirty
  Arduino Version   : 3.1.0
------------------------------------------
Board Info:
------------------------------------------
  Arduino Board     : ESP32C6_DEV
  Arduino Variant   : esp32c6
  Arduino FQBN      : esp32:esp32:esp32c6:UploadSpeed=921600,CDCOnBoot=cdc,CPUFreq=160,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=zigbee,DebugLevel=verbose,EraseFlash=all,JTAGAdapter=default,ZigbeeMode=ed
============ Before Setup End ============
[  1339][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 12 already has type USB_DM (38) with bus 0x4081155c
[  1340][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 13 already has type USB_DP (39) with bus 0x4081155c
[  1340][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x42003236
[  1341][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type GPIO (1) with bus 0xa
[  1841][D][ZigbeeCore.cpp:66] addEndpoint(): Endpoint: 10, Device ID: 0x0302
[  2341][D][ZigbeeCore.cpp:103] zigbeeInit(): Initialize Zigbee stack
[  2388][D][ZigbeeCore.cpp:110] zigbeeInit(): Register all Zigbee EPs in list
[  2389][I][ZigbeeCore.cpp:118] zigbeeInit(): List of registered Zigbee EPs:
[  2389][I][ZigbeeCore.cpp:120] zigbeeInit(): Device type: Temperature Sensor, Endpoint: 10, Device ID: 0x0302
[  2397][V][ZigbeeCore.cpp:301] esp_zb_app_signal_handler(): ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL
[  2397][I][ZigbeeCore.cpp:191] esp_zb_app_signal_handler(): Zigbee stack initialized
[  3395][V][Zigbee_Temperature_Sensor_test.ino:45] temp_sensor_value_update(): Temperature sensor value: 19.00°C
[  3395][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  3396][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 1900
[  4396][V][Zigbee_Temperature_Sensor_test.ino:45] temp_sensor_value_update(): Temperature sensor value: 20.00°C
[  4397][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  4397][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2000
=========== After Setup Start ============
INTERNAL Memory Info:
------------------------------------------
  Total Size        :   445324 B ( 434.9 KB)
  Free Bytes        :   384368 B ( 375.4 KB)
  Allocated Bytes   :    53156 B (  51.9 KB)
  Minimum Free Bytes:   384236 B ( 375.2 KB)
  Largest Free Block:   352244 B ( 344.0 KB)
------------------------------------------
GPIO Info:
------------------------------------------
  GPIO : BUS_TYPE[bus/unit][chan]
  --------------------------------------
     9 : GPIO
    12 : USB_DM
    13 : USB_DP
    16 : UART_TX[0]
    17 : UART_RX[0]
============ After Setup End =============
[  4724][E][ZigbeeCore.cpp:219] esp_zb_app_signal_handler(): Failed to initialize Zigbee stack (status: ESP_FAIL)
[  5397][V][Zigbee_Temperature_Sensor_test.ino:45] temp_sensor_value_update(): Temperature sensor value: 21.00°C
[  5398][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  5398][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2100
[  6398][V][Zigbee_Temperature_Sensor_test.ino:45] temp_sensor_value_update(): Temperature sensor value: 22.00°C
[  6399][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  6399][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2200
[  7399][V][Zigbee_Temperature_Sensor_test.ino:45] temp_sensor_value_update(): Temperature sensor value: 22.00°C
[  7400][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  7400][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2200
[  8400][V][Zigbee_Temperature_Sensor_test.ino:45] temp_sensor_value_update(): Temperature sensor value: 22.00°C
[  8401][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  8401][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2200
[  9401][V][Zigbee_Temperature_Sensor_test.ino:45] temp_sensor_value_update(): Temperature sensor value: 23.00°C

WORKING:

=========== Before Setup Start ===========
Chip Info:
------------------------------------------
  Model             : ESP32-C6
  Package           : 1
  Revision          : 0.01
  Cores             : 1
  CPU Frequency     : 160 MHz
  XTAL Frequency    : 40 MHz
  Features Bitfield : 0x00000052
  Embedded Flash    : No
  Embedded PSRAM    : No
  2.4GHz WiFi       : Yes
  Classic BT        : No
  BT Low Energy     : Yes
  IEEE 802.15.4     : Yes
------------------------------------------
INTERNAL Memory Info:
------------------------------------------
  Total Size        :   445324 B ( 434.9 KB)
  Free Bytes        :   413968 B ( 404.3 KB)
  Allocated Bytes   :    24388 B (  23.8 KB)
  Minimum Free Bytes:   409156 B ( 399.6 KB)
  Largest Free Block:   376820 B ( 368.0 KB)
------------------------------------------
Flash Info:
------------------------------------------
  Chip Size         :  4194304 B (4 MB)
  Block Size        :    65536 B (  64.0 KB)
  Sector Size       :     4096 B (   4.0 KB)
  Page Size         :      256 B (   0.2 KB)
  Bus Speed         : 40 MHz
  Bus Mode          : QIO
------------------------------------------
Partitions Info:
------------------------------------------
                nvs : addr: 0x00009000, size:    20.0 KB, type: DATA, subtype: NVS
            otadata : addr: 0x0000E000, size:     8.0 KB, type: DATA, subtype: OTA
               app0 : addr: 0x00010000, size:  1280.0 KB, type:  APP, subtype: OTA_0
               app1 : addr: 0x00150000, size:  1280.0 KB, type:  APP, subtype: OTA_1
             spiffs : addr: 0x00290000, size:  1388.0 KB, type: DATA, subtype: SPIFFS
         zb_storage : addr: 0x003EB000, size:    16.0 KB, type: DATA, subtype: FAT
             zb_fct : addr: 0x003EF000, size:     4.0 KB, type: DATA, subtype: FAT
           coredump : addr: 0x003F0000, size:    64.0 KB, type: DATA, subtype: COREDUMP
------------------------------------------
Software Info:
------------------------------------------
  Compile Date/Time : Nov 19 2024 14:37:54
  Compile Host OS   : windows
  ESP-IDF Version   : v5.3.1-638-ga0f798cfc4-dirty
  Arduino Version   : 3.1.0
------------------------------------------
Board Info:
------------------------------------------
  Arduino Board     : ESP32C6_DEV
  Arduino Variant   : esp32c6
  Arduino FQBN      : esp32:esp32:esp32c6:UploadSpeed=921600,CDCOnBoot=cdc,CPUFreq=160,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=zigbee,DebugLevel=verbose,EraseFlash=all,JTAGAdapter=default,ZigbeeMode=ed
============ Before Setup End ============
[  1839][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 12 already has type USB_DM (38) with bus 0x4081155c
[  1840][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 13 already has type USB_DP (39) with bus 0x4081155c
[  1840][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x42003236
[  1841][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type GPIO (1) with bus 0xa
[  2341][D][ZigbeeCore.cpp:66] addEndpoint(): Endpoint: 10, Device ID: 0x0302
[  2841][D][ZigbeeCore.cpp:103] zigbeeInit(): Initialize Zigbee stack
[  2877][D][ZigbeeCore.cpp:110] zigbeeInit(): Register all Zigbee EPs in list
[  2878][I][ZigbeeCore.cpp:118] zigbeeInit(): List of registered Zigbee EPs:
[  2879][I][ZigbeeCore.cpp:120] zigbeeInit(): Device type: Temperature Sensor, Endpoint: 10, Device ID: 0x0302
[  2887][V][ZigbeeCore.cpp:301] esp_zb_app_signal_handler(): ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL
[  2887][I][ZigbeeCore.cpp:191] esp_zb_app_signal_handler(): Zigbee stack initialized
[  3885][V][Zigbee_Temperature_Sensor_test.ino:45] temp_sensor_value_update(): Temperature sensor value: 24.00°C
[  3885][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  3886][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2400
[  4886][V][Zigbee_Temperature_Sensor_test.ino:45] temp_sensor_value_update(): Temperature sensor value: 25.00°C
[  4887][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  4887][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2500
=========== After Setup Start ============
INTERNAL Memory Info:
------------------------------------------
  Total Size        :   445324 B ( 434.9 KB)
  Free Bytes        :   384368 B ( 375.4 KB)
  Allocated Bytes   :    53156 B (  51.9 KB)
  Minimum Free Bytes:   384236 B ( 375.2 KB)
  Largest Free Block:   352244 B ( 344.0 KB)
------------------------------------------
GPIO Info:
------------------------------------------
  GPIO : BUS_TYPE[bus/unit][chan]
  --------------------------------------
     9 : GPIO
    12 : USB_DM
    13 : USB_DP
    16 : UART_TX[0]
    17 : UART_RX[0]
============ After Setup End =============
[  5250][I][ZigbeeCore.cpp:197] esp_zb_app_signal_handler(): Device started up in non factory-reset mode
[  5250][I][ZigbeeCore.cpp:210] esp_zb_app_signal_handler(): Device rebooted
[  5887][V][Zigbee_Temperature_Sensor_test.ino:45] temp_sensor_value_update(): Temperature sensor value: 25.00°C
[  5888][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  5888][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2500
[  5972][V][ZigbeeHandlers.cpp:134] zb_cmd_default_resp_handler(): Received default response: from address(0x0), src_endpoint(1) to dst_endpoint(10), cluster(0x402) with status 0x0
[  6888][V][Zigbee_Temperature_Sensor_test.ino:45] temp_sensor_value_update(): Temperature sensor value: 26.00°C
[  6889][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  6889][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2600
[  7000][V][ZigbeeHandlers.cpp:134] zb_cmd_default_resp_handler(): Received default response: from address(0x0), src_endpoint(1) to dst_endpoint(10), cluster(0x402) with status 0x0
[  7889][V][Zigbee_Temperature_Sensor_test.ino:45] temp_sensor_value_update(): Temperature sensor value: 26.00°C
[  7890][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  7890][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2600
[  8890][V][Zigbee_Temperature_Sensor_test.ino:45] temp_sensor_value_update(): Temperature sensor value: 26.00°C
[  8891][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  8891][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2600
[  9891][V][Zigbee_Temperature_Sensor_test.ino:45] temp_sensor_value_update(): Temperature sensor value: 27.00°C
[  9892][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  9892][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2700
[  9958][V][ZigbeeHandlers.cpp:134] zb_cmd_default_resp_handler(): Received default response: from address(0x0), src_endpoint(1) to dst_endpoint(10), cluster(0x402) with status 0x0
[ 10892][V][Zigbee_Temperature_Sensor_test.ino:45] temp_sensor_value_update(): Temperature sensor value: 27.00°C
[ 10893][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...

@P-R-O-C-H-Y
Copy link
Member

P-R-O-C-H-Y commented Nov 21, 2024

Hi @michapr, yeah there is nothing more to see then the failure of the Zigbee stack:
[ 4724][E][ZigbeeCore.cpp:219] esp_zb_app_signal_handler(): Failed to initialize Zigbee stack (status: ESP_FAIL)

I am sometimes getting this error too, so that's why I added a reboot if this initialization fails.
I can't tell why it's sometimes happening. I get this like 1/10 reboots, and I am not using any delays.

I will try to discuss it with a colleague working the Zigbee stack.

@michapr
Copy link
Author

michapr commented Nov 21, 2024

Just have tried without delay - no success at all, all fails

=========== Before Setup Start ===========
Chip Info:
------------------------------------------
  Model             : ESP32-C6
  Package           : 1
  Revision          : 0.01
  Cores             : 1
  CPU Frequency     : 160 MHz
  XTAL Frequency    : 40 MHz
  Features Bitfield : 0x00000052
  Embedded Flash    : No
  Embedded PSRAM    : No
  2.4GHz WiFi       : Yes
  Classic BT        : No
  BT Low Energy     : Yes
  IEEE 802.15.4     : Yes
------------------------------------------
INTERNAL Memory Info:
------------------------------------------
  Total Size        :   445324 B ( 434.9 KB)
  Free Bytes        :   413968 B ( 404.3 KB)
  Allocated Bytes   :    24388 B (  23.8 KB)
  Minimum Free Bytes:   409156 B ( 399.6 KB)
  Largest Free Block:   376820 B ( 368.0 KB)
------------------------------------------
Flash Info:
------------------------------------------
  Chip Size         :  4194304 B (4 MB)
  Block Size        :    65536 B (  64.0 KB)
  Sector Size       :     4096 B (   4.0 KB)
  Page Size         :      256 B (   0.2 KB)
  Bus Speed         : 40 MHz
  Bus Mode          : QIO
------------------------------------------
Partitions Info:
------------------------------------------
                nvs : addr: 0x00009000, size:    20.0 KB, type: DATA, subtype: NVS
            otadata : addr: 0x0000E000, size:     8.0 KB, type: DATA, subtype: OTA
               app0 : addr: 0x00010000, size:  1280.0 KB, type:  APP, subtype: OTA_0
               app1 : addr: 0x00150000, size:  1280.0 KB, type:  APP, subtype: OTA_1
             spiffs : addr: 0x00290000, size:  1388.0 KB, type: DATA, subtype: SPIFFS
         zb_storage : addr: 0x003EB000, size:    16.0 KB, type: DATA, subtype: FAT
             zb_fct : addr: 0x003EF000, size:     4.0 KB, type: DATA, subtype: FAT
           coredump : addr: 0x003F0000, size:    64.0 KB, type: DATA, subtype: COREDUMP
------------------------------------------
Software Info:
------------------------------------------
  Compile Date/Time : Nov 19 2024 14:37:54
  Compile Host OS   : windows
  ESP-IDF Version   : v5.3.1-638-ga0f798cfc4-dirty
  Arduino Version   : 3.1.0
------------------------------------------
Board Info:
------------------------------------------
  Arduino Board     : ESP32C6_DEV
  Arduino Variant   : esp32c6
  Arduino FQBN      : esp32:esp32:esp32c6:UploadSpeed=921600,CDCOnBoot=cdc,CPUFreq=160,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=zigbee,DebugLevel=verbose,EraseFlash=all,JTAGAdapter=default,ZigbeeMode=ed
============ Before Setup End ============
[  1199][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 12 already has type USB_DM (38) with bus 0x4081155c
[  1200][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 13 already has type USB_DP (39) with bus 0x4081155c
[  1200][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x42003216
[  1201][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type GPIO (1) with bus 0xa
[  1201][D][ZigbeeCore.cpp:66] addEndpoint(): Endpoint: 10, Device ID: 0x0302
[  1202][D][ZigbeeCore.cpp:103] zigbeeInit(): Initialize Zigbee stack
[  1248][D][ZigbeeCore.cpp:110] zigbeeInit(): Register all Zigbee EPs in list
[  1249][I][ZigbeeCore.cpp:118] zigbeeInit(): List of registered Zigbee EPs:
[  1249][I][ZigbeeCore.cpp:120] zigbeeInit(): Device type: Temperature Sensor, Endpoint: 10, Device ID: 0x0302
[  1256][V][Zigbee_Temperature_Sensor_test.ino:45] temp_sensor_value_update(): Temperature sensor value: 15.00°C
[  1256][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  1257][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 1500
[  1258][V][ZigbeeCore.cpp:301] esp_zb_app_signal_handler(): ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL
[  1259][I][ZigbeeCore.cpp:191] esp_zb_app_signal_handler(): Zigbee stack initialized
=========== After Setup Start ============
INTERNAL Memory Info:
------------------------------------------
  Total Size        :   445324 B ( 434.9 KB)
  Free Bytes        :   384372 B ( 375.4 KB)
  Allocated Bytes   :    53152 B (  51.9 KB)
  Minimum Free Bytes:   384336 B ( 375.3 KB)
  Largest Free Block:   352244 B ( 344.0 KB)
------------------------------------------
GPIO Info:
------------------------------------------
  GPIO : BUS_TYPE[bus/unit][chan]
  --------------------------------------
     9 : GPIO
    12 : USB_DM
    13 : USB_DP
    16 : UART_TX[0]
    17 : UART_RX[0]
============ After Setup End =============
[  2257][V][Zigbee_Temperature_Sensor_test.ino:45] temp_sensor_value_update(): Temperature sensor value: 17.00°C
[  2258][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  2258][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 1700
[  3258][V][Zigbee_Temperature_Sensor_test.ino:45] temp_sensor_value_update(): Temperature sensor value: 18.00°C
[  3259][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  3259][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 1800
[  3585][E][ZigbeeCore.cpp:219] esp_zb_app_signal_handler(): Failed to initialize Zigbee stack (status: ESP_FAIL)
[  4259][V][Zigbee_Temperature_Sensor_test.ino:45] temp_sensor_value_update(): Temperature sensor value: 19.00°C
[  4260][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  4260][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 1900
[  5260][V][Zigbee_Temperature_Sensor_test.ino:45] temp_sensor_value_update(): Temperature sensor value: 20.00°C
[  5261][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  5261][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2000
[  6261][V][Zigbee_Temperature_Sensor_test.ino:45] temp_sensor_value_update(): Temperature sensor value: 20.00°C
[  6262][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...

Can you post a working debug log, just out of interest, I would like to compare it ?

I am sometimes getting this error too, so that's why I added a reboot if this initialization fails.

Why does it not reboot here? I have added the 3 lines from your PR

EDIT: Sorry, my fault - have commented it out, because didn't want the reboot while debugging ...

@michapr
Copy link
Author

michapr commented Nov 21, 2024

ok,.. last result....
WITH esp_restart() in line 219 of ZigbeeCore.cpp:

After about 5 minutes rebooting the device was responding with other state (interesting why.... I think it could be a timing problem):

============ After Setup End =============
[  1334][V][Zigbee_Temperature_Sensor_test.ino:45] temp_sensor_value_update(): Temperature sensor value: 37.00°C
[  1335][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  1335][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 3700
[  2335][V][Zigbee_Temperature_Sensor_test.ino:45] temp_sensor_value_update(): Temperature sensor value: 37.00°C
[  2336][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  2336][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 3700
[  2689][I][ZigbeeCore.cpp:197] esp_zb_app_signal_handler(): Device started up in non factory-reset mode
[  2689][I][ZigbeeCore.cpp:210] esp_zb_app_signal_handler(): Device rebooted
[  3336][V][Zigbee_Temperature_Sensor_test.ino:45] temp_sensor_value_update(): Temperature sensor value: 37.00°C
[  3337][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  3337][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 3700

all cycles before:

============ After Setup End =============
[  1336][V][Zigbee_Temperature_Sensor_test.ino:45] temp_sensor_value_update(): Temperature sensor value: 37.00°C
[  1337][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  1337][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 3700
[  2337][V][Zigbee_Temperature_Sensor_test.ino:45] temp_sensor_value_update(): Temperature sensor value: 37.00°C
[  2338][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  2338][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 3700
[  2665][E][ZigbeeCore.cpp:219] esp_zb_app_signal_handler(): Failed to initialize Zigbee stack (status: ESP_FAIL)

After that device is reporting again.

So something is wrong there "anywhere" ;)

@michapr
Copy link
Author

michapr commented Nov 21, 2024

Last for today.... an interesting fact:

If I set in the IDE the CPU Frequency to 80MHz - looks like all is working, without reboots after power off/on ....

@P-R-O-C-H-Y
Copy link
Member

Last for today.... an interesting fact:

If I set in the IDE the CPU Frequency to 80MHz - looks like all is working, without reboots after power off/on ....

That is an interesting fact. Nice investigation. I will report all the info and also check if there is anything suspicious why that "fixed" the issue. Thank you again, great work.

@me-no-dev
Copy link
Member

Have you tried to wait for ESP_ZB_BDB_SIGNAL_DEVICE_FIRST_START/REBOOT before setting any attributes? Blocking Zigbee.begin(); would be a good option

@P-R-O-C-H-Y
Copy link
Member

P-R-O-C-H-Y commented Nov 21, 2024

You can add to the code to wait for Zigbee stack to be ready. But I think we have tired that and it did not help at all. But can you give it a try?

  // Waint until Zigbee stack is ready
  while (!Zigbee.isStarted()) {
    delay(100);
  }

@michapr
Copy link
Author

michapr commented Nov 22, 2024

You can add to the code to wait for Zigbee stack to be ready. But I think we have tired that and it did not help at all. But can you give it a try?

  // Waint until Zigbee stack is ready
  while (!Zigbee.isStarted()) {
    delay(100);
  }

This will help a bit - device is rebooting sometimes (in my case up to 16 times) and then is responding. (additional delay did not change anything)
But I think it is not the best solution for a sleeping sensor sketch, here we need short live time ;)

Have you tried to wait for ESP_ZB_BDB_SIGNAL_DEVICE_FIRST_START/REBOOT before setting any attributes?

How this could be done?

@me-no-dev
Copy link
Member

How this could be done?

More or less the wait for started does it.

@P-R-O-C-H-Y
Copy link
Member

P-R-O-C-H-Y commented Nov 22, 2024

@michapr Can you test with changes in #10636? :)
Also check the updated examples. I am not getting 0 crashes with the TempHum sleepy device example.

@michapr
Copy link
Author

michapr commented Nov 22, 2024

Once have seen one reboot only. On second try power off/on I have switched of after 45 reboots....
(all at 160MHz CPU clock - Temperature sketch)

Rebooting...
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0xc (SW_CPU),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x4001975a
SPIWP:0xee
mode:DIO, clock div:2
load:0x40875720,len:0x1190
load:0x4086c110,len:0xd98
load:0x4086e610,len:0x2e84
entry 0x4086c110
[     0][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x42005d50
[    12][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x42005d14
[    23][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x42005cd8
[    34][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x42005c9c
[    46][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x42005d50
[    57][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x42005d14
[    68][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x42005cd8
[    80][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x42005c9c
[    91][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DM (38) successfully set to 0x420024e8
[   102][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DP (39) successfully set to 0x420024e8
[   114][V][ZigbeeEP.cpp:18] ZigbeeEP(): Endpoint: 10
[   129][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 17 successfully set to type UART_RX (2) with bus 0x4080f0fc
[   140][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 16 successfully set to type UART_TX (3) with bus 0x4080f0fc
[   151][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 12 successfully set to type USB_DM (38) with bus 0x40811560
[   161][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 13 successfully set to type USB_DP (39) with bus 0x40811560
=========== Before Setup Start ===========
Chip Info:
------------------------------------------
  Model             : ESP32-C6
  Package           : 1
  Revision          : 0.01
  Cores             : 1
  CPU Frequency     : 160 MHz
  XTAL Frequency    : 40 MHz
  Features Bitfield : 0x00000052
  Embedded Flash    : No
  Embedded PSRAM    : No
  2.4GHz WiFi       : Yes
  Classic BT        : No
  BT Low Energy     : Yes
  IEEE 802.15.4     : Yes
------------------------------------------
INTERNAL Memory Info:
------------------------------------------
  Total Size        :   445324 B ( 434.9 KB)
  Free Bytes        :   408872 B ( 399.3 KB)
  Allocated Bytes   :    29436 B (  28.7 KB)
  Minimum Free Bytes:   408872 B ( 399.3 KB)
  Largest Free Block:   376820 B ( 368.0 KB)
------------------------------------------
Flash Info:
------------------------------------------
  Chip Size         :  4194304 B (4 MB)
  Block Size        :    65536 B (  64.0 KB)
  Sector Size       :     4096 B (   4.0 KB)
  Page Size         :      256 B (   0.2 KB)
  Bus Speed         : 40 MHz
  Bus Mode          : QIO
------------------------------------------
Partitions Info:
------------------------------------------
                nvs : addr: 0x00009000, size:    20.0 KB, type: DATA, subtype: NVS
            otadata : addr: 0x0000E000, size:     8.0 KB, type: DATA, subtype: OTA
               app0 : addr: 0x00010000, size:  1280.0 KB, type:  APP, subtype: OTA_0
               app1 : addr: 0x00150000, size:  1280.0 KB, type:  APP, subtype: OTA_1
             spiffs : addr: 0x00290000, size:  1388.0 KB, type: DATA, subtype: SPIFFS
         zb_storage : addr: 0x003EB000, size:    16.0 KB, type: DATA, subtype: FAT
             zb_fct : addr: 0x003EF000, size:     4.0 KB, type: DATA, subtype: FAT
           coredump : addr: 0x003F0000, size:    64.0 KB, type: DATA, subtype: COREDUMP
------------------------------------------
Software Info:
------------------------------------------
  Compile Date/Time : Nov 22 2024 16:57:10
  Compile Host OS   : windows
  ESP-IDF Version   : v5.3.1-638-ga0f798cfc4-dirty
  Arduino Version   : 3.1.0
------------------------------------------
Board Info:
------------------------------------------
  Arduino Board     : ESP32C6_DEV
  Arduino Variant   : esp32c6
  Arduino FQBN      : esp32:esp32:esp32c6:UploadSpeed=921600,CDCOnBoot=cdc,CPUFreq=160,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=zigbee,DebugLevel=verbose,EraseFlash=all,JTAGAdapter=default,ZigbeeMode=ed
============ Before Setup End ============
[   284][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 12 already has type USB_DM (38) with bus 0x40811560
[   285][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 13 already has type USB_DP (39) with bus 0x40811560
[   285][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4200340c
[   286][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type GPIO (1) with bus 0xa
[   286][D][ZigbeeCore.cpp:82] addEndpoint(): Endpoint: 10, Device ID: 0x0302
Starting Zigbee...
[   287][D][ZigbeeCore.cpp:119] zigbeeInit(): Initialize Zigbee stack
[   335][D][ZigbeeCore.cpp:126] zigbeeInit(): Register all Zigbee EPs in list
[   336][I][ZigbeeCore.cpp:134] zigbeeInit(): List of registered Zigbee EPs:
[   336][I][ZigbeeCore.cpp:136] zigbeeInit(): Device type: Temperature Sensor, Endpoint: 10, Device ID: 0x0302
[   344][V][ZigbeeCore.cpp:322] esp_zb_app_signal_handler(): ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL
[   344][I][ZigbeeCore.cpp:207] esp_zb_app_signal_handler(): Zigbee stack initialized
[  2671][E][ZigbeeCore.cpp:239] esp_zb_app_signal_handler(): Failed to initialize Zigbee stack (status: ESP_FAIL)
Zigbee failed to start!
Rebooting...

@P-R-O-C-H-Y
Copy link
Member

Thank you for testing. I have one more task for you if you can help.
Can you please get the last commits from the PR I posted before?
Restart the Arduino IDE, and then you will be able to see new Zigbee model with DEBUG option.
Can you please select the End Device - Debug and post the output log when if fails to start? Thanks!
Screenshot 2024-11-22 at 16 55 24

@michapr
Copy link
Author

michapr commented Nov 22, 2024

cannot get the options in this time - looks like IDE is caching old options anywhere.
I see it for H2, but not for C6 :(
In board.txt the options are available... Already have reinstalledd the RC3 (all the time with restarting IDE) and modified the board.txt again - no success. Any idea?

@P-R-O-C-H-Y
Copy link
Member

P-R-O-C-H-Y commented Nov 22, 2024

@michapr Are you using the old IDE or DE 2.0? in the new 2.0 ice there is some problem with caches. For old Ideas it should work. Or you can delete the cached files for sure :) (delete ~/Library/Arduino15 folder, may be different for Windows)

@michapr
Copy link
Author

michapr commented Nov 22, 2024

Just for record.... Clear the cache for fixing the board.txt issue:

Windows:
    C:\Users\<user name>\AppData\Roaming\arduino-ide\
Linux:
    ~/.config/arduino-ide/
macOS:
~/Library/Application Support/arduino-ide/

Here final is the log - at the end after some reboots the device is reporting.
(Temperature sketch)

=========== Before Setup Start ===========
Chip Info:
------------------------------------------
  Model             : ESP32-C6
  Package           : 1
  Revision          : 0.01
  Cores             : 1
  CPU Frequency     : 160 MHz
  XTAL Frequency    : 40 MHz
  Features Bitfield : 0x00000052
  Embedded Flash    : No
  Embedded PSRAM    : No
  2.4GHz WiFi       : Yes
  Classic BT        : No
  BT Low Energy     : Yes
  IEEE 802.15.4     : Yes
------------------------------------------
INTERNAL Memory Info:
------------------------------------------
  Total Size        :   445260 B ( 434.8 KB)
  Free Bytes        :   413940 B ( 404.2 KB)
  Allocated Bytes   :    24352 B (  23.8 KB)
  Minimum Free Bytes:   409128 B ( 399.5 KB)
  Largest Free Block:   376820 B ( 368.0 KB)
------------------------------------------
Flash Info:
------------------------------------------
  Chip Size         :  4194304 B (4 MB)
  Block Size        :    65536 B (  64.0 KB)
  Sector Size       :     4096 B (   4.0 KB)
  Page Size         :      256 B (   0.2 KB)
  Bus Speed         : 40 MHz
  Bus Mode          : QIO
------------------------------------------
Partitions Info:
------------------------------------------
                nvs : addr: 0x00009000, size:    20.0 KB, type: DATA, subtype: NVS
            otadata : addr: 0x0000E000, size:     8.0 KB, type: DATA, subtype: OTA
               app0 : addr: 0x00010000, size:  1280.0 KB, type:  APP, subtype: OTA_0
               app1 : addr: 0x00150000, size:  1280.0 KB, type:  APP, subtype: OTA_1
             spiffs : addr: 0x00290000, size:  1388.0 KB, type: DATA, subtype: SPIFFS
         zb_storage : addr: 0x003EB000, size:    16.0 KB, type: DATA, subtype: FAT
             zb_fct : addr: 0x003EF000, size:     4.0 KB, type: DATA, subtype: FAT
           coredump : addr: 0x003F0000, size:    64.0 KB, type: DATA, subtype: COREDUMP
------------------------------------------
Software Info:
------------------------------------------
  Compile Date/Time : Nov 22 2024 20:19:57
  Compile Host OS   : windows
  ESP-IDF Version   : v5.3.1-638-ga0f798cfc4-dirty
  Arduino Version   : 3.1.0
------------------------------------------
Board Info:
------------------------------------------
  Arduino Board     : ESP32C6_DEV
  Arduino Variant   : esp32c6
  Arduino FQBN      : esp32:esp32:esp32c6:UploadSpeed=921600,CDCOnBoot=cdc,CPUFreq=160,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=zigbee,DebugLevel=verbose,EraseFlash=all,JTAGAdapter=default,ZigbeeMode=ed_debug
============ Before Setup End ============
[  1290][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 12 already has type USB_DM (38) with bus 0x408115a0
[  1291][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 13 already has type USB_DP (39) with bus 0x408115a0
[  1291][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x42003400
[  1292][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type GPIO (1) with bus 0xa
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x42 attr_value 0x408198e4
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 10
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x42 attr_value 0x40819900
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 17
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x29 attr_value 0x4081e35c
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x29 attr_value 0x4081e35e
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x21 attr_value 0x4081e35e
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
[  1296][D][ZigbeeCore.cpp:82] addEndpoint(): Endpoint: 10, Device ID: 0x0302
Starting Zigbee...
[  1296][D][ZigbeeCore.cpp:119] zigbeeInit(): Initialize Zigbee stack
ZBOSS: common/zb_init_default.c:181   ED build
ZBOSS: common/zb_init_default.c:187   sizes: g_zb 7576 sched 224 bpool 16 nwk 912 aps 3040 addr 284 zdo 840
ZBOSS: common/zb_init_default.c:196   sec 2
ZBOSS: common/zb_init_default.c:198   zcl 768
ZBOSS: common/zb_init_default.c:201   zll 960
ZBOSS: common/zb_init_default.c:207   nvram 140
ZBOSS: common/zb_init_default.c:210   buttons 200
ZBOSS: common/zb_init_default.c:212   err_ind 4
ZBOSS: common/zb_init_default.c:218   scheduler q size 80
ZBOSS: common/zb_init_default.c:221   g_mac 816 g_imac 28
ZBOSS: common/zb_init_default.c:225   Configurable mem build, use ZBOSS lib defaults = 0
ZBOSS: common/zb_init_default.c:231   ZB_IOBUF_POOL_SIZE 80 ZB_NWK_IN_Q_SIZE 40 ZB_MAC_PENDING_QUEUE_SIZE 20 ZB_APS_DST_BINDING_TABLE_SIZE 16 ZB_APS_BIND_TRANS_TABLE_SIZE 20 ZB_N_APS_RETRANS_ENTRIES 27
ZBOSS: common/zb_init_default.c:261   ZB_N_APS_KEY_PAIR_ARR_MAX_SIZE 8 ZB_IEEE_ADDR_TABLE_SIZE 64 ZB_NEIGHBOR_TABLE_SIZE 64 ZB_NWK_ROUTING_TABLE_SIZE 0 ZB_APS_DUPS_TABLE_SIZE 32
[  1349][D][ZigbeeCore.cpp:126] zigbeeInit(): Register all Zigbee EPs in list
ZBOSS: zdo/af_descriptor.c:357   ep_count 1
[  1350][I][ZigbeeCore.cpp:134] zigbeeInit(): List of registered Zigbee EPs:
[  1351][I][ZigbeeCore.cpp:136] zigbeeInit(): Device type: Temperature Sensor, Endpoint: 10, Device ID: 0x0302
ZBOSS: common/zb_nvram.c:3190   ds_ver == 2
ZBOSS: zdo/zdo_app_prod_conf.c:144   no production config block found
ZBOSS: zdo/zdo_app_prod_conf.c:781   no valid production configuration found, signaling to application
[  1360][V][ZigbeeCore.cpp:322] esp_zb_app_signal_handler(): ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL
[  1361][I][ZigbeeCore.cpp:207] esp_zb_app_signal_handler(): Zigbee stack initialized
ZBOSS: commissioning/bdb/zdo_commissioning_bdb.c:349   dev type 2, joined 1, ext_pan_id 1, authenticated 1, tclk_valid 1
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 25
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 25
ZBOSS: nwk/nwk_join.c:629   Rejoin failure: no dev with xpanid 3a:63:5d:94:1c:56:10:7e or can't choose best parent
ZBOSS: commissioning/bdb/zdo_commissioning_bdb.c:549   COMMISSIONING_STOP: app signal 6 comm status 3
[  3691][E][ZigbeeCore.cpp:239] esp_zb_app_signal_handler(): Failed to initialize Zigbee stack (status: ESP_FAIL)
Zigbee failed to start!
Rebooting...
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0xc (SW_CPU),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x4001975a
SPIWP:0xee
mode:DIO, clock div:2
load:0x40875720,len:0x1190
load:0x4086c110,len:0xd98
load:0x4086e610,len:0x2e84
entry 0x4086c110
[     0][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x42005d44
[    12][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x42005d08
[    23][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x42005ccc
[    34][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x42005c90
[    46][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x42005d44
[    57][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x42005d08
[    68][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x42005ccc
[    80][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x42005c90
[    91][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DM (38) successfully set to 0x420024dc
[   102][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DP (39) successfully set to 0x420024dc
[   114][V][ZigbeeEP.cpp:18] ZigbeeEP(): Endpoint: 10
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x20 attr_value 0x4087e19f
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 1
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x30 attr_value 0x4087e19e
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 1
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x21 attr_value 0x4087e19e
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x29 attr_value 0x4087e19e
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x29 attr_value 0x4087e19c
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x29 attr_value 0x4087e19a
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
[   201][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 17 successfully set to type UART_RX (2) with bus 0x4080f144
[   217][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 16 successfully set to type UART_TX (3) with bus 0x4080f144
[   227][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 12 successfully set to type USB_DM (38) with bus 0x408115a0
[   238][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 13 successfully set to type USB_DP (39) with bus 0x408115a0
=========== Before Setup Start ===========
Chip Info:
------------------------------------------
  Model             : ESP32-C6
  Package           : 1
  Revision          : 0.01
  Cores             : 1
  CPU Frequency     : 160 MHz
  XTAL Frequency    : 40 MHz
  Features Bitfield : 0x00000052
  Embedded Flash    : No
  Embedded PSRAM    : No
  2.4GHz WiFi       : Yes
  Classic BT        : No
  BT Low Energy     : Yes
  IEEE 802.15.4     : Yes
------------------------------------------
INTERNAL Memory Info:
------------------------------------------
  Total Size        :   445260 B ( 434.8 KB)
  Free Bytes        :   408808 B ( 399.2 KB)
  Allocated Bytes   :    29436 B (  28.7 KB)
  Minimum Free Bytes:   408808 B ( 399.2 KB)
  Largest Free Block:   376820 B ( 368.0 KB)
------------------------------------------
Flash Info:
------------------------------------------
  Chip Size         :  4194304 B (4 MB)
  Block Size        :    65536 B (  64.0 KB)
  Sector Size       :     4096 B (   4.0 KB)
  Page Size         :      256 B (   0.2 KB)
  Bus Speed         : 40 MHz
  Bus Mode          : QIO
------------------------------------------
Partitions Info:
------------------------------------------
                nvs : addr: 0x00009000, size:    20.0 KB, type: DATA, subtype: NVS
            otadata : addr: 0x0000E000, size:     8.0 KB, type: DATA, subtype: OTA
               app0 : addr: 0x00010000, size:  1280.0 KB, type:  APP, subtype: OTA_0
               app1 : addr: 0x00150000, size:  1280.0 KB, type:  APP, subtype: OTA_1
             spiffs : addr: 0x00290000, size:  1388.0 KB, type: DATA, subtype: SPIFFS
         zb_storage : addr: 0x003EB000, size:    16.0 KB, type: DATA, subtype: FAT
             zb_fct : addr: 0x003EF000, size:     4.0 KB, type: DATA, subtype: FAT
           coredump : addr: 0x003F0000, size:    64.0 KB, type: DATA, subtype: COREDUMP
------------------------------------------
Software Info:
------------------------------------------
  Compile Date/Time : Nov 22 2024 20:19:57
  Compile Host OS   : windows
  ESP-IDF Version   : v5.3.1-638-ga0f798cfc4-dirty
  Arduino Version   : 3.1.0
------------------------------------------
Board Info:
------------------------------------------
  Arduino Board     : ESP32C6_DEV
  Arduino Variant   : esp32c6
  Arduino FQBN      : esp32:esp32:esp32c6:UploadSpeed=921600,CDCOnBoot=cdc,CPUFreq=160,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=zigbee,DebugLevel=verbose,EraseFlash=all,JTAGAdapter=default,ZigbeeMode=ed_debug
============ Before Setup End ============
[   362][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 12 already has type USB_DM (38) with bus 0x408115a0
[   363][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 13 already has type USB_DP (39) with bus 0x408115a0
[   363][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x42003400
[   364][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type GPIO (1) with bus 0xa
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x42 attr_value 0x40819784
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 10
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x42 attr_value 0x408197a0
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 17
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x29 attr_value 0x4081e3ec
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x29 attr_value 0x4081e3ee
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x21 attr_value 0x4081e3ee
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
[   368][D][ZigbeeCore.cpp:82] addEndpoint(): Endpoint: 10, Device ID: 0x0302
Starting Zigbee...
[   368][D][ZigbeeCore.cpp:119] zigbeeInit(): Initialize Zigbee stack
ZBOSS: common/zb_init_default.c:181   ED build
ZBOSS: common/zb_init_default.c:187   sizes: g_zb 7576 sched 224 bpool 16 nwk 912 aps 3040 addr 284 zdo 840
ZBOSS: common/zb_init_default.c:196   sec 2
ZBOSS: common/zb_init_default.c:198   zcl 768
ZBOSS: common/zb_init_default.c:201   zll 960
ZBOSS: common/zb_init_default.c:207   nvram 140
ZBOSS: common/zb_init_default.c:210   buttons 200
ZBOSS: common/zb_init_default.c:212   err_ind 4
ZBOSS: common/zb_init_default.c:218   scheduler q size 80
ZBOSS: common/zb_init_default.c:221   g_mac 816 g_imac 28
ZBOSS: common/zb_init_default.c:225   Configurable mem build, use ZBOSS lib defaults = 0
ZBOSS: common/zb_init_default.c:231   ZB_IOBUF_POOL_SIZE 80 ZB_NWK_IN_Q_SIZE 40 ZB_MAC_PENDING_QUEUE_SIZE 20 ZB_APS_DST_BINDING_TABLE_SIZE 16 ZB_APS_BIND_TRANS_TABLE_SIZE 20 ZB_N_APS_RETRANS_ENTRIES 27
ZBOSS: common/zb_init_default.c:261   ZB_N_APS_KEY_PAIR_ARR_MAX_SIZE 8 ZB_IEEE_ADDR_TABLE_SIZE 64 ZB_NEIGHBOR_TABLE_SIZE 64 ZB_NWK_ROUTING_TABLE_SIZE 0 ZB_APS_DUPS_TABLE_SIZE 32
[   408][D][ZigbeeCore.cpp:126] zigbeeInit(): Register all Zigbee EPs in list
ZBOSS: zdo/af_descriptor.c:357   ep_count 1
[   410][I][ZigbeeCore.cpp:134] zigbeeInit(): List of registered Zigbee EPs:
[   410][I][ZigbeeCore.cpp:136] zigbeeInit(): Device type: Temperature Sensor, Endpoint: 10, Device ID: 0x0302
ZBOSS: common/zb_nvram.c:3190   ds_ver == 2
ZBOSS: zdo/zdo_app_prod_conf.c:144   no production config block found
ZBOSS: zdo/zdo_app_prod_conf.c:781   no valid production configuration found, signaling to application
[   419][V][ZigbeeCore.cpp:322] esp_zb_app_signal_handler(): ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL
[   420][I][ZigbeeCore.cpp:207] esp_zb_app_signal_handler(): Zigbee stack initialized
ZBOSS: commissioning/bdb/zdo_commissioning_bdb.c:349   dev type 2, joined 1, ext_pan_id 1, authenticated 1, tclk_valid 1
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 20
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 10
ZBOSS: nwk/nwk_join.c:629   Rejoin failure: no dev with xpanid 3a:63:5d:94:1c:56:10:7e or can't choose best parent
ZBOSS: commissioning/bdb/zdo_commissioning_bdb.c:549   COMMISSIONING_STOP: app signal 6 comm status 3
[  2749][E][ZigbeeCore.cpp:239] esp_zb_app_signal_handler(): Failed to initialize Zigbee stack (status: ESP_FAIL)
ZESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0xc (SW_CPU),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x4001975a
SPIWP:0xee
mode:DIO, clock div:2
load:0x40875720,len:0x1190
load:0x4086c110,len:0xd98
load:0x4086e610,len:0x2e84
entry 0x4086c110
[     0][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x42005d44
[    12][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x42005d08
[    23][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x42005ccc
[    34][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x42005c90
[    46][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x42005d44
[    57][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x42005d08
[    68][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x42005ccc
[    80][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x42005c90
[    91][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DM (38) successfully set to 0x420024dc
[   102][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DP (39) successfully set to 0x420024dc
[   114][V][ZigbeeEP.cpp:18] ZigbeeEP(): Endpoint: 10
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x20 attr_value 0x4087e19f
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 1
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x30 attr_value 0x4087e19e
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 1
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x21 attr_value 0x4087e19e
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x29 attr_value 0x4087e19e
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x29 attr_value 0x4087e19c
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x29 attr_value 0x4087e19a
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
[   201][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 17 successfully set to type UART_RX (2) with bus 0x4080f144
[   217][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 16 successfully set to type UART_TX (3) with bus 0x4080f144
[   227][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 12 successfully set to type USB_DM (38) with bus 0x408115a0
[   238][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 13 successfully set to type USB_DP (39) with bus 0x408115a0
=========== Before Setup Start ===========
Chip Info:
------------------------------------------
  Model             : ESP32-C6
  Package           : 1
  Revision          : 0.01
  Cores             : 1
  CPU Frequency     : 160 MHz
  XTAL Frequency    : 40 MHz
  Features Bitfield : 0x00000052
  Embedded Flash    : No
  Embedded PSRAM    : No
  2.4GHz WiFi       : Yes
  Classic BT        : No
  BT Low Energy     : Yes
  IEEE 802.15.4     : Yes
------------------------------------------
INTERNAL Memory Info:
------------------------------------------
  Total Size        :   445260 B ( 434.8 KB)
  Free Bytes        :   408808 B ( 399.2 KB)
  Allocated Bytes   :    29436 B (  28.7 KB)
  Minimum Free Bytes:   408808 B ( 399.2 KB)
  Largest Free Block:   376820 B ( 368.0 KB)
------------------------------------------
Flash Info:
------------------------------------------
  Chip Size         :  4194304 B (4 MB)
  Block Size        :    65536 B (  64.0 KB)
  Sector Size       :     4096 B (   4.0 KB)
  Page Size         :      256 B (   0.2 KB)
  Bus Speed         : 40 MHz
  Bus Mode          : QIO
------------------------------------------
Partitions Info:
------------------------------------------
                nvs : addr: 0x00009000, size:    20.0 KB, type: DATA, subtype: NVS
            otadata : addr: 0x0000E000, size:     8.0 KB, type: DATA, subtype: OTA
               app0 : addr: 0x00010000, size:  1280.0 KB, type:  APP, subtype: OTA_0
               app1 : addr: 0x00150000, size:  1280.0 KB, type:  APP, subtype: OTA_1
             spiffs : addr: 0x00290000, size:  1388.0 KB, type: DATA, subtype: SPIFFS
         zb_storage : addr: 0x003EB000, size:    16.0 KB, type: DATA, subtype: FAT
             zb_fct : addr: 0x003EF000, size:     4.0 KB, type: DATA, subtype: FAT
           coredump : addr: 0x003F0000, size:    64.0 KB, type: DATA, subtype: COREDUMP
------------------------------------------
Software Info:
------------------------------------------
  Compile Date/Time : Nov 22 2024 20:19:57
  Compile Host OS   : windows
  ESP-IDF Version   : v5.3.1-638-ga0f798cfc4-dirty
  Arduino Version   : 3.1.0
------------------------------------------
Board Info:
------------------------------------------
  Arduino Board     : ESP32C6_DEV
  Arduino Variant   : esp32c6
  Arduino FQBN      : esp32:esp32:esp32c6:UploadSpeed=921600,CDCOnBoot=cdc,CPUFreq=160,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=zigbee,DebugLevel=verbose,EraseFlash=all,JTAGAdapter=default,ZigbeeMode=ed_debug
============ Before Setup End ============
[   361][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 12 already has type USB_DM (38) with bus 0x408115a0
[   362][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 13 already has type USB_DP (39) with bus 0x408115a0
[   362][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x42003400
[   363][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type GPIO (1) with bus 0xa
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x42 attr_value 0x40819784
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 10
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x42 attr_value 0x408197a0
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 17
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x29 attr_value 0x4081e3ec
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x29 attr_value 0x4081e3ee
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x21 attr_value 0x4081e3ee
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
[   367][D][ZigbeeCore.cpp:82] addEndpoint(): Endpoint: 10, Device ID: 0x0302
Starting Zigbee...
[   368][D][ZigbeeCore.cpp:119] zigbeeInit(): Initialize Zigbee stack
ZBOSS: common/zb_init_default.c:181   ED build
ZBOSS: common/zb_init_default.c:187   sizes: g_zb 7576 sched 224 bpool 16 nwk 912 aps 3040 addr 284 zdo 840
ZBOSS: common/zb_init_default.c:196   sec 2
ZBOSS: common/zb_init_default.c:198   zcl 768
ZBOSS: common/zb_init_default.c:201   zll 960
ZBOSS: common/zb_init_default.c:207   nvram 140
ZBOSS: common/zb_init_default.c:210   buttons 200
ZBOSS: common/zb_init_default.c:212   err_ind 4
ZBOSS: common/zb_init_default.c:218   scheduler q size 80
ZBOSS: common/zb_init_default.c:221   g_mac 816 g_imac 28
ZBOSS: common/zb_init_default.c:225   Configurable mem build, use ZBOSS lib defaults = 0
ZBOSS: common/zb_init_default.c:231   ZB_IOBUF_POOL_SIZE 80 ZB_NWK_IN_Q_SIZE 40 ZB_MAC_PENDING_QUEUE_SIZE 20 ZB_APS_DST_BINDING_TABLE_SIZE 16 ZB_APS_BIND_TRANS_TABLE_SIZE 20 ZB_N_APS_RETRANS_ENTRIES 27
ZBOSS: common/zb_init_default.c:261   ZB_N_APS_KEY_PAIR_ARR_MAX_SIZE 8 ZB_IEEE_ADDR_TABLE_SIZE 64 ZB_NEIGHBOR_TABLE_SIZE 64 ZB_NWK_ROUTING_TABLE_SIZE 0 ZB_APS_DUPS_TABLE_SIZE 32
[   407][D][ZigbeeCore.cpp:126] zigbeeInit(): Register all Zigbee EPs in list
ZBOSS: zdo/af_descriptor.c:357   ep_count 1
[   409][I][ZigbeeCore.cpp:134] zigbeeInit(): List of registered Zigbee EPs:
[   409][I][ZigbeeCore.cpp:136] zigbeeInit(): Device type: Temperature Sensor, Endpoint: 10, Device ID: 0x0302
ZBOSS: common/zb_nvram.c:3190   ds_ver == 2
ZBOSS: zdo/zdo_app_prod_conf.c:144   no production config block found
ZBOSS: zdo/zdo_app_prod_conf.c:781   no valid production configuration found, signaling to application
[   418][V][ZigbeeCore.cpp:322] esp_zb_app_signal_handler(): ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL
[   419][I][ZigbeeCore.cpp:207] esp_zb_app_signal_handler(): Zigbee stack initialized
ZBOSS: commissioning/bdb/zdo_commissioning_bdb.c:349   dev type 2, joined 1, ext_pan_id 1, authenticated 1, tclk_valid 1
ZBOSS: nwk/nwk_join.c:186   low lqi 25
ZBOSS: nwk/nwk_join.c:186   low lqi 10
ZBOSS: nwk/nwk_join.c:186   low lqi 20
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:629   Rejoin failure: no dev with xpanid 3a:63:5d:94:1c:56:10:7e or can't choose best parent
ZBOSS: commissioning/bdb/zdo_commissioning_bdb.c:549   COMMISSIONING_STOP: app signal 6 comm status 3
[  2749][E][ZigbeeCore.cpp:239] esp_zb_app_signal_handler(): Failed to initialize Zigbee stack (status: ESP_FAIL)
Zigbee failed to start!
Rebooting...
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0xc (SW_CPU),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x4001975a
SPIWP:0xee
mode:DIO, clock div:2
load:0x40875720,len:0x1190
load:0x4086c110,len:0xd98
load:0x4086e610,len:0x2e84
entry 0x4086c110
[     0][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x42005d44
[    12][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x42005d08
[    23][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x42005ccc
[    34][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x42005c90
[    46][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x42005d44
[    57][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x42005d08
[    68][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x42005ccc
[    80][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x42005c90
[    91][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DM (38) successfully set to 0x420024dc
[   102][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DP (39) successfully set to 0x420024dc
[   114][V][ZigbeeEP.cpp:18] ZigbeeEP(): Endpoint: 10
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x20 attr_value 0x4087e19f
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 1
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x30 attr_value 0x4087e19e
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 1
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x21 attr_value 0x4087e19e
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x29 attr_value 0x4087e19e
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x29 attr_value 0x4087e19c
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x29 attr_value 0x4087e19a
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
[   201][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 17 successfully set to type UART_RX (2) with bus 0x4080f144
[   217][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 16 successfully set to type UART_TX (3) with bus 0x4080f144
[   227][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 12 successfully set to type USB_DM (38) with bus 0x408115a0
[   238][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 13 successfully set to type USB_DP (39) with bus 0x408115a0
=========== Before Setup Start ===========
Chip Info:
------------------------------------------
  Model             : ESP32-C6
  Package           : 1
  Revision          : 0.01
  Cores             : 1
  CPU Frequency     : 160 MHz
  XTAL Frequency    : 40 MHz
  Features Bitfield : 0x00000052
  Embedded Flash    : No
  Embedded PSRAM    : No
  2.4GHz WiFi       : Yes
  Classic BT        : No
  BT Low Energy     : Yes
  IEEE 802.15.4     : Yes
------------------------------------------
INTERNAL Memory Info:
------------------------------------------
  Total Size        :   445260 B ( 434.8 KB)
  Free Bytes        :   408808 B ( 399.2 KB)
  Allocated Bytes   :    29436 B (  28.7 KB)
  Minimum Free Bytes:   408808 B ( 399.2 KB)
  Largest Free Block:   376820 B ( 368.0 KB)
------------------------------------------
Flash Info:
------------------------------------------
  Chip Size         :  4194304 B (4 MB)
  Block Size        :    65536 B (  64.0 KB)
  Sector Size       :     4096 B (   4.0 KB)
  Page Size         :      256 B (   0.2 KB)
  Bus Speed         : 40 MHz
  Bus Mode          : QIO
------------------------------------------
Partitions Info:
------------------------------------------
                nvs : addr: 0x00009000, size:    20.0 KB, type: DATA, subtype: NVS
            otadata : addr: 0x0000E000, size:     8.0 KB, type: DATA, subtype: OTA
               app0 : addr: 0x00010000, size:  1280.0 KB, type:  APP, subtype: OTA_0
               app1 : addr: 0x00150000, size:  1280.0 KB, type:  APP, subtype: OTA_1
             spiffs : addr: 0x00290000, size:  1388.0 KB, type: DATA, subtype: SPIFFS
         zb_storage : addr: 0x003EB000, size:    16.0 KB, type: DATA, subtype: FAT
             zb_fct : addr: 0x003EF000, size:     4.0 KB, type: DATA, subtype: FAT
           coredump : addr: 0x003F0000, size:    64.0 KB, type: DATA, subtype: COREDUMP
------------------------------------------
Software Info:
------------------------------------------
  Compile Date/Time : Nov 22 2024 20:19:57
  Compile Host OS   : windows
  ESP-IDF Version   : v5.3.1-638-ga0f798cfc4-dirty
  Arduino Version   : 3.1.0
------------------------------------------
Board Info:
------------------------------------------
  Arduino Board     : ESP32C6_DEV
  Arduino Variant   : esp32c6
  Arduino FQBN      : esp32:esp32:esp32c6:UploadSpeed=921600,CDCOnBoot=cdc,CPUFreq=160,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=zigbee,DebugLevel=verbose,EraseFlash=all,JTAGAdapter=default,ZigbeeMode=ed_debug
============ Before Setup End ============
[   361][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 12 already has type USB_DM (38) with bus 0x408115a0
[   362][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 13 already has type USB_DP (39) with bus 0x408115a0
[   362][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x42003400
[   363][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type GPIO (1) with bus 0xa
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x42 attr_value 0x40819784
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 10
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x42 attr_value 0x408197a0
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 17
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x29 attr_value 0x4081e3ec
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x29 attr_value 0x4081e3ee
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x21 attr_value 0x4081e3ee
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
[   367][D][ZigbeeCore.cpp:82] addEndpoint(): Endpoint: 10, Device ID: 0x0302
Starting Zigbee...
[   367][D][ZigbeeCore.cpp:119] zigbeeInit(): Initialize Zigbee stack
ZBOSS: common/zb_init_default.c:181   ED build
ZBOSS: common/zb_init_default.c:187   sizes: g_zb 7576 sched 224 bpool 16 nwk 912 aps 3040 addr 284 zdo 840
ZBOSS: common/zb_init_default.c:196   sec 2
ZBOSS: common/zb_init_default.c:198   zcl 768
ZBOSS: common/zb_init_default.c:201   zll 960
ZBOSS: common/zb_init_default.c:207   nvram 140
ZBOSS: common/zb_init_default.c:210   buttons 200
ZBOSS: common/zb_init_default.c:212   err_ind 4
ZBOSS: common/zb_init_default.c:218   scheduler q size 80
ZBOSS: common/zb_init_default.c:221   g_mac 816 g_imac 28
ZBOSS: common/zb_init_default.c:225   Configurable mem build, use ZBOSS lib defaults = 0
ZBOSS: common/zb_init_default.c:231   ZB_IOBUF_POOL_SIZE 80 ZB_NWK_IN_Q_SIZE 40 ZB_MAC_PENDING_QUEUE_SIZE 20 ZB_APS_DST_BINDING_TABLE_SIZE 16 ZB_APS_BIND_TRANS_TABLE_SIZE 20 ZB_N_APS_RETRANS_ENTRIES 27
ZBOSS: common/zb_init_default.c:261   ZB_N_APS_KEY_PAIR_ARR_MAX_SIZE 8 ZB_IEEE_ADDR_TABLE_SIZE 64 ZB_NEIGHBOR_TABLE_SIZE 64 ZB_NWK_ROUTING_TABLE_SIZE 0 ZB_APS_DUPS_TABLE_SIZE 32
[   422][D][ZigbeeCore.cpp:126] zigbeeInit(): Register all Zigbee EPs in list
ZBOSS: zdo/af_descriptor.c:357   ep_count 1
[   424][I][ZigbeeCore.cpp:134] zigbeeInit(): List of registered Zigbee EPs:
[   424][I][ZigbeeCore.cpp:136] zigbeeInit(): Device type: Temperature Sensor, Endpoint: 10, Device ID: 0x0302
ZBOSS: common/zb_nvram.c:3190   ds_ver == 2
ZBOSS: zdo/zdo_app_prod_conf.c:144   no production config block found
ZBOSS: zdo/zdo_app_prod_conf.c:781   no valid production configuration found, signaling to application
[   433][V][ZigbeeCore.cpp:322] esp_zb_app_signal_handler(): ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL
[   434][I][ZigbeeCore.cpp:207] esp_zb_app_signal_handler(): Zigbee stack initialized
ZBOSS: commissioning/bdb/zdo_commissioning_bdb.c:349   dev type 2, joined 1, ext_pan_id 1, authenticated 1, tclk_valid 1
ZBOSS: nwk/nwk_join.c:186   low lqi 10
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 25
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: zdo/zdo_app_join.c:771   CONGRATULATIONS! joined status 0, addr 0x5384, iface_id 0, ch 11, rejoin 1
ZBOSS: zdo/zdo_app_join.c:773   xpanid 3a:63:5d:94:1c:56:10:7e
ZBOSS: commissioning/bdb/zdo_commissioning_bdb.c:549   COMMISSIONING_STOP: app signal 6 comm status 0
[  2801][I][ZigbeeCore.cpp:213] esp_zb_app_signal_handler(): Device started up in non factory-reset mode
[  2802][I][ZigbeeCore.cpp:226] esp_zb_app_signal_handler(): Device rebooted
Zigbee started successfully!
Connecting to network

Updated temperature sensor value to 27.00°C
[  2803][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  2804][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2700
=========== After Setup Start ============
INTERNAL Memory Info:
------------------------------------------
  Total Size        :   445260 B ( 434.8 KB)
  Free Bytes        :   384208 B ( 375.2 KB)
  Allocated Bytes   :    53236 B (  52.0 KB)
  Minimum Free Bytes:   384096 B ( 375.1 KB)
  Largest Free Block:   352244 B ( 344.0 KB)
------------------------------------------
GPIO Info:
------------------------------------------
  GPIO : BUS_TYPE[bus/unit][chan]
  --------------------------------------
     9 : GPIO
    12 : USB_DM
    13 : USB_DP
    16 : UART_TX[0]
    17 : UART_RX[0]
============ After Setup End =============
Updated temperature sensor value to 27.00°C
[  3804][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  3805][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2700
[  4276][V][ZigbeeHandlers.cpp:134] zb_cmd_default_resp_handler(): Received default response: from address(0x0), src_endpoint(1) to dst_endpoint(10), cluster(0x402) with status 0x0
Updated temperature sensor value to 27.00°C
[  4805][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  4806][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2700
Updated temperature sensor value to 27.00°C
[  5806][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  5807][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2700
Updated temperature sensor value to 27.00°C
[  6806][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  6807][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2700
Updated temperature sensor value to 27.00°C
[  7806][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  7807][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2700
Updated temperature sensor value to 28.00°C
[  8807][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  8808][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2800
[  8888][V][ZigbeeHandlers.cpp:134] zb_cmd_default_resp_handler(): Received default response: from address(0x0), src_endpoint(1) to dst_endpoint(10), cluster(0x402) with status 0x0
Updated temperature sensor value to 28.00°C
[  9808][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  9809][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2800
Updated temperature sensor value to 28.00°C

@P-R-O-C-H-Y
Copy link
Member

Thank you for the log :)
I may also add the clear cache to the docs as reference in case its needed in future for anyone :)

I am getting exact same error in the log. I have reported that and waiting for a reply what can we do with that. Once I get any news I will update here. Btw, if you set the frequency to 80MHz the issue is gone right?

@michapr
Copy link
Author

michapr commented Nov 23, 2024

I must say, that I have seen now reboots even at 80MHz :(
It must be something fundamental...

But I have also seen a reboot while first joining - have not noticed about this before:
assert failed: vPortExitCritical port.c:632 (port_uxCriticalNesting[0] > 0)

============ Before Setup End ============
[  2404][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 12 already has type USB_DM (38) with bus 0x408115a0
[  2405][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 13 already has type USB_DP (39) with bus 0x408115a0
[  2406][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x42003400
[  2408][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type GPIO (1) with bus 0xa
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x42 attr_value 0x408198e4
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 10
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x42 attr_value 0x40819900
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 17
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x29 attr_value 0x4081e29c
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x29 attr_value 0x4081e29e
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x21 attr_value 0x4081e29e
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
[  2416][D][ZigbeeCore.cpp:82] addEndpoint(): Endpoint: 10, Device ID: 0x0302
Starting Zigbee...
[  2417][D][ZigbeeCore.cpp:119] zigbeeInit(): Initialize Zigbee stack
ZBOSS: common/zb_init_default.c:181   ED build
ZBOSS: common/zb_init_default.c:187   sizes: g_zb 7576 sched 224 bpool 16 nwk 912 aps 3040 addr 284 zdo 840
ZBOSS: common/zb_init_default.c:196   sec 2
ZBOSS: common/zb_init_default.c:198   zcl 768
ZBOSS: common/zb_init_default.c:201   zll 960
ZBOSS: common/zb_init_default.c:207   nvram 140
ZBOSS: common/zb_init_default.c:210   buttons 200
ZBOSS: common/zb_init_default.c:212   err_ind 4
ZBOSS: common/zb_init_default.c:218   scheduler q size 80
ZBOSS: common/zb_init_default.c:221   g_mac 816 g_imac 28
ZBOSS: common/zb_init_default.c:225   Configurable mem build, use ZBOSS lib defaults = 0
ZBOSS: common/zb_init_default.c:231   ZB_IOBUF_POOL_SIZE 80 ZB_NWK_IN_Q_SIZE 40 ZB_MAC_PENDING_QUEUE_SIZE 20 ZB_APS_DST_BINDING_TABLE_SIZE 16 ZB_APS_BIND_TRANS_TABLE_SIZE 20 ZB_N_APS_RETRANS_ENTRIES 27
ZBOSS: common/zb_init_default.c:261   ZB_N_APS_KEY_PAIR_ARR_MAX_SIZE 8 ZB_IEEE_ADDR_TABLE_SIZE 64 ZB_NEIGHBOR_TABLE_SIZE 64 ZB_NWK_ROUTING_TABLE_SIZE 0 ZB_APS_DUPS_TABLE_SIZE 32
[  2477][D][ZigbeeCore.cpp:126] zigbeeInit(): Register all Zigbee EPs in list
ZBOSS: zdo/af_descriptor.c:357   ep_count 1
[  2480][I][ZigbeeCore.cpp:134] zigbeeInit(): List of registered Zigbee EPs:
[  2481][I][ZigbeeCore.cpp:136] zigbeeInit(): Device type: Temperature Sensor, Endpoint: 10, Device ID: 0x0302
ZBOSS: zdo/zdo_app_prod_conf.c:144   no production config block found
ZBOSS: zdo/zdo_app_prod_conf.c:781   no valid production configuration found, signaling to application
[  2648][V][ZigbeeCore.cpp:322] esp_zb_app_signal_handler(): ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL
[  2650][I][ZigbeeCore.cpp:207] esp_zb_app_signal_handler(): Zigbee stack initialized
ZBOSS: commissioning/bdb/zdo_commissioning_bdb.c:349   dev type 2, joined 0, ext_pan_id 0, authenticated 0, tclk_valid 1
ZBOSS: commissioning/bdb/zdo_commissioning_bdb.c:549   COMMISSIONING_STOP: app signal 5 comm status 0
[  2656][I][ZigbeeCore.cpp:213] esp_zb_app_signal_handler(): Device started up in  factory-reset mode
[  2656][I][ZigbeeCore.cpp:220] esp_zb_app_signal_handler(): Start network steering
ZBOSS: commissioning/bdb/zdo_commissioning_bdb.c:349   dev type 2, joined 0, ext_pan_id 0, authenticated 0, tclk_valid 1
Zigbee started successfully!
Connecting to network
.......................ZBOSS: nwk/nwk_join.c:186   low lqi 10
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:251   No dev for join
ZBOSS: nwk/nwk_join.c:186   low lqi 10
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:251   No dev for join
ZBOSS: nwk/nwk_join.c:186   low lqi 10
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:251   No dev for join
ZBOSS: nwk/nwk_join.c:186   low lqi 10
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:251   No dev for join
ZBOSS: nwk/nwk_join.c:186   low lqi 10
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:251   No dev for join
ZBOSS: nwk/nwk_join.c:186   low lqi 10
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:251   No dev for join
ZBOSS: zdo/zdo_commissioning.c:210   Can't find PAN to join to! param 0
ZBOSS: commissioning/bdb/zdo_commissioning_bdb.c:549   COMMISSIONING_STOP: app signal 10 comm status 3
[  4903][I][ZigbeeCore.cpp:278] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
..........ZBOSS: commissioning/bdb/zdo_commissioning_bdb.c:349   dev type 2, joined 0, ext_pan_id 0, authenticated 0, tclk_valid 1
......................ZBOSS: nwk/nwk_join.c:186   low lqi 10
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:251   No dev for join
ZBOSS: nwk/nwk_join.c:186   low lqi 10
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:251   No dev for join
ZBOSS: nwk/nwk_join.c:186   low lqi 10
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:251   No dev for join
ZBOSS: nwk/nwk_join.c:186   low lqi 10
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:251   No dev for join
ZBOSS: nwk/nwk_join.c:186   low lqi 10
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:251   No dev for join
ZBOSS: nwk/nwk_join.c:186   low lqi 10
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:251   No dev for join
ZBOSS: zdo/zdo_commissioning.c:210   Can't find PAN to join to! param 0
ZBOSS: commissioning/bdb/zdo_commissioning_bdb.c:549   COMMISSIONING_STOP: app signal 10 comm status 3
[  8152][I][ZigbeeCore.cpp:278] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
..........ZBOSS: commissioning/bdb/zdo_commissioning_bdb.c:349   dev type 2, joined 0, ext_pan_id 0, authenticated 0, tclk_valid 1
.......................ZBOSS: nwk/nwk_join.c:186   low lqi 25
ZBOSS: nwk/nwk_join.c:186   low lqi 5
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:251   No dev for join
ZBOSS: nwk/nwk_join.c:186   low lqi 25
ZBOSS: nwk/nwk_join.c:186   low lqi 5
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:251   No dev for join
ZBOSS: nwk/nwk_join.c:186   low lqi 25
ZBOSS: nwk/nwk_join.c:186   low lqi 5
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:251   No dev for join
ZBOSS: nwk/nwk_join.c:186   low lqi 25
ZBOSS: nwk/nwk_join.c:186   low lqi 5
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:251   No dev for join
ZBOSS: nwk/nwk_join.c:186   low lqi 25
ZBOSS: nwk/nwk_join.c:186   low lqi 5
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:251   No dev for join
ZBOSS: nwk/nwk_join.c:186   low lqi 25
ZBOSS: nwk/nwk_join.c:186   low lqi 5
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:251   No dev for join
ZBOSS: zdo/zdo_commissioning.c:210   Can't find PAN to join to! param 0
ZBOSS: commissioning/bdb/zdo_commissioning_bdb.c:549   COMMISSIONING_STOP: app signal 10 comm status 3
[ 11400][I][ZigbeeCore.cpp:278] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
..........ZBOSS: commissioning/bdb/zdo_commissioning_bdb.c:349   dev type 2, joined 0, ext_pan_id 0, authenticated 0, tclk_valid 1
......................ZBOSS: nwk/nwk_join.c:186   low lqi 25
ZBOSS: nwk/nwk_join.c:186   low lqi 5
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:251   No dev for join
ZBOSS: nwk/nwk_join.c:186   low lqi 25
ZBOSS: nwk/nwk_join.c:186   low lqi 5
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:251   No dev for join
ZBOSS: nwk/nwk_join.c:186   low lqi 25
ZBOSS: nwk/nwk_join.c:186   low lqi 5
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:251   No dev for join
ZBOSS: nwk/nwk_join.c:186   low lqi 25
ZBOSS: nwk/nwk_join.c:186   low lqi 5
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:251   No dev for join
ZBOSS: nwk/nwk_join.c:186   low lqi 25
ZBOSS: nwk/nwk_join.c:186   low lqi 5
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:251   No dev for join
ZBOSS: nwk/nwk_join.c:186   low lqi 25
ZBOSS: nwk/nwk_join.c:186   low lqi 5
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:251   No dev for join
ZBOSS: zdo/zdo_commissioning.c:210   Can't find PAN to join to! param 0
ZBOSS: commissioning/bdb/zdo_commissioning_bdb.c:549   COMMISSIONING_STOP: app signal 10 comm status 3
[ 14649][I][ZigbeeCore.cpp:278] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
..........ZBOSS: commissioning/bdb/zdo_commissioning_bdb.c:349   dev type 2, joined 0, ext_pan_id 0, authenticated 0, tclk_valid 1
.......................ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:293   Will assoc to pan 0xd7ce on channel 11, dev 0x747e, iface_id 0
.....ZBOSS: mac/mac_associate.c:448   received association response
ZBOSS: zdo/zdo_app_join.c:771   CONGRATULATIONS! joined status 0, addr 0x5384, iface_id 0, ch 11, rejoin 0
ZBOSS: zdo/zdo_app_join.c:773   xpanid 3a:63:5d:94:1c:56:10:7e
ZBOSS: secur/zdo_secur.c:211   NWK key e9:85:7f:e9:88:24:da:09:b7:cc:60:7e:e8:5c:8b:e5
.[ 18519][V][ZigbeeCore.cpp:322] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK
....[ 18908][V][ZigbeeCore.cpp:322] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK
...............................................[ 23607][V][ZigbeeCore.cpp:322] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK
ZBOSS: commissioning/bdb/zdo_commissioning_bdb.c:549   COMMISSIONING_STOP: app signal 10 comm status 9
[ 23610][I][ZigbeeCore.cpp:278] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)
.[ 23725][V][ZigbeeCore.cpp:322] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK
.........ZBOSS: commissioning/bdb/zdo_commissioning_bdb.c:549   COMMISSIONING_STOP: app signal 10 comm status 0
[ 24619][I][ZigbeeCore.cpp:271] esp_zb_app_signal_handler(): Joined network successfully (Extended PAN ID: 3a:63:5d:94:1c:56:10:7e, PAN ID: 0xd7ce, Channel:11, Short Address: 0x5384)

Updated temperature sensor value to 22.00°C
[ 24665][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[ 24666][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2200

assert failed: vPortExitCritical port.c:632 (port_uxCriticalNesting[0] > 0)
Core  0 register dump:
MEPC    : 0x408015c8  RA      : 0x4080803e  SP      : 0x408241c0  GP      : 0x4080f864
TP      : 0x40824410  T0      : 0x37363534  T1      : 0x7271706f  T2      : 0x33323130
S0/FP   : 0x00000001  S1      : 0x4082433b  A0      : 0x40824224  A1      : 0x40810d69
A2      : 0x00000001  A3      : 0x00000029  A4      : 0x00000001  A5      : 0x40816000
A6      : 0x00000000  A7      : 0x76757473  S2      : 0x0000007c  S3      : 0x40824218
S4      : 0x40824218  S5      : 0x420cbd01  S6      : 0x00000000  S7      : 0x00000000
S8      : 0x00000000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000
T3      : 0x6e6d6c6b  T4      : 0x6a696867  T5      : 0x66656463  T6      : 0x62613938
MSTATUS : 0x00001881  MTVEC   : 0x40800001  MCAUSE  : 0x00000007  MTVAL   : 0x00000000
MHARTID : 0x00000000

Stack memory:
408241c0: 0x408199ec 0x40880000 0x420d3968 0x4080e03c 0x408094f8 0x408094e4 0x40824250 0x40810d68
408241e0: 0x40824410 0x40022494 0x0000003f 0x00323336 0x00000004 0x40810e88 0x420d3968 0x40810e98
40824200: 0x420cbd01 0x40810e9c 0x408241ec 0x40810ea0 0x420cbd08 0x40810d68 0x00000000 0x00000000
40824220: 0x00000000 0x65737361 0x66207472 0x656c6961 0x76203a64 0x74726f50 0x74697845 0x74697243
40824240: 0x6c616369 0x726f7020 0x3a632e74 0x20323336 0x726f7028 0x78755f74 0x74697243 0x6c616369
40824260: 0x7473654e 0x5b676e69 0x3e205d30 0x00293020 0x00000000 0x00000000 0x408227f0 0x408085be
40824280: 0x00000008 0xffffffff 0x408227f0 0x00000000 0x00000001 0x40817000 0x00000020 0x42087292
408242a0: 0x00000000 0x00000045 0x000b98cc 0x408242f8 0x00000008 0x40817bf4 0x408227f0 0x40808748
408242c0: 0x00000000 0x40817000 0x00000000 0x42087292 0x00000000 0x00000000 0x00000009 0x00000000
408242e0: 0x00000000 0x00000000 0x00000001 0xeb130e4a 0x00000000 0x00000045 0x000b98cc 0x00000000
40824300: 0x00000000 0x00000000 0x00000000 0x40809494 0x00000200 0x00000000 0x00000000 0x420725e2
40824320: 0x00000000 0x00000000 0x0000000a 0x4202a712 0x00000000 0x00000000 0x00000000 0x42072464
40824340: 0x00000000 0x00000000 0x01787277 0x42027e3a 0x00000000 0x00000045 0x01787277 0x42027e84
40824360: 0x00000000 0x00000000 0x01787277 0x420283d8 0x00000000 0x00000000 0x40822a04 0x40808cc4
40824380: 0x00000000 0x40817bf4 0x40822a04 0xffffffff 0x00000000 0x00000000 0x00000000 0x00000000
408243a0: 0x00000000 0x00000000 0x00000000 0x42055882 0x00000000 0x00000000 0x00000000 0x42009708
408243c0: 0x40817000 0x00000001 0x40817000 0x42009716 0x00000000 0x00000000 0x00000000 0x408092fa
408243e0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
40824400: 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xbaad5678 0x0000080c 0xabba1234
40824420: 0x00000800 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
40824440: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
40824460: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
40824480: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
408244a0: 0x40809434 0x40022498 0x40824520 0x4080f864 0x40824c20 0x40022494 0xffffffe0 0x00000000
408244c0: 0x40817f00 0x00000018 0x00000001 0x00000018 0x0000002c 0x00000001 0x00000000 0x20001090
408244e0: 0x00000403 0x00060000 0x408169f0 0x00000004 0x00000000 0x00000000 0x00000001 0x00000001
40824500: 0x40360000 0x00000000 0x00000000 0x00000004 0x00000000 0x000007ff 0x4d427de7 0x00427de7
40824520: 0x408169f0 0x00000018 0x40817f00 0x4080ce82 0x40817000 0x00000003 0x408170d8 0x40801e7e
40824540: 0x00000001 0x00001800 0x00000018 0x00000004 0x40817000 0x00000004 0x00000000 0x40817ed4
40824560: 0x00001800 0x00000018 0x00000000 0x40801be6 0x00000000 0x00000001 0x00000000 0x4080e078
40824580: 0x00000403 0x40360000 0x00000000 0x00000018 0x40360000 0x40823044 0x40823044 0x00000001
408245a0: 0x00000001 0x3d140000 0x00000000 0x40817ed4 0x4004e000 0x40823044 0x00000001 0x4003eede



ELF file SHA256: 05c225b88

Rebooting...
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0xc (SW_CPU),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x4001975a
SPIWP:0xee
mode:DIO, clock div:2
load:0x40875720,len:0x1190
load:0x4086c110,len:0xd98
load:0x4086e610,len:0x2e84
entry 0x4086c110
[     0][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x42005d44
[    12][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x42005d08
[    23][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x42005ccc
[    34][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x42005c90
[    46][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x42005d44
[    57][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x42005d08
[    68][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x42005ccc
[    80][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x42005c90
[    91][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DM (38) successfully set to 0x420024dc
[   102][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DP (39) successfully set to 0x420024dc
[   114][V][ZigbeeEP.cpp:18] ZigbeeEP(): Endpoint: 10
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x20 attr_value 0x4087e19f
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 1
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x30 attr_value 0x4087e19e
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 1
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x21 attr_value 0x4087e19e
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x29 attr_value 0x4087e19e
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x29 attr_value 0x4087e19c
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x29 attr_value 0x4087e19a
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
[   202][D][esp32-hal-cpu.c:276] setCpuFrequencyMhz(): PLL: 480 / 6 = 80 Mhz, APB: 40000000 Hz
[   222][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 17 successfully set to type UART_RX (2) with bus 0x4080f144
[   233][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 16 successfully set to type UART_TX (3) with bus 0x4080f144
[   244][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 12 successfully set to type USB_DM (38) with bus 0x408115a0
[   255][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 13 successfully set to type USB_DP (39) with bus 0x408115a0
=========== Before Setup Start ===========
Chip Info:
------------------------------------------
  Model             : ESP32-C6
  Package           : 1
  Revision          : 0.01
  Cores             : 1
  CPU Frequency     : 80 MHz
  XTAL Frequency    : 40 MHz
  Features Bitfield : 0x00000052
  Embedded Flash    : No
  Embedded PSRAM    : No
  2.4GHz WiFi       : Yes
  Classic BT        : No
  BT Low Energy     : Yes
  IEEE 802.15.4     : Yes
------------------------------------------
INTERNAL Memory Info:
------------------------------------------
  Total Size        :   445260 B ( 434.8 KB)
  Free Bytes        :   408952 B ( 399.4 KB)
  Allocated Bytes   :    29308 B (  28.6 KB)
  Minimum Free Bytes:   408952 B ( 399.4 KB)
  Largest Free Block:   376820 B ( 368.0 KB)
------------------------------------------
Flash Info:
------------------------------------------
  Chip Size         :  4194304 B (4 MB)
  Block Size        :    65536 B (  64.0 KB)
  Sector Size       :     4096 B (   4.0 KB)
  Page Size         :      256 B (   0.2 KB)
  Bus Speed         : 40 MHz
  Bus Mode          : QIO
------------------------------------------
Partitions Info:
------------------------------------------
                nvs : addr: 0x00009000, size:    20.0 KB, type: DATA, subtype: NVS
            otadata : addr: 0x0000E000, size:     8.0 KB, type: DATA, subtype: OTA
               app0 : addr: 0x00010000, size:  1280.0 KB, type:  APP, subtype: OTA_0
               app1 : addr: 0x00150000, size:  1280.0 KB, type:  APP, subtype: OTA_1
             spiffs : addr: 0x00290000, size:  1388.0 KB, type: DATA, subtype: SPIFFS
         zb_storage : addr: 0x003EB000, size:    16.0 KB, type: DATA, subtype: FAT
             zb_fct : addr: 0x003EF000, size:     4.0 KB, type: DATA, subtype: FAT
           coredump : addr: 0x003F0000, size:    64.0 KB, type: DATA, subtype: COREDUMP
------------------------------------------
Software Info:
------------------------------------------
  Compile Date/Time : Nov 23 2024 08:19:06
  Compile Host OS   : windows
  ESP-IDF Version   : v5.3.1-638-ga0f798cfc4-dirty
  Arduino Version   : 3.1.0
------------------------------------------
Board Info:
------------------------------------------
  Arduino Board     : ESP32C6_DEV
  Arduino Variant   : esp32c6
  Arduino FQBN      : esp32:esp32:esp32c6:UploadSpeed=921600,CDCOnBoot=cdc,CPUFreq=80,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=zigbee,DebugLevel=verbose,EraseFlash=all,JTAGAdapter=default,ZigbeeMode=ed_debug
============ Before Setup End ============
[   391][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 12 already has type USB_DM (38) with bus 0x408115a0
[   392][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 13 already has type USB_DP (39) with bus 0x408115a0
[   393][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x42003400
[   395][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type GPIO (1) with bus 0xa
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x42 attr_value 0x40819784
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 10
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x42 attr_value 0x408197a0
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 17
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x29 attr_value 0x4081e35c
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x29 attr_value 0x4081e35e
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
ZBOSS: zcl/zcl_common.c:215   >> zb_zcl_get_attribute_size: attr_type 0x21 attr_value 0x4081e35e
ZBOSS: zcl/zcl_common.c:348   << zb_zcl_get_attribute_size: result 2
[   403][D][ZigbeeCore.cpp:82] addEndpoint(): Endpoint: 10, Device ID: 0x0302
Starting Zigbee...
[   404][D][ZigbeeCore.cpp:119] zigbeeInit(): Initialize Zigbee stack
ZBOSS: common/zb_init_default.c:181   ED build
ZBOSS: common/zb_init_default.c:187   sizes: g_zb 7576 sched 224 bpool 16 nwk 912 aps 3040 addr 284 zdo 840
ZBOSS: common/zb_init_default.c:196   sec 2
ZBOSS: common/zb_init_default.c:198   zcl 768
ZBOSS: common/zb_init_default.c:201   zll 960
ZBOSS: common/zb_init_default.c:207   nvram 140
ZBOSS: common/zb_init_default.c:210   buttons 200
ZBOSS: common/zb_init_default.c:212   err_ind 4
ZBOSS: common/zb_init_default.c:218   scheduler q size 80
ZBOSS: common/zb_init_default.c:221   g_mac 816 g_imac 28
ZBOSS: common/zb_init_default.c:225   Configurable mem build, use ZBOSS lib defaults = 0
ZBOSS: common/zb_init_default.c:231   ZB_IOBUF_POOL_SIZE 80 ZB_NWK_IN_Q_SIZE 40 ZB_MAC_PENDING_QUEUE_SIZE 20 ZB_APS_DST_BINDING_TABLE_SIZE 16 ZB_APS_BIND_TRANS_TABLE_SIZE 20 ZB_N_APS_RETRANS_ENTRIES 27
ZBOSS: common/zb_init_default.c:261   ZB_N_APS_KEY_PAIR_ARR_MAX_SIZE 8 ZB_IEEE_ADDR_TABLE_SIZE 64 ZB_NEIGHBOR_TABLE_SIZE 64 ZB_NWK_ROUTING_TABLE_SIZE 0 ZB_APS_DUPS_TABLE_SIZE 32
[   471][D][ZigbeeCore.cpp:126] zigbeeInit(): Register all Zigbee EPs in list
ZBOSS: zdo/af_descriptor.c:357   ep_count 1
[   474][I][ZigbeeCore.cpp:134] zigbeeInit(): List of registered Zigbee EPs:
[   474][I][ZigbeeCore.cpp:136] zigbeeInit(): Device type: Temperature Sensor, Endpoint: 10, Device ID: 0x0302
ZBOSS: zdo/zdo_app_prod_conf.c:144   no production config block found
ZBOSS: zdo/zdo_app_prod_conf.c:781   no valid production configuration found, signaling to application
[   486][V][ZigbeeCore.cpp:322] esp_zb_app_signal_handler(): ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL
[   488][I][ZigbeeCore.cpp:207] esp_zb_app_signal_handler(): Zigbee stack initialized
ZBOSS: commissioning/bdb/zdo_commissioning_bdb.c:349   dev type 2, joined 1, ext_pan_id 1, authenticated 1, tclk_valid 1
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: nwk/nwk_join.c:186   low lqi 0
ZBOSS: zdo/zdo_app_join.c:771   CONGRATULATIONS! joined status 0, addr 0x5384, iface_id 0, ch 11, rejoin 1
ZBOSS: zdo/zdo_app_join.c:773   xpanid 3a:63:5d:94:1c:56:10:7e
ZBOSS: commissioning/bdb/zdo_commissioning_bdb.c:549   COMMISSIONING_STOP: app signal 6 comm status 0
[  2854][I][ZigbeeCore.cpp:213] esp_zb_app_signal_handler(): Device started up in non factory-reset mode
[  2855][I][ZigbeeCore.cpp:226] esp_zb_app_signal_handler(): Device rebooted
Zigbee started successfully!
Connecting to network

Updated temperature sensor value to 22.00°C
[  2857][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  2858][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2200
=========== After Setup Start ============
INTERNAL Memory Info:
------------------------------------------
  Total Size        :   445260 B ( 434.8 KB)
  Free Bytes        :   384208 B ( 375.2 KB)
  Allocated Bytes   :    53236 B (  52.0 KB)
  Minimum Free Bytes:   384096 B ( 375.1 KB)
  Largest Free Block:   352244 B ( 344.0 KB)
------------------------------------------
GPIO Info:
------------------------------------------
  GPIO : BUS_TYPE[bus/unit][chan]
  --------------------------------------
     9 : GPIO
    12 : USB_DM
    13 : USB_DP
    16 : UART_TX[0]
    17 : UART_RX[0]
============ After Setup End =============
ZBOSS: nwk/zb_nwk_ed_aging.c:227   ED aging is not supported
[  3281][V][ZigbeeCore.cpp:322] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK
Updated temperature sensor value to 22.00°C
[  3859][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  3860][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2200
Updated temperature sensor value to 22.00°C
[  4861][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  4862][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2200
Updated temperature sensor value to 22.00°C
[  5863][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  5864][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2200
[  6319][V][ZigbeeCore.cpp:322] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK
Updated temperature sensor value to 22.00°C
[  6864][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  6865][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2200
Updated temperature sensor value to 22.00°C
[  7866][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  7867][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2200
ZBOSS: nwk/zb_nwk_ed_aging.c:227   ED aging is not supported
Updated temperature sensor value to 22.00°C
[  8867][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  8868][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2200
[  9382][V][ZigbeeCore.cpp:322] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK
Updated temperature sensor value to 23.00°C
[  9869][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[  9870][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2300
Updated temperature sensor value to 23.00°C
[ 10871][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[ 10872][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2300
Updated temperature sensor value to 23.00°C
[ 11873][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[ 11874][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 2300
[ 12447][V][ZigbeeCore.cpp:322] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK

@michapr
Copy link
Author

michapr commented Nov 23, 2024

Additional....
Have seen that device will stop reporting values after some time (without any reboot)

[3756824][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[3756825][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 3400
Updated temperature sensor value to 33.00°C
[3757825][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[3757826][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 3300
[3757891][V][ZigbeeHandlers.cpp:134] zb_cmd_default_resp_handler(): Received default response: from address(0x0), src_endpoint(1) to dst_endpoint(10), cluster(0x402) with status 0x0
Updated temperature sensor value to 34.00°C
[3758827][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[3758828][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 3400
[3758934][V][ZigbeeHandlers.cpp:134] zb_cmd_default_resp_handler(): Received default response: from address(0x0), src_endpoint(1) to dst_endpoint(10), cluster(0x402) with status 0x0
Updated temperature sensor value to 33.00°C
[3759829][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[3759830][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 3300
[3759989][V][ZigbeeHandlers.cpp:134] zb_cmd_default_resp_handler(): Received default response: from address(0x0), src_endpoint(1) to dst_endpoint(10), cluster(0x402) with status 0x0
Updated temperature sensor value to 34.00°C
[3760831][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[3760832][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 3400
[3761035][V][ZigbeeHandlers.cpp:134] zb_cmd_default_resp_handler(): Received default response: from address(0x0), src_endpoint(1) to dst_endpoint(10), cluster(0x402) with status 0x0
Updated temperature sensor value to 34.00°C
[3761833][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[3761834][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 3400
Updated temperature sensor value to 34.00°C
...
...
[3875986][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 3500
Updated temperature sensor value to 35.00°C
[3876986][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[3876987][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 3500
Updated temperature sensor value to 34.00°C
[3877988][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[3877989][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 3400
Updated temperature sensor value to 34.00°C
[3878989][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[3878990][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 3400
[3879979][V][ZigbeeCore.cpp:322] esp_zb_app_signal_handler(): ZDO signal: ZDO Device Unavailable (0x3c), status: ESP_OK
Updated temperature sensor value to 34.00°C
[3879991][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[3879992][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 3400
Updated temperature sensor value to 35.00°C
[3880993][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[3880994][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 3500
Updated temperature sensor value to 34.00°C
[3881995][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[3881996][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 3400
Updated temperature sensor value to 34.00°C
[3882996][V][ZigbeeTempSensor.cpp:68] setTemperature(): Updating temperature sensor value...
[3882997][D][ZigbeeTempSensor.cpp:70] setTemperature(): Setting temperature to 3400

some lines before:
ZBOSS: zdo/af_rx.c:494 zb_zdo_device_is_unreachable: addr_ref 255

@michapr
Copy link
Author

michapr commented Nov 23, 2024

I have "fixed" it for me for further testing
if (sig_type == 60) ESP.restart();
in ZigbeeCore.cpp after line 322

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Chip: ESP32-C6 Issue is related to support of ESP32-C6 Chip Status: In Progress Issue is in progress
Projects
None yet
Development

No branches or pull requests

3 participants