cancel
Showing results for 
Search instead for 
Did you mean: 

Adjust ZbZclClusterCommandReq callback timeout

ISLTG
Associate III

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,

1 ACCEPTED SOLUTION

Accepted Solutions
Ouadi
ST Employee

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

 

View solution in original post

1 REPLY 1
Ouadi
ST Employee

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