espressif / esp-zigbee-sdk

Espressif Zigbee SDK
Apache License 2.0
163 stars 26 forks source link

ESP32C6 cannot join network (TZ-101) #13

Closed Tropaion closed 1 year ago

Tropaion commented 1 year ago

Hello, I'm new to ZigBee developement and I'm a bit stumbed. I'm trying to develop a simple temperature sensor zigbee application and already implemented the library for it.

Now, currently I'm trying to understand the HA_ON_OFF_LIGHT example and I think I have a general understanding how it works. Only the commissioning part leaves me stumbed.

My current test setup is Home Assistant with an Sonoff Gateway USB Stick. I'm trying for a while now, for the example code to join the HA Network, but I always get the "ESP_ZB_ON_OFF_LIGHT: Network steering was not successful (status: -1)" error.

Not sure why this happends, since the commission mode is set to "SP_ZB_BDB_MODE_NETWORK_STEERING" and as far as I understand, this should work.

I hope someone can help me. Sadly there isn't a good guide for zigbee novices.

Thanks for your help :)

jayavanth commented 1 year ago

@Tropaion did you figure out a solution for this? Experiencing the same issue

Tropaion commented 1 year ago

@jayavanth For me it was the problem that in the example there where only a few channels allowed, so it couldn't my coordinator.

jayavanth commented 1 year ago

Wow that worked! Thank you @Tropaion

xieqinan commented 1 year ago

Hi @Tropaion @jayavanth, The channel of ESP-Zigbee is limited from 11 to 26,and you can set this range using the #define ESP_ZB_PRIMARY_CHANNEL_MASK (1l << 13 | 1l << 14) directive in every example header file, or set esp_zb_set_primary_network_channel_set(0x07FFF800) to open all channels.

jayavanth commented 1 year ago

@xieqinan that's very helpful. Thank you!