Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Zigbee basics and how the "stack" works#11124

PerennialNovice started this conversation inGeneral
Discussion options

I am new to zigbee and wonder about lots of things :)

What bothers me most, is that I cannot get an end device reconnect after I Powered it off without restarting the coordinator as well (I play around with Thermostat and Temperature_Sensor example)
I read a bit along different sites, including the issues here and sort of understood that there is a "stack" which should handle that. But it does not happen with my 2 ESP32-C6 Super mini boards (from aliexpress, no idea who made them).
Same problem, whe power cycling or resetting the coordinator, the sensor does not get reconnected to the network...

I am a bit reluctant to open an issue, because it might very well be possible that I miss the obvious due to my poor knowledge of zigbee standard

I feel that I miss some very substantial basics of he whole zigbee world and yould like to fill those knowledge gaps, but so far, I only found some fairly basic tutorials on how to install arduino IDE and create example prjects that don't explain much of the whole zigbee concept and network topology

So I hereby ask if anyone has some good sites they can recommend to get a least a little background knowledge on how things are organized in the zigbee world.

thanks

You must be logged in to vote

Replies: 4 comments 2 replies

Comment options

Hi@PerennialNovice, if you can post a logs from both devices when they are failing to connect it will help me to resolve your problem.
Please set in Arduino IDE Tools menu -> Debug Level to Verbose, in order to have logs in the Serial Monitor. Also if you can select Zigbee mode to ED or ZCZR (depends on the example) to use the DEBUG mode also.

Also (may not be the case), I recommend using some branded boards or the best Espressif dev kits, you can also buy them on Aliexpress in Espressif Official Store. Lot of mini boards have poor antenna, which is causing issues when connecting/reconnecting. Can confirm with the logs :)

For the Zigbee library there is no documentation yet, as the library is still a lot in progress and bringing a lot of fixes and new features in time. But the documentation is planned to be done.

About the Zigbee network topology you can find a lot great videos on YouTube. I am sure you can find them yourself :)

You must be logged in to vote
0 replies
Comment options

Sorry for the late reply, I have been busy on other stuff...

I'm trying to recreate the Reconnect issue, but so far no success - which in another way is success ;)
I think part of the issue is that serial communication does not get restored after a reset or power cycle. Which might as well be a PC problem and have nothing to do with the ESP32
I also ran in issues when I used certain types of USB hubs (mainline very slim ones)
So the actual setup is maybe not as trivial as one might think at first ...
Before I move on with this project I will update everything to the latest versions

thanks so far!

You must be logged in to vote
0 replies
Comment options

Well, seems I was a bit quick with my conclusion. I worked twice, that after a reset the sensor reconnected to the coordinator...

Here's the log from the sensor (end device) directly after a reset (software download). Before communication between sensor and coordinator was fine.

[     0][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x42008f40[    12][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x42008f2e[    23][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x42008f1c[    34][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x42008f0a[    46][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x42008f40[    57][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x42008f2e[    68][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x42008f1c[    80][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x42008f0a[    91][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x42008f40[   102][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x42008f2e[   114][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x42008f1c[   125][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x42008f0a[   136][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DM (38) successfully set to 0x4200680e[   148][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DP (39) successfully set to 0x4200680e[   159][V][ZigbeeEP.cpp:18] ZigbeeEP(): Endpoint: 10[   170][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 17 successfully set to type UART_RX (2) with bus 0x4080f7d0[   181][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 16 successfully set to type UART_TX (3) with bus 0x4080f7d0[   192][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 12 successfully set to type USB_DM (38) with bus 0x40812314[   202][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 13 successfully set to type USB_DP (39) with bus 0x40812314=========== 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        :   442316 B ( 431.9 KB)  Free Bytes        :   402544 B ( 393.1 KB)  Allocated Bytes   :    32804 B (  32.0 KB)  Minimum Free Bytes:   402544 B ( 393.1 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 : Apr 23 2025 09:49:20  Compile Host OS   : windows  ESP-IDF Version   : v5.4.1-1-g2f7dcd862a-dirty  Arduino Version   : 3.2.0------------------------------------------Board Info:------------------------------------------  Arduino Board     : ESP32C6_DEV  Arduino Variant   : esp32c6  Arduino FQBN      : esp32:esp32:esp32c6:CDCOnBoot=cdc,CPUFreq=160,DebugLevel=verbose,EraseFlash=all,FlashFreq=80,FlashMode=qio,FlashSize=4M,JTAGAdapter=default,PartitionScheme=zigbee,UploadSpeed=115200,ZigbeeMode=ed_debug============ Before Setup End ============[   324][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 12 already has type USB_DM (38) with bus 0x40812314[   325][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 13 already has type USB_DP (39) with bus 0x40812314[   326][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type I2C_MASTER_SDA (30) successfully set to 0x420059ec[   326][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type I2C_MASTER_SCL (31) successfully set to 0x420059ec[   327][I][esp32-hal-i2c-ng.c:105] i2cInit(): Initializing I2C Master: num=0 sda=20 scl=19 freq=100000[   328][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 20 successfully set to type I2C_MASTER_SDA (30) with bus 0x1[   328][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 19 successfully set to type I2C_MASTER_SCL (31) with bus 0x1Zigbee_Temperature_Sensor.ino[  2329][V][esp32-hal-i2c-ng.c:221] i2cAddDeviceIfNeeded(): added device: bus=0 addr=0x44 handle=0x4081b8a0[  2329][V][esp32-hal-i2c-ng.c:262] i2cWrite(): i2c_master_transmit: bus=0 addr=0x44 handle=0x4081b8a0 size=1[  2349][V][esp32-hal-i2c-ng.c:262] i2cWrite(): i2c_master_transmit: bus=0 addr=0x44 handle=0x4081b8a0 size=1[  2359][V][esp32-hal-i2c-ng.c:308] i2cRead(): i2c_master_receive: bus=0 addr=0x44 handle=0x4081b8a0 size=6serialNumber: 230780981[  2361][V][esp32-hal-rmt.c:454] rmtInit(): GPIO 8 - TX MODE - MemSize[48] - Freq=10000000Hz[  2361][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type RMT_TX (10) successfully set to 0x4200b87a[  2362][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type RMT_RX (11) successfully set to 0x4200b87a[  2363][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 8 successfully set to type RMT_TX (10) with bus 0x4081b954[  2363][V][esp32-hal-rmt.c:305] _rmtWrite(): GPIO: 8 - Request: 24 RMT Symbols - Blocking - Timeout: -1[  2364][V][esp32-hal-rmt.c:306] _rmtWrite(): GPIO: 8 - Currently in Loop Mode: [NO] | Asked to Loop: NO, LoopCancel: NO[  2365][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4200b126[  2365][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type GPIO (1) with bus 0xa[  2366][D][ZigbeeCore.cpp:97] addEndpoint(): Endpoint: 10, Device ID: 0x0302Starting Zigbee...[  2366][D][ZigbeeCore.cpp:145] zigbeeInit(): Initialize Zigbee stack[  2417][D][ZigbeeCore.cpp:152] zigbeeInit(): Register all Zigbee EPs in list[  2419][I][ZigbeeCore.cpp:160] zigbeeInit(): List of registered Zigbee EPs:[  2419][I][ZigbeeCore.cpp:162] zigbeeInit(): Device type: Temperature Sensor, Endpoint: 10, Device ID: 0x0302[  2597][V][ZigbeeCore.cpp:379] esp_zb_app_signal_handler(): ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL[  2598][I][ZigbeeCore.cpp:241] esp_zb_app_signal_handler(): Zigbee stack initialized[  2598][D][ZigbeeCore.cpp:242] esp_zb_app_signal_handler(): Zigbee channel mask: 0x07fff800[  2601][I][ZigbeeCore.cpp:248] esp_zb_app_signal_handler(): Device started up in  factory-reset mode[  2601][I][ZigbeeCore.cpp:255] esp_zb_app_signal_handler(): Start network steeringZigbee started successfully!Connecting to network.....ZB_TRACE_LOG[0]: nwk/nwk_join.c:251    No dev for joinZB_TRACE_LOG[0]: nwk/nwk_join.c:251    No dev for joinZB_TRACE_LOG[0]: nwk/nwk_join.c:251    No dev for joinZB_TRACE_LOG[0]: zdo/zdo_commissioning.c:212    Can't find PAN to join to! param 0[  4831][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)......ZB_TRACE_LOG[0]: nwk/nwk_join.c:251    No dev for joinZB_TRACE_LOG[0]: nwk/nwk_join.c:251    No dev for joinZB_TRACE_LOG[0]: nwk/nwk_join.c:251    No dev for joinZB_TRACE_LOG[0]: zdo/zdo_commissioning.c:212    Can't find PAN to join to! param 0[  8061][I][ZigbeeCore.cpp:317] esp_zb_app_signal_handler(): Network steering was not successful (status: ESP_FAIL)

the same messages just keep appering on and on

in another attempt i got this from the ED

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        :   442316 B ( 431.9 KB)  Free Bytes        :   407344 B ( 397.8 KB)  Allocated Bytes   :    28004 B (  27.3 KB)  Minimum Free Bytes:   402532 B ( 393.1 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 : Apr 23 2025 09:49:20  Compile Host OS   : windows  ESP-IDF Version   : v5.4.1-1-g2f7dcd862a-dirty  Arduino Version   : 3.2.0------------------------------------------Board Info:------------------------------------------  Arduino Board     : ESP32C6_DEV  Arduino Variant   : esp32c6  Arduino FQBN      : esp32:esp32:esp32c6:CDCOnBoot=cdc,CPUFreq=160,DebugLevel=verbose,EraseFlash=all,FlashFreq=80,FlashMode=qio,FlashSize=4M,JTAGAdapter=default,PartitionScheme=zigbee,UploadSpeed=115200,ZigbeeMode=ed_debug============ Before Setup End ============[   545][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 12 already has type USB_DM (38) with bus 0x40812314[   546][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 13 already has type USB_DP (39) with bus 0x40812314[   547][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type I2C_MASTER_SDA (30) successfully set to 0x420059ec[   547][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type I2C_MASTER_SCL (31) successfully set to 0x420059ec[   548][I][esp32-hal-i2c-ng.c:105] i2cInit(): Initializing I2C Master: num=0 sda=20 scl=19 freq=100000[   549][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 20 successfully set to type I2C_MASTER_SDA (30) with bus 0x1[   549][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 19 successfully set to type I2C_MASTER_SCL (31) with bus 0x1Zigbee_Temperature_Sensor.ino[  2550][V][esp32-hal-i2c-ng.c:221] i2cAddDeviceIfNeeded(): added device: bus=0 addr=0x44 handle=0x4081ba00[  2550][V][esp32-hal-i2c-ng.c:262] i2cWrite(): i2c_master_transmit: bus=0 addr=0x44 handle=0x4081ba00 size=1[  2570][V][esp32-hal-i2c-ng.c:262] i2cWrite(): i2c_master_transmit: bus=0 addr=0x44 handle=0x4081ba00 size=1[  2580][V][esp32-hal-i2c-ng.c:308] i2cRead(): i2c_master_receive: bus=0 addr=0x44 handle=0x4081ba00 size=6serialNumber: 230780981[  2582][V][esp32-hal-rmt.c:454] rmtInit(): GPIO 8 - TX MODE - MemSize[48] - Freq=10000000Hz[  2582][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type RMT_TX (10) successfully set to 0x4200b87a[  2583][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type RMT_RX (11) successfully set to 0x4200b87a[  2584][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 8 successfully set to type RMT_TX (10) with bus 0x4081bab4[  2584][V][esp32-hal-rmt.c:305] _rmtWrite(): GPIO: 8 - Request: 24 RMT Symbols - Blocking - Timeout: -1[  2585][V][esp32-hal-rmt.c:306] _rmtWrite(): GPIO: 8 - Currently in Loop Mode: [NO] | Asked to Loop: NO, LoopCancel: NO[  2586][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4200b126[  2586][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type GPIO (1) with bus 0xa[  2587][D][ZigbeeCore.cpp:97] addEndpoint(): Endpoint: 10, Device ID: 0x0302Starting Zigbee...[  2588][D][ZigbeeCore.cpp:145] zigbeeInit(): Initialize Zigbee stack[  2631][D][ZigbeeCore.cpp:152] zigbeeInit(): Register all Zigbee EPs in list[  2632][I][ZigbeeCore.cpp:160] zigbeeInit(): List of registered Zigbee EPs:[  2633][I][ZigbeeCore.cpp:162] zigbeeInit(): Device type: Temperature Sensor, Endpoint: 10, Device ID: 0x0302[  2643][V][ZigbeeCore.cpp:379] esp_zb_app_signal_handler(): ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL[  2644][I][ZigbeeCore.cpp:241] esp_zb_app_signal_handler(): Zigbee stack initialized[  2644][D][ZigbeeCore.cpp:242] esp_zb_app_signal_handler(): Zigbee channel mask: 0x07fff800ZB_TRACE_LOG[0]: nwk/nwk_join.c:629    Rejoin failure: no dev with xpanid 54:32:04:ff:fe:3d:b3:d0 or can't choose best parent[  9983][W][ZigbeeCore.cpp:276] esp_zb_app_signal_handler(): Commissioning failed, trying again...ZB_TRACE_LOG[0]: nwk/nwk_join.c:629    Rejoin failure: no dev with xpanid 54:32:04:ff:fe:3d:b3:d0 or can't choose best parent[ 17821][W][ZigbeeCore.cpp:276] esp_zb_app_signal_handler(): Commissioning failed, trying again...ZB_TRACE_LOG[0]: nwk/nwk_join.c:629    Rejoin failure: no dev with xpanid 54:32:04:ff:fe:3d:b3:d0 or can't choose best parent[ 25659][W][ZigbeeCore.cpp:276] esp_zb_app_signal_handler(): Commissioning failed, trying again...[ 32641][E][ZigbeeCore.cpp:86] begin(): ZigbeeCore begin failed or timeout[ 32643][V][ZigbeeCore.cpp:520] resetNVRAMChannelMask(): Channel mask reset to all channelsZigbee failed to start!Rebooting...ESP-ROM:esp32c6-20220919Build:Sep 19 2022rst:0xc (SW_CPU),boot:0x48 (SPI_FAST_FLASH_BOOT)Saved PC:0x4001975aSPIWP:0xeemode:DIO, clock div:2load:0x40875720,len:0x1260load:0x4086c110,len:0xdc4load:0x4086e610,len:0x3018entry 0x4086c110[     0][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x42008f40[    12][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x42008f2e[    23][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x42008f1c[    34][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x42008f0a[    46][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x42008f40[    57][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x42008f2e[    68][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x42008f1c[    80][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x42008f0a[    91][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x42008f40[   102][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x42008f2e[   114][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x42008f1c[   125][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x42008f0a[   136][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DM (38) successfully set to 0x4200680e[   148][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DP (39) successfully set to 0x4200680e[   159][V][ZigbeeEP.cpp:18] ZigbeeEP(): Endpoint: 10[   171][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 17 successfully set to type UART_RX (2) with bus 0x4080f7d0[   182][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 16 successfully set to type UART_TX (3) with bus 0x4080f7d0[   192][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 12 successfully set to type USB_DM (38) with bus 0x40812314[   203][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 13 successfully set to type USB_DP (39) with bus 0x40812314=========== 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        :   442316 B ( 431.9 KB)  Free Bytes        :   402356 B ( 392.9 KB)  Allocated Bytes   :    32960 B (  32.2 KB)  Minimum Free Bytes:   402356 B ( 392.9 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 : Apr 23 2025 09:49:20  Compile Host OS   : windows  ESP-IDF Version   : v5.4.1-1-g2f7dcd862a-dirty  Arduino Version   : 3.2.0------------------------------------------Board Info:------------------------------------------  Arduino Board     : ESP32C6_DEV  Arduino Variant   : esp32c6  Arduino FQBN      : esp32:esp32:esp32c6:CDCOnBoot=cdc,CPUFreq=160,DebugLevel=verbose,EraseFlash=all,FlashFreq=80,FlashMode=qio,FlashSize=4M,JTAGAdapter=default,PartitionScheme=zigbee,UploadSpeed=115200,ZigbeeMode=ed_debug============ Before Setup End ============[   326][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 12 already has type USB_DM (38) with bus 0x40812314[   327][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 13 already has type USB_DP (39) with bus 0x40812314[   328][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type I2C_MASTER_SDA (30) successfully set to 0x420059ec[   328][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type I2C_MASTER_SCL (31) successfully set to 0x420059ec[   329][I][esp32-hal-i2c-ng.c:105] i2cInit(): Initializing I2C Master: num=0 sda=20 scl=19 freq=100000[   330][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 20 successfully set to type I2C_MASTER_SDA (30) with bus 0x1[   330][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 19 successfully set to type I2C_MASTER_SCL (31) with bus 0x1Zigbee_Temperature_Sensor.ino[  2331][V][esp32-hal-i2c-ng.c:221] i2cAddDeviceIfNeeded(): added device: bus=0 addr=0x44 handle=0x4081b8a0[  2331][V][esp32-hal-i2c-ng.c:262] i2cWrite(): i2c_master_transmit: bus=0 addr=0x44 handle=0x4081b8a0 size=1[  2351][V][esp32-hal-i2c-ng.c:262] i2cWrite(): i2c_master_transmit: bus=0 addr=0x44 handle=0x4081b8a0 size=1[  2361][V][esp32-hal-i2c-ng.c:308] i2cRead(): i2c_master_receive: bus=0 addr=0x44 handle=0x4081b8a0 size=6serialNumber: 230780981[  2363][V][esp32-hal-rmt.c:454] rmtInit(): GPIO 8 - TX MODE - MemSize[48] - Freq=10000000Hz[  2363][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type RMT_TX (10) successfully set to 0x4200b87a[  2364][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type RMT_RX (11) successfully set to 0x4200b87a[  2365][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 8 successfully set to type RMT_TX (10) with bus 0x4081b954[  2365][V][esp32-hal-rmt.c:305] _rmtWrite(): GPIO: 8 - Request: 24 RMT Symbols - Blocking - Timeout: -1[  2366][V][esp32-hal-rmt.c:306] _rmtWrite(): GPIO: 8 - Currently in Loop Mode: [NO] | Asked to Loop: NO, LoopCancel: NO[  2367][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x4200b126[  2367][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type GPIO (1) with bus 0xa[  2368][D][ZigbeeCore.cpp:97] addEndpoint(): Endpoint: 10, Device ID: 0x0302Starting Zigbee...[  2368][D][ZigbeeCore.cpp:145] zigbeeInit(): Initialize Zigbee stack[  2412][D][ZigbeeCore.cpp:152] zigbeeInit(): Register all Zigbee EPs in list[  2414][I][ZigbeeCore.cpp:160] zigbeeInit(): List of registered Zigbee EPs:[  2414][I][ZigbeeCore.cpp:162] zigbeeInit(): Device type: Temperature Sensor, Endpoint: 10, Device ID: 0x0302[  2427][V][ZigbeeCore.cpp:379] esp_zb_app_signal_handler(): ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL[  2428][I][ZigbeeCore.cpp:241] esp_zb_app_signal_handler(): Zigbee stack initialized[  2428][D][ZigbeeCore.cpp:242] esp_zb_app_signal_handler(): Zigbee channel mask: 0x07fff800ZB_TRACE_LOG[0]: nwk/nwk_join.c:629    Rejoin failure: no dev with xpanid 54:32:04:ff:fe:3d:b3:d0 or can't choose best parent[  9767][W][ZigbeeCore.cpp:276] esp_zb_app_signal_handler(): Commissioning failed, trying again...[ 16845][V][ZigbeeCore.cpp:379] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OKZB_TRACE_LOG[0]: nwk/nwk_join.c:629    Rejoin failure: no dev with xpanid 54:32:04:ff:fe:3d:b3:d0 or can't choose best parent[ 17605][W][ZigbeeCore.cpp:276] esp_zb_app_signal_handler(): Commissioning failed, trying again...ZB_TRACE_LOG[0]: nwk/nwk_join.c:629    Rejoin failure: no dev with xpanid 54:32:04:ff:fe:3d:b3:d0 or can't choose best parent[ 25443][W][ZigbeeCore.cpp:276] esp_zb_app_signal_handler(): Commissioning failed, trying again...[ 31877][V][ZigbeeCore.cpp:379] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK[ 32425][E][ZigbeeCore.cpp:86] begin(): ZigbeeCore begin failed or timeout[ 32427][V][ZigbeeCore.cpp:520] resetNVRAMChannelMask(): Channel mask reset to all channelsZigbee failed to start!Rebooting...

It just keeps restarting ...

on the ZCZR side I got thi during not succesful connect attempt:

[     0][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): DeinPinBus(): Pin 12 successfully set to type USB_DM (38) with bus 0x40811c30[   203][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 13 successfully set to type USB_DP (39) with bus 0x40811c30=========== 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        :   441004 B ( 430.7 KB)  Free Bytes        :   405652 B ( 396.1 KB)  Allocated Bytes   :    28160 B (  27.5 KB)  Minimum Free Bytes:   400840 B ( 391.4 KB)  Largest Free Block:   368628 B ( 360.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 : Apr 23 2025 09:49:34  Compile Host OS   : windows  ESP-IDF Version   : v5.4.1-1-g2f7dcd862a-dirty  Arduino Version   : 3.2.0------------------------------------------Board Info:------------------------------------------  Arduino Board     : ESP32C6_DEV  Arduino Variant   : esp32c6  Arduino FQBN      : esp32:esp32:esp32c6:CDCOnBoot=cdc,CPUFreq=160,DebugLevel=verbose,EraseFlash=all,FlashFreq=80,FlashMode=qio,FlashSize=4M,JTAGAdapter=default,PartitionScheme=zigbee,UploadSpeed=115200,ZigbeeMode=zczr_debug============ Before Setup End ============[   334][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 12 already has type USB_DM (38) with bus 0x40811c30[   335][I][esp32-hal-periman.c:141] perimanSetPinBus(): Pin 13 already has type USB_DP (39) with bus 0x40811c30Zigbee_Thermostat.ino[  2336][V][esp32-hal-rmt.c:454] rmtInit(): GPIO 8 - TX MODE - MemSize[48] - Freq=10000000Hz[  2336][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type RMT_TX (10) successfully set to 0x42006214[  2337][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type RMT_RX (11) successfully set to 0x42006214[  2337][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 8 successfully set to type RMT_TX (10) with bus 0x4081b9b0[  2339][V][esp32-hal-rmt.c:305] _rmtWrite(): GPIO: 8 - Request: 24 RMT Symbols - Blocking - Timeout: -1[  2339][V][esp32-hal-rmt.c:306] _rmtWrite(): GPIO: 8 - Currently in Loop Mode: [NO] | Asked to Loop: NO, LoopCancel: NO[  2340][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type GPIO (1) successfully set to 0x42005cf8[  2340][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 9 successfully set to type GPIO (1) with bus 0xa[  2341][D][ZigbeeCore.cpp:97] addEndpoint(): Endpoint: 5, Device ID: 0x0301[  2341][D][ZigbeeCore.cpp:145] zigbeeInit(): Initialize Zigbee stack[  2384][D][ZigbeeCore.cpp:152] zigbeeInit(): Register all Zigbee EPs in list[  2386][I][ZigbeeCore.cpp:160] zigbeeInit(): List of registered Zigbee EPs:[  2387][I][ZigbeeCore.cpp:162] zigbeeInit(): Device type: Thermostat Device, Endpoint: 5, Device ID: 0x0301[  2392][V][ZigbeeCore.cpp:379] esp_zb_app_signal_handler(): ZDO signal: ZDO Config Ready (0x17), status: ESP_FAIL[  2392][I][ZigbeeCore.cpp:241] esp_zb_app_signal_handler(): Zigbee stack initialized[  2393][D][ZigbeeCore.cpp:242] esp_zb_app_signal_handler(): Zigbee channel mask: 0x07fff800[  2398][I][ZigbeeCore.cpp:368] esp_zb_app_signal_handler(): Network(0x1bcc) closed, devices joining not allowed.[  2400][I][ZigbeeCore.cpp:248] esp_zb_app_signal_handler(): Device started up in non factory-reset mode[  2401][I][ZigbeeCore.cpp:261] esp_zb_app_signal_handler(): Device rebooted[  2401][I][ZigbeeCore.cpp:265] esp_zb_app_signal_handler(): Opening network for joining for 180 seconds[  2402][D][ZigbeeCore.cpp:512] searchBindings(): Requesting binding table for address 0x0000[  2404][D][ZigbeeCore.cpp:452] bindingTableCb(): Binding table callback for address 0x0000 with status 0[  2404][D][ZigbeeCore.cpp:455] bindingTableCb(): Binding table info: total 0, index 0, count 0[  2405][D][ZigbeeCore.cpp:458] bindingTableCb(): No binding table entries foundWaiting for Temperature sensor to bound to the thermostat.[  2870][I][ZigbeeCore.cpp:366] esp_zb_app_signal_handler(): Network(0x1bcc) is open for 180 seconds..[  3570][V][ZigbeeCore.cpp:379] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK................[ 11408][V][ZigbeeCore.cpp:379] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK...............[ 19351][V][ZigbeeCore.cpp:379] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK................[ 27189][V][ZigbeeCore.cpp:379] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK.............[ 33565][V][ZigbeeCore.cpp:379] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK...............[ 41403][V][ZigbeeCore.cpp:379] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK................[ 49241][V][ZigbeeCore.cpp:379] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK................[ 57079][V][ZigbeeCore.cpp:379] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK..................[ 66393][V][ZigbeeCore.cpp:379] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK................[ 74231][V][ZigbeeCore.cpp:379] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK................[ 82069][V][ZigbeeCore.cpp:379] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK...............[ 89907][V][ZigbeeCore.cpp:379] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK...................[ 99222][V][ZigbeeCore.cpp:379] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK................[107060][V][ZigbeeCore.cpp:379] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK...............[114898][V][ZigbeeCore.cpp:379] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK................[122736][V][ZigbeeCore.cpp:379] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK...................[132055][V][ZigbeeCore.cpp:379] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK...............[139893][V][ZigbeeCore.cpp:379] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK................[147731][V][ZigbeeCore.cpp:379] esp_zb_app_signal_handler(): ZDO signal: NLME Status Indication (0x32), status: ESP_OK
You must be logged in to vote
0 replies
Comment options

It does not fail consistently, sometimes I can restart either ED or ZCZR and the communiscation automagically is restored.
Is this expected behaviour, that once a connection betweeen ED ad ZCZR was succesfully established, upon reboot of any participant the connection is restored without any further interaction from the user / user code?

You must be logged in to vote
2 replies
@P-R-O-C-H-Y
Comment options

Yes, the connection to the network should be "auto healed" or restored automatically without any further interactions

@sunsetphotography198-cell
Comment options

Sorry I have no idea what we are talking about here but what is this and does it block 2.4ghz signals?
Essentially being a jammer?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
General
Labels
None yet
3 participants
@PerennialNovice@P-R-O-C-H-Y@sunsetphotography198-cell

[8]ページ先頭

©2009-2025 Movatter.jp