Skip to main content
Associate II
August 1, 2025
Solved

Adjust ZbZclClusterCommandReq callback timeout

Hello,

I am looking how to shorten the timeout and/or failure entering of the callback.

I am using ZbZclClusterCommandReq(cluster, &req, callback, arg). I currently have my own ACK timeout implementation, however, the callback still is entered with either ZCL_STATUS_TIMEOUT or ZCL_STATUS_FAILURE. I noticed this may cause flooding-like effects and overload the network.

Is there a way to shorten this timeout (to around 300ms instead of its default ~6s) so I can remove my ACK timeout implementation and just work with this? Is that recommended to do?

Thanks,

This topic has been closed for replies.
OuadiBest answer
ST Technical Moderator
August 8, 2025

Hello @ISLTG,

To answer your question, ZCL command requests timeout is fixed by the stack according to specification and cannot be changed. 

A mechanism of retry is ensured by the stack in case of no ack is received, the timeout error might be triggered when all retries have failed. 

Kind regards,

Ouadi

 

1 reply

OuadiBest answer
ST Technical Moderator
August 8, 2025

Hello @ISLTG,

To answer your question, ZCL command requests timeout is fixed by the stack according to specification and cannot be changed. 

A mechanism of retry is ensured by the stack in case of no ack is received, the timeout error might be triggered when all retries have failed. 

Kind regards,

Ouadi