ESP32-C6 unable to set model and manufacterer

baylf2000
Posts: 5
Joined: Sat Sep 23, 2023 5:56 am

ESP32-C6 unable to set model and manufacterer

Postby baylf2000 » Sat Sep 23, 2023 11:00 am

Espressif-IDE, SDK 5.1.1, esp-zboss 0.7.2 and esp-zigbee 0.9.5.

Using the "/esp_zigbee_customized_devices/customized_client/" example from the latest zigbee-sdk, modified to run as an end device, I'm unable to modify the code to allow zigbee2mqtt to receive the manufacturer name and model id when joining an existing network. I've tried many other examples and different versions of the idf and dependencies. The device joins the network correctly, but zigbee2mqtt reports "Zigbee model 'undefined' and manufacturer name 'undefined'"

Below is the relevant modifications I've made to the example.

Code: Select all


char model_id[] = {13, 'E', 'S', 'P', '3', '2', 'C', '6', '.', 'L', 'i', 'g', 'h', 't'};
char manufacturer_name[] = {9, 'E', 's', 'p', 'r', 'e', 's', 's', 'i', 'f'};

/* basic cluster - fully customized */
esp_zb_attribute_list_t *esp_zb_basic_cluster = esp_zb_zcl_attr_list_create(ESP_ZB_ZCL_CLUSTER_ID_BASIC);
esp_zb_basic_cluster_add_attr(esp_zb_basic_cluster, ESP_ZB_ZCL_ATTR_BASIC_ZCL_VERSION_ID, &test_attr);
esp_zb_basic_cluster_add_attr(esp_zb_basic_cluster, ESP_ZB_ZCL_ATTR_BASIC_POWER_SOURCE_ID, &test_attr);
esp_zb_basic_cluster_add_attr(esp_zb_basic_cluster, ESP_ZB_ZCL_ATTR_BASIC_MODEL_IDENTIFIER_ID, &model_id[0]);
esp_zb_basic_cluster_add_attr(esp_zb_basic_cluster, ESP_ZB_ZCL_ATTR_BASIC_MANUFACTURER_NAME_ID, &manufacturer_name[0]);
esp_zb_cluster_update_attr(esp_zb_basic_cluster, ESP_ZB_ZCL_ATTR_BASIC_ZCL_VERSION_ID, &test_attr2);


Posts I've found suggest others have had success with this code, however I cannot get it to work. Has something changed in recent versions regarding how this code should work?

Any help would be appreciated.

Who is online

Users browsing this forum: Baidu [Spider] and 211 guests