This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Where is KEEPALIVE_TIMEOUT_MAX in Z-Stack Home 1.2.2?

In Home 1.2.1 there is a parameter KEEPALIVE_TIMEOUT_MAX that controls the child aging timeout.

But I cannot find it in the new 1.2.2. Am I missing something?

  • I see some changes about this CHILD AGING. I think is KEEPALIVE_TIMEOUT_MAX replaced by zgEndDeviceTimeoutValue in ZGlobals.c.
  • Thanks Yikai.
    After comparing the source files carefully, I found that NWK_END_DEV_TIMEOUT_DEFAULT (defaults to 8, or 256 minutes, in ZGlobals.h) is playing the role of the old KEEPALIVE_TIMEOUT_MAX.
    But NWK_END_DEV_TIMEOUT_DEFAULT is defined as an index to an array timeoutValue[] in nwk_globals.c, which enumerates all possible timeout values from 10 sec to 16384 min. I think that is in compliance with zigbee spec r21, which has not released to the public yet.
    END_DEV_TIMEOUT_VALUE (and zgEndDeviceTimeoutValue) is similar, but is used by ZED when sending End Device Timeout request, as suggested in the comments in ZGlobals.h.
  • No idea why TI makes it an array. However, you can change the values in array to whatever you want if you need to change the timeout to a specific value that is not in the array.