Page 1 of 1

need help : zigbee router mode does not work on esp32-h2

Posted: Thu Nov 07, 2024 2:53 pm
by amiral
Hi,
I developped an iot based on esp32-h2. I have 5 esp32-h2
Network is zigbee
Each esp32-h2 is configured in router mode:
in menuconfig zigbee device type is set to "Zigbee coordinator or router device"

In the code I put:
esp_zb_nwk_device_type_t device_type = esp_zb_get_network_device_role();
switch (device_type) {
case ESP_ZB_DEVICE_TYPE_ROUTER:
ESP_LOGI("ZIGBEE", "Le dispositif est en mode routeur.");
break;
case ESP_ZB_DEVICE_TYPE_COORDINATOR:
ESP_LOGI("ZIGBEE", "Le dispositif est en mode coordinateur.");
break;
case ESP_ZB_DEVICE_TYPE_ED:
ESP_LOGI("ZIGBEE", "Le dispositif est en mode appareil final.");
break;
default:
ESP_LOGI("ZIGBEE", "Type de dispositif inconnu.");
break;
}

In the console I see "Le dispositif est en mode routeur" (which means my esp32-h2 are ESP_ZB_DEVICE_TYPE_ROUTER)

But the coordinator of the zigbee network displays no neighboors to each of my esp32-h2. I loose frequently some esp32-h2 in my zigbee network although they are placed in chain 4m or 5m one from an other

I do not find any help in the documentation neither in examples, what did I do wrong ?