Open mundevx opened 2 months ago
In simple words, Zigbee coordinator gateway only working one sided (i.e. from gateway to zigbee end device). But not working when i send command from Zigbee end device to Gateway (i.e. No callback occur on gateway side). But gateway callbacks are working for IAS Zone clusters only(From Sensor to gateway and gateway to Sensor).
You need to register gateway endpoint. @mundevx
Hi @ahmetcobanoglu , I had already registered the gateway endpoint. But its not fully working. Now issue arise that the gateway send data immediately to end device and received by end device immediately, but from end device, when i send data, then it reaches gateway at 5 second timeout. What i am sending... esp_err_t status = esp_zb_zcl_set_attribute_val( 1, ESP_ZB_ZCL_CLUSTER_ID_FAN_CONTROL, ESP_ZB_ZCL_CLUSTER_SERVER_ROLE, ESP_ZB_ZCL_ATTR_FAN_CONTROL_FAN_MODE_ID, (uint8_t*)&fan_speed, false ); and then then esp_zb_zcl_report_attr_cmd_t report_cmd_2 = { .zcl_basic_cmd = { .dst_addr_u.addr_short = 0x0000, .dst_endpoint = 1, .src_endpoint = 1, }, .address_mode = ESP_ZB_APS_ADDR_MODE_16_ENDP_PRESENT, .clusterID = ESP_ZB_ZCL_CLUSTER_ID_FAN_CONTROL, .attributeID = ESP_ZB_ZCL_ATTR_FAN_CONTROL_FAN_MODE_ID, .cluster_role = ESP_ZB_ZCL_CLUSTER_SERVER_ROLE, }; esp_zb_zcl_report_attr_cmd_req(&report_cmd_2);
@mundevx ,
Please note that the gateway typically functions as the client side of a cluster to connect with other interfaces and send commands to control other devices. Using esp_zb_ep_list_add_gateway_ep()
registers the cluster clients, enabling the gateway device to send commands. However, if the on/off server cluster is not registered on the gateway, it will not process on/off commands.
Additionally, it’s essential to consider providing the application context. Using a gateway as a server to receive and handle cluster commands is generally not recommended.
Question
All of these functions in End Device or Router is not working when send to gateway. But Gateway to End Devices are working Ok.
All functions are listed down
but when i use this function, esp_zb_zcl_ias_zone_status_change_notif_cmd_req , it is working fine and callback occur on gateway example code, but all other functions listed above are not working.
// esp_zb_zcl_ias_zone_status_change_notif_cmd_t resp; // resp.address_mode = ESP_ZB_APS_ADDR_MODE_16_ENDP_PRESENT; // resp.extend_status = 1; // resp.zone_id = 0; // resp.zone_status = toggle; // resp.zcl_basic_cmd.dst_addr_u.addr_short = 0; // resp.zcl_basic_cmd.dst_endpoint = 1; // resp.zcl_basic_cmd.src_endpoint = 1; // esp_zb_zcl_ias_zone_status_change_notif_cmd_req(&resp);
Can you help me regarding this issue?
Additional context.
No response